2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
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
837 ENABLE_EXPENSIVE_CHECKS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
855 ENABLE_LLVMC_DYNAMIC_PLUGINS
902 CONVENIENCE_LTDL_TRUE
903 CONVENIENCE_LTDL_FALSE
918 NO_MISSING_FIELD_INITIALIZERS
946 ENABLE_VISIBILITY_INLINES_HIDDEN
952 ac_precious_vars='build_alias
966 ac_subdirs_all='projects/sample
968 projects/llvm-stacker
975 projects/llvm-poolalloc
977 projects/llvm-kernel'
979 # Initialize some variables set by options.
981 ac_init_version=false
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
991 program_transform_name=s,x,x,
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1086 eval enable_$ac_feature=no ;;
1088 -docdir | --docdir | --docdi | --doc | --do)
1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091 docdir=$ac_optarg ;;
1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096 dvidir=$ac_optarg ;;
1098 -enable-* | --enable-*)
1099 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1105 eval enable_$ac_feature=\$ac_optarg ;;
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 htmldir=$ac_optarg ;;
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1150 -libdir | --libdir | --libdi | --libd)
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1241 -psdir | --psdir | --psdi | --psd | --ps)
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 sbindir=$ac_optarg ;;
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 sharedstatedir=$ac_optarg ;;
1267 -site | --site | --sit)
1269 -site=* | --site=* | --sit=*)
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1296 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1299 { echo "$as_me: error: invalid package name: $ac_package" >&2
1300 { (exit 1); exit 1; }; }
1301 ac_package=`echo $ac_package| sed 's/-/_/g'`
1302 eval with_$ac_package=\$ac_optarg ;;
1304 -without-* | --without-*)
1305 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1308 { echo "$as_me: error: invalid package name: $ac_package" >&2
1309 { (exit 1); exit 1; }; }
1310 ac_package=`echo $ac_package | sed 's/-/_/g'`
1311 eval with_$ac_package=no ;;
1314 # Obsolete; use --with-x.
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) { echo "$as_me: error: unrecognized option: $ac_option
1332 Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 { echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1362 # Be sure to have absolute directory names.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374 { (exit 1); exit 1; }; }
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1382 target=$target_alias
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398 test "$silent" = yes && exec 6>/dev/null
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 { echo "$as_me: error: Working directory cannot be determined" >&2
1405 { (exit 1); exit 1; }; }
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 { echo "$as_me: error: pwd does not report name of working directory" >&2
1408 { (exit 1); exit 1; }; }
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413 ac_srcdir_defaulted=yes
1414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir=`$as_dirname -- "$0" ||
1416 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417 X"$0" : 'X\(//\)[^/]' \| \
1418 X"$0" : 'X\(//\)$' \| \
1419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1443 ac_srcdir_defaulted=no
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1448 { (exit 1); exit 1; }; }
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1453 { (exit 1); exit 1; }; }
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 --target=TARGET configure for building compilers for TARGET [HOST]
1543 if test -n "$ac_init_help"; then
1544 case $ac_init_help in
1545 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1552 --enable-optimized Compile with optimizations enabled (default is NO)
1553 --enable-profiling Compile with profiling enabled (default is NO)
1554 --enable-assertions Compile with assertion checks enabled (default is
1556 --enable-expensive-checks
1557 Compile with expensive debug checks enabled (default
1559 --enable-debug-runtime Build runtime libs with debug symbols (default is
1561 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1562 optimization is on and YES if it's off)
1563 --enable-jit Enable Just In Time Compiling (default is YES)
1564 --enable-doxygen Build doxygen documentation (default is NO)
1565 --enable-threads Use threads if available (default is YES)
1566 --enable-pic Build LLVM with Position Independent Code (default
1568 --enable-targets Build specific host targets: all or
1569 target1,target2,... Valid targets are: host, x86,
1570 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1571 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1572 and cpp (default=all)
1573 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1575 --enable-bindings Build specific language bindings:
1576 all,auto,none,{binding-name} (default=auto)
1577 --enable-libffi Check for the presence of libffi (default is YES)
1578 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1580 --enable-llvmc-dynamic-plugins
1581 Enable dynamic LLVMC plugins (default is YES)
1582 --enable-ltdl-install install libltdl
1583 --enable-shared[=PKGS] build shared libraries
1585 --enable-static[=PKGS] build static libraries
1587 --enable-fast-install[=PKGS]
1588 optimize for fast installation
1590 --disable-libtool-lock avoid locking (might break parallel builds)
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1597 --with-llvmgcc Specify location of llvm-gcc driver (default
1599 --with-llvmgxx Specify location of llvm-g++ driver (default
1601 --with-optimize-option Select the compiler options to use for optimized
1603 --with-extra-options Specify additional options to compile LLVM with
1604 --with-ocaml-libdir Specify install location for ocaml bindings (default
1606 --with-c-include-dirs Colon separated list of directories clang will
1608 --with-cxx-include-root Directory with the libstdc++ headers.
1609 --with-cxx-include-arch Architecture of the libstdc++ headers.
1610 --with-cxx-include-32bit-dir
1611 32 bit multilib dir.
1612 --with-cxx-include-64bit-dir
1613 64 bit multilib directory.
1614 --with-binutils-include Specify path to binutils/include/ containing
1615 plugin-api.h file for gold plugin.
1616 --with-tclinclude directory where tcl headers are
1617 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1618 --with-pic try to use only PIC/non-PIC objects [default=use
1620 --with-tags[=TAGS] include additional configurations [automatic]
1621 --with-udis86=<path> Use udis86 external x86 disassembler library
1622 --with-oprofile=<prefix>
1623 Tell OProfile >= 0.9.4 how to symbolize JIT output
1625 Some influential environment variables:
1626 CC C compiler command
1627 CFLAGS C compiler flags
1628 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1629 nonstandard directory <lib dir>
1630 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1631 you have headers in a nonstandard directory <include dir>
1633 CXX C++ compiler command
1634 CXXFLAGS C++ compiler flags
1635 CXXCPP C++ preprocessor
1636 F77 Fortran 77 compiler command
1637 FFLAGS Fortran 77 compiler flags
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1642 Report bugs to <llvmbugs@cs.uiuc.edu>.
1647 if test "$ac_init_help" = "recursive"; then
1648 # If there are subdirs, report their specific --help.
1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650 test -d "$ac_dir" || continue
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1670 .) # We are building in place.
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
1675 ac_srcdir=$srcdir$ac_dir_suffix;
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1692 $SHELL "$ac_srcdir/configure" --help=recursive
1694 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 cd "$ac_pwd" || { ac_status=$?; break; }
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1703 llvm configure 2.7svn
1704 generated by GNU Autoconf 2.60
1706 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1707 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1711 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1715 cat >config.log <<_ACEOF
1716 This file contains any messages produced by compilers while
1717 running configure, to aid debugging if configure makes a mistake.
1719 It was created by llvm $as_me 2.7svn, which was
1720 generated by GNU Autoconf 2.60. Invocation command line was
1732 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1733 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1734 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1735 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1736 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1738 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1739 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1741 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1742 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1743 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1744 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1745 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1746 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1747 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 echo "PATH: $as_dir"
1772 # Keep a trace of the command line.
1773 # Strip out --no-create and --no-recursion so they do not pile up.
1774 # Strip out --silent because we don't want to record it for future runs.
1775 # Also quote any args containing shell meta-characters.
1776 # Make two passes to allow for proper duplicate-argument suppression.
1780 ac_must_keep_next=false
1786 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1788 | -silent | --silent | --silen | --sile | --sil)
1791 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1794 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1796 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1797 if test $ac_must_keep_next = true; then
1798 ac_must_keep_next=false # Got value, back to normal.
1801 *=* | --config-cache | -C | -disable-* | --disable-* \
1802 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1803 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1804 | -with-* | --with-* | -without-* | --without-* | --x)
1805 case "$ac_configure_args0 " in
1806 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1809 -* ) ac_must_keep_next=true ;;
1812 ac_configure_args="$ac_configure_args '$ac_arg'"
1817 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1818 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1820 # When interrupted or exit'd, cleanup temporary files, and complete
1821 # config.log. We remove comments because anyway the quotes in there
1822 # would cause problems or look ugly.
1823 # WARNING: Use '\'' to represent an apostrophe within the trap.
1824 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1825 trap 'exit_status=$?
1826 # Save into config.log some information that might help in debugging.
1831 ## ---------------- ##
1832 ## Cache variables. ##
1833 ## ---------------- ##
1836 # The following way of writing the cache mishandles newlines in values,
1838 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1839 eval ac_val=\$$ac_var
1843 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1844 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1847 _ | IFS | as_nl) ;; #(
1848 *) $as_unset $ac_var ;;
1853 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854 *${as_nl}ac_space=\ *)
1856 "s/'\''/'\''\\\\'\'''\''/g;
1857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1868 ## ----------------- ##
1869 ## Output variables. ##
1870 ## ----------------- ##
1873 for ac_var in $ac_subst_vars
1875 eval ac_val=\$$ac_var
1877 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 echo "$ac_var='\''$ac_val'\''"
1883 if test -n "$ac_subst_files"; then
1885 ## ------------------- ##
1886 ## File substitutions. ##
1887 ## ------------------- ##
1890 for ac_var in $ac_subst_files
1892 eval ac_val=\$$ac_var
1894 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 echo "$ac_var='\''$ac_val'\''"
1901 if test -s confdefs.h; then
1911 test "$ac_signal" != 0 &&
1912 echo "$as_me: caught signal $ac_signal"
1913 echo "$as_me: exit $exit_status"
1915 rm -f core *.core core.conftest.* &&
1916 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1919 for ac_signal in 1 2 13 15; do
1920 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1924 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1925 rm -f -r conftest* confdefs.h
1927 # Predefined preprocessor variables.
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_NAME "$PACKAGE_NAME"
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_STRING "$PACKAGE_STRING"
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1954 # Let the site file select an alternate cache file if it wants to.
1955 # Prefer explicitly selected file to automatically selected ones.
1956 if test -n "$CONFIG_SITE"; then
1957 set x "$CONFIG_SITE"
1958 elif test "x$prefix" != xNONE; then
1959 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1961 set x "$ac_default_prefix/share/config.site" \
1962 "$ac_default_prefix/etc/config.site"
1967 if test -r "$ac_site_file"; then
1968 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1969 echo "$as_me: loading site script $ac_site_file" >&6;}
1970 sed 's/^/| /' "$ac_site_file" >&5
1975 if test -r "$cache_file"; then
1976 # Some versions of bash will fail to source /dev/null (special
1977 # files actually), so we avoid doing that.
1978 if test -f "$cache_file"; then
1979 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1980 echo "$as_me: loading cache $cache_file" >&6;}
1982 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1983 *) . "./$cache_file";;
1987 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1988 echo "$as_me: creating cache $cache_file" >&6;}
1992 # Check that the precious variables saved in the cache have kept the same
1994 ac_cache_corrupted=false
1995 for ac_var in $ac_precious_vars; do
1996 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1997 eval ac_new_set=\$ac_env_${ac_var}_set
1998 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1999 eval ac_new_val=\$ac_env_${ac_var}_value
2000 case $ac_old_set,$ac_new_set in
2002 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2003 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2004 ac_cache_corrupted=: ;;
2006 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2007 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2008 ac_cache_corrupted=: ;;
2011 if test "x$ac_old_val" != "x$ac_new_val"; then
2012 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2013 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2014 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2015 echo "$as_me: former value: $ac_old_val" >&2;}
2016 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2017 echo "$as_me: current value: $ac_new_val" >&2;}
2018 ac_cache_corrupted=:
2021 # Pass precious variables to config.status.
2022 if test "$ac_new_set" = set; then
2024 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025 *) ac_arg=$ac_var=$ac_new_val ;;
2027 case " $ac_configure_args " in
2028 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2029 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2033 if $ac_cache_corrupted; then
2034 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2035 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2036 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2037 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2038 { (exit 1); exit 1; }; }
2066 ac_cpp='$CPP $CPPFLAGS'
2067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2082 for ac_dir in autoconf "$srcdir"/autoconf; do
2083 if test -f "$ac_dir/install-sh"; then
2085 ac_install_sh="$ac_aux_dir/install-sh -c"
2087 elif test -f "$ac_dir/install.sh"; then
2089 ac_install_sh="$ac_aux_dir/install.sh -c"
2091 elif test -f "$ac_dir/shtool"; then
2093 ac_install_sh="$ac_aux_dir/shtool install -c"
2097 if test -z "$ac_aux_dir"; then
2098 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2099 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2100 { (exit 1); exit 1; }; }
2103 # These three variables are undocumented and unsupported,
2104 # and are intended to be withdrawn in a future Autoconf release.
2105 # They can cause serious problems if a builder's source tree is in a directory
2106 # whose full name contains unusual characters.
2107 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2108 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2109 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113 if test ${srcdir} != "." ; then
2114 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2115 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2116 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2117 { (exit 1); exit 1; }; }
2121 for i in `ls ${srcdir}/projects`
2123 if test -d ${srcdir}/projects/${i} ; then
2126 sample) subdirs="$subdirs projects/sample"
2128 privbracket) subdirs="$subdirs projects/privbracket"
2130 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2132 # llvm-test is the old name of the test-suite, kept here for backwards
2134 llvm-test) subdirs="$subdirs projects/llvm-test"
2136 test-suite) subdirs="$subdirs projects/test-suite"
2138 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2140 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2142 llvm-java) subdirs="$subdirs projects/llvm-java"
2144 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2146 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2148 poolalloc) subdirs="$subdirs projects/poolalloc"
2150 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2153 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2154 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2161 # Make sure we can run config.sub.
2162 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2163 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2164 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2165 { (exit 1); exit 1; }; }
2167 { echo "$as_me:$LINENO: checking build system type" >&5
2168 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2169 if test "${ac_cv_build+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 ac_build_alias=$build_alias
2173 test "x$ac_build_alias" = x &&
2174 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2175 test "x$ac_build_alias" = x &&
2176 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2177 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2178 { (exit 1); exit 1; }; }
2179 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2185 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2186 echo "${ECHO_T}$ac_cv_build" >&6; }
2187 case $ac_cv_build in
2189 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2190 echo "$as_me: error: invalid value of canonical build" >&2;}
2191 { (exit 1); exit 1; }; };;
2194 ac_save_IFS=$IFS; IFS='-'
2200 # Remember, the first character of IFS is used to create $*,
2201 # except with old shells:
2204 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2207 { echo "$as_me:$LINENO: checking host system type" >&5
2208 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2209 if test "${ac_cv_host+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test "x$host_alias" = x; then
2213 ac_cv_host=$ac_cv_build
2215 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2216 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2217 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2218 { (exit 1); exit 1; }; }
2222 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2223 echo "${ECHO_T}$ac_cv_host" >&6; }
2226 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2227 echo "$as_me: error: invalid value of canonical host" >&2;}
2228 { (exit 1); exit 1; }; };;
2231 ac_save_IFS=$IFS; IFS='-'
2237 # Remember, the first character of IFS is used to create $*,
2238 # except with old shells:
2241 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2244 { echo "$as_me:$LINENO: checking target system type" >&5
2245 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2246 if test "${ac_cv_target+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 if test "x$target_alias" = x; then
2250 ac_cv_target=$ac_cv_host
2252 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2253 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2254 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2255 { (exit 1); exit 1; }; }
2259 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2260 echo "${ECHO_T}$ac_cv_target" >&6; }
2261 case $ac_cv_target in
2263 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2264 echo "$as_me: error: invalid value of canonical target" >&2;}
2265 { (exit 1); exit 1; }; };;
2267 target=$ac_cv_target
2268 ac_save_IFS=$IFS; IFS='-'
2274 # Remember, the first character of IFS is used to create $*,
2275 # except with old shells:
2278 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2281 # The aliases save the names the user supplied, while $host etc.
2282 # will get canonicalized.
2283 test -n "$target_alias" &&
2284 test "$program_prefix$program_suffix$program_transform_name" = \
2286 program_prefix=${target_alias}-
2288 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2289 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2290 if test "${llvm_cv_os_type+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="AIX"
2298 llvm_cv_platform_type="Unix" ;;
2300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302 llvm_cv_os_type="IRIX"
2303 llvm_cv_platform_type="Unix" ;;
2305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307 llvm_cv_os_type="Cygwin"
2308 llvm_cv_platform_type="Unix" ;;
2310 llvm_cv_link_all_option="-Wl,-all_load"
2311 llvm_cv_no_link_all_option="-Wl,-noall_load"
2312 llvm_cv_os_type="Darwin"
2313 llvm_cv_platform_type="Unix" ;;
2315 llvm_cv_link_all_option="-Wl,--whole-archive"
2316 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2317 llvm_cv_os_type="FreeBSD"
2318 llvm_cv_platform_type="Unix" ;;
2320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2322 llvm_cv_os_type="OpenBSD"
2323 llvm_cv_platform_type="Unix" ;;
2325 llvm_cv_link_all_option="-Wl,--whole-archive"
2326 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2327 llvm_cv_os_type="NetBSD"
2328 llvm_cv_platform_type="Unix" ;;
2330 llvm_cv_link_all_option="-Wl,--whole-archive"
2331 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2332 llvm_cv_os_type="DragonFly"
2333 llvm_cv_platform_type="Unix" ;;
2335 llvm_cv_link_all_option="-Wl,--whole-archive"
2336 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2337 llvm_cv_os_type="HP-UX"
2338 llvm_cv_platform_type="Unix" ;;
2340 llvm_cv_link_all_option="-Wl,--whole-archive"
2341 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2342 llvm_cv_os_type="Interix"
2343 llvm_cv_platform_type="Unix" ;;
2345 llvm_cv_link_all_option="-Wl,--whole-archive"
2346 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2347 llvm_cv_os_type="Linux"
2348 llvm_cv_platform_type="Unix" ;;
2350 llvm_cv_link_all_option="-Wl,-z,allextract"
2351 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2352 llvm_cv_os_type="SunOS"
2353 llvm_cv_platform_type="Unix" ;;
2355 llvm_cv_link_all_option="-Wl,-z,allextract"
2356 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2357 llvm_cv_os_type="AuroraUX"
2358 llvm_cv_platform_type="Unix" ;;
2360 llvm_cv_link_all_option="-Wl,--whole-archive"
2361 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2362 llvm_cv_os_type="Win32"
2363 llvm_cv_platform_type="Win32" ;;
2365 llvm_cv_link_all_option="-Wl,--whole-archive"
2366 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2367 llvm_cv_os_type="MingW"
2368 llvm_cv_platform_type="Win32" ;;
2370 llvm_cv_link_all_option="-Wl,--whole-archive"
2371 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2372 llvm_cv_os_type="Haiku"
2373 llvm_cv_platform_type="Unix" ;;
2375 llvm_cv_link_all_option="-Wl,--whole-archive"
2376 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2377 llvm_cv_os_type="Freestanding"
2378 llvm_cv_platform_type="Unix" ;;
2380 llvm_cv_link_all_option="-Wl,--whole-archive"
2381 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2382 llvm_cv_os_type="Freestanding"
2383 llvm_cv_platform_type="Unix" ;;
2385 llvm_cv_link_all_option=""
2386 llvm_cv_no_link_all_option=""
2387 llvm_cv_os_type="Unknown"
2388 llvm_cv_platform_type="Unknown" ;;
2391 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2392 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2394 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2395 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_os_type+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 llvm_cv_target_os_type="AIX" ;;
2403 llvm_cv_target_os_type="IRIX" ;;
2405 llvm_cv_target_os_type="Cygwin" ;;
2407 llvm_cv_target_os_type="Darwin" ;;
2409 llvm_cv_target_os_type="FreeBSD" ;;
2411 llvm_cv_target_os_type="OpenBSD" ;;
2413 llvm_cv_target_os_type="NetBSD" ;;
2415 llvm_cv_target_os_type="DragonFly" ;;
2417 llvm_cv_target_os_type="HP-UX" ;;
2419 llvm_cv_target_os_type="Interix" ;;
2421 llvm_cv_target_os_type="Linux" ;;
2423 llvm_cv_target_os_type="SunOS" ;;
2425 llvm_cv_target_os_type="AuroraUX" ;;
2427 llvm_cv_target_os_type="Win32" ;;
2429 llvm_cv_target_os_type="MingW" ;;
2431 llvm_cv_target_os_type="Haiku" ;;
2433 llvm_cv_target_os_type="Freestanding" ;;
2435 llvm_cv_target_os_type="Unknown" ;;
2438 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2439 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2441 if test "$llvm_cv_os_type" = "Unknown" ; then
2442 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2443 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2444 { (exit 1); exit 1; }; }
2449 HOST_OS=$llvm_cv_os_type
2451 TARGET_OS=$llvm_cv_target_os_type
2454 LINKALL=$llvm_cv_link_all_option
2456 NOLINKALL=$llvm_cv_no_link_all_option
2459 case $llvm_cv_platform_type in
2462 cat >>confdefs.h <<\_ACEOF
2463 #define LLVM_ON_UNIX 1
2473 cat >>confdefs.h <<\_ACEOF
2474 #define LLVM_ON_WIN32 1
2484 { echo "$as_me:$LINENO: checking target architecture" >&5
2485 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2486 if test "${llvm_cv_target_arch+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 i?86-*) llvm_cv_target_arch="x86" ;;
2491 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2492 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2493 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2494 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2495 arm*-*) llvm_cv_target_arch="ARM" ;;
2496 mips-*) llvm_cv_target_arch="Mips" ;;
2497 pic16-*) llvm_cv_target_arch="PIC16" ;;
2498 xcore-*) llvm_cv_target_arch="XCore" ;;
2499 msp430-*) llvm_cv_target_arch="MSP430" ;;
2500 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2501 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2502 *) llvm_cv_target_arch="Unknown" ;;
2505 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2506 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2508 if test "$llvm_cv_target_arch" = "Unknown" ; then
2509 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2510 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2513 # Determine the LLVM native architecture for the target
2514 case "$llvm_cv_target_arch" in
2515 x86) LLVM_NATIVE_ARCH="X86" ;;
2516 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2517 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2520 ARCH=$llvm_cv_target_arch
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 if test -n "$CC"; then
2558 { echo "$as_me:$LINENO: result: $CC" >&5
2559 echo "${ECHO_T}$CC" >&6; }
2561 { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2567 if test -z "$ac_cv_prog_CC"; then
2569 # Extract the first word of "gcc", so it can be a program name with args.
2570 set dummy gcc; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 if test -n "$ac_ct_CC"; then
2577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_ac_ct_CC="gcc"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599 echo "${ECHO_T}$ac_ct_CC" >&6; }
2601 { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2605 if test "x$ac_ct_CC" = x; then
2608 case $cross_compiling:$ac_tool_warned in
2610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet. If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&5
2613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2614 whose name does not start with the host triplet. If you think this
2615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2616 ac_tool_warned=yes ;;
2624 if test -z "$CC"; then
2625 if test -n "$ac_tool_prefix"; then
2626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}cc; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_CC="${ac_tool_prefix}cc"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 if test -n "$CC"; then
2655 { echo "$as_me:$LINENO: result: $CC" >&5
2656 echo "${ECHO_T}$CC" >&6; }
2658 { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2665 if test -z "$CC"; then
2666 # Extract the first word of "cc", so it can be a program name with args.
2667 set dummy cc; ac_word=$2
2668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2670 if test "${ac_cv_prog_CC+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2685 ac_prog_rejected=yes
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test $ac_prog_rejected = yes; then
2697 # We found a bogon in the path, so make sure we never use it.
2698 set dummy $ac_cv_prog_CC
2700 if test $# != 0; then
2701 # We chose a different compiler from the bogus one.
2702 # However, it has the same basename, so the bogon will be chosen
2703 # first if we set CC to just the basename; use the full file name.
2705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2711 if test -n "$CC"; then
2712 { echo "$as_me:$LINENO: result: $CC" >&5
2713 echo "${ECHO_T}$CC" >&6; }
2715 { echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6; }
2721 if test -z "$CC"; then
2722 if test -n "$ac_tool_prefix"; then
2723 for ac_prog in cl.exe
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 if test -n "$CC"; then
2754 { echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6; }
2757 { echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6; }
2762 test -n "$CC" && break
2765 if test -z "$CC"; then
2767 for ac_prog in cl.exe
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770 set dummy $ac_prog; ac_word=$2
2771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_ac_ct_CC="$ac_prog"
2787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2799 echo "${ECHO_T}$ac_ct_CC" >&6; }
2801 { echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6; }
2806 test -n "$ac_ct_CC" && break
2809 if test "x$ac_ct_CC" = x; then
2812 case $cross_compiling:$ac_tool_warned in
2814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2815 whose name does not start with the host triplet. If you think this
2816 configuration is useful to you, please write to autoconf@gnu.org." >&5
2817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet. If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2820 ac_tool_warned=yes ;;
2829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: no acceptable C compiler found in \$PATH
2832 See \`config.log' for more details." >&2;}
2833 { (exit 1); exit 1; }; }
2835 # Provide some information about the compiler.
2836 echo "$as_me:$LINENO: checking for C compiler version" >&5
2837 ac_compiler=`set X $ac_compile; echo $2`
2838 { (ac_try="$ac_compiler --version >&5"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compiler --version >&5") 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }
2848 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }
2858 { (ac_try="$ac_compiler -V >&5"
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864 (eval "$ac_compiler -V >&5") 2>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2884 ac_clean_files_save=$ac_clean_files
2885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2886 # Try to create an executable without -o first, disregard a.out.
2887 # It will help us diagnose broken compilers, and finding out an intuition
2889 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2890 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2893 # List of possible output files, starting from the most likely.
2894 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2895 # only as a last resort. b.out is created by i960 compilers.
2896 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2898 # The IRIX 6 linker writes into existing files which may not be
2899 # executable, retaining their permissions. Remove them first so a
2900 # subsequent execution test works.
2902 for ac_file in $ac_files
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2911 if { (ac_try="$ac_link_default"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_link_default") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
2921 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2922 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2923 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2924 # so that the user can short-circuit this test for compilers unknown to
2926 for ac_file in $ac_files
2928 test -f "$ac_file" || continue
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2933 # We found the default executable, but exeext='' is most
2937 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2939 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941 # We set ac_cv_exeext here because the later test for it is not
2942 # safe: cross compilers may not add the suffix if given an `-o'
2943 # argument, so we may need to know it at that point already.
2944 # Even if this section looks crufty: it has the advantage of
2951 test "$ac_cv_exeext" = no && ac_cv_exeext=
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: C compiler cannot create executables
2960 See \`config.log' for more details." >&2;}
2961 { (exit 77); exit 77; }; }
2964 ac_exeext=$ac_cv_exeext
2965 { echo "$as_me:$LINENO: result: $ac_file" >&5
2966 echo "${ECHO_T}$ac_file" >&6; }
2968 # Check that the compiler produces executables we can run. If not, either
2969 # the compiler is broken, or we cross compile.
2970 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2971 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2972 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2973 # If not cross compiling, check that we can run a simple program.
2974 if test "$cross_compiling" != yes; then
2975 if { ac_try='./$ac_file'
2976 { (case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_try") 2>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2987 if test "$cross_compiling" = maybe; then
2990 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2991 If you meant to cross compile, use \`--host'.
2992 See \`config.log' for more details." >&5
2993 echo "$as_me: error: cannot run C compiled programs.
2994 If you meant to cross compile, use \`--host'.
2995 See \`config.log' for more details." >&2;}
2996 { (exit 1); exit 1; }; }
3000 { echo "$as_me:$LINENO: result: yes" >&5
3001 echo "${ECHO_T}yes" >&6; }
3003 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3004 ac_clean_files=$ac_clean_files_save
3005 # Check that the compiler produces executables we can run. If not, either
3006 # the compiler is broken, or we cross compile.
3007 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3008 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3009 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3010 echo "${ECHO_T}$cross_compiling" >&6; }
3012 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3013 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3014 if { (ac_try="$ac_link"
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_link") 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; then
3024 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3025 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3026 # work properly (i.e., refer to `conftest.exe'), while it won't with
3028 for ac_file in conftest.exe conftest conftest.*; do
3029 test -f "$ac_file" || continue
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3032 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3038 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3039 See \`config.log' for more details." >&5
3040 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3041 See \`config.log' for more details." >&2;}
3042 { (exit 1); exit 1; }; }
3045 rm -f conftest$ac_cv_exeext
3046 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3047 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3049 rm -f conftest.$ac_ext
3050 EXEEXT=$ac_cv_exeext
3052 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3053 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3054 if test "${ac_cv_objext+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 rm -f conftest.o conftest.obj
3073 if { (ac_try="$ac_compile"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; then
3083 for ac_file in conftest.o conftest.obj conftest.*; do
3084 test -f "$ac_file" || continue;
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3087 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3104 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3105 echo "${ECHO_T}$ac_cv_objext" >&6; }
3106 OBJEXT=$ac_cv_objext
3108 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3109 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3110 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3177 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3178 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3179 GCC=`test $ac_compiler_gnu = yes && echo yes`
3180 ac_test_CFLAGS=${CFLAGS+set}
3181 ac_save_CFLAGS=$CFLAGS
3182 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3183 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3184 if test "${ac_cv_prog_cc_g+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 ac_save_c_werror_flag=$ac_c_werror_flag
3188 ac_c_werror_flag=yes
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3215 grep -v '^ *+' conftest.er1 >conftest.err
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3221 { (case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_try") 2>&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_try") 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3246 cat >conftest.$ac_ext <<_ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3276 { (case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_try") 2>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; } &&
3285 { ac_try='test -s conftest.$ac_objext'
3286 { (case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_try") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 ac_c_werror_flag=$ac_save_c_werror_flag
3302 cat >conftest.$ac_ext <<_ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_c_werror_flag=$ac_save_c_werror_flag
3368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3369 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3370 if test "$ac_test_CFLAGS" = set; then
3371 CFLAGS=$ac_save_CFLAGS
3372 elif test $ac_cv_prog_cc_g = yes; then
3373 if test "$GCC" = yes; then
3379 if test "$GCC" = yes; then
3385 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3386 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3387 if test "${ac_cv_prog_cc_c89+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 ac_cv_prog_cc_c89=no
3392 cat >conftest.$ac_ext <<_ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3400 #include <sys/types.h>
3401 #include <sys/stat.h>
3402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3403 struct buf { int x; };
3404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3405 static char *e (p, i)
3411 static char *f (char * (*g) (char **, int), char **p, ...)
3416 s = g (p, va_arg (v,int));
3421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3422 function prototypes and stuff, but not '\xHH' hex character constants.
3423 These don't provoke an error unfortunately, instead are silently treated
3424 as 'x'. The following induces an error, until -std is added to get
3425 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3426 array size at least. It's necessary to write '\x00'==0 to get something
3427 that's true only with -std. */
3428 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3430 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3431 inside strings and character constants. */
3433 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3435 int test (int i, double x);
3436 struct s1 {int (*f) (int a);};
3437 struct s2 {int (*f) (double a);};
3438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3444 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3449 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3450 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3452 CC="$ac_save_CC $ac_arg"
3453 rm -f conftest.$ac_objext
3454 if { (ac_try="$ac_compile"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_compile") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3468 { (case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_try") 2>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_try") 2>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_prog_cc_c89=$ac_arg
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3495 rm -f core conftest.err conftest.$ac_objext
3496 test "x$ac_cv_prog_cc_c89" != "xno" && break
3498 rm -f conftest.$ac_ext
3503 case "x$ac_cv_prog_cc_c89" in
3505 { echo "$as_me:$LINENO: result: none needed" >&5
3506 echo "${ECHO_T}none needed" >&6; } ;;
3508 { echo "$as_me:$LINENO: result: unsupported" >&5
3509 echo "${ECHO_T}unsupported" >&6; } ;;
3511 CC="$CC $ac_cv_prog_cc_c89"
3512 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3513 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3530 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3531 # On Suns, sometimes $CPP names a directory.
3532 if test -n "$CPP" && test -d "$CPP"; then
3535 if test -z "$CPP"; then
3536 if test "${ac_cv_prog_CPP+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 # Double quotes because CPP needs to be expanded
3540 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3543 for ac_c_preproc_warn_flag in '' yes
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548 # <limits.h> exists even on freestanding compilers.
3549 # On the NeXT, cc -E runs the code through the compiler's parser,
3550 # not just through cpp. "Syntax error" is here to catch this case.
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3558 # include <limits.h>
3560 # include <assert.h>
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } >/dev/null; then
3577 if test -s conftest.err; then
3578 ac_cpp_err=$ac_c_preproc_warn_flag
3579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3586 if test -z "$ac_cpp_err"; then
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 # Broken: fails on valid input.
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether nonexistent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3608 if { (ac_try="$ac_cpp conftest.$ac_ext"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } >/dev/null; then
3621 if test -s conftest.err; then
3622 ac_cpp_err=$ac_c_preproc_warn_flag
3623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3630 if test -z "$ac_cpp_err"; then
3631 # Broken: success on invalid input.
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3637 # Passes both tests.
3642 rm -f conftest.err conftest.$ac_ext
3645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646 rm -f conftest.err conftest.$ac_ext
3647 if $ac_preproc_ok; then
3659 { echo "$as_me:$LINENO: result: $CPP" >&5
3660 echo "${ECHO_T}$CPP" >&6; }
3662 for ac_c_preproc_warn_flag in '' yes
3664 # Use a header file that comes with gcc, so configuring glibc
3665 # with a fresh cross-compiler works.
3666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3667 # <limits.h> exists even on freestanding compilers.
3668 # On the NeXT, cc -E runs the code through the compiler's parser,
3669 # not just through cpp. "Syntax error" is here to catch this case.
3670 cat >conftest.$ac_ext <<_ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3677 # include <limits.h>
3679 # include <assert.h>
3683 if { (ac_try="$ac_cpp conftest.$ac_ext"
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3691 grep -v '^ *+' conftest.er1 >conftest.err
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } >/dev/null; then
3696 if test -s conftest.err; then
3697 ac_cpp_err=$ac_c_preproc_warn_flag
3698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3705 if test -z "$ac_cpp_err"; then
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 # Broken: fails on valid input.
3715 rm -f conftest.err conftest.$ac_ext
3717 # OK, works on sane cases. Now check whether nonexistent headers
3718 # can be detected and how.
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 #include <ac_nonexistent.h>
3727 if { (ac_try="$ac_cpp conftest.$ac_ext"
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3735 grep -v '^ *+' conftest.er1 >conftest.err
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } >/dev/null; then
3740 if test -s conftest.err; then
3741 ac_cpp_err=$ac_c_preproc_warn_flag
3742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3749 if test -z "$ac_cpp_err"; then
3750 # Broken: success on invalid input.
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 # Passes both tests.
3761 rm -f conftest.err conftest.$ac_ext
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then
3769 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3770 See \`config.log' for more details." >&5
3771 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3772 See \`config.log' for more details." >&2;}
3773 { (exit 1); exit 1; }; }
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3784 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3785 if test "${ac_cv_path_GREP+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 # Extract the first word of "grep ggrep" to use in msg output
3789 if test -z "$GREP"; then
3790 set dummy grep ggrep; ac_prog_name=$2
3791 if test "${ac_cv_path_GREP+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 ac_path_GREP_found=false
3795 # Loop through the user's path and test for each of PROGNAME-LIST
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800 test -z "$as_dir" && as_dir=.
3801 for ac_prog in grep ggrep; do
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3804 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3805 # Check for GNU ac_path_GREP and select it if it is found.
3806 # Check for GNU $ac_path_GREP
3807 case `"$ac_path_GREP" --version 2>&1` in
3809 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3812 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3815 cat "conftest.in" "conftest.in" >"conftest.tmp"
3816 mv "conftest.tmp" "conftest.in"
3817 cp "conftest.in" "conftest.nl"
3818 echo 'GREP' >> "conftest.nl"
3819 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3821 ac_count=`expr $ac_count + 1`
3822 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3823 # Best one so far, save it but keep looking for a better one
3824 ac_cv_path_GREP="$ac_path_GREP"
3825 ac_path_GREP_max=$ac_count
3827 # 10*(2^10) chars as input seems more than enough
3828 test $ac_count -gt 10 && break
3830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834 $ac_path_GREP_found && break 3
3844 GREP="$ac_cv_path_GREP"
3845 if test -z "$GREP"; then
3846 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3847 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3848 { (exit 1); exit 1; }; }
3852 ac_cv_path_GREP=$GREP
3857 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3858 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3859 GREP="$ac_cv_path_GREP"
3862 { echo "$as_me:$LINENO: checking for egrep" >&5
3863 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3864 if test "${ac_cv_path_EGREP+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3868 then ac_cv_path_EGREP="$GREP -E"
3870 # Extract the first word of "egrep" to use in msg output
3871 if test -z "$EGREP"; then
3872 set dummy egrep; ac_prog_name=$2
3873 if test "${ac_cv_path_EGREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 ac_path_EGREP_found=false
3877 # Loop through the user's path and test for each of PROGNAME-LIST
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in egrep; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3886 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3887 # Check for GNU ac_path_EGREP and select it if it is found.
3888 # Check for GNU $ac_path_EGREP
3889 case `"$ac_path_EGREP" --version 2>&1` in
3891 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 echo 'EGREP' >> "conftest.nl"
3901 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 ac_count=`expr $ac_count + 1`
3904 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_EGREP="$ac_path_EGREP"
3907 ac_path_EGREP_max=$ac_count
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916 $ac_path_EGREP_found && break 3
3926 EGREP="$ac_cv_path_EGREP"
3927 if test -z "$EGREP"; then
3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930 { (exit 1); exit 1; }; }
3934 ac_cv_path_EGREP=$EGREP
3940 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3941 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3942 EGREP="$ac_cv_path_EGREP"
3945 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3946 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3947 if test "${ac_cv_header_stdc+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 cat >conftest.$ac_ext <<_ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3969 rm -f conftest.$ac_objext
3970 if { (ac_try="$ac_compile"
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_compile") 2>conftest.er1
3978 grep -v '^ *+' conftest.er1 >conftest.err
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3984 { (case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_try") 2>&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (case "(($ac_try" in
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3999 (eval "$ac_try") 2>&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 ac_cv_header_stdc=yes
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 ac_cv_header_stdc=no
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 if test $ac_cv_header_stdc = yes; then
4014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4025 $EGREP "memchr" >/dev/null 2>&1; then
4028 ac_cv_header_stdc=no
4034 if test $ac_cv_header_stdc = yes; then
4035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4036 cat >conftest.$ac_ext <<_ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4046 $EGREP "free" >/dev/null 2>&1; then
4049 ac_cv_header_stdc=no
4055 if test $ac_cv_header_stdc = yes; then
4056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4057 if test "$cross_compiling" = yes; then
4060 cat >conftest.$ac_ext <<_ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4068 #if ((' ' & 0x0FF) == 0x020)
4069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4072 # define ISLOWER(c) \
4073 (('a' <= (c) && (c) <= 'i') \
4074 || ('j' <= (c) && (c) <= 'r') \
4075 || ('s' <= (c) && (c) <= 'z'))
4076 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4084 for (i = 0; i < 256; i++)
4085 if (XOR (islower (i), ISLOWER (i))
4086 || toupper (i) != TOUPPER (i))
4091 rm -f conftest$ac_exeext
4092 if { (ac_try="$ac_link"
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_link") 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4102 { (case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_try") 2>&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4113 echo "$as_me: program exited with status $ac_status" >&5
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4118 ac_cv_header_stdc=no
4120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4126 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4127 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4128 if test $ac_cv_header_stdc = yes; then
4130 cat >>confdefs.h <<\_ACEOF
4131 #define STDC_HEADERS 1
4136 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4146 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4147 inttypes.h stdint.h unistd.h
4149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 $ac_includes_default
4163 #include <$ac_header>
4165 rm -f conftest.$ac_objext
4166 if { (ac_try="$ac_compile"
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_try") 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 eval "$as_ac_Header=yes"
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 eval "$as_ac_Header=no"
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_res=`eval echo '${'$as_ac_Header'}'`
4210 { echo "$as_me:$LINENO: result: $ac_res" >&5
4211 echo "${ECHO_T}$ac_res" >&6; }
4212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4213 cat >>confdefs.h <<_ACEOF
4214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4222 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4223 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4224 if test "${ac_cv_c_bigendian+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 # See if sys/param.h defines the BYTE_ORDER macro.
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <sys/types.h>
4235 #include <sys/param.h>
4240 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4248 rm -f conftest.$ac_objext
4249 if { (ac_try="$ac_compile"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compile") 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest.$ac_objext'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 # It does; now see whether it defined to BIG_ENDIAN or not.
4283 cat >conftest.$ac_ext <<_ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289 #include <sys/types.h>
4290 #include <sys/param.h>
4295 #if BYTE_ORDER != BIG_ENDIAN
4303 rm -f conftest.$ac_objext
4304 if { (ac_try="$ac_compile"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_compile") 2>conftest.er1
4312 grep -v '^ *+' conftest.er1 >conftest.err
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try='test -s conftest.$ac_objext'
4328 { (case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_try") 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_cv_c_bigendian=yes
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_c_bigendian=no
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4350 # It does not; compile a test program.
4351 if test "$cross_compiling" = yes; then
4352 # try to guess the endianness by grepping values into an object file
4353 ac_cv_c_bigendian=unknown
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4361 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4362 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4363 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4364 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4365 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4369 _ascii (); _ebcdic ();
4374 rm -f conftest.$ac_objext
4375 if { (ac_try="$ac_compile"
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_compile") 2>conftest.er1
4383 grep -v '^ *+' conftest.er1 >conftest.err
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4389 { (case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_try") 2>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_try") 2>&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4409 ac_cv_c_bigendian=yes
4411 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4412 if test "$ac_cv_c_bigendian" = unknown; then
4413 ac_cv_c_bigendian=no
4415 # finding both strings is unlikely to happen, but who knows?
4416 ac_cv_c_bigendian=unknown
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 $ac_includes_default
4439 /* Are we little or big endian? From Harbison&Steele. */
4443 char c[sizeof (long int)];
4446 return u.c[sizeof (long int) - 1] == 1;
4452 rm -f conftest$ac_exeext
4453 if { (ac_try="$ac_link"
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_link") 2>&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_cv_c_bigendian=no
4474 echo "$as_me: program exited with status $ac_status" >&5
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4479 ac_cv_c_bigendian=yes
4481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4490 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4491 case $ac_cv_c_bigendian in
4499 { { echo "$as_me:$LINENO: error: unknown endianness
4500 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4501 echo "$as_me: error: unknown endianness
4502 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4503 { (exit 1); exit 1; }; } ;;
4507 if test "$cross_compiling" = yes; then
4508 LLVM_CROSS_COMPILING=1
4511 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4512 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4513 if test "${ac_cv_build_exeext+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4517 ac_cv_build_exeext=.exe
4519 ac_build_prefix=${build_alias}-
4521 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4522 set dummy ${ac_build_prefix}gcc; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 if test -n "$BUILD_CC"; then
4529 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 BUILD_CC=$ac_cv_prog_BUILD_CC
4549 if test -n "$BUILD_CC"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4558 if test -z "$BUILD_CC"; then
4559 # Extract the first word of "gcc", so it can be a program name with args.
4560 set dummy gcc; ac_word=$2
4561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4563 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 if test -n "$BUILD_CC"; then
4567 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_BUILD_CC="gcc"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 BUILD_CC=$ac_cv_prog_BUILD_CC
4587 if test -n "$BUILD_CC"; then
4588 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4589 echo "${ECHO_T}$BUILD_CC" >&6; }
4591 { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4596 if test -z "$BUILD_CC"; then
4597 # Extract the first word of "cc", so it can be a program name with args.
4598 set dummy cc; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 if test -n "$BUILD_CC"; then
4605 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4616 ac_prog_rejected=yes
4619 ac_cv_prog_BUILD_CC="cc"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 if test $ac_prog_rejected = yes; then
4628 # We found a bogon in the path, so make sure we never use it.
4629 set dummy $ac_cv_prog_BUILD_CC
4631 if test $# != 0; then
4632 # We chose a different compiler from the bogus one.
4633 # However, it has the same basename, so the bogon will be chosen
4634 # first if we set BUILD_CC to just the basename; use the full file name.
4636 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4641 BUILD_CC=$ac_cv_prog_BUILD_CC
4642 if test -n "$BUILD_CC"; then
4643 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4644 echo "${ECHO_T}$BUILD_CC" >&6; }
4646 { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4653 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4654 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4655 { (exit 1); exit 1; }; }
4656 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4658 echo 'int main () { return 0; }' > conftest.$ac_ext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4661 (eval $ac_build_link) 2>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; then
4665 for file in conftest.*; do
4667 *.c | *.o | *.obj | *.dSYM) ;;
4668 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4672 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4673 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4674 { (exit 1); exit 1; }; }
4677 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4682 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4683 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4684 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4685 ac_build_exeext=$BUILD_EXEEXT
4687 ac_build_prefix=${build_alias}-
4688 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4689 set dummy ${ac_build_prefix}g++; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 if test -n "$BUILD_CXX"; then
4696 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716 if test -n "$BUILD_CXX"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718 echo "${ECHO_T}$BUILD_CXX" >&6; }
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4725 if test -z "$BUILD_CXX"; then
4726 # Extract the first word of "g++", so it can be a program name with args.
4727 set dummy g++; ac_word=$2
4728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 if test -n "$BUILD_CXX"; then
4734 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_BUILD_CXX="g++"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4754 if test -n "$BUILD_CXX"; then
4755 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4756 echo "${ECHO_T}$BUILD_CXX" >&6; }
4758 { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4763 if test -z "$BUILD_CXX"; then
4764 # Extract the first word of "c++", so it can be a program name with args.
4765 set dummy c++; ac_word=$2
4766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4768 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 if test -n "$BUILD_CXX"; then
4772 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4783 ac_prog_rejected=yes
4786 ac_cv_prog_BUILD_CXX="c++"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 if test $ac_prog_rejected = yes; then
4795 # We found a bogon in the path, so make sure we never use it.
4796 set dummy $ac_cv_prog_BUILD_CXX
4798 if test $# != 0; then
4799 # We chose a different compiler from the bogus one.
4800 # However, it has the same basename, so the bogon will be chosen
4801 # first if we set BUILD_CXX to just the basename; use the full file name.
4803 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4808 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4809 if test -n "$BUILD_CXX"; then
4810 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4811 echo "${ECHO_T}$BUILD_CXX" >&6; }
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4821 LLVM_CROSS_COMPILING=0
4825 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4836 # Check whether --enable-optimized was given.
4837 if test "${enable_optimized+set}" = set; then
4838 enableval=$enable_optimized;
4843 if test ${enableval} = "no" ; then
4847 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4851 # Check whether --enable-profiling was given.
4852 if test "${enable_profiling+set}" = set; then
4853 enableval=$enable_profiling;
4858 if test ${enableval} = "no" ; then
4862 ENABLE_PROFILING=ENABLE_PROFILING=1
4866 # Check whether --enable-assertions was given.
4867 if test "${enable_assertions+set}" = set; then
4868 enableval=$enable_assertions;
4873 if test ${enableval} = "yes" ; then
4877 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4881 # Check whether --enable-expensive-checks was given.
4882 if test "${enable_expensive_checks+set}" = set; then
4883 enableval=$enable_expensive_checks;
4888 if test ${enableval} = "yes" ; then
4889 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4891 EXPENSIVE_CHECKS=yes
4894 ENABLE_EXPENSIVE_CHECKS=
4900 # Check whether --enable-debug-runtime was given.
4901 if test "${enable_debug_runtime+set}" = set; then
4902 enableval=$enable_debug_runtime;
4907 if test ${enableval} = "no" ; then
4911 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4915 # Check whether --enable-debug-symbols was given.
4916 if test "${enable_debug_symbols+set}" = set; then
4917 enableval=$enable_debug_symbols;
4922 if test ${enableval} = "no" ; then
4926 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4930 # Check whether --enable-jit was given.
4931 if test "${enable_jit+set}" = set; then
4932 enableval=$enable_jit;
4937 if test ${enableval} = "no"
4942 case "$llvm_cv_target_arch" in
4943 x86) TARGET_HAS_JIT=1
4945 Sparc) TARGET_HAS_JIT=0
4947 PowerPC) TARGET_HAS_JIT=1
4949 x86_64) TARGET_HAS_JIT=1
4951 Alpha) TARGET_HAS_JIT=1
4953 ARM) TARGET_HAS_JIT=1
4955 Mips) TARGET_HAS_JIT=0
4957 PIC16) TARGET_HAS_JIT=0
4959 XCore) TARGET_HAS_JIT=0
4961 MSP430) TARGET_HAS_JIT=0
4963 SystemZ) TARGET_HAS_JIT=0
4965 Blackfin) TARGET_HAS_JIT=0
4972 # Check whether --enable-doxygen was given.
4973 if test "${enable_doxygen+set}" = set; then
4974 enableval=$enable_doxygen;
4979 case "$enableval" in
4980 yes) ENABLE_DOXYGEN=1
4982 no) ENABLE_DOXYGEN=0
4984 default) ENABLE_DOXYGEN=0
4986 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4987 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4988 { (exit 1); exit 1; }; } ;;
4991 # Check whether --enable-threads was given.
4992 if test "${enable_threads+set}" = set; then
4993 enableval=$enable_threads;
4998 case "$enableval" in
4999 yes) ENABLE_THREADS=1
5001 no) ENABLE_THREADS=0
5003 default) ENABLE_THREADS=1
5005 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5006 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5007 { (exit 1); exit 1; }; } ;;
5010 cat >>confdefs.h <<_ACEOF
5011 #define ENABLE_THREADS $ENABLE_THREADS
5015 # Check whether --enable-pic was given.
5016 if test "${enable_pic+set}" = set; then
5017 enableval=$enable_pic;
5022 case "$enableval" in
5027 default) ENABLE_PIC=1
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5034 cat >>confdefs.h <<_ACEOF
5035 #define ENABLE_PIC $ENABLE_PIC
5040 # Check whether --enable-targets was given.
5041 if test "${enable_targets+set}" = set; then
5042 enableval=$enable_targets;
5047 if test "$enableval" = host-only ; then
5050 case "$enableval" in
5051 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5052 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5054 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5055 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5056 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5057 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5058 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5059 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5060 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5061 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5062 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5063 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5064 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5065 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5066 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5067 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5068 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5069 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5070 host) case "$llvm_cv_target_arch" in
5071 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5072 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5073 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5074 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5075 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5076 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5077 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5078 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5079 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5080 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5081 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5082 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5083 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5084 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5085 echo "$as_me: error: Can not set target to build" >&2;}
5086 { (exit 1); exit 1; }; } ;;
5088 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5089 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5090 { (exit 1); exit 1; }; } ;;
5095 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5098 # Determine whether we are building LLVM support for the native architecture.
5099 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5100 for a_target in $TARGETS_TO_BUILD; do
5101 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5102 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5104 cat >>confdefs.h <<_ACEOF
5105 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5111 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5112 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5113 LLVM_ENUM_TARGETS=""
5114 LLVM_ENUM_ASM_PRINTERS=""
5115 LLVM_ENUM_ASM_PARSERS=""
5116 for target_to_build in $TARGETS_TO_BUILD; do
5117 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5118 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5119 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5121 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5122 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5129 # Check whether --enable-cbe-printf-a was given.
5130 if test "${enable_cbe_printf_a+set}" = set; then
5131 enableval=$enable_cbe_printf_a;
5136 case "$enableval" in
5137 yes) ENABLE_CBE_PRINTF_A=1
5139 no) ENABLE_CBE_PRINTF_A=0
5141 default) ENABLE_CBE_PRINTF_A=1
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5148 cat >>confdefs.h <<_ACEOF
5149 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5154 # Check whether --with-llvmgccdir was given.
5155 if test "${with_llvmgccdir+set}" = set; then
5156 withval=$with_llvmgccdir;
5162 default) WITH_LLVMGCCDIR=default ;;
5163 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5164 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5165 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5166 { (exit 1); exit 1; }; } ;;
5170 # Check whether --with-llvmgcc was given.
5171 if test "${with_llvmgcc+set}" = set; then
5172 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5178 # Check whether --with-llvmgxx was given.
5179 if test "${with_llvmgxx+set}" = set; then
5180 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5185 if test -n "$LLVMGCC"; then
5186 LLVMGCCCOMMAND="$LLVMGCC"
5189 if test -n "$LLVMGXX"; then
5190 LLVMGXXCOMMAND="$LLVMGXX"
5193 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5194 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5195 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5196 { (exit 1); exit 1; }; };
5199 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5200 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5201 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5202 { (exit 1); exit 1; }; };
5206 # Check whether --with-optimize-option was given.
5207 if test "${with_optimize_option+set}" = set; then
5208 withval=$with_optimize_option;
5213 { echo "$as_me:$LINENO: checking optimization flags" >&5
5214 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5217 case "$llvm_cv_os_type" in
5218 MingW) optimize_option=-O3 ;;
5219 *) optimize_option=-O2 ;;
5221 *) optimize_option="$withval" ;;
5223 OPTIMIZE_OPTION=$optimize_option
5225 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5226 echo "${ECHO_T}$optimize_option" >&6; }
5229 # Check whether --with-extra-options was given.
5230 if test "${with_extra_options+set}" = set; then
5231 withval=$with_extra_options;
5237 default) EXTRA_OPTIONS= ;;
5238 *) EXTRA_OPTIONS=$withval ;;
5240 EXTRA_OPTIONS=$EXTRA_OPTIONS
5243 # Check whether --enable-bindings was given.
5244 if test "${enable_bindings+set}" = set; then
5245 enableval=$enable_bindings;
5250 BINDINGS_TO_BUILD=""
5251 case "$enableval" in
5252 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5253 all ) BINDINGS_TO_BUILD="ocaml" ;;
5254 none | no) BINDINGS_TO_BUILD="" ;;
5255 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5256 case "$a_binding" in
5257 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5258 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5259 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5267 # Check whether --with-ocaml-libdir was given.
5268 if test "${with_ocaml_libdir+set}" = set; then
5269 withval=$with_ocaml_libdir;
5275 auto) with_ocaml_libdir="$withval" ;;
5276 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5277 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5278 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5279 { (exit 1); exit 1; }; } ;;
5283 # Check whether --with-c-include-dir was given.
5284 if test "${with_c_include_dir+set}" = set; then
5285 withval=$with_c_include_dir;
5291 cat >>confdefs.h <<_ACEOF
5292 #define C_INCLUDE_DIRS "$withval"
5297 # Check whether --with-cxx-include-root was given.
5298 if test "${with_cxx_include_root+set}" = set; then
5299 withval=$with_cxx_include_root;
5305 cat >>confdefs.h <<_ACEOF
5306 #define CXX_INCLUDE_ROOT "$withval"
5311 # Check whether --with-cxx-include-arch was given.
5312 if test "${with_cxx_include_arch+set}" = set; then
5313 withval=$with_cxx_include_arch;
5319 cat >>confdefs.h <<_ACEOF
5320 #define CXX_INCLUDE_ARCH "$withval"
5325 # Check whether --with-cxx-include-32bit-dir was given.
5326 if test "${with_cxx_include_32bit_dir+set}" = set; then
5327 withval=$with_cxx_include_32bit_dir;
5333 cat >>confdefs.h <<_ACEOF
5334 #define CXX_INCLUDE_32BIT_DIR "$withval"
5339 # Check whether --with-cxx-include-64bit-dir was given.
5340 if test "${with_cxx_include_64bit_dir+set}" = set; then
5341 withval=$with_cxx_include_64bit_dir;
5347 cat >>confdefs.h <<_ACEOF
5348 #define CXX_INCLUDE_64BIT_DIR "$withval"
5353 # Check whether --with-binutils-include was given.
5354 if test "${with_binutils_include+set}" = set; then
5355 withval=$with_binutils_include;
5361 default) WITH_BINUTILS_INCDIR=default ;;
5362 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5363 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5364 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5365 { (exit 1); exit 1; }; } ;;
5367 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5368 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5370 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5371 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5372 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5373 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5374 { (exit 1); exit 1; }; };
5378 # Check whether --enable-libffi was given.
5379 if test "${enable_libffi+set}" = set; then
5380 enableval=$enable_libffi;
5385 case "$enableval" in
5386 yes) llvm_cv_enable_libffi="yes" ;;
5387 no) llvm_cv_enable_libffi="no" ;;
5388 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5389 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5390 { (exit 1); exit 1; }; } ;;
5393 if test "$llvm_cv_os_type" = "Win32" ; then
5399 # Check whether --enable-llvmc-dynamic was given.
5400 if test "${enable_llvmc_dynamic+set}" = set; then
5401 enableval=$enable_llvmc_dynamic;
5403 enableval=$llvmc_dynamic
5406 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5407 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5410 ENABLE_LLVMC_DYNAMIC=
5414 # Check whether --enable-llvmc-dynamic-plugins was given.
5415 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5416 enableval=$enable_llvmc_dynamic_plugins;
5421 if test ${enableval} = "yes" ; then
5422 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5425 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5436 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5437 # On Suns, sometimes $CPP names a directory.
5438 if test -n "$CPP" && test -d "$CPP"; then
5441 if test -z "$CPP"; then
5442 if test "${ac_cv_prog_CPP+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 # Double quotes because CPP needs to be expanded
5446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5449 for ac_c_preproc_warn_flag in '' yes
5451 # Use a header file that comes with gcc, so configuring glibc
5452 # with a fresh cross-compiler works.
5453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5454 # <limits.h> exists even on freestanding compilers.
5455 # On the NeXT, cc -E runs the code through the compiler's parser,
5456 # not just through cpp. "Syntax error" is here to catch this case.
5457 cat >conftest.$ac_ext <<_ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5464 # include <limits.h>
5466 # include <assert.h>
5470 if { (ac_try="$ac_cpp conftest.$ac_ext"
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } >/dev/null; then
5483 if test -s conftest.err; then
5484 ac_cpp_err=$ac_c_preproc_warn_flag
5485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492 if test -z "$ac_cpp_err"; then
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 # Broken: fails on valid input.
5502 rm -f conftest.err conftest.$ac_ext
5504 # OK, works on sane cases. Now check whether nonexistent headers
5505 # can be detected and how.
5506 cat >conftest.$ac_ext <<_ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <ac_nonexistent.h>
5514 if { (ac_try="$ac_cpp conftest.$ac_ext"
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5522 grep -v '^ *+' conftest.er1 >conftest.err
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } >/dev/null; then
5527 if test -s conftest.err; then
5528 ac_cpp_err=$ac_c_preproc_warn_flag
5529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5536 if test -z "$ac_cpp_err"; then
5537 # Broken: success on invalid input.
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 # Passes both tests.
5548 rm -f conftest.err conftest.$ac_ext
5551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5552 rm -f conftest.err conftest.$ac_ext
5553 if $ac_preproc_ok; then
5565 { echo "$as_me:$LINENO: result: $CPP" >&5
5566 echo "${ECHO_T}$CPP" >&6; }
5568 for ac_c_preproc_warn_flag in '' yes
5570 # Use a header file that comes with gcc, so configuring glibc
5571 # with a fresh cross-compiler works.
5572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5573 # <limits.h> exists even on freestanding compilers.
5574 # On the NeXT, cc -E runs the code through the compiler's parser,
5575 # not just through cpp. "Syntax error" is here to catch this case.
5576 cat >conftest.$ac_ext <<_ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5583 # include <limits.h>
5585 # include <assert.h>
5589 if { (ac_try="$ac_cpp conftest.$ac_ext"
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5597 grep -v '^ *+' conftest.er1 >conftest.err
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } >/dev/null; then
5602 if test -s conftest.err; then
5603 ac_cpp_err=$ac_c_preproc_warn_flag
5604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5611 if test -z "$ac_cpp_err"; then
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 # Broken: fails on valid input.
5621 rm -f conftest.err conftest.$ac_ext
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <ac_nonexistent.h>
5633 if { (ac_try="$ac_cpp conftest.$ac_ext"
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } >/dev/null; then
5646 if test -s conftest.err; then
5647 ac_cpp_err=$ac_c_preproc_warn_flag
5648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5655 if test -z "$ac_cpp_err"; then
5656 # Broken: success on invalid input.
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5662 # Passes both tests.
5667 rm -f conftest.err conftest.$ac_ext
5670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5671 rm -f conftest.err conftest.$ac_ext
5672 if $ac_preproc_ok; then
5675 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5676 See \`config.log' for more details." >&5
5677 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5678 See \`config.log' for more details." >&2;}
5679 { (exit 1); exit 1; }; }
5683 ac_cpp='$CPP $CPPFLAGS'
5684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5689 ac_cpp='$CPP $CPPFLAGS'
5690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693 if test -n "$ac_tool_prefix"; then
5696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700 if test "${ac_cv_prog_CC+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 if test -n "$CC"; then
5704 ac_cv_prog_CC="$CC" # Let the user override the test.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 if test -n "$CC"; then
5725 { echo "$as_me:$LINENO: result: $CC" >&5
5726 echo "${ECHO_T}$CC" >&6; }
5728 { echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6; }
5733 test -n "$CC" && break
5736 if test -z "$CC"; then
5740 # Extract the first word of "$ac_prog", so it can be a program name with args.
5741 set dummy $ac_prog; ac_word=$2
5742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test -n "$ac_ct_CC"; then
5748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5757 ac_cv_prog_ac_ct_CC="$ac_prog"
5758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5768 if test -n "$ac_ct_CC"; then
5769 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5770 echo "${ECHO_T}$ac_ct_CC" >&6; }
5772 { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5777 test -n "$ac_ct_CC" && break
5780 if test "x$ac_ct_CC" = x; then
5783 case $cross_compiling:$ac_tool_warned in
5785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5786 whose name does not start with the host triplet. If you think this
5787 configuration is useful to you, please write to autoconf@gnu.org." >&5
5788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5789 whose name does not start with the host triplet. If you think this
5790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5791 ac_tool_warned=yes ;;
5798 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5799 See \`config.log' for more details." >&5
5800 echo "$as_me: error: no acceptable C compiler found in \$PATH
5801 See \`config.log' for more details." >&2;}
5802 { (exit 1); exit 1; }; }
5804 # Provide some information about the compiler.
5805 echo "$as_me:$LINENO: checking for C compiler version" >&5
5806 ac_compiler=`set X $ac_compile; echo $2`
5807 { (ac_try="$ac_compiler --version >&5"
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compiler --version >&5") 2>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }
5817 { (ac_try="$ac_compiler -v >&5"
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compiler -v >&5") 2>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }
5827 { (ac_try="$ac_compiler -V >&5"
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compiler -V >&5") 2>&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }
5838 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5839 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5840 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 cat >conftest.$ac_ext <<_ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_compile") 2>conftest.er1
5870 grep -v '^ *+' conftest.er1 >conftest.err
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5876 { (case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_try") 2>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try='test -s conftest.$ac_objext'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5907 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5908 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5909 GCC=`test $ac_compiler_gnu = yes && echo yes`
5910 ac_test_CFLAGS=${CFLAGS+set}
5911 ac_save_CFLAGS=$CFLAGS
5912 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5914 if test "${ac_cv_prog_cc_g+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 ac_save_c_werror_flag=$ac_c_werror_flag
5918 ac_c_werror_flag=yes
5921 cat >conftest.$ac_ext <<_ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5936 rm -f conftest.$ac_objext
5937 if { (ac_try="$ac_compile"
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_compile") 2>conftest.er1
5945 grep -v '^ *+' conftest.er1 >conftest.err
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5951 { (case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_try") 2>&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest.$ac_objext'
5961 { (case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_try") 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6006 { (case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_try") 2>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest.$ac_objext'
6016 { (case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_try") 2>&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6030 ac_c_werror_flag=$ac_save_c_werror_flag
6032 cat >conftest.$ac_ext <<_ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compile") 2>conftest.er1
6056 grep -v '^ *+' conftest.er1 >conftest.err
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } &&
6061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6062 { (case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_try") 2>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; } &&
6071 { ac_try='test -s conftest.$ac_objext'
6072 { (case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_try") 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 ac_c_werror_flag=$ac_save_c_werror_flag
6098 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6100 if test "$ac_test_CFLAGS" = set; then
6101 CFLAGS=$ac_save_CFLAGS
6102 elif test $ac_cv_prog_cc_g = yes; then
6103 if test "$GCC" = yes; then
6109 if test "$GCC" = yes; then
6115 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6116 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_cc_c89+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 ac_cv_prog_cc_c89=no
6122 cat >conftest.$ac_ext <<_ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6130 #include <sys/types.h>
6131 #include <sys/stat.h>
6132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6133 struct buf { int x; };
6134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6135 static char *e (p, i)
6141 static char *f (char * (*g) (char **, int), char **p, ...)
6146 s = g (p, va_arg (v,int));
6151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6152 function prototypes and stuff, but not '\xHH' hex character constants.
6153 These don't provoke an error unfortunately, instead are silently treated
6154 as 'x'. The following induces an error, until -std is added to get
6155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6156 array size at least. It's necessary to write '\x00'==0 to get something
6157 that's true only with -std. */
6158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6161 inside strings and character constants. */
6163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6165 int test (int i, double x);
6166 struct s1 {int (*f) (int a);};
6167 struct s2 {int (*f) (double a);};
6168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6182 CC="$ac_save_CC $ac_arg"
6183 rm -f conftest.$ac_objext
6184 if { (ac_try="$ac_compile"
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_compile") 2>conftest.er1
6192 grep -v '^ *+' conftest.er1 >conftest.err
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6198 { (case "(($ac_try" in
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_try") 2>&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; } &&
6207 { ac_try='test -s conftest.$ac_objext'
6208 { (case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_try") 2>&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_prog_cc_c89=$ac_arg
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6225 rm -f core conftest.err conftest.$ac_objext
6226 test "x$ac_cv_prog_cc_c89" != "xno" && break
6228 rm -f conftest.$ac_ext
6233 case "x$ac_cv_prog_cc_c89" in
6235 { echo "$as_me:$LINENO: result: none needed" >&5
6236 echo "${ECHO_T}none needed" >&6; } ;;
6238 { echo "$as_me:$LINENO: result: unsupported" >&5
6239 echo "${ECHO_T}unsupported" >&6; } ;;
6241 CC="$CC $ac_cv_prog_cc_c89"
6242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6243 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6248 ac_cpp='$CPP $CPPFLAGS'
6249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6254 ac_cpp='$CXXCPP $CPPFLAGS'
6255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6258 if test -z "$CXX"; then
6259 if test -n "$CCC"; then
6262 if test -n "$ac_tool_prefix"; then
6265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_prog_CXX+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 if test -n "$CXX"; then
6273 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 if test -n "$CXX"; then
6294 { echo "$as_me:$LINENO: result: $CXX" >&5
6295 echo "${ECHO_T}$CXX" >&6; }
6297 { echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6; }
6302 test -n "$CXX" && break
6305 if test -z "$CXX"; then
6309 # Extract the first word of "$ac_prog", so it can be a program name with args.
6310 set dummy $ac_prog; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 if test -n "$ac_ct_CXX"; then
6317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_prog_ac_ct_CXX="$ac_prog"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6337 if test -n "$ac_ct_CXX"; then
6338 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6339 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6346 test -n "$ac_ct_CXX" && break
6349 if test "x$ac_ct_CXX" = x; then
6352 case $cross_compiling:$ac_tool_warned in
6354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6355 whose name does not start with the host triplet. If you think this
6356 configuration is useful to you, please write to autoconf@gnu.org." >&5
6357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6358 whose name does not start with the host triplet. If you think this
6359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6360 ac_tool_warned=yes ;;
6368 # Provide some information about the compiler.
6369 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6370 ac_compiler=`set X $ac_compile; echo $2`
6371 { (ac_try="$ac_compiler --version >&5"
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_compiler --version >&5") 2>&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }
6381 { (ac_try="$ac_compiler -v >&5"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compiler -v >&5") 2>&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }
6391 { (ac_try="$ac_compiler -V >&5"
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compiler -V >&5") 2>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }
6402 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6403 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6404 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6425 rm -f conftest.$ac_objext
6426 if { (ac_try="$ac_compile"
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_compile") 2>conftest.er1
6434 grep -v '^ *+' conftest.er1 >conftest.err
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
6439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6440 { (case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_try") 2>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try='test -s conftest.$ac_objext'
6450 { (case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_try") 2>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; }; then
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6471 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6472 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6473 GXX=`test $ac_compiler_gnu = yes && echo yes`
6474 ac_test_CXXFLAGS=${CXXFLAGS+set}
6475 ac_save_CXXFLAGS=$CXXFLAGS
6476 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6477 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_cxx_g+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6482 ac_cxx_werror_flag=yes
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6515 { (case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_try") 2>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest.$ac_objext'
6525 { (case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_try") 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6534 ac_cv_prog_cxx_g=yes
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6555 rm -f conftest.$ac_objext
6556 if { (ac_try="$ac_compile"
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 (eval "$ac_compile") 2>conftest.er1
6564 grep -v '^ *+' conftest.er1 >conftest.err
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6570 { (case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_try") 2>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try='test -s conftest.$ac_objext'
6580 { (case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_try") 2>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6596 cat >conftest.$ac_ext <<_ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6611 rm -f conftest.$ac_objext
6612 if { (ac_try="$ac_compile"
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_compile") 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6626 { (case "(($ac_try" in
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_try") 2>&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_try") 2>&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
6645 ac_cv_prog_cxx_g=yes
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6662 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6663 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6664 if test "$ac_test_CXXFLAGS" = set; then
6665 CXXFLAGS=$ac_save_CXXFLAGS
6666 elif test $ac_cv_prog_cxx_g = yes; then
6667 if test "$GXX" = yes; then
6673 if test "$GXX" = yes; then
6680 ac_cpp='$CPP $CPPFLAGS'
6681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6686 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6687 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6688 if test "${lt_cv_path_NM+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 if test -n "$NM"; then
6692 # Let the user override the test.
6695 lt_nm_to_check="${ac_tool_prefix}nm"
6696 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6697 lt_nm_to_check="$lt_nm_to_check nm"
6699 for lt_tmp_nm in $lt_nm_to_check; do
6700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6701 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6703 test -z "$ac_dir" && ac_dir=.
6704 tmp_nm="$ac_dir/$lt_tmp_nm"
6705 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6706 # Check to see if the nm accepts a BSD-compat flag.
6707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6708 # nm: unknown option "B" ignored
6709 # Tru64's nm complains that /dev/null is an invalid object file
6710 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6711 */dev/null* | *'Invalid file or object type'*)
6712 lt_cv_path_NM="$tmp_nm -B"
6716 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6718 lt_cv_path_NM="$tmp_nm -p"
6722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6723 continue # so that we can try to find one that supports BSD flags
6732 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6735 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6736 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6741 { echo "$as_me:$LINENO: checking for GNU make" >&5
6742 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6743 if test "${llvm_cv_gnu_make_command+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 llvm_cv_gnu_make_command=''
6747 for a in "$MAKE" make gmake gnumake ; do
6748 if test -z "$a" ; then continue ; fi ;
6749 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6751 llvm_cv_gnu_make_command=$a ;
6756 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6757 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6758 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6762 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6763 echo "${ECHO_T}\"Not found\"" >&6; };
6767 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6768 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6770 if test "$LN_S" = "ln -s"; then
6771 { echo "$as_me:$LINENO: result: yes" >&5
6772 echo "${ECHO_T}yes" >&6; }
6774 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6775 echo "${ECHO_T}no, using $LN_S" >&6; }
6778 # Extract the first word of "cmp", so it can be a program name with args.
6779 set dummy cmp; ac_word=$2
6780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782 if test "${ac_cv_path_CMP+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6810 if test -n "$CMP"; then
6811 { echo "$as_me:$LINENO: result: $CMP" >&5
6812 echo "${ECHO_T}$CMP" >&6; }
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6819 # Extract the first word of "cp", so it can be a program name with args.
6820 set dummy cp; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_CP+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6851 if test -n "$CP"; then
6852 { echo "$as_me:$LINENO: result: $CP" >&5
6853 echo "${ECHO_T}$CP" >&6; }
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6860 # Extract the first word of "date", so it can be a program name with args.
6861 set dummy date; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_path_DATE+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6891 DATE=$ac_cv_path_DATE
6892 if test -n "$DATE"; then
6893 { echo "$as_me:$LINENO: result: $DATE" >&5
6894 echo "${ECHO_T}$DATE" >&6; }
6896 { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6901 # Extract the first word of "find", so it can be a program name with args.
6902 set dummy find; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_path_FIND+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6920 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6932 FIND=$ac_cv_path_FIND
6933 if test -n "$FIND"; then
6934 { echo "$as_me:$LINENO: result: $FIND" >&5
6935 echo "${ECHO_T}$FIND" >&6; }
6937 { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6942 # Extract the first word of "grep", so it can be a program name with args.
6943 set dummy grep; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_path_GREP+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6973 GREP=$ac_cv_path_GREP
6974 if test -n "$GREP"; then
6975 { echo "$as_me:$LINENO: result: $GREP" >&5
6976 echo "${ECHO_T}$GREP" >&6; }
6978 { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6983 # Extract the first word of "mkdir", so it can be a program name with args.
6984 set dummy mkdir; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_path_MKDIR+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7014 MKDIR=$ac_cv_path_MKDIR
7015 if test -n "$MKDIR"; then
7016 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7017 echo "${ECHO_T}$MKDIR" >&6; }
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7024 # Extract the first word of "mv", so it can be a program name with args.
7025 set dummy mv; ac_word=$2
7026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028 if test "${ac_cv_path_MV+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7056 if test -n "$MV"; then
7057 { echo "$as_me:$LINENO: result: $MV" >&5
7058 echo "${ECHO_T}$MV" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070 if test "${ac_cv_prog_RANLIB+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 if test -n "$RANLIB"; then
7074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 RANLIB=$ac_cv_prog_RANLIB
7094 if test -n "$RANLIB"; then
7095 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7096 echo "${ECHO_T}$RANLIB" >&6; }
7098 { echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6; }
7104 if test -z "$ac_cv_prog_RANLIB"; then
7105 ac_ct_RANLIB=$RANLIB
7106 # Extract the first word of "ranlib", so it can be a program name with args.
7107 set dummy ranlib; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 if test -n "$ac_ct_RANLIB"; then
7114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7123 ac_cv_prog_ac_ct_RANLIB="ranlib"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7134 if test -n "$ac_ct_RANLIB"; then
7135 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7136 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7138 { echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6; }
7142 if test "x$ac_ct_RANLIB" = x; then
7145 case $cross_compiling:$ac_tool_warned in
7147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet. If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&5
7150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7151 whose name does not start with the host triplet. If you think this
7152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7153 ac_tool_warned=yes ;;
7155 RANLIB=$ac_ct_RANLIB
7158 RANLIB="$ac_cv_prog_RANLIB"
7161 # Extract the first word of "rm", so it can be a program name with args.
7162 set dummy rm; 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_RM+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cv_path_RM="$RM" # 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_RM="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7193 if test -n "$RM"; then
7194 { echo "$as_me:$LINENO: result: $RM" >&5
7195 echo "${ECHO_T}$RM" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7202 # Extract the first word of "sed", so it can be a program name with args.
7203 set dummy sed; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_SED+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7234 if test -n "$SED"; then
7235 { echo "$as_me:$LINENO: result: $SED" >&5
7236 echo "${ECHO_T}$SED" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7243 # Extract the first word of "tar", so it can be a program name with args.
7244 set dummy tar; ac_word=$2
7245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247 if test "${ac_cv_path_TAR+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7275 if test -n "$TAR"; then
7276 { echo "$as_me:$LINENO: result: $TAR" >&5
7277 echo "${ECHO_T}$TAR" >&6; }
7279 { echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6; }
7284 # Extract the first word of "pwd", so it can be a program name with args.
7285 set dummy pwd; ac_word=$2
7286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288 if test "${ac_cv_path_BINPWD+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7315 BINPWD=$ac_cv_path_BINPWD
7316 if test -n "$BINPWD"; then
7317 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7318 echo "${ECHO_T}$BINPWD" >&6; }
7320 { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7326 # Extract the first word of "Graphviz", so it can be a program name with args.
7327 set dummy Graphviz; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7357 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7358 if test -n "$GRAPHVIZ"; then
7359 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7360 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7362 { echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6; }
7367 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7369 cat >>confdefs.h <<\_ACEOF
7370 #define HAVE_GRAPHVIZ 1
7373 if test "$llvm_cv_os_type" = "MingW" ; then
7374 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7377 cat >>confdefs.h <<_ACEOF
7378 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7382 # Extract the first word of "dot", so it can be a program name with args.
7383 set dummy dot; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_path_DOT+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7414 if test -n "$DOT"; then
7415 { echo "$as_me:$LINENO: result: $DOT" >&5
7416 echo "${ECHO_T}$DOT" >&6; }
7418 { echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6; }
7423 if test "$DOT" != "echo dot" ; then
7425 cat >>confdefs.h <<\_ACEOF
7429 if test "$llvm_cv_os_type" = "MingW" ; then
7430 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7433 cat >>confdefs.h <<_ACEOF
7434 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7438 # Extract the first word of "fdp", so it can be a program name with args.
7439 set dummy fdp; ac_word=$2
7440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7442 if test "${ac_cv_path_FDP+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7470 if test -n "$FDP"; then
7471 { echo "$as_me:$LINENO: result: $FDP" >&5
7472 echo "${ECHO_T}$FDP" >&6; }
7474 { echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6; }
7479 if test "$FDP" != "echo fdp" ; then
7481 cat >>confdefs.h <<\_ACEOF
7485 if test "$llvm_cv_os_type" = "MingW" ; then
7486 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7489 cat >>confdefs.h <<_ACEOF
7490 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7494 # Extract the first word of "neato", so it can be a program name with args.
7495 set dummy neato; ac_word=$2
7496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498 if test "${ac_cv_path_NEATO+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7525 NEATO=$ac_cv_path_NEATO
7526 if test -n "$NEATO"; then
7527 { echo "$as_me:$LINENO: result: $NEATO" >&5
7528 echo "${ECHO_T}$NEATO" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7535 if test "$NEATO" != "echo neato" ; then
7537 cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_NEATO 1
7541 if test "$llvm_cv_os_type" = "MingW" ; then
7542 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7545 cat >>confdefs.h <<_ACEOF
7546 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7550 # Extract the first word of "twopi", so it can be a program name with args.
7551 set dummy twopi; ac_word=$2
7552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7554 if test "${ac_cv_path_TWOPI+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7581 TWOPI=$ac_cv_path_TWOPI
7582 if test -n "$TWOPI"; then
7583 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7584 echo "${ECHO_T}$TWOPI" >&6; }
7586 { echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6; }
7591 if test "$TWOPI" != "echo twopi" ; then
7593 cat >>confdefs.h <<\_ACEOF
7594 #define HAVE_TWOPI 1
7597 if test "$llvm_cv_os_type" = "MingW" ; then
7598 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7601 cat >>confdefs.h <<_ACEOF
7602 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7606 # Extract the first word of "circo", so it can be a program name with args.
7607 set dummy circo; ac_word=$2
7608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7610 if test "${ac_cv_path_CIRCO+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7625 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7637 CIRCO=$ac_cv_path_CIRCO
7638 if test -n "$CIRCO"; then
7639 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7640 echo "${ECHO_T}$CIRCO" >&6; }
7642 { echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6; }
7647 if test "$CIRCO" != "echo circo" ; then
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_CIRCO 1
7653 if test "$llvm_cv_os_type" = "MingW" ; then
7654 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7657 cat >>confdefs.h <<_ACEOF
7658 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7662 for ac_prog in gv gsview32
7664 # Extract the first word of "$ac_prog", so it can be a program name with args.
7665 set dummy $ac_prog; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_GV+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 if test -n "$GV"; then
7696 { echo "$as_me:$LINENO: result: $GV" >&5
7697 echo "${ECHO_T}$GV" >&6; }
7699 { echo "$as_me:$LINENO: result: no" >&5
7700 echo "${ECHO_T}no" >&6; }
7704 test -n "$GV" && break
7706 test -n "$GV" || GV="echo gv"
7708 if test "$GV" != "echo gv" ; then
7710 cat >>confdefs.h <<\_ACEOF
7714 if test "$llvm_cv_os_type" = "MingW" ; then
7715 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7718 cat >>confdefs.h <<_ACEOF
7719 #define LLVM_PATH_GV "$GV${EXEEXT}"
7723 # Extract the first word of "dotty", so it can be a program name with args.
7724 set dummy dotty; ac_word=$2
7725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727 if test "${ac_cv_path_DOTTY+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7754 DOTTY=$ac_cv_path_DOTTY
7755 if test -n "$DOTTY"; then
7756 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7757 echo "${ECHO_T}$DOTTY" >&6; }
7759 { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7764 if test "$DOTTY" != "echo dotty" ; then
7766 cat >>confdefs.h <<\_ACEOF
7767 #define HAVE_DOTTY 1
7770 if test "$llvm_cv_os_type" = "MingW" ; then
7771 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7774 cat >>confdefs.h <<_ACEOF
7775 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7781 # Extract the first word of "perl", so it can be a program name with args.
7782 set dummy perl; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_PERL+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7812 PERL=$ac_cv_path_PERL
7813 if test -n "$PERL"; then
7814 { echo "$as_me:$LINENO: result: $PERL" >&5
7815 echo "${ECHO_T}$PERL" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7822 if test "$PERL" != "none"; then
7823 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7824 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7825 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7826 { echo "$as_me:$LINENO: result: yes" >&5
7827 echo "${ECHO_T}yes" >&6; }
7830 { echo "$as_me:$LINENO: result: not found" >&5
7831 echo "${ECHO_T}not found" >&6; }
7836 if test x"$PERL" = xnone; then
7839 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7840 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7841 { (exit 1); exit 1; }; }
7847 # Find a good install program. We prefer a C program (faster),
7848 # so one script is as good as another. But avoid the broken or
7849 # incompatible versions:
7850 # SysV /etc/install, /usr/sbin/install
7851 # SunOS /usr/etc/install
7852 # IRIX /sbin/install
7854 # AmigaOS /C/install, which installs bootblocks on floppy discs
7855 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7856 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7857 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7858 # OS/2's system install, which has a completely different semantic
7859 # ./install, which can be erroneously created by make from ./install.sh.
7860 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7861 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7862 if test -z "$INSTALL"; then
7863 if test "${ac_cv_path_install+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 test -z "$as_dir" && as_dir=.
7871 # Account for people who put trailing slashes in PATH elements.
7873 ./ | .// | /cC/* | \
7874 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7875 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7878 # OSF1 and SCO ODT 3.0 have their own names for install.
7879 # Don't use installbsd from OSF since it installs stuff as root
7881 for ac_prog in ginstall scoinst install; do
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7884 if test $ac_prog = install &&
7885 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7886 # AIX install. It has an incompatible calling convention.
7888 elif test $ac_prog = install &&
7889 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7890 # program-specific install script used by HP pwplus--don't use.
7893 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7906 if test "${ac_cv_path_install+set}" = set; then
7907 INSTALL=$ac_cv_path_install
7909 # As a last resort, use the slow shell script. Don't cache a
7910 # value for INSTALL within a source directory, because that will
7911 # break other packages using the cache if that directory is
7912 # removed, or if the value is a relative name.
7913 INSTALL=$ac_install_sh
7916 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7917 echo "${ECHO_T}$INSTALL" >&6; }
7919 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7920 # It thinks the first close brace ends the variable substitution.
7921 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7923 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7925 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7928 # Extract the first word of "bzip2", so it can be a program name with args.
7929 set dummy bzip2; ac_word=$2
7930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932 if test "${ac_cv_path_BZIP2+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 BZIP2=$ac_cv_path_BZIP2
7959 if test -n "$BZIP2"; then
7960 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7961 echo "${ECHO_T}$BZIP2" >&6; }
7963 { echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6; }
7968 # Extract the first word of "doxygen", so it can be a program name with args.
7969 set dummy doxygen; ac_word=$2
7970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 DOXYGEN=$ac_cv_path_DOXYGEN
7999 if test -n "$DOXYGEN"; then
8000 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8001 echo "${ECHO_T}$DOXYGEN" >&6; }
8003 { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8008 # Extract the first word of "groff", so it can be a program name with args.
8009 set dummy groff; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_path_GROFF+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 GROFF=$ac_cv_path_GROFF
8039 if test -n "$GROFF"; then
8040 { echo "$as_me:$LINENO: result: $GROFF" >&5
8041 echo "${ECHO_T}$GROFF" >&6; }
8043 { echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6; }
8048 # Extract the first word of "gzip", so it can be a program name with args.
8049 set dummy gzip; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_path_GZIP+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 GZIP=$ac_cv_path_GZIP
8079 if test -n "$GZIP"; then
8080 { echo "$as_me:$LINENO: result: $GZIP" >&5
8081 echo "${ECHO_T}$GZIP" >&6; }
8083 { echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6; }
8088 # Extract the first word of "pod2html", so it can be a program name with args.
8089 set dummy pod2html; ac_word=$2
8090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8092 if test "${ac_cv_path_POD2HTML+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 POD2HTML=$ac_cv_path_POD2HTML
8119 if test -n "$POD2HTML"; then
8120 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8121 echo "${ECHO_T}$POD2HTML" >&6; }
8123 { echo "$as_me:$LINENO: result: no" >&5
8124 echo "${ECHO_T}no" >&6; }
8128 # Extract the first word of "pod2man", so it can be a program name with args.
8129 set dummy pod2man; ac_word=$2
8130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132 if test "${ac_cv_path_POD2MAN+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 POD2MAN=$ac_cv_path_POD2MAN
8159 if test -n "$POD2MAN"; then
8160 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8161 echo "${ECHO_T}$POD2MAN" >&6; }
8163 { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8168 # Extract the first word of "runtest", so it can be a program name with args.
8169 set dummy runtest; ac_word=$2
8170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8172 if test "${ac_cv_path_RUNTEST+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 RUNTEST=$ac_cv_path_RUNTEST
8199 if test -n "$RUNTEST"; then
8200 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8201 echo "${ECHO_T}$RUNTEST" >&6; }
8203 { echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6; }
8210 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8211 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8213 # Check whether --with-tclinclude was given.
8214 if test "${with_tclinclude+set}" = set; then
8215 withval=$with_tclinclude; with_tclinclude=${withval}
8220 if test "${ac_cv_path_tclsh+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 if test x"${with_tclinclude}" != x ; then
8225 if test -f ${with_tclinclude}/tclsh ; then
8226 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8227 elif test -f ${with_tclinclude}/src/tclsh ; then
8228 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8230 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8231 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8232 { (exit 1); exit 1; }; }
8236 if test x"${ac_cv_path_tclsh}" = x ; then
8237 { echo "$as_me:$LINENO: result: none" >&5
8238 echo "${ECHO_T}none" >&6; }
8239 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
8241 # Extract the first word of "$ac_prog", so it can be a program name with args.
8242 set dummy $ac_prog; ac_word=$2
8243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8245 if test "${ac_cv_path_TCLSH+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8260 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 TCLSH=$ac_cv_path_TCLSH
8272 if test -n "$TCLSH"; then
8273 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8274 echo "${ECHO_T}$TCLSH" >&6; }
8276 { echo "$as_me:$LINENO: result: no" >&5
8277 echo "${ECHO_T}no" >&6; }
8281 test -n "$TCLSH" && break
8284 if test x"${TCLSH}" = x ; then
8285 ac_cv_path_tclsh='';
8287 ac_cv_path_tclsh="${TCLSH}";
8290 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8291 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8292 TCLSH="${ac_cv_path_tclsh}"
8298 # Extract the first word of "zip", so it can be a program name with args.
8299 set dummy zip; ac_word=$2
8300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8302 if test "${ac_cv_path_ZIP+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8317 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 if test -n "$ZIP"; then
8330 { echo "$as_me:$LINENO: result: $ZIP" >&5
8331 echo "${ECHO_T}$ZIP" >&6; }
8333 { echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6; }
8338 for ac_prog in ocamlc
8340 # Extract the first word of "$ac_prog", so it can be a program name with args.
8341 set dummy $ac_prog; ac_word=$2
8342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8344 if test "${ac_cv_path_OCAMLC+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 OCAMLC=$ac_cv_path_OCAMLC
8371 if test -n "$OCAMLC"; then
8372 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8373 echo "${ECHO_T}$OCAMLC" >&6; }
8375 { echo "$as_me:$LINENO: result: no" >&5
8376 echo "${ECHO_T}no" >&6; }
8380 test -n "$OCAMLC" && break
8383 for ac_prog in ocamlopt
8385 # Extract the first word of "$ac_prog", so it can be a program name with args.
8386 set dummy $ac_prog; ac_word=$2
8387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8389 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8404 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 OCAMLOPT=$ac_cv_path_OCAMLOPT
8416 if test -n "$OCAMLOPT"; then
8417 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8418 echo "${ECHO_T}$OCAMLOPT" >&6; }
8420 { echo "$as_me:$LINENO: result: no" >&5
8421 echo "${ECHO_T}no" >&6; }
8425 test -n "$OCAMLOPT" && break
8428 for ac_prog in ocamldep
8430 # Extract the first word of "$ac_prog", so it can be a program name with args.
8431 set dummy $ac_prog; ac_word=$2
8432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8434 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8449 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8460 OCAMLDEP=$ac_cv_path_OCAMLDEP
8461 if test -n "$OCAMLDEP"; then
8462 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8463 echo "${ECHO_T}$OCAMLDEP" >&6; }
8465 { echo "$as_me:$LINENO: result: no" >&5
8466 echo "${ECHO_T}no" >&6; }
8470 test -n "$OCAMLDEP" && break
8473 for ac_prog in ocamldoc
8475 # Extract the first word of "$ac_prog", so it can be a program name with args.
8476 set dummy $ac_prog; ac_word=$2
8477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8479 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8494 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 OCAMLDOC=$ac_cv_path_OCAMLDOC
8506 if test -n "$OCAMLDOC"; then
8507 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8508 echo "${ECHO_T}$OCAMLDOC" >&6; }
8510 { echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6; }
8515 test -n "$OCAMLDOC" && break
8518 for ac_prog in gas as
8520 # Extract the first word of "$ac_prog", so it can be a program name with args.
8521 set dummy $ac_prog; ac_word=$2
8522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8524 if test "${ac_cv_path_GAS+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8539 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 if test -n "$GAS"; then
8552 { echo "$as_me:$LINENO: result: $GAS" >&5
8553 echo "${ECHO_T}$GAS" >&6; }
8555 { echo "$as_me:$LINENO: result: no" >&5
8556 echo "${ECHO_T}no" >&6; }
8560 test -n "$GAS" && break
8564 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8565 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8566 if test "${llvm_cv_link_use_r+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 ac_cpp='$CPP $CPPFLAGS'
8571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8576 CFLAGS="$CFLAGS -Wl,-R."
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8587 int main() { return 0; }
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (ac_try="$ac_link"
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_link") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8607 { (case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_try") 2>&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_try") 2>&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 llvm_cv_link_use_r=yes
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 llvm_cv_link_use_r=no
8634 rm -f core conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8638 ac_cpp='$CPP $CPPFLAGS'
8639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8645 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8646 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8647 if test "$llvm_cv_link_use_r" = yes ; then
8649 cat >>confdefs.h <<\_ACEOF
8650 #define HAVE_LINK_R 1
8656 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8657 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8658 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 ac_cpp='$CPP $CPPFLAGS'
8663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8668 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8669 cat >conftest.$ac_ext <<_ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8679 int main() { return 0; }
8684 rm -f conftest.$ac_objext conftest$ac_exeext
8685 if { (ac_try="$ac_link"
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_link") 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8699 { (case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_try") 2>&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_try") 2>&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 llvm_cv_link_use_export_dynamic=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 llvm_cv_link_use_export_dynamic=no
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8730 ac_cpp='$CPP $CPPFLAGS'
8731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8737 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8738 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8739 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8741 cat >>confdefs.h <<\_ACEOF
8742 #define HAVE_LINK_EXPORT_DYNAMIC 1
8750 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8751 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8752 if test "${ac_cv_c_const+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 cat >conftest.$ac_ext <<_ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8765 /* FIXME: Include the comments suggested by Paul. */
8767 /* Ultrix mips cc rejects this. */
8768 typedef int charset[2];
8770 /* SunOS 4.1.1 cc rejects this. */
8771 char const *const *ccp;
8773 /* NEC SVR4.0.2 mips cc rejects this. */
8774 struct point {int x, y;};
8775 static struct point const zero = {0,0};
8776 /* AIX XL C 1.02.0.0 rejects this.
8777 It does not let you subtract one const X* pointer from another in
8778 an arm of an if-expression whose if-part is not a constant
8780 const char *g = "string";
8781 ccp = &g + (g ? g-g : 0);
8782 /* HPUX 7.0 cc rejects these. */
8785 ccp = (char const *const *) p;
8786 { /* SCO 3.2v4 cc rejects this. */
8788 char const *s = 0 ? (char *) 0 : (char const *) 0;
8793 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8795 const int *foo = &x[0];
8798 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8799 typedef const int *iptr;
8803 { /* AIX XL C 1.02.0.0 rejects this saying
8804 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8805 struct s { int j; const int *ap[3]; };
8806 struct s *b; b->j = 5;
8808 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8812 return !x[0] && !zero.x;
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_compile") 2>conftest.er1
8828 grep -v '^ *+' conftest.er1 >conftest.err
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } &&
8833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8834 { (case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_try") 2>&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try='test -s conftest.$ac_objext'
8844 { (case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_try") 2>&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8864 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8865 if test $ac_cv_c_const = no; then
8867 cat >>confdefs.h <<\_ACEOF
8879 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8880 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8881 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8882 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 cat >conftest.$ac_ext <<_ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 #include <sys/types.h>
8904 rm -f conftest.$ac_objext
8905 if { (ac_try="$ac_compile"
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_compile") 2>conftest.er1
8913 grep -v '^ *+' conftest.er1 >conftest.err
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8919 { (case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_try") 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (case "(($ac_try" in
8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934 (eval "$ac_try") 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 eval "$as_ac_Header=yes"
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 eval "$as_ac_Header=no"
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 ac_res=`eval echo '${'$as_ac_Header'}'`
8949 { echo "$as_me:$LINENO: result: $ac_res" >&5
8950 echo "${ECHO_T}$ac_res" >&6; }
8951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8952 cat >>confdefs.h <<_ACEOF
8953 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8956 ac_header_dirent=$ac_hdr; break
8960 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8961 if test $ac_header_dirent = dirent.h; then
8962 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8963 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8964 if test "${ac_cv_search_opendir+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 ac_func_search_save_LIBS=$LIBS
8968 cat >conftest.$ac_ext <<_ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8975 /* Override any GCC internal prototype to avoid an error.
8976 Use char because int might match the return type of a GCC
8977 builtin and then its argument prototype would still apply. */
8990 for ac_lib in '' dir; do
8991 if test -z "$ac_lib"; then
8992 ac_res="none required"
8995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (ac_try="$ac_link"
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_link") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1 >conftest.err
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9012 { (case "(($ac_try" in
9013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9014 *) ac_try_echo=$ac_try;;
9016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9017 (eval "$ac_try") 2>&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_try") 2>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 ac_cv_search_opendir=$ac_res
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9039 rm -f core conftest.err conftest.$ac_objext \
9041 if test "${ac_cv_search_opendir+set}" = set; then
9045 if test "${ac_cv_search_opendir+set}" = set; then
9048 ac_cv_search_opendir=no
9051 LIBS=$ac_func_search_save_LIBS
9053 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9054 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9055 ac_res=$ac_cv_search_opendir
9056 if test "$ac_res" != no; then
9057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9062 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9063 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9064 if test "${ac_cv_search_opendir+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 ac_func_search_save_LIBS=$LIBS
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9075 /* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9090 for ac_lib in '' x; do
9091 if test -z "$ac_lib"; then
9092 ac_res="none required"
9095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (ac_try="$ac_link"
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_link") 2>conftest.er1
9106 grep -v '^ *+' conftest.er1 >conftest.err
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9112 { (case "(($ac_try" in
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_try") 2>&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_search_opendir=$ac_res
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9139 rm -f core conftest.err conftest.$ac_objext \
9141 if test "${ac_cv_search_opendir+set}" = set; then
9145 if test "${ac_cv_search_opendir+set}" = set; then
9148 ac_cv_search_opendir=no
9151 LIBS=$ac_func_search_save_LIBS
9153 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9154 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9155 ac_res=$ac_cv_search_opendir
9156 if test "$ac_res" != no; then
9157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9164 for ac_header in dlfcn.h
9166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 ac_res=`eval echo '${'$as_ac_Header'}'`
9174 { echo "$as_me:$LINENO: result: $ac_res" >&5
9175 echo "${ECHO_T}$ac_res" >&6; }
9177 # Is the header compilable?
9178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 $ac_includes_default
9187 #include <$ac_header>
9189 rm -f conftest.$ac_objext
9190 if { (ac_try="$ac_compile"
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196 (eval "$ac_compile") 2>conftest.er1
9198 grep -v '^ *+' conftest.er1 >conftest.err
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9204 { (case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_try") 2>&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; } &&
9213 { ac_try='test -s conftest.$ac_objext'
9214 { (case "(($ac_try" in
9215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216 *) ac_try_echo=$ac_try;;
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219 (eval "$ac_try") 2>&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 ac_header_compiler=yes
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 ac_header_compiler=no
9231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9233 echo "${ECHO_T}$ac_header_compiler" >&6; }
9235 # Is the header present?
9236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9238 cat >conftest.$ac_ext <<_ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 #include <$ac_header>
9246 if { (ac_try="$ac_cpp conftest.$ac_ext"
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } >/dev/null; then
9259 if test -s conftest.err; then
9260 ac_cpp_err=$ac_c_preproc_warn_flag
9261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9268 if test -z "$ac_cpp_err"; then
9269 ac_header_preproc=yes
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 ac_header_preproc=no
9277 rm -f conftest.err conftest.$ac_ext
9278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9279 echo "${ECHO_T}$ac_header_preproc" >&6; }
9281 # So? What about this header?
9282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9288 ac_header_preproc=yes
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9304 ## ----------------------------------- ##
9305 ## Report this to llvmbugs@cs.uiuc.edu ##
9306 ## ----------------------------------- ##
9308 ) | sed "s/^/$as_me: WARNING: /" >&2
9311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 eval "$as_ac_Header=\$ac_header_preproc"
9318 ac_res=`eval echo '${'$as_ac_Header'}'`
9319 { echo "$as_me:$LINENO: result: $ac_res" >&5
9320 echo "${ECHO_T}$ac_res" >&6; }
9323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9324 cat >>confdefs.h <<_ACEOF
9325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9332 # Check whether --enable-ltdl-install was given.
9333 if test "${enable_ltdl_install+set}" = set; then
9334 enableval=$enable_ltdl_install;
9340 if test x"${enable_ltdl_install-no}" != xno; then
9342 INSTALL_LTDL_FALSE='#'
9344 INSTALL_LTDL_TRUE='#'
9350 if test x"${enable_ltdl_convenience-no}" != xno; then
9351 CONVENIENCE_LTDL_TRUE=
9352 CONVENIENCE_LTDL_FALSE='#'
9354 CONVENIENCE_LTDL_TRUE='#'
9355 CONVENIENCE_LTDL_FALSE=
9359 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9360 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9362 libname_spec='lib$name'
9370 shlibpath_overrides_runpath=unknown
9372 dynamic_linker="$host_os ld.so"
9373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9374 if test "$GCC" = yes; then
9375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9376 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9377 # if the path contains ";" then we assume it to be the separator
9378 # otherwise default to the standard path separator (i.e. ":") - it is
9379 # assumed that no part of a normal pathname contains ";" but that should
9380 # okay in the real world where ";" in dirpaths is itself problematic.
9381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9388 need_lib_prefix=unknown
9389 hardcode_into_libs=no
9391 # when you set need_version to no, make sure it does not cause -set_version
9392 # flags to be left without arguments
9393 need_version=unknown
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9399 shlibpath_var=LIBPATH
9401 # AIX 3 has no versioning support, so we append a major version to the name.
9402 soname_spec='${libname}${release}${shared_ext}$major'
9409 hardcode_into_libs=yes
9410 if test "$host_cpu" = ia64; then
9411 # AIX 5 supports IA64
9412 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9413 shlibpath_var=LD_LIBRARY_PATH
9415 # With GCC up to 2.95.x, collect2 would create an import file
9416 # for dependence libraries. The import file would start with
9417 # the line `#! .'. This would cause the generated library to
9418 # depend on `.', always an invalid library. This was fixed in
9419 # development snapshots of GCC prior to 3.0.
9421 aix4 | aix4.[01] | aix4.[01].*)
9422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9424 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9431 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9432 # soname into executable. Probably we can add versioning support to
9433 # collect2, so additional links can be useful in future.
9434 if test "$aix_use_runtimelinking" = yes; then
9435 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9436 # instead of lib<name>.a to let people know that these are not
9437 # typical AIX shared libraries.
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 # We preserve .a as extension for shared libraries through AIX4.2
9441 # and later when we are not doing run time linking.
9442 library_names_spec='${libname}${release}.a $libname.a'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9445 shlibpath_var=LIBPATH
9450 library_names_spec='$libname.ixlibrary $libname.a'
9451 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9452 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'
9456 library_names_spec='${libname}${shared_ext}'
9457 dynamic_linker="$host_os ld.so"
9458 shlibpath_var=LIBRARY_PATH
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9470 # the default ld.so.conf also contains /usr/contrib/lib and
9471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9472 # libtool to hard-code these into programs
9475 cygwin* | mingw* | pw32*)
9476 version_type=windows
9481 case $GCC,$host_os in
9482 yes,cygwin* | yes,mingw* | yes,pw32*)
9483 library_names_spec='$libname.dll.a'
9484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9485 postinstall_cmds='base_file=`basename \${file}`~
9486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9487 dldir=$destdir/`dirname \$dlpath`~
9488 test -d \$dldir || mkdir -p \$dldir~
9489 $install_prog $dir/$dlname \$dldir/$dlname~
9490 chmod a+x \$dldir/$dlname'
9491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9492 dlpath=$dir/\$dldll~
9494 shlibpath_overrides_runpath=yes
9498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9499 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9500 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9503 # MinGW DLLs use traditional 'lib' prefix
9504 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9505 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9506 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9507 # It is most probably a Windows format PATH printed by
9508 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9509 # path with ; separators, and with drive letters. We can handle the
9510 # drive letters (cygwin fileutils understands them), so leave them,
9511 # especially as we might pass files found there to a mingw objdump,
9512 # which wouldn't understand a cygwinified path. Ahh.
9513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9519 # pw32 DLLs use 'pw' prefix rather than 'lib'
9520 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9526 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9529 dynamic_linker='Win32 ld.exe'
9530 # FIXME: first we should search . and the directory the executable is in
9534 darwin* | rhapsody*)
9535 dynamic_linker="$host_os dyld"
9539 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9540 soname_spec='${libname}${release}${major}$shared_ext'
9541 shlibpath_overrides_runpath=yes
9542 shlibpath_var=DYLD_LIBRARY_PATH
9543 shrext_cmds='.dylib'
9544 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9545 if test "$GCC" = yes; then
9546 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"`
9548 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9550 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 shlibpath_var=LD_LIBRARY_PATH
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=no
9574 hardcode_into_libs=yes
9575 dynamic_linker='GNU ld.so'
9578 freebsd* | dragonfly*)
9579 # DragonFly does not have aout. When/if they implement a new
9580 # versioning mechanism, adjust this.
9581 if test -x /usr/bin/objformat; then
9582 objformat=`/usr/bin/objformat`
9585 freebsd[123]*) objformat=aout ;;
9589 version_type=freebsd-$objformat
9590 case $version_type in
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9601 shlibpath_var=LD_LIBRARY_PATH
9604 shlibpath_overrides_runpath=yes
9606 freebsd3.[01]* | freebsdelf3.[01]*)
9607 shlibpath_overrides_runpath=yes
9608 hardcode_into_libs=yes
9610 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9611 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9612 shlibpath_overrides_runpath=no
9613 hardcode_into_libs=yes
9615 freebsd*) # from 4.6 on
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9627 soname_spec='${libname}${release}${shared_ext}$major'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 hardcode_into_libs=yes
9632 hpux9* | hpux10* | hpux11*)
9633 # Give a soname corresponding to the major version so that dld.sl refuses to
9634 # link against other versions.
9641 hardcode_into_libs=yes
9642 dynamic_linker="$host_os dld.so"
9643 shlibpath_var=LD_LIBRARY_PATH
9644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 if test "X$HPUX_IA64_MODE" = X32; then
9648 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9650 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9656 hardcode_into_libs=yes
9657 dynamic_linker="$host_os dld.sl"
9658 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661 soname_spec='${libname}${release}${shared_ext}$major'
9662 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9667 dynamic_linker="$host_os dld.sl"
9668 shlibpath_var=SHLIB_PATH
9669 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9674 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9675 postinstall_cmds='chmod 555 $lib'
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=no
9687 hardcode_into_libs=yes
9690 irix5* | irix6* | nonstopux*)
9692 nonstopux*) version_type=nonstopux ;;
9694 if test "$lt_cv_prog_gnu_ld" = yes; then
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9705 irix5* | nonstopux*)
9709 case $LD in # libtool.m4 will add one of these switches to LD
9710 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9711 libsuff= shlibsuff= libmagic=32-bit;;
9712 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9713 libsuff=32 shlibsuff=N32 libmagic=N32;;
9714 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9715 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9716 *) libsuff= shlibsuff= libmagic=never-match;;
9720 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9721 shlibpath_overrides_runpath=no
9722 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9723 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9724 hardcode_into_libs=yes
9727 # No shared lib support for Linux oldld, aout, or coff.
9728 linux*oldld* | linux*aout* | linux*coff*)
9732 # This must be Linux ELF.
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 shlibpath_overrides_runpath=no
9742 # This implies no fast_install, which is unacceptable.
9743 # Some rework will be needed to allow for fast_install
9744 # before this can be enabled.
9745 hardcode_into_libs=yes
9747 # Append ld.so.conf contents to the search path
9748 if test -f /etc/ld.so.conf; then
9749 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' ' '`
9750 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9753 # We used to test for /lib/ld.so.1 and disable shared libraries on
9754 # powerpc, because MkLinux only supported shared libraries with the
9755 # GNU dynamic linker. Since this was broken with cross compilers,
9756 # most powerpc-linux boxes support dynamic linking these days and
9757 # people can always --disable-shared, the test was removed, and we
9758 # assume the GNU/Linux dynamic linker is in use.
9759 dynamic_linker='GNU/Linux ld.so'
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9767 soname_spec='${libname}${release}${shared_ext}$major'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 shlibpath_overrides_runpath=no
9770 hardcode_into_libs=yes
9771 dynamic_linker='GNU ld.so'
9778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9781 dynamic_linker='NetBSD (a.out) ld.so'
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 dynamic_linker='NetBSD ld.elf_so'
9787 shlibpath_var=LD_LIBRARY_PATH
9788 shlibpath_overrides_runpath=yes
9789 hardcode_into_libs=yes
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795 shlibpath_var=LD_LIBRARY_PATH
9796 shlibpath_overrides_runpath=yes
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=yes
9811 sys_lib_dlsearch_path_spec="/usr/lib"
9813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9815 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9816 *) need_version=no ;;
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9823 openbsd2.[89] | openbsd2.[89].*)
9824 shlibpath_overrides_runpath=no
9827 shlibpath_overrides_runpath=yes
9831 shlibpath_overrides_runpath=yes
9836 libname_spec='$name'
9839 library_names_spec='$libname${shared_ext} $libname.a'
9840 dynamic_linker='OS/2 ld.exe'
9841 shlibpath_var=LIBPATH
9844 osf3* | osf4* | osf5*)
9848 soname_spec='${libname}${release}${shared_ext}$major'
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850 shlibpath_var=LD_LIBRARY_PATH
9851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9852 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 shlibpath_var=LD_LIBRARY_PATH
9862 shlibpath_overrides_runpath=yes
9863 hardcode_into_libs=yes
9864 # ldd complains unless libraries are executable
9865 postinstall_cmds='chmod +x $lib'
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 shlibpath_overrides_runpath=yes
9874 if test "$with_gnu_ld" = yes; then
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883 soname_spec='${libname}${release}${shared_ext}$major'
9884 shlibpath_var=LD_LIBRARY_PATH
9885 case $host_vendor in
9887 shlibpath_overrides_runpath=no
9889 export_dynamic_flag_spec='${wl}-Blargedynsym'
9890 runpath_var=LD_RUN_PATH
9898 shlibpath_overrides_runpath=no
9899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9905 if test -d /usr/nec ;then
9907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9908 soname_spec='$libname${shared_ext}.$major'
9909 shlibpath_var=LD_LIBRARY_PATH
9913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9914 version_type=freebsd-elf
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 hardcode_into_libs=yes
9921 if test "$with_gnu_ld" = yes; then
9922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9923 shlibpath_overrides_runpath=no
9925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9926 shlibpath_overrides_runpath=yes
9929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9933 sys_lib_dlsearch_path_spec='/usr/lib'
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 shlibpath_var=LD_LIBRARY_PATH
9947 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9948 echo "${ECHO_T}$dynamic_linker" >&6; }
9949 test "$dynamic_linker" = no && can_build_shared=no
9951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9952 if test "$GCC" = yes; then
9953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9957 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9958 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9959 if test "${libltdl_cv_shlibext+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 eval libltdl_cv_shlibext=$shrext_cmds
9967 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9968 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9969 if test -n "$libltdl_cv_shlibext"; then
9971 cat >>confdefs.h <<_ACEOF
9972 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9978 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9979 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9980 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 libltdl_cv_shlibpath_var="$shlibpath_var"
9985 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9986 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9987 if test -n "$libltdl_cv_shlibpath_var"; then
9989 cat >>confdefs.h <<_ACEOF
9990 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9996 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9997 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9998 if test "${libltdl_cv_sys_search_path+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10003 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10004 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10005 if test -n "$libltdl_cv_sys_search_path"; then
10007 for dir in $libltdl_cv_sys_search_path; do
10008 if test -z "$sys_search_path"; then
10009 sys_search_path="$dir"
10011 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10015 cat >>confdefs.h <<_ACEOF
10016 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10021 { echo "$as_me:$LINENO: checking for objdir" >&5
10022 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10023 if test "${libltdl_cv_objdir+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10026 libltdl_cv_objdir="$objdir"
10027 if test -n "$objdir"; then
10030 rm -f .libs 2>/dev/null
10031 mkdir .libs 2>/dev/null
10032 if test -d .libs; then
10033 libltdl_cv_objdir=.libs
10035 # MS-DOS does not allow filenames that begin with a dot.
10036 libltdl_cv_objdir=_libs
10038 rmdir .libs 2>/dev/null
10042 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10043 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10045 cat >>confdefs.h <<_ACEOF
10046 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10054 # Check for command to grab the raw symbol name followed by C symbol from nm.
10055 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10056 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10057 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 # These are sane defaults that work on at least a few old systems.
10062 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10064 # Character class describing NM global symbol codes.
10065 symcode='[BCDEGRST]'
10067 # Regexp to match symbols that can be accessed directly from C.
10068 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10070 # Transform an extracted symbol line into a proper C declaration
10071 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10073 # Transform an extracted symbol line into symbol name and symbol address
10074 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'"
10076 # Define system-specific variables.
10081 cygwin* | mingw* | pw32*)
10082 symcode='[ABCDGISTW]'
10084 hpux*) # Its linker distinguishes data from code symbols
10085 if test "$host_cpu" = ia64; then
10086 symcode='[ABCDEGRST]'
10088 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10089 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'"
10092 if test "$host_cpu" = ia64; then
10093 symcode='[ABCDGIRSTW]'
10094 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10095 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'"
10098 irix* | nonstopux*)
10099 symcode='[BCDEGRST]'
10102 symcode='[BCDEGQRST]'
10113 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10121 # Handle CRLF in mingw tool chain
10125 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10129 # If we're using GNU nm, then use its standard symbol codes.
10130 case `$NM -V 2>&1` in
10131 *GNU* | *'with BFD'*)
10132 symcode='[ABCDGIRSTW]' ;;
10135 # Try without a prefix undercore, then with it.
10136 for ac_symprfx in "" "_"; do
10138 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10139 symxfrm="\\1 $ac_symprfx\\2 \\2"
10141 # Write the raw and C identifiers.
10142 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10144 # Check to see that the pipe works correctly.
10148 cat > conftest.$ac_ext <<EOF
10153 void nm_test_func(){}
10157 int main(){nm_test_var='a';nm_test_func();return(0);}
10160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161 (eval $ac_compile) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; then
10165 # Now try to grab the symbols.
10167 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && test -s "$nlist"; then
10172 # Try sorting and uniquifying the output.
10173 if sort "$nlist" | uniq > "$nlist"T; then
10174 mv -f "$nlist"T "$nlist"
10179 # Make sure that we snagged all the symbols we need.
10180 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10181 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10182 cat <<EOF > conftest.$ac_ext
10188 # Now generate the symbol file.
10189 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10191 cat <<EOF >> conftest.$ac_ext
10192 #if defined (__STDC__) && __STDC__
10193 # define lt_ptr_t void *
10195 # define lt_ptr_t char *
10199 /* The mapping between symbol names and symbols. */
10204 lt_preloaded_symbols[] =
10207 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10208 cat <<\EOF >> conftest.$ac_ext
10216 # Now try linking the two files.
10217 mv conftest.$ac_objext conftstm.$ac_objext
10218 lt_save_LIBS="$LIBS"
10219 lt_save_CFLAGS="$CFLAGS"
10220 LIBS="conftstm.$ac_objext"
10221 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10223 (eval $ac_link) 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10229 LIBS="$lt_save_LIBS"
10230 CFLAGS="$lt_save_CFLAGS"
10232 echo "cannot find nm_test_func in $nlist" >&5
10235 echo "cannot find nm_test_var in $nlist" >&5
10238 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10241 echo "$progname: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10244 rm -f conftest* conftst*
10246 # Do not use the global_symbol_pipe unless it works.
10247 if test "$pipe_works" = yes; then
10250 lt_cv_sys_global_symbol_pipe=
10256 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10257 lt_cv_sys_global_symbol_to_cdecl=
10259 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10260 { echo "$as_me:$LINENO: result: failed" >&5
10261 echo "${ECHO_T}failed" >&6; }
10263 { echo "$as_me:$LINENO: result: ok" >&5
10264 echo "${ECHO_T}ok" >&6; }
10268 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10269 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10270 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10274 libltdl_cv_preloaded_symbols=yes
10276 libltdl_cv_preloaded_symbols=no
10280 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10281 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10282 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10284 cat >>confdefs.h <<\_ACEOF
10285 #define HAVE_PRELOADED_SYMBOLS 1
10293 ac_cpp='$CPP $CPPFLAGS'
10294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10299 { echo "$as_me:$LINENO: checking for shl_load" >&5
10300 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10301 if test "${ac_cv_func_shl_load+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 cat >conftest.$ac_ext <<_ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10312 #define shl_load innocuous_shl_load
10314 /* System header to define __stub macros and hopefully few prototypes,
10315 which can conflict with char shl_load (); below.
10316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10317 <limits.h> exists even on freestanding compilers. */
10320 # include <limits.h>
10322 # include <assert.h>
10327 /* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
10334 /* The GNU C library defines this for functions which it implements
10335 to always fail with ENOSYS. Some functions are actually named
10336 something starting with __ and the normal name is an alias. */
10337 #if defined __stub_shl_load || defined __stub___shl_load
10344 return shl_load ();
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (ac_try="$ac_link"
10351 case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_link") 2>conftest.er1
10358 grep -v '^ *+' conftest.er1 >conftest.err
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10364 { (case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_try") 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; } &&
10373 { ac_try='test -s conftest$ac_exeext'
10374 { (case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_try") 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 ac_cv_func_shl_load=yes
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_cv_func_shl_load=no
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10394 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10395 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10396 if test $ac_cv_func_shl_load = yes; then
10398 cat >>confdefs.h <<\_ACEOF
10399 #define HAVE_SHL_LOAD 1
10403 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10404 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10405 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 ac_check_lib_save_LIBS=$LIBS
10410 cat >conftest.$ac_ext <<_ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10417 /* Override any GCC internal prototype to avoid an error.
10418 Use char because int might match the return type of a GCC
10419 builtin and then its argument prototype would still apply. */
10427 return shl_load ();
10432 rm -f conftest.$ac_objext conftest$ac_exeext
10433 if { (ac_try="$ac_link"
10434 case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_link") 2>conftest.er1
10441 grep -v '^ *+' conftest.er1 >conftest.err
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10447 { (case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_try") 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; } &&
10456 { ac_try='test -s conftest$ac_exeext'
10457 { (case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462 (eval "$ac_try") 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; }; then
10466 ac_cv_lib_dld_shl_load=yes
10468 echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10471 ac_cv_lib_dld_shl_load=no
10474 rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 LIBS=$ac_check_lib_save_LIBS
10478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10479 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10480 if test $ac_cv_lib_dld_shl_load = yes; then
10482 cat >>confdefs.h <<\_ACEOF
10483 #define HAVE_SHL_LOAD 1
10486 LIBADD_DL="$LIBADD_DL -ldld"
10488 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10489 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10490 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 ac_check_lib_save_LIBS=$LIBS
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10517 rm -f conftest.$ac_objext conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest$ac_exeext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_lib_dl_dlopen=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_cv_lib_dl_dlopen=no
10559 rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10563 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10564 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10565 if test $ac_cv_lib_dl_dlopen = yes; then
10567 cat >>confdefs.h <<\_ACEOF
10568 #define HAVE_LIBDL 1
10571 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10580 # include <dlfcn.h>
10591 rm -f conftest.$ac_objext conftest$ac_exeext
10592 if { (ac_try="$ac_link"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_link") 2>conftest.er1
10600 grep -v '^ *+' conftest.er1 >conftest.err
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10606 { (case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_try") 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest$ac_exeext'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_LIBDL 1
10629 libltdl_cv_func_dlopen="yes"
10631 echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10635 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10636 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-lsvld $LIBS"
10641 cat >conftest.$ac_ext <<_ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10648 /* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670 (eval "$ac_link") 2>conftest.er1
10672 grep -v '^ *+' conftest.er1 >conftest.err
10674 cat conftest.err >&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10678 { (case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_try") 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; } &&
10687 { ac_try='test -s conftest$ac_exeext'
10688 { (case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_try") 2>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10697 ac_cv_lib_svld_dlopen=yes
10699 echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10702 ac_cv_lib_svld_dlopen=no
10705 rm -f core conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10709 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10710 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10711 if test $ac_cv_lib_svld_dlopen = yes; then
10713 cat >>confdefs.h <<\_ACEOF
10714 #define HAVE_LIBDL 1
10717 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10719 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10720 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10721 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 ac_check_lib_save_LIBS=$LIBS
10726 cat >conftest.$ac_ext <<_ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10733 /* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
10743 return dld_link ();
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (ac_try="$ac_link"
10750 case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_link") 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10763 { (case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_try") 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest$ac_exeext'
10773 { (case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_try") 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_lib_dld_dld_link=yes
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ac_cv_lib_dld_dld_link=no
10790 rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10792 LIBS=$ac_check_lib_save_LIBS
10794 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10795 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10796 if test $ac_cv_lib_dld_dld_link = yes; then
10798 cat >>confdefs.h <<\_ACEOF
10802 LIBADD_DL="$LIBADD_DL -ldld"
10804 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10805 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10806 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 cat >conftest.$ac_ext <<_ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10817 #define _dyld_func_lookup innocuous__dyld_func_lookup
10819 /* System header to define __stub macros and hopefully few prototypes,
10820 which can conflict with char _dyld_func_lookup (); below.
10821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10822 <limits.h> exists even on freestanding compilers. */
10825 # include <limits.h>
10827 # include <assert.h>
10830 #undef _dyld_func_lookup
10832 /* Override any GCC internal prototype to avoid an error.
10833 Use char because int might match the return type of a GCC
10834 builtin and then its argument prototype would still apply. */
10838 char _dyld_func_lookup ();
10839 /* The GNU C library defines this for functions which it implements
10840 to always fail with ENOSYS. Some functions are actually named
10841 something starting with __ and the normal name is an alias. */
10842 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10849 return _dyld_func_lookup ();
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest$ac_exeext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 ac_cv_func__dyld_func_lookup=yes
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_cv_func__dyld_func_lookup=no
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10899 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10900 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10901 if test $ac_cv_func__dyld_func_lookup = yes; then
10903 cat >>confdefs.h <<\_ACEOF
10904 #define HAVE_DYLD 1
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10930 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10932 lt_save_LIBS="$LIBS"
10933 LIBS="$LIBS $LIBADD_DL"
10935 for ac_func in dlerror
10937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 cat >conftest.$ac_ext <<_ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10951 #define $ac_func innocuous_$ac_func
10953 /* System header to define __stub macros and hopefully few prototypes,
10954 which can conflict with char $ac_func (); below.
10955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10956 <limits.h> exists even on freestanding compilers. */
10959 # include <limits.h>
10961 # include <assert.h>
10966 /* Override any GCC internal prototype to avoid an error.
10967 Use char because int might match the return type of a GCC
10968 builtin and then its argument prototype would still apply. */
10973 /* The GNU C library defines this for functions which it implements
10974 to always fail with ENOSYS. Some functions are actually named
10975 something starting with __ and the normal name is an alias. */
10976 #if defined __stub_$ac_func || defined __stub___$ac_func
10983 return $ac_func ();
10988 rm -f conftest.$ac_objext conftest$ac_exeext
10989 if { (ac_try="$ac_link"
10990 case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_link") 2>conftest.er1
10997 grep -v '^ *+' conftest.er1 >conftest.err
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } &&
11002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11003 { (case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_try") 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest$ac_exeext'
11013 { (case "(($ac_try" in
11014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015 *) ac_try_echo=$ac_try;;
11017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11018 (eval "$ac_try") 2>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
11022 eval "$as_ac_var=yes"
11024 echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.$ac_ext >&5
11027 eval "$as_ac_var=no"
11030 rm -f core conftest.err conftest.$ac_objext \
11031 conftest$ac_exeext conftest.$ac_ext
11033 ac_res=`eval echo '${'$as_ac_var'}'`
11034 { echo "$as_me:$LINENO: result: $ac_res" >&5
11035 echo "${ECHO_T}$ac_res" >&6; }
11036 if test `eval echo '${'$as_ac_var'}'` = yes; then
11037 cat >>confdefs.h <<_ACEOF
11038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11044 LIBS="$lt_save_LIBS"
11047 ac_cpp='$CPP $CPPFLAGS'
11048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11054 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11055 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11056 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 ac_cv_sys_symbol_underscore=no
11060 cat > conftest.$ac_ext <<EOF
11061 void nm_test_func(){}
11062 int main(){nm_test_func;return 0;}
11064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11065 (eval $ac_compile) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; then
11069 # Now try to grab the symbols.
11070 ac_nlist=conftest.nm
11071 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11072 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } && test -s "$ac_nlist"; then
11076 # See whether the symbols have a leading underscore.
11077 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11078 ac_cv_sys_symbol_underscore=yes
11080 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11083 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11087 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11090 echo "configure: failed program was:" >&5
11096 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11097 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11100 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11101 if test x"$libltdl_cv_func_dlopen" = xyes ||
11102 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11103 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11104 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11105 if test "${libltdl_cv_need_uscore+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 libltdl_cv_need_uscore=unknown
11110 LIBS="$LIBS $LIBADD_DL"
11111 if test "$cross_compiling" = yes; then :
11112 libltdl_cv_need_uscore=cross
11114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11115 lt_status=$lt_dlunknown
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11117 "configure"
11118 #include "confdefs.h"
11127 # define LT_DLGLOBAL RTLD_GLOBAL
11130 # define LT_DLGLOBAL DL_GLOBAL
11132 # define LT_DLGLOBAL 0
11136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11137 find out it does not work in some platform. */
11138 #ifndef LT_DLLAZY_OR_NOW
11140 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11143 # define LT_DLLAZY_OR_NOW DL_LAZY
11146 # define LT_DLLAZY_OR_NOW RTLD_NOW
11149 # define LT_DLLAZY_OR_NOW DL_NOW
11151 # define LT_DLLAZY_OR_NOW 0
11159 extern "C" void exit (int);
11162 void fnord() { int i=42;}
11165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11166 int status = $lt_dlunknown;
11170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11171 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11172 /* dlclose (self); */
11180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11181 (eval $ac_link) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11185 (./conftest; exit; ) >&5 2>/dev/null
11187 case x$lt_status in
11188 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11189 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11190 x$lt_dlunknown|x*) ;;
11193 # compilation failed
11202 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11203 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11207 if test x"$libltdl_cv_need_uscore" = xyes; then
11209 cat >>confdefs.h <<\_ACEOF
11210 #define NEED_USCORE 1
11216 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11217 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11218 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 # PORTME does your system automatically load deplibs for dlopen?
11222 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11223 # For now, we just catch OSes we know something about -- in the
11224 # future, we'll try test this programmatically.
11225 libltdl_cv_sys_dlopen_deplibs=unknown
11227 aix3*|aix4.1.*|aix4.2.*)
11228 # Unknown whether this is true for these versions of AIX, but
11229 # we want this `case' here to explicitly catch those versions.
11230 libltdl_cv_sys_dlopen_deplibs=unknown
11233 libltdl_cv_sys_dlopen_deplibs=yes
11236 # Assuming the user has installed a libdl from somewhere, this is true
11237 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11238 libltdl_cv_sys_dlopen_deplibs=yes
11240 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11241 # GNU and its variants, using gnu ld.so (Glibc)
11242 libltdl_cv_sys_dlopen_deplibs=yes
11245 libltdl_cv_sys_dlopen_deplibs=yes
11248 libltdl_cv_sys_dlopen_deplibs=yes
11250 irix[12345]*|irix6.[01]*)
11251 # Catch all versions of IRIX before 6.2, and indicate that we don't
11252 # know how it worked for any of those versions.
11253 libltdl_cv_sys_dlopen_deplibs=unknown
11256 # The case above catches anything before 6.2, and it's known that
11257 # at 6.2 and later dlopen does load deplibs.
11258 libltdl_cv_sys_dlopen_deplibs=yes
11261 libltdl_cv_sys_dlopen_deplibs=yes
11264 libltdl_cv_sys_dlopen_deplibs=yes
11267 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11268 # it did *not* use an RPATH in a shared library to find objects the
11269 # library depends on, so we explictly say `no'.
11270 libltdl_cv_sys_dlopen_deplibs=no
11272 osf5.0|osf5.0a|osf5.1)
11273 # dlopen *does* load deplibs and with the right loader patch applied
11274 # it even uses RPATH in a shared library to search for shared objects
11275 # that the library depends on, but there's no easy way to know if that
11276 # patch is installed. Since this is the case, all we can really
11277 # say is unknown -- it depends on the patch being installed. If
11278 # it is, this changes to `yes'. Without it, it would be `no'.
11279 libltdl_cv_sys_dlopen_deplibs=unknown
11282 # the two cases above should catch all versions of osf <= 5.1. Read
11283 # the comments above for what we know about them.
11284 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11285 # is used to find them so we can finally say `yes'.
11286 libltdl_cv_sys_dlopen_deplibs=yes
11289 libltdl_cv_sys_dlopen_deplibs=yes
11291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11292 libltdl_cv_sys_dlopen_deplibs=yes
11297 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11298 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11299 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11301 cat >>confdefs.h <<\_ACEOF
11302 #define LTDL_DLOPEN_DEPLIBS 1
11308 for ac_header in argz.h
11310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 ac_res=`eval echo '${'$as_ac_Header'}'`
11318 { echo "$as_me:$LINENO: result: $ac_res" >&5
11319 echo "${ECHO_T}$ac_res" >&6; }
11321 # Is the header compilable?
11322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11324 cat >conftest.$ac_ext <<_ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 $ac_includes_default
11331 #include <$ac_header>
11333 rm -f conftest.$ac_objext
11334 if { (ac_try="$ac_compile"
11335 case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_compile") 2>conftest.er1
11342 grep -v '^ *+' conftest.er1 >conftest.err
11344 cat conftest.err >&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } &&
11347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11348 { (case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_try") 2>&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; } &&
11357 { ac_try='test -s conftest.$ac_objext'
11358 { (case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_try") 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 ac_header_compiler=yes
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11372 ac_header_compiler=no
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11377 echo "${ECHO_T}$ac_header_compiler" >&6; }
11379 # Is the header present?
11380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 #include <$ac_header>
11390 if { (ac_try="$ac_cpp conftest.$ac_ext"
11391 case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11398 grep -v '^ *+' conftest.er1 >conftest.err
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } >/dev/null; then
11403 if test -s conftest.err; then
11404 ac_cpp_err=$ac_c_preproc_warn_flag
11405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11412 if test -z "$ac_cpp_err"; then
11413 ac_header_preproc=yes
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_header_preproc=no
11421 rm -f conftest.err conftest.$ac_ext
11422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11423 echo "${ECHO_T}$ac_header_preproc" >&6; }
11425 # So? What about this header?
11426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11432 ac_header_preproc=yes
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11448 ## ----------------------------------- ##
11449 ## Report this to llvmbugs@cs.uiuc.edu ##
11450 ## ----------------------------------- ##
11452 ) | sed "s/^/$as_me: WARNING: /" >&2
11455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 eval "$as_ac_Header=\$ac_header_preproc"
11462 ac_res=`eval echo '${'$as_ac_Header'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11477 { echo "$as_me:$LINENO: checking for error_t" >&5
11478 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11479 if test "${ac_cv_type_error_t+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11492 typedef error_t ac__type_new_;
11496 if ((ac__type_new_ *) 0)
11498 if (sizeof (ac__type_new_))
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11513 grep -v '^ *+' conftest.er1 >conftest.err
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11519 { (case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_try") 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest.$ac_objext'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
11538 ac_cv_type_error_t=yes
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_cv_type_error_t=no
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11549 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11550 if test $ac_cv_type_error_t = yes; then
11552 cat >>confdefs.h <<_ACEOF
11553 #define HAVE_ERROR_T 1
11559 cat >>confdefs.h <<\_ACEOF
11560 #define error_t int
11571 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 cat >conftest.$ac_ext <<_ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11587 #define $ac_func innocuous_$ac_func
11589 /* System header to define __stub macros and hopefully few prototypes,
11590 which can conflict with char $ac_func (); below.
11591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592 <limits.h> exists even on freestanding compilers. */
11595 # include <limits.h>
11597 # include <assert.h>
11602 /* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11609 /* The GNU C library defines this for functions which it implements
11610 to always fail with ENOSYS. Some functions are actually named
11611 something starting with __ and the normal name is an alias. */
11612 #if defined __stub_$ac_func || defined __stub___$ac_func
11619 return $ac_func ();
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_link") 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_try") 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 eval "$as_ac_var=no"
11666 rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11669 ac_res=`eval echo '${'$as_ac_var'}'`
11670 { echo "$as_me:$LINENO: result: $ac_res" >&5
11671 echo "${ECHO_T}$ac_res" >&6; }
11672 if test `eval echo '${'$as_ac_var'}'` = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11707 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 ac_res=`eval echo '${'$as_ac_Header'}'`
11718 { echo "$as_me:$LINENO: result: $ac_res" >&5
11719 echo "${ECHO_T}$ac_res" >&6; }
11721 # Is the header compilable?
11722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 $ac_includes_default
11731 #include <$ac_header>
11733 rm -f conftest.$ac_objext
11734 if { (ac_try="$ac_compile"
11735 case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_compile") 2>conftest.er1
11742 grep -v '^ *+' conftest.er1 >conftest.err
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11748 { (case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753 (eval "$ac_try") 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_try") 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 ac_header_compiler=yes
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11772 ac_header_compiler=no
11775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11777 echo "${ECHO_T}$ac_header_compiler" >&6; }
11779 # Is the header present?
11780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11782 cat >conftest.$ac_ext <<_ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11788 #include <$ac_header>
11790 if { (ac_try="$ac_cpp conftest.$ac_ext"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11798 grep -v '^ *+' conftest.er1 >conftest.err
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } >/dev/null; then
11803 if test -s conftest.err; then
11804 ac_cpp_err=$ac_c_preproc_warn_flag
11805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11812 if test -z "$ac_cpp_err"; then
11813 ac_header_preproc=yes
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 ac_header_preproc=no
11821 rm -f conftest.err conftest.$ac_ext
11822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11823 echo "${ECHO_T}$ac_header_preproc" >&6; }
11825 # So? What about this header?
11826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11832 ac_header_preproc=yes
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11848 ## ----------------------------------- ##
11849 ## Report this to llvmbugs@cs.uiuc.edu ##
11850 ## ----------------------------------- ##
11852 ) | sed "s/^/$as_me: WARNING: /" >&2
11855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 eval "$as_ac_Header=\$ac_header_preproc"
11862 ac_res=`eval echo '${'$as_ac_Header'}'`
11863 { echo "$as_me:$LINENO: result: $ac_res" >&5
11864 echo "${ECHO_T}$ac_res" >&6; }
11867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11868 cat >>confdefs.h <<_ACEOF
11869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11880 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 ac_res=`eval echo '${'$as_ac_Header'}'`
11890 { echo "$as_me:$LINENO: result: $ac_res" >&5
11891 echo "${ECHO_T}$ac_res" >&6; }
11893 # Is the header compilable?
11894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 $ac_includes_default
11903 #include <$ac_header>
11905 rm -f conftest.$ac_objext
11906 if { (ac_try="$ac_compile"
11907 case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_compile") 2>conftest.er1
11914 grep -v '^ *+' conftest.er1 >conftest.err
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11920 { (case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_try") 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest.$ac_objext'
11930 { (case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_try") 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_header_compiler=yes
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 ac_header_compiler=no
11947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11949 echo "${ECHO_T}$ac_header_compiler" >&6; }
11951 # Is the header present?
11952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11954 cat >conftest.$ac_ext <<_ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 #include <$ac_header>
11962 if { (ac_try="$ac_cpp conftest.$ac_ext"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11970 grep -v '^ *+' conftest.er1 >conftest.err
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } >/dev/null; then
11975 if test -s conftest.err; then
11976 ac_cpp_err=$ac_c_preproc_warn_flag
11977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11984 if test -z "$ac_cpp_err"; then
11985 ac_header_preproc=yes
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ac_header_preproc=no
11993 rm -f conftest.err conftest.$ac_ext
11994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11995 echo "${ECHO_T}$ac_header_preproc" >&6; }
11997 # So? What about this header?
11998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12004 ac_header_preproc=yes
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12020 ## ----------------------------------- ##
12021 ## Report this to llvmbugs@cs.uiuc.edu ##
12022 ## ----------------------------------- ##
12024 ) | sed "s/^/$as_me: WARNING: /" >&2
12027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 eval "$as_ac_Header=\$ac_header_preproc"
12034 ac_res=`eval echo '${'$as_ac_Header'}'`
12035 { echo "$as_me:$LINENO: result: $ac_res" >&5
12036 echo "${ECHO_T}$ac_res" >&6; }
12039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12050 for ac_header in string.h strings.h
12052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 ac_res=`eval echo '${'$as_ac_Header'}'`
12060 { echo "$as_me:$LINENO: result: $ac_res" >&5
12061 echo "${ECHO_T}$ac_res" >&6; }
12063 # Is the header compilable?
12064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12066 cat >conftest.$ac_ext <<_ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 $ac_includes_default
12073 #include <$ac_header>
12075 rm -f conftest.$ac_objext
12076 if { (ac_try="$ac_compile"
12077 case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_compile") 2>conftest.er1
12084 grep -v '^ *+' conftest.er1 >conftest.err
12086 cat conftest.err >&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12090 { (case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_try") 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try='test -s conftest.$ac_objext'
12100 { (case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_try") 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_header_compiler=yes
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ac_header_compiler=no
12117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12119 echo "${ECHO_T}$ac_header_compiler" >&6; }
12121 # Is the header present?
12122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12124 cat >conftest.$ac_ext <<_ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130 #include <$ac_header>
12132 if { (ac_try="$ac_cpp conftest.$ac_ext"
12133 case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12140 grep -v '^ *+' conftest.er1 >conftest.err
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } >/dev/null; then
12145 if test -s conftest.err; then
12146 ac_cpp_err=$ac_c_preproc_warn_flag
12147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12154 if test -z "$ac_cpp_err"; then
12155 ac_header_preproc=yes
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 ac_header_preproc=no
12163 rm -f conftest.err conftest.$ac_ext
12164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12165 echo "${ECHO_T}$ac_header_preproc" >&6; }
12167 # So? What about this header?
12168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12174 ac_header_preproc=yes
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12190 ## ----------------------------------- ##
12191 ## Report this to llvmbugs@cs.uiuc.edu ##
12192 ## ----------------------------------- ##
12194 ) | sed "s/^/$as_me: WARNING: /" >&2
12197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12202 eval "$as_ac_Header=\$ac_header_preproc"
12204 ac_res=`eval echo '${'$as_ac_Header'}'`
12205 { echo "$as_me:$LINENO: result: $ac_res" >&5
12206 echo "${ECHO_T}$ac_res" >&6; }
12209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12210 cat >>confdefs.h <<_ACEOF
12211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12221 for ac_func in strchr index
12223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237 #define $ac_func innocuous_$ac_func
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12245 # include <limits.h>
12247 # include <assert.h>
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined __stub_$ac_func || defined __stub___$ac_func
12269 return $ac_func ();
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_try") 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 eval "$as_ac_var=yes"
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 eval "$as_ac_var=no"
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12319 ac_res=`eval echo '${'$as_ac_var'}'`
12320 { echo "$as_me:$LINENO: result: $ac_res" >&5
12321 echo "${ECHO_T}$ac_res" >&6; }
12322 if test `eval echo '${'$as_ac_var'}'` = yes; then
12323 cat >>confdefs.h <<_ACEOF
12324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12332 for ac_func in strrchr rindex
12334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12348 #define $ac_func innocuous_$ac_func
12350 /* System header to define __stub macros and hopefully few prototypes,
12351 which can conflict with char $ac_func (); below.
12352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12353 <limits.h> exists even on freestanding compilers. */
12356 # include <limits.h>
12358 # include <assert.h>
12363 /* Override any GCC internal prototype to avoid an error.
12364 Use char because int might match the return type of a GCC
12365 builtin and then its argument prototype would still apply. */
12370 /* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
12373 #if defined __stub_$ac_func || defined __stub___$ac_func
12380 return $ac_func ();
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_link") 2>conftest.er1
12394 grep -v '^ *+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
12399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12400 { (case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_try") 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; } &&
12409 { ac_try='test -s conftest$ac_exeext'
12410 { (case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_try") 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12419 eval "$as_ac_var=yes"
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12424 eval "$as_ac_var=no"
12427 rm -f core conftest.err conftest.$ac_objext \
12428 conftest$ac_exeext conftest.$ac_ext
12430 ac_res=`eval echo '${'$as_ac_var'}'`
12431 { echo "$as_me:$LINENO: result: $ac_res" >&5
12432 echo "${ECHO_T}$ac_res" >&6; }
12433 if test `eval echo '${'$as_ac_var'}'` = yes; then
12434 cat >>confdefs.h <<_ACEOF
12435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12443 for ac_func in memcpy bcopy
12445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12459 #define $ac_func innocuous_$ac_func
12461 /* System header to define __stub macros and hopefully few prototypes,
12462 which can conflict with char $ac_func (); below.
12463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12464 <limits.h> exists even on freestanding compilers. */
12467 # include <limits.h>
12469 # include <assert.h>
12474 /* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12481 /* The GNU C library defines this for functions which it implements
12482 to always fail with ENOSYS. Some functions are actually named
12483 something starting with __ and the normal name is an alias. */
12484 #if defined __stub_$ac_func || defined __stub___$ac_func
12491 return $ac_func ();
12496 rm -f conftest.$ac_objext conftest$ac_exeext
12497 if { (ac_try="$ac_link"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_link") 2>conftest.er1
12505 grep -v '^ *+' conftest.er1 >conftest.err
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } &&
12510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12511 { (case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_try") 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest$ac_exeext'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 eval "$as_ac_var=yes"
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 eval "$as_ac_var=no"
12538 rm -f core conftest.err conftest.$ac_objext \
12539 conftest$ac_exeext conftest.$ac_ext
12541 ac_res=`eval echo '${'$as_ac_var'}'`
12542 { echo "$as_me:$LINENO: result: $ac_res" >&5
12543 echo "${ECHO_T}$ac_res" >&6; }
12544 if test `eval echo '${'$as_ac_var'}'` = yes; then
12545 cat >>confdefs.h <<_ACEOF
12546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12554 for ac_func in memmove strcmp
12556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 cat >conftest.$ac_ext <<_ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12570 #define $ac_func innocuous_$ac_func
12572 /* System header to define __stub macros and hopefully few prototypes,
12573 which can conflict with char $ac_func (); below.
12574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12575 <limits.h> exists even on freestanding compilers. */
12578 # include <limits.h>
12580 # include <assert.h>
12585 /* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
12592 /* The GNU C library defines this for functions which it implements
12593 to always fail with ENOSYS. Some functions are actually named
12594 something starting with __ and the normal name is an alias. */
12595 #if defined __stub_$ac_func || defined __stub___$ac_func
12602 return $ac_func ();
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (ac_try="$ac_link"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_link") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1 >conftest.err
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12622 { (case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_try") 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest$ac_exeext'
12632 { (case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_try") 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; }; then
12641 eval "$as_ac_var=yes"
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 eval "$as_ac_var=no"
12649 rm -f core conftest.err conftest.$ac_objext \
12650 conftest$ac_exeext conftest.$ac_ext
12652 ac_res=`eval echo '${'$as_ac_var'}'`
12653 { echo "$as_me:$LINENO: result: $ac_res" >&5
12654 echo "${ECHO_T}$ac_res" >&6; }
12655 if test `eval echo '${'$as_ac_var'}'` = yes; then
12656 cat >>confdefs.h <<_ACEOF
12657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12666 for ac_func in closedir opendir readdir
12668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12671 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 cat >conftest.$ac_ext <<_ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12682 #define $ac_func innocuous_$ac_func
12684 /* System header to define __stub macros and hopefully few prototypes,
12685 which can conflict with char $ac_func (); below.
12686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12687 <limits.h> exists even on freestanding compilers. */
12690 # include <limits.h>
12692 # include <assert.h>
12697 /* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
12704 /* The GNU C library defines this for functions which it implements
12705 to always fail with ENOSYS. Some functions are actually named
12706 something starting with __ and the normal name is an alias. */
12707 #if defined __stub_$ac_func || defined __stub___$ac_func
12714 return $ac_func ();
12719 rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (ac_try="$ac_link"
12721 case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_link") 2>conftest.er1
12728 grep -v '^ *+' conftest.er1 >conftest.err
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
12733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12734 { (case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_try") 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest$ac_exeext'
12744 { (case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_try") 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 eval "$as_ac_var=yes"
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 eval "$as_ac_var=no"
12761 rm -f core conftest.err conftest.$ac_objext \
12762 conftest$ac_exeext conftest.$ac_ext
12764 ac_res=`eval echo '${'$as_ac_var'}'`
12765 { echo "$as_me:$LINENO: result: $ac_res" >&5
12766 echo "${ECHO_T}$ac_res" >&6; }
12767 if test `eval echo '${'$as_ac_var'}'` = yes; then
12768 cat >>confdefs.h <<_ACEOF
12769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12776 # Check whether --enable-shared was given.
12777 if test "${enable_shared+set}" = set; then
12778 enableval=$enable_shared; p=${PACKAGE-default}
12780 yes) enable_shared=yes ;;
12781 no) enable_shared=no ;;
12784 # Look at the argument we got. We use all the common list separators.
12785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12786 for pkg in $enableval; do
12788 if test "X$pkg" = "X$p"; then
12800 # Check whether --enable-static was given.
12801 if test "${enable_static+set}" = set; then
12802 enableval=$enable_static; p=${PACKAGE-default}
12804 yes) enable_static=yes ;;
12805 no) enable_static=no ;;
12808 # Look at the argument we got. We use all the common list separators.
12809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12810 for pkg in $enableval; do
12812 if test "X$pkg" = "X$p"; then
12824 # Check whether --enable-fast-install was given.
12825 if test "${enable_fast_install+set}" = set; then
12826 enableval=$enable_fast_install; p=${PACKAGE-default}
12828 yes) enable_fast_install=yes ;;
12829 no) enable_fast_install=no ;;
12831 enable_fast_install=no
12832 # Look at the argument we got. We use all the common list separators.
12833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12834 for pkg in $enableval; do
12836 if test "X$pkg" = "X$p"; then
12837 enable_fast_install=yes
12844 enable_fast_install=yes
12848 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12849 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12850 if test "${lt_cv_path_SED+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 # Loop through the user's path and test for sed and gsed.
12854 # Then use that list of sed's as ones to test for truncation.
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12859 test -z "$as_dir" && as_dir=.
12860 for lt_ac_prog in sed gsed; do
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12863 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12870 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12871 # along with /bin/sed that truncates output.
12872 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12873 test ! -f $lt_ac_sed && continue
12874 cat /dev/null > conftest.in
12876 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12877 # Check for GNU sed and select it if it is found.
12878 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12879 lt_cv_path_SED=$lt_ac_sed
12883 cat conftest.in conftest.in >conftest.tmp
12884 mv conftest.tmp conftest.in
12885 cp conftest.in conftest.nl
12887 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12888 cmp -s conftest.out conftest.nl || break
12889 # 10000 chars as input seems more than enough
12890 test $lt_ac_count -gt 10 && break
12891 lt_ac_count=`expr $lt_ac_count + 1`
12892 if test $lt_ac_count -gt $lt_ac_max; then
12893 lt_ac_max=$lt_ac_count
12894 lt_cv_path_SED=$lt_ac_sed
12901 SED=$lt_cv_path_SED
12902 { echo "$as_me:$LINENO: result: $SED" >&5
12903 echo "${ECHO_T}$SED" >&6; }
12906 # Check whether --with-gnu-ld was given.
12907 if test "${with_gnu_ld+set}" = set; then
12908 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12914 if test "$GCC" = yes; then
12915 # Check if gcc -print-prog-name=ld gives a path.
12916 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12917 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12920 # gcc leaves a trailing carriage return which upsets mingw
12921 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12923 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12926 # Accept absolute paths.
12928 re_direlt='/[^/][^/]*/\.\./'
12929 # Canonicalize the pathname of ld
12930 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12931 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12932 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12934 test -z "$LD" && LD="$ac_prog"
12937 # If it fails, then pretend we aren't using GCC.
12941 # If it is relative, then search for the first ld in PATH.
12942 with_gnu_ld=unknown
12945 elif test "$with_gnu_ld" = yes; then
12946 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12947 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12949 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12950 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12952 if test "${lt_cv_path_LD+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 if test -z "$LD"; then
12956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12957 for ac_dir in $PATH; do
12959 test -z "$ac_dir" && ac_dir=.
12960 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12961 lt_cv_path_LD="$ac_dir/$ac_prog"
12962 # Check to see if the program is GNU ld. I'd rather use --version,
12963 # but apparently some variants of GNU ld only accept -v.
12964 # Break only if it was the GNU/non-GNU ld that we prefer.
12965 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12966 *GNU* | *'with BFD'*)
12967 test "$with_gnu_ld" != no && break
12970 test "$with_gnu_ld" != yes && break
12977 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12981 LD="$lt_cv_path_LD"
12982 if test -n "$LD"; then
12983 { echo "$as_me:$LINENO: result: $LD" >&5
12984 echo "${ECHO_T}$LD" >&6; }
12986 { echo "$as_me:$LINENO: result: no" >&5
12987 echo "${ECHO_T}no" >&6; }
12989 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12990 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12991 { (exit 1); exit 1; }; }
12992 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12993 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12994 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12998 case `$LD -v 2>&1 </dev/null` in
12999 *GNU* | *'with BFD'*)
13000 lt_cv_prog_gnu_ld=yes
13003 lt_cv_prog_gnu_ld=no
13007 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13008 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13009 with_gnu_ld=$lt_cv_prog_gnu_ld
13012 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13013 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
13014 if test "${lt_cv_ld_reload_flag+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 lt_cv_ld_reload_flag='-r'
13019 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13020 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
13021 reload_flag=$lt_cv_ld_reload_flag
13022 case $reload_flag in
13024 *) reload_flag=" $reload_flag" ;;
13026 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13029 if test "$GCC" = yes; then
13030 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
13032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13037 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13038 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
13039 if test "${lt_cv_deplibs_check_method+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13042 lt_cv_file_magic_cmd='$MAGIC_CMD'
13043 lt_cv_file_magic_test_file=
13044 lt_cv_deplibs_check_method='unknown'
13045 # Need to set the preceding variable on all platforms that support
13046 # interlibrary dependencies.
13047 # 'none' -- dependencies not supported.
13048 # `unknown' -- same as none, but documents that we really don't know.
13049 # 'pass_all' -- all dependencies passed with no checks.
13050 # 'test_compile' -- check by making test program.
13051 # 'file_magic [[regex]]' -- check by looking for files in library path
13052 # which responds to the $file_magic_cmd with a given extended regex.
13053 # If you have `file' or equivalent on your system and you're not sure
13054 # whether `pass_all' will *always* work, you probably want this one.
13058 lt_cv_deplibs_check_method=pass_all
13062 lt_cv_deplibs_check_method=pass_all
13066 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13067 lt_cv_file_magic_cmd='/usr/bin/file -L'
13068 lt_cv_file_magic_test_file=/shlib/libc.so
13072 # func_win32_libid is a shell function defined in ltmain.sh
13073 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13074 lt_cv_file_magic_cmd='func_win32_libid'
13078 # Base MSYS/MinGW do not provide the 'file' command needed by
13079 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13080 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13081 lt_cv_file_magic_cmd='$OBJDUMP -f'
13084 darwin* | rhapsody*)
13085 lt_cv_deplibs_check_method=pass_all
13088 freebsd* | kfreebsd*-gnu | dragonfly*)
13089 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13092 # Not sure whether the presence of OpenBSD here was a mistake.
13093 # Let's accept both of them until this is cleared up.
13094 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13095 lt_cv_file_magic_cmd=/usr/bin/file
13096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13100 lt_cv_deplibs_check_method=pass_all
13105 lt_cv_deplibs_check_method=pass_all
13108 hpux10.20* | hpux11*)
13109 lt_cv_file_magic_cmd=/usr/bin/file
13112 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13113 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13116 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]'
13117 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13120 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13121 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13127 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13131 irix5* | irix6* | nonstopux*)
13133 *-32|*"-32 ") libmagic=32-bit;;
13134 *-n32|*"-n32 ") libmagic=N32;;
13135 *-64|*"-64 ") libmagic=64-bit;;
13136 *) libmagic=never-match;;
13138 lt_cv_deplibs_check_method=pass_all
13141 # This must be Linux ELF.
13143 lt_cv_deplibs_check_method=pass_all
13147 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13156 lt_cv_file_magic_cmd=/usr/bin/file
13157 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13161 lt_cv_deplibs_check_method=unknown
13165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13172 osf3* | osf4* | osf5*)
13173 lt_cv_deplibs_check_method=pass_all
13177 lt_cv_deplibs_check_method=pass_all
13181 case $host_vendor in
13183 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]'
13184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13187 lt_cv_deplibs_check_method=pass_all
13190 lt_cv_file_magic_cmd='/bin/file'
13191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13194 lt_cv_file_magic_cmd='/bin/file'
13195 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13196 lt_cv_file_magic_test_file=/lib/libc.so
13199 lt_cv_deplibs_check_method=pass_all
13202 lt_cv_deplibs_check_method=pass_all
13207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13208 lt_cv_deplibs_check_method=pass_all
13213 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13214 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13215 file_magic_cmd=$lt_cv_file_magic_cmd
13216 deplibs_check_method=$lt_cv_deplibs_check_method
13217 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13221 # If no C compiler was specified, use CC.
13224 # If no C compiler flags were specified, use CFLAGS.
13225 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13227 # Allow CC to be a program name with arguments.
13230 # Check whether --enable-libtool-lock was given.
13231 if test "${enable_libtool_lock+set}" = set; then
13232 enableval=$enable_libtool_lock;
13235 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13237 # Some flags need to be propagated to the compiler or linker for good
13241 # Find out which ABI we are using.
13242 echo 'int i;' > conftest.$ac_ext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244 (eval $ac_compile) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; then
13248 case `/usr/bin/file conftest.$ac_objext` in
13250 HPUX_IA64_MODE="32"
13253 HPUX_IA64_MODE="64"
13260 # Find out which ABI we are using.
13261 echo '#line 13261 "configure"' > conftest.$ac_ext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263 (eval $ac_compile) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; then
13267 if test "$lt_cv_prog_gnu_ld" = yes; then
13268 case `/usr/bin/file conftest.$ac_objext` in
13270 LD="${LD-ld} -melf32bsmip"
13273 LD="${LD-ld} -melf32bmipn32"
13276 LD="${LD-ld} -melf64bmip"
13280 case `/usr/bin/file conftest.$ac_objext` in
13296 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13297 # Find out which ABI we are using.
13298 echo 'int i;' > conftest.$ac_ext
13299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13300 (eval $ac_compile) 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; then
13304 case `/usr/bin/file conftest.o` in
13308 LD="${LD-ld} -m elf_i386"
13310 ppc64-*linux*|powerpc64-*linux*)
13311 LD="${LD-ld} -m elf32ppclinux"
13314 LD="${LD-ld} -m elf_s390"
13317 LD="${LD-ld} -m elf32_sparc"
13324 LD="${LD-ld} -m elf_x86_64"
13326 ppc*-*linux*|powerpc*-*linux*)
13327 LD="${LD-ld} -m elf64ppc"
13330 LD="${LD-ld} -m elf64_s390"
13333 LD="${LD-ld} -m elf64_sparc"
13343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13344 SAVE_CFLAGS="$CFLAGS"
13345 CFLAGS="$CFLAGS -belf"
13346 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13347 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13348 if test "${lt_cv_cc_needs_belf+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13352 ac_cpp='$CPP $CPPFLAGS'
13353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13372 rm -f conftest.$ac_objext conftest$ac_exeext
13373 if { (ac_try="$ac_link"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_link") 2>conftest.er1
13381 grep -v '^ *+' conftest.er1 >conftest.err
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13387 { (case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392 (eval "$ac_try") 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try='test -s conftest$ac_exeext'
13397 { (case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_try") 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 lt_cv_cc_needs_belf=yes
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13411 lt_cv_cc_needs_belf=no
13414 rm -f core conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13417 ac_cpp='$CPP $CPPFLAGS'
13418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13423 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13424 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13425 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13426 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13427 CFLAGS="$SAVE_CFLAGS"
13431 # Find out which ABI we are using.
13432 echo 'int i;' > conftest.$ac_ext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; then
13438 case `/usr/bin/file conftest.o` in
13440 case $lt_cv_prog_gnu_ld in
13441 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13442 *) LD="${LD-ld} -64" ;;
13453 need_locks="$enable_libtool_lock"
13458 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13459 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13460 (test "X$CXX" != "Xg++"))) ; then
13462 ac_cpp='$CXXCPP $CPPFLAGS'
13463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13466 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13467 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13468 if test -z "$CXXCPP"; then
13469 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 # Double quotes because CXXCPP needs to be expanded
13473 for CXXCPP in "$CXX -E" "/lib/cpp"
13475 ac_preproc_ok=false
13476 for ac_cxx_preproc_warn_flag in '' yes
13478 # Use a header file that comes with gcc, so configuring glibc
13479 # with a fresh cross-compiler works.
13480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13481 # <limits.h> exists even on freestanding compilers.
13482 # On the NeXT, cc -E runs the code through the compiler's parser,
13483 # not just through cpp. "Syntax error" is here to catch this case.
13484 cat >conftest.$ac_ext <<_ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13491 # include <limits.h>
13493 # include <assert.h>
13497 if { (ac_try="$ac_cpp conftest.$ac_ext"
13498 case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13505 grep -v '^ *+' conftest.er1 >conftest.err
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } >/dev/null; then
13510 if test -s conftest.err; then
13511 ac_cpp_err=$ac_cxx_preproc_warn_flag
13512 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13519 if test -z "$ac_cpp_err"; then
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13525 # Broken: fails on valid input.
13529 rm -f conftest.err conftest.$ac_ext
13531 # OK, works on sane cases. Now check whether nonexistent headers
13532 # can be detected and how.
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 #include <ac_nonexistent.h>
13541 if { (ac_try="$ac_cpp conftest.$ac_ext"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } >/dev/null; then
13554 if test -s conftest.err; then
13555 ac_cpp_err=$ac_cxx_preproc_warn_flag
13556 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13563 if test -z "$ac_cpp_err"; then
13564 # Broken: success on invalid input.
13567 echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13570 # Passes both tests.
13575 rm -f conftest.err conftest.$ac_ext
13578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13579 rm -f conftest.err conftest.$ac_ext
13580 if $ac_preproc_ok; then
13585 ac_cv_prog_CXXCPP=$CXXCPP
13588 CXXCPP=$ac_cv_prog_CXXCPP
13590 ac_cv_prog_CXXCPP=$CXXCPP
13592 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13593 echo "${ECHO_T}$CXXCPP" >&6; }
13594 ac_preproc_ok=false
13595 for ac_cxx_preproc_warn_flag in '' yes
13597 # Use a header file that comes with gcc, so configuring glibc
13598 # with a fresh cross-compiler works.
13599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13600 # <limits.h> exists even on freestanding compilers.
13601 # On the NeXT, cc -E runs the code through the compiler's parser,
13602 # not just through cpp. "Syntax error" is here to catch this case.
13603 cat >conftest.$ac_ext <<_ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13610 # include <limits.h>
13612 # include <assert.h>
13616 if { (ac_try="$ac_cpp conftest.$ac_ext"
13617 case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13624 grep -v '^ *+' conftest.er1 >conftest.err
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } >/dev/null; then
13629 if test -s conftest.err; then
13630 ac_cpp_err=$ac_cxx_preproc_warn_flag
13631 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13638 if test -z "$ac_cpp_err"; then
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13644 # Broken: fails on valid input.
13648 rm -f conftest.err conftest.$ac_ext
13650 # OK, works on sane cases. Now check whether nonexistent headers
13651 # can be detected and how.
13652 cat >conftest.$ac_ext <<_ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13658 #include <ac_nonexistent.h>
13660 if { (ac_try="$ac_cpp conftest.$ac_ext"
13661 case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } >/dev/null; then
13673 if test -s conftest.err; then
13674 ac_cpp_err=$ac_cxx_preproc_warn_flag
13675 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13682 if test -z "$ac_cpp_err"; then
13683 # Broken: success on invalid input.
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 # Passes both tests.
13694 rm -f conftest.err conftest.$ac_ext
13697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13698 rm -f conftest.err conftest.$ac_ext
13699 if $ac_preproc_ok; then
13702 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13703 See \`config.log' for more details." >&5
13704 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13705 See \`config.log' for more details." >&2;}
13706 { (exit 1); exit 1; }; }
13710 ac_cpp='$CXXCPP $CPPFLAGS'
13711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13719 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13720 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13721 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13722 if test -n "$ac_tool_prefix"; then
13723 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
13725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13729 if test "${ac_cv_prog_F77+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 if test -n "$F77"; then
13733 ac_cv_prog_F77="$F77" # Let the user override the test.
13735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736 for as_dir in $PATH
13739 test -z "$as_dir" && as_dir=.
13740 for ac_exec_ext in '' $ac_executable_extensions; do
13741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13742 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13752 F77=$ac_cv_prog_F77
13753 if test -n "$F77"; then
13754 { echo "$as_me:$LINENO: result: $F77" >&5
13755 echo "${ECHO_T}$F77" >&6; }
13757 { echo "$as_me:$LINENO: result: no" >&5
13758 echo "${ECHO_T}no" >&6; }
13762 test -n "$F77" && break
13765 if test -z "$F77"; then
13767 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
13769 # Extract the first word of "$ac_prog", so it can be a program name with args.
13770 set dummy $ac_prog; ac_word=$2
13771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13773 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 if test -n "$ac_ct_F77"; then
13777 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13786 ac_cv_prog_ac_ct_F77="$ac_prog"
13787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13796 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13797 if test -n "$ac_ct_F77"; then
13798 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13799 echo "${ECHO_T}$ac_ct_F77" >&6; }
13801 { echo "$as_me:$LINENO: result: no" >&5
13802 echo "${ECHO_T}no" >&6; }
13806 test -n "$ac_ct_F77" && break
13809 if test "x$ac_ct_F77" = x; then
13812 case $cross_compiling:$ac_tool_warned in
13814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13815 whose name does not start with the host triplet. If you think this
13816 configuration is useful to you, please write to autoconf@gnu.org." >&5
13817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13818 whose name does not start with the host triplet. If you think this
13819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13820 ac_tool_warned=yes ;;
13827 # Provide some information about the compiler.
13828 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13829 ac_compiler=`set X $ac_compile; echo $2`
13830 { (ac_try="$ac_compiler --version >&5"
13831 case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_compiler --version >&5") 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }
13840 { (ac_try="$ac_compiler -v >&5"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compiler -v >&5") 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }
13850 { (ac_try="$ac_compiler -V >&5"
13851 case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_compiler -V >&5") 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }
13862 # If we don't use `.F' as extension, the preprocessor is not run on the
13863 # input file. (Note that this only needs to work for GNU compilers.)
13864 ac_save_ext=$ac_ext
13866 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13867 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13868 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 cat >conftest.$ac_ext <<_ACEOF
13879 rm -f conftest.$ac_objext
13880 if { (ac_try="$ac_compile"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_compile") 2>conftest.er1
13888 grep -v '^ *+' conftest.er1 >conftest.err
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13894 { (case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_try") 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; } &&
13903 { ac_try='test -s conftest.$ac_objext'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_compiler_gnu=yes
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13925 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13926 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13927 ac_ext=$ac_save_ext
13928 ac_test_FFLAGS=${FFLAGS+set}
13929 ac_save_FFLAGS=$FFLAGS
13931 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13932 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13933 if test "${ac_cv_prog_f77_g+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 cat >conftest.$ac_ext <<_ACEOF
13942 rm -f conftest.$ac_objext
13943 if { (ac_try="$ac_compile"
13944 case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_compile") 2>conftest.er1
13951 grep -v '^ *+' conftest.er1 >conftest.err
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
13956 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; } &&
13966 { ac_try='test -s conftest.$ac_objext'
13967 { (case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_try") 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_cv_prog_f77_g=yes
13978 echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13981 ac_cv_prog_f77_g=no
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13988 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13989 if test "$ac_test_FFLAGS" = set; then
13990 FFLAGS=$ac_save_FFLAGS
13991 elif test $ac_cv_prog_f77_g = yes; then
13992 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13998 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14005 G77=`test $ac_compiler_gnu = yes && echo yes`
14007 ac_cpp='$CPP $CPPFLAGS'
14008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14014 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14016 # find the maximum length of command line arguments
14017 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14018 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
14019 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 # On DJGPP, this test can blow up pretty badly due to problems in libc
14028 # (any single argument exceeding 2000 bytes causes a buffer overrun
14029 # during glob expansion). Even if it were fixed, the result of this
14030 # check would be larger than it should be.
14031 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14035 # Under GNU Hurd, this test is not required because there is
14036 # no limit to the length of command line arguments.
14037 # Libtool will interpret -1 as no limit whatsoever
14038 lt_cv_sys_max_cmd_len=-1;
14042 # On Win9x/ME, this test blows up -- it succeeds, but takes
14043 # about 5 minutes as the teststring grows exponentially.
14044 # Worse, since 9x/ME are not pre-emptively multitasking,
14045 # you end up with a "frozen" computer, even though with patience
14046 # the test eventually succeeds (with a max line length of 256k).
14047 # Instead, let's just punt: use the minimum linelength reported by
14048 # all of the supported platforms: 8192 (on NT/2K/XP).
14049 lt_cv_sys_max_cmd_len=8192;
14053 # On AmigaOS with pdksh, this test takes hours, literally.
14054 # So we just punt and use a minimum line length of 8192.
14055 lt_cv_sys_max_cmd_len=8192;
14058 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14059 # This has been around since 386BSD, at least. Likely further.
14060 if test -x /sbin/sysctl; then
14061 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14062 elif test -x /usr/sbin/sysctl; then
14063 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14065 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14067 # And add a safety zone
14068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14073 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14074 lt_cv_sys_max_cmd_len=196608
14078 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14079 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14080 # nice to cause kernel panics so lets avoid the loop below.
14081 # First set a reasonable default.
14082 lt_cv_sys_max_cmd_len=16384
14084 if test -x /sbin/sysconfig; then
14085 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14086 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14091 lt_cv_sys_max_cmd_len=102400
14093 sysv5* | sco5v6* | sysv4.2uw2*)
14094 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14095 if test -n "$kargmax"; then
14096 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14098 lt_cv_sys_max_cmd_len=32768
14102 # If test is not a shell built-in, we'll probably end up computing a
14103 # maximum length that is only half of the actual maximum length, but
14105 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14106 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14107 = "XX$teststring") >/dev/null 2>&1 &&
14108 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14109 lt_cv_sys_max_cmd_len=$new_result &&
14110 test $i != 17 # 1/2 MB should be enough
14113 teststring=$teststring$teststring
14116 # Add a significant safety factor because C++ compilers can tack on massive
14117 # amounts of additional arguments before passing them to the linker.
14118 # It appears as though 1/2 is a usable value.
14119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14125 if test -n $lt_cv_sys_max_cmd_len ; then
14126 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14127 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14129 { echo "$as_me:$LINENO: result: none" >&5
14130 echo "${ECHO_T}none" >&6; }
14136 # Check for command to grab the raw symbol name followed by C symbol from nm.
14137 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14138 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14139 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 # These are sane defaults that work on at least a few old systems.
14144 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14146 # Character class describing NM global symbol codes.
14147 symcode='[BCDEGRST]'
14149 # Regexp to match symbols that can be accessed directly from C.
14150 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14152 # Transform an extracted symbol line into a proper C declaration
14153 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14155 # Transform an extracted symbol line into symbol name and symbol address
14156 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'"
14158 # Define system-specific variables.
14163 cygwin* | mingw* | pw32*)
14164 symcode='[ABCDGISTW]'
14166 hpux*) # Its linker distinguishes data from code symbols
14167 if test "$host_cpu" = ia64; then
14168 symcode='[ABCDEGRST]'
14170 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14171 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'"
14174 if test "$host_cpu" = ia64; then
14175 symcode='[ABCDGIRSTW]'
14176 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14177 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'"
14180 irix* | nonstopux*)
14181 symcode='[BCDEGRST]'
14184 symcode='[BCDEGQRST]'
14195 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14203 # Handle CRLF in mingw tool chain
14207 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14211 # If we're using GNU nm, then use its standard symbol codes.
14212 case `$NM -V 2>&1` in
14213 *GNU* | *'with BFD'*)
14214 symcode='[ABCDGIRSTW]' ;;
14217 # Try without a prefix undercore, then with it.
14218 for ac_symprfx in "" "_"; do
14220 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14221 symxfrm="\\1 $ac_symprfx\\2 \\2"
14223 # Write the raw and C identifiers.
14224 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14226 # Check to see that the pipe works correctly.
14230 cat > conftest.$ac_ext <<EOF
14235 void nm_test_func(){}
14239 int main(){nm_test_var='a';nm_test_func();return(0);}
14242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14243 (eval $ac_compile) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; then
14247 # Now try to grab the symbols.
14249 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && test -s "$nlist"; then
14254 # Try sorting and uniquifying the output.
14255 if sort "$nlist" | uniq > "$nlist"T; then
14256 mv -f "$nlist"T "$nlist"
14261 # Make sure that we snagged all the symbols we need.
14262 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14263 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14264 cat <<EOF > conftest.$ac_ext
14270 # Now generate the symbol file.
14271 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14273 cat <<EOF >> conftest.$ac_ext
14274 #if defined (__STDC__) && __STDC__
14275 # define lt_ptr_t void *
14277 # define lt_ptr_t char *
14281 /* The mapping between symbol names and symbols. */
14286 lt_preloaded_symbols[] =
14289 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14290 cat <<\EOF >> conftest.$ac_ext
14298 # Now try linking the two files.
14299 mv conftest.$ac_objext conftstm.$ac_objext
14300 lt_save_LIBS="$LIBS"
14301 lt_save_CFLAGS="$CFLAGS"
14302 LIBS="conftstm.$ac_objext"
14303 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14305 (eval $ac_link) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14311 LIBS="$lt_save_LIBS"
14312 CFLAGS="$lt_save_CFLAGS"
14314 echo "cannot find nm_test_func in $nlist" >&5
14317 echo "cannot find nm_test_var in $nlist" >&5
14320 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14323 echo "$progname: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14326 rm -f conftest* conftst*
14328 # Do not use the global_symbol_pipe unless it works.
14329 if test "$pipe_works" = yes; then
14332 lt_cv_sys_global_symbol_pipe=
14338 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14339 lt_cv_sys_global_symbol_to_cdecl=
14341 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14342 { echo "$as_me:$LINENO: result: failed" >&5
14343 echo "${ECHO_T}failed" >&6; }
14345 { echo "$as_me:$LINENO: result: ok" >&5
14346 echo "${ECHO_T}ok" >&6; }
14349 { echo "$as_me:$LINENO: checking for objdir" >&5
14350 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14351 if test "${lt_cv_objdir+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 rm -f .libs 2>/dev/null
14355 mkdir .libs 2>/dev/null
14356 if test -d .libs; then
14359 # MS-DOS does not allow filenames that begin with a dot.
14362 rmdir .libs 2>/dev/null
14364 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14365 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14366 objdir=$lt_cv_objdir
14374 # AIX sometimes has problems with the GCC collect2 program. For some
14375 # reason, if we set the COLLECT_NAMES environment variable, the problems
14376 # vanish in a puff of smoke.
14377 if test "X${COLLECT_NAMES+set}" != Xset; then
14379 export COLLECT_NAMES
14384 # Sed substitution that helps us do robust quoting. It backslashifies
14385 # metacharacters that are still active within double-quoted strings.
14386 Xsed='sed -e 1s/^X//'
14387 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14389 # Same as above, but do not quote variable references.
14390 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14392 # Sed substitution to delay expansion of an escaped shell variable in a
14393 # double_quote_subst'ed string.
14394 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14396 # Sed substitution to avoid accidental globbing in evaled expressions
14397 no_glob_subst='s/\*/\\\*/g'
14402 # Global variables:
14403 default_ofile=mklib
14404 can_build_shared=yes
14406 # All known linkers require a `.a' archive for static linking (except MSVC,
14407 # which needs '.lib').
14409 ltmain="$ac_aux_dir/ltmain.sh"
14410 ofile="$default_ofile"
14411 with_gnu_ld="$lt_cv_prog_gnu_ld"
14413 if test -n "$ac_tool_prefix"; then
14414 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14415 set dummy ${ac_tool_prefix}ar; ac_word=$2
14416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14418 if test "${ac_cv_prog_AR+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 if test -n "$AR"; then
14422 ac_cv_prog_AR="$AR" # Let the user override the test.
14424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14425 for as_dir in $PATH
14428 test -z "$as_dir" && as_dir=.
14429 for ac_exec_ext in '' $ac_executable_extensions; do
14430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14431 ac_cv_prog_AR="${ac_tool_prefix}ar"
14432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14442 if test -n "$AR"; then
14443 { echo "$as_me:$LINENO: result: $AR" >&5
14444 echo "${ECHO_T}$AR" >&6; }
14446 { echo "$as_me:$LINENO: result: no" >&5
14447 echo "${ECHO_T}no" >&6; }
14452 if test -z "$ac_cv_prog_AR"; then
14454 # Extract the first word of "ar", so it can be a program name with args.
14455 set dummy ar; ac_word=$2
14456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14458 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 if test -n "$ac_ct_AR"; then
14462 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14465 for as_dir in $PATH
14468 test -z "$as_dir" && as_dir=.
14469 for ac_exec_ext in '' $ac_executable_extensions; do
14470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14471 ac_cv_prog_ac_ct_AR="ar"
14472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14481 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14482 if test -n "$ac_ct_AR"; then
14483 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14484 echo "${ECHO_T}$ac_ct_AR" >&6; }
14486 { echo "$as_me:$LINENO: result: no" >&5
14487 echo "${ECHO_T}no" >&6; }
14490 if test "x$ac_ct_AR" = x; then
14493 case $cross_compiling:$ac_tool_warned in
14495 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14496 whose name does not start with the host triplet. If you think this
14497 configuration is useful to you, please write to autoconf@gnu.org." >&5
14498 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14499 whose name does not start with the host triplet. If you think this
14500 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14501 ac_tool_warned=yes ;;
14506 AR="$ac_cv_prog_AR"
14509 if test -n "$ac_tool_prefix"; then
14510 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14511 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14514 if test "${ac_cv_prog_RANLIB+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 if test -n "$RANLIB"; then
14518 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521 for as_dir in $PATH
14524 test -z "$as_dir" && as_dir=.
14525 for ac_exec_ext in '' $ac_executable_extensions; do
14526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14527 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14537 RANLIB=$ac_cv_prog_RANLIB
14538 if test -n "$RANLIB"; then
14539 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14540 echo "${ECHO_T}$RANLIB" >&6; }
14542 { echo "$as_me:$LINENO: result: no" >&5
14543 echo "${ECHO_T}no" >&6; }
14548 if test -z "$ac_cv_prog_RANLIB"; then
14549 ac_ct_RANLIB=$RANLIB
14550 # Extract the first word of "ranlib", so it can be a program name with args.
14551 set dummy ranlib; ac_word=$2
14552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14554 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 if test -n "$ac_ct_RANLIB"; then
14558 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14561 for as_dir in $PATH
14564 test -z "$as_dir" && as_dir=.
14565 for ac_exec_ext in '' $ac_executable_extensions; do
14566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14567 ac_cv_prog_ac_ct_RANLIB="ranlib"
14568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14577 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14578 if test -n "$ac_ct_RANLIB"; then
14579 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14580 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14582 { echo "$as_me:$LINENO: result: no" >&5
14583 echo "${ECHO_T}no" >&6; }
14586 if test "x$ac_ct_RANLIB" = x; then
14589 case $cross_compiling:$ac_tool_warned in
14591 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14592 whose name does not start with the host triplet. If you think this
14593 configuration is useful to you, please write to autoconf@gnu.org." >&5
14594 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14595 whose name does not start with the host triplet. If you think this
14596 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14597 ac_tool_warned=yes ;;
14599 RANLIB=$ac_ct_RANLIB
14602 RANLIB="$ac_cv_prog_RANLIB"
14605 if test -n "$ac_tool_prefix"; then
14606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14607 set dummy ${ac_tool_prefix}strip; ac_word=$2
14608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14610 if test "${ac_cv_prog_STRIP+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 if test -n "$STRIP"; then
14614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617 for as_dir in $PATH
14620 test -z "$as_dir" && as_dir=.
14621 for ac_exec_ext in '' $ac_executable_extensions; do
14622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14623 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14633 STRIP=$ac_cv_prog_STRIP
14634 if test -n "$STRIP"; then
14635 { echo "$as_me:$LINENO: result: $STRIP" >&5
14636 echo "${ECHO_T}$STRIP" >&6; }
14638 { echo "$as_me:$LINENO: result: no" >&5
14639 echo "${ECHO_T}no" >&6; }
14644 if test -z "$ac_cv_prog_STRIP"; then
14646 # Extract the first word of "strip", so it can be a program name with args.
14647 set dummy strip; ac_word=$2
14648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14650 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 if test -n "$ac_ct_STRIP"; then
14654 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14657 for as_dir in $PATH
14660 test -z "$as_dir" && as_dir=.
14661 for ac_exec_ext in '' $ac_executable_extensions; do
14662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14663 ac_cv_prog_ac_ct_STRIP="strip"
14664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14673 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14674 if test -n "$ac_ct_STRIP"; then
14675 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14676 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14678 { echo "$as_me:$LINENO: result: no" >&5
14679 echo "${ECHO_T}no" >&6; }
14682 if test "x$ac_ct_STRIP" = x; then
14685 case $cross_compiling:$ac_tool_warned in
14687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14688 whose name does not start with the host triplet. If you think this
14689 configuration is useful to you, please write to autoconf@gnu.org." >&5
14690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14691 whose name does not start with the host triplet. If you think this
14692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14693 ac_tool_warned=yes ;;
14698 STRIP="$ac_cv_prog_STRIP"
14703 old_CFLAGS="$CFLAGS"
14705 # Set sane defaults for various variables
14706 test -z "$AR" && AR=ar
14707 test -z "$AR_FLAGS" && AR_FLAGS=cru
14708 test -z "$AS" && AS=as
14709 test -z "$CC" && CC=cc
14710 test -z "$LTCC" && LTCC=$CC
14711 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14712 test -z "$DLLTOOL" && DLLTOOL=dlltool
14713 test -z "$LD" && LD=ld
14714 test -z "$LN_S" && LN_S="ln -s"
14715 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14716 test -z "$NM" && NM=nm
14717 test -z "$SED" && SED=sed
14718 test -z "$OBJDUMP" && OBJDUMP=objdump
14719 test -z "$RANLIB" && RANLIB=:
14720 test -z "$STRIP" && STRIP=:
14721 test -z "$ac_objext" && ac_objext=o
14723 # Determine commands to create old-style static archives.
14724 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14725 old_postinstall_cmds='chmod 644 $oldlib'
14726 old_postuninstall_cmds=
14728 if test -n "$RANLIB"; then
14731 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14737 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14740 for cc_temp in $compiler""; do
14742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14748 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14751 # Only perform the check for file, if the check method requires it
14752 case $deplibs_check_method in
14754 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14755 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14756 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14757 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14765 lt_save_MAGIC_CMD="$MAGIC_CMD"
14766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14767 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14768 for ac_dir in $ac_dummy; do
14770 test -z "$ac_dir" && ac_dir=.
14771 if test -f $ac_dir/${ac_tool_prefix}file; then
14772 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14773 if test -n "$file_magic_test_file"; then
14774 case $deplibs_check_method in
14776 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14778 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14779 $EGREP "$file_magic_regex" > /dev/null; then
14784 *** Warning: the command libtool uses to detect shared libraries,
14785 *** $file_magic_cmd, produces output that libtool cannot recognize.
14786 *** The result is that libtool may fail to recognize shared libraries
14787 *** as such. This will affect the creation of libtool libraries that
14788 *** depend on shared libraries, but programs linked with such libtool
14789 *** libraries will work regardless of this problem. Nevertheless, you
14790 *** may want to report the problem to your system manager and/or to
14791 *** bug-libtool@gnu.org
14801 MAGIC_CMD="$lt_save_MAGIC_CMD"
14806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14807 if test -n "$MAGIC_CMD"; then
14808 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14809 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14811 { echo "$as_me:$LINENO: result: no" >&5
14812 echo "${ECHO_T}no" >&6; }
14815 if test -z "$lt_cv_path_MAGIC_CMD"; then
14816 if test -n "$ac_tool_prefix"; then
14817 { echo "$as_me:$LINENO: checking for file" >&5
14818 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14819 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14827 lt_save_MAGIC_CMD="$MAGIC_CMD"
14828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14830 for ac_dir in $ac_dummy; do
14832 test -z "$ac_dir" && ac_dir=.
14833 if test -f $ac_dir/file; then
14834 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14835 if test -n "$file_magic_test_file"; then
14836 case $deplibs_check_method in
14838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14841 $EGREP "$file_magic_regex" > /dev/null; then
14846 *** Warning: the command libtool uses to detect shared libraries,
14847 *** $file_magic_cmd, produces output that libtool cannot recognize.
14848 *** The result is that libtool may fail to recognize shared libraries
14849 *** as such. This will affect the creation of libtool libraries that
14850 *** depend on shared libraries, but programs linked with such libtool
14851 *** libraries will work regardless of this problem. Nevertheless, you
14852 *** may want to report the problem to your system manager and/or to
14853 *** bug-libtool@gnu.org
14863 MAGIC_CMD="$lt_save_MAGIC_CMD"
14868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14869 if test -n "$MAGIC_CMD"; then
14870 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14871 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14873 { echo "$as_me:$LINENO: result: no" >&5
14874 echo "${ECHO_T}no" >&6; }
14887 enable_win32_dll=no
14889 # Check whether --enable-libtool-lock was given.
14890 if test "${enable_libtool_lock+set}" = set; then
14891 enableval=$enable_libtool_lock;
14894 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14897 # Check whether --with-pic was given.
14898 if test "${with_pic+set}" = set; then
14899 withval=$with_pic; pic_mode="$withval"
14904 test -z "$pic_mode" && pic_mode=default
14906 # Use C for the default configuration in the libtool script
14910 ac_cpp='$CPP $CPPFLAGS'
14911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14916 # Source file extension for C test sources.
14919 # Object file extension for compiled C test sources.
14923 # Code to be used in simple compile tests
14924 lt_simple_compile_test_code="int some_variable = 0;\n"
14926 # Code to be used in simple link tests
14927 lt_simple_link_test_code='int main(){return(0);}\n'
14930 # If no C compiler was specified, use CC.
14933 # If no C compiler flags were specified, use CFLAGS.
14934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14936 # Allow CC to be a program name with arguments.
14940 # save warnings/boilerplate of simple test code
14941 ac_outfile=conftest.$ac_objext
14942 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14944 _lt_compiler_boilerplate=`cat conftest.err`
14947 ac_outfile=conftest.$ac_objext
14948 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14950 _lt_linker_boilerplate=`cat conftest.err`
14955 lt_prog_compiler_no_builtin_flag=
14957 if test "$GCC" = yes; then
14958 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14961 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14962 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14963 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 lt_cv_prog_compiler_rtti_exceptions=no
14967 ac_outfile=conftest.$ac_objext
14968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14969 lt_compiler_flag="-fno-rtti -fno-exceptions"
14970 # Insert the option either (1) after the last *FLAGS variable, or
14971 # (2) before a word containing "conftest.", or (3) at the end.
14972 # Note that $ac_compile itself does not contain backslashes and begins
14973 # with a dollar sign (not a hyphen), so the echo should work correctly.
14974 # The option is referenced via a variable to avoid confusing sed.
14975 lt_compile=`echo "$ac_compile" | $SED \
14976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14978 -e 's:$: $lt_compiler_flag:'`
14979 (eval echo "\"\$as_me:14979: $lt_compile\"" >&5)
14980 (eval "$lt_compile" 2>conftest.err)
14982 cat conftest.err >&5
14983 echo "$as_me:14983: \$? = $ac_status" >&5
14984 if (exit $ac_status) && test -s "$ac_outfile"; then
14985 # The compiler can only warn and ignore the option if not recognized
14986 # So say no if there are warnings other than the usual output.
14987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14990 lt_cv_prog_compiler_rtti_exceptions=yes
14996 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14997 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14999 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15000 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15007 lt_prog_compiler_wl=
15008 lt_prog_compiler_pic=
15009 lt_prog_compiler_static=
15011 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15012 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15014 if test "$GCC" = yes; then
15015 lt_prog_compiler_wl='-Wl,'
15016 lt_prog_compiler_static='-static'
15020 # All AIX code is PIC.
15021 if test "$host_cpu" = ia64; then
15022 # AIX 5 now supports IA64 processor
15023 lt_prog_compiler_static='-Bstatic'
15028 # FIXME: we need at least 68020 code to build shared libraries, but
15029 # adding the `-m68020' flag to GCC prevents building anything better,
15031 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15034 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15035 # PIC is the default for these OSes.
15038 mingw* | pw32* | os2*)
15039 # This hack is so that the source file can tell whether it is being
15040 # built for inclusion in a dll (and should export symbols for example).
15041 lt_prog_compiler_pic='-DDLL_EXPORT'
15044 darwin* | rhapsody*)
15045 # PIC is the default on this platform
15046 # Common symbols not allowed in MH_DYLIB files
15047 lt_prog_compiler_pic='-fno-common'
15051 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15052 # Instead, we relocate shared libraries at runtime.
15056 # Just because we use GCC doesn't mean we suddenly get shared libraries
15057 # on systems that don't support them.
15058 lt_prog_compiler_can_build_shared=no
15063 if test -d /usr/nec; then
15064 lt_prog_compiler_pic=-Kconform_pic
15069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15070 # not for PA HP-UX.
15076 lt_prog_compiler_pic='-fPIC'
15082 lt_prog_compiler_pic='-fPIC'
15086 # PORTME Check for flag to pass linker flags through the system compiler.
15089 lt_prog_compiler_wl='-Wl,'
15090 if test "$host_cpu" = ia64; then
15091 # AIX 5 now supports IA64 processor
15092 lt_prog_compiler_static='-Bstatic'
15094 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15098 # PIC is the default on this platform
15099 # Common symbols not allowed in MH_DYLIB files
15100 case $cc_basename in
15102 lt_prog_compiler_pic='-qnocommon'
15103 lt_prog_compiler_wl='-Wl,'
15108 mingw* | pw32* | os2*)
15109 # This hack is so that the source file can tell whether it is being
15110 # built for inclusion in a dll (and should export symbols for example).
15111 lt_prog_compiler_pic='-DDLL_EXPORT'
15114 hpux9* | hpux10* | hpux11*)
15115 lt_prog_compiler_wl='-Wl,'
15116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15117 # not for PA HP-UX.
15123 lt_prog_compiler_pic='+Z'
15126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15127 lt_prog_compiler_static='${wl}-a ${wl}archive'
15130 irix5* | irix6* | nonstopux*)
15131 lt_prog_compiler_wl='-Wl,'
15132 # PIC (with -KPIC) is the default.
15133 lt_prog_compiler_static='-non_shared'
15137 lt_prog_compiler_pic='-KPIC'
15138 lt_prog_compiler_static='-Bstatic'
15142 case $cc_basename in
15144 lt_prog_compiler_wl='-Wl,'
15145 lt_prog_compiler_pic='-KPIC'
15146 lt_prog_compiler_static='-static'
15148 pgcc* | pgf77* | pgf90* | pgf95*)
15149 # Portland Group compilers (*not* the Pentium gcc compiler,
15150 # which looks to be a dead project)
15151 lt_prog_compiler_wl='-Wl,'
15152 lt_prog_compiler_pic='-fpic'
15153 lt_prog_compiler_static='-Bstatic'
15156 lt_prog_compiler_wl='-Wl,'
15157 # All Alpha code is PIC.
15158 lt_prog_compiler_static='-non_shared'
15163 osf3* | osf4* | osf5*)
15164 lt_prog_compiler_wl='-Wl,'
15165 # All OSF/1 code is PIC.
15166 lt_prog_compiler_static='-non_shared'
15170 lt_prog_compiler_pic='-KPIC'
15171 lt_prog_compiler_static='-Bstatic'
15172 case $cc_basename in
15173 f77* | f90* | f95*)
15174 lt_prog_compiler_wl='-Qoption ld ';;
15176 lt_prog_compiler_wl='-Wl,';;
15181 lt_prog_compiler_wl='-Qoption ld '
15182 lt_prog_compiler_pic='-PIC'
15183 lt_prog_compiler_static='-Bstatic'
15186 sysv4 | sysv4.2uw2* | sysv4.3*)
15187 lt_prog_compiler_wl='-Wl,'
15188 lt_prog_compiler_pic='-KPIC'
15189 lt_prog_compiler_static='-Bstatic'
15193 if test -d /usr/nec ;then
15194 lt_prog_compiler_pic='-Kconform_pic'
15195 lt_prog_compiler_static='-Bstatic'
15199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15200 lt_prog_compiler_wl='-Wl,'
15201 lt_prog_compiler_pic='-KPIC'
15202 lt_prog_compiler_static='-Bstatic'
15206 lt_prog_compiler_wl='-Wl,'
15207 lt_prog_compiler_can_build_shared=no
15211 lt_prog_compiler_pic='-pic'
15212 lt_prog_compiler_static='-Bstatic'
15216 lt_prog_compiler_can_build_shared=no
15221 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15222 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15225 # Check to make sure the PIC flag actually works.
15227 if test -n "$lt_prog_compiler_pic"; then
15229 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15230 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15231 if test "${lt_prog_compiler_pic_works+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 lt_prog_compiler_pic_works=no
15235 ac_outfile=conftest.$ac_objext
15236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15237 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15238 # Insert the option either (1) after the last *FLAGS variable, or
15239 # (2) before a word containing "conftest.", or (3) at the end.
15240 # Note that $ac_compile itself does not contain backslashes and begins
15241 # with a dollar sign (not a hyphen), so the echo should work correctly.
15242 # The option is referenced via a variable to avoid confusing sed.
15243 lt_compile=`echo "$ac_compile" | $SED \
15244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15246 -e 's:$: $lt_compiler_flag:'`
15247 (eval echo "\"\$as_me:15247: $lt_compile\"" >&5)
15248 (eval "$lt_compile" 2>conftest.err)
15250 cat conftest.err >&5
15251 echo "$as_me:15251: \$? = $ac_status" >&5
15252 if (exit $ac_status) && test -s "$ac_outfile"; then
15253 # The compiler can only warn and ignore the option if not recognized
15254 # So say no if there are warnings other than the usual output.
15255 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15258 lt_prog_compiler_pic_works=yes
15264 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15265 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15267 if test x"$lt_prog_compiler_pic_works" = xyes; then
15268 case $lt_prog_compiler_pic in
15270 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15273 lt_prog_compiler_pic=
15274 lt_prog_compiler_can_build_shared=no
15279 # For platforms which do not support PIC, -DPIC is meaningless:
15281 lt_prog_compiler_pic=
15284 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15289 # Check to make sure the static flag actually works.
15291 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15292 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15293 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15294 if test "${lt_prog_compiler_static_works+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 lt_prog_compiler_static_works=no
15298 save_LDFLAGS="$LDFLAGS"
15299 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15300 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15302 # The linker can only warn and ignore the option if not recognized
15303 # So say no if there are warnings
15304 if test -s conftest.err; then
15305 # Append any errors to the config.log.
15306 cat conftest.err 1>&5
15307 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15309 if diff conftest.exp conftest.er2 >/dev/null; then
15310 lt_prog_compiler_static_works=yes
15313 lt_prog_compiler_static_works=yes
15317 LDFLAGS="$save_LDFLAGS"
15320 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15321 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15323 if test x"$lt_prog_compiler_static_works" = xyes; then
15326 lt_prog_compiler_static=
15330 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15331 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15332 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 lt_cv_prog_compiler_c_o=no
15336 $rm -r conftest 2>/dev/null
15340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15342 lt_compiler_flag="-o out/conftest2.$ac_objext"
15343 # Insert the option either (1) after the last *FLAGS variable, or
15344 # (2) before a word containing "conftest.", or (3) at the end.
15345 # Note that $ac_compile itself does not contain backslashes and begins
15346 # with a dollar sign (not a hyphen), so the echo should work correctly.
15347 lt_compile=`echo "$ac_compile" | $SED \
15348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15350 -e 's:$: $lt_compiler_flag:'`
15351 (eval echo "\"\$as_me:15351: $lt_compile\"" >&5)
15352 (eval "$lt_compile" 2>out/conftest.err)
15354 cat out/conftest.err >&5
15355 echo "$as_me:15355: \$? = $ac_status" >&5
15356 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15358 # The compiler can only warn and ignore the option if not recognized
15359 # So say no if there are warnings
15360 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15361 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15362 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15363 lt_cv_prog_compiler_c_o=yes
15368 # SGI C++ compiler will create directory out/ii_files/ for
15369 # template instantiation
15370 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15371 $rm out/* && rmdir out
15377 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15378 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15381 hard_links="nottested"
15382 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15383 # do not overwrite the value of need_locks provided by the user
15384 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15385 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15390 ln conftest.a conftest.b 2>&5 || hard_links=no
15391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15392 { echo "$as_me:$LINENO: result: $hard_links" >&5
15393 echo "${ECHO_T}$hard_links" >&6; }
15394 if test "$hard_links" = no; then
15395 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15396 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15403 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15404 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15407 allow_undefined_flag=
15408 enable_shared_with_static_runtimes=no
15410 archive_expsym_cmds=
15411 old_archive_From_new_cmds=
15412 old_archive_from_expsyms_cmds=
15413 export_dynamic_flag_spec=
15414 whole_archive_flag_spec=
15415 thread_safe_flag_spec=
15416 hardcode_libdir_flag_spec=
15417 hardcode_libdir_flag_spec_ld=
15418 hardcode_libdir_separator=
15420 hardcode_minus_L=no
15421 hardcode_shlibpath_var=unsupported
15422 link_all_deplibs=unknown
15423 hardcode_automatic=no
15425 module_expsym_cmds=
15426 always_export_symbols=no
15427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15428 # include_expsyms should be a list of space-separated symbols to be *always*
15429 # included in the symbol list
15431 # exclude_expsyms can be an extended regexp of symbols to exclude
15432 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15433 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15434 # as well as any symbol that contains `d'.
15435 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15436 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15437 # platforms (ab)use it in PIC code, but their linkers get confused if
15438 # the symbol is explicitly referenced. Since portable code cannot
15439 # rely on this symbol name, it's probably fine to never include it in
15440 # preloaded symbol tables.
15441 extract_expsyms_cmds=
15442 # Just being paranoid about ensuring that cc_basename is set.
15443 for cc_temp in $compiler""; do
15445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15451 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15454 cygwin* | mingw* | pw32*)
15455 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15456 # When not using gcc, we currently assume that we are using
15457 # Microsoft Visual C++.
15458 if test "$GCC" != yes; then
15463 # we just hope/assume this is gcc and not c89 (= MSVC++)
15472 if test "$with_gnu_ld" = yes; then
15473 # If archive_cmds runs LD, not CC, wlarc should be empty
15476 # Set some defaults for GNU ld with shared library support. These
15477 # are reset later if shared libraries are not supported. Putting them
15478 # here allows them to be overridden if necessary.
15479 runpath_var=LD_RUN_PATH
15480 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15481 export_dynamic_flag_spec='${wl}--export-dynamic'
15482 # ancient GNU ld didn't support --whole-archive et. al.
15483 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15484 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15486 whole_archive_flag_spec=
15488 supports_anon_versioning=no
15489 case `$LD -v 2>/dev/null` in
15490 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15491 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15492 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15493 *\ 2.11.*) ;; # other 2.11 versions
15494 *) supports_anon_versioning=yes ;;
15497 # See if GNU ld supports shared libraries.
15499 aix3* | aix4* | aix5*)
15500 # On AIX/PPC, the GNU linker is very broken
15501 if test "$host_cpu" != ia64; then
15505 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15506 *** to be unable to reliably create shared libraries on AIX.
15507 *** Therefore, libtool is disabling shared libraries support. If you
15508 *** really care for shared libraries, you may want to modify your PATH
15509 *** so that a non-GNU linker is found, and then restart.
15516 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)'
15517 hardcode_libdir_flag_spec='-L$libdir'
15518 hardcode_minus_L=yes
15520 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15521 # that the semantics of dynamic libraries on AmigaOS, at least up
15522 # to version 4, is to share data among multiple programs linked
15523 # with the same dynamic library. Since this doesn't match the
15524 # behavior of shared libraries on other platforms, we can't use
15530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15531 allow_undefined_flag=unsupported
15532 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15533 # support --undefined. This deserves some investigation. FIXME
15534 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15540 cygwin* | mingw* | pw32*)
15541 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15542 # as there is no search path for DLLs.
15543 hardcode_libdir_flag_spec='-L$libdir'
15544 allow_undefined_flag=unsupported
15545 always_export_symbols=no
15546 enable_shared_with_static_runtimes=yes
15547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15549 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15551 # If the export-symbols file already is a .def file (1st line
15552 # is EXPORTS), use it as is; otherwise, prepend...
15553 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15554 cp $export_symbols $output_objdir/$soname.def;
15556 echo EXPORTS > $output_objdir/$soname.def;
15557 cat $export_symbols >> $output_objdir/$soname.def;
15559 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15567 hardcode_shlibpath_var=no
15568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15569 export_dynamic_flag_spec='${wl}-E'
15570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15571 # Instead, shared libraries are loaded at an image base (0x10000000 by
15572 # default) and relocated if they conflict, which is a slow very memory
15573 # consuming and fragmenting process. To avoid this, we pick a random,
15574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15577 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'
15581 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15583 case $cc_basename,$host_cpu in
15584 pgcc*) # Portland Group C compiler
15585 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'
15586 tmp_addflag=' $pic_flag'
15588 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15589 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'
15590 tmp_addflag=' $pic_flag -Mnomain' ;;
15591 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15592 tmp_addflag=' -i_dynamic' ;;
15593 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15594 tmp_addflag=' -i_dynamic -nofor_main' ;;
15595 ifc* | ifort*) # Intel Fortran compiler
15596 tmp_addflag=' -nofor_main' ;;
15598 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15600 if test $supports_anon_versioning = yes; then
15601 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15603 $echo "local: *; };" >> $output_objdir/$libname.ver~
15604 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15613 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15622 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15627 *** create shared libraries on Solaris systems. Therefore, libtool
15628 *** is disabling shared libraries support. We urge you to upgrade GNU
15629 *** binutils to release 2.9.1 or newer. Another option is to modify
15630 *** your PATH or compiler configuration so that the native linker is
15631 *** used, and then restart.
15634 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15643 case `$LD -v 2>&1` in
15644 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15648 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15649 *** reliably create shared libraries on SCO systems. Therefore, libtool
15650 *** is disabling shared libraries support. We urge you to upgrade GNU
15651 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15652 *** your PATH or compiler configuration so that the native linker is
15653 *** used, and then restart.
15658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15659 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15670 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15672 hardcode_direct=yes
15673 hardcode_shlibpath_var=no
15677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15686 if test "$ld_shlibs" = no; then
15688 hardcode_libdir_flag_spec=
15689 export_dynamic_flag_spec=
15690 whole_archive_flag_spec=
15693 # PORTME fill in a description of your system's linker (not GNU ld)
15696 allow_undefined_flag=unsupported
15697 always_export_symbols=yes
15698 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'
15699 # Note: this linker hardcodes the directories in LIBPATH if there
15700 # are no directories specified by -L.
15701 hardcode_minus_L=yes
15702 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15703 # Neither direct hardcoding nor static linking is supported with a
15705 hardcode_direct=unsupported
15710 if test "$host_cpu" = ia64; then
15711 # On IA64, the linker does run time linking by default, so we don't
15712 # have to do anything special.
15713 aix_use_runtimelinking=no
15714 exp_sym_flag='-Bexport'
15717 # If we're using GNU nm, then we don't want the "-C" option.
15718 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15719 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15720 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'
15722 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'
15724 aix_use_runtimelinking=no
15726 # Test if we are trying to use run time linking or normal
15727 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15728 # need to do runtime linking.
15729 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15730 for ld_flag in $LDFLAGS; do
15731 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15732 aix_use_runtimelinking=yes
15739 exp_sym_flag='-bexport'
15740 no_entry_flag='-bnoentry'
15743 # When large executables or shared objects are built, AIX ld can
15744 # have problems creating the table of contents. If linking a library
15745 # or program results in "error TOC overflow" add -mminimal-toc to
15746 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15747 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15750 hardcode_direct=yes
15751 hardcode_libdir_separator=':'
15752 link_all_deplibs=yes
15754 if test "$GCC" = yes; then
15755 case $host_os in aix4.[012]|aix4.[012].*)
15756 # We only want to do this on AIX 4.2 and lower, the check
15757 # below for broken collect2 doesn't work under 4.3+
15758 collect2name=`${CC} -print-prog-name=collect2`
15759 if test -f "$collect2name" && \
15760 strings "$collect2name" | grep resolve_lib_name >/dev/null
15762 # We have reworked collect2
15763 hardcode_direct=yes
15765 # We have old collect2
15766 hardcode_direct=unsupported
15767 # It fails to find uninstalled libraries when the uninstalled
15768 # path is not listed in the libpath. Setting hardcode_minus_L
15769 # to unsupported forces relinking
15770 hardcode_minus_L=yes
15771 hardcode_libdir_flag_spec='-L$libdir'
15772 hardcode_libdir_separator=
15776 shared_flag='-shared'
15777 if test "$aix_use_runtimelinking" = yes; then
15778 shared_flag="$shared_flag "'${wl}-G'
15782 if test "$host_cpu" = ia64; then
15783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15784 # chokes on -Wl,-G. The following line is correct:
15787 if test "$aix_use_runtimelinking" = yes; then
15788 shared_flag='${wl}-G'
15790 shared_flag='${wl}-bM:SRE'
15795 # It seems that -bexpall does not export symbols beginning with
15796 # underscore (_), so it is better to generate a list of symbols to export.
15797 always_export_symbols=yes
15798 if test "$aix_use_runtimelinking" = yes; then
15799 # Warning - without using the other runtime loading flags (-brtl),
15800 # -berok will link without error, but may produce a broken library.
15801 allow_undefined_flag='-berok'
15802 # Determine the default libpath from the value encoded in an empty executable.
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (ac_try="$ac_link"
15820 case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_link") 2>conftest.er1
15827 grep -v '^ *+' conftest.er1 >conftest.err
15829 cat conftest.err >&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
15832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15833 { (case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_try") 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest$ac_exeext'
15843 { (case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_try") 2>&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15855 # Check for a 64-bit object if we didn't find anything.
15856 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; }
15859 echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.$ac_ext >&5
15865 rm -f core conftest.err conftest.$ac_objext \
15866 conftest$ac_exeext conftest.$ac_ext
15867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15870 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"
15872 if test "$host_cpu" = ia64; then
15873 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15874 allow_undefined_flag="-z nodefs"
15875 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"
15877 # Determine the default libpath from the value encoded in an empty executable.
15878 cat >conftest.$ac_ext <<_ACEOF
15881 cat confdefs.h >>conftest.$ac_ext
15882 cat >>conftest.$ac_ext <<_ACEOF
15883 /* end confdefs.h. */
15893 rm -f conftest.$ac_objext conftest$ac_exeext
15894 if { (ac_try="$ac_link"
15895 case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_link") 2>conftest.er1
15902 grep -v '^ *+' conftest.er1 >conftest.err
15904 cat conftest.err >&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
15907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15908 { (case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_try") 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest$ac_exeext'
15918 { (case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_try") 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15930 # Check for a 64-bit object if we didn't find anything.
15931 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; }
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15940 rm -f core conftest.err conftest.$ac_objext \
15941 conftest$ac_exeext conftest.$ac_ext
15942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15944 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15945 # Warning - without using the other run time loading flags,
15946 # -berok will link without error, but may produce a broken library.
15947 no_undefined_flag=' ${wl}-bernotok'
15948 allow_undefined_flag=' ${wl}-berok'
15949 # Exported symbols can be pulled into shared objects from archives
15950 whole_archive_flag_spec='$convenience'
15951 archive_cmds_need_lc=yes
15952 # This is similar to how AIX traditionally builds its shared libraries.
15953 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'
15959 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)'
15960 hardcode_libdir_flag_spec='-L$libdir'
15961 hardcode_minus_L=yes
15962 # see comment about different semantics on the GNU ld section
15967 export_dynamic_flag_spec=-rdynamic
15970 cygwin* | mingw* | pw32*)
15971 # When not using gcc, we currently assume that we are using
15972 # Microsoft Visual C++.
15973 # hardcode_libdir_flag_spec is actually meaningless, as there is
15974 # no search path for DLLs.
15975 hardcode_libdir_flag_spec=' '
15976 allow_undefined_flag=unsupported
15977 # Tell ltmain to make .lib files, not .a files.
15979 # Tell ltmain to make .dll files, not .so files.
15981 # FIXME: Setting linknames here is a bad hack.
15982 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15983 # The linker will automatically build a .lib file if we build a DLL.
15984 old_archive_From_new_cmds='true'
15985 # FIXME: Should let the user specify the lib program.
15986 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15987 fix_srcfile_path='`cygpath -w "$srcfile"`'
15988 enable_shared_with_static_runtimes=yes
15991 darwin* | rhapsody*)
15993 rhapsody* | darwin1.[012])
15994 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15997 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15998 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16000 case ${MACOSX_DEPLOYMENT_TARGET} in
16002 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16005 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16011 archive_cmds_need_lc=no
16013 hardcode_automatic=yes
16014 hardcode_shlibpath_var=unsupported
16015 whole_archive_flag_spec=''
16016 link_all_deplibs=yes
16017 if test "$GCC" = yes ; then
16018 output_verbose_link_cmd='echo'
16019 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16020 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16021 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16022 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}'
16023 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}'
16025 case $cc_basename in
16027 output_verbose_link_cmd='echo'
16028 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16029 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16030 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16031 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}'
16032 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}'
16042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16043 hardcode_libdir_flag_spec='-L$libdir'
16044 hardcode_shlibpath_var=no
16051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16052 # support. Future versions do this automatically, but an explicit c++rt0.o
16053 # does not break anything, and helps significantly (at the cost of a little
16056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16057 hardcode_libdir_flag_spec='-R$libdir'
16058 hardcode_direct=yes
16059 hardcode_shlibpath_var=no
16062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16065 hardcode_direct=yes
16066 hardcode_minus_L=yes
16067 hardcode_shlibpath_var=no
16070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16071 freebsd* | kfreebsd*-gnu | dragonfly*)
16072 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16073 hardcode_libdir_flag_spec='-R$libdir'
16074 hardcode_direct=yes
16075 hardcode_shlibpath_var=no
16079 if test "$GCC" = yes; then
16080 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'
16082 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'
16084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16085 hardcode_libdir_separator=:
16086 hardcode_direct=yes
16088 # hardcode_minus_L: Not really in the search PATH,
16089 # but as the default location of the library.
16090 hardcode_minus_L=yes
16091 export_dynamic_flag_spec='${wl}-E'
16095 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16096 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16100 if test "$with_gnu_ld" = no; then
16101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16102 hardcode_libdir_separator=:
16104 hardcode_direct=yes
16105 export_dynamic_flag_spec='${wl}-E'
16107 # hardcode_minus_L: Not really in the search PATH,
16108 # but as the default location of the library.
16109 hardcode_minus_L=yes
16114 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16117 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16123 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16129 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16139 if test "$with_gnu_ld" = no; then
16140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16141 hardcode_libdir_separator=:
16145 hardcode_libdir_flag_spec_ld='+b $libdir'
16147 hardcode_shlibpath_var=no
16150 hardcode_direct=yes
16151 export_dynamic_flag_spec='${wl}-E'
16153 # hardcode_minus_L: Not really in the search PATH,
16154 # but as the default location of the library.
16155 hardcode_minus_L=yes
16161 irix5* | irix6* | nonstopux*)
16162 if test "$GCC" = yes; then
16163 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'
16165 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'
16166 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16169 hardcode_libdir_separator=:
16170 link_all_deplibs=yes
16174 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16177 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16179 hardcode_libdir_flag_spec='-R$libdir'
16180 hardcode_direct=yes
16181 hardcode_shlibpath_var=no
16185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186 hardcode_direct=yes
16187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16188 hardcode_libdir_separator=:
16189 hardcode_shlibpath_var=no
16193 hardcode_direct=yes
16194 hardcode_shlibpath_var=no
16195 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16196 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16197 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16199 export_dynamic_flag_spec='${wl}-E'
16202 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16204 hardcode_libdir_flag_spec='-R$libdir'
16207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16215 hardcode_libdir_flag_spec='-L$libdir'
16216 hardcode_minus_L=yes
16217 allow_undefined_flag=unsupported
16218 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'
16219 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16223 if test "$GCC" = yes; then
16224 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16225 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'
16227 allow_undefined_flag=' -expect_unresolved \*'
16228 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'
16230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16231 hardcode_libdir_separator=:
16234 osf4* | osf5*) # as osf3* with the addition of -msym flag
16235 if test "$GCC" = yes; then
16236 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16237 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'
16238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16240 allow_undefined_flag=' -expect_unresolved \*'
16241 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'
16242 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16243 $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'
16245 # Both c and cxx compiler support -rpath directly
16246 hardcode_libdir_flag_spec='-rpath $libdir'
16248 hardcode_libdir_separator=:
16252 no_undefined_flag=' -z text'
16253 if test "$GCC" = yes; then
16255 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16256 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16257 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16260 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16261 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16262 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16264 hardcode_libdir_flag_spec='-R$libdir'
16265 hardcode_shlibpath_var=no
16267 solaris2.[0-5] | solaris2.[0-5].*) ;;
16269 # The compiler driver will combine linker options so we
16270 # cannot just pass the convience library names through
16271 # without $wl, iff we do not link with $LD.
16272 # Luckily, gcc supports the same syntax we need for Sun Studio.
16273 # Supported since Solaris 2.6 (maybe 2.5.1?)
16276 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16278 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' ;;
16281 link_all_deplibs=yes
16285 if test "x$host_vendor" = xsequent; then
16286 # Use $CC to link under sequent, because it throws in some extra .o
16287 # files that make .init and .fini sections work.
16288 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16290 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16292 hardcode_libdir_flag_spec='-L$libdir'
16293 hardcode_direct=yes
16294 hardcode_minus_L=yes
16295 hardcode_shlibpath_var=no
16299 case $host_vendor in
16301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302 hardcode_direct=yes # is this really true???
16305 ## LD is ld it makes a PLAMLIB
16306 ## CC just makes a GrossModule.
16307 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16308 reload_cmds='$CC -r -o $output$reload_objs'
16312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16313 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16316 runpath_var='LD_RUN_PATH'
16317 hardcode_shlibpath_var=no
16321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322 hardcode_shlibpath_var=no
16323 export_dynamic_flag_spec='-Bexport'
16327 if test -d /usr/nec; then
16328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329 hardcode_shlibpath_var=no
16330 runpath_var=LD_RUN_PATH
16331 hardcode_runpath_var=yes
16336 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16337 no_undefined_flag='${wl}-z,text'
16338 archive_cmds_need_lc=no
16339 hardcode_shlibpath_var=no
16340 runpath_var='LD_RUN_PATH'
16342 if test "$GCC" = yes; then
16343 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16344 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16346 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16347 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16351 sysv5* | sco3.2v5* | sco5v6*)
16352 # Note: We can NOT use -z defs as we might desire, because we do not
16353 # link with -lc, and that would cause any symbols used from libc to
16354 # always be unresolved, which means just about no library would
16355 # ever link correctly. If we're not using GNU ld we use -z text
16356 # though, which does catch some bad symbols but isn't as heavy-handed
16358 no_undefined_flag='${wl}-z,text'
16359 allow_undefined_flag='${wl}-z,nodefs'
16360 archive_cmds_need_lc=no
16361 hardcode_shlibpath_var=no
16362 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16363 hardcode_libdir_separator=':'
16364 link_all_deplibs=yes
16365 export_dynamic_flag_spec='${wl}-Bexport'
16366 runpath_var='LD_RUN_PATH'
16368 if test "$GCC" = yes; then
16369 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16370 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16372 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16373 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16379 hardcode_libdir_flag_spec='-L$libdir'
16380 hardcode_shlibpath_var=no
16389 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16390 echo "${ECHO_T}$ld_shlibs" >&6; }
16391 test "$ld_shlibs" = no && can_build_shared=no
16394 # Do we need to explicitly link libc?
16396 case "x$archive_cmds_need_lc" in
16398 # Assume -lc should be added
16399 archive_cmds_need_lc=yes
16401 if test "$enable_shared" = yes && test "$GCC" = yes; then
16402 case $archive_cmds in
16404 # FIXME: we may have to deal with multi-command sequences.
16407 # Test whether the compiler implicitly links with -lc since on some
16408 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16409 # to ld, don't add -lc before -lgcc.
16410 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16411 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } 2>conftest.err; then
16422 libobjs=conftest.$ac_objext
16424 wl=$lt_prog_compiler_wl
16425 pic_flag=$lt_prog_compiler_pic
16431 lt_save_allow_undefined_flag=$allow_undefined_flag
16432 allow_undefined_flag=
16433 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16434 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }
16439 archive_cmds_need_lc=no
16441 archive_cmds_need_lc=yes
16443 allow_undefined_flag=$lt_save_allow_undefined_flag
16445 cat conftest.err 1>&5
16448 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16449 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16456 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16457 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16458 library_names_spec=
16459 libname_spec='lib$name'
16463 postuninstall_cmds=
16467 shlibpath_overrides_runpath=unknown
16469 dynamic_linker="$host_os ld.so"
16470 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16471 if test "$GCC" = yes; then
16472 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16473 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16474 # if the path contains ";" then we assume it to be the separator
16475 # otherwise default to the standard path separator (i.e. ":") - it is
16476 # assumed that no part of a normal pathname contains ";" but that should
16477 # okay in the real world where ";" in dirpaths is itself problematic.
16478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16483 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16485 need_lib_prefix=unknown
16486 hardcode_into_libs=no
16488 # when you set need_version to no, make sure it does not cause -set_version
16489 # flags to be left without arguments
16490 need_version=unknown
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16496 shlibpath_var=LIBPATH
16498 # AIX 3 has no versioning support, so we append a major version to the name.
16499 soname_spec='${libname}${release}${shared_ext}$major'
16506 hardcode_into_libs=yes
16507 if test "$host_cpu" = ia64; then
16508 # AIX 5 supports IA64
16509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16510 shlibpath_var=LD_LIBRARY_PATH
16512 # With GCC up to 2.95.x, collect2 would create an import file
16513 # for dependence libraries. The import file would start with
16514 # the line `#! .'. This would cause the generated library to
16515 # depend on `.', always an invalid library. This was fixed in
16516 # development snapshots of GCC prior to 3.0.
16518 aix4 | aix4.[01] | aix4.[01].*)
16519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16521 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16524 can_build_shared=no
16528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16529 # soname into executable. Probably we can add versioning support to
16530 # collect2, so additional links can be useful in future.
16531 if test "$aix_use_runtimelinking" = yes; then
16532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16533 # instead of lib<name>.a to let people know that these are not
16534 # typical AIX shared libraries.
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537 # We preserve .a as extension for shared libraries through AIX4.2
16538 # and later when we are not doing run time linking.
16539 library_names_spec='${libname}${release}.a $libname.a'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16542 shlibpath_var=LIBPATH
16547 library_names_spec='$libname.ixlibrary $libname.a'
16548 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16549 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'
16553 library_names_spec='${libname}${shared_ext}'
16554 dynamic_linker="$host_os ld.so"
16555 shlibpath_var=LIBRARY_PATH
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16564 shlibpath_var=LD_LIBRARY_PATH
16565 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16566 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16567 # the default ld.so.conf also contains /usr/contrib/lib and
16568 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16569 # libtool to hard-code these into programs
16572 cygwin* | mingw* | pw32*)
16573 version_type=windows
16578 case $GCC,$host_os in
16579 yes,cygwin* | yes,mingw* | yes,pw32*)
16580 library_names_spec='$libname.dll.a'
16581 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16582 postinstall_cmds='base_file=`basename \${file}`~
16583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16584 dldir=$destdir/`dirname \$dlpath`~
16585 test -d \$dldir || mkdir -p \$dldir~
16586 $install_prog $dir/$dlname \$dldir/$dlname~
16587 chmod a+x \$dldir/$dlname'
16588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16589 dlpath=$dir/\$dldll~
16591 shlibpath_overrides_runpath=yes
16595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16597 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16600 # MinGW DLLs use traditional 'lib' prefix
16601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16603 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16604 # It is most probably a Windows format PATH printed by
16605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16606 # path with ; separators, and with drive letters. We can handle the
16607 # drive letters (cygwin fileutils understands them), so leave them,
16608 # especially as we might pass files found there to a mingw objdump,
16609 # which wouldn't understand a cygwinified path. Ahh.
16610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16616 # pw32 DLLs use 'pw' prefix rather than 'lib'
16617 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16623 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16626 dynamic_linker='Win32 ld.exe'
16627 # FIXME: first we should search . and the directory the executable is in
16631 darwin* | rhapsody*)
16632 dynamic_linker="$host_os dyld"
16633 version_type=darwin
16636 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16637 soname_spec='${libname}${release}${major}$shared_ext'
16638 shlibpath_overrides_runpath=yes
16639 shlibpath_var=DYLD_LIBRARY_PATH
16640 shrext_cmds='.dylib'
16641 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16642 if test "$GCC" = yes; then
16643 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"`
16645 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16647 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16655 soname_spec='${libname}${release}${shared_ext}$major'
16656 shlibpath_var=LD_LIBRARY_PATH
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16668 soname_spec='${libname}${release}${shared_ext}$major'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=no
16671 hardcode_into_libs=yes
16672 dynamic_linker='GNU ld.so'
16675 freebsd* | dragonfly*)
16676 # DragonFly does not have aout. When/if they implement a new
16677 # versioning mechanism, adjust this.
16678 if test -x /usr/bin/objformat; then
16679 objformat=`/usr/bin/objformat`
16682 freebsd[123]*) objformat=aout ;;
16683 *) objformat=elf ;;
16686 version_type=freebsd-$objformat
16687 case $version_type in
16689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16698 shlibpath_var=LD_LIBRARY_PATH
16701 shlibpath_overrides_runpath=yes
16703 freebsd3.[01]* | freebsdelf3.[01]*)
16704 shlibpath_overrides_runpath=yes
16705 hardcode_into_libs=yes
16707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16709 shlibpath_overrides_runpath=no
16710 hardcode_into_libs=yes
16712 freebsd*) # from 4.6 on
16713 shlibpath_overrides_runpath=yes
16714 hardcode_into_libs=yes
16723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16724 soname_spec='${libname}${release}${shared_ext}$major'
16725 shlibpath_var=LD_LIBRARY_PATH
16726 hardcode_into_libs=yes
16729 hpux9* | hpux10* | hpux11*)
16730 # Give a soname corresponding to the major version so that dld.sl refuses to
16731 # link against other versions.
16738 hardcode_into_libs=yes
16739 dynamic_linker="$host_os dld.so"
16740 shlibpath_var=LD_LIBRARY_PATH
16741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16743 soname_spec='${libname}${release}${shared_ext}$major'
16744 if test "X$HPUX_IA64_MODE" = X32; then
16745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16753 hardcode_into_libs=yes
16754 dynamic_linker="$host_os dld.sl"
16755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16764 dynamic_linker="$host_os dld.sl"
16765 shlibpath_var=SHLIB_PATH
16766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 soname_spec='${libname}${release}${shared_ext}$major'
16771 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16772 postinstall_cmds='chmod 555 $lib'
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16780 soname_spec='${libname}${release}${shared_ext}$major'
16781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16782 shlibpath_var=LD_LIBRARY_PATH
16783 shlibpath_overrides_runpath=no
16784 hardcode_into_libs=yes
16787 irix5* | irix6* | nonstopux*)
16789 nonstopux*) version_type=nonstopux ;;
16791 if test "$lt_cv_prog_gnu_ld" = yes; then
16799 soname_spec='${libname}${release}${shared_ext}$major'
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16802 irix5* | nonstopux*)
16803 libsuff= shlibsuff=
16806 case $LD in # libtool.m4 will add one of these switches to LD
16807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16808 libsuff= shlibsuff= libmagic=32-bit;;
16809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16810 libsuff=32 shlibsuff=N32 libmagic=N32;;
16811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16812 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16813 *) libsuff= shlibsuff= libmagic=never-match;;
16817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16818 shlibpath_overrides_runpath=no
16819 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16820 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16821 hardcode_into_libs=yes
16824 # No shared lib support for Linux oldld, aout, or coff.
16825 linux*oldld* | linux*aout* | linux*coff*)
16829 # This must be Linux ELF.
16834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16835 soname_spec='${libname}${release}${shared_ext}$major'
16836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16837 shlibpath_var=LD_LIBRARY_PATH
16838 shlibpath_overrides_runpath=no
16839 # This implies no fast_install, which is unacceptable.
16840 # Some rework will be needed to allow for fast_install
16841 # before this can be enabled.
16842 hardcode_into_libs=yes
16844 # Append ld.so.conf contents to the search path
16845 if test -f /etc/ld.so.conf; then
16846 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' ' '`
16847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16850 # We used to test for /lib/ld.so.1 and disable shared libraries on
16851 # powerpc, because MkLinux only supported shared libraries with the
16852 # GNU dynamic linker. Since this was broken with cross compilers,
16853 # most powerpc-linux boxes support dynamic linking these days and
16854 # people can always --disable-shared, the test was removed, and we
16855 # assume the GNU/Linux dynamic linker is in use.
16856 dynamic_linker='GNU/Linux ld.so'
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16864 soname_spec='${libname}${release}${shared_ext}$major'
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=no
16867 hardcode_into_libs=yes
16868 dynamic_linker='GNU ld.so'
16875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16878 dynamic_linker='NetBSD (a.out) ld.so'
16880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16881 soname_spec='${libname}${release}${shared_ext}$major'
16882 dynamic_linker='NetBSD ld.elf_so'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 shlibpath_overrides_runpath=yes
16886 hardcode_into_libs=yes
16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 shlibpath_overrides_runpath=yes
16900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901 soname_spec='${libname}${release}${shared_ext}$major'
16902 shlibpath_var=LD_LIBRARY_PATH
16903 shlibpath_overrides_runpath=yes
16908 sys_lib_dlsearch_path_spec="/usr/lib"
16910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16912 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16913 *) need_version=no ;;
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16917 shlibpath_var=LD_LIBRARY_PATH
16918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16920 openbsd2.[89] | openbsd2.[89].*)
16921 shlibpath_overrides_runpath=no
16924 shlibpath_overrides_runpath=yes
16928 shlibpath_overrides_runpath=yes
16933 libname_spec='$name'
16936 library_names_spec='$libname${shared_ext} $libname.a'
16937 dynamic_linker='OS/2 ld.exe'
16938 shlibpath_var=LIBPATH
16941 osf3* | osf4* | osf5*)
16945 soname_spec='${libname}${release}${shared_ext}$major'
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947 shlibpath_var=LD_LIBRARY_PATH
16948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957 soname_spec='${libname}${release}${shared_ext}$major'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 shlibpath_overrides_runpath=yes
16960 hardcode_into_libs=yes
16961 # ldd complains unless libraries are executable
16962 postinstall_cmds='chmod +x $lib'
16967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16969 shlibpath_var=LD_LIBRARY_PATH
16970 shlibpath_overrides_runpath=yes
16971 if test "$with_gnu_ld" = yes; then
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980 soname_spec='${libname}${release}${shared_ext}$major'
16981 shlibpath_var=LD_LIBRARY_PATH
16982 case $host_vendor in
16984 shlibpath_overrides_runpath=no
16986 export_dynamic_flag_spec='${wl}-Blargedynsym'
16987 runpath_var=LD_RUN_PATH
16995 shlibpath_overrides_runpath=no
16996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17002 if test -d /usr/nec ;then
17004 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17005 soname_spec='$libname${shared_ext}.$major'
17006 shlibpath_var=LD_LIBRARY_PATH
17010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17011 version_type=freebsd-elf
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 shlibpath_var=LD_LIBRARY_PATH
17017 hardcode_into_libs=yes
17018 if test "$with_gnu_ld" = yes; then
17019 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17020 shlibpath_overrides_runpath=no
17022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17023 shlibpath_overrides_runpath=yes
17026 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17030 sys_lib_dlsearch_path_spec='/usr/lib'
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 shlibpath_var=LD_LIBRARY_PATH
17044 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17045 echo "${ECHO_T}$dynamic_linker" >&6; }
17046 test "$dynamic_linker" = no && can_build_shared=no
17048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17049 if test "$GCC" = yes; then
17050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17053 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17054 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17056 if test -n "$hardcode_libdir_flag_spec" || \
17057 test -n "$runpath_var" || \
17058 test "X$hardcode_automatic" = "Xyes" ; then
17060 # We can hardcode non-existant directories.
17061 if test "$hardcode_direct" != no &&
17062 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17063 # have to relink, otherwise we might link with an installed library
17064 # when we should be linking with a yet-to-be-installed one
17065 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17066 test "$hardcode_minus_L" != no; then
17067 # Linking always hardcodes the temporary library directory.
17068 hardcode_action=relink
17070 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17071 hardcode_action=immediate
17074 # We cannot hardcode anything, or else we can only hardcode existing
17076 hardcode_action=unsupported
17078 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17079 echo "${ECHO_T}$hardcode_action" >&6; }
17081 if test "$hardcode_action" = relink; then
17082 # Fast installation is not supported
17083 enable_fast_install=no
17084 elif test "$shlibpath_overrides_runpath" = yes ||
17085 test "$enable_shared" = no; then
17086 # Fast installation is not necessary
17087 enable_fast_install=needless
17092 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17093 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17094 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17095 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17096 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17097 { echo "$as_me:$LINENO: result: yes" >&5
17098 echo "${ECHO_T}yes" >&6; }
17100 # FIXME - insert some real tests, host_os isn't really good enough
17103 if test -n "$STRIP" ; then
17104 striplib="$STRIP -x"
17105 { echo "$as_me:$LINENO: result: yes" >&5
17106 echo "${ECHO_T}yes" >&6; }
17108 { echo "$as_me:$LINENO: result: no" >&5
17109 echo "${ECHO_T}no" >&6; }
17113 { echo "$as_me:$LINENO: result: no" >&5
17114 echo "${ECHO_T}no" >&6; }
17119 if test "x$enable_dlopen" != xyes; then
17120 enable_dlopen=unknown
17121 enable_dlopen_self=unknown
17122 enable_dlopen_self_static=unknown
17129 lt_cv_dlopen="load_add_on"
17131 lt_cv_dlopen_self=yes
17135 lt_cv_dlopen="LoadLibrary"
17140 lt_cv_dlopen="dlopen"
17145 # if libdl is installed we need to link against it
17146 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 ac_check_lib_save_LIBS=$LIBS
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_cv_lib_dl_dlopen=yes
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 ac_cv_lib_dl_dlopen=no
17217 rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_check_lib_save_LIBS
17221 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17222 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17223 if test $ac_cv_lib_dl_dlopen = yes; then
17224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17227 lt_cv_dlopen="dyld"
17229 lt_cv_dlopen_self=yes
17236 { echo "$as_me:$LINENO: checking for shl_load" >&5
17237 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17238 if test "${ac_cv_func_shl_load+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17241 cat >conftest.$ac_ext <<_ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17249 #define shl_load innocuous_shl_load
17251 /* System header to define __stub macros and hopefully few prototypes,
17252 which can conflict with char shl_load (); below.
17253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17254 <limits.h> exists even on freestanding compilers. */
17257 # include <limits.h>
17259 # include <assert.h>
17264 /* Override any GCC internal prototype to avoid an error.
17265 Use char because int might match the return type of a GCC
17266 builtin and then its argument prototype would still apply. */
17271 /* The GNU C library defines this for functions which it implements
17272 to always fail with ENOSYS. Some functions are actually named
17273 something starting with __ and the normal name is an alias. */
17274 #if defined __stub_shl_load || defined __stub___shl_load
17281 return shl_load ();
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (ac_try="$ac_link"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_link") 2>conftest.er1
17295 grep -v '^ *+' conftest.er1 >conftest.err
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17301 { (case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_try") 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest$ac_exeext'
17311 { (case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_try") 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 ac_cv_func_shl_load=yes
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17325 ac_cv_func_shl_load=no
17328 rm -f core conftest.err conftest.$ac_objext \
17329 conftest$ac_exeext conftest.$ac_ext
17331 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17332 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17333 if test $ac_cv_func_shl_load = yes; then
17334 lt_cv_dlopen="shl_load"
17336 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17337 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17338 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 ac_check_lib_save_LIBS=$LIBS
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17350 /* Override any GCC internal prototype to avoid an error.
17351 Use char because int might match the return type of a GCC
17352 builtin and then its argument prototype would still apply. */
17360 return shl_load ();
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (ac_try="$ac_link"
17367 case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_link") 2>conftest.er1
17374 grep -v '^ *+' conftest.er1 >conftest.err
17376 cat conftest.err >&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
17379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17380 { (case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_try") 2>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_lib_dld_shl_load=yes
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 ac_cv_lib_dld_shl_load=no
17407 rm -f core conftest.err conftest.$ac_objext \
17408 conftest$ac_exeext conftest.$ac_ext
17409 LIBS=$ac_check_lib_save_LIBS
17411 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17412 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17413 if test $ac_cv_lib_dld_shl_load = yes; then
17414 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17416 { echo "$as_me:$LINENO: checking for dlopen" >&5
17417 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17418 if test "${ac_cv_func_dlopen+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 cat >conftest.$ac_ext <<_ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17427 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17429 #define dlopen innocuous_dlopen
17431 /* System header to define __stub macros and hopefully few prototypes,
17432 which can conflict with char dlopen (); below.
17433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434 <limits.h> exists even on freestanding compilers. */
17437 # include <limits.h>
17439 # include <assert.h>
17444 /* Override any GCC internal prototype to avoid an error.
17445 Use char because int might match the return type of a GCC
17446 builtin and then its argument prototype would still apply. */
17451 /* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
17454 #if defined __stub_dlopen || defined __stub___dlopen
17466 rm -f conftest.$ac_objext conftest$ac_exeext
17467 if { (ac_try="$ac_link"
17468 case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>conftest.er1
17475 grep -v '^ *+' conftest.er1 >conftest.err
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17481 { (case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_try") 2>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; } &&
17490 { ac_try='test -s conftest$ac_exeext'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 ac_cv_func_dlopen=yes
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 ac_cv_func_dlopen=no
17508 rm -f core conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17511 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17512 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17513 if test $ac_cv_func_dlopen = yes; then
17514 lt_cv_dlopen="dlopen"
17516 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17517 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17518 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 ac_check_lib_save_LIBS=$LIBS
17523 cat >conftest.$ac_ext <<_ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17530 /* Override any GCC internal prototype to avoid an error.
17531 Use char because int might match the return type of a GCC
17532 builtin and then its argument prototype would still apply. */
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (ac_try="$ac_link"
17547 case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_link") 2>conftest.er1
17554 grep -v '^ *+' conftest.er1 >conftest.err
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17560 { (case "(($ac_try" in
17561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562 *) ac_try_echo=$ac_try;;
17564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565 (eval "$ac_try") 2>&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; } &&
17569 { ac_try='test -s conftest$ac_exeext'
17570 { (case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_try") 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; }; then
17579 ac_cv_lib_dl_dlopen=yes
17581 echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17584 ac_cv_lib_dl_dlopen=no
17587 rm -f core conftest.err conftest.$ac_objext \
17588 conftest$ac_exeext conftest.$ac_ext
17589 LIBS=$ac_check_lib_save_LIBS
17591 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17592 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17593 if test $ac_cv_lib_dl_dlopen = yes; then
17594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17596 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17597 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17598 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 ac_check_lib_save_LIBS=$LIBS
17602 LIBS="-lsvld $LIBS"
17603 cat >conftest.$ac_ext <<_ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17610 /* Override any GCC internal prototype to avoid an error.
17611 Use char because int might match the return type of a GCC
17612 builtin and then its argument prototype would still apply. */
17625 rm -f conftest.$ac_objext conftest$ac_exeext
17626 if { (ac_try="$ac_link"
17627 case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_link") 2>conftest.er1
17634 grep -v '^ *+' conftest.er1 >conftest.err
17636 cat conftest.err >&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } &&
17639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17640 { (case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_try") 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try='test -s conftest$ac_exeext'
17650 { (case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_try") 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 ac_cv_lib_svld_dlopen=yes
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 ac_cv_lib_svld_dlopen=no
17667 rm -f core conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17669 LIBS=$ac_check_lib_save_LIBS
17671 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17672 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17673 if test $ac_cv_lib_svld_dlopen = yes; then
17674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17676 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17677 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17678 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 ac_check_lib_save_LIBS=$LIBS
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17690 /* Override any GCC internal prototype to avoid an error.
17691 Use char because int might match the return type of a GCC
17692 builtin and then its argument prototype would still apply. */
17700 return dld_link ();
17705 rm -f conftest.$ac_objext conftest$ac_exeext
17706 if { (ac_try="$ac_link"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_link") 2>conftest.er1
17714 grep -v '^ *+' conftest.er1 >conftest.err
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } &&
17719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17720 { (case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_try") 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; } &&
17729 { ac_try='test -s conftest$ac_exeext'
17730 { (case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_try") 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_cv_lib_dld_dld_link=yes
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 ac_cv_lib_dld_dld_link=no
17747 rm -f core conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17749 LIBS=$ac_check_lib_save_LIBS
17751 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17752 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17753 if test $ac_cv_lib_dld_dld_link = yes; then
17754 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17775 if test "x$lt_cv_dlopen" != xno; then
17781 case $lt_cv_dlopen in
17783 save_CPPFLAGS="$CPPFLAGS"
17784 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17786 save_LDFLAGS="$LDFLAGS"
17787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17790 LIBS="$lt_cv_dlopen_libs $LIBS"
17792 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17793 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17794 if test "${lt_cv_dlopen_self+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 if test "$cross_compiling" = yes; then :
17798 lt_cv_dlopen_self=cross
17800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17801 lt_status=$lt_dlunknown
17802 cat > conftest.$ac_ext <<EOF
17803 #line 17803 "configure"
17804 #include "confdefs.h"
17813 # define LT_DLGLOBAL RTLD_GLOBAL
17816 # define LT_DLGLOBAL DL_GLOBAL
17818 # define LT_DLGLOBAL 0
17822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17823 find out it does not work in some platform. */
17824 #ifndef LT_DLLAZY_OR_NOW
17826 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17829 # define LT_DLLAZY_OR_NOW DL_LAZY
17832 # define LT_DLLAZY_OR_NOW RTLD_NOW
17835 # define LT_DLLAZY_OR_NOW DL_NOW
17837 # define LT_DLLAZY_OR_NOW 0
17845 extern "C" void exit (int);
17848 void fnord() { int i=42;}
17851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17852 int status = $lt_dlunknown;
17856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17857 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17858 /* dlclose (self); */
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17871 (./conftest; exit; ) >&5 2>/dev/null
17873 case x$lt_status in
17874 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17875 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17876 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17879 # compilation failed
17880 lt_cv_dlopen_self=no
17887 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17888 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17890 if test "x$lt_cv_dlopen_self" = xyes; then
17891 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17892 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17893 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17894 if test "${lt_cv_dlopen_self_static+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 if test "$cross_compiling" = yes; then :
17898 lt_cv_dlopen_self_static=cross
17900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17901 lt_status=$lt_dlunknown
17902 cat > conftest.$ac_ext <<EOF
17903 #line 17903 "configure"
17904 #include "confdefs.h"
17913 # define LT_DLGLOBAL RTLD_GLOBAL
17916 # define LT_DLGLOBAL DL_GLOBAL
17918 # define LT_DLGLOBAL 0
17922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17923 find out it does not work in some platform. */
17924 #ifndef LT_DLLAZY_OR_NOW
17926 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17929 # define LT_DLLAZY_OR_NOW DL_LAZY
17932 # define LT_DLLAZY_OR_NOW RTLD_NOW
17935 # define LT_DLLAZY_OR_NOW DL_NOW
17937 # define LT_DLLAZY_OR_NOW 0
17945 extern "C" void exit (int);
17948 void fnord() { int i=42;}
17951 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17952 int status = $lt_dlunknown;
17956 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17957 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17958 /* dlclose (self); */
17966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17967 (eval $ac_link) 2>&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17971 (./conftest; exit; ) >&5 2>/dev/null
17973 case x$lt_status in
17974 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17975 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17976 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17979 # compilation failed
17980 lt_cv_dlopen_self_static=no
17987 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17988 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17991 CPPFLAGS="$save_CPPFLAGS"
17992 LDFLAGS="$save_LDFLAGS"
17997 case $lt_cv_dlopen_self in
17998 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17999 *) enable_dlopen_self=unknown ;;
18002 case $lt_cv_dlopen_self_static in
18003 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18004 *) enable_dlopen_self_static=unknown ;;
18009 # Report which library types will actually be built
18010 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18011 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18012 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
18013 echo "${ECHO_T}$can_build_shared" >&6; }
18015 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18016 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
18017 test "$can_build_shared" = "no" && enable_shared=no
18019 # On AIX, shared libraries and static libraries use the same namespace, and
18020 # are all built from PIC.
18023 test "$enable_shared" = yes && enable_static=no
18024 if test -n "$RANLIB"; then
18025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18026 postinstall_cmds='$RANLIB $lib'
18031 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18032 test "$enable_shared" = yes && enable_static=no
18036 { echo "$as_me:$LINENO: result: $enable_shared" >&5
18037 echo "${ECHO_T}$enable_shared" >&6; }
18039 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18040 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18041 # Make sure either enable_shared or enable_static is yes.
18042 test "$enable_shared" = yes || enable_static=yes
18043 { echo "$as_me:$LINENO: result: $enable_static" >&5
18044 echo "${ECHO_T}$enable_static" >&6; }
18046 # The else clause should only fire when bootstrapping the
18047 # libtool distribution, otherwise you forgot to ship ltmain.sh
18048 # with your package, and you will get complaints that there are
18049 # no rules to generate ltmain.sh.
18050 if test -f "$ltmain"; then
18051 # See if we are running on zsh, and set the options which allow our commands through
18052 # without removal of \ escapes.
18053 if test -n "${ZSH_VERSION+set}" ; then
18054 setopt NO_GLOB_SUBST
18056 # Now quote all the things that may contain metacharacters while being
18057 # careful not to overquote the AC_SUBSTed values. We take copies of the
18058 # variables and quote the copies for generation of the libtool script.
18059 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18063 deplibs_check_method reload_flag reload_cmds need_locks \
18064 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18065 lt_cv_sys_global_symbol_to_c_name_address \
18066 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18067 old_postinstall_cmds old_postuninstall_cmds \
18071 lt_prog_compiler_wl \
18072 lt_prog_compiler_pic \
18073 lt_prog_compiler_static \
18074 lt_prog_compiler_no_builtin_flag \
18075 export_dynamic_flag_spec \
18076 thread_safe_flag_spec \
18077 whole_archive_flag_spec \
18078 enable_shared_with_static_runtimes \
18080 old_archive_from_new_cmds \
18085 compiler_lib_search_path \
18087 archive_expsym_cmds \
18089 postuninstall_cmds \
18090 old_archive_from_expsyms_cmds \
18091 allow_undefined_flag \
18092 no_undefined_flag \
18093 export_symbols_cmds \
18094 hardcode_libdir_flag_spec \
18095 hardcode_libdir_flag_spec_ld \
18096 hardcode_libdir_separator \
18097 hardcode_automatic \
18099 module_expsym_cmds \
18100 lt_cv_prog_compiler_c_o \
18102 include_expsyms; do
18105 old_archive_cmds | \
18106 old_archive_from_new_cmds | \
18108 archive_expsym_cmds | \
18110 module_expsym_cmds | \
18111 old_archive_from_expsyms_cmds | \
18112 export_symbols_cmds | \
18113 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18114 postinstall_cmds | postuninstall_cmds | \
18115 old_postinstall_cmds | old_postuninstall_cmds | \
18116 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18117 # Double-quote double-evaled strings.
18118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18127 *'\$0 --fallback-echo"')
18128 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18132 cfgfile="${ofile}T"
18133 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18135 { echo "$as_me:$LINENO: creating $ofile" >&5
18136 echo "$as_me: creating $ofile" >&6;}
18138 cat <<__EOF__ >> "$cfgfile"
18141 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18142 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18143 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18145 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18146 # Free Software Foundation, Inc.
18148 # This file is part of GNU Libtool:
18149 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18151 # This program is free software; you can redistribute it and/or modify
18152 # it under the terms of the GNU General Public License as published by
18153 # the Free Software Foundation; either version 2 of the License, or
18154 # (at your option) any later version.
18156 # This program is distributed in the hope that it will be useful, but
18157 # WITHOUT ANY WARRANTY; without even the implied warranty of
18158 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18159 # General Public License for more details.
18161 # You should have received a copy of the GNU General Public License
18162 # along with this program; if not, write to the Free Software
18163 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18165 # As a special exception to the GNU General Public License, if you
18166 # distribute this file as part of a program that contains a
18167 # configuration script generated by Autoconf, you may include it under
18168 # the same distribution terms that you use for the rest of that program.
18170 # A sed program that does not truncate output.
18173 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18174 Xsed="$SED -e 1s/^X//"
18176 # The HP-UX ksh and POSIX shell print the target directory to stdout
18177 # if CDPATH is set.
18178 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18180 # The names of the tagged configurations supported by this script.
18183 # ### BEGIN LIBTOOL CONFIG
18185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18187 # Shell to use when invoking shell scripts.
18190 # Whether or not to build shared libraries.
18191 build_libtool_libs=$enable_shared
18193 # Whether or not to build static libraries.
18194 build_old_libs=$enable_static
18196 # Whether or not to add -lc for building shared libraries.
18197 build_libtool_need_lc=$archive_cmds_need_lc
18199 # Whether or not to disallow shared libs when runtime libs are static
18200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18202 # Whether or not to optimize for fast installation.
18203 fast_install=$enable_fast_install
18206 host_alias=$host_alias
18210 # The build system.
18211 build_alias=$build_alias
18215 # An echo program that does not interpret backslashes.
18220 AR_FLAGS=$lt_AR_FLAGS
18225 # LTCC compiler flags.
18226 LTCFLAGS=$lt_LTCFLAGS
18228 # A language-specific compiler.
18231 # Is the compiler the GNU C compiler?
18237 # The linker used to build libraries.
18240 # Whether we need hard or soft links.
18243 # A BSD-compatible nm program.
18246 # A symbol stripping program
18249 # Used to examine libraries when file_magic_cmd begins "file"
18250 MAGIC_CMD=$MAGIC_CMD
18252 # Used on cygwin: DLL creation program.
18255 # Used on cygwin: object dumper.
18258 # Used on cygwin: assembler.
18261 # The name of the directory that contains temporary libtool files.
18264 # How to create reloadable object files.
18265 reload_flag=$lt_reload_flag
18266 reload_cmds=$lt_reload_cmds
18268 # How to pass a linker flag through the compiler.
18269 wl=$lt_lt_prog_compiler_wl
18271 # Object file suffix (normally "o").
18272 objext="$ac_objext"
18274 # Old archive suffix (normally "a").
18277 # Shared library suffix (normally ".so").
18278 shrext_cmds='$shrext_cmds'
18280 # Executable file suffix (normally "").
18283 # Additional compiler flags for building library objects.
18284 pic_flag=$lt_lt_prog_compiler_pic
18287 # What is the maximum length of a command?
18288 max_cmd_len=$lt_cv_sys_max_cmd_len
18290 # Does compiler simultaneously support -c and -o options?
18291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18293 # Must we lock files when doing compilation?
18294 need_locks=$lt_need_locks
18296 # Do we need the lib prefix for modules?
18297 need_lib_prefix=$need_lib_prefix
18299 # Do we need a version for libraries?
18300 need_version=$need_version
18302 # Whether dlopen is supported.
18303 dlopen_support=$enable_dlopen
18305 # Whether dlopen of programs is supported.
18306 dlopen_self=$enable_dlopen_self
18308 # Whether dlopen of statically linked programs is supported.
18309 dlopen_self_static=$enable_dlopen_self_static
18311 # Compiler flag to prevent dynamic linking.
18312 link_static_flag=$lt_lt_prog_compiler_static
18314 # Compiler flag to turn off builtin functions.
18315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18317 # Compiler flag to allow reflexive dlopens.
18318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18320 # Compiler flag to generate shared objects directly from archives.
18321 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18323 # Compiler flag to generate thread-safe objects.
18324 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18326 # Library versioning type.
18327 version_type=$version_type
18329 # Format of library name prefix.
18330 libname_spec=$lt_libname_spec
18332 # List of archive names. First name is the real one, the rest are links.
18333 # The last name is the one that the linker finds with -lNAME.
18334 library_names_spec=$lt_library_names_spec
18336 # The coded name of the library, if different from the real name.
18337 soname_spec=$lt_soname_spec
18339 # Commands used to build and install an old-style archive.
18341 old_archive_cmds=$lt_old_archive_cmds
18342 old_postinstall_cmds=$lt_old_postinstall_cmds
18343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18345 # Create an old-style archive from a shared archive.
18346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18348 # Create a temporary old-style archive to link instead of a shared archive.
18349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18351 # Commands used to build and install a shared archive.
18352 archive_cmds=$lt_archive_cmds
18353 archive_expsym_cmds=$lt_archive_expsym_cmds
18354 postinstall_cmds=$lt_postinstall_cmds
18355 postuninstall_cmds=$lt_postuninstall_cmds
18357 # Commands used to build a loadable module (assumed same as above if empty)
18358 module_cmds=$lt_module_cmds
18359 module_expsym_cmds=$lt_module_expsym_cmds
18361 # Commands to strip libraries.
18362 old_striplib=$lt_old_striplib
18363 striplib=$lt_striplib
18365 # Dependencies to place before the objects being linked to create a
18367 predep_objects=$lt_predep_objects
18369 # Dependencies to place after the objects being linked to create a
18371 postdep_objects=$lt_postdep_objects
18373 # Dependencies to place before the objects being linked to create a
18375 predeps=$lt_predeps
18377 # Dependencies to place after the objects being linked to create a
18379 postdeps=$lt_postdeps
18381 # The library search path used internally by the compiler when linking
18382 # a shared library.
18383 compiler_lib_search_path=$lt_compiler_lib_search_path
18385 # Method to check whether dependent libraries are shared objects.
18386 deplibs_check_method=$lt_deplibs_check_method
18388 # Command to use when deplibs_check_method == file_magic.
18389 file_magic_cmd=$lt_file_magic_cmd
18391 # Flag that allows shared libraries with undefined symbols to be built.
18392 allow_undefined_flag=$lt_allow_undefined_flag
18394 # Flag that forces no undefined symbols.
18395 no_undefined_flag=$lt_no_undefined_flag
18397 # Commands used to finish a libtool library installation in a directory.
18398 finish_cmds=$lt_finish_cmds
18400 # Same as above, but a single script fragment to be evaled but not shown.
18401 finish_eval=$lt_finish_eval
18403 # Take the output of nm and produce a listing of raw symbols and C names.
18404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18406 # Transform the output of nm in a proper C declaration
18407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18409 # Transform the output of nm in a C name address pair
18410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18412 # This is the shared library runtime path variable.
18413 runpath_var=$runpath_var
18415 # This is the shared library path variable.
18416 shlibpath_var=$shlibpath_var
18418 # Is shlibpath searched before the hard-coded library search path?
18419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18421 # How to hardcode a shared library path into an executable.
18422 hardcode_action=$hardcode_action
18424 # Whether we should hardcode library paths into libraries.
18425 hardcode_into_libs=$hardcode_into_libs
18427 # Flag to hardcode \$libdir into a binary during linking.
18428 # This must work even if \$libdir does not exist.
18429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18431 # If ld is used when linking, flag to hardcode \$libdir into
18432 # a binary during linking. This must work even if \$libdir does
18434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18436 # Whether we need a single -rpath flag with a separated argument.
18437 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18440 # resulting binary.
18441 hardcode_direct=$hardcode_direct
18443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18444 # resulting binary.
18445 hardcode_minus_L=$hardcode_minus_L
18447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18448 # the resulting binary.
18449 hardcode_shlibpath_var=$hardcode_shlibpath_var
18451 # Set to yes if building a shared library automatically hardcodes DIR into the library
18452 # and all subsequent libraries and executables linked against it.
18453 hardcode_automatic=$hardcode_automatic
18455 # Variables whose values should be saved in libtool wrapper scripts and
18456 # restored at relink time.
18457 variables_saved_for_relink="$variables_saved_for_relink"
18459 # Whether libtool must link a program against all its dependency libraries.
18460 link_all_deplibs=$link_all_deplibs
18462 # Compile-time system search path for libraries
18463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18465 # Run-time system search path for libraries
18466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18468 # Fix the shell variable \$srcfile for the compiler.
18469 fix_srcfile_path="$fix_srcfile_path"
18471 # Set to yes if exported symbols are required.
18472 always_export_symbols=$always_export_symbols
18474 # The commands to list exported symbols.
18475 export_symbols_cmds=$lt_export_symbols_cmds
18477 # The commands to extract the exported symbol list from a shared archive.
18478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18480 # Symbols that should not be listed in the preloaded symbols.
18481 exclude_expsyms=$lt_exclude_expsyms
18483 # Symbols that must always be exported.
18484 include_expsyms=$lt_include_expsyms
18486 # ### END LIBTOOL CONFIG
18493 cat <<\EOF >> "$cfgfile"
18495 # AIX sometimes has problems with the GCC collect2 program. For some
18496 # reason, if we set the COLLECT_NAMES environment variable, the problems
18497 # vanish in a puff of smoke.
18498 if test "X${COLLECT_NAMES+set}" != Xset; then
18500 export COLLECT_NAMES
18506 # We use sed instead of cat because bash on DJGPP gets confused if
18507 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18508 # text mode, it properly converts lines to CR/LF. This bash problem
18509 # is reportedly fixed, but why not run on old versions too?
18510 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18512 mv -f "$cfgfile" "$ofile" || \
18513 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18517 # If there is no Makefile yet, we rely on a make rule to execute
18518 # `config.status --recheck' to rerun these tests and create the
18519 # libtool script then.
18520 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18521 if test -f "$ltmain_in"; then
18522 test -f Makefile && make "$ltmain"
18528 ac_cpp='$CPP $CPPFLAGS'
18529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18536 # Check whether --with-tags was given.
18537 if test "${with_tags+set}" = set; then
18538 withval=$with_tags; tagnames="$withval"
18542 if test -f "$ltmain" && test -n "$tagnames"; then
18543 if test ! -f "${ofile}"; then
18544 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18545 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18548 if test -z "$LTCC"; then
18549 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18550 if test -z "$LTCC"; then
18551 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18552 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18554 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18555 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18558 if test -z "$LTCFLAGS"; then
18559 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18562 # Extract list of available tagged configurations in $ofile.
18563 # Note that this assumes the entire list is on one line.
18564 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18567 for tagname in $tagnames; do
18569 # Check whether tagname contains only valid characters
18570 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18572 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18573 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18574 { (exit 1); exit 1; }; }
18578 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18580 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18581 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18582 { (exit 1); exit 1; }; }
18585 # Update the list of available tags.
18586 if test -n "$tagname"; then
18587 echo appending configuration tag \"$tagname\" to $ofile
18591 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18592 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18593 (test "X$CXX" != "Xg++"))) ; then
18595 ac_cpp='$CXXCPP $CPPFLAGS'
18596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18603 archive_cmds_need_lc_CXX=no
18604 allow_undefined_flag_CXX=
18605 always_export_symbols_CXX=no
18606 archive_expsym_cmds_CXX=
18607 export_dynamic_flag_spec_CXX=
18608 hardcode_direct_CXX=no
18609 hardcode_libdir_flag_spec_CXX=
18610 hardcode_libdir_flag_spec_ld_CXX=
18611 hardcode_libdir_separator_CXX=
18612 hardcode_minus_L_CXX=no
18613 hardcode_shlibpath_var_CXX=unsupported
18614 hardcode_automatic_CXX=no
18616 module_expsym_cmds_CXX=
18617 link_all_deplibs_CXX=unknown
18618 old_archive_cmds_CXX=$old_archive_cmds
18619 no_undefined_flag_CXX=
18620 whole_archive_flag_spec_CXX=
18621 enable_shared_with_static_runtimes_CXX=no
18623 # Dependencies to place before and after the object being linked:
18624 predep_objects_CXX=
18625 postdep_objects_CXX=
18628 compiler_lib_search_path_CXX=
18630 # Source file extension for C++ test sources.
18633 # Object file extension for compiled C++ test sources.
18637 # Code to be used in simple compile tests
18638 lt_simple_compile_test_code="int some_variable = 0;\n"
18640 # Code to be used in simple link tests
18641 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18645 # If no C compiler was specified, use CC.
18648 # If no C compiler flags were specified, use CFLAGS.
18649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18651 # Allow CC to be a program name with arguments.
18655 # save warnings/boilerplate of simple test code
18656 ac_outfile=conftest.$ac_objext
18657 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18659 _lt_compiler_boilerplate=`cat conftest.err`
18662 ac_outfile=conftest.$ac_objext
18663 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18665 _lt_linker_boilerplate=`cat conftest.err`
18669 # Allow CC to be a program name with arguments.
18674 lt_save_with_gnu_ld=$with_gnu_ld
18675 lt_save_path_LD=$lt_cv_path_LD
18676 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18677 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18679 $as_unset lt_cv_prog_gnu_ld
18681 if test -n "${lt_cv_path_LDCXX+set}"; then
18682 lt_cv_path_LD=$lt_cv_path_LDCXX
18684 $as_unset lt_cv_path_LD
18686 test -z "${LDCXX+set}" || LD=$LDCXX
18690 for cc_temp in $compiler""; do
18692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18698 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18701 # We don't want -fno-exception wen compiling C++ code, so set the
18702 # no_builtin_flag separately
18703 if test "$GXX" = yes; then
18704 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18706 lt_prog_compiler_no_builtin_flag_CXX=
18709 if test "$GXX" = yes; then
18710 # Set up default GNU C++ configuration
18713 # Check whether --with-gnu-ld was given.
18714 if test "${with_gnu_ld+set}" = set; then
18715 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18721 if test "$GCC" = yes; then
18722 # Check if gcc -print-prog-name=ld gives a path.
18723 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18724 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18727 # gcc leaves a trailing carriage return which upsets mingw
18728 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18730 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18733 # Accept absolute paths.
18735 re_direlt='/[^/][^/]*/\.\./'
18736 # Canonicalize the pathname of ld
18737 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18738 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18739 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18741 test -z "$LD" && LD="$ac_prog"
18744 # If it fails, then pretend we aren't using GCC.
18748 # If it is relative, then search for the first ld in PATH.
18749 with_gnu_ld=unknown
18752 elif test "$with_gnu_ld" = yes; then
18753 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18754 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18756 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18757 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18759 if test "${lt_cv_path_LD+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 if test -z "$LD"; then
18763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18764 for ac_dir in $PATH; do
18766 test -z "$ac_dir" && ac_dir=.
18767 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18768 lt_cv_path_LD="$ac_dir/$ac_prog"
18769 # Check to see if the program is GNU ld. I'd rather use --version,
18770 # but apparently some variants of GNU ld only accept -v.
18771 # Break only if it was the GNU/non-GNU ld that we prefer.
18772 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18773 *GNU* | *'with BFD'*)
18774 test "$with_gnu_ld" != no && break
18777 test "$with_gnu_ld" != yes && break
18784 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18788 LD="$lt_cv_path_LD"
18789 if test -n "$LD"; then
18790 { echo "$as_me:$LINENO: result: $LD" >&5
18791 echo "${ECHO_T}$LD" >&6; }
18793 { echo "$as_me:$LINENO: result: no" >&5
18794 echo "${ECHO_T}no" >&6; }
18796 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18797 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18798 { (exit 1); exit 1; }; }
18799 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18800 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18801 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18805 case `$LD -v 2>&1 </dev/null` in
18806 *GNU* | *'with BFD'*)
18807 lt_cv_prog_gnu_ld=yes
18810 lt_cv_prog_gnu_ld=no
18814 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18815 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18816 with_gnu_ld=$lt_cv_prog_gnu_ld
18820 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18821 # archiving commands below assume that GNU ld is being used.
18822 if test "$with_gnu_ld" = yes; then
18823 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18824 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'
18826 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18829 # If archive_cmds runs LD, not CC, wlarc should be empty
18830 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18831 # investigate it a little bit more. (MM)
18834 # ancient GNU ld didn't support --whole-archive et. al.
18835 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18836 grep 'no-whole-archive' > /dev/null; then
18837 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18839 whole_archive_flag_spec_CXX=
18845 # A generic and very simple default shared library creation
18846 # command for GNU C++ for the case where it uses the native
18847 # linker, instead of GNU ld. If possible, this setting should
18848 # overridden to take advantage of the native linker features on
18849 # the platform it is being used on.
18850 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18853 # Commands to make compiler produce verbose output that lists
18854 # what "hidden" libraries, object files and flags are used when
18855 # linking a shared library.
18856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18864 # PORTME: fill in a description of your system's C++ link characteristics
18865 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18870 # FIXME: insert proper C++ library support
18874 if test "$host_cpu" = ia64; then
18875 # On IA64, the linker does run time linking by default, so we don't
18876 # have to do anything special.
18877 aix_use_runtimelinking=no
18878 exp_sym_flag='-Bexport'
18881 aix_use_runtimelinking=no
18883 # Test if we are trying to use run time linking or normal
18884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18885 # need to do runtime linking.
18886 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18887 for ld_flag in $LDFLAGS; do
18890 aix_use_runtimelinking=yes
18898 exp_sym_flag='-bexport'
18899 no_entry_flag='-bnoentry'
18902 # When large executables or shared objects are built, AIX ld can
18903 # have problems creating the table of contents. If linking a library
18904 # or program results in "error TOC overflow" add -mminimal-toc to
18905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18908 archive_cmds_CXX=''
18909 hardcode_direct_CXX=yes
18910 hardcode_libdir_separator_CXX=':'
18911 link_all_deplibs_CXX=yes
18913 if test "$GXX" = yes; then
18914 case $host_os in aix4.[012]|aix4.[012].*)
18915 # We only want to do this on AIX 4.2 and lower, the check
18916 # below for broken collect2 doesn't work under 4.3+
18917 collect2name=`${CC} -print-prog-name=collect2`
18918 if test -f "$collect2name" && \
18919 strings "$collect2name" | grep resolve_lib_name >/dev/null
18921 # We have reworked collect2
18922 hardcode_direct_CXX=yes
18924 # We have old collect2
18925 hardcode_direct_CXX=unsupported
18926 # It fails to find uninstalled libraries when the uninstalled
18927 # path is not listed in the libpath. Setting hardcode_minus_L
18928 # to unsupported forces relinking
18929 hardcode_minus_L_CXX=yes
18930 hardcode_libdir_flag_spec_CXX='-L$libdir'
18931 hardcode_libdir_separator_CXX=
18935 shared_flag='-shared'
18936 if test "$aix_use_runtimelinking" = yes; then
18937 shared_flag="$shared_flag "'${wl}-G'
18941 if test "$host_cpu" = ia64; then
18942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18943 # chokes on -Wl,-G. The following line is correct:
18946 if test "$aix_use_runtimelinking" = yes; then
18947 shared_flag='${wl}-G'
18949 shared_flag='${wl}-bM:SRE'
18954 # It seems that -bexpall does not export symbols beginning with
18955 # underscore (_), so it is better to generate a list of symbols to export.
18956 always_export_symbols_CXX=yes
18957 if test "$aix_use_runtimelinking" = yes; then
18958 # Warning - without using the other runtime loading flags (-brtl),
18959 # -berok will link without error, but may produce a broken library.
18960 allow_undefined_flag_CXX='-berok'
18961 # Determine the default libpath from the value encoded in an empty executable.
18962 cat >conftest.$ac_ext <<_ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18977 rm -f conftest.$ac_objext conftest$ac_exeext
18978 if { (ac_try="$ac_link"
18979 case "(($ac_try" in
18980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981 *) ac_try_echo=$ac_try;;
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984 (eval "$ac_link") 2>conftest.er1
18986 grep -v '^ *+' conftest.er1 >conftest.err
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18992 { (case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_try") 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest$ac_exeext'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19014 # Check for a 64-bit object if we didn't find anything.
19015 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; }
19018 echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19024 rm -f core conftest.err conftest.$ac_objext \
19025 conftest$ac_exeext conftest.$ac_ext
19026 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19028 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19030 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"
19032 if test "$host_cpu" = ia64; then
19033 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19034 allow_undefined_flag_CXX="-z nodefs"
19035 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"
19037 # Determine the default libpath from the value encoded in an empty executable.
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19053 rm -f conftest.$ac_objext conftest$ac_exeext
19054 if { (ac_try="$ac_link"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_link") 2>conftest.er1
19062 grep -v '^ *+' conftest.er1 >conftest.err
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19068 { (case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_try") 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest$ac_exeext'
19078 { (case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_try") 2>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19090 # Check for a 64-bit object if we didn't find anything.
19091 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; }
19094 echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.$ac_ext >&5
19100 rm -f core conftest.err conftest.$ac_objext \
19101 conftest$ac_exeext conftest.$ac_ext
19102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19105 # Warning - without using the other run time loading flags,
19106 # -berok will link without error, but may produce a broken library.
19107 no_undefined_flag_CXX=' ${wl}-bernotok'
19108 allow_undefined_flag_CXX=' ${wl}-berok'
19109 # Exported symbols can be pulled into shared objects from archives
19110 whole_archive_flag_spec_CXX='$convenience'
19111 archive_cmds_need_lc_CXX=yes
19112 # This is similar to how AIX traditionally builds its shared libraries.
19113 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'
19119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19120 allow_undefined_flag_CXX=unsupported
19121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19122 # support --undefined. This deserves some investigation. FIXME
19123 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130 case $cc_basename in
19132 # FIXME: insert proper C++ library support
19138 cygwin* | mingw* | pw32*)
19139 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19140 # as there is no search path for DLLs.
19141 hardcode_libdir_flag_spec_CXX='-L$libdir'
19142 allow_undefined_flag_CXX=unsupported
19143 always_export_symbols_CXX=no
19144 enable_shared_with_static_runtimes_CXX=yes
19146 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19147 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'
19148 # If the export-symbols file already is a .def file (1st line
19149 # is EXPORTS), use it as is; otherwise, prepend...
19150 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19151 cp $export_symbols $output_objdir/$soname.def;
19153 echo EXPORTS > $output_objdir/$soname.def;
19154 cat $export_symbols >> $output_objdir/$soname.def;
19156 $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'
19161 darwin* | rhapsody*)
19163 rhapsody* | darwin1.[012])
19164 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19167 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19168 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19170 case ${MACOSX_DEPLOYMENT_TARGET} in
19172 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19175 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19181 archive_cmds_need_lc_CXX=no
19182 hardcode_direct_CXX=no
19183 hardcode_automatic_CXX=yes
19184 hardcode_shlibpath_var_CXX=unsupported
19185 whole_archive_flag_spec_CXX=''
19186 link_all_deplibs_CXX=yes
19188 if test "$GXX" = yes ; then
19189 lt_int_apple_cc_single_mod=no
19190 output_verbose_link_cmd='echo'
19191 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19192 lt_int_apple_cc_single_mod=yes
19194 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19195 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19197 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'
19199 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19200 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19201 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19202 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}'
19204 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}'
19206 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}'
19208 case $cc_basename in
19210 output_verbose_link_cmd='echo'
19211 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'
19212 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19214 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}'
19215 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}'
19225 case $cc_basename in
19227 # FIXME: insert proper C++ library support
19231 # Green Hills C++ Compiler
19232 # FIXME: insert proper C++ library support
19236 # FIXME: insert proper C++ library support
19242 # C++ shared libraries reported to be fairly broken before switch to ELF
19246 archive_cmds_need_lc_CXX=no
19248 freebsd* | kfreebsd*-gnu | dragonfly*)
19249 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19256 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19257 hardcode_libdir_separator_CXX=:
19258 export_dynamic_flag_spec_CXX='${wl}-E'
19259 hardcode_direct_CXX=yes
19260 hardcode_minus_L_CXX=yes # Not in the search PATH,
19261 # but as the default
19262 # location of the library.
19264 case $cc_basename in
19266 # FIXME: insert proper C++ library support
19270 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'
19271 # Commands to make compiler produce verbose output that lists
19272 # what "hidden" libraries, object files and flags are used when
19273 # linking a shared library.
19275 # There doesn't appear to be a way to prevent this compiler from
19276 # explicitly linking system object files so we need to strip them
19277 # from the output so that they don't get included in the library
19279 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'
19282 if test "$GXX" = yes; then
19283 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'
19285 # FIXME: insert proper C++ library support
19292 if test $with_gnu_ld = no; then
19293 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19294 hardcode_libdir_separator_CXX=:
19298 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19301 export_dynamic_flag_spec_CXX='${wl}-E'
19307 hardcode_direct_CXX=no
19308 hardcode_shlibpath_var_CXX=no
19311 hardcode_direct_CXX=yes
19312 hardcode_minus_L_CXX=yes # Not in the search PATH,
19313 # but as the default
19314 # location of the library.
19318 case $cc_basename in
19320 # FIXME: insert proper C++ library support
19326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19329 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19332 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19335 # Commands to make compiler produce verbose output that lists
19336 # what "hidden" libraries, object files and flags are used when
19337 # linking a shared library.
19339 # There doesn't appear to be a way to prevent this compiler from
19340 # explicitly linking system object files so we need to strip them
19341 # from the output so that they don't get included in the library
19343 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'
19346 if test "$GXX" = yes; then
19347 if test $with_gnu_ld = no; then
19350 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19353 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19356 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'
19361 # FIXME: insert proper C++ library support
19368 hardcode_direct_CXX=no
19369 hardcode_shlibpath_var_CXX=no
19370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19371 export_dynamic_flag_spec_CXX='${wl}-E'
19372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19373 # Instead, shared libraries are loaded at an image base (0x10000000 by
19374 # default) and relocated if they conflict, which is a slow very memory
19375 # consuming and fragmenting process. To avoid this, we pick a random,
19376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19378 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'
19379 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'
19382 case $cc_basename in
19385 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'
19387 # Archives containing C++ object files must be created using
19388 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19389 # necessary to make sure instantiated templates are included
19391 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19394 if test "$GXX" = yes; then
19395 if test "$with_gnu_ld" = no; then
19396 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'
19398 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'
19401 link_all_deplibs_CXX=yes
19404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19405 hardcode_libdir_separator_CXX=:
19408 case $cc_basename in
19410 # Kuck and Associates, Inc. (KAI) C++ Compiler
19412 # KCC will only create a shared library if the output file
19413 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19414 # to its proper name (with version) after linking.
19415 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'
19416 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'
19417 # Commands to make compiler produce verbose output that lists
19418 # what "hidden" libraries, object files and flags are used when
19419 # linking a shared library.
19421 # There doesn't appear to be a way to prevent this compiler from
19422 # explicitly linking system object files so we need to strip them
19423 # from the output so that they don't get included in the library
19425 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'
19427 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19430 # Archives containing C++ object files must be created using
19431 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19432 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19437 # version 8.0 and above of icpc choke on multiply defined symbols
19438 # if we add $predep_objects and $postdep_objects, however 7.1 and
19439 # earlier do not add the objects themselves.
19440 case `$CC -V 2>&1` in
19442 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19443 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'
19445 *) # Version 8.0 or newer
19448 ia64*) tmp_idyn=' -i_dynamic';;
19450 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19451 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'
19454 archive_cmds_need_lc_CXX=no
19455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19457 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19460 # Portland Group C++ compiler
19461 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19462 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'
19464 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19465 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19466 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'
19470 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19471 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'
19473 runpath_var=LD_RUN_PATH
19474 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19475 hardcode_libdir_separator_CXX=:
19477 # Commands to make compiler produce verbose output that lists
19478 # what "hidden" libraries, object files and flags are used when
19479 # linking a shared library.
19481 # There doesn't appear to be a way to prevent this compiler from
19482 # explicitly linking system object files so we need to strip them
19483 # from the output so that they don't get included in the library
19485 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'
19490 # FIXME: insert proper C++ library support
19494 # FIXME: insert proper C++ library support
19498 case $cc_basename in
19500 # FIXME: insert proper C++ library support
19504 # FIXME: insert proper C++ library support
19510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19511 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19513 hardcode_libdir_flag_spec_CXX='-R$libdir'
19514 hardcode_direct_CXX=yes
19515 hardcode_shlibpath_var_CXX=no
19517 # Workaround some broken pre-1.5 toolchains
19518 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19521 # C++ shared libraries are fairly broken
19525 hardcode_direct_CXX=yes
19526 hardcode_shlibpath_var_CXX=no
19527 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19528 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19530 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19531 export_dynamic_flag_spec_CXX='${wl}-E'
19532 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19534 output_verbose_link_cmd='echo'
19537 case $cc_basename in
19539 # Kuck and Associates, Inc. (KAI) C++ Compiler
19541 # KCC will only create a shared library if the output file
19542 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19543 # to its proper name (with version) after linking.
19544 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'
19546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19547 hardcode_libdir_separator_CXX=:
19549 # Archives containing C++ object files must be created using
19550 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19551 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19555 # Rational C++ 2.4.1
19556 # FIXME: insert proper C++ library support
19560 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19561 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'
19563 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19564 hardcode_libdir_separator_CXX=:
19566 # Commands to make compiler produce verbose output that lists
19567 # what "hidden" libraries, object files and flags are used when
19568 # linking a shared library.
19570 # There doesn't appear to be a way to prevent this compiler from
19571 # explicitly linking system object files so we need to strip them
19572 # from the output so that they don't get included in the library
19574 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'
19577 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19578 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19579 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'
19581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19582 hardcode_libdir_separator_CXX=:
19584 # Commands to make compiler produce verbose output that lists
19585 # what "hidden" libraries, object files and flags are used when
19586 # linking a shared library.
19587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19590 # FIXME: insert proper C++ library support
19597 case $cc_basename in
19599 # Kuck and Associates, Inc. (KAI) C++ Compiler
19601 # KCC will only create a shared library if the output file
19602 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19603 # to its proper name (with version) after linking.
19604 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'
19606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19607 hardcode_libdir_separator_CXX=:
19609 # Archives containing C++ object files must be created using
19610 # the KAI C++ compiler.
19611 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19614 # Rational C++ 2.4.1
19615 # FIXME: insert proper C++ library support
19619 allow_undefined_flag_CXX=' -expect_unresolved \*'
19620 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'
19621 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19622 echo "-hidden">> $lib.exp~
19623 $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~
19626 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19627 hardcode_libdir_separator_CXX=:
19629 # Commands to make compiler produce verbose output that lists
19630 # what "hidden" libraries, object files and flags are used when
19631 # linking a shared library.
19633 # There doesn't appear to be a way to prevent this compiler from
19634 # explicitly linking system object files so we need to strip them
19635 # from the output so that they don't get included in the library
19637 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'
19640 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19641 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19642 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'
19644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19645 hardcode_libdir_separator_CXX=:
19647 # Commands to make compiler produce verbose output that lists
19648 # what "hidden" libraries, object files and flags are used when
19649 # linking a shared library.
19650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19653 # FIXME: insert proper C++ library support
19660 # FIXME: insert proper C++ library support
19664 case $cc_basename in
19667 # FIXME: insert proper C++ library support
19672 # FIXME: insert proper C++ library support
19676 # FIXME: insert proper C++ library support
19682 case $cc_basename in
19684 # Sun C++ 4.2, 5.x and Centerline C++
19685 archive_cmds_need_lc_CXX=yes
19686 no_undefined_flag_CXX=' -zdefs'
19687 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19688 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19689 $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'
19691 hardcode_libdir_flag_spec_CXX='-R$libdir'
19692 hardcode_shlibpath_var_CXX=no
19694 solaris2.[0-5] | solaris2.[0-5].*) ;;
19696 # The C++ compiler is used as linker so we must use $wl
19697 # flag to pass the commands to the underlying system
19698 # linker. We must also pass each convience library through
19699 # to the system linker between allextract/defaultextract.
19700 # The C++ compiler will combine linker options so we
19701 # cannot just pass the convience library names through
19703 # Supported since Solaris 2.6 (maybe 2.5.1?)
19704 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'
19707 link_all_deplibs_CXX=yes
19709 output_verbose_link_cmd='echo'
19711 # Archives containing C++ object files must be created using
19712 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19713 # necessary to make sure instantiated templates are included
19715 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19718 # Green Hills C++ Compiler
19719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19721 # The C++ compiler must be used to create the archive.
19722 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19725 # GNU C++ compiler with Solaris linker
19726 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19727 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19728 if $CC --version | grep -v '^2\.7' > /dev/null; then
19729 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19730 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19731 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19733 # Commands to make compiler produce verbose output that lists
19734 # what "hidden" libraries, object files and flags are used when
19735 # linking a shared library.
19736 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19738 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19740 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19741 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19742 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19744 # Commands to make compiler produce verbose output that lists
19745 # what "hidden" libraries, object files and flags are used when
19746 # linking a shared library.
19747 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19750 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19755 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19756 no_undefined_flag_CXX='${wl}-z,text'
19757 archive_cmds_need_lc_CXX=no
19758 hardcode_shlibpath_var_CXX=no
19759 runpath_var='LD_RUN_PATH'
19761 case $cc_basename in
19763 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19764 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19767 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19768 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19772 sysv5* | sco3.2v5* | sco5v6*)
19773 # Note: We can NOT use -z defs as we might desire, because we do not
19774 # link with -lc, and that would cause any symbols used from libc to
19775 # always be unresolved, which means just about no library would
19776 # ever link correctly. If we're not using GNU ld we use -z text
19777 # though, which does catch some bad symbols but isn't as heavy-handed
19779 # For security reasons, it is highly recommended that you always
19780 # use absolute paths for naming shared libraries, and exclude the
19781 # DT_RUNPATH tag from executables and libraries. But doing so
19782 # requires that you compile everything twice, which is a pain.
19783 # So that behaviour is only enabled if SCOABSPATH is set to a
19784 # non-empty value in the environment. Most likely only useful for
19785 # creating official distributions of packages.
19786 # This is a hack until libtool officially supports absolute path
19787 # names for shared libraries.
19788 no_undefined_flag_CXX='${wl}-z,text'
19789 allow_undefined_flag_CXX='${wl}-z,nodefs'
19790 archive_cmds_need_lc_CXX=no
19791 hardcode_shlibpath_var_CXX=no
19792 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19793 hardcode_libdir_separator_CXX=':'
19794 link_all_deplibs_CXX=yes
19795 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19796 runpath_var='LD_RUN_PATH'
19798 case $cc_basename in
19800 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19801 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19804 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19805 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19810 case $cc_basename in
19812 # NonStop-UX NCC 3.20
19813 # FIXME: insert proper C++ library support
19817 # FIXME: insert proper C++ library support
19823 # FIXME: insert proper C++ library support
19827 # FIXME: insert proper C++ library support
19831 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19832 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19833 test "$ld_shlibs_CXX" = no && can_build_shared=no
19839 cat > conftest.$ac_ext <<EOF
19843 Foo (void) { a = 0; }
19849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19850 (eval $ac_compile) 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; then
19854 # Parse the compiler output and extract the necessary
19855 # objects, libraries and library flags.
19857 # Sentinel used to keep track of whether or not we are before
19858 # the conftest object file.
19859 pre_test_object_deps_done=no
19861 # The `*' in the case matches for architectures that use `case' in
19862 # $output_verbose_cmd can trigger glob expansion during the loop
19863 # eval without this substitution.
19864 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19866 for p in `eval $output_verbose_link_cmd`; do
19870 # Some compilers place space between "-{L,R}" and the path.
19871 # Remove the space.
19872 if test $p = "-L" \
19873 || test $p = "-R"; then
19880 if test "$pre_test_object_deps_done" = no; then
19883 # Internal compiler library paths should come after those
19884 # provided the user. The postdeps already come after the
19885 # user supplied libs so there is no need to process them.
19886 if test -z "$compiler_lib_search_path_CXX"; then
19887 compiler_lib_search_path_CXX="${prev}${p}"
19889 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19892 # The "-l" case would never come before the object being
19893 # linked, so don't bother handling this case.
19896 if test -z "$postdeps_CXX"; then
19897 postdeps_CXX="${prev}${p}"
19899 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19905 # This assumes that the test object file only shows up
19906 # once in the compiler output.
19907 if test "$p" = "conftest.$objext"; then
19908 pre_test_object_deps_done=yes
19912 if test "$pre_test_object_deps_done" = no; then
19913 if test -z "$predep_objects_CXX"; then
19914 predep_objects_CXX="$p"
19916 predep_objects_CXX="$predep_objects_CXX $p"
19919 if test -z "$postdep_objects_CXX"; then
19920 postdep_objects_CXX="$p"
19922 postdep_objects_CXX="$postdep_objects_CXX $p"
19927 *) ;; # Ignore the rest.
19935 echo "libtool.m4: error: problem compiling CXX test program"
19938 $rm -f confest.$objext
19940 # PORTME: override above test on systems where it is broken
19943 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19944 # hack all around it, let's just trust "g++" to DTRT.
19945 predep_objects_CXX=
19946 postdep_objects_CXX=
19951 case $cc_basename in
19953 # Adding this requires a known-good setup of shared libraries for
19954 # Sun compiler versions before 5.6, else PIC objects from an old
19955 # archive will be linked into the output, leading to subtle bugs.
19956 postdeps_CXX='-lCstd -lCrun'
19963 case " $postdeps_CXX " in
19964 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19967 lt_prog_compiler_wl_CXX=
19968 lt_prog_compiler_pic_CXX=
19969 lt_prog_compiler_static_CXX=
19971 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19972 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19974 # C++ specific cases for pic, static, wl, etc.
19975 if test "$GXX" = yes; then
19976 lt_prog_compiler_wl_CXX='-Wl,'
19977 lt_prog_compiler_static_CXX='-static'
19981 # All AIX code is PIC.
19982 if test "$host_cpu" = ia64; then
19983 # AIX 5 now supports IA64 processor
19984 lt_prog_compiler_static_CXX='-Bstatic'
19988 # FIXME: we need at least 68020 code to build shared libraries, but
19989 # adding the `-m68020' flag to GCC prevents building anything better,
19991 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19993 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19994 # PIC is the default for these OSes.
19996 mingw* | os2* | pw32*)
19997 # This hack is so that the source file can tell whether it is being
19998 # built for inclusion in a dll (and should export symbols for example).
19999 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20001 darwin* | rhapsody*)
20002 # PIC is the default on this platform
20003 # Common symbols not allowed in MH_DYLIB files
20004 lt_prog_compiler_pic_CXX='-fno-common'
20007 # DJGPP does not support shared libraries at all
20008 lt_prog_compiler_pic_CXX=
20011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20012 # Instead, we relocate shared libraries at runtime.
20015 if test -d /usr/nec; then
20016 lt_prog_compiler_pic_CXX=-Kconform_pic
20020 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20021 # not for PA HP-UX.
20026 lt_prog_compiler_pic_CXX='-fPIC'
20031 lt_prog_compiler_pic_CXX='-fPIC'
20037 # All AIX code is PIC.
20038 if test "$host_cpu" = ia64; then
20039 # AIX 5 now supports IA64 processor
20040 lt_prog_compiler_static_CXX='-Bstatic'
20042 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20046 case $cc_basename in
20048 # Green Hills C++ Compiler
20049 # _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"
20054 # PIC is the default on this platform
20055 # Common symbols not allowed in MH_DYLIB files
20056 case $cc_basename in
20058 lt_prog_compiler_pic_CXX='-qnocommon'
20059 lt_prog_compiler_wl_CXX='-Wl,'
20064 case $cc_basename in
20066 lt_prog_compiler_pic_CXX='-KPIC'
20069 # Green Hills C++ Compiler
20070 lt_prog_compiler_pic_CXX='-pic'
20076 freebsd* | kfreebsd*-gnu | dragonfly*)
20077 # FreeBSD uses GNU C++
20079 hpux9* | hpux10* | hpux11*)
20080 case $cc_basename in
20082 lt_prog_compiler_wl_CXX='-Wl,'
20083 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20084 if test "$host_cpu" != ia64; then
20085 lt_prog_compiler_pic_CXX='+Z'
20089 lt_prog_compiler_wl_CXX='-Wl,'
20090 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20096 lt_prog_compiler_pic_CXX='+Z'
20105 # This is c89, which is MS Visual C++ (no shared libs)
20106 # Anyone wants to do a port?
20108 irix5* | irix6* | nonstopux*)
20109 case $cc_basename in
20111 lt_prog_compiler_wl_CXX='-Wl,'
20112 lt_prog_compiler_static_CXX='-non_shared'
20113 # CC pic flag -KPIC is the default.
20120 case $cc_basename in
20123 lt_prog_compiler_wl_CXX='--backend -Wl,'
20124 lt_prog_compiler_pic_CXX='-fPIC'
20128 lt_prog_compiler_wl_CXX='-Wl,'
20129 lt_prog_compiler_pic_CXX='-KPIC'
20130 lt_prog_compiler_static_CXX='-static'
20133 # Portland Group C++ compiler.
20134 lt_prog_compiler_wl_CXX='-Wl,'
20135 lt_prog_compiler_pic_CXX='-fpic'
20136 lt_prog_compiler_static_CXX='-Bstatic'
20140 # Make sure the PIC flag is empty. It appears that all Alpha
20141 # Linux and Compaq Tru64 Unix objects are PIC.
20142 lt_prog_compiler_pic_CXX=
20143 lt_prog_compiler_static_CXX='-non_shared'
20154 case $cc_basename in
20156 lt_prog_compiler_pic_CXX='-W c,exportall'
20164 osf3* | osf4* | osf5*)
20165 case $cc_basename in
20167 lt_prog_compiler_wl_CXX='--backend -Wl,'
20170 # Rational C++ 2.4.1
20171 lt_prog_compiler_pic_CXX='-pic'
20174 # Digital/Compaq C++
20175 lt_prog_compiler_wl_CXX='-Wl,'
20176 # Make sure the PIC flag is empty. It appears that all Alpha
20177 # Linux and Compaq Tru64 Unix objects are PIC.
20178 lt_prog_compiler_pic_CXX=
20179 lt_prog_compiler_static_CXX='-non_shared'
20188 case $cc_basename in
20190 # Sun C++ 4.2, 5.x and Centerline C++
20191 lt_prog_compiler_pic_CXX='-KPIC'
20192 lt_prog_compiler_static_CXX='-Bstatic'
20193 lt_prog_compiler_wl_CXX='-Qoption ld '
20196 # Green Hills C++ Compiler
20197 lt_prog_compiler_pic_CXX='-PIC'
20204 case $cc_basename in
20207 lt_prog_compiler_pic_CXX='-pic'
20208 lt_prog_compiler_static_CXX='-Bstatic'
20212 lt_prog_compiler_pic_CXX='-pic'
20219 case $cc_basename in
20221 # NonStop-UX NCC 3.20
20222 lt_prog_compiler_pic_CXX='-KPIC'
20228 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20229 case $cc_basename in
20231 lt_prog_compiler_wl_CXX='-Wl,'
20232 lt_prog_compiler_pic_CXX='-KPIC'
20233 lt_prog_compiler_static_CXX='-Bstatic'
20240 lt_prog_compiler_can_build_shared_CXX=no
20245 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20246 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20249 # Check to make sure the PIC flag actually works.
20251 if test -n "$lt_prog_compiler_pic_CXX"; then
20253 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20254 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20255 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 lt_prog_compiler_pic_works_CXX=no
20259 ac_outfile=conftest.$ac_objext
20260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20261 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20262 # Insert the option either (1) after the last *FLAGS variable, or
20263 # (2) before a word containing "conftest.", or (3) at the end.
20264 # Note that $ac_compile itself does not contain backslashes and begins
20265 # with a dollar sign (not a hyphen), so the echo should work correctly.
20266 # The option is referenced via a variable to avoid confusing sed.
20267 lt_compile=`echo "$ac_compile" | $SED \
20268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20270 -e 's:$: $lt_compiler_flag:'`
20271 (eval echo "\"\$as_me:20271: $lt_compile\"" >&5)
20272 (eval "$lt_compile" 2>conftest.err)
20274 cat conftest.err >&5
20275 echo "$as_me:20275: \$? = $ac_status" >&5
20276 if (exit $ac_status) && test -s "$ac_outfile"; then
20277 # The compiler can only warn and ignore the option if not recognized
20278 # So say no if there are warnings other than the usual output.
20279 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20282 lt_prog_compiler_pic_works_CXX=yes
20288 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20289 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20291 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20292 case $lt_prog_compiler_pic_CXX in
20294 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20297 lt_prog_compiler_pic_CXX=
20298 lt_prog_compiler_can_build_shared_CXX=no
20303 # For platforms which do not support PIC, -DPIC is meaningless:
20305 lt_prog_compiler_pic_CXX=
20308 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20313 # Check to make sure the static flag actually works.
20315 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20316 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20317 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20318 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 lt_prog_compiler_static_works_CXX=no
20322 save_LDFLAGS="$LDFLAGS"
20323 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20324 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20325 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20326 # The linker can only warn and ignore the option if not recognized
20327 # So say no if there are warnings
20328 if test -s conftest.err; then
20329 # Append any errors to the config.log.
20330 cat conftest.err 1>&5
20331 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20333 if diff conftest.exp conftest.er2 >/dev/null; then
20334 lt_prog_compiler_static_works_CXX=yes
20337 lt_prog_compiler_static_works_CXX=yes
20341 LDFLAGS="$save_LDFLAGS"
20344 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20345 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20347 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20350 lt_prog_compiler_static_CXX=
20354 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20355 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20356 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20359 lt_cv_prog_compiler_c_o_CXX=no
20360 $rm -r conftest 2>/dev/null
20364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20366 lt_compiler_flag="-o out/conftest2.$ac_objext"
20367 # Insert the option either (1) after the last *FLAGS variable, or
20368 # (2) before a word containing "conftest.", or (3) at the end.
20369 # Note that $ac_compile itself does not contain backslashes and begins
20370 # with a dollar sign (not a hyphen), so the echo should work correctly.
20371 lt_compile=`echo "$ac_compile" | $SED \
20372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20374 -e 's:$: $lt_compiler_flag:'`
20375 (eval echo "\"\$as_me:20375: $lt_compile\"" >&5)
20376 (eval "$lt_compile" 2>out/conftest.err)
20378 cat out/conftest.err >&5
20379 echo "$as_me:20379: \$? = $ac_status" >&5
20380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20382 # The compiler can only warn and ignore the option if not recognized
20383 # So say no if there are warnings
20384 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20387 lt_cv_prog_compiler_c_o_CXX=yes
20392 # SGI C++ compiler will create directory out/ii_files/ for
20393 # template instantiation
20394 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20395 $rm out/* && rmdir out
20401 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20402 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20405 hard_links="nottested"
20406 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20407 # do not overwrite the value of need_locks provided by the user
20408 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20409 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20414 ln conftest.a conftest.b 2>&5 || hard_links=no
20415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20416 { echo "$as_me:$LINENO: result: $hard_links" >&5
20417 echo "${ECHO_T}$hard_links" >&6; }
20418 if test "$hard_links" = no; then
20419 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20420 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20427 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20428 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20430 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20433 # If we're using GNU nm, then we don't want the "-C" option.
20434 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20435 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20436 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'
20438 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'
20442 export_symbols_cmds_CXX="$ltdll_cmds"
20445 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'
20448 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20452 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20453 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20454 test "$ld_shlibs_CXX" = no && can_build_shared=no
20457 # Do we need to explicitly link libc?
20459 case "x$archive_cmds_need_lc_CXX" in
20461 # Assume -lc should be added
20462 archive_cmds_need_lc_CXX=yes
20464 if test "$enable_shared" = yes && test "$GCC" = yes; then
20465 case $archive_cmds_CXX in
20467 # FIXME: we may have to deal with multi-command sequences.
20470 # Test whether the compiler implicitly links with -lc since on some
20471 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20472 # to ld, don't add -lc before -lgcc.
20473 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20474 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479 (eval $ac_compile) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } 2>conftest.err; then
20485 libobjs=conftest.$ac_objext
20487 wl=$lt_prog_compiler_wl_CXX
20488 pic_flag=$lt_prog_compiler_pic_CXX
20494 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20495 allow_undefined_flag_CXX=
20496 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20497 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }
20502 archive_cmds_need_lc_CXX=no
20504 archive_cmds_need_lc_CXX=yes
20506 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20508 cat conftest.err 1>&5
20511 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20512 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20519 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20520 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20521 library_names_spec=
20522 libname_spec='lib$name'
20526 postuninstall_cmds=
20530 shlibpath_overrides_runpath=unknown
20532 dynamic_linker="$host_os ld.so"
20533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20534 if test "$GCC" = yes; then
20535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20536 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20537 # if the path contains ";" then we assume it to be the separator
20538 # otherwise default to the standard path separator (i.e. ":") - it is
20539 # assumed that no part of a normal pathname contains ";" but that should
20540 # okay in the real world where ";" in dirpaths is itself problematic.
20541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20546 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20548 need_lib_prefix=unknown
20549 hardcode_into_libs=no
20551 # when you set need_version to no, make sure it does not cause -set_version
20552 # flags to be left without arguments
20553 need_version=unknown
20558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20559 shlibpath_var=LIBPATH
20561 # AIX 3 has no versioning support, so we append a major version to the name.
20562 soname_spec='${libname}${release}${shared_ext}$major'
20569 hardcode_into_libs=yes
20570 if test "$host_cpu" = ia64; then
20571 # AIX 5 supports IA64
20572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20573 shlibpath_var=LD_LIBRARY_PATH
20575 # With GCC up to 2.95.x, collect2 would create an import file
20576 # for dependence libraries. The import file would start with
20577 # the line `#! .'. This would cause the generated library to
20578 # depend on `.', always an invalid library. This was fixed in
20579 # development snapshots of GCC prior to 3.0.
20581 aix4 | aix4.[01] | aix4.[01].*)
20582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20584 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20587 can_build_shared=no
20591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20592 # soname into executable. Probably we can add versioning support to
20593 # collect2, so additional links can be useful in future.
20594 if test "$aix_use_runtimelinking" = yes; then
20595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20596 # instead of lib<name>.a to let people know that these are not
20597 # typical AIX shared libraries.
20598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600 # We preserve .a as extension for shared libraries through AIX4.2
20601 # and later when we are not doing run time linking.
20602 library_names_spec='${libname}${release}.a $libname.a'
20603 soname_spec='${libname}${release}${shared_ext}$major'
20605 shlibpath_var=LIBPATH
20610 library_names_spec='$libname.ixlibrary $libname.a'
20611 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20612 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'
20616 library_names_spec='${libname}${shared_ext}'
20617 dynamic_linker="$host_os ld.so"
20618 shlibpath_var=LIBRARY_PATH
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20625 soname_spec='${libname}${release}${shared_ext}$major'
20626 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20627 shlibpath_var=LD_LIBRARY_PATH
20628 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20629 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20630 # the default ld.so.conf also contains /usr/contrib/lib and
20631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20632 # libtool to hard-code these into programs
20635 cygwin* | mingw* | pw32*)
20636 version_type=windows
20641 case $GCC,$host_os in
20642 yes,cygwin* | yes,mingw* | yes,pw32*)
20643 library_names_spec='$libname.dll.a'
20644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20645 postinstall_cmds='base_file=`basename \${file}`~
20646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20647 dldir=$destdir/`dirname \$dlpath`~
20648 test -d \$dldir || mkdir -p \$dldir~
20649 $install_prog $dir/$dlname \$dldir/$dlname~
20650 chmod a+x \$dldir/$dlname'
20651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20652 dlpath=$dir/\$dldll~
20654 shlibpath_overrides_runpath=yes
20658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20663 # MinGW DLLs use traditional 'lib' prefix
20664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20666 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20667 # It is most probably a Windows format PATH printed by
20668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20669 # path with ; separators, and with drive letters. We can handle the
20670 # drive letters (cygwin fileutils understands them), so leave them,
20671 # especially as we might pass files found there to a mingw objdump,
20672 # which wouldn't understand a cygwinified path. Ahh.
20673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20679 # pw32 DLLs use 'pw' prefix rather than 'lib'
20680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20689 dynamic_linker='Win32 ld.exe'
20690 # FIXME: first we should search . and the directory the executable is in
20694 darwin* | rhapsody*)
20695 dynamic_linker="$host_os dyld"
20696 version_type=darwin
20699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20700 soname_spec='${libname}${release}${major}$shared_ext'
20701 shlibpath_overrides_runpath=yes
20702 shlibpath_var=DYLD_LIBRARY_PATH
20703 shrext_cmds='.dylib'
20704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20705 if test "$GCC" = yes; then
20706 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"`
20708 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20718 soname_spec='${libname}${release}${shared_ext}$major'
20719 shlibpath_var=LD_LIBRARY_PATH
20730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20731 soname_spec='${libname}${release}${shared_ext}$major'
20732 shlibpath_var=LD_LIBRARY_PATH
20733 shlibpath_overrides_runpath=no
20734 hardcode_into_libs=yes
20735 dynamic_linker='GNU ld.so'
20738 freebsd* | dragonfly*)
20739 # DragonFly does not have aout. When/if they implement a new
20740 # versioning mechanism, adjust this.
20741 if test -x /usr/bin/objformat; then
20742 objformat=`/usr/bin/objformat`
20745 freebsd[123]*) objformat=aout ;;
20746 *) objformat=elf ;;
20749 version_type=freebsd-$objformat
20750 case $version_type in
20752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20761 shlibpath_var=LD_LIBRARY_PATH
20764 shlibpath_overrides_runpath=yes
20766 freebsd3.[01]* | freebsdelf3.[01]*)
20767 shlibpath_overrides_runpath=yes
20768 hardcode_into_libs=yes
20770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20772 shlibpath_overrides_runpath=no
20773 hardcode_into_libs=yes
20775 freebsd*) # from 4.6 on
20776 shlibpath_overrides_runpath=yes
20777 hardcode_into_libs=yes
20786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20787 soname_spec='${libname}${release}${shared_ext}$major'
20788 shlibpath_var=LD_LIBRARY_PATH
20789 hardcode_into_libs=yes
20792 hpux9* | hpux10* | hpux11*)
20793 # Give a soname corresponding to the major version so that dld.sl refuses to
20794 # link against other versions.
20801 hardcode_into_libs=yes
20802 dynamic_linker="$host_os dld.so"
20803 shlibpath_var=LD_LIBRARY_PATH
20804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20806 soname_spec='${libname}${release}${shared_ext}$major'
20807 if test "X$HPUX_IA64_MODE" = X32; then
20808 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20816 hardcode_into_libs=yes
20817 dynamic_linker="$host_os dld.sl"
20818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20821 soname_spec='${libname}${release}${shared_ext}$major'
20822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20827 dynamic_linker="$host_os dld.sl"
20828 shlibpath_var=SHLIB_PATH
20829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831 soname_spec='${libname}${release}${shared_ext}$major'
20834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20835 postinstall_cmds='chmod 555 $lib'
20842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20843 soname_spec='${libname}${release}${shared_ext}$major'
20844 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20845 shlibpath_var=LD_LIBRARY_PATH
20846 shlibpath_overrides_runpath=no
20847 hardcode_into_libs=yes
20850 irix5* | irix6* | nonstopux*)
20852 nonstopux*) version_type=nonstopux ;;
20854 if test "$lt_cv_prog_gnu_ld" = yes; then
20862 soname_spec='${libname}${release}${shared_ext}$major'
20863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20865 irix5* | nonstopux*)
20866 libsuff= shlibsuff=
20869 case $LD in # libtool.m4 will add one of these switches to LD
20870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20871 libsuff= shlibsuff= libmagic=32-bit;;
20872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20873 libsuff=32 shlibsuff=N32 libmagic=N32;;
20874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20876 *) libsuff= shlibsuff= libmagic=never-match;;
20880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20881 shlibpath_overrides_runpath=no
20882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20884 hardcode_into_libs=yes
20887 # No shared lib support for Linux oldld, aout, or coff.
20888 linux*oldld* | linux*aout* | linux*coff*)
20892 # This must be Linux ELF.
20897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20898 soname_spec='${libname}${release}${shared_ext}$major'
20899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20900 shlibpath_var=LD_LIBRARY_PATH
20901 shlibpath_overrides_runpath=no
20902 # This implies no fast_install, which is unacceptable.
20903 # Some rework will be needed to allow for fast_install
20904 # before this can be enabled.
20905 hardcode_into_libs=yes
20907 # Append ld.so.conf contents to the search path
20908 if test -f /etc/ld.so.conf; then
20909 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' ' '`
20910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20913 # We used to test for /lib/ld.so.1 and disable shared libraries on
20914 # powerpc, because MkLinux only supported shared libraries with the
20915 # GNU dynamic linker. Since this was broken with cross compilers,
20916 # most powerpc-linux boxes support dynamic linking these days and
20917 # people can always --disable-shared, the test was removed, and we
20918 # assume the GNU/Linux dynamic linker is in use.
20919 dynamic_linker='GNU/Linux ld.so'
20926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20927 soname_spec='${libname}${release}${shared_ext}$major'
20928 shlibpath_var=LD_LIBRARY_PATH
20929 shlibpath_overrides_runpath=no
20930 hardcode_into_libs=yes
20931 dynamic_linker='GNU ld.so'
20938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20941 dynamic_linker='NetBSD (a.out) ld.so'
20943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20944 soname_spec='${libname}${release}${shared_ext}$major'
20945 dynamic_linker='NetBSD ld.elf_so'
20947 shlibpath_var=LD_LIBRARY_PATH
20948 shlibpath_overrides_runpath=yes
20949 hardcode_into_libs=yes
20954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20955 shlibpath_var=LD_LIBRARY_PATH
20956 shlibpath_overrides_runpath=yes
20963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20964 soname_spec='${libname}${release}${shared_ext}$major'
20965 shlibpath_var=LD_LIBRARY_PATH
20966 shlibpath_overrides_runpath=yes
20971 sys_lib_dlsearch_path_spec="/usr/lib"
20973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20976 *) need_version=no ;;
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20980 shlibpath_var=LD_LIBRARY_PATH
20981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20983 openbsd2.[89] | openbsd2.[89].*)
20984 shlibpath_overrides_runpath=no
20987 shlibpath_overrides_runpath=yes
20991 shlibpath_overrides_runpath=yes
20996 libname_spec='$name'
20999 library_names_spec='$libname${shared_ext} $libname.a'
21000 dynamic_linker='OS/2 ld.exe'
21001 shlibpath_var=LIBPATH
21004 osf3* | osf4* | osf5*)
21008 soname_spec='${libname}${release}${shared_ext}$major'
21009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21010 shlibpath_var=LD_LIBRARY_PATH
21011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21020 soname_spec='${libname}${release}${shared_ext}$major'
21021 shlibpath_var=LD_LIBRARY_PATH
21022 shlibpath_overrides_runpath=yes
21023 hardcode_into_libs=yes
21024 # ldd complains unless libraries are executable
21025 postinstall_cmds='chmod +x $lib'
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21032 shlibpath_var=LD_LIBRARY_PATH
21033 shlibpath_overrides_runpath=yes
21034 if test "$with_gnu_ld" = yes; then
21042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21043 soname_spec='${libname}${release}${shared_ext}$major'
21044 shlibpath_var=LD_LIBRARY_PATH
21045 case $host_vendor in
21047 shlibpath_overrides_runpath=no
21049 export_dynamic_flag_spec='${wl}-Blargedynsym'
21050 runpath_var=LD_RUN_PATH
21058 shlibpath_overrides_runpath=no
21059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21065 if test -d /usr/nec ;then
21067 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21068 soname_spec='$libname${shared_ext}.$major'
21069 shlibpath_var=LD_LIBRARY_PATH
21073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21074 version_type=freebsd-elf
21077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21078 soname_spec='${libname}${release}${shared_ext}$major'
21079 shlibpath_var=LD_LIBRARY_PATH
21080 hardcode_into_libs=yes
21081 if test "$with_gnu_ld" = yes; then
21082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21083 shlibpath_overrides_runpath=no
21085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21086 shlibpath_overrides_runpath=yes
21089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21093 sys_lib_dlsearch_path_spec='/usr/lib'
21098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21099 soname_spec='${libname}${release}${shared_ext}$major'
21100 shlibpath_var=LD_LIBRARY_PATH
21107 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21108 echo "${ECHO_T}$dynamic_linker" >&6; }
21109 test "$dynamic_linker" = no && can_build_shared=no
21111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21112 if test "$GCC" = yes; then
21113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21116 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21117 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21118 hardcode_action_CXX=
21119 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21120 test -n "$runpath_var_CXX" || \
21121 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21123 # We can hardcode non-existant directories.
21124 if test "$hardcode_direct_CXX" != no &&
21125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21126 # have to relink, otherwise we might link with an installed library
21127 # when we should be linking with a yet-to-be-installed one
21128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21129 test "$hardcode_minus_L_CXX" != no; then
21130 # Linking always hardcodes the temporary library directory.
21131 hardcode_action_CXX=relink
21133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21134 hardcode_action_CXX=immediate
21137 # We cannot hardcode anything, or else we can only hardcode existing
21139 hardcode_action_CXX=unsupported
21141 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21142 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21144 if test "$hardcode_action_CXX" = relink; then
21145 # Fast installation is not supported
21146 enable_fast_install=no
21147 elif test "$shlibpath_overrides_runpath" = yes ||
21148 test "$enable_shared" = no; then
21149 # Fast installation is not necessary
21150 enable_fast_install=needless
21154 # The else clause should only fire when bootstrapping the
21155 # libtool distribution, otherwise you forgot to ship ltmain.sh
21156 # with your package, and you will get complaints that there are
21157 # no rules to generate ltmain.sh.
21158 if test -f "$ltmain"; then
21159 # See if we are running on zsh, and set the options which allow our commands through
21160 # without removal of \ escapes.
21161 if test -n "${ZSH_VERSION+set}" ; then
21162 setopt NO_GLOB_SUBST
21164 # Now quote all the things that may contain metacharacters while being
21165 # careful not to overquote the AC_SUBSTed values. We take copies of the
21166 # variables and quote the copies for generation of the libtool script.
21167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21171 deplibs_check_method reload_flag reload_cmds need_locks \
21172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21173 lt_cv_sys_global_symbol_to_c_name_address \
21174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21175 old_postinstall_cmds old_postuninstall_cmds \
21179 lt_prog_compiler_wl_CXX \
21180 lt_prog_compiler_pic_CXX \
21181 lt_prog_compiler_static_CXX \
21182 lt_prog_compiler_no_builtin_flag_CXX \
21183 export_dynamic_flag_spec_CXX \
21184 thread_safe_flag_spec_CXX \
21185 whole_archive_flag_spec_CXX \
21186 enable_shared_with_static_runtimes_CXX \
21187 old_archive_cmds_CXX \
21188 old_archive_from_new_cmds_CXX \
21189 predep_objects_CXX \
21190 postdep_objects_CXX \
21193 compiler_lib_search_path_CXX \
21195 archive_expsym_cmds_CXX \
21196 postinstall_cmds_CXX \
21197 postuninstall_cmds_CXX \
21198 old_archive_from_expsyms_cmds_CXX \
21199 allow_undefined_flag_CXX \
21200 no_undefined_flag_CXX \
21201 export_symbols_cmds_CXX \
21202 hardcode_libdir_flag_spec_CXX \
21203 hardcode_libdir_flag_spec_ld_CXX \
21204 hardcode_libdir_separator_CXX \
21205 hardcode_automatic_CXX \
21207 module_expsym_cmds_CXX \
21208 lt_cv_prog_compiler_c_o_CXX \
21209 exclude_expsyms_CXX \
21210 include_expsyms_CXX; do
21213 old_archive_cmds_CXX | \
21214 old_archive_from_new_cmds_CXX | \
21215 archive_cmds_CXX | \
21216 archive_expsym_cmds_CXX | \
21217 module_cmds_CXX | \
21218 module_expsym_cmds_CXX | \
21219 old_archive_from_expsyms_cmds_CXX | \
21220 export_symbols_cmds_CXX | \
21221 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21222 postinstall_cmds | postuninstall_cmds | \
21223 old_postinstall_cmds | old_postuninstall_cmds | \
21224 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21225 # Double-quote double-evaled strings.
21226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21235 *'\$0 --fallback-echo"')
21236 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21242 cat <<__EOF__ >> "$cfgfile"
21243 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21247 # Shell to use when invoking shell scripts.
21250 # Whether or not to build shared libraries.
21251 build_libtool_libs=$enable_shared
21253 # Whether or not to build static libraries.
21254 build_old_libs=$enable_static
21256 # Whether or not to add -lc for building shared libraries.
21257 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21259 # Whether or not to disallow shared libs when runtime libs are static
21260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21262 # Whether or not to optimize for fast installation.
21263 fast_install=$enable_fast_install
21266 host_alias=$host_alias
21270 # The build system.
21271 build_alias=$build_alias
21275 # An echo program that does not interpret backslashes.
21280 AR_FLAGS=$lt_AR_FLAGS
21285 # LTCC compiler flags.
21286 LTCFLAGS=$lt_LTCFLAGS
21288 # A language-specific compiler.
21289 CC=$lt_compiler_CXX
21291 # Is the compiler the GNU C compiler?
21297 # The linker used to build libraries.
21300 # Whether we need hard or soft links.
21303 # A BSD-compatible nm program.
21306 # A symbol stripping program
21309 # Used to examine libraries when file_magic_cmd begins "file"
21310 MAGIC_CMD=$MAGIC_CMD
21312 # Used on cygwin: DLL creation program.
21315 # Used on cygwin: object dumper.
21318 # Used on cygwin: assembler.
21321 # The name of the directory that contains temporary libtool files.
21324 # How to create reloadable object files.
21325 reload_flag=$lt_reload_flag
21326 reload_cmds=$lt_reload_cmds
21328 # How to pass a linker flag through the compiler.
21329 wl=$lt_lt_prog_compiler_wl_CXX
21331 # Object file suffix (normally "o").
21332 objext="$ac_objext"
21334 # Old archive suffix (normally "a").
21337 # Shared library suffix (normally ".so").
21338 shrext_cmds='$shrext_cmds'
21340 # Executable file suffix (normally "").
21343 # Additional compiler flags for building library objects.
21344 pic_flag=$lt_lt_prog_compiler_pic_CXX
21347 # What is the maximum length of a command?
21348 max_cmd_len=$lt_cv_sys_max_cmd_len
21350 # Does compiler simultaneously support -c and -o options?
21351 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21353 # Must we lock files when doing compilation?
21354 need_locks=$lt_need_locks
21356 # Do we need the lib prefix for modules?
21357 need_lib_prefix=$need_lib_prefix
21359 # Do we need a version for libraries?
21360 need_version=$need_version
21362 # Whether dlopen is supported.
21363 dlopen_support=$enable_dlopen
21365 # Whether dlopen of programs is supported.
21366 dlopen_self=$enable_dlopen_self
21368 # Whether dlopen of statically linked programs is supported.
21369 dlopen_self_static=$enable_dlopen_self_static
21371 # Compiler flag to prevent dynamic linking.
21372 link_static_flag=$lt_lt_prog_compiler_static_CXX
21374 # Compiler flag to turn off builtin functions.
21375 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21377 # Compiler flag to allow reflexive dlopens.
21378 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21380 # Compiler flag to generate shared objects directly from archives.
21381 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21383 # Compiler flag to generate thread-safe objects.
21384 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21386 # Library versioning type.
21387 version_type=$version_type
21389 # Format of library name prefix.
21390 libname_spec=$lt_libname_spec
21392 # List of archive names. First name is the real one, the rest are links.
21393 # The last name is the one that the linker finds with -lNAME.
21394 library_names_spec=$lt_library_names_spec
21396 # The coded name of the library, if different from the real name.
21397 soname_spec=$lt_soname_spec
21399 # Commands used to build and install an old-style archive.
21401 old_archive_cmds=$lt_old_archive_cmds_CXX
21402 old_postinstall_cmds=$lt_old_postinstall_cmds
21403 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21405 # Create an old-style archive from a shared archive.
21406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21408 # Create a temporary old-style archive to link instead of a shared archive.
21409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21411 # Commands used to build and install a shared archive.
21412 archive_cmds=$lt_archive_cmds_CXX
21413 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21414 postinstall_cmds=$lt_postinstall_cmds
21415 postuninstall_cmds=$lt_postuninstall_cmds
21417 # Commands used to build a loadable module (assumed same as above if empty)
21418 module_cmds=$lt_module_cmds_CXX
21419 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21421 # Commands to strip libraries.
21422 old_striplib=$lt_old_striplib
21423 striplib=$lt_striplib
21425 # Dependencies to place before the objects being linked to create a
21427 predep_objects=$lt_predep_objects_CXX
21429 # Dependencies to place after the objects being linked to create a
21431 postdep_objects=$lt_postdep_objects_CXX
21433 # Dependencies to place before the objects being linked to create a
21435 predeps=$lt_predeps_CXX
21437 # Dependencies to place after the objects being linked to create a
21439 postdeps=$lt_postdeps_CXX
21441 # The library search path used internally by the compiler when linking
21442 # a shared library.
21443 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21445 # Method to check whether dependent libraries are shared objects.
21446 deplibs_check_method=$lt_deplibs_check_method
21448 # Command to use when deplibs_check_method == file_magic.
21449 file_magic_cmd=$lt_file_magic_cmd
21451 # Flag that allows shared libraries with undefined symbols to be built.
21452 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21454 # Flag that forces no undefined symbols.
21455 no_undefined_flag=$lt_no_undefined_flag_CXX
21457 # Commands used to finish a libtool library installation in a directory.
21458 finish_cmds=$lt_finish_cmds
21460 # Same as above, but a single script fragment to be evaled but not shown.
21461 finish_eval=$lt_finish_eval
21463 # Take the output of nm and produce a listing of raw symbols and C names.
21464 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21466 # Transform the output of nm in a proper C declaration
21467 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21469 # Transform the output of nm in a C name address pair
21470 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21472 # This is the shared library runtime path variable.
21473 runpath_var=$runpath_var
21475 # This is the shared library path variable.
21476 shlibpath_var=$shlibpath_var
21478 # Is shlibpath searched before the hard-coded library search path?
21479 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21481 # How to hardcode a shared library path into an executable.
21482 hardcode_action=$hardcode_action_CXX
21484 # Whether we should hardcode library paths into libraries.
21485 hardcode_into_libs=$hardcode_into_libs
21487 # Flag to hardcode \$libdir into a binary during linking.
21488 # This must work even if \$libdir does not exist.
21489 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21491 # If ld is used when linking, flag to hardcode \$libdir into
21492 # a binary during linking. This must work even if \$libdir does
21494 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21496 # Whether we need a single -rpath flag with a separated argument.
21497 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21499 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21500 # resulting binary.
21501 hardcode_direct=$hardcode_direct_CXX
21503 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21504 # resulting binary.
21505 hardcode_minus_L=$hardcode_minus_L_CXX
21507 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21508 # the resulting binary.
21509 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21511 # Set to yes if building a shared library automatically hardcodes DIR into the library
21512 # and all subsequent libraries and executables linked against it.
21513 hardcode_automatic=$hardcode_automatic_CXX
21515 # Variables whose values should be saved in libtool wrapper scripts and
21516 # restored at relink time.
21517 variables_saved_for_relink="$variables_saved_for_relink"
21519 # Whether libtool must link a program against all its dependency libraries.
21520 link_all_deplibs=$link_all_deplibs_CXX
21522 # Compile-time system search path for libraries
21523 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21525 # Run-time system search path for libraries
21526 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21528 # Fix the shell variable \$srcfile for the compiler.
21529 fix_srcfile_path="$fix_srcfile_path_CXX"
21531 # Set to yes if exported symbols are required.
21532 always_export_symbols=$always_export_symbols_CXX
21534 # The commands to list exported symbols.
21535 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21537 # The commands to extract the exported symbol list from a shared archive.
21538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21540 # Symbols that should not be listed in the preloaded symbols.
21541 exclude_expsyms=$lt_exclude_expsyms_CXX
21543 # Symbols that must always be exported.
21544 include_expsyms=$lt_include_expsyms_CXX
21546 # ### END LIBTOOL TAG CONFIG: $tagname
21552 # If there is no Makefile yet, we rely on a make rule to execute
21553 # `config.status --recheck' to rerun these tests and create the
21554 # libtool script then.
21555 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21556 if test -f "$ltmain_in"; then
21557 test -f Makefile && make "$ltmain"
21563 ac_cpp='$CPP $CPPFLAGS'
21564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21572 with_gnu_ldcxx=$with_gnu_ld
21573 with_gnu_ld=$lt_save_with_gnu_ld
21574 lt_cv_path_LDCXX=$lt_cv_path_LD
21575 lt_cv_path_LD=$lt_save_path_LD
21576 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21577 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21585 if test -n "$F77" && test "X$F77" != "Xno"; then
21588 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21589 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21590 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21593 archive_cmds_need_lc_F77=no
21594 allow_undefined_flag_F77=
21595 always_export_symbols_F77=no
21596 archive_expsym_cmds_F77=
21597 export_dynamic_flag_spec_F77=
21598 hardcode_direct_F77=no
21599 hardcode_libdir_flag_spec_F77=
21600 hardcode_libdir_flag_spec_ld_F77=
21601 hardcode_libdir_separator_F77=
21602 hardcode_minus_L_F77=no
21603 hardcode_automatic_F77=no
21605 module_expsym_cmds_F77=
21606 link_all_deplibs_F77=unknown
21607 old_archive_cmds_F77=$old_archive_cmds
21608 no_undefined_flag_F77=
21609 whole_archive_flag_spec_F77=
21610 enable_shared_with_static_runtimes_F77=no
21612 # Source file extension for f77 test sources.
21615 # Object file extension for compiled f77 test sources.
21619 # Code to be used in simple compile tests
21620 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21622 # Code to be used in simple link tests
21623 lt_simple_link_test_code=" program t\n end\n"
21625 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21627 # If no C compiler was specified, use CC.
21630 # If no C compiler flags were specified, use CFLAGS.
21631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21633 # Allow CC to be a program name with arguments.
21637 # save warnings/boilerplate of simple test code
21638 ac_outfile=conftest.$ac_objext
21639 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21641 _lt_compiler_boilerplate=`cat conftest.err`
21644 ac_outfile=conftest.$ac_objext
21645 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21647 _lt_linker_boilerplate=`cat conftest.err`
21651 # Allow CC to be a program name with arguments.
21656 for cc_temp in $compiler""; do
21658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21664 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21667 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21668 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21669 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21670 echo "${ECHO_T}$can_build_shared" >&6; }
21672 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21673 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21674 test "$can_build_shared" = "no" && enable_shared=no
21676 # On AIX, shared libraries and static libraries use the same namespace, and
21677 # are all built from PIC.
21680 test "$enable_shared" = yes && enable_static=no
21681 if test -n "$RANLIB"; then
21682 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21683 postinstall_cmds='$RANLIB $lib'
21687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21688 test "$enable_shared" = yes && enable_static=no
21692 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21693 echo "${ECHO_T}$enable_shared" >&6; }
21695 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21696 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21697 # Make sure either enable_shared or enable_static is yes.
21698 test "$enable_shared" = yes || enable_static=yes
21699 { echo "$as_me:$LINENO: result: $enable_static" >&5
21700 echo "${ECHO_T}$enable_static" >&6; }
21705 lt_prog_compiler_wl_F77=
21706 lt_prog_compiler_pic_F77=
21707 lt_prog_compiler_static_F77=
21709 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21710 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21712 if test "$GCC" = yes; then
21713 lt_prog_compiler_wl_F77='-Wl,'
21714 lt_prog_compiler_static_F77='-static'
21718 # All AIX code is PIC.
21719 if test "$host_cpu" = ia64; then
21720 # AIX 5 now supports IA64 processor
21721 lt_prog_compiler_static_F77='-Bstatic'
21726 # FIXME: we need at least 68020 code to build shared libraries, but
21727 # adding the `-m68020' flag to GCC prevents building anything better,
21729 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21732 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21733 # PIC is the default for these OSes.
21736 mingw* | pw32* | os2*)
21737 # This hack is so that the source file can tell whether it is being
21738 # built for inclusion in a dll (and should export symbols for example).
21739 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21742 darwin* | rhapsody*)
21743 # PIC is the default on this platform
21744 # Common symbols not allowed in MH_DYLIB files
21745 lt_prog_compiler_pic_F77='-fno-common'
21749 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21750 # Instead, we relocate shared libraries at runtime.
21754 # Just because we use GCC doesn't mean we suddenly get shared libraries
21755 # on systems that don't support them.
21756 lt_prog_compiler_can_build_shared_F77=no
21761 if test -d /usr/nec; then
21762 lt_prog_compiler_pic_F77=-Kconform_pic
21767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21768 # not for PA HP-UX.
21774 lt_prog_compiler_pic_F77='-fPIC'
21780 lt_prog_compiler_pic_F77='-fPIC'
21784 # PORTME Check for flag to pass linker flags through the system compiler.
21787 lt_prog_compiler_wl_F77='-Wl,'
21788 if test "$host_cpu" = ia64; then
21789 # AIX 5 now supports IA64 processor
21790 lt_prog_compiler_static_F77='-Bstatic'
21792 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21796 # PIC is the default on this platform
21797 # Common symbols not allowed in MH_DYLIB files
21798 case $cc_basename in
21800 lt_prog_compiler_pic_F77='-qnocommon'
21801 lt_prog_compiler_wl_F77='-Wl,'
21806 mingw* | pw32* | os2*)
21807 # This hack is so that the source file can tell whether it is being
21808 # built for inclusion in a dll (and should export symbols for example).
21809 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21812 hpux9* | hpux10* | hpux11*)
21813 lt_prog_compiler_wl_F77='-Wl,'
21814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21815 # not for PA HP-UX.
21821 lt_prog_compiler_pic_F77='+Z'
21824 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21825 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21828 irix5* | irix6* | nonstopux*)
21829 lt_prog_compiler_wl_F77='-Wl,'
21830 # PIC (with -KPIC) is the default.
21831 lt_prog_compiler_static_F77='-non_shared'
21835 lt_prog_compiler_pic_F77='-KPIC'
21836 lt_prog_compiler_static_F77='-Bstatic'
21840 case $cc_basename in
21842 lt_prog_compiler_wl_F77='-Wl,'
21843 lt_prog_compiler_pic_F77='-KPIC'
21844 lt_prog_compiler_static_F77='-static'
21846 pgcc* | pgf77* | pgf90* | pgf95*)
21847 # Portland Group compilers (*not* the Pentium gcc compiler,
21848 # which looks to be a dead project)
21849 lt_prog_compiler_wl_F77='-Wl,'
21850 lt_prog_compiler_pic_F77='-fpic'
21851 lt_prog_compiler_static_F77='-Bstatic'
21854 lt_prog_compiler_wl_F77='-Wl,'
21855 # All Alpha code is PIC.
21856 lt_prog_compiler_static_F77='-non_shared'
21861 osf3* | osf4* | osf5*)
21862 lt_prog_compiler_wl_F77='-Wl,'
21863 # All OSF/1 code is PIC.
21864 lt_prog_compiler_static_F77='-non_shared'
21868 lt_prog_compiler_pic_F77='-KPIC'
21869 lt_prog_compiler_static_F77='-Bstatic'
21870 case $cc_basename in
21871 f77* | f90* | f95*)
21872 lt_prog_compiler_wl_F77='-Qoption ld ';;
21874 lt_prog_compiler_wl_F77='-Wl,';;
21879 lt_prog_compiler_wl_F77='-Qoption ld '
21880 lt_prog_compiler_pic_F77='-PIC'
21881 lt_prog_compiler_static_F77='-Bstatic'
21884 sysv4 | sysv4.2uw2* | sysv4.3*)
21885 lt_prog_compiler_wl_F77='-Wl,'
21886 lt_prog_compiler_pic_F77='-KPIC'
21887 lt_prog_compiler_static_F77='-Bstatic'
21891 if test -d /usr/nec ;then
21892 lt_prog_compiler_pic_F77='-Kconform_pic'
21893 lt_prog_compiler_static_F77='-Bstatic'
21897 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21898 lt_prog_compiler_wl_F77='-Wl,'
21899 lt_prog_compiler_pic_F77='-KPIC'
21900 lt_prog_compiler_static_F77='-Bstatic'
21904 lt_prog_compiler_wl_F77='-Wl,'
21905 lt_prog_compiler_can_build_shared_F77=no
21909 lt_prog_compiler_pic_F77='-pic'
21910 lt_prog_compiler_static_F77='-Bstatic'
21914 lt_prog_compiler_can_build_shared_F77=no
21919 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21920 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21923 # Check to make sure the PIC flag actually works.
21925 if test -n "$lt_prog_compiler_pic_F77"; then
21927 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21928 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21929 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21932 lt_prog_compiler_pic_works_F77=no
21933 ac_outfile=conftest.$ac_objext
21934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21935 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21936 # Insert the option either (1) after the last *FLAGS variable, or
21937 # (2) before a word containing "conftest.", or (3) at the end.
21938 # Note that $ac_compile itself does not contain backslashes and begins
21939 # with a dollar sign (not a hyphen), so the echo should work correctly.
21940 # The option is referenced via a variable to avoid confusing sed.
21941 lt_compile=`echo "$ac_compile" | $SED \
21942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21944 -e 's:$: $lt_compiler_flag:'`
21945 (eval echo "\"\$as_me:21945: $lt_compile\"" >&5)
21946 (eval "$lt_compile" 2>conftest.err)
21948 cat conftest.err >&5
21949 echo "$as_me:21949: \$? = $ac_status" >&5
21950 if (exit $ac_status) && test -s "$ac_outfile"; then
21951 # The compiler can only warn and ignore the option if not recognized
21952 # So say no if there are warnings other than the usual output.
21953 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21955 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21956 lt_prog_compiler_pic_works_F77=yes
21962 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21963 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21965 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21966 case $lt_prog_compiler_pic_F77 in
21968 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21971 lt_prog_compiler_pic_F77=
21972 lt_prog_compiler_can_build_shared_F77=no
21977 # For platforms which do not support PIC, -DPIC is meaningless:
21979 lt_prog_compiler_pic_F77=
21982 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21987 # Check to make sure the static flag actually works.
21989 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21990 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21991 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21992 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21995 lt_prog_compiler_static_works_F77=no
21996 save_LDFLAGS="$LDFLAGS"
21997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21998 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22000 # The linker can only warn and ignore the option if not recognized
22001 # So say no if there are warnings
22002 if test -s conftest.err; then
22003 # Append any errors to the config.log.
22004 cat conftest.err 1>&5
22005 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22007 if diff conftest.exp conftest.er2 >/dev/null; then
22008 lt_prog_compiler_static_works_F77=yes
22011 lt_prog_compiler_static_works_F77=yes
22015 LDFLAGS="$save_LDFLAGS"
22018 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
22019 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
22021 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
22024 lt_prog_compiler_static_F77=
22028 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22029 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22030 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 lt_cv_prog_compiler_c_o_F77=no
22034 $rm -r conftest 2>/dev/null
22038 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22040 lt_compiler_flag="-o out/conftest2.$ac_objext"
22041 # Insert the option either (1) after the last *FLAGS variable, or
22042 # (2) before a word containing "conftest.", or (3) at the end.
22043 # Note that $ac_compile itself does not contain backslashes and begins
22044 # with a dollar sign (not a hyphen), so the echo should work correctly.
22045 lt_compile=`echo "$ac_compile" | $SED \
22046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22048 -e 's:$: $lt_compiler_flag:'`
22049 (eval echo "\"\$as_me:22049: $lt_compile\"" >&5)
22050 (eval "$lt_compile" 2>out/conftest.err)
22052 cat out/conftest.err >&5
22053 echo "$as_me:22053: \$? = $ac_status" >&5
22054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22056 # The compiler can only warn and ignore the option if not recognized
22057 # So say no if there are warnings
22058 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22061 lt_cv_prog_compiler_c_o_F77=yes
22066 # SGI C++ compiler will create directory out/ii_files/ for
22067 # template instantiation
22068 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22069 $rm out/* && rmdir out
22075 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22076 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22079 hard_links="nottested"
22080 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22081 # do not overwrite the value of need_locks provided by the user
22082 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22083 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22088 ln conftest.a conftest.b 2>&5 || hard_links=no
22089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22090 { echo "$as_me:$LINENO: result: $hard_links" >&5
22091 echo "${ECHO_T}$hard_links" >&6; }
22092 if test "$hard_links" = no; then
22093 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22094 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22101 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22102 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22105 allow_undefined_flag_F77=
22106 enable_shared_with_static_runtimes_F77=no
22108 archive_expsym_cmds_F77=
22109 old_archive_From_new_cmds_F77=
22110 old_archive_from_expsyms_cmds_F77=
22111 export_dynamic_flag_spec_F77=
22112 whole_archive_flag_spec_F77=
22113 thread_safe_flag_spec_F77=
22114 hardcode_libdir_flag_spec_F77=
22115 hardcode_libdir_flag_spec_ld_F77=
22116 hardcode_libdir_separator_F77=
22117 hardcode_direct_F77=no
22118 hardcode_minus_L_F77=no
22119 hardcode_shlibpath_var_F77=unsupported
22120 link_all_deplibs_F77=unknown
22121 hardcode_automatic_F77=no
22123 module_expsym_cmds_F77=
22124 always_export_symbols_F77=no
22125 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22126 # include_expsyms should be a list of space-separated symbols to be *always*
22127 # included in the symbol list
22128 include_expsyms_F77=
22129 # exclude_expsyms can be an extended regexp of symbols to exclude
22130 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22132 # as well as any symbol that contains `d'.
22133 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22135 # platforms (ab)use it in PIC code, but their linkers get confused if
22136 # the symbol is explicitly referenced. Since portable code cannot
22137 # rely on this symbol name, it's probably fine to never include it in
22138 # preloaded symbol tables.
22139 extract_expsyms_cmds=
22140 # Just being paranoid about ensuring that cc_basename is set.
22141 for cc_temp in $compiler""; do
22143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22149 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22152 cygwin* | mingw* | pw32*)
22153 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22154 # When not using gcc, we currently assume that we are using
22155 # Microsoft Visual C++.
22156 if test "$GCC" != yes; then
22161 # we just hope/assume this is gcc and not c89 (= MSVC++)
22170 if test "$with_gnu_ld" = yes; then
22171 # If archive_cmds runs LD, not CC, wlarc should be empty
22174 # Set some defaults for GNU ld with shared library support. These
22175 # are reset later if shared libraries are not supported. Putting them
22176 # here allows them to be overridden if necessary.
22177 runpath_var=LD_RUN_PATH
22178 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22179 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22180 # ancient GNU ld didn't support --whole-archive et. al.
22181 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22182 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22184 whole_archive_flag_spec_F77=
22186 supports_anon_versioning=no
22187 case `$LD -v 2>/dev/null` in
22188 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22189 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22190 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22191 *\ 2.11.*) ;; # other 2.11 versions
22192 *) supports_anon_versioning=yes ;;
22195 # See if GNU ld supports shared libraries.
22197 aix3* | aix4* | aix5*)
22198 # On AIX/PPC, the GNU linker is very broken
22199 if test "$host_cpu" != ia64; then
22203 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22204 *** to be unable to reliably create shared libraries on AIX.
22205 *** Therefore, libtool is disabling shared libraries support. If you
22206 *** really care for shared libraries, you may want to modify your PATH
22207 *** so that a non-GNU linker is found, and then restart.
22214 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)'
22215 hardcode_libdir_flag_spec_F77='-L$libdir'
22216 hardcode_minus_L_F77=yes
22218 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22219 # that the semantics of dynamic libraries on AmigaOS, at least up
22220 # to version 4, is to share data among multiple programs linked
22221 # with the same dynamic library. Since this doesn't match the
22222 # behavior of shared libraries on other platforms, we can't use
22228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22229 allow_undefined_flag_F77=unsupported
22230 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22231 # support --undefined. This deserves some investigation. FIXME
22232 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22238 cygwin* | mingw* | pw32*)
22239 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22240 # as there is no search path for DLLs.
22241 hardcode_libdir_flag_spec_F77='-L$libdir'
22242 allow_undefined_flag_F77=unsupported
22243 always_export_symbols_F77=no
22244 enable_shared_with_static_runtimes_F77=yes
22245 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22247 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22248 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22249 # If the export-symbols file already is a .def file (1st line
22250 # is EXPORTS), use it as is; otherwise, prepend...
22251 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22252 cp $export_symbols $output_objdir/$soname.def;
22254 echo EXPORTS > $output_objdir/$soname.def;
22255 cat $export_symbols >> $output_objdir/$soname.def;
22257 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22264 hardcode_direct_F77=no
22265 hardcode_shlibpath_var_F77=no
22266 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22267 export_dynamic_flag_spec_F77='${wl}-E'
22268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22269 # Instead, shared libraries are loaded at an image base (0x10000000 by
22270 # default) and relocated if they conflict, which is a slow very memory
22271 # consuming and fragmenting process. To avoid this, we pick a random,
22272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22274 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'
22275 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'
22279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22281 case $cc_basename,$host_cpu in
22282 pgcc*) # Portland Group C compiler
22283 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'
22284 tmp_addflag=' $pic_flag'
22286 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22287 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'
22288 tmp_addflag=' $pic_flag -Mnomain' ;;
22289 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22290 tmp_addflag=' -i_dynamic' ;;
22291 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22292 tmp_addflag=' -i_dynamic -nofor_main' ;;
22293 ifc* | ifort*) # Intel Fortran compiler
22294 tmp_addflag=' -nofor_main' ;;
22296 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22298 if test $supports_anon_versioning = yes; then
22299 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22301 $echo "local: *; };" >> $output_objdir/$libname.ver~
22302 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22311 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22314 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22315 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22320 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22324 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22325 *** create shared libraries on Solaris systems. Therefore, libtool
22326 *** is disabling shared libraries support. We urge you to upgrade GNU
22327 *** binutils to release 2.9.1 or newer. Another option is to modify
22328 *** your PATH or compiler configuration so that the native linker is
22329 *** used, and then restart.
22332 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22333 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22334 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22341 case `$LD -v 2>&1` in
22342 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22346 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22347 *** reliably create shared libraries on SCO systems. Therefore, libtool
22348 *** is disabling shared libraries support. We urge you to upgrade GNU
22349 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22350 *** your PATH or compiler configuration so that the native linker is
22351 *** used, and then restart.
22356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22357 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22358 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22359 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22368 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22370 hardcode_direct_F77=yes
22371 hardcode_shlibpath_var_F77=no
22375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22376 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22377 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22384 if test "$ld_shlibs_F77" = no; then
22386 hardcode_libdir_flag_spec_F77=
22387 export_dynamic_flag_spec_F77=
22388 whole_archive_flag_spec_F77=
22391 # PORTME fill in a description of your system's linker (not GNU ld)
22394 allow_undefined_flag_F77=unsupported
22395 always_export_symbols_F77=yes
22396 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'
22397 # Note: this linker hardcodes the directories in LIBPATH if there
22398 # are no directories specified by -L.
22399 hardcode_minus_L_F77=yes
22400 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22401 # Neither direct hardcoding nor static linking is supported with a
22403 hardcode_direct_F77=unsupported
22408 if test "$host_cpu" = ia64; then
22409 # On IA64, the linker does run time linking by default, so we don't
22410 # have to do anything special.
22411 aix_use_runtimelinking=no
22412 exp_sym_flag='-Bexport'
22415 # If we're using GNU nm, then we don't want the "-C" option.
22416 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22417 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22418 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'
22420 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'
22422 aix_use_runtimelinking=no
22424 # Test if we are trying to use run time linking or normal
22425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22426 # need to do runtime linking.
22427 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22428 for ld_flag in $LDFLAGS; do
22429 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22430 aix_use_runtimelinking=yes
22437 exp_sym_flag='-bexport'
22438 no_entry_flag='-bnoentry'
22441 # When large executables or shared objects are built, AIX ld can
22442 # have problems creating the table of contents. If linking a library
22443 # or program results in "error TOC overflow" add -mminimal-toc to
22444 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22445 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22447 archive_cmds_F77=''
22448 hardcode_direct_F77=yes
22449 hardcode_libdir_separator_F77=':'
22450 link_all_deplibs_F77=yes
22452 if test "$GCC" = yes; then
22453 case $host_os in aix4.[012]|aix4.[012].*)
22454 # We only want to do this on AIX 4.2 and lower, the check
22455 # below for broken collect2 doesn't work under 4.3+
22456 collect2name=`${CC} -print-prog-name=collect2`
22457 if test -f "$collect2name" && \
22458 strings "$collect2name" | grep resolve_lib_name >/dev/null
22460 # We have reworked collect2
22461 hardcode_direct_F77=yes
22463 # We have old collect2
22464 hardcode_direct_F77=unsupported
22465 # It fails to find uninstalled libraries when the uninstalled
22466 # path is not listed in the libpath. Setting hardcode_minus_L
22467 # to unsupported forces relinking
22468 hardcode_minus_L_F77=yes
22469 hardcode_libdir_flag_spec_F77='-L$libdir'
22470 hardcode_libdir_separator_F77=
22474 shared_flag='-shared'
22475 if test "$aix_use_runtimelinking" = yes; then
22476 shared_flag="$shared_flag "'${wl}-G'
22480 if test "$host_cpu" = ia64; then
22481 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22482 # chokes on -Wl,-G. The following line is correct:
22485 if test "$aix_use_runtimelinking" = yes; then
22486 shared_flag='${wl}-G'
22488 shared_flag='${wl}-bM:SRE'
22493 # It seems that -bexpall does not export symbols beginning with
22494 # underscore (_), so it is better to generate a list of symbols to export.
22495 always_export_symbols_F77=yes
22496 if test "$aix_use_runtimelinking" = yes; then
22497 # Warning - without using the other runtime loading flags (-brtl),
22498 # -berok will link without error, but may produce a broken library.
22499 allow_undefined_flag_F77='-berok'
22500 # Determine the default libpath from the value encoded in an empty executable.
22501 cat >conftest.$ac_ext <<_ACEOF
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (ac_try="$ac_link"
22508 case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_link") 2>conftest.er1
22515 grep -v '^ *+' conftest.er1 >conftest.err
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } &&
22520 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22521 { (case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_try") 2>&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; } &&
22530 { ac_try='test -s conftest$ac_exeext'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }; then
22541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22543 # Check for a 64-bit object if we didn't find anything.
22544 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; }
22547 echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22553 rm -f core conftest.err conftest.$ac_objext \
22554 conftest$ac_exeext conftest.$ac_ext
22555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22557 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22558 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"
22560 if test "$host_cpu" = ia64; then
22561 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22562 allow_undefined_flag_F77="-z nodefs"
22563 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"
22565 # Determine the default libpath from the value encoded in an empty executable.
22566 cat >conftest.$ac_ext <<_ACEOF
22571 rm -f conftest.$ac_objext conftest$ac_exeext
22572 if { (ac_try="$ac_link"
22573 case "(($ac_try" in
22574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22575 *) ac_try_echo=$ac_try;;
22577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22578 (eval "$ac_link") 2>conftest.er1
22580 grep -v '^ *+' conftest.er1 >conftest.err
22582 cat conftest.err >&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); } &&
22585 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22586 { (case "(($ac_try" in
22587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588 *) ac_try_echo=$ac_try;;
22590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591 (eval "$ac_try") 2>&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); }; } &&
22595 { ac_try='test -s conftest$ac_exeext'
22596 { (case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22601 (eval "$ac_try") 2>&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; }; then
22606 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22608 # Check for a 64-bit object if we didn't find anything.
22609 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; }
22612 echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22618 rm -f core conftest.err conftest.$ac_objext \
22619 conftest$ac_exeext conftest.$ac_ext
22620 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22622 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22623 # Warning - without using the other run time loading flags,
22624 # -berok will link without error, but may produce a broken library.
22625 no_undefined_flag_F77=' ${wl}-bernotok'
22626 allow_undefined_flag_F77=' ${wl}-berok'
22627 # Exported symbols can be pulled into shared objects from archives
22628 whole_archive_flag_spec_F77='$convenience'
22629 archive_cmds_need_lc_F77=yes
22630 # This is similar to how AIX traditionally builds its shared libraries.
22631 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'
22637 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)'
22638 hardcode_libdir_flag_spec_F77='-L$libdir'
22639 hardcode_minus_L_F77=yes
22640 # see comment about different semantics on the GNU ld section
22645 export_dynamic_flag_spec_F77=-rdynamic
22648 cygwin* | mingw* | pw32*)
22649 # When not using gcc, we currently assume that we are using
22650 # Microsoft Visual C++.
22651 # hardcode_libdir_flag_spec is actually meaningless, as there is
22652 # no search path for DLLs.
22653 hardcode_libdir_flag_spec_F77=' '
22654 allow_undefined_flag_F77=unsupported
22655 # Tell ltmain to make .lib files, not .a files.
22657 # Tell ltmain to make .dll files, not .so files.
22659 # FIXME: Setting linknames here is a bad hack.
22660 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22661 # The linker will automatically build a .lib file if we build a DLL.
22662 old_archive_From_new_cmds_F77='true'
22663 # FIXME: Should let the user specify the lib program.
22664 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22665 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22666 enable_shared_with_static_runtimes_F77=yes
22669 darwin* | rhapsody*)
22671 rhapsody* | darwin1.[012])
22672 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22675 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22676 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22678 case ${MACOSX_DEPLOYMENT_TARGET} in
22680 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22683 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22689 archive_cmds_need_lc_F77=no
22690 hardcode_direct_F77=no
22691 hardcode_automatic_F77=yes
22692 hardcode_shlibpath_var_F77=unsupported
22693 whole_archive_flag_spec_F77=''
22694 link_all_deplibs_F77=yes
22695 if test "$GCC" = yes ; then
22696 output_verbose_link_cmd='echo'
22697 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22698 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22699 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22700 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}'
22701 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}'
22703 case $cc_basename in
22705 output_verbose_link_cmd='echo'
22706 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22707 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22708 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22709 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}'
22710 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}'
22720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22721 hardcode_libdir_flag_spec_F77='-L$libdir'
22722 hardcode_shlibpath_var_F77=no
22729 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22730 # support. Future versions do this automatically, but an explicit c++rt0.o
22731 # does not break anything, and helps significantly (at the cost of a little
22734 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22735 hardcode_libdir_flag_spec_F77='-R$libdir'
22736 hardcode_direct_F77=yes
22737 hardcode_shlibpath_var_F77=no
22740 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22742 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22743 hardcode_direct_F77=yes
22744 hardcode_minus_L_F77=yes
22745 hardcode_shlibpath_var_F77=no
22748 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22749 freebsd* | kfreebsd*-gnu | dragonfly*)
22750 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22751 hardcode_libdir_flag_spec_F77='-R$libdir'
22752 hardcode_direct_F77=yes
22753 hardcode_shlibpath_var_F77=no
22757 if test "$GCC" = yes; then
22758 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'
22760 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'
22762 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22763 hardcode_libdir_separator_F77=:
22764 hardcode_direct_F77=yes
22766 # hardcode_minus_L: Not really in the search PATH,
22767 # but as the default location of the library.
22768 hardcode_minus_L_F77=yes
22769 export_dynamic_flag_spec_F77='${wl}-E'
22773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22774 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22776 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22778 if test "$with_gnu_ld" = no; then
22779 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22780 hardcode_libdir_separator_F77=:
22782 hardcode_direct_F77=yes
22783 export_dynamic_flag_spec_F77='${wl}-E'
22785 # hardcode_minus_L: Not really in the search PATH,
22786 # but as the default location of the library.
22787 hardcode_minus_L_F77=yes
22792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22795 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22798 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22801 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22807 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22810 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22813 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22817 if test "$with_gnu_ld" = no; then
22818 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22819 hardcode_libdir_separator_F77=:
22823 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22824 hardcode_direct_F77=no
22825 hardcode_shlibpath_var_F77=no
22828 hardcode_direct_F77=yes
22829 export_dynamic_flag_spec_F77='${wl}-E'
22831 # hardcode_minus_L: Not really in the search PATH,
22832 # but as the default location of the library.
22833 hardcode_minus_L_F77=yes
22839 irix5* | irix6* | nonstopux*)
22840 if test "$GCC" = yes; then
22841 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'
22843 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'
22844 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22846 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22847 hardcode_libdir_separator_F77=:
22848 link_all_deplibs_F77=yes
22852 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22853 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22855 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22857 hardcode_libdir_flag_spec_F77='-R$libdir'
22858 hardcode_direct_F77=yes
22859 hardcode_shlibpath_var_F77=no
22863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22864 hardcode_direct_F77=yes
22865 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22866 hardcode_libdir_separator_F77=:
22867 hardcode_shlibpath_var_F77=no
22871 hardcode_direct_F77=yes
22872 hardcode_shlibpath_var_F77=no
22873 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22874 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22875 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22876 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22877 export_dynamic_flag_spec_F77='${wl}-E'
22880 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22881 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22882 hardcode_libdir_flag_spec_F77='-R$libdir'
22885 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22886 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22893 hardcode_libdir_flag_spec_F77='-L$libdir'
22894 hardcode_minus_L_F77=yes
22895 allow_undefined_flag_F77=unsupported
22896 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'
22897 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22901 if test "$GCC" = yes; then
22902 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22903 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'
22905 allow_undefined_flag_F77=' -expect_unresolved \*'
22906 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'
22908 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22909 hardcode_libdir_separator_F77=:
22912 osf4* | osf5*) # as osf3* with the addition of -msym flag
22913 if test "$GCC" = yes; then
22914 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22915 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'
22916 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22918 allow_undefined_flag_F77=' -expect_unresolved \*'
22919 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'
22920 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~
22921 $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'
22923 # Both c and cxx compiler support -rpath directly
22924 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22926 hardcode_libdir_separator_F77=:
22930 no_undefined_flag_F77=' -z text'
22931 if test "$GCC" = yes; then
22933 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22934 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22935 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22938 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22939 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22942 hardcode_libdir_flag_spec_F77='-R$libdir'
22943 hardcode_shlibpath_var_F77=no
22945 solaris2.[0-5] | solaris2.[0-5].*) ;;
22947 # The compiler driver will combine linker options so we
22948 # cannot just pass the convience library names through
22949 # without $wl, iff we do not link with $LD.
22950 # Luckily, gcc supports the same syntax we need for Sun Studio.
22951 # Supported since Solaris 2.6 (maybe 2.5.1?)
22954 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22956 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' ;;
22959 link_all_deplibs_F77=yes
22963 if test "x$host_vendor" = xsequent; then
22964 # Use $CC to link under sequent, because it throws in some extra .o
22965 # files that make .init and .fini sections work.
22966 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22968 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22970 hardcode_libdir_flag_spec_F77='-L$libdir'
22971 hardcode_direct_F77=yes
22972 hardcode_minus_L_F77=yes
22973 hardcode_shlibpath_var_F77=no
22977 case $host_vendor in
22979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22980 hardcode_direct_F77=yes # is this really true???
22983 ## LD is ld it makes a PLAMLIB
22984 ## CC just makes a GrossModule.
22985 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22986 reload_cmds_F77='$CC -r -o $output$reload_objs'
22987 hardcode_direct_F77=no
22990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22991 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22994 runpath_var='LD_RUN_PATH'
22995 hardcode_shlibpath_var_F77=no
22999 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23000 hardcode_shlibpath_var_F77=no
23001 export_dynamic_flag_spec_F77='-Bexport'
23005 if test -d /usr/nec; then
23006 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23007 hardcode_shlibpath_var_F77=no
23008 runpath_var=LD_RUN_PATH
23009 hardcode_runpath_var=yes
23014 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23015 no_undefined_flag_F77='${wl}-z,text'
23016 archive_cmds_need_lc_F77=no
23017 hardcode_shlibpath_var_F77=no
23018 runpath_var='LD_RUN_PATH'
23020 if test "$GCC" = yes; then
23021 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23022 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23024 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23025 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23029 sysv5* | sco3.2v5* | sco5v6*)
23030 # Note: We can NOT use -z defs as we might desire, because we do not
23031 # link with -lc, and that would cause any symbols used from libc to
23032 # always be unresolved, which means just about no library would
23033 # ever link correctly. If we're not using GNU ld we use -z text
23034 # though, which does catch some bad symbols but isn't as heavy-handed
23036 no_undefined_flag_F77='${wl}-z,text'
23037 allow_undefined_flag_F77='${wl}-z,nodefs'
23038 archive_cmds_need_lc_F77=no
23039 hardcode_shlibpath_var_F77=no
23040 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23041 hardcode_libdir_separator_F77=':'
23042 link_all_deplibs_F77=yes
23043 export_dynamic_flag_spec_F77='${wl}-Bexport'
23044 runpath_var='LD_RUN_PATH'
23046 if test "$GCC" = yes; then
23047 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23048 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23050 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23051 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23056 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23057 hardcode_libdir_flag_spec_F77='-L$libdir'
23058 hardcode_shlibpath_var_F77=no
23067 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23068 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23069 test "$ld_shlibs_F77" = no && can_build_shared=no
23072 # Do we need to explicitly link libc?
23074 case "x$archive_cmds_need_lc_F77" in
23076 # Assume -lc should be added
23077 archive_cmds_need_lc_F77=yes
23079 if test "$enable_shared" = yes && test "$GCC" = yes; then
23080 case $archive_cmds_F77 in
23082 # FIXME: we may have to deal with multi-command sequences.
23085 # Test whether the compiler implicitly links with -lc since on some
23086 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23087 # to ld, don't add -lc before -lgcc.
23088 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23089 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23091 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23094 (eval $ac_compile) 2>&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } 2>conftest.err; then
23100 libobjs=conftest.$ac_objext
23102 wl=$lt_prog_compiler_wl_F77
23103 pic_flag=$lt_prog_compiler_pic_F77
23109 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23110 allow_undefined_flag_F77=
23111 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23112 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); }
23117 archive_cmds_need_lc_F77=no
23119 archive_cmds_need_lc_F77=yes
23121 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23123 cat conftest.err 1>&5
23126 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23127 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23134 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23135 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23136 library_names_spec=
23137 libname_spec='lib$name'
23141 postuninstall_cmds=
23145 shlibpath_overrides_runpath=unknown
23147 dynamic_linker="$host_os ld.so"
23148 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23149 if test "$GCC" = yes; then
23150 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23151 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23152 # if the path contains ";" then we assume it to be the separator
23153 # otherwise default to the standard path separator (i.e. ":") - it is
23154 # assumed that no part of a normal pathname contains ";" but that should
23155 # okay in the real world where ";" in dirpaths is itself problematic.
23156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23158 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23161 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23163 need_lib_prefix=unknown
23164 hardcode_into_libs=no
23166 # when you set need_version to no, make sure it does not cause -set_version
23167 # flags to be left without arguments
23168 need_version=unknown
23173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23174 shlibpath_var=LIBPATH
23176 # AIX 3 has no versioning support, so we append a major version to the name.
23177 soname_spec='${libname}${release}${shared_ext}$major'
23184 hardcode_into_libs=yes
23185 if test "$host_cpu" = ia64; then
23186 # AIX 5 supports IA64
23187 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23188 shlibpath_var=LD_LIBRARY_PATH
23190 # With GCC up to 2.95.x, collect2 would create an import file
23191 # for dependence libraries. The import file would start with
23192 # the line `#! .'. This would cause the generated library to
23193 # depend on `.', always an invalid library. This was fixed in
23194 # development snapshots of GCC prior to 3.0.
23196 aix4 | aix4.[01] | aix4.[01].*)
23197 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23199 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23202 can_build_shared=no
23206 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23207 # soname into executable. Probably we can add versioning support to
23208 # collect2, so additional links can be useful in future.
23209 if test "$aix_use_runtimelinking" = yes; then
23210 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23211 # instead of lib<name>.a to let people know that these are not
23212 # typical AIX shared libraries.
23213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23215 # We preserve .a as extension for shared libraries through AIX4.2
23216 # and later when we are not doing run time linking.
23217 library_names_spec='${libname}${release}.a $libname.a'
23218 soname_spec='${libname}${release}${shared_ext}$major'
23220 shlibpath_var=LIBPATH
23225 library_names_spec='$libname.ixlibrary $libname.a'
23226 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23227 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'
23231 library_names_spec='${libname}${shared_ext}'
23232 dynamic_linker="$host_os ld.so"
23233 shlibpath_var=LIBRARY_PATH
23239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23240 soname_spec='${libname}${release}${shared_ext}$major'
23241 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23242 shlibpath_var=LD_LIBRARY_PATH
23243 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23244 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23245 # the default ld.so.conf also contains /usr/contrib/lib and
23246 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23247 # libtool to hard-code these into programs
23250 cygwin* | mingw* | pw32*)
23251 version_type=windows
23256 case $GCC,$host_os in
23257 yes,cygwin* | yes,mingw* | yes,pw32*)
23258 library_names_spec='$libname.dll.a'
23259 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23260 postinstall_cmds='base_file=`basename \${file}`~
23261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23262 dldir=$destdir/`dirname \$dlpath`~
23263 test -d \$dldir || mkdir -p \$dldir~
23264 $install_prog $dir/$dlname \$dldir/$dlname~
23265 chmod a+x \$dldir/$dlname'
23266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23267 dlpath=$dir/\$dldll~
23269 shlibpath_overrides_runpath=yes
23273 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23274 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23275 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23278 # MinGW DLLs use traditional 'lib' prefix
23279 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23280 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23281 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23282 # It is most probably a Windows format PATH printed by
23283 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23284 # path with ; separators, and with drive letters. We can handle the
23285 # drive letters (cygwin fileutils understands them), so leave them,
23286 # especially as we might pass files found there to a mingw objdump,
23287 # which wouldn't understand a cygwinified path. Ahh.
23288 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23294 # pw32 DLLs use 'pw' prefix rather than 'lib'
23295 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23301 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23304 dynamic_linker='Win32 ld.exe'
23305 # FIXME: first we should search . and the directory the executable is in
23309 darwin* | rhapsody*)
23310 dynamic_linker="$host_os dyld"
23311 version_type=darwin
23314 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23315 soname_spec='${libname}${release}${major}$shared_ext'
23316 shlibpath_overrides_runpath=yes
23317 shlibpath_var=DYLD_LIBRARY_PATH
23318 shrext_cmds='.dylib'
23319 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23320 if test "$GCC" = yes; then
23321 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"`
23323 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23333 soname_spec='${libname}${release}${shared_ext}$major'
23334 shlibpath_var=LD_LIBRARY_PATH
23345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23346 soname_spec='${libname}${release}${shared_ext}$major'
23347 shlibpath_var=LD_LIBRARY_PATH
23348 shlibpath_overrides_runpath=no
23349 hardcode_into_libs=yes
23350 dynamic_linker='GNU ld.so'
23353 freebsd* | dragonfly*)
23354 # DragonFly does not have aout. When/if they implement a new
23355 # versioning mechanism, adjust this.
23356 if test -x /usr/bin/objformat; then
23357 objformat=`/usr/bin/objformat`
23360 freebsd[123]*) objformat=aout ;;
23361 *) objformat=elf ;;
23364 version_type=freebsd-$objformat
23365 case $version_type in
23367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23376 shlibpath_var=LD_LIBRARY_PATH
23379 shlibpath_overrides_runpath=yes
23381 freebsd3.[01]* | freebsdelf3.[01]*)
23382 shlibpath_overrides_runpath=yes
23383 hardcode_into_libs=yes
23385 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23386 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23387 shlibpath_overrides_runpath=no
23388 hardcode_into_libs=yes
23390 freebsd*) # from 4.6 on
23391 shlibpath_overrides_runpath=yes
23392 hardcode_into_libs=yes
23401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23402 soname_spec='${libname}${release}${shared_ext}$major'
23403 shlibpath_var=LD_LIBRARY_PATH
23404 hardcode_into_libs=yes
23407 hpux9* | hpux10* | hpux11*)
23408 # Give a soname corresponding to the major version so that dld.sl refuses to
23409 # link against other versions.
23416 hardcode_into_libs=yes
23417 dynamic_linker="$host_os dld.so"
23418 shlibpath_var=LD_LIBRARY_PATH
23419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23421 soname_spec='${libname}${release}${shared_ext}$major'
23422 if test "X$HPUX_IA64_MODE" = X32; then
23423 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23425 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23431 hardcode_into_libs=yes
23432 dynamic_linker="$host_os dld.sl"
23433 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23436 soname_spec='${libname}${release}${shared_ext}$major'
23437 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23442 dynamic_linker="$host_os dld.sl"
23443 shlibpath_var=SHLIB_PATH
23444 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23446 soname_spec='${libname}${release}${shared_ext}$major'
23449 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23450 postinstall_cmds='chmod 555 $lib'
23457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23458 soname_spec='${libname}${release}${shared_ext}$major'
23459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23460 shlibpath_var=LD_LIBRARY_PATH
23461 shlibpath_overrides_runpath=no
23462 hardcode_into_libs=yes
23465 irix5* | irix6* | nonstopux*)
23467 nonstopux*) version_type=nonstopux ;;
23469 if test "$lt_cv_prog_gnu_ld" = yes; then
23477 soname_spec='${libname}${release}${shared_ext}$major'
23478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23480 irix5* | nonstopux*)
23481 libsuff= shlibsuff=
23484 case $LD in # libtool.m4 will add one of these switches to LD
23485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23486 libsuff= shlibsuff= libmagic=32-bit;;
23487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23488 libsuff=32 shlibsuff=N32 libmagic=N32;;
23489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23491 *) libsuff= shlibsuff= libmagic=never-match;;
23495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23496 shlibpath_overrides_runpath=no
23497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23499 hardcode_into_libs=yes
23502 # No shared lib support for Linux oldld, aout, or coff.
23503 linux*oldld* | linux*aout* | linux*coff*)
23507 # This must be Linux ELF.
23512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23513 soname_spec='${libname}${release}${shared_ext}$major'
23514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23515 shlibpath_var=LD_LIBRARY_PATH
23516 shlibpath_overrides_runpath=no
23517 # This implies no fast_install, which is unacceptable.
23518 # Some rework will be needed to allow for fast_install
23519 # before this can be enabled.
23520 hardcode_into_libs=yes
23522 # Append ld.so.conf contents to the search path
23523 if test -f /etc/ld.so.conf; then
23524 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' ' '`
23525 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23528 # We used to test for /lib/ld.so.1 and disable shared libraries on
23529 # powerpc, because MkLinux only supported shared libraries with the
23530 # GNU dynamic linker. Since this was broken with cross compilers,
23531 # most powerpc-linux boxes support dynamic linking these days and
23532 # people can always --disable-shared, the test was removed, and we
23533 # assume the GNU/Linux dynamic linker is in use.
23534 dynamic_linker='GNU/Linux ld.so'
23541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23542 soname_spec='${libname}${release}${shared_ext}$major'
23543 shlibpath_var=LD_LIBRARY_PATH
23544 shlibpath_overrides_runpath=no
23545 hardcode_into_libs=yes
23546 dynamic_linker='GNU ld.so'
23553 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23556 dynamic_linker='NetBSD (a.out) ld.so'
23558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23559 soname_spec='${libname}${release}${shared_ext}$major'
23560 dynamic_linker='NetBSD ld.elf_so'
23562 shlibpath_var=LD_LIBRARY_PATH
23563 shlibpath_overrides_runpath=yes
23564 hardcode_into_libs=yes
23569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23570 shlibpath_var=LD_LIBRARY_PATH
23571 shlibpath_overrides_runpath=yes
23578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23579 soname_spec='${libname}${release}${shared_ext}$major'
23580 shlibpath_var=LD_LIBRARY_PATH
23581 shlibpath_overrides_runpath=yes
23586 sys_lib_dlsearch_path_spec="/usr/lib"
23588 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23590 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23591 *) need_version=no ;;
23593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23595 shlibpath_var=LD_LIBRARY_PATH
23596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23598 openbsd2.[89] | openbsd2.[89].*)
23599 shlibpath_overrides_runpath=no
23602 shlibpath_overrides_runpath=yes
23606 shlibpath_overrides_runpath=yes
23611 libname_spec='$name'
23614 library_names_spec='$libname${shared_ext} $libname.a'
23615 dynamic_linker='OS/2 ld.exe'
23616 shlibpath_var=LIBPATH
23619 osf3* | osf4* | osf5*)
23623 soname_spec='${libname}${release}${shared_ext}$major'
23624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23625 shlibpath_var=LD_LIBRARY_PATH
23626 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23627 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23635 soname_spec='${libname}${release}${shared_ext}$major'
23636 shlibpath_var=LD_LIBRARY_PATH
23637 shlibpath_overrides_runpath=yes
23638 hardcode_into_libs=yes
23639 # ldd complains unless libraries are executable
23640 postinstall_cmds='chmod +x $lib'
23645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23647 shlibpath_var=LD_LIBRARY_PATH
23648 shlibpath_overrides_runpath=yes
23649 if test "$with_gnu_ld" = yes; then
23657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23658 soname_spec='${libname}${release}${shared_ext}$major'
23659 shlibpath_var=LD_LIBRARY_PATH
23660 case $host_vendor in
23662 shlibpath_overrides_runpath=no
23664 export_dynamic_flag_spec='${wl}-Blargedynsym'
23665 runpath_var=LD_RUN_PATH
23673 shlibpath_overrides_runpath=no
23674 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23680 if test -d /usr/nec ;then
23682 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23683 soname_spec='$libname${shared_ext}.$major'
23684 shlibpath_var=LD_LIBRARY_PATH
23688 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23689 version_type=freebsd-elf
23692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23693 soname_spec='${libname}${release}${shared_ext}$major'
23694 shlibpath_var=LD_LIBRARY_PATH
23695 hardcode_into_libs=yes
23696 if test "$with_gnu_ld" = yes; then
23697 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23698 shlibpath_overrides_runpath=no
23700 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23701 shlibpath_overrides_runpath=yes
23704 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23708 sys_lib_dlsearch_path_spec='/usr/lib'
23713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23714 soname_spec='${libname}${release}${shared_ext}$major'
23715 shlibpath_var=LD_LIBRARY_PATH
23722 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23723 echo "${ECHO_T}$dynamic_linker" >&6; }
23724 test "$dynamic_linker" = no && can_build_shared=no
23726 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23727 if test "$GCC" = yes; then
23728 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23731 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23732 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23733 hardcode_action_F77=
23734 if test -n "$hardcode_libdir_flag_spec_F77" || \
23735 test -n "$runpath_var_F77" || \
23736 test "X$hardcode_automatic_F77" = "Xyes" ; then
23738 # We can hardcode non-existant directories.
23739 if test "$hardcode_direct_F77" != no &&
23740 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23741 # have to relink, otherwise we might link with an installed library
23742 # when we should be linking with a yet-to-be-installed one
23743 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23744 test "$hardcode_minus_L_F77" != no; then
23745 # Linking always hardcodes the temporary library directory.
23746 hardcode_action_F77=relink
23748 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23749 hardcode_action_F77=immediate
23752 # We cannot hardcode anything, or else we can only hardcode existing
23754 hardcode_action_F77=unsupported
23756 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23757 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23759 if test "$hardcode_action_F77" = relink; then
23760 # Fast installation is not supported
23761 enable_fast_install=no
23762 elif test "$shlibpath_overrides_runpath" = yes ||
23763 test "$enable_shared" = no; then
23764 # Fast installation is not necessary
23765 enable_fast_install=needless
23769 # The else clause should only fire when bootstrapping the
23770 # libtool distribution, otherwise you forgot to ship ltmain.sh
23771 # with your package, and you will get complaints that there are
23772 # no rules to generate ltmain.sh.
23773 if test -f "$ltmain"; then
23774 # See if we are running on zsh, and set the options which allow our commands through
23775 # without removal of \ escapes.
23776 if test -n "${ZSH_VERSION+set}" ; then
23777 setopt NO_GLOB_SUBST
23779 # Now quote all the things that may contain metacharacters while being
23780 # careful not to overquote the AC_SUBSTed values. We take copies of the
23781 # variables and quote the copies for generation of the libtool script.
23782 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23784 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23785 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23786 deplibs_check_method reload_flag reload_cmds need_locks \
23787 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23788 lt_cv_sys_global_symbol_to_c_name_address \
23789 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23790 old_postinstall_cmds old_postuninstall_cmds \
23794 lt_prog_compiler_wl_F77 \
23795 lt_prog_compiler_pic_F77 \
23796 lt_prog_compiler_static_F77 \
23797 lt_prog_compiler_no_builtin_flag_F77 \
23798 export_dynamic_flag_spec_F77 \
23799 thread_safe_flag_spec_F77 \
23800 whole_archive_flag_spec_F77 \
23801 enable_shared_with_static_runtimes_F77 \
23802 old_archive_cmds_F77 \
23803 old_archive_from_new_cmds_F77 \
23804 predep_objects_F77 \
23805 postdep_objects_F77 \
23808 compiler_lib_search_path_F77 \
23810 archive_expsym_cmds_F77 \
23811 postinstall_cmds_F77 \
23812 postuninstall_cmds_F77 \
23813 old_archive_from_expsyms_cmds_F77 \
23814 allow_undefined_flag_F77 \
23815 no_undefined_flag_F77 \
23816 export_symbols_cmds_F77 \
23817 hardcode_libdir_flag_spec_F77 \
23818 hardcode_libdir_flag_spec_ld_F77 \
23819 hardcode_libdir_separator_F77 \
23820 hardcode_automatic_F77 \
23822 module_expsym_cmds_F77 \
23823 lt_cv_prog_compiler_c_o_F77 \
23824 exclude_expsyms_F77 \
23825 include_expsyms_F77; do
23828 old_archive_cmds_F77 | \
23829 old_archive_from_new_cmds_F77 | \
23830 archive_cmds_F77 | \
23831 archive_expsym_cmds_F77 | \
23832 module_cmds_F77 | \
23833 module_expsym_cmds_F77 | \
23834 old_archive_from_expsyms_cmds_F77 | \
23835 export_symbols_cmds_F77 | \
23836 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23837 postinstall_cmds | postuninstall_cmds | \
23838 old_postinstall_cmds | old_postuninstall_cmds | \
23839 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23840 # Double-quote double-evaled strings.
23841 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23844 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23850 *'\$0 --fallback-echo"')
23851 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23857 cat <<__EOF__ >> "$cfgfile"
23858 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23860 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23862 # Shell to use when invoking shell scripts.
23865 # Whether or not to build shared libraries.
23866 build_libtool_libs=$enable_shared
23868 # Whether or not to build static libraries.
23869 build_old_libs=$enable_static
23871 # Whether or not to add -lc for building shared libraries.
23872 build_libtool_need_lc=$archive_cmds_need_lc_F77
23874 # Whether or not to disallow shared libs when runtime libs are static
23875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23877 # Whether or not to optimize for fast installation.
23878 fast_install=$enable_fast_install
23881 host_alias=$host_alias
23885 # The build system.
23886 build_alias=$build_alias
23890 # An echo program that does not interpret backslashes.
23895 AR_FLAGS=$lt_AR_FLAGS
23900 # LTCC compiler flags.
23901 LTCFLAGS=$lt_LTCFLAGS
23903 # A language-specific compiler.
23904 CC=$lt_compiler_F77
23906 # Is the compiler the GNU C compiler?
23912 # The linker used to build libraries.
23915 # Whether we need hard or soft links.
23918 # A BSD-compatible nm program.
23921 # A symbol stripping program
23924 # Used to examine libraries when file_magic_cmd begins "file"
23925 MAGIC_CMD=$MAGIC_CMD
23927 # Used on cygwin: DLL creation program.
23930 # Used on cygwin: object dumper.
23933 # Used on cygwin: assembler.
23936 # The name of the directory that contains temporary libtool files.
23939 # How to create reloadable object files.
23940 reload_flag=$lt_reload_flag
23941 reload_cmds=$lt_reload_cmds
23943 # How to pass a linker flag through the compiler.
23944 wl=$lt_lt_prog_compiler_wl_F77
23946 # Object file suffix (normally "o").
23947 objext="$ac_objext"
23949 # Old archive suffix (normally "a").
23952 # Shared library suffix (normally ".so").
23953 shrext_cmds='$shrext_cmds'
23955 # Executable file suffix (normally "").
23958 # Additional compiler flags for building library objects.
23959 pic_flag=$lt_lt_prog_compiler_pic_F77
23962 # What is the maximum length of a command?
23963 max_cmd_len=$lt_cv_sys_max_cmd_len
23965 # Does compiler simultaneously support -c and -o options?
23966 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23968 # Must we lock files when doing compilation?
23969 need_locks=$lt_need_locks
23971 # Do we need the lib prefix for modules?
23972 need_lib_prefix=$need_lib_prefix
23974 # Do we need a version for libraries?
23975 need_version=$need_version
23977 # Whether dlopen is supported.
23978 dlopen_support=$enable_dlopen
23980 # Whether dlopen of programs is supported.
23981 dlopen_self=$enable_dlopen_self
23983 # Whether dlopen of statically linked programs is supported.
23984 dlopen_self_static=$enable_dlopen_self_static
23986 # Compiler flag to prevent dynamic linking.
23987 link_static_flag=$lt_lt_prog_compiler_static_F77
23989 # Compiler flag to turn off builtin functions.
23990 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23992 # Compiler flag to allow reflexive dlopens.
23993 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23995 # Compiler flag to generate shared objects directly from archives.
23996 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23998 # Compiler flag to generate thread-safe objects.
23999 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24001 # Library versioning type.
24002 version_type=$version_type
24004 # Format of library name prefix.
24005 libname_spec=$lt_libname_spec
24007 # List of archive names. First name is the real one, the rest are links.
24008 # The last name is the one that the linker finds with -lNAME.
24009 library_names_spec=$lt_library_names_spec
24011 # The coded name of the library, if different from the real name.
24012 soname_spec=$lt_soname_spec
24014 # Commands used to build and install an old-style archive.
24016 old_archive_cmds=$lt_old_archive_cmds_F77
24017 old_postinstall_cmds=$lt_old_postinstall_cmds
24018 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24020 # Create an old-style archive from a shared archive.
24021 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24023 # Create a temporary old-style archive to link instead of a shared archive.
24024 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24026 # Commands used to build and install a shared archive.
24027 archive_cmds=$lt_archive_cmds_F77
24028 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24029 postinstall_cmds=$lt_postinstall_cmds
24030 postuninstall_cmds=$lt_postuninstall_cmds
24032 # Commands used to build a loadable module (assumed same as above if empty)
24033 module_cmds=$lt_module_cmds_F77
24034 module_expsym_cmds=$lt_module_expsym_cmds_F77
24036 # Commands to strip libraries.
24037 old_striplib=$lt_old_striplib
24038 striplib=$lt_striplib
24040 # Dependencies to place before the objects being linked to create a
24042 predep_objects=$lt_predep_objects_F77
24044 # Dependencies to place after the objects being linked to create a
24046 postdep_objects=$lt_postdep_objects_F77
24048 # Dependencies to place before the objects being linked to create a
24050 predeps=$lt_predeps_F77
24052 # Dependencies to place after the objects being linked to create a
24054 postdeps=$lt_postdeps_F77
24056 # The library search path used internally by the compiler when linking
24057 # a shared library.
24058 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24060 # Method to check whether dependent libraries are shared objects.
24061 deplibs_check_method=$lt_deplibs_check_method
24063 # Command to use when deplibs_check_method == file_magic.
24064 file_magic_cmd=$lt_file_magic_cmd
24066 # Flag that allows shared libraries with undefined symbols to be built.
24067 allow_undefined_flag=$lt_allow_undefined_flag_F77
24069 # Flag that forces no undefined symbols.
24070 no_undefined_flag=$lt_no_undefined_flag_F77
24072 # Commands used to finish a libtool library installation in a directory.
24073 finish_cmds=$lt_finish_cmds
24075 # Same as above, but a single script fragment to be evaled but not shown.
24076 finish_eval=$lt_finish_eval
24078 # Take the output of nm and produce a listing of raw symbols and C names.
24079 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24081 # Transform the output of nm in a proper C declaration
24082 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24084 # Transform the output of nm in a C name address pair
24085 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24087 # This is the shared library runtime path variable.
24088 runpath_var=$runpath_var
24090 # This is the shared library path variable.
24091 shlibpath_var=$shlibpath_var
24093 # Is shlibpath searched before the hard-coded library search path?
24094 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24096 # How to hardcode a shared library path into an executable.
24097 hardcode_action=$hardcode_action_F77
24099 # Whether we should hardcode library paths into libraries.
24100 hardcode_into_libs=$hardcode_into_libs
24102 # Flag to hardcode \$libdir into a binary during linking.
24103 # This must work even if \$libdir does not exist.
24104 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24106 # If ld is used when linking, flag to hardcode \$libdir into
24107 # a binary during linking. This must work even if \$libdir does
24109 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24111 # Whether we need a single -rpath flag with a separated argument.
24112 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24114 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24115 # resulting binary.
24116 hardcode_direct=$hardcode_direct_F77
24118 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24119 # resulting binary.
24120 hardcode_minus_L=$hardcode_minus_L_F77
24122 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24123 # the resulting binary.
24124 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24126 # Set to yes if building a shared library automatically hardcodes DIR into the library
24127 # and all subsequent libraries and executables linked against it.
24128 hardcode_automatic=$hardcode_automatic_F77
24130 # Variables whose values should be saved in libtool wrapper scripts and
24131 # restored at relink time.
24132 variables_saved_for_relink="$variables_saved_for_relink"
24134 # Whether libtool must link a program against all its dependency libraries.
24135 link_all_deplibs=$link_all_deplibs_F77
24137 # Compile-time system search path for libraries
24138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24140 # Run-time system search path for libraries
24141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24143 # Fix the shell variable \$srcfile for the compiler.
24144 fix_srcfile_path="$fix_srcfile_path_F77"
24146 # Set to yes if exported symbols are required.
24147 always_export_symbols=$always_export_symbols_F77
24149 # The commands to list exported symbols.
24150 export_symbols_cmds=$lt_export_symbols_cmds_F77
24152 # The commands to extract the exported symbol list from a shared archive.
24153 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24155 # Symbols that should not be listed in the preloaded symbols.
24156 exclude_expsyms=$lt_exclude_expsyms_F77
24158 # Symbols that must always be exported.
24159 include_expsyms=$lt_include_expsyms_F77
24161 # ### END LIBTOOL TAG CONFIG: $tagname
24167 # If there is no Makefile yet, we rely on a make rule to execute
24168 # `config.status --recheck' to rerun these tests and create the
24169 # libtool script then.
24170 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24171 if test -f "$ltmain_in"; then
24172 test -f Makefile && make "$ltmain"
24178 ac_cpp='$CPP $CPPFLAGS'
24179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24191 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24193 ac_cpp='$CPP $CPPFLAGS'
24194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24199 # Source file extension for Java test sources.
24202 # Object file extension for compiled Java test sources.
24206 # Code to be used in simple compile tests
24207 lt_simple_compile_test_code="class foo {}\n"
24209 # Code to be used in simple link tests
24210 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24212 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24214 # If no C compiler was specified, use CC.
24217 # If no C compiler flags were specified, use CFLAGS.
24218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24220 # Allow CC to be a program name with arguments.
24224 # save warnings/boilerplate of simple test code
24225 ac_outfile=conftest.$ac_objext
24226 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24227 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24228 _lt_compiler_boilerplate=`cat conftest.err`
24231 ac_outfile=conftest.$ac_objext
24232 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24233 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24234 _lt_linker_boilerplate=`cat conftest.err`
24238 # Allow CC to be a program name with arguments.
24243 for cc_temp in $compiler""; do
24245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24251 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24254 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24255 archive_cmds_need_lc_GCJ=no
24257 old_archive_cmds_GCJ=$old_archive_cmds
24260 lt_prog_compiler_no_builtin_flag_GCJ=
24262 if test "$GCC" = yes; then
24263 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24266 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24267 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24268 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24269 echo $ECHO_N "(cached) $ECHO_C" >&6
24271 lt_cv_prog_compiler_rtti_exceptions=no
24272 ac_outfile=conftest.$ac_objext
24273 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24274 lt_compiler_flag="-fno-rtti -fno-exceptions"
24275 # Insert the option either (1) after the last *FLAGS variable, or
24276 # (2) before a word containing "conftest.", or (3) at the end.
24277 # Note that $ac_compile itself does not contain backslashes and begins
24278 # with a dollar sign (not a hyphen), so the echo should work correctly.
24279 # The option is referenced via a variable to avoid confusing sed.
24280 lt_compile=`echo "$ac_compile" | $SED \
24281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24283 -e 's:$: $lt_compiler_flag:'`
24284 (eval echo "\"\$as_me:24284: $lt_compile\"" >&5)
24285 (eval "$lt_compile" 2>conftest.err)
24287 cat conftest.err >&5
24288 echo "$as_me:24288: \$? = $ac_status" >&5
24289 if (exit $ac_status) && test -s "$ac_outfile"; then
24290 # The compiler can only warn and ignore the option if not recognized
24291 # So say no if there are warnings other than the usual output.
24292 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24295 lt_cv_prog_compiler_rtti_exceptions=yes
24301 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24302 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24304 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24305 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24312 lt_prog_compiler_wl_GCJ=
24313 lt_prog_compiler_pic_GCJ=
24314 lt_prog_compiler_static_GCJ=
24316 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24317 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24319 if test "$GCC" = yes; then
24320 lt_prog_compiler_wl_GCJ='-Wl,'
24321 lt_prog_compiler_static_GCJ='-static'
24325 # All AIX code is PIC.
24326 if test "$host_cpu" = ia64; then
24327 # AIX 5 now supports IA64 processor
24328 lt_prog_compiler_static_GCJ='-Bstatic'
24333 # FIXME: we need at least 68020 code to build shared libraries, but
24334 # adding the `-m68020' flag to GCC prevents building anything better,
24336 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24339 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24340 # PIC is the default for these OSes.
24343 mingw* | pw32* | os2*)
24344 # This hack is so that the source file can tell whether it is being
24345 # built for inclusion in a dll (and should export symbols for example).
24346 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24349 darwin* | rhapsody*)
24350 # PIC is the default on this platform
24351 # Common symbols not allowed in MH_DYLIB files
24352 lt_prog_compiler_pic_GCJ='-fno-common'
24356 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24357 # Instead, we relocate shared libraries at runtime.
24361 # Just because we use GCC doesn't mean we suddenly get shared libraries
24362 # on systems that don't support them.
24363 lt_prog_compiler_can_build_shared_GCJ=no
24368 if test -d /usr/nec; then
24369 lt_prog_compiler_pic_GCJ=-Kconform_pic
24374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24375 # not for PA HP-UX.
24381 lt_prog_compiler_pic_GCJ='-fPIC'
24387 lt_prog_compiler_pic_GCJ='-fPIC'
24391 # PORTME Check for flag to pass linker flags through the system compiler.
24394 lt_prog_compiler_wl_GCJ='-Wl,'
24395 if test "$host_cpu" = ia64; then
24396 # AIX 5 now supports IA64 processor
24397 lt_prog_compiler_static_GCJ='-Bstatic'
24399 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24403 # PIC is the default on this platform
24404 # Common symbols not allowed in MH_DYLIB files
24405 case $cc_basename in
24407 lt_prog_compiler_pic_GCJ='-qnocommon'
24408 lt_prog_compiler_wl_GCJ='-Wl,'
24413 mingw* | pw32* | os2*)
24414 # This hack is so that the source file can tell whether it is being
24415 # built for inclusion in a dll (and should export symbols for example).
24416 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24419 hpux9* | hpux10* | hpux11*)
24420 lt_prog_compiler_wl_GCJ='-Wl,'
24421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24422 # not for PA HP-UX.
24428 lt_prog_compiler_pic_GCJ='+Z'
24431 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24432 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24435 irix5* | irix6* | nonstopux*)
24436 lt_prog_compiler_wl_GCJ='-Wl,'
24437 # PIC (with -KPIC) is the default.
24438 lt_prog_compiler_static_GCJ='-non_shared'
24442 lt_prog_compiler_pic_GCJ='-KPIC'
24443 lt_prog_compiler_static_GCJ='-Bstatic'
24447 case $cc_basename in
24449 lt_prog_compiler_wl_GCJ='-Wl,'
24450 lt_prog_compiler_pic_GCJ='-KPIC'
24451 lt_prog_compiler_static_GCJ='-static'
24453 pgcc* | pgf77* | pgf90* | pgf95*)
24454 # Portland Group compilers (*not* the Pentium gcc compiler,
24455 # which looks to be a dead project)
24456 lt_prog_compiler_wl_GCJ='-Wl,'
24457 lt_prog_compiler_pic_GCJ='-fpic'
24458 lt_prog_compiler_static_GCJ='-Bstatic'
24461 lt_prog_compiler_wl_GCJ='-Wl,'
24462 # All Alpha code is PIC.
24463 lt_prog_compiler_static_GCJ='-non_shared'
24468 osf3* | osf4* | osf5*)
24469 lt_prog_compiler_wl_GCJ='-Wl,'
24470 # All OSF/1 code is PIC.
24471 lt_prog_compiler_static_GCJ='-non_shared'
24475 lt_prog_compiler_pic_GCJ='-KPIC'
24476 lt_prog_compiler_static_GCJ='-Bstatic'
24477 case $cc_basename in
24478 f77* | f90* | f95*)
24479 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24481 lt_prog_compiler_wl_GCJ='-Wl,';;
24486 lt_prog_compiler_wl_GCJ='-Qoption ld '
24487 lt_prog_compiler_pic_GCJ='-PIC'
24488 lt_prog_compiler_static_GCJ='-Bstatic'
24491 sysv4 | sysv4.2uw2* | sysv4.3*)
24492 lt_prog_compiler_wl_GCJ='-Wl,'
24493 lt_prog_compiler_pic_GCJ='-KPIC'
24494 lt_prog_compiler_static_GCJ='-Bstatic'
24498 if test -d /usr/nec ;then
24499 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24500 lt_prog_compiler_static_GCJ='-Bstatic'
24504 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24505 lt_prog_compiler_wl_GCJ='-Wl,'
24506 lt_prog_compiler_pic_GCJ='-KPIC'
24507 lt_prog_compiler_static_GCJ='-Bstatic'
24511 lt_prog_compiler_wl_GCJ='-Wl,'
24512 lt_prog_compiler_can_build_shared_GCJ=no
24516 lt_prog_compiler_pic_GCJ='-pic'
24517 lt_prog_compiler_static_GCJ='-Bstatic'
24521 lt_prog_compiler_can_build_shared_GCJ=no
24526 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24527 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24530 # Check to make sure the PIC flag actually works.
24532 if test -n "$lt_prog_compiler_pic_GCJ"; then
24534 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24535 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24536 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24539 lt_prog_compiler_pic_works_GCJ=no
24540 ac_outfile=conftest.$ac_objext
24541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24542 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24543 # Insert the option either (1) after the last *FLAGS variable, or
24544 # (2) before a word containing "conftest.", or (3) at the end.
24545 # Note that $ac_compile itself does not contain backslashes and begins
24546 # with a dollar sign (not a hyphen), so the echo should work correctly.
24547 # The option is referenced via a variable to avoid confusing sed.
24548 lt_compile=`echo "$ac_compile" | $SED \
24549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24551 -e 's:$: $lt_compiler_flag:'`
24552 (eval echo "\"\$as_me:24552: $lt_compile\"" >&5)
24553 (eval "$lt_compile" 2>conftest.err)
24555 cat conftest.err >&5
24556 echo "$as_me:24556: \$? = $ac_status" >&5
24557 if (exit $ac_status) && test -s "$ac_outfile"; then
24558 # The compiler can only warn and ignore the option if not recognized
24559 # So say no if there are warnings other than the usual output.
24560 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24562 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24563 lt_prog_compiler_pic_works_GCJ=yes
24569 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24570 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24572 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24573 case $lt_prog_compiler_pic_GCJ in
24575 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24578 lt_prog_compiler_pic_GCJ=
24579 lt_prog_compiler_can_build_shared_GCJ=no
24584 # For platforms which do not support PIC, -DPIC is meaningless:
24586 lt_prog_compiler_pic_GCJ=
24589 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24594 # Check to make sure the static flag actually works.
24596 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24597 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24598 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24599 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24600 echo $ECHO_N "(cached) $ECHO_C" >&6
24602 lt_prog_compiler_static_works_GCJ=no
24603 save_LDFLAGS="$LDFLAGS"
24604 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24605 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24606 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24607 # The linker can only warn and ignore the option if not recognized
24608 # So say no if there are warnings
24609 if test -s conftest.err; then
24610 # Append any errors to the config.log.
24611 cat conftest.err 1>&5
24612 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24614 if diff conftest.exp conftest.er2 >/dev/null; then
24615 lt_prog_compiler_static_works_GCJ=yes
24618 lt_prog_compiler_static_works_GCJ=yes
24622 LDFLAGS="$save_LDFLAGS"
24625 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24626 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24628 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24631 lt_prog_compiler_static_GCJ=
24635 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24636 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24637 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
24640 lt_cv_prog_compiler_c_o_GCJ=no
24641 $rm -r conftest 2>/dev/null
24645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24647 lt_compiler_flag="-o out/conftest2.$ac_objext"
24648 # Insert the option either (1) after the last *FLAGS variable, or
24649 # (2) before a word containing "conftest.", or (3) at the end.
24650 # Note that $ac_compile itself does not contain backslashes and begins
24651 # with a dollar sign (not a hyphen), so the echo should work correctly.
24652 lt_compile=`echo "$ac_compile" | $SED \
24653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24655 -e 's:$: $lt_compiler_flag:'`
24656 (eval echo "\"\$as_me:24656: $lt_compile\"" >&5)
24657 (eval "$lt_compile" 2>out/conftest.err)
24659 cat out/conftest.err >&5
24660 echo "$as_me:24660: \$? = $ac_status" >&5
24661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24663 # The compiler can only warn and ignore the option if not recognized
24664 # So say no if there are warnings
24665 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24668 lt_cv_prog_compiler_c_o_GCJ=yes
24673 # SGI C++ compiler will create directory out/ii_files/ for
24674 # template instantiation
24675 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24676 $rm out/* && rmdir out
24682 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24683 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24686 hard_links="nottested"
24687 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24688 # do not overwrite the value of need_locks provided by the user
24689 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24690 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24695 ln conftest.a conftest.b 2>&5 || hard_links=no
24696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24697 { echo "$as_me:$LINENO: result: $hard_links" >&5
24698 echo "${ECHO_T}$hard_links" >&6; }
24699 if test "$hard_links" = no; then
24700 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24701 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24708 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24709 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24712 allow_undefined_flag_GCJ=
24713 enable_shared_with_static_runtimes_GCJ=no
24715 archive_expsym_cmds_GCJ=
24716 old_archive_From_new_cmds_GCJ=
24717 old_archive_from_expsyms_cmds_GCJ=
24718 export_dynamic_flag_spec_GCJ=
24719 whole_archive_flag_spec_GCJ=
24720 thread_safe_flag_spec_GCJ=
24721 hardcode_libdir_flag_spec_GCJ=
24722 hardcode_libdir_flag_spec_ld_GCJ=
24723 hardcode_libdir_separator_GCJ=
24724 hardcode_direct_GCJ=no
24725 hardcode_minus_L_GCJ=no
24726 hardcode_shlibpath_var_GCJ=unsupported
24727 link_all_deplibs_GCJ=unknown
24728 hardcode_automatic_GCJ=no
24730 module_expsym_cmds_GCJ=
24731 always_export_symbols_GCJ=no
24732 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24733 # include_expsyms should be a list of space-separated symbols to be *always*
24734 # included in the symbol list
24735 include_expsyms_GCJ=
24736 # exclude_expsyms can be an extended regexp of symbols to exclude
24737 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24738 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24739 # as well as any symbol that contains `d'.
24740 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24741 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24742 # platforms (ab)use it in PIC code, but their linkers get confused if
24743 # the symbol is explicitly referenced. Since portable code cannot
24744 # rely on this symbol name, it's probably fine to never include it in
24745 # preloaded symbol tables.
24746 extract_expsyms_cmds=
24747 # Just being paranoid about ensuring that cc_basename is set.
24748 for cc_temp in $compiler""; do
24750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24756 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24759 cygwin* | mingw* | pw32*)
24760 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24761 # When not using gcc, we currently assume that we are using
24762 # Microsoft Visual C++.
24763 if test "$GCC" != yes; then
24768 # we just hope/assume this is gcc and not c89 (= MSVC++)
24777 if test "$with_gnu_ld" = yes; then
24778 # If archive_cmds runs LD, not CC, wlarc should be empty
24781 # Set some defaults for GNU ld with shared library support. These
24782 # are reset later if shared libraries are not supported. Putting them
24783 # here allows them to be overridden if necessary.
24784 runpath_var=LD_RUN_PATH
24785 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24786 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24787 # ancient GNU ld didn't support --whole-archive et. al.
24788 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24789 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24791 whole_archive_flag_spec_GCJ=
24793 supports_anon_versioning=no
24794 case `$LD -v 2>/dev/null` in
24795 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24796 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24797 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24798 *\ 2.11.*) ;; # other 2.11 versions
24799 *) supports_anon_versioning=yes ;;
24802 # See if GNU ld supports shared libraries.
24804 aix3* | aix4* | aix5*)
24805 # On AIX/PPC, the GNU linker is very broken
24806 if test "$host_cpu" != ia64; then
24810 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24811 *** to be unable to reliably create shared libraries on AIX.
24812 *** Therefore, libtool is disabling shared libraries support. If you
24813 *** really care for shared libraries, you may want to modify your PATH
24814 *** so that a non-GNU linker is found, and then restart.
24821 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)'
24822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24823 hardcode_minus_L_GCJ=yes
24825 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24826 # that the semantics of dynamic libraries on AmigaOS, at least up
24827 # to version 4, is to share data among multiple programs linked
24828 # with the same dynamic library. Since this doesn't match the
24829 # behavior of shared libraries on other platforms, we can't use
24835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24836 allow_undefined_flag_GCJ=unsupported
24837 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24838 # support --undefined. This deserves some investigation. FIXME
24839 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24845 cygwin* | mingw* | pw32*)
24846 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24847 # as there is no search path for DLLs.
24848 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24849 allow_undefined_flag_GCJ=unsupported
24850 always_export_symbols_GCJ=no
24851 enable_shared_with_static_runtimes_GCJ=yes
24852 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24854 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24856 # If the export-symbols file already is a .def file (1st line
24857 # is EXPORTS), use it as is; otherwise, prepend...
24858 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24859 cp $export_symbols $output_objdir/$soname.def;
24861 echo EXPORTS > $output_objdir/$soname.def;
24862 cat $export_symbols >> $output_objdir/$soname.def;
24864 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24871 hardcode_direct_GCJ=no
24872 hardcode_shlibpath_var_GCJ=no
24873 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24874 export_dynamic_flag_spec_GCJ='${wl}-E'
24875 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24876 # Instead, shared libraries are loaded at an image base (0x10000000 by
24877 # default) and relocated if they conflict, which is a slow very memory
24878 # consuming and fragmenting process. To avoid this, we pick a random,
24879 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24880 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24881 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'
24882 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'
24886 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24888 case $cc_basename,$host_cpu in
24889 pgcc*) # Portland Group C compiler
24890 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'
24891 tmp_addflag=' $pic_flag'
24893 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24894 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'
24895 tmp_addflag=' $pic_flag -Mnomain' ;;
24896 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24897 tmp_addflag=' -i_dynamic' ;;
24898 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24899 tmp_addflag=' -i_dynamic -nofor_main' ;;
24900 ifc* | ifort*) # Intel Fortran compiler
24901 tmp_addflag=' -nofor_main' ;;
24903 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24905 if test $supports_anon_versioning = yes; then
24906 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24908 $echo "local: *; };" >> $output_objdir/$libname.ver~
24909 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24918 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24927 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24932 *** create shared libraries on Solaris systems. Therefore, libtool
24933 *** is disabling shared libraries support. We urge you to upgrade GNU
24934 *** binutils to release 2.9.1 or newer. Another option is to modify
24935 *** your PATH or compiler configuration so that the native linker is
24936 *** used, and then restart.
24939 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24940 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24941 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24948 case `$LD -v 2>&1` in
24949 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24953 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24954 *** reliably create shared libraries on SCO systems. Therefore, libtool
24955 *** is disabling shared libraries support. We urge you to upgrade GNU
24956 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24957 *** your PATH or compiler configuration so that the native linker is
24958 *** used, and then restart.
24963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24964 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24965 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24966 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24975 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24977 hardcode_direct_GCJ=yes
24978 hardcode_shlibpath_var_GCJ=no
24982 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24984 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24991 if test "$ld_shlibs_GCJ" = no; then
24993 hardcode_libdir_flag_spec_GCJ=
24994 export_dynamic_flag_spec_GCJ=
24995 whole_archive_flag_spec_GCJ=
24998 # PORTME fill in a description of your system's linker (not GNU ld)
25001 allow_undefined_flag_GCJ=unsupported
25002 always_export_symbols_GCJ=yes
25003 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'
25004 # Note: this linker hardcodes the directories in LIBPATH if there
25005 # are no directories specified by -L.
25006 hardcode_minus_L_GCJ=yes
25007 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25008 # Neither direct hardcoding nor static linking is supported with a
25010 hardcode_direct_GCJ=unsupported
25015 if test "$host_cpu" = ia64; then
25016 # On IA64, the linker does run time linking by default, so we don't
25017 # have to do anything special.
25018 aix_use_runtimelinking=no
25019 exp_sym_flag='-Bexport'
25022 # If we're using GNU nm, then we don't want the "-C" option.
25023 # -C means demangle to AIX nm, but means don't demangle with GNU nm
25024 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25025 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'
25027 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'
25029 aix_use_runtimelinking=no
25031 # Test if we are trying to use run time linking or normal
25032 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25033 # need to do runtime linking.
25034 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25035 for ld_flag in $LDFLAGS; do
25036 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25037 aix_use_runtimelinking=yes
25044 exp_sym_flag='-bexport'
25045 no_entry_flag='-bnoentry'
25048 # When large executables or shared objects are built, AIX ld can
25049 # have problems creating the table of contents. If linking a library
25050 # or program results in "error TOC overflow" add -mminimal-toc to
25051 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25052 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25054 archive_cmds_GCJ=''
25055 hardcode_direct_GCJ=yes
25056 hardcode_libdir_separator_GCJ=':'
25057 link_all_deplibs_GCJ=yes
25059 if test "$GCC" = yes; then
25060 case $host_os in aix4.[012]|aix4.[012].*)
25061 # We only want to do this on AIX 4.2 and lower, the check
25062 # below for broken collect2 doesn't work under 4.3+
25063 collect2name=`${CC} -print-prog-name=collect2`
25064 if test -f "$collect2name" && \
25065 strings "$collect2name" | grep resolve_lib_name >/dev/null
25067 # We have reworked collect2
25068 hardcode_direct_GCJ=yes
25070 # We have old collect2
25071 hardcode_direct_GCJ=unsupported
25072 # It fails to find uninstalled libraries when the uninstalled
25073 # path is not listed in the libpath. Setting hardcode_minus_L
25074 # to unsupported forces relinking
25075 hardcode_minus_L_GCJ=yes
25076 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25077 hardcode_libdir_separator_GCJ=
25081 shared_flag='-shared'
25082 if test "$aix_use_runtimelinking" = yes; then
25083 shared_flag="$shared_flag "'${wl}-G'
25087 if test "$host_cpu" = ia64; then
25088 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25089 # chokes on -Wl,-G. The following line is correct:
25092 if test "$aix_use_runtimelinking" = yes; then
25093 shared_flag='${wl}-G'
25095 shared_flag='${wl}-bM:SRE'
25100 # It seems that -bexpall does not export symbols beginning with
25101 # underscore (_), so it is better to generate a list of symbols to export.
25102 always_export_symbols_GCJ=yes
25103 if test "$aix_use_runtimelinking" = yes; then
25104 # Warning - without using the other runtime loading flags (-brtl),
25105 # -berok will link without error, but may produce a broken library.
25106 allow_undefined_flag_GCJ='-berok'
25107 # Determine the default libpath from the value encoded in an empty executable.
25108 cat >conftest.$ac_ext <<_ACEOF
25111 cat confdefs.h >>conftest.$ac_ext
25112 cat >>conftest.$ac_ext <<_ACEOF
25113 /* end confdefs.h. */
25123 rm -f conftest.$ac_objext conftest$ac_exeext
25124 if { (ac_try="$ac_link"
25125 case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_link") 2>conftest.er1
25132 grep -v '^ *+' conftest.er1 >conftest.err
25134 cat conftest.err >&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } &&
25137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25138 { (case "(($ac_try" in
25139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140 *) ac_try_echo=$ac_try;;
25142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25143 (eval "$ac_try") 2>&5
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); }; } &&
25147 { ac_try='test -s conftest$ac_exeext'
25148 { (case "(($ac_try" in
25149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25150 *) ac_try_echo=$ac_try;;
25152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153 (eval "$ac_try") 2>&5
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); }; }; then
25158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25160 # Check for a 64-bit object if we didn't find anything.
25161 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; }
25164 echo "$as_me: failed program was:" >&5
25165 sed 's/^/| /' conftest.$ac_ext >&5
25170 rm -f core conftest.err conftest.$ac_objext \
25171 conftest$ac_exeext conftest.$ac_ext
25172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25174 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25175 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"
25177 if test "$host_cpu" = ia64; then
25178 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25179 allow_undefined_flag_GCJ="-z nodefs"
25180 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"
25182 # Determine the default libpath from the value encoded in an empty executable.
25183 cat >conftest.$ac_ext <<_ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h. */
25198 rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>conftest.er1
25207 grep -v '^ *+' conftest.er1 >conftest.err
25209 cat conftest.err >&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } &&
25212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25213 { (case "(($ac_try" in
25214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215 *) ac_try_echo=$ac_try;;
25217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218 (eval "$ac_try") 2>&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; } &&
25222 { ac_try='test -s conftest$ac_exeext'
25223 { (case "(($ac_try" in
25224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225 *) ac_try_echo=$ac_try;;
25227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25228 (eval "$ac_try") 2>&5
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); }; }; then
25233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25235 # Check for a 64-bit object if we didn't find anything.
25236 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; }
25239 echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25245 rm -f core conftest.err conftest.$ac_objext \
25246 conftest$ac_exeext conftest.$ac_ext
25247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25249 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25250 # Warning - without using the other run time loading flags,
25251 # -berok will link without error, but may produce a broken library.
25252 no_undefined_flag_GCJ=' ${wl}-bernotok'
25253 allow_undefined_flag_GCJ=' ${wl}-berok'
25254 # Exported symbols can be pulled into shared objects from archives
25255 whole_archive_flag_spec_GCJ='$convenience'
25256 archive_cmds_need_lc_GCJ=yes
25257 # This is similar to how AIX traditionally builds its shared libraries.
25258 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'
25264 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)'
25265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25266 hardcode_minus_L_GCJ=yes
25267 # see comment about different semantics on the GNU ld section
25272 export_dynamic_flag_spec_GCJ=-rdynamic
25275 cygwin* | mingw* | pw32*)
25276 # When not using gcc, we currently assume that we are using
25277 # Microsoft Visual C++.
25278 # hardcode_libdir_flag_spec is actually meaningless, as there is
25279 # no search path for DLLs.
25280 hardcode_libdir_flag_spec_GCJ=' '
25281 allow_undefined_flag_GCJ=unsupported
25282 # Tell ltmain to make .lib files, not .a files.
25284 # Tell ltmain to make .dll files, not .so files.
25286 # FIXME: Setting linknames here is a bad hack.
25287 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25288 # The linker will automatically build a .lib file if we build a DLL.
25289 old_archive_From_new_cmds_GCJ='true'
25290 # FIXME: Should let the user specify the lib program.
25291 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25292 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25293 enable_shared_with_static_runtimes_GCJ=yes
25296 darwin* | rhapsody*)
25298 rhapsody* | darwin1.[012])
25299 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25302 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25303 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25305 case ${MACOSX_DEPLOYMENT_TARGET} in
25307 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25310 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25316 archive_cmds_need_lc_GCJ=no
25317 hardcode_direct_GCJ=no
25318 hardcode_automatic_GCJ=yes
25319 hardcode_shlibpath_var_GCJ=unsupported
25320 whole_archive_flag_spec_GCJ=''
25321 link_all_deplibs_GCJ=yes
25322 if test "$GCC" = yes ; then
25323 output_verbose_link_cmd='echo'
25324 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25325 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25326 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25327 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}'
25328 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}'
25330 case $cc_basename in
25332 output_verbose_link_cmd='echo'
25333 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25334 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25335 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25336 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}'
25337 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}'
25347 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25348 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25349 hardcode_shlibpath_var_GCJ=no
25356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25357 # support. Future versions do this automatically, but an explicit c++rt0.o
25358 # does not break anything, and helps significantly (at the cost of a little
25361 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25362 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25363 hardcode_direct_GCJ=yes
25364 hardcode_shlibpath_var_GCJ=no
25367 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25369 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25370 hardcode_direct_GCJ=yes
25371 hardcode_minus_L_GCJ=yes
25372 hardcode_shlibpath_var_GCJ=no
25375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25376 freebsd* | kfreebsd*-gnu | dragonfly*)
25377 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25379 hardcode_direct_GCJ=yes
25380 hardcode_shlibpath_var_GCJ=no
25384 if test "$GCC" = yes; then
25385 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'
25387 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'
25389 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25390 hardcode_libdir_separator_GCJ=:
25391 hardcode_direct_GCJ=yes
25393 # hardcode_minus_L: Not really in the search PATH,
25394 # but as the default location of the library.
25395 hardcode_minus_L_GCJ=yes
25396 export_dynamic_flag_spec_GCJ='${wl}-E'
25400 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25401 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25403 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25405 if test "$with_gnu_ld" = no; then
25406 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25407 hardcode_libdir_separator_GCJ=:
25409 hardcode_direct_GCJ=yes
25410 export_dynamic_flag_spec_GCJ='${wl}-E'
25412 # hardcode_minus_L: Not really in the search PATH,
25413 # but as the default location of the library.
25414 hardcode_minus_L_GCJ=yes
25419 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25422 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25425 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25428 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25434 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25437 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25440 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25444 if test "$with_gnu_ld" = no; then
25445 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25446 hardcode_libdir_separator_GCJ=:
25450 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25451 hardcode_direct_GCJ=no
25452 hardcode_shlibpath_var_GCJ=no
25455 hardcode_direct_GCJ=yes
25456 export_dynamic_flag_spec_GCJ='${wl}-E'
25458 # hardcode_minus_L: Not really in the search PATH,
25459 # but as the default location of the library.
25460 hardcode_minus_L_GCJ=yes
25466 irix5* | irix6* | nonstopux*)
25467 if test "$GCC" = yes; then
25468 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'
25470 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'
25471 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25474 hardcode_libdir_separator_GCJ=:
25475 link_all_deplibs_GCJ=yes
25479 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25480 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25482 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25484 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25485 hardcode_direct_GCJ=yes
25486 hardcode_shlibpath_var_GCJ=no
25490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25491 hardcode_direct_GCJ=yes
25492 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25493 hardcode_libdir_separator_GCJ=:
25494 hardcode_shlibpath_var_GCJ=no
25498 hardcode_direct_GCJ=yes
25499 hardcode_shlibpath_var_GCJ=no
25500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25501 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25502 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25504 export_dynamic_flag_spec_GCJ='${wl}-E'
25507 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25508 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25509 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25512 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25513 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25521 hardcode_minus_L_GCJ=yes
25522 allow_undefined_flag_GCJ=unsupported
25523 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'
25524 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25528 if test "$GCC" = yes; then
25529 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25530 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'
25532 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25533 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'
25535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25536 hardcode_libdir_separator_GCJ=:
25539 osf4* | osf5*) # as osf3* with the addition of -msym flag
25540 if test "$GCC" = yes; then
25541 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25542 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'
25543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25545 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25546 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'
25547 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~
25548 $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'
25550 # Both c and cxx compiler support -rpath directly
25551 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25553 hardcode_libdir_separator_GCJ=:
25557 no_undefined_flag_GCJ=' -z text'
25558 if test "$GCC" = yes; then
25560 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25561 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25562 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25565 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25566 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25567 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25569 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25570 hardcode_shlibpath_var_GCJ=no
25572 solaris2.[0-5] | solaris2.[0-5].*) ;;
25574 # The compiler driver will combine linker options so we
25575 # cannot just pass the convience library names through
25576 # without $wl, iff we do not link with $LD.
25577 # Luckily, gcc supports the same syntax we need for Sun Studio.
25578 # Supported since Solaris 2.6 (maybe 2.5.1?)
25581 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25583 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' ;;
25586 link_all_deplibs_GCJ=yes
25590 if test "x$host_vendor" = xsequent; then
25591 # Use $CC to link under sequent, because it throws in some extra .o
25592 # files that make .init and .fini sections work.
25593 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25595 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25597 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25598 hardcode_direct_GCJ=yes
25599 hardcode_minus_L_GCJ=yes
25600 hardcode_shlibpath_var_GCJ=no
25604 case $host_vendor in
25606 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25607 hardcode_direct_GCJ=yes # is this really true???
25610 ## LD is ld it makes a PLAMLIB
25611 ## CC just makes a GrossModule.
25612 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25613 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25614 hardcode_direct_GCJ=no
25617 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25618 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25621 runpath_var='LD_RUN_PATH'
25622 hardcode_shlibpath_var_GCJ=no
25626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25627 hardcode_shlibpath_var_GCJ=no
25628 export_dynamic_flag_spec_GCJ='-Bexport'
25632 if test -d /usr/nec; then
25633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25634 hardcode_shlibpath_var_GCJ=no
25635 runpath_var=LD_RUN_PATH
25636 hardcode_runpath_var=yes
25641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25642 no_undefined_flag_GCJ='${wl}-z,text'
25643 archive_cmds_need_lc_GCJ=no
25644 hardcode_shlibpath_var_GCJ=no
25645 runpath_var='LD_RUN_PATH'
25647 if test "$GCC" = yes; then
25648 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25649 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25651 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25652 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25656 sysv5* | sco3.2v5* | sco5v6*)
25657 # Note: We can NOT use -z defs as we might desire, because we do not
25658 # link with -lc, and that would cause any symbols used from libc to
25659 # always be unresolved, which means just about no library would
25660 # ever link correctly. If we're not using GNU ld we use -z text
25661 # though, which does catch some bad symbols but isn't as heavy-handed
25663 no_undefined_flag_GCJ='${wl}-z,text'
25664 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25665 archive_cmds_need_lc_GCJ=no
25666 hardcode_shlibpath_var_GCJ=no
25667 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25668 hardcode_libdir_separator_GCJ=':'
25669 link_all_deplibs_GCJ=yes
25670 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25671 runpath_var='LD_RUN_PATH'
25673 if test "$GCC" = yes; then
25674 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25675 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25677 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25678 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25684 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25685 hardcode_shlibpath_var_GCJ=no
25694 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25695 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25696 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25699 # Do we need to explicitly link libc?
25701 case "x$archive_cmds_need_lc_GCJ" in
25703 # Assume -lc should be added
25704 archive_cmds_need_lc_GCJ=yes
25706 if test "$enable_shared" = yes && test "$GCC" = yes; then
25707 case $archive_cmds_GCJ in
25709 # FIXME: we may have to deal with multi-command sequences.
25712 # Test whether the compiler implicitly links with -lc since on some
25713 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25714 # to ld, don't add -lc before -lgcc.
25715 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25716 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25721 (eval $ac_compile) 2>&5
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); } 2>conftest.err; then
25727 libobjs=conftest.$ac_objext
25729 wl=$lt_prog_compiler_wl_GCJ
25730 pic_flag=$lt_prog_compiler_pic_GCJ
25736 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25737 allow_undefined_flag_GCJ=
25738 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25739 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }
25744 archive_cmds_need_lc_GCJ=no
25746 archive_cmds_need_lc_GCJ=yes
25748 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25750 cat conftest.err 1>&5
25753 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25754 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25761 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25762 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25763 library_names_spec=
25764 libname_spec='lib$name'
25768 postuninstall_cmds=
25772 shlibpath_overrides_runpath=unknown
25774 dynamic_linker="$host_os ld.so"
25775 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25776 if test "$GCC" = yes; then
25777 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25778 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25779 # if the path contains ";" then we assume it to be the separator
25780 # otherwise default to the standard path separator (i.e. ":") - it is
25781 # assumed that no part of a normal pathname contains ";" but that should
25782 # okay in the real world where ";" in dirpaths is itself problematic.
25783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25790 need_lib_prefix=unknown
25791 hardcode_into_libs=no
25793 # when you set need_version to no, make sure it does not cause -set_version
25794 # flags to be left without arguments
25795 need_version=unknown
25800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25801 shlibpath_var=LIBPATH
25803 # AIX 3 has no versioning support, so we append a major version to the name.
25804 soname_spec='${libname}${release}${shared_ext}$major'
25811 hardcode_into_libs=yes
25812 if test "$host_cpu" = ia64; then
25813 # AIX 5 supports IA64
25814 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25815 shlibpath_var=LD_LIBRARY_PATH
25817 # With GCC up to 2.95.x, collect2 would create an import file
25818 # for dependence libraries. The import file would start with
25819 # the line `#! .'. This would cause the generated library to
25820 # depend on `.', always an invalid library. This was fixed in
25821 # development snapshots of GCC prior to 3.0.
25823 aix4 | aix4.[01] | aix4.[01].*)
25824 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25826 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25829 can_build_shared=no
25833 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25834 # soname into executable. Probably we can add versioning support to
25835 # collect2, so additional links can be useful in future.
25836 if test "$aix_use_runtimelinking" = yes; then
25837 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25838 # instead of lib<name>.a to let people know that these are not
25839 # typical AIX shared libraries.
25840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25842 # We preserve .a as extension for shared libraries through AIX4.2
25843 # and later when we are not doing run time linking.
25844 library_names_spec='${libname}${release}.a $libname.a'
25845 soname_spec='${libname}${release}${shared_ext}$major'
25847 shlibpath_var=LIBPATH
25852 library_names_spec='$libname.ixlibrary $libname.a'
25853 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25854 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'
25858 library_names_spec='${libname}${shared_ext}'
25859 dynamic_linker="$host_os ld.so"
25860 shlibpath_var=LIBRARY_PATH
25866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25867 soname_spec='${libname}${release}${shared_ext}$major'
25868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25869 shlibpath_var=LD_LIBRARY_PATH
25870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25872 # the default ld.so.conf also contains /usr/contrib/lib and
25873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25874 # libtool to hard-code these into programs
25877 cygwin* | mingw* | pw32*)
25878 version_type=windows
25883 case $GCC,$host_os in
25884 yes,cygwin* | yes,mingw* | yes,pw32*)
25885 library_names_spec='$libname.dll.a'
25886 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25887 postinstall_cmds='base_file=`basename \${file}`~
25888 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25889 dldir=$destdir/`dirname \$dlpath`~
25890 test -d \$dldir || mkdir -p \$dldir~
25891 $install_prog $dir/$dlname \$dldir/$dlname~
25892 chmod a+x \$dldir/$dlname'
25893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25894 dlpath=$dir/\$dldll~
25896 shlibpath_overrides_runpath=yes
25900 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25901 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25902 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25905 # MinGW DLLs use traditional 'lib' prefix
25906 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25908 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25909 # It is most probably a Windows format PATH printed by
25910 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25911 # path with ; separators, and with drive letters. We can handle the
25912 # drive letters (cygwin fileutils understands them), so leave them,
25913 # especially as we might pass files found there to a mingw objdump,
25914 # which wouldn't understand a cygwinified path. Ahh.
25915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25921 # pw32 DLLs use 'pw' prefix rather than 'lib'
25922 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25928 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25931 dynamic_linker='Win32 ld.exe'
25932 # FIXME: first we should search . and the directory the executable is in
25936 darwin* | rhapsody*)
25937 dynamic_linker="$host_os dyld"
25938 version_type=darwin
25941 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25942 soname_spec='${libname}${release}${major}$shared_ext'
25943 shlibpath_overrides_runpath=yes
25944 shlibpath_var=DYLD_LIBRARY_PATH
25945 shrext_cmds='.dylib'
25946 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25947 if test "$GCC" = yes; then
25948 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"`
25950 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25952 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25960 soname_spec='${libname}${release}${shared_ext}$major'
25961 shlibpath_var=LD_LIBRARY_PATH
25972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25973 soname_spec='${libname}${release}${shared_ext}$major'
25974 shlibpath_var=LD_LIBRARY_PATH
25975 shlibpath_overrides_runpath=no
25976 hardcode_into_libs=yes
25977 dynamic_linker='GNU ld.so'
25980 freebsd* | dragonfly*)
25981 # DragonFly does not have aout. When/if they implement a new
25982 # versioning mechanism, adjust this.
25983 if test -x /usr/bin/objformat; then
25984 objformat=`/usr/bin/objformat`
25987 freebsd[123]*) objformat=aout ;;
25988 *) objformat=elf ;;
25991 version_type=freebsd-$objformat
25992 case $version_type in
25994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26003 shlibpath_var=LD_LIBRARY_PATH
26006 shlibpath_overrides_runpath=yes
26008 freebsd3.[01]* | freebsdelf3.[01]*)
26009 shlibpath_overrides_runpath=yes
26010 hardcode_into_libs=yes
26012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26014 shlibpath_overrides_runpath=no
26015 hardcode_into_libs=yes
26017 freebsd*) # from 4.6 on
26018 shlibpath_overrides_runpath=yes
26019 hardcode_into_libs=yes
26028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26029 soname_spec='${libname}${release}${shared_ext}$major'
26030 shlibpath_var=LD_LIBRARY_PATH
26031 hardcode_into_libs=yes
26034 hpux9* | hpux10* | hpux11*)
26035 # Give a soname corresponding to the major version so that dld.sl refuses to
26036 # link against other versions.
26043 hardcode_into_libs=yes
26044 dynamic_linker="$host_os dld.so"
26045 shlibpath_var=LD_LIBRARY_PATH
26046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26048 soname_spec='${libname}${release}${shared_ext}$major'
26049 if test "X$HPUX_IA64_MODE" = X32; then
26050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26058 hardcode_into_libs=yes
26059 dynamic_linker="$host_os dld.sl"
26060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26063 soname_spec='${libname}${release}${shared_ext}$major'
26064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26069 dynamic_linker="$host_os dld.sl"
26070 shlibpath_var=SHLIB_PATH
26071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26073 soname_spec='${libname}${release}${shared_ext}$major'
26076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26077 postinstall_cmds='chmod 555 $lib'
26084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26085 soname_spec='${libname}${release}${shared_ext}$major'
26086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26087 shlibpath_var=LD_LIBRARY_PATH
26088 shlibpath_overrides_runpath=no
26089 hardcode_into_libs=yes
26092 irix5* | irix6* | nonstopux*)
26094 nonstopux*) version_type=nonstopux ;;
26096 if test "$lt_cv_prog_gnu_ld" = yes; then
26104 soname_spec='${libname}${release}${shared_ext}$major'
26105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26107 irix5* | nonstopux*)
26108 libsuff= shlibsuff=
26111 case $LD in # libtool.m4 will add one of these switches to LD
26112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26113 libsuff= shlibsuff= libmagic=32-bit;;
26114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26115 libsuff=32 shlibsuff=N32 libmagic=N32;;
26116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26118 *) libsuff= shlibsuff= libmagic=never-match;;
26122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26123 shlibpath_overrides_runpath=no
26124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26126 hardcode_into_libs=yes
26129 # No shared lib support for Linux oldld, aout, or coff.
26130 linux*oldld* | linux*aout* | linux*coff*)
26134 # This must be Linux ELF.
26139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26140 soname_spec='${libname}${release}${shared_ext}$major'
26141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26142 shlibpath_var=LD_LIBRARY_PATH
26143 shlibpath_overrides_runpath=no
26144 # This implies no fast_install, which is unacceptable.
26145 # Some rework will be needed to allow for fast_install
26146 # before this can be enabled.
26147 hardcode_into_libs=yes
26149 # Append ld.so.conf contents to the search path
26150 if test -f /etc/ld.so.conf; then
26151 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' ' '`
26152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26155 # We used to test for /lib/ld.so.1 and disable shared libraries on
26156 # powerpc, because MkLinux only supported shared libraries with the
26157 # GNU dynamic linker. Since this was broken with cross compilers,
26158 # most powerpc-linux boxes support dynamic linking these days and
26159 # people can always --disable-shared, the test was removed, and we
26160 # assume the GNU/Linux dynamic linker is in use.
26161 dynamic_linker='GNU/Linux ld.so'
26168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26169 soname_spec='${libname}${release}${shared_ext}$major'
26170 shlibpath_var=LD_LIBRARY_PATH
26171 shlibpath_overrides_runpath=no
26172 hardcode_into_libs=yes
26173 dynamic_linker='GNU ld.so'
26180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26183 dynamic_linker='NetBSD (a.out) ld.so'
26185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26186 soname_spec='${libname}${release}${shared_ext}$major'
26187 dynamic_linker='NetBSD ld.elf_so'
26189 shlibpath_var=LD_LIBRARY_PATH
26190 shlibpath_overrides_runpath=yes
26191 hardcode_into_libs=yes
26196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26197 shlibpath_var=LD_LIBRARY_PATH
26198 shlibpath_overrides_runpath=yes
26205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26206 soname_spec='${libname}${release}${shared_ext}$major'
26207 shlibpath_var=LD_LIBRARY_PATH
26208 shlibpath_overrides_runpath=yes
26213 sys_lib_dlsearch_path_spec="/usr/lib"
26215 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26217 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26218 *) need_version=no ;;
26220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26222 shlibpath_var=LD_LIBRARY_PATH
26223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26225 openbsd2.[89] | openbsd2.[89].*)
26226 shlibpath_overrides_runpath=no
26229 shlibpath_overrides_runpath=yes
26233 shlibpath_overrides_runpath=yes
26238 libname_spec='$name'
26241 library_names_spec='$libname${shared_ext} $libname.a'
26242 dynamic_linker='OS/2 ld.exe'
26243 shlibpath_var=LIBPATH
26246 osf3* | osf4* | osf5*)
26250 soname_spec='${libname}${release}${shared_ext}$major'
26251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26252 shlibpath_var=LD_LIBRARY_PATH
26253 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26254 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26262 soname_spec='${libname}${release}${shared_ext}$major'
26263 shlibpath_var=LD_LIBRARY_PATH
26264 shlibpath_overrides_runpath=yes
26265 hardcode_into_libs=yes
26266 # ldd complains unless libraries are executable
26267 postinstall_cmds='chmod +x $lib'
26272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26274 shlibpath_var=LD_LIBRARY_PATH
26275 shlibpath_overrides_runpath=yes
26276 if test "$with_gnu_ld" = yes; then
26284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26285 soname_spec='${libname}${release}${shared_ext}$major'
26286 shlibpath_var=LD_LIBRARY_PATH
26287 case $host_vendor in
26289 shlibpath_overrides_runpath=no
26291 export_dynamic_flag_spec='${wl}-Blargedynsym'
26292 runpath_var=LD_RUN_PATH
26300 shlibpath_overrides_runpath=no
26301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26307 if test -d /usr/nec ;then
26309 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26310 soname_spec='$libname${shared_ext}.$major'
26311 shlibpath_var=LD_LIBRARY_PATH
26315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26316 version_type=freebsd-elf
26319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26320 soname_spec='${libname}${release}${shared_ext}$major'
26321 shlibpath_var=LD_LIBRARY_PATH
26322 hardcode_into_libs=yes
26323 if test "$with_gnu_ld" = yes; then
26324 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26325 shlibpath_overrides_runpath=no
26327 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26328 shlibpath_overrides_runpath=yes
26331 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26335 sys_lib_dlsearch_path_spec='/usr/lib'
26340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26341 soname_spec='${libname}${release}${shared_ext}$major'
26342 shlibpath_var=LD_LIBRARY_PATH
26349 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26350 echo "${ECHO_T}$dynamic_linker" >&6; }
26351 test "$dynamic_linker" = no && can_build_shared=no
26353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26354 if test "$GCC" = yes; then
26355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26358 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26359 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26360 hardcode_action_GCJ=
26361 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26362 test -n "$runpath_var_GCJ" || \
26363 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26365 # We can hardcode non-existant directories.
26366 if test "$hardcode_direct_GCJ" != no &&
26367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26368 # have to relink, otherwise we might link with an installed library
26369 # when we should be linking with a yet-to-be-installed one
26370 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26371 test "$hardcode_minus_L_GCJ" != no; then
26372 # Linking always hardcodes the temporary library directory.
26373 hardcode_action_GCJ=relink
26375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26376 hardcode_action_GCJ=immediate
26379 # We cannot hardcode anything, or else we can only hardcode existing
26381 hardcode_action_GCJ=unsupported
26383 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26384 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26386 if test "$hardcode_action_GCJ" = relink; then
26387 # Fast installation is not supported
26388 enable_fast_install=no
26389 elif test "$shlibpath_overrides_runpath" = yes ||
26390 test "$enable_shared" = no; then
26391 # Fast installation is not necessary
26392 enable_fast_install=needless
26396 # The else clause should only fire when bootstrapping the
26397 # libtool distribution, otherwise you forgot to ship ltmain.sh
26398 # with your package, and you will get complaints that there are
26399 # no rules to generate ltmain.sh.
26400 if test -f "$ltmain"; then
26401 # See if we are running on zsh, and set the options which allow our commands through
26402 # without removal of \ escapes.
26403 if test -n "${ZSH_VERSION+set}" ; then
26404 setopt NO_GLOB_SUBST
26406 # Now quote all the things that may contain metacharacters while being
26407 # careful not to overquote the AC_SUBSTed values. We take copies of the
26408 # variables and quote the copies for generation of the libtool script.
26409 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26411 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26412 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26413 deplibs_check_method reload_flag reload_cmds need_locks \
26414 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26415 lt_cv_sys_global_symbol_to_c_name_address \
26416 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26417 old_postinstall_cmds old_postuninstall_cmds \
26421 lt_prog_compiler_wl_GCJ \
26422 lt_prog_compiler_pic_GCJ \
26423 lt_prog_compiler_static_GCJ \
26424 lt_prog_compiler_no_builtin_flag_GCJ \
26425 export_dynamic_flag_spec_GCJ \
26426 thread_safe_flag_spec_GCJ \
26427 whole_archive_flag_spec_GCJ \
26428 enable_shared_with_static_runtimes_GCJ \
26429 old_archive_cmds_GCJ \
26430 old_archive_from_new_cmds_GCJ \
26431 predep_objects_GCJ \
26432 postdep_objects_GCJ \
26435 compiler_lib_search_path_GCJ \
26437 archive_expsym_cmds_GCJ \
26438 postinstall_cmds_GCJ \
26439 postuninstall_cmds_GCJ \
26440 old_archive_from_expsyms_cmds_GCJ \
26441 allow_undefined_flag_GCJ \
26442 no_undefined_flag_GCJ \
26443 export_symbols_cmds_GCJ \
26444 hardcode_libdir_flag_spec_GCJ \
26445 hardcode_libdir_flag_spec_ld_GCJ \
26446 hardcode_libdir_separator_GCJ \
26447 hardcode_automatic_GCJ \
26449 module_expsym_cmds_GCJ \
26450 lt_cv_prog_compiler_c_o_GCJ \
26451 exclude_expsyms_GCJ \
26452 include_expsyms_GCJ; do
26455 old_archive_cmds_GCJ | \
26456 old_archive_from_new_cmds_GCJ | \
26457 archive_cmds_GCJ | \
26458 archive_expsym_cmds_GCJ | \
26459 module_cmds_GCJ | \
26460 module_expsym_cmds_GCJ | \
26461 old_archive_from_expsyms_cmds_GCJ | \
26462 export_symbols_cmds_GCJ | \
26463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26464 postinstall_cmds | postuninstall_cmds | \
26465 old_postinstall_cmds | old_postuninstall_cmds | \
26466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26467 # Double-quote double-evaled strings.
26468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26477 *'\$0 --fallback-echo"')
26478 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26484 cat <<__EOF__ >> "$cfgfile"
26485 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26489 # Shell to use when invoking shell scripts.
26492 # Whether or not to build shared libraries.
26493 build_libtool_libs=$enable_shared
26495 # Whether or not to build static libraries.
26496 build_old_libs=$enable_static
26498 # Whether or not to add -lc for building shared libraries.
26499 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26501 # Whether or not to disallow shared libs when runtime libs are static
26502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26504 # Whether or not to optimize for fast installation.
26505 fast_install=$enable_fast_install
26508 host_alias=$host_alias
26512 # The build system.
26513 build_alias=$build_alias
26517 # An echo program that does not interpret backslashes.
26522 AR_FLAGS=$lt_AR_FLAGS
26527 # LTCC compiler flags.
26528 LTCFLAGS=$lt_LTCFLAGS
26530 # A language-specific compiler.
26531 CC=$lt_compiler_GCJ
26533 # Is the compiler the GNU C compiler?
26539 # The linker used to build libraries.
26542 # Whether we need hard or soft links.
26545 # A BSD-compatible nm program.
26548 # A symbol stripping program
26551 # Used to examine libraries when file_magic_cmd begins "file"
26552 MAGIC_CMD=$MAGIC_CMD
26554 # Used on cygwin: DLL creation program.
26557 # Used on cygwin: object dumper.
26560 # Used on cygwin: assembler.
26563 # The name of the directory that contains temporary libtool files.
26566 # How to create reloadable object files.
26567 reload_flag=$lt_reload_flag
26568 reload_cmds=$lt_reload_cmds
26570 # How to pass a linker flag through the compiler.
26571 wl=$lt_lt_prog_compiler_wl_GCJ
26573 # Object file suffix (normally "o").
26574 objext="$ac_objext"
26576 # Old archive suffix (normally "a").
26579 # Shared library suffix (normally ".so").
26580 shrext_cmds='$shrext_cmds'
26582 # Executable file suffix (normally "").
26585 # Additional compiler flags for building library objects.
26586 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26589 # What is the maximum length of a command?
26590 max_cmd_len=$lt_cv_sys_max_cmd_len
26592 # Does compiler simultaneously support -c and -o options?
26593 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26595 # Must we lock files when doing compilation?
26596 need_locks=$lt_need_locks
26598 # Do we need the lib prefix for modules?
26599 need_lib_prefix=$need_lib_prefix
26601 # Do we need a version for libraries?
26602 need_version=$need_version
26604 # Whether dlopen is supported.
26605 dlopen_support=$enable_dlopen
26607 # Whether dlopen of programs is supported.
26608 dlopen_self=$enable_dlopen_self
26610 # Whether dlopen of statically linked programs is supported.
26611 dlopen_self_static=$enable_dlopen_self_static
26613 # Compiler flag to prevent dynamic linking.
26614 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26616 # Compiler flag to turn off builtin functions.
26617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26619 # Compiler flag to allow reflexive dlopens.
26620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26622 # Compiler flag to generate shared objects directly from archives.
26623 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26625 # Compiler flag to generate thread-safe objects.
26626 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26628 # Library versioning type.
26629 version_type=$version_type
26631 # Format of library name prefix.
26632 libname_spec=$lt_libname_spec
26634 # List of archive names. First name is the real one, the rest are links.
26635 # The last name is the one that the linker finds with -lNAME.
26636 library_names_spec=$lt_library_names_spec
26638 # The coded name of the library, if different from the real name.
26639 soname_spec=$lt_soname_spec
26641 # Commands used to build and install an old-style archive.
26643 old_archive_cmds=$lt_old_archive_cmds_GCJ
26644 old_postinstall_cmds=$lt_old_postinstall_cmds
26645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26647 # Create an old-style archive from a shared archive.
26648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26650 # Create a temporary old-style archive to link instead of a shared archive.
26651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26653 # Commands used to build and install a shared archive.
26654 archive_cmds=$lt_archive_cmds_GCJ
26655 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26656 postinstall_cmds=$lt_postinstall_cmds
26657 postuninstall_cmds=$lt_postuninstall_cmds
26659 # Commands used to build a loadable module (assumed same as above if empty)
26660 module_cmds=$lt_module_cmds_GCJ
26661 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26663 # Commands to strip libraries.
26664 old_striplib=$lt_old_striplib
26665 striplib=$lt_striplib
26667 # Dependencies to place before the objects being linked to create a
26669 predep_objects=$lt_predep_objects_GCJ
26671 # Dependencies to place after the objects being linked to create a
26673 postdep_objects=$lt_postdep_objects_GCJ
26675 # Dependencies to place before the objects being linked to create a
26677 predeps=$lt_predeps_GCJ
26679 # Dependencies to place after the objects being linked to create a
26681 postdeps=$lt_postdeps_GCJ
26683 # The library search path used internally by the compiler when linking
26684 # a shared library.
26685 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26687 # Method to check whether dependent libraries are shared objects.
26688 deplibs_check_method=$lt_deplibs_check_method
26690 # Command to use when deplibs_check_method == file_magic.
26691 file_magic_cmd=$lt_file_magic_cmd
26693 # Flag that allows shared libraries with undefined symbols to be built.
26694 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26696 # Flag that forces no undefined symbols.
26697 no_undefined_flag=$lt_no_undefined_flag_GCJ
26699 # Commands used to finish a libtool library installation in a directory.
26700 finish_cmds=$lt_finish_cmds
26702 # Same as above, but a single script fragment to be evaled but not shown.
26703 finish_eval=$lt_finish_eval
26705 # Take the output of nm and produce a listing of raw symbols and C names.
26706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26708 # Transform the output of nm in a proper C declaration
26709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26711 # Transform the output of nm in a C name address pair
26712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26714 # This is the shared library runtime path variable.
26715 runpath_var=$runpath_var
26717 # This is the shared library path variable.
26718 shlibpath_var=$shlibpath_var
26720 # Is shlibpath searched before the hard-coded library search path?
26721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26723 # How to hardcode a shared library path into an executable.
26724 hardcode_action=$hardcode_action_GCJ
26726 # Whether we should hardcode library paths into libraries.
26727 hardcode_into_libs=$hardcode_into_libs
26729 # Flag to hardcode \$libdir into a binary during linking.
26730 # This must work even if \$libdir does not exist.
26731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26733 # If ld is used when linking, flag to hardcode \$libdir into
26734 # a binary during linking. This must work even if \$libdir does
26736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26738 # Whether we need a single -rpath flag with a separated argument.
26739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26742 # resulting binary.
26743 hardcode_direct=$hardcode_direct_GCJ
26745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26746 # resulting binary.
26747 hardcode_minus_L=$hardcode_minus_L_GCJ
26749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26750 # the resulting binary.
26751 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26753 # Set to yes if building a shared library automatically hardcodes DIR into the library
26754 # and all subsequent libraries and executables linked against it.
26755 hardcode_automatic=$hardcode_automatic_GCJ
26757 # Variables whose values should be saved in libtool wrapper scripts and
26758 # restored at relink time.
26759 variables_saved_for_relink="$variables_saved_for_relink"
26761 # Whether libtool must link a program against all its dependency libraries.
26762 link_all_deplibs=$link_all_deplibs_GCJ
26764 # Compile-time system search path for libraries
26765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26767 # Run-time system search path for libraries
26768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26770 # Fix the shell variable \$srcfile for the compiler.
26771 fix_srcfile_path="$fix_srcfile_path_GCJ"
26773 # Set to yes if exported symbols are required.
26774 always_export_symbols=$always_export_symbols_GCJ
26776 # The commands to list exported symbols.
26777 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26779 # The commands to extract the exported symbol list from a shared archive.
26780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26782 # Symbols that should not be listed in the preloaded symbols.
26783 exclude_expsyms=$lt_exclude_expsyms_GCJ
26785 # Symbols that must always be exported.
26786 include_expsyms=$lt_include_expsyms_GCJ
26788 # ### END LIBTOOL TAG CONFIG: $tagname
26794 # If there is no Makefile yet, we rely on a make rule to execute
26795 # `config.status --recheck' to rerun these tests and create the
26796 # libtool script then.
26797 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26798 if test -f "$ltmain_in"; then
26799 test -f Makefile && make "$ltmain"
26805 ac_cpp='$CPP $CPPFLAGS'
26806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26819 ac_cpp='$CPP $CPPFLAGS'
26820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26825 # Source file extension for RC test sources.
26828 # Object file extension for compiled RC test sources.
26832 # Code to be used in simple compile tests
26833 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26835 # Code to be used in simple link tests
26836 lt_simple_link_test_code="$lt_simple_compile_test_code"
26838 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26840 # If no C compiler was specified, use CC.
26843 # If no C compiler flags were specified, use CFLAGS.
26844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26846 # Allow CC to be a program name with arguments.
26850 # save warnings/boilerplate of simple test code
26851 ac_outfile=conftest.$ac_objext
26852 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26854 _lt_compiler_boilerplate=`cat conftest.err`
26857 ac_outfile=conftest.$ac_objext
26858 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26860 _lt_linker_boilerplate=`cat conftest.err`
26864 # Allow CC to be a program name with arguments.
26869 for cc_temp in $compiler""; do
26871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26877 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26879 lt_cv_prog_compiler_c_o_RC=yes
26881 # The else clause should only fire when bootstrapping the
26882 # libtool distribution, otherwise you forgot to ship ltmain.sh
26883 # with your package, and you will get complaints that there are
26884 # no rules to generate ltmain.sh.
26885 if test -f "$ltmain"; then
26886 # See if we are running on zsh, and set the options which allow our commands through
26887 # without removal of \ escapes.
26888 if test -n "${ZSH_VERSION+set}" ; then
26889 setopt NO_GLOB_SUBST
26891 # Now quote all the things that may contain metacharacters while being
26892 # careful not to overquote the AC_SUBSTed values. We take copies of the
26893 # variables and quote the copies for generation of the libtool script.
26894 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26896 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26897 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26898 deplibs_check_method reload_flag reload_cmds need_locks \
26899 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26900 lt_cv_sys_global_symbol_to_c_name_address \
26901 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26902 old_postinstall_cmds old_postuninstall_cmds \
26906 lt_prog_compiler_wl_RC \
26907 lt_prog_compiler_pic_RC \
26908 lt_prog_compiler_static_RC \
26909 lt_prog_compiler_no_builtin_flag_RC \
26910 export_dynamic_flag_spec_RC \
26911 thread_safe_flag_spec_RC \
26912 whole_archive_flag_spec_RC \
26913 enable_shared_with_static_runtimes_RC \
26914 old_archive_cmds_RC \
26915 old_archive_from_new_cmds_RC \
26916 predep_objects_RC \
26917 postdep_objects_RC \
26920 compiler_lib_search_path_RC \
26922 archive_expsym_cmds_RC \
26923 postinstall_cmds_RC \
26924 postuninstall_cmds_RC \
26925 old_archive_from_expsyms_cmds_RC \
26926 allow_undefined_flag_RC \
26927 no_undefined_flag_RC \
26928 export_symbols_cmds_RC \
26929 hardcode_libdir_flag_spec_RC \
26930 hardcode_libdir_flag_spec_ld_RC \
26931 hardcode_libdir_separator_RC \
26932 hardcode_automatic_RC \
26934 module_expsym_cmds_RC \
26935 lt_cv_prog_compiler_c_o_RC \
26936 exclude_expsyms_RC \
26937 include_expsyms_RC; do
26940 old_archive_cmds_RC | \
26941 old_archive_from_new_cmds_RC | \
26942 archive_cmds_RC | \
26943 archive_expsym_cmds_RC | \
26945 module_expsym_cmds_RC | \
26946 old_archive_from_expsyms_cmds_RC | \
26947 export_symbols_cmds_RC | \
26948 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26949 postinstall_cmds | postuninstall_cmds | \
26950 old_postinstall_cmds | old_postuninstall_cmds | \
26951 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26952 # Double-quote double-evaled strings.
26953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26962 *'\$0 --fallback-echo"')
26963 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26969 cat <<__EOF__ >> "$cfgfile"
26970 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26972 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26974 # Shell to use when invoking shell scripts.
26977 # Whether or not to build shared libraries.
26978 build_libtool_libs=$enable_shared
26980 # Whether or not to build static libraries.
26981 build_old_libs=$enable_static
26983 # Whether or not to add -lc for building shared libraries.
26984 build_libtool_need_lc=$archive_cmds_need_lc_RC
26986 # Whether or not to disallow shared libs when runtime libs are static
26987 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26989 # Whether or not to optimize for fast installation.
26990 fast_install=$enable_fast_install
26993 host_alias=$host_alias
26997 # The build system.
26998 build_alias=$build_alias
27002 # An echo program that does not interpret backslashes.
27007 AR_FLAGS=$lt_AR_FLAGS
27012 # LTCC compiler flags.
27013 LTCFLAGS=$lt_LTCFLAGS
27015 # A language-specific compiler.
27018 # Is the compiler the GNU C compiler?
27024 # The linker used to build libraries.
27027 # Whether we need hard or soft links.
27030 # A BSD-compatible nm program.
27033 # A symbol stripping program
27036 # Used to examine libraries when file_magic_cmd begins "file"
27037 MAGIC_CMD=$MAGIC_CMD
27039 # Used on cygwin: DLL creation program.
27042 # Used on cygwin: object dumper.
27045 # Used on cygwin: assembler.
27048 # The name of the directory that contains temporary libtool files.
27051 # How to create reloadable object files.
27052 reload_flag=$lt_reload_flag
27053 reload_cmds=$lt_reload_cmds
27055 # How to pass a linker flag through the compiler.
27056 wl=$lt_lt_prog_compiler_wl_RC
27058 # Object file suffix (normally "o").
27059 objext="$ac_objext"
27061 # Old archive suffix (normally "a").
27064 # Shared library suffix (normally ".so").
27065 shrext_cmds='$shrext_cmds'
27067 # Executable file suffix (normally "").
27070 # Additional compiler flags for building library objects.
27071 pic_flag=$lt_lt_prog_compiler_pic_RC
27074 # What is the maximum length of a command?
27075 max_cmd_len=$lt_cv_sys_max_cmd_len
27077 # Does compiler simultaneously support -c and -o options?
27078 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27080 # Must we lock files when doing compilation?
27081 need_locks=$lt_need_locks
27083 # Do we need the lib prefix for modules?
27084 need_lib_prefix=$need_lib_prefix
27086 # Do we need a version for libraries?
27087 need_version=$need_version
27089 # Whether dlopen is supported.
27090 dlopen_support=$enable_dlopen
27092 # Whether dlopen of programs is supported.
27093 dlopen_self=$enable_dlopen_self
27095 # Whether dlopen of statically linked programs is supported.
27096 dlopen_self_static=$enable_dlopen_self_static
27098 # Compiler flag to prevent dynamic linking.
27099 link_static_flag=$lt_lt_prog_compiler_static_RC
27101 # Compiler flag to turn off builtin functions.
27102 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27104 # Compiler flag to allow reflexive dlopens.
27105 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27107 # Compiler flag to generate shared objects directly from archives.
27108 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27110 # Compiler flag to generate thread-safe objects.
27111 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27113 # Library versioning type.
27114 version_type=$version_type
27116 # Format of library name prefix.
27117 libname_spec=$lt_libname_spec
27119 # List of archive names. First name is the real one, the rest are links.
27120 # The last name is the one that the linker finds with -lNAME.
27121 library_names_spec=$lt_library_names_spec
27123 # The coded name of the library, if different from the real name.
27124 soname_spec=$lt_soname_spec
27126 # Commands used to build and install an old-style archive.
27128 old_archive_cmds=$lt_old_archive_cmds_RC
27129 old_postinstall_cmds=$lt_old_postinstall_cmds
27130 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27132 # Create an old-style archive from a shared archive.
27133 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27135 # Create a temporary old-style archive to link instead of a shared archive.
27136 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27138 # Commands used to build and install a shared archive.
27139 archive_cmds=$lt_archive_cmds_RC
27140 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27141 postinstall_cmds=$lt_postinstall_cmds
27142 postuninstall_cmds=$lt_postuninstall_cmds
27144 # Commands used to build a loadable module (assumed same as above if empty)
27145 module_cmds=$lt_module_cmds_RC
27146 module_expsym_cmds=$lt_module_expsym_cmds_RC
27148 # Commands to strip libraries.
27149 old_striplib=$lt_old_striplib
27150 striplib=$lt_striplib
27152 # Dependencies to place before the objects being linked to create a
27154 predep_objects=$lt_predep_objects_RC
27156 # Dependencies to place after the objects being linked to create a
27158 postdep_objects=$lt_postdep_objects_RC
27160 # Dependencies to place before the objects being linked to create a
27162 predeps=$lt_predeps_RC
27164 # Dependencies to place after the objects being linked to create a
27166 postdeps=$lt_postdeps_RC
27168 # The library search path used internally by the compiler when linking
27169 # a shared library.
27170 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27172 # Method to check whether dependent libraries are shared objects.
27173 deplibs_check_method=$lt_deplibs_check_method
27175 # Command to use when deplibs_check_method == file_magic.
27176 file_magic_cmd=$lt_file_magic_cmd
27178 # Flag that allows shared libraries with undefined symbols to be built.
27179 allow_undefined_flag=$lt_allow_undefined_flag_RC
27181 # Flag that forces no undefined symbols.
27182 no_undefined_flag=$lt_no_undefined_flag_RC
27184 # Commands used to finish a libtool library installation in a directory.
27185 finish_cmds=$lt_finish_cmds
27187 # Same as above, but a single script fragment to be evaled but not shown.
27188 finish_eval=$lt_finish_eval
27190 # Take the output of nm and produce a listing of raw symbols and C names.
27191 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27193 # Transform the output of nm in a proper C declaration
27194 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27196 # Transform the output of nm in a C name address pair
27197 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27199 # This is the shared library runtime path variable.
27200 runpath_var=$runpath_var
27202 # This is the shared library path variable.
27203 shlibpath_var=$shlibpath_var
27205 # Is shlibpath searched before the hard-coded library search path?
27206 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27208 # How to hardcode a shared library path into an executable.
27209 hardcode_action=$hardcode_action_RC
27211 # Whether we should hardcode library paths into libraries.
27212 hardcode_into_libs=$hardcode_into_libs
27214 # Flag to hardcode \$libdir into a binary during linking.
27215 # This must work even if \$libdir does not exist.
27216 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27218 # If ld is used when linking, flag to hardcode \$libdir into
27219 # a binary during linking. This must work even if \$libdir does
27221 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27223 # Whether we need a single -rpath flag with a separated argument.
27224 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27226 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27227 # resulting binary.
27228 hardcode_direct=$hardcode_direct_RC
27230 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27231 # resulting binary.
27232 hardcode_minus_L=$hardcode_minus_L_RC
27234 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27235 # the resulting binary.
27236 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27238 # Set to yes if building a shared library automatically hardcodes DIR into the library
27239 # and all subsequent libraries and executables linked against it.
27240 hardcode_automatic=$hardcode_automatic_RC
27242 # Variables whose values should be saved in libtool wrapper scripts and
27243 # restored at relink time.
27244 variables_saved_for_relink="$variables_saved_for_relink"
27246 # Whether libtool must link a program against all its dependency libraries.
27247 link_all_deplibs=$link_all_deplibs_RC
27249 # Compile-time system search path for libraries
27250 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27252 # Run-time system search path for libraries
27253 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27255 # Fix the shell variable \$srcfile for the compiler.
27256 fix_srcfile_path="$fix_srcfile_path_RC"
27258 # Set to yes if exported symbols are required.
27259 always_export_symbols=$always_export_symbols_RC
27261 # The commands to list exported symbols.
27262 export_symbols_cmds=$lt_export_symbols_cmds_RC
27264 # The commands to extract the exported symbol list from a shared archive.
27265 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27267 # Symbols that should not be listed in the preloaded symbols.
27268 exclude_expsyms=$lt_exclude_expsyms_RC
27270 # Symbols that must always be exported.
27271 include_expsyms=$lt_include_expsyms_RC
27273 # ### END LIBTOOL TAG CONFIG: $tagname
27279 # If there is no Makefile yet, we rely on a make rule to execute
27280 # `config.status --recheck' to rerun these tests and create the
27281 # libtool script then.
27282 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27283 if test -f "$ltmain_in"; then
27284 test -f Makefile && make "$ltmain"
27290 ac_cpp='$CPP $CPPFLAGS'
27291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27300 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27301 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27302 { (exit 1); exit 1; }; }
27306 # Append the new tag name to the list of available tags.
27307 if test -n "$tagname" ; then
27308 available_tags="$available_tags $tagname"
27314 # Now substitute the updated list of available tags.
27315 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27316 mv "${ofile}T" "$ofile"
27320 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27321 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27322 { (exit 1); exit 1; }; }
27328 # This can be used to rebuild libtool when needed
27329 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27331 # Always use our own libtool.
27332 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27334 # Prevent multiple expansion
27356 if test "$lt_cv_dlopen_self" = "yes" ; then
27358 cat >>confdefs.h <<\_ACEOF
27359 #define CAN_DLOPEN_SELF 1
27365 if test "$WITH_LLVMGCCDIR" = "default" ; then
27366 LLVMGCC="llvm-gcc${EXEEXT}"
27367 LLVMGXX="llvm-g++${EXEEXT}"
27368 LLVMGCCCOMMAND="$LLVMGCC"
27369 LLVMGXXCOMMAND="$LLVMGXX"
27370 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27372 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27374 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27375 set dummy $LLVMGCC; ac_word=$2
27376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27378 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27379 echo $ECHO_N "(cached) $ECHO_C" >&6
27383 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27387 for as_dir in $PATH
27390 test -z "$as_dir" && as_dir=.
27391 for ac_exec_ext in '' $ac_executable_extensions; do
27392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27393 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27404 LLVMGCC=$ac_cv_path_LLVMGCC
27405 if test -n "$LLVMGCC"; then
27406 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27407 echo "${ECHO_T}$LLVMGCC" >&6; }
27409 { echo "$as_me:$LINENO: result: no" >&5
27410 echo "${ECHO_T}no" >&6; }
27414 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27415 set dummy $LLVMGXX; ac_word=$2
27416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27418 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27419 echo $ECHO_N "(cached) $ECHO_C" >&6
27423 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27427 for as_dir in $PATH
27430 test -z "$as_dir" && as_dir=.
27431 for ac_exec_ext in '' $ac_executable_extensions; do
27432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27433 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27444 LLVMGXX=$ac_cv_path_LLVMGXX
27445 if test -n "$LLVMGXX"; then
27446 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27447 echo "${ECHO_T}$LLVMGXX" >&6; }
27449 { echo "$as_me:$LINENO: result: no" >&5
27450 echo "${ECHO_T}no" >&6; }
27455 if test -z "$LLVMGCC"; then
27456 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27457 LLVMGCCCOMMAND="$LLVMGCC"
27459 if test -z "$LLVMGXX"; then
27460 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27461 LLVMGXXCOMMAND="$LLVMGXX"
27468 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27470 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27475 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27476 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27489 if test "$GCC" != "yes" && test "$ICC" != "yes"
27491 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27492 echo "$as_me: error: gcc|icc required but not found" >&2;}
27493 { (exit 1); exit 1; }; }
27496 if test "$GXX" != "yes" && test "$IXX" != "yes"
27498 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27499 echo "$as_me: error: g++|icc required but not found" >&2;}
27500 { (exit 1); exit 1; }; }
27503 if test "$GCC" = "yes"
27505 cat >conftest.$ac_ext <<_ACEOF
27506 #if !defined(__GNUC__) || __GNUC__ < 3
27507 #error Unsupported GCC version
27511 rm -f conftest.$ac_objext
27512 if { (ac_try="$ac_compile"
27513 case "(($ac_try" in
27514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518 (eval "$ac_compile") 2>conftest.er1
27520 grep -v '^ *+' conftest.er1 >conftest.err
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } &&
27525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27526 { (case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_try") 2>&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; } &&
27535 { ac_try='test -s conftest.$ac_objext'
27536 { (case "(($ac_try" in
27537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538 *) ac_try_echo=$ac_try;;
27540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27541 (eval "$ac_try") 2>&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; }; then
27547 echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27550 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27551 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27552 { (exit 1); exit 1; }; }
27555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27558 if test -z "$llvm_cv_gnu_make_command"
27560 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27561 echo "$as_me: error: GNU Make required but not found" >&2;}
27562 { (exit 1); exit 1; }; }
27565 { echo "$as_me:$LINENO: result: ok" >&5
27566 echo "${ECHO_T}ok" >&6; }
27568 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
27569 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27570 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27572 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27574 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27575 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27579 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27580 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27581 if test "${ac_cv_lib_m_sin+set}" = set; then
27582 echo $ECHO_N "(cached) $ECHO_C" >&6
27584 ac_check_lib_save_LIBS=$LIBS
27586 cat >conftest.$ac_ext <<_ACEOF
27589 cat confdefs.h >>conftest.$ac_ext
27590 cat >>conftest.$ac_ext <<_ACEOF
27591 /* end confdefs.h. */
27593 /* Override any GCC internal prototype to avoid an error.
27594 Use char because int might match the return type of a GCC
27595 builtin and then its argument prototype would still apply. */
27608 rm -f conftest.$ac_objext conftest$ac_exeext
27609 if { (ac_try="$ac_link"
27610 case "(($ac_try" in
27611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612 *) ac_try_echo=$ac_try;;
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615 (eval "$ac_link") 2>conftest.er1
27617 grep -v '^ *+' conftest.er1 >conftest.err
27619 cat conftest.err >&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } &&
27622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27623 { (case "(($ac_try" in
27624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625 *) ac_try_echo=$ac_try;;
27627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27628 (eval "$ac_try") 2>&5
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; } &&
27632 { ac_try='test -s conftest$ac_exeext'
27633 { (case "(($ac_try" in
27634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27635 *) ac_try_echo=$ac_try;;
27637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27638 (eval "$ac_try") 2>&5
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; }; then
27642 ac_cv_lib_m_sin=yes
27644 echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27650 rm -f core conftest.err conftest.$ac_objext \
27651 conftest$ac_exeext conftest.$ac_ext
27652 LIBS=$ac_check_lib_save_LIBS
27654 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27655 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27656 if test $ac_cv_lib_m_sin = yes; then
27657 cat >>confdefs.h <<_ACEOF
27658 #define HAVE_LIBM 1
27665 if test "$llvm_cv_os_type" = "MingW" ; then
27667 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27668 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27669 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27672 ac_check_lib_save_LIBS=$LIBS
27673 LIBS="-limagehlp $LIBS"
27674 cat >conftest.$ac_ext <<_ACEOF
27677 cat confdefs.h >>conftest.$ac_ext
27678 cat >>conftest.$ac_ext <<_ACEOF
27679 /* end confdefs.h. */
27690 rm -f conftest.$ac_objext conftest$ac_exeext
27691 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27699 grep -v '^ *+' conftest.er1 >conftest.err
27701 cat conftest.err >&5
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); } &&
27704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27705 { (case "(($ac_try" in
27706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27707 *) ac_try_echo=$ac_try;;
27709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27710 (eval "$ac_try") 2>&5
27712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); }; } &&
27714 { ac_try='test -s conftest$ac_exeext'
27715 { (case "(($ac_try" in
27716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717 *) ac_try_echo=$ac_try;;
27719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720 (eval "$ac_try") 2>&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; }; then
27724 ac_cv_lib_imagehlp_main=yes
27726 echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27729 ac_cv_lib_imagehlp_main=no
27732 rm -f core conftest.err conftest.$ac_objext \
27733 conftest$ac_exeext conftest.$ac_ext
27734 LIBS=$ac_check_lib_save_LIBS
27736 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27737 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27738 if test $ac_cv_lib_imagehlp_main = yes; then
27739 cat >>confdefs.h <<_ACEOF
27740 #define HAVE_LIBIMAGEHLP 1
27743 LIBS="-limagehlp $LIBS"
27748 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27749 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27750 if test "${ac_cv_lib_psapi_main+set}" = set; then
27751 echo $ECHO_N "(cached) $ECHO_C" >&6
27753 ac_check_lib_save_LIBS=$LIBS
27754 LIBS="-lpsapi $LIBS"
27755 cat >conftest.$ac_ext <<_ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h. */
27771 rm -f conftest.$ac_objext conftest$ac_exeext
27772 if { (ac_try="$ac_link"
27773 case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_link") 2>conftest.er1
27780 grep -v '^ *+' conftest.er1 >conftest.err
27782 cat conftest.err >&5
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); } &&
27785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27786 { (case "(($ac_try" in
27787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788 *) ac_try_echo=$ac_try;;
27790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27791 (eval "$ac_try") 2>&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); }; } &&
27795 { ac_try='test -s conftest$ac_exeext'
27796 { (case "(($ac_try" in
27797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27798 *) ac_try_echo=$ac_try;;
27800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27801 (eval "$ac_try") 2>&5
27803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); }; }; then
27805 ac_cv_lib_psapi_main=yes
27807 echo "$as_me: failed program was:" >&5
27808 sed 's/^/| /' conftest.$ac_ext >&5
27810 ac_cv_lib_psapi_main=no
27813 rm -f core conftest.err conftest.$ac_objext \
27814 conftest$ac_exeext conftest.$ac_ext
27815 LIBS=$ac_check_lib_save_LIBS
27817 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27818 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27819 if test $ac_cv_lib_psapi_main = yes; then
27820 cat >>confdefs.h <<_ACEOF
27821 #define HAVE_LIBPSAPI 1
27824 LIBS="-lpsapi $LIBS"
27830 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27831 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27832 if test "${ac_cv_search_dlopen+set}" = set; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27835 ac_func_search_save_LIBS=$LIBS
27836 cat >conftest.$ac_ext <<_ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h. */
27843 /* Override any GCC internal prototype to avoid an error.
27844 Use char because int might match the return type of a GCC
27845 builtin and then its argument prototype would still apply. */
27858 for ac_lib in '' dl; do
27859 if test -z "$ac_lib"; then
27860 ac_res="none required"
27863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27865 rm -f conftest.$ac_objext conftest$ac_exeext
27866 if { (ac_try="$ac_link"
27867 case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_link") 2>conftest.er1
27874 grep -v '^ *+' conftest.er1 >conftest.err
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } &&
27879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880 { (case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_try") 2>&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest$ac_exeext'
27890 { (case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895 (eval "$ac_try") 2>&5
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 ac_cv_search_dlopen=$ac_res
27901 echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27907 rm -f core conftest.err conftest.$ac_objext \
27909 if test "${ac_cv_search_dlopen+set}" = set; then
27913 if test "${ac_cv_search_dlopen+set}" = set; then
27916 ac_cv_search_dlopen=no
27918 rm conftest.$ac_ext
27919 LIBS=$ac_func_search_save_LIBS
27921 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27922 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27923 ac_res=$ac_cv_search_dlopen
27924 if test "$ac_res" != no; then
27925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27927 cat >>confdefs.h <<\_ACEOF
27928 #define HAVE_DLOPEN 1
27932 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27933 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27937 if test "$llvm_cv_enable_libffi" = "yes" ; then
27938 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27939 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27940 if test "${ac_cv_search_ffi_call+set}" = set; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27943 ac_func_search_save_LIBS=$LIBS
27944 cat >conftest.$ac_ext <<_ACEOF
27947 cat confdefs.h >>conftest.$ac_ext
27948 cat >>conftest.$ac_ext <<_ACEOF
27949 /* end confdefs.h. */
27951 /* Override any GCC internal prototype to avoid an error.
27952 Use char because int might match the return type of a GCC
27953 builtin and then its argument prototype would still apply. */
27961 return ffi_call ();
27966 for ac_lib in '' ffi; do
27967 if test -z "$ac_lib"; then
27968 ac_res="none required"
27971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27973 rm -f conftest.$ac_objext conftest$ac_exeext
27974 if { (ac_try="$ac_link"
27975 case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980 (eval "$ac_link") 2>conftest.er1
27982 grep -v '^ *+' conftest.er1 >conftest.err
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } &&
27987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27988 { (case "(($ac_try" in
27989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990 *) ac_try_echo=$ac_try;;
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993 (eval "$ac_try") 2>&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; } &&
27997 { ac_try='test -s conftest$ac_exeext'
27998 { (case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_try") 2>&5
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); }; }; then
28007 ac_cv_search_ffi_call=$ac_res
28009 echo "$as_me: failed program was:" >&5
28010 sed 's/^/| /' conftest.$ac_ext >&5
28015 rm -f core conftest.err conftest.$ac_objext \
28017 if test "${ac_cv_search_ffi_call+set}" = set; then
28021 if test "${ac_cv_search_ffi_call+set}" = set; then
28024 ac_cv_search_ffi_call=no
28026 rm conftest.$ac_ext
28027 LIBS=$ac_func_search_save_LIBS
28029 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
28030 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
28031 ac_res=$ac_cv_search_ffi_call
28032 if test "$ac_res" != no; then
28033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28035 cat >>confdefs.h <<\_ACEOF
28036 #define HAVE_FFI_CALL 1
28040 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
28041 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
28046 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
28047 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
28048 if test "${ac_cv_search_mallinfo+set}" = set; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28051 ac_func_search_save_LIBS=$LIBS
28052 cat >conftest.$ac_ext <<_ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h. */
28059 /* Override any GCC internal prototype to avoid an error.
28060 Use char because int might match the return type of a GCC
28061 builtin and then its argument prototype would still apply. */
28069 return mallinfo ();
28074 for ac_lib in '' malloc; do
28075 if test -z "$ac_lib"; then
28076 ac_res="none required"
28079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28081 rm -f conftest.$ac_objext conftest$ac_exeext
28082 if { (ac_try="$ac_link"
28083 case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_link") 2>conftest.er1
28090 grep -v '^ *+' conftest.er1 >conftest.err
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); } &&
28095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28096 { (case "(($ac_try" in
28097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28098 *) ac_try_echo=$ac_try;;
28100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28101 (eval "$ac_try") 2>&5
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); }; } &&
28105 { ac_try='test -s conftest$ac_exeext'
28106 { (case "(($ac_try" in
28107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108 *) ac_try_echo=$ac_try;;
28110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111 (eval "$ac_try") 2>&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); }; }; then
28115 ac_cv_search_mallinfo=$ac_res
28117 echo "$as_me: failed program was:" >&5
28118 sed 's/^/| /' conftest.$ac_ext >&5
28123 rm -f core conftest.err conftest.$ac_objext \
28125 if test "${ac_cv_search_mallinfo+set}" = set; then
28129 if test "${ac_cv_search_mallinfo+set}" = set; then
28132 ac_cv_search_mallinfo=no
28134 rm conftest.$ac_ext
28135 LIBS=$ac_func_search_save_LIBS
28137 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28138 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28139 ac_res=$ac_cv_search_mallinfo
28140 if test "$ac_res" != no; then
28141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28143 cat >>confdefs.h <<\_ACEOF
28144 #define HAVE_MALLINFO 1
28150 if test "$ENABLE_THREADS" -eq 1 ; then
28152 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28153 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28154 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28155 echo $ECHO_N "(cached) $ECHO_C" >&6
28157 ac_check_lib_save_LIBS=$LIBS
28158 LIBS="-lpthread $LIBS"
28159 cat >conftest.$ac_ext <<_ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h. */
28166 /* Override any GCC internal prototype to avoid an error.
28167 Use char because int might match the return type of a GCC
28168 builtin and then its argument prototype would still apply. */
28172 char pthread_mutex_init ();
28176 return pthread_mutex_init ();
28181 rm -f conftest.$ac_objext conftest$ac_exeext
28182 if { (ac_try="$ac_link"
28183 case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_link") 2>conftest.er1
28190 grep -v '^ *+' conftest.er1 >conftest.err
28192 cat conftest.err >&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); } &&
28195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28196 { (case "(($ac_try" in
28197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28198 *) ac_try_echo=$ac_try;;
28200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28201 (eval "$ac_try") 2>&5
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); }; } &&
28205 { ac_try='test -s conftest$ac_exeext'
28206 { (case "(($ac_try" in
28207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28208 *) ac_try_echo=$ac_try;;
28210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28211 (eval "$ac_try") 2>&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); }; }; then
28215 ac_cv_lib_pthread_pthread_mutex_init=yes
28217 echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28220 ac_cv_lib_pthread_pthread_mutex_init=no
28223 rm -f core conftest.err conftest.$ac_objext \
28224 conftest$ac_exeext conftest.$ac_ext
28225 LIBS=$ac_check_lib_save_LIBS
28227 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28228 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28229 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28230 cat >>confdefs.h <<_ACEOF
28231 #define HAVE_LIBPTHREAD 1
28234 LIBS="-lpthread $LIBS"
28238 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28239 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28240 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28243 ac_func_search_save_LIBS=$LIBS
28244 cat >conftest.$ac_ext <<_ACEOF
28247 cat confdefs.h >>conftest.$ac_ext
28248 cat >>conftest.$ac_ext <<_ACEOF
28249 /* end confdefs.h. */
28251 /* Override any GCC internal prototype to avoid an error.
28252 Use char because int might match the return type of a GCC
28253 builtin and then its argument prototype would still apply. */
28257 char pthread_mutex_lock ();
28261 return pthread_mutex_lock ();
28266 for ac_lib in '' pthread; do
28267 if test -z "$ac_lib"; then
28268 ac_res="none required"
28271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28273 rm -f conftest.$ac_objext conftest$ac_exeext
28274 if { (ac_try="$ac_link"
28275 case "(($ac_try" in
28276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28277 *) ac_try_echo=$ac_try;;
28279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28280 (eval "$ac_link") 2>conftest.er1
28282 grep -v '^ *+' conftest.er1 >conftest.err
28284 cat conftest.err >&5
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); } &&
28287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28288 { (case "(($ac_try" in
28289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290 *) ac_try_echo=$ac_try;;
28292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293 (eval "$ac_try") 2>&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; } &&
28297 { ac_try='test -s conftest$ac_exeext'
28298 { (case "(($ac_try" in
28299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28300 *) ac_try_echo=$ac_try;;
28302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303 (eval "$ac_try") 2>&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; }; then
28307 ac_cv_search_pthread_mutex_lock=$ac_res
28309 echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28315 rm -f core conftest.err conftest.$ac_objext \
28317 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28321 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28324 ac_cv_search_pthread_mutex_lock=no
28326 rm conftest.$ac_ext
28327 LIBS=$ac_func_search_save_LIBS
28329 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28330 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28331 ac_res=$ac_cv_search_pthread_mutex_lock
28332 if test "$ac_res" != no; then
28333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28335 cat >>confdefs.h <<\_ACEOF
28336 #define HAVE_PTHREAD_MUTEX_LOCK 1
28341 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28342 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28343 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28344 echo $ECHO_N "(cached) $ECHO_C" >&6
28346 ac_func_search_save_LIBS=$LIBS
28347 cat >conftest.$ac_ext <<_ACEOF
28350 cat confdefs.h >>conftest.$ac_ext
28351 cat >>conftest.$ac_ext <<_ACEOF
28352 /* end confdefs.h. */
28354 /* Override any GCC internal prototype to avoid an error.
28355 Use char because int might match the return type of a GCC
28356 builtin and then its argument prototype would still apply. */
28360 char pthread_rwlock_init ();
28364 return pthread_rwlock_init ();
28369 for ac_lib in '' pthread; do
28370 if test -z "$ac_lib"; then
28371 ac_res="none required"
28374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28376 rm -f conftest.$ac_objext conftest$ac_exeext
28377 if { (ac_try="$ac_link"
28378 case "(($ac_try" in
28379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28380 *) ac_try_echo=$ac_try;;
28382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28383 (eval "$ac_link") 2>conftest.er1
28385 grep -v '^ *+' conftest.er1 >conftest.err
28387 cat conftest.err >&5
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } &&
28390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28391 { (case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_try") 2>&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; } &&
28400 { ac_try='test -s conftest$ac_exeext'
28401 { (case "(($ac_try" in
28402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28403 *) ac_try_echo=$ac_try;;
28405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28406 (eval "$ac_try") 2>&5
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); }; }; then
28410 ac_cv_search_pthread_rwlock_init=$ac_res
28412 echo "$as_me: failed program was:" >&5
28413 sed 's/^/| /' conftest.$ac_ext >&5
28418 rm -f core conftest.err conftest.$ac_objext \
28420 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28424 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28427 ac_cv_search_pthread_rwlock_init=no
28429 rm conftest.$ac_ext
28430 LIBS=$ac_func_search_save_LIBS
28432 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28433 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28434 ac_res=$ac_cv_search_pthread_rwlock_init
28435 if test "$ac_res" != no; then
28436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28438 cat >>confdefs.h <<\_ACEOF
28439 #define HAVE_PTHREAD_RWLOCK_INIT 1
28444 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28445 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28446 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28447 echo $ECHO_N "(cached) $ECHO_C" >&6
28449 ac_func_search_save_LIBS=$LIBS
28450 cat >conftest.$ac_ext <<_ACEOF
28453 cat confdefs.h >>conftest.$ac_ext
28454 cat >>conftest.$ac_ext <<_ACEOF
28455 /* end confdefs.h. */
28457 /* Override any GCC internal prototype to avoid an error.
28458 Use char because int might match the return type of a GCC
28459 builtin and then its argument prototype would still apply. */
28463 char pthread_getspecific ();
28467 return pthread_getspecific ();
28472 for ac_lib in '' pthread; do
28473 if test -z "$ac_lib"; then
28474 ac_res="none required"
28477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28479 rm -f conftest.$ac_objext conftest$ac_exeext
28480 if { (ac_try="$ac_link"
28481 case "(($ac_try" in
28482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483 *) ac_try_echo=$ac_try;;
28485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486 (eval "$ac_link") 2>conftest.er1
28488 grep -v '^ *+' conftest.er1 >conftest.err
28490 cat conftest.err >&5
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); } &&
28493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28494 { (case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_try") 2>&5
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); }; } &&
28503 { ac_try='test -s conftest$ac_exeext'
28504 { (case "(($ac_try" in
28505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28506 *) ac_try_echo=$ac_try;;
28508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28509 (eval "$ac_try") 2>&5
28511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512 (exit $ac_status); }; }; then
28513 ac_cv_search_pthread_getspecific=$ac_res
28515 echo "$as_me: failed program was:" >&5
28516 sed 's/^/| /' conftest.$ac_ext >&5
28521 rm -f core conftest.err conftest.$ac_objext \
28523 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28527 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28530 ac_cv_search_pthread_getspecific=no
28532 rm conftest.$ac_ext
28533 LIBS=$ac_func_search_save_LIBS
28535 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28536 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28537 ac_res=$ac_cv_search_pthread_getspecific
28538 if test "$ac_res" != no; then
28539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28541 cat >>confdefs.h <<\_ACEOF
28542 #define HAVE_PTHREAD_GETSPECIFIC 1
28550 # Check whether --with-udis86 was given.
28551 if test "${with_udis86+set}" = set; then
28552 withval=$with_udis86;
28557 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28560 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28561 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28562 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28563 echo $ECHO_N "(cached) $ECHO_C" >&6
28565 ac_check_lib_save_LIBS=$LIBS
28566 LIBS="-ludis86 $LIBS"
28567 cat >conftest.$ac_ext <<_ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h. */
28574 /* Override any GCC internal prototype to avoid an error.
28575 Use char because int might match the return type of a GCC
28576 builtin and then its argument prototype would still apply. */
28589 rm -f conftest.$ac_objext conftest$ac_exeext
28590 if { (ac_try="$ac_link"
28591 case "(($ac_try" in
28592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596 (eval "$ac_link") 2>conftest.er1
28598 grep -v '^ *+' conftest.er1 >conftest.err
28600 cat conftest.err >&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); } &&
28603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28604 { (case "(($ac_try" in
28605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606 *) ac_try_echo=$ac_try;;
28608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28609 (eval "$ac_try") 2>&5
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; } &&
28613 { ac_try='test -s conftest$ac_exeext'
28614 { (case "(($ac_try" in
28615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616 *) ac_try_echo=$ac_try;;
28618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619 (eval "$ac_try") 2>&5
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); }; }; then
28623 ac_cv_lib_udis86_ud_init=yes
28625 echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28628 ac_cv_lib_udis86_ud_init=no
28631 rm -f core conftest.err conftest.$ac_objext \
28632 conftest$ac_exeext conftest.$ac_ext
28633 LIBS=$ac_check_lib_save_LIBS
28635 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28636 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28637 if test $ac_cv_lib_udis86_ud_init = yes; then
28638 cat >>confdefs.h <<_ACEOF
28639 #define HAVE_LIBUDIS86 1
28642 LIBS="-ludis86 $LIBS"
28646 echo "Error! You need to have libudis86 around."
28658 cat >>confdefs.h <<_ACEOF
28659 #define USE_UDIS86 $USE_UDIS86
28664 # Check whether --with-oprofile was given.
28665 if test "${with_oprofile+set}" = set; then
28666 withval=$with_oprofile;
28670 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28671 no) llvm_cv_oppath=
28674 *) llvm_cv_oppath="${withval}/lib/oprofile"
28675 CPPFLAGS="-I${withval}/include";;
28677 if test -n "$llvm_cv_oppath" ; then
28678 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28679 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28680 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28681 if test "${ac_cv_search_bfd_init+set}" = set; then
28682 echo $ECHO_N "(cached) $ECHO_C" >&6
28684 ac_func_search_save_LIBS=$LIBS
28685 cat >conftest.$ac_ext <<_ACEOF
28688 cat confdefs.h >>conftest.$ac_ext
28689 cat >>conftest.$ac_ext <<_ACEOF
28690 /* end confdefs.h. */
28692 /* Override any GCC internal prototype to avoid an error.
28693 Use char because int might match the return type of a GCC
28694 builtin and then its argument prototype would still apply. */
28702 return bfd_init ();
28707 for ac_lib in '' bfd; do
28708 if test -z "$ac_lib"; then
28709 ac_res="none required"
28712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28714 rm -f conftest.$ac_objext conftest$ac_exeext
28715 if { (ac_try="$ac_link"
28716 case "(($ac_try" in
28717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718 *) ac_try_echo=$ac_try;;
28720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721 (eval "$ac_link") 2>conftest.er1
28723 grep -v '^ *+' conftest.er1 >conftest.err
28725 cat conftest.err >&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } &&
28728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28729 { (case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; } &&
28738 { ac_try='test -s conftest$ac_exeext'
28739 { (case "(($ac_try" in
28740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_try") 2>&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; }; then
28748 ac_cv_search_bfd_init=$ac_res
28750 echo "$as_me: failed program was:" >&5
28751 sed 's/^/| /' conftest.$ac_ext >&5
28756 rm -f core conftest.err conftest.$ac_objext \
28758 if test "${ac_cv_search_bfd_init+set}" = set; then
28762 if test "${ac_cv_search_bfd_init+set}" = set; then
28765 ac_cv_search_bfd_init=no
28767 rm conftest.$ac_ext
28768 LIBS=$ac_func_search_save_LIBS
28770 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28771 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28772 ac_res=$ac_cv_search_bfd_init
28773 if test "$ac_res" != no; then
28774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28778 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28779 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28780 if test "${ac_cv_search_op_open_agent+set}" = set; then
28781 echo $ECHO_N "(cached) $ECHO_C" >&6
28783 ac_func_search_save_LIBS=$LIBS
28784 cat >conftest.$ac_ext <<_ACEOF
28787 cat confdefs.h >>conftest.$ac_ext
28788 cat >>conftest.$ac_ext <<_ACEOF
28789 /* end confdefs.h. */
28791 /* Override any GCC internal prototype to avoid an error.
28792 Use char because int might match the return type of a GCC
28793 builtin and then its argument prototype would still apply. */
28797 char op_open_agent ();
28801 return op_open_agent ();
28806 for ac_lib in '' opagent; do
28807 if test -z "$ac_lib"; then
28808 ac_res="none required"
28811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28813 rm -f conftest.$ac_objext conftest$ac_exeext
28814 if { (ac_try="$ac_link"
28815 case "(($ac_try" in
28816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28817 *) ac_try_echo=$ac_try;;
28819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28820 (eval "$ac_link") 2>conftest.er1
28822 grep -v '^ *+' conftest.er1 >conftest.err
28824 cat conftest.err >&5
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); } &&
28827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28828 { (case "(($ac_try" in
28829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28830 *) ac_try_echo=$ac_try;;
28832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28833 (eval "$ac_try") 2>&5
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; } &&
28837 { ac_try='test -s conftest$ac_exeext'
28838 { (case "(($ac_try" in
28839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28840 *) ac_try_echo=$ac_try;;
28842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28843 (eval "$ac_try") 2>&5
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; }; then
28847 ac_cv_search_op_open_agent=$ac_res
28849 echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28855 rm -f core conftest.err conftest.$ac_objext \
28857 if test "${ac_cv_search_op_open_agent+set}" = set; then
28861 if test "${ac_cv_search_op_open_agent+set}" = set; then
28864 ac_cv_search_op_open_agent=no
28866 rm conftest.$ac_ext
28867 LIBS=$ac_func_search_save_LIBS
28869 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28870 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28871 ac_res=$ac_cv_search_op_open_agent
28872 if test "$ac_res" != no; then
28873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28877 echo "Error! You need to have libopagent around."
28882 if test "${ac_cv_header_opagent_h+set}" = set; then
28883 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28884 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28885 if test "${ac_cv_header_opagent_h+set}" = set; then
28886 echo $ECHO_N "(cached) $ECHO_C" >&6
28888 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28889 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28891 # Is the header compilable?
28892 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28893 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28894 cat >conftest.$ac_ext <<_ACEOF
28897 cat confdefs.h >>conftest.$ac_ext
28898 cat >>conftest.$ac_ext <<_ACEOF
28899 /* end confdefs.h. */
28900 $ac_includes_default
28901 #include <opagent.h>
28903 rm -f conftest.$ac_objext
28904 if { (ac_try="$ac_compile"
28905 case "(($ac_try" in
28906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907 *) ac_try_echo=$ac_try;;
28909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910 (eval "$ac_compile") 2>conftest.er1
28912 grep -v '^ *+' conftest.er1 >conftest.err
28914 cat conftest.err >&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } &&
28917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28927 { ac_try='test -s conftest.$ac_objext'
28928 { (case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933 (eval "$ac_try") 2>&5
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; }; then
28937 ac_header_compiler=yes
28939 echo "$as_me: failed program was:" >&5
28940 sed 's/^/| /' conftest.$ac_ext >&5
28942 ac_header_compiler=no
28945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28947 echo "${ECHO_T}$ac_header_compiler" >&6; }
28949 # Is the header present?
28950 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28951 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28952 cat >conftest.$ac_ext <<_ACEOF
28955 cat confdefs.h >>conftest.$ac_ext
28956 cat >>conftest.$ac_ext <<_ACEOF
28957 /* end confdefs.h. */
28958 #include <opagent.h>
28960 if { (ac_try="$ac_cpp conftest.$ac_ext"
28961 case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28968 grep -v '^ *+' conftest.er1 >conftest.err
28970 cat conftest.err >&5
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); } >/dev/null; then
28973 if test -s conftest.err; then
28974 ac_cpp_err=$ac_c_preproc_warn_flag
28975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28982 if test -z "$ac_cpp_err"; then
28983 ac_header_preproc=yes
28985 echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28988 ac_header_preproc=no
28991 rm -f conftest.err conftest.$ac_ext
28992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28993 echo "${ECHO_T}$ac_header_preproc" >&6; }
28995 # So? What about this header?
28996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28998 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28999 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29000 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29001 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29002 ac_header_preproc=yes
29005 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29006 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29008 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29010 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29012 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29014 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29016 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29018 ## ----------------------------------- ##
29019 ## Report this to llvmbugs@cs.uiuc.edu ##
29020 ## ----------------------------------- ##
29022 ) | sed "s/^/$as_me: WARNING: /" >&2
29025 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29026 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29027 if test "${ac_cv_header_opagent_h+set}" = set; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29030 ac_cv_header_opagent_h=$ac_header_preproc
29032 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29033 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29036 if test $ac_cv_header_opagent_h = yes; then
29040 echo "Error! You need to have opagent.h around."
29056 cat >>confdefs.h <<_ACEOF
29057 #define USE_OPROFILE $USE_OPROFILE
29067 ac_header_dirent=no
29068 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29069 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29070 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29071 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29073 echo $ECHO_N "(cached) $ECHO_C" >&6
29075 cat >conftest.$ac_ext <<_ACEOF
29078 cat confdefs.h >>conftest.$ac_ext
29079 cat >>conftest.$ac_ext <<_ACEOF
29080 /* end confdefs.h. */
29081 #include <sys/types.h>
29093 rm -f conftest.$ac_objext
29094 if { (ac_try="$ac_compile"
29095 case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_compile") 2>conftest.er1
29102 grep -v '^ *+' conftest.er1 >conftest.err
29104 cat conftest.err >&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } &&
29107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29108 { (case "(($ac_try" in
29109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29110 *) ac_try_echo=$ac_try;;
29112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29113 (eval "$ac_try") 2>&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); }; } &&
29117 { ac_try='test -s conftest.$ac_objext'
29118 { (case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123 (eval "$ac_try") 2>&5
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); }; }; then
29127 eval "$as_ac_Header=yes"
29129 echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29132 eval "$as_ac_Header=no"
29135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29137 ac_res=`eval echo '${'$as_ac_Header'}'`
29138 { echo "$as_me:$LINENO: result: $ac_res" >&5
29139 echo "${ECHO_T}$ac_res" >&6; }
29140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29141 cat >>confdefs.h <<_ACEOF
29142 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29145 ac_header_dirent=$ac_hdr; break
29149 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29150 if test $ac_header_dirent = dirent.h; then
29151 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29152 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29153 if test "${ac_cv_search_opendir+set}" = set; then
29154 echo $ECHO_N "(cached) $ECHO_C" >&6
29156 ac_func_search_save_LIBS=$LIBS
29157 cat >conftest.$ac_ext <<_ACEOF
29160 cat confdefs.h >>conftest.$ac_ext
29161 cat >>conftest.$ac_ext <<_ACEOF
29162 /* end confdefs.h. */
29164 /* Override any GCC internal prototype to avoid an error.
29165 Use char because int might match the return type of a GCC
29166 builtin and then its argument prototype would still apply. */
29179 for ac_lib in '' dir; do
29180 if test -z "$ac_lib"; then
29181 ac_res="none required"
29184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29186 rm -f conftest.$ac_objext conftest$ac_exeext
29187 if { (ac_try="$ac_link"
29188 case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193 (eval "$ac_link") 2>conftest.er1
29195 grep -v '^ *+' conftest.er1 >conftest.err
29197 cat conftest.err >&5
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); } &&
29200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29201 { (case "(($ac_try" in
29202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29203 *) ac_try_echo=$ac_try;;
29205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29206 (eval "$ac_try") 2>&5
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; } &&
29210 { ac_try='test -s conftest$ac_exeext'
29211 { (case "(($ac_try" in
29212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29213 *) ac_try_echo=$ac_try;;
29215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29216 (eval "$ac_try") 2>&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 ac_cv_search_opendir=$ac_res
29222 echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29228 rm -f core conftest.err conftest.$ac_objext \
29230 if test "${ac_cv_search_opendir+set}" = set; then
29234 if test "${ac_cv_search_opendir+set}" = set; then
29237 ac_cv_search_opendir=no
29239 rm conftest.$ac_ext
29240 LIBS=$ac_func_search_save_LIBS
29242 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29243 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29244 ac_res=$ac_cv_search_opendir
29245 if test "$ac_res" != no; then
29246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29251 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29252 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29253 if test "${ac_cv_search_opendir+set}" = set; then
29254 echo $ECHO_N "(cached) $ECHO_C" >&6
29256 ac_func_search_save_LIBS=$LIBS
29257 cat >conftest.$ac_ext <<_ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h. */
29264 /* Override any GCC internal prototype to avoid an error.
29265 Use char because int might match the return type of a GCC
29266 builtin and then its argument prototype would still apply. */
29279 for ac_lib in '' x; do
29280 if test -z "$ac_lib"; then
29281 ac_res="none required"
29284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29286 rm -f conftest.$ac_objext conftest$ac_exeext
29287 if { (ac_try="$ac_link"
29288 case "(($ac_try" in
29289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290 *) ac_try_echo=$ac_try;;
29292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29293 (eval "$ac_link") 2>conftest.er1
29295 grep -v '^ *+' conftest.er1 >conftest.err
29297 cat conftest.err >&5
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); } &&
29300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29301 { (case "(($ac_try" in
29302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303 *) ac_try_echo=$ac_try;;
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306 (eval "$ac_try") 2>&5
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; } &&
29310 { ac_try='test -s conftest$ac_exeext'
29311 { (case "(($ac_try" in
29312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313 *) ac_try_echo=$ac_try;;
29315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29316 (eval "$ac_try") 2>&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); }; }; then
29320 ac_cv_search_opendir=$ac_res
29322 echo "$as_me: failed program was:" >&5
29323 sed 's/^/| /' conftest.$ac_ext >&5
29328 rm -f core conftest.err conftest.$ac_objext \
29330 if test "${ac_cv_search_opendir+set}" = set; then
29334 if test "${ac_cv_search_opendir+set}" = set; then
29337 ac_cv_search_opendir=no
29339 rm conftest.$ac_ext
29340 LIBS=$ac_func_search_save_LIBS
29342 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29343 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29344 ac_res=$ac_cv_search_opendir
29345 if test "$ac_res" != no; then
29346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29352 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29353 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29354 if test "${ac_cv_header_mmap_anon+set}" = set; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29358 ac_cpp='$CPP $CPPFLAGS'
29359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29363 cat >conftest.$ac_ext <<_ACEOF
29366 cat confdefs.h >>conftest.$ac_ext
29367 cat >>conftest.$ac_ext <<_ACEOF
29368 /* end confdefs.h. */
29369 #include <sys/mman.h>
29370 #include <unistd.h>
29375 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29380 rm -f conftest.$ac_objext
29381 if { (ac_try="$ac_compile"
29382 case "(($ac_try" in
29383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29384 *) ac_try_echo=$ac_try;;
29386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387 (eval "$ac_compile") 2>conftest.er1
29389 grep -v '^ *+' conftest.er1 >conftest.err
29391 cat conftest.err >&5
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); } &&
29394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29395 { (case "(($ac_try" in
29396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397 *) ac_try_echo=$ac_try;;
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400 (eval "$ac_try") 2>&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; } &&
29404 { ac_try='test -s conftest.$ac_objext'
29405 { (case "(($ac_try" in
29406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407 *) ac_try_echo=$ac_try;;
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410 (eval "$ac_try") 2>&5
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; }; then
29414 ac_cv_header_mmap_anon=yes
29416 echo "$as_me: failed program was:" >&5
29417 sed 's/^/| /' conftest.$ac_ext >&5
29419 ac_cv_header_mmap_anon=no
29422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29424 ac_cpp='$CPP $CPPFLAGS'
29425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29431 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29432 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29433 if test "$ac_cv_header_mmap_anon" = yes; then
29435 cat >>confdefs.h <<\_ACEOF
29436 #define HAVE_MMAP_ANONYMOUS 1
29441 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29442 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29443 if test "${ac_cv_header_stat_broken+set}" = set; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29446 cat >conftest.$ac_ext <<_ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h. */
29452 #include <sys/types.h>
29453 #include <sys/stat.h>
29455 #if defined S_ISBLK && defined S_IFDIR
29456 # if S_ISBLK (S_IFDIR)
29461 #if defined S_ISBLK && defined S_IFCHR
29462 # if S_ISBLK (S_IFCHR)
29467 #if defined S_ISLNK && defined S_IFREG
29468 # if S_ISLNK (S_IFREG)
29473 #if defined S_ISSOCK && defined S_IFREG
29474 # if S_ISSOCK (S_IFREG)
29480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29481 $EGREP "You lose" >/dev/null 2>&1; then
29482 ac_cv_header_stat_broken=yes
29484 ac_cv_header_stat_broken=no
29489 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29490 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29491 if test $ac_cv_header_stat_broken = yes; then
29493 cat >>confdefs.h <<\_ACEOF
29494 #define STAT_MACROS_BROKEN 1
29499 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29500 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29501 if test "${ac_cv_header_stdc+set}" = set; then
29502 echo $ECHO_N "(cached) $ECHO_C" >&6
29504 cat >conftest.$ac_ext <<_ACEOF
29507 cat confdefs.h >>conftest.$ac_ext
29508 cat >>conftest.$ac_ext <<_ACEOF
29509 /* end confdefs.h. */
29510 #include <stdlib.h>
29511 #include <stdarg.h>
29512 #include <string.h>
29523 rm -f conftest.$ac_objext
29524 if { (ac_try="$ac_compile"
29525 case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_compile") 2>conftest.er1
29532 grep -v '^ *+' conftest.er1 >conftest.err
29534 cat conftest.err >&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } &&
29537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29538 { (case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_try") 2>&5
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); }; } &&
29547 { ac_try='test -s conftest.$ac_objext'
29548 { (case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_try") 2>&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); }; }; then
29557 ac_cv_header_stdc=yes
29559 echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29562 ac_cv_header_stdc=no
29565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29567 if test $ac_cv_header_stdc = yes; then
29568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29569 cat >conftest.$ac_ext <<_ACEOF
29572 cat confdefs.h >>conftest.$ac_ext
29573 cat >>conftest.$ac_ext <<_ACEOF
29574 /* end confdefs.h. */
29575 #include <string.h>
29578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29579 $EGREP "memchr" >/dev/null 2>&1; then
29582 ac_cv_header_stdc=no
29588 if test $ac_cv_header_stdc = yes; then
29589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29590 cat >conftest.$ac_ext <<_ACEOF
29593 cat confdefs.h >>conftest.$ac_ext
29594 cat >>conftest.$ac_ext <<_ACEOF
29595 /* end confdefs.h. */
29596 #include <stdlib.h>
29599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29600 $EGREP "free" >/dev/null 2>&1; then
29603 ac_cv_header_stdc=no
29609 if test $ac_cv_header_stdc = yes; then
29610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29611 if test "$cross_compiling" = yes; then
29614 cat >conftest.$ac_ext <<_ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h. */
29621 #include <stdlib.h>
29622 #if ((' ' & 0x0FF) == 0x020)
29623 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29624 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29626 # define ISLOWER(c) \
29627 (('a' <= (c) && (c) <= 'i') \
29628 || ('j' <= (c) && (c) <= 'r') \
29629 || ('s' <= (c) && (c) <= 'z'))
29630 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29638 for (i = 0; i < 256; i++)
29639 if (XOR (islower (i), ISLOWER (i))
29640 || toupper (i) != TOUPPER (i))
29645 rm -f conftest$ac_exeext
29646 if { (ac_try="$ac_link"
29647 case "(($ac_try" in
29648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649 *) ac_try_echo=$ac_try;;
29651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652 (eval "$ac_link") 2>&5
29654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29656 { (case "(($ac_try" in
29657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29658 *) ac_try_echo=$ac_try;;
29660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29661 (eval "$ac_try") 2>&5
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); }; }; then
29667 echo "$as_me: program exited with status $ac_status" >&5
29668 echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29671 ( exit $ac_status )
29672 ac_cv_header_stdc=no
29674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29680 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29681 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29682 if test $ac_cv_header_stdc = yes; then
29684 cat >>confdefs.h <<\_ACEOF
29685 #define STDC_HEADERS 1
29690 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29691 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29692 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29693 echo $ECHO_N "(cached) $ECHO_C" >&6
29695 cat >conftest.$ac_ext <<_ACEOF
29698 cat confdefs.h >>conftest.$ac_ext
29699 cat >>conftest.$ac_ext <<_ACEOF
29700 /* end confdefs.h. */
29701 #include <sys/types.h>
29702 #include <sys/wait.h>
29703 #ifndef WEXITSTATUS
29704 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29707 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29715 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29720 rm -f conftest.$ac_objext
29721 if { (ac_try="$ac_compile"
29722 case "(($ac_try" in
29723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29724 *) ac_try_echo=$ac_try;;
29726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29727 (eval "$ac_compile") 2>conftest.er1
29729 grep -v '^ *+' conftest.er1 >conftest.err
29731 cat conftest.err >&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } &&
29734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29735 { (case "(($ac_try" in
29736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29737 *) ac_try_echo=$ac_try;;
29739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29740 (eval "$ac_try") 2>&5
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; } &&
29744 { ac_try='test -s conftest.$ac_objext'
29745 { (case "(($ac_try" in
29746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747 *) ac_try_echo=$ac_try;;
29749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750 (eval "$ac_try") 2>&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; }; then
29754 ac_cv_header_sys_wait_h=yes
29756 echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29759 ac_cv_header_sys_wait_h=no
29762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29764 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29765 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29766 if test $ac_cv_header_sys_wait_h = yes; then
29768 cat >>confdefs.h <<\_ACEOF
29769 #define HAVE_SYS_WAIT_H 1
29774 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29775 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29776 if test "${ac_cv_header_time+set}" = set; then
29777 echo $ECHO_N "(cached) $ECHO_C" >&6
29779 cat >conftest.$ac_ext <<_ACEOF
29782 cat confdefs.h >>conftest.$ac_ext
29783 cat >>conftest.$ac_ext <<_ACEOF
29784 /* end confdefs.h. */
29785 #include <sys/types.h>
29786 #include <sys/time.h>
29792 if ((struct tm *) 0)
29798 rm -f conftest.$ac_objext
29799 if { (ac_try="$ac_compile"
29800 case "(($ac_try" in
29801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802 *) ac_try_echo=$ac_try;;
29804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805 (eval "$ac_compile") 2>conftest.er1
29807 grep -v '^ *+' conftest.er1 >conftest.err
29809 cat conftest.err >&5
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); } &&
29812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29813 { (case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_try") 2>&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; } &&
29822 { ac_try='test -s conftest.$ac_objext'
29823 { (case "(($ac_try" in
29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828 (eval "$ac_try") 2>&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; }; then
29832 ac_cv_header_time=yes
29834 echo "$as_me: failed program was:" >&5
29835 sed 's/^/| /' conftest.$ac_ext >&5
29837 ac_cv_header_time=no
29840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29842 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29843 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29844 if test $ac_cv_header_time = yes; then
29846 cat >>confdefs.h <<\_ACEOF
29847 #define TIME_WITH_SYS_TIME 1
29859 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29866 echo $ECHO_N "(cached) $ECHO_C" >&6
29868 ac_res=`eval echo '${'$as_ac_Header'}'`
29869 { echo "$as_me:$LINENO: result: $ac_res" >&5
29870 echo "${ECHO_T}$ac_res" >&6; }
29872 # Is the header compilable?
29873 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29875 cat >conftest.$ac_ext <<_ACEOF
29878 cat confdefs.h >>conftest.$ac_ext
29879 cat >>conftest.$ac_ext <<_ACEOF
29880 /* end confdefs.h. */
29881 $ac_includes_default
29882 #include <$ac_header>
29884 rm -f conftest.$ac_objext
29885 if { (ac_try="$ac_compile"
29886 case "(($ac_try" in
29887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888 *) ac_try_echo=$ac_try;;
29890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29891 (eval "$ac_compile") 2>conftest.er1
29893 grep -v '^ *+' conftest.er1 >conftest.err
29895 cat conftest.err >&5
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); } &&
29898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29899 { (case "(($ac_try" in
29900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901 *) ac_try_echo=$ac_try;;
29903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904 (eval "$ac_try") 2>&5
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; } &&
29908 { ac_try='test -s conftest.$ac_objext'
29909 { (case "(($ac_try" in
29910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29911 *) ac_try_echo=$ac_try;;
29913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29914 (eval "$ac_try") 2>&5
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; }; then
29918 ac_header_compiler=yes
29920 echo "$as_me: failed program was:" >&5
29921 sed 's/^/| /' conftest.$ac_ext >&5
29923 ac_header_compiler=no
29926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29928 echo "${ECHO_T}$ac_header_compiler" >&6; }
29930 # Is the header present?
29931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29933 cat >conftest.$ac_ext <<_ACEOF
29936 cat confdefs.h >>conftest.$ac_ext
29937 cat >>conftest.$ac_ext <<_ACEOF
29938 /* end confdefs.h. */
29939 #include <$ac_header>
29941 if { (ac_try="$ac_cpp conftest.$ac_ext"
29942 case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29949 grep -v '^ *+' conftest.er1 >conftest.err
29951 cat conftest.err >&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); } >/dev/null; then
29954 if test -s conftest.err; then
29955 ac_cpp_err=$ac_c_preproc_warn_flag
29956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29963 if test -z "$ac_cpp_err"; then
29964 ac_header_preproc=yes
29966 echo "$as_me: failed program was:" >&5
29967 sed 's/^/| /' conftest.$ac_ext >&5
29969 ac_header_preproc=no
29972 rm -f conftest.err conftest.$ac_ext
29973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29974 echo "${ECHO_T}$ac_header_preproc" >&6; }
29976 # So? What about this header?
29977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29983 ac_header_preproc=yes
29986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29999 ## ----------------------------------- ##
30000 ## Report this to llvmbugs@cs.uiuc.edu ##
30001 ## ----------------------------------- ##
30003 ) | sed "s/^/$as_me: WARNING: /" >&2
30006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30009 echo $ECHO_N "(cached) $ECHO_C" >&6
30011 eval "$as_ac_Header=\$ac_header_preproc"
30013 ac_res=`eval echo '${'$as_ac_Header'}'`
30014 { echo "$as_me:$LINENO: result: $ac_res" >&5
30015 echo "${ECHO_T}$ac_res" >&6; }
30018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30019 cat >>confdefs.h <<_ACEOF
30020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30033 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30040 echo $ECHO_N "(cached) $ECHO_C" >&6
30042 ac_res=`eval echo '${'$as_ac_Header'}'`
30043 { echo "$as_me:$LINENO: result: $ac_res" >&5
30044 echo "${ECHO_T}$ac_res" >&6; }
30046 # Is the header compilable?
30047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30049 cat >conftest.$ac_ext <<_ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h. */
30055 $ac_includes_default
30056 #include <$ac_header>
30058 rm -f conftest.$ac_objext
30059 if { (ac_try="$ac_compile"
30060 case "(($ac_try" in
30061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062 *) ac_try_echo=$ac_try;;
30064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065 (eval "$ac_compile") 2>conftest.er1
30067 grep -v '^ *+' conftest.er1 >conftest.err
30069 cat conftest.err >&5
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); } &&
30072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30073 { (case "(($ac_try" in
30074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30075 *) ac_try_echo=$ac_try;;
30077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30078 (eval "$ac_try") 2>&5
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); }; } &&
30082 { ac_try='test -s conftest.$ac_objext'
30083 { (case "(($ac_try" in
30084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085 *) ac_try_echo=$ac_try;;
30087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088 (eval "$ac_try") 2>&5
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; }; then
30092 ac_header_compiler=yes
30094 echo "$as_me: failed program was:" >&5
30095 sed 's/^/| /' conftest.$ac_ext >&5
30097 ac_header_compiler=no
30100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30102 echo "${ECHO_T}$ac_header_compiler" >&6; }
30104 # Is the header present?
30105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30107 cat >conftest.$ac_ext <<_ACEOF
30110 cat confdefs.h >>conftest.$ac_ext
30111 cat >>conftest.$ac_ext <<_ACEOF
30112 /* end confdefs.h. */
30113 #include <$ac_header>
30115 if { (ac_try="$ac_cpp conftest.$ac_ext"
30116 case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30123 grep -v '^ *+' conftest.er1 >conftest.err
30125 cat conftest.err >&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); } >/dev/null; then
30128 if test -s conftest.err; then
30129 ac_cpp_err=$ac_c_preproc_warn_flag
30130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30137 if test -z "$ac_cpp_err"; then
30138 ac_header_preproc=yes
30140 echo "$as_me: failed program was:" >&5
30141 sed 's/^/| /' conftest.$ac_ext >&5
30143 ac_header_preproc=no
30146 rm -f conftest.err conftest.$ac_ext
30147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30148 echo "${ECHO_T}$ac_header_preproc" >&6; }
30150 # So? What about this header?
30151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30157 ac_header_preproc=yes
30160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30173 ## ----------------------------------- ##
30174 ## Report this to llvmbugs@cs.uiuc.edu ##
30175 ## ----------------------------------- ##
30177 ) | sed "s/^/$as_me: WARNING: /" >&2
30180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30183 echo $ECHO_N "(cached) $ECHO_C" >&6
30185 eval "$as_ac_Header=\$ac_header_preproc"
30187 ac_res=`eval echo '${'$as_ac_Header'}'`
30188 { echo "$as_me:$LINENO: result: $ac_res" >&5
30189 echo "${ECHO_T}$ac_res" >&6; }
30192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30193 cat >>confdefs.h <<_ACEOF
30194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30203 for ac_header in utime.h windows.h
30205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30210 echo $ECHO_N "(cached) $ECHO_C" >&6
30212 ac_res=`eval echo '${'$as_ac_Header'}'`
30213 { echo "$as_me:$LINENO: result: $ac_res" >&5
30214 echo "${ECHO_T}$ac_res" >&6; }
30216 # Is the header compilable?
30217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30219 cat >conftest.$ac_ext <<_ACEOF
30222 cat confdefs.h >>conftest.$ac_ext
30223 cat >>conftest.$ac_ext <<_ACEOF
30224 /* end confdefs.h. */
30225 $ac_includes_default
30226 #include <$ac_header>
30228 rm -f conftest.$ac_objext
30229 if { (ac_try="$ac_compile"
30230 case "(($ac_try" in
30231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30232 *) ac_try_echo=$ac_try;;
30234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30235 (eval "$ac_compile") 2>conftest.er1
30237 grep -v '^ *+' conftest.er1 >conftest.err
30239 cat conftest.err >&5
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); } &&
30242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30243 { (case "(($ac_try" in
30244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245 *) ac_try_echo=$ac_try;;
30247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248 (eval "$ac_try") 2>&5
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); }; } &&
30252 { ac_try='test -s conftest.$ac_objext'
30253 { (case "(($ac_try" in
30254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255 *) ac_try_echo=$ac_try;;
30257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30258 (eval "$ac_try") 2>&5
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); }; }; then
30262 ac_header_compiler=yes
30264 echo "$as_me: failed program was:" >&5
30265 sed 's/^/| /' conftest.$ac_ext >&5
30267 ac_header_compiler=no
30270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30272 echo "${ECHO_T}$ac_header_compiler" >&6; }
30274 # Is the header present?
30275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30277 cat >conftest.$ac_ext <<_ACEOF
30280 cat confdefs.h >>conftest.$ac_ext
30281 cat >>conftest.$ac_ext <<_ACEOF
30282 /* end confdefs.h. */
30283 #include <$ac_header>
30285 if { (ac_try="$ac_cpp conftest.$ac_ext"
30286 case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30293 grep -v '^ *+' conftest.er1 >conftest.err
30295 cat conftest.err >&5
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); } >/dev/null; then
30298 if test -s conftest.err; then
30299 ac_cpp_err=$ac_c_preproc_warn_flag
30300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30307 if test -z "$ac_cpp_err"; then
30308 ac_header_preproc=yes
30310 echo "$as_me: failed program was:" >&5
30311 sed 's/^/| /' conftest.$ac_ext >&5
30313 ac_header_preproc=no
30316 rm -f conftest.err conftest.$ac_ext
30317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30318 echo "${ECHO_T}$ac_header_preproc" >&6; }
30320 # So? What about this header?
30321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30327 ac_header_preproc=yes
30330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30343 ## ----------------------------------- ##
30344 ## Report this to llvmbugs@cs.uiuc.edu ##
30345 ## ----------------------------------- ##
30347 ) | sed "s/^/$as_me: WARNING: /" >&2
30350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30353 echo $ECHO_N "(cached) $ECHO_C" >&6
30355 eval "$as_ac_Header=\$ac_header_preproc"
30357 ac_res=`eval echo '${'$as_ac_Header'}'`
30358 { echo "$as_me:$LINENO: result: $ac_res" >&5
30359 echo "${ECHO_T}$ac_res" >&6; }
30362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30363 cat >>confdefs.h <<_ACEOF
30364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30375 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30382 echo $ECHO_N "(cached) $ECHO_C" >&6
30384 ac_res=`eval echo '${'$as_ac_Header'}'`
30385 { echo "$as_me:$LINENO: result: $ac_res" >&5
30386 echo "${ECHO_T}$ac_res" >&6; }
30388 # Is the header compilable?
30389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30391 cat >conftest.$ac_ext <<_ACEOF
30394 cat confdefs.h >>conftest.$ac_ext
30395 cat >>conftest.$ac_ext <<_ACEOF
30396 /* end confdefs.h. */
30397 $ac_includes_default
30398 #include <$ac_header>
30400 rm -f conftest.$ac_objext
30401 if { (ac_try="$ac_compile"
30402 case "(($ac_try" in
30403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404 *) ac_try_echo=$ac_try;;
30406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407 (eval "$ac_compile") 2>conftest.er1
30409 grep -v '^ *+' conftest.er1 >conftest.err
30411 cat conftest.err >&5
30412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413 (exit $ac_status); } &&
30414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30415 { (case "(($ac_try" in
30416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30417 *) ac_try_echo=$ac_try;;
30419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30420 (eval "$ac_try") 2>&5
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; } &&
30424 { ac_try='test -s conftest.$ac_objext'
30425 { (case "(($ac_try" in
30426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30427 *) ac_try_echo=$ac_try;;
30429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30430 (eval "$ac_try") 2>&5
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; }; then
30434 ac_header_compiler=yes
30436 echo "$as_me: failed program was:" >&5
30437 sed 's/^/| /' conftest.$ac_ext >&5
30439 ac_header_compiler=no
30442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30444 echo "${ECHO_T}$ac_header_compiler" >&6; }
30446 # Is the header present?
30447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30449 cat >conftest.$ac_ext <<_ACEOF
30452 cat confdefs.h >>conftest.$ac_ext
30453 cat >>conftest.$ac_ext <<_ACEOF
30454 /* end confdefs.h. */
30455 #include <$ac_header>
30457 if { (ac_try="$ac_cpp conftest.$ac_ext"
30458 case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30465 grep -v '^ *+' conftest.er1 >conftest.err
30467 cat conftest.err >&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } >/dev/null; then
30470 if test -s conftest.err; then
30471 ac_cpp_err=$ac_c_preproc_warn_flag
30472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30479 if test -z "$ac_cpp_err"; then
30480 ac_header_preproc=yes
30482 echo "$as_me: failed program was:" >&5
30483 sed 's/^/| /' conftest.$ac_ext >&5
30485 ac_header_preproc=no
30488 rm -f conftest.err conftest.$ac_ext
30489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30490 echo "${ECHO_T}$ac_header_preproc" >&6; }
30492 # So? What about this header?
30493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30499 ac_header_preproc=yes
30502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30515 ## ----------------------------------- ##
30516 ## Report this to llvmbugs@cs.uiuc.edu ##
30517 ## ----------------------------------- ##
30519 ) | sed "s/^/$as_me: WARNING: /" >&2
30522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30525 echo $ECHO_N "(cached) $ECHO_C" >&6
30527 eval "$as_ac_Header=\$ac_header_preproc"
30529 ac_res=`eval echo '${'$as_ac_Header'}'`
30530 { echo "$as_me:$LINENO: result: $ac_res" >&5
30531 echo "${ECHO_T}$ac_res" >&6; }
30534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30535 cat >>confdefs.h <<_ACEOF
30536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30547 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30554 echo $ECHO_N "(cached) $ECHO_C" >&6
30556 ac_res=`eval echo '${'$as_ac_Header'}'`
30557 { echo "$as_me:$LINENO: result: $ac_res" >&5
30558 echo "${ECHO_T}$ac_res" >&6; }
30560 # Is the header compilable?
30561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30563 cat >conftest.$ac_ext <<_ACEOF
30566 cat confdefs.h >>conftest.$ac_ext
30567 cat >>conftest.$ac_ext <<_ACEOF
30568 /* end confdefs.h. */
30569 $ac_includes_default
30570 #include <$ac_header>
30572 rm -f conftest.$ac_objext
30573 if { (ac_try="$ac_compile"
30574 case "(($ac_try" in
30575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576 *) ac_try_echo=$ac_try;;
30578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579 (eval "$ac_compile") 2>conftest.er1
30581 grep -v '^ *+' conftest.er1 >conftest.err
30583 cat conftest.err >&5
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); } &&
30586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30587 { (case "(($ac_try" in
30588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30589 *) ac_try_echo=$ac_try;;
30591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30592 (eval "$ac_try") 2>&5
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; } &&
30596 { ac_try='test -s conftest.$ac_objext'
30597 { (case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_try") 2>&5
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); }; }; then
30606 ac_header_compiler=yes
30608 echo "$as_me: failed program was:" >&5
30609 sed 's/^/| /' conftest.$ac_ext >&5
30611 ac_header_compiler=no
30614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30616 echo "${ECHO_T}$ac_header_compiler" >&6; }
30618 # Is the header present?
30619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30621 cat >conftest.$ac_ext <<_ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h. */
30627 #include <$ac_header>
30629 if { (ac_try="$ac_cpp conftest.$ac_ext"
30630 case "(($ac_try" in
30631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632 *) ac_try_echo=$ac_try;;
30634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30637 grep -v '^ *+' conftest.er1 >conftest.err
30639 cat conftest.err >&5
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); } >/dev/null; then
30642 if test -s conftest.err; then
30643 ac_cpp_err=$ac_c_preproc_warn_flag
30644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30651 if test -z "$ac_cpp_err"; then
30652 ac_header_preproc=yes
30654 echo "$as_me: failed program was:" >&5
30655 sed 's/^/| /' conftest.$ac_ext >&5
30657 ac_header_preproc=no
30660 rm -f conftest.err conftest.$ac_ext
30661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30662 echo "${ECHO_T}$ac_header_preproc" >&6; }
30664 # So? What about this header?
30665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30671 ac_header_preproc=yes
30674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30687 ## ----------------------------------- ##
30688 ## Report this to llvmbugs@cs.uiuc.edu ##
30689 ## ----------------------------------- ##
30691 ) | sed "s/^/$as_me: WARNING: /" >&2
30694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30697 echo $ECHO_N "(cached) $ECHO_C" >&6
30699 eval "$as_ac_Header=\$ac_header_preproc"
30701 ac_res=`eval echo '${'$as_ac_Header'}'`
30702 { echo "$as_me:$LINENO: result: $ac_res" >&5
30703 echo "${ECHO_T}$ac_res" >&6; }
30706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30707 cat >>confdefs.h <<_ACEOF
30708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30715 if test "$ENABLE_THREADS" -eq 1 ; then
30717 for ac_header in pthread.h
30719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30724 echo $ECHO_N "(cached) $ECHO_C" >&6
30726 ac_res=`eval echo '${'$as_ac_Header'}'`
30727 { echo "$as_me:$LINENO: result: $ac_res" >&5
30728 echo "${ECHO_T}$ac_res" >&6; }
30730 # Is the header compilable?
30731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30733 cat >conftest.$ac_ext <<_ACEOF
30736 cat confdefs.h >>conftest.$ac_ext
30737 cat >>conftest.$ac_ext <<_ACEOF
30738 /* end confdefs.h. */
30739 $ac_includes_default
30740 #include <$ac_header>
30742 rm -f conftest.$ac_objext
30743 if { (ac_try="$ac_compile"
30744 case "(($ac_try" in
30745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746 *) ac_try_echo=$ac_try;;
30748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749 (eval "$ac_compile") 2>conftest.er1
30751 grep -v '^ *+' conftest.er1 >conftest.err
30753 cat conftest.err >&5
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); } &&
30756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30757 { (case "(($ac_try" in
30758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30759 *) ac_try_echo=$ac_try;;
30761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30762 (eval "$ac_try") 2>&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; } &&
30766 { ac_try='test -s conftest.$ac_objext'
30767 { (case "(($ac_try" in
30768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769 *) ac_try_echo=$ac_try;;
30771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772 (eval "$ac_try") 2>&5
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); }; }; then
30776 ac_header_compiler=yes
30778 echo "$as_me: failed program was:" >&5
30779 sed 's/^/| /' conftest.$ac_ext >&5
30781 ac_header_compiler=no
30784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30786 echo "${ECHO_T}$ac_header_compiler" >&6; }
30788 # Is the header present?
30789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30791 cat >conftest.$ac_ext <<_ACEOF
30794 cat confdefs.h >>conftest.$ac_ext
30795 cat >>conftest.$ac_ext <<_ACEOF
30796 /* end confdefs.h. */
30797 #include <$ac_header>
30799 if { (ac_try="$ac_cpp conftest.$ac_ext"
30800 case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30807 grep -v '^ *+' conftest.er1 >conftest.err
30809 cat conftest.err >&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } >/dev/null; then
30812 if test -s conftest.err; then
30813 ac_cpp_err=$ac_c_preproc_warn_flag
30814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30821 if test -z "$ac_cpp_err"; then
30822 ac_header_preproc=yes
30824 echo "$as_me: failed program was:" >&5
30825 sed 's/^/| /' conftest.$ac_ext >&5
30827 ac_header_preproc=no
30830 rm -f conftest.err conftest.$ac_ext
30831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30832 echo "${ECHO_T}$ac_header_preproc" >&6; }
30834 # So? What about this header?
30835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30841 ac_header_preproc=yes
30844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30857 ## ----------------------------------- ##
30858 ## Report this to llvmbugs@cs.uiuc.edu ##
30859 ## ----------------------------------- ##
30861 ) | sed "s/^/$as_me: WARNING: /" >&2
30864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30867 echo $ECHO_N "(cached) $ECHO_C" >&6
30869 eval "$as_ac_Header=\$ac_header_preproc"
30871 ac_res=`eval echo '${'$as_ac_Header'}'`
30872 { echo "$as_me:$LINENO: result: $ac_res" >&5
30873 echo "${ECHO_T}$ac_res" >&6; }
30876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30877 cat >>confdefs.h <<_ACEOF
30878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30894 if test "$llvm_cv_enable_libffi" = "yes" ; then
30897 for ac_header in ffi.h ffi/ffi.h
30899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30904 echo $ECHO_N "(cached) $ECHO_C" >&6
30906 ac_res=`eval echo '${'$as_ac_Header'}'`
30907 { echo "$as_me:$LINENO: result: $ac_res" >&5
30908 echo "${ECHO_T}$ac_res" >&6; }
30910 # Is the header compilable?
30911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30913 cat >conftest.$ac_ext <<_ACEOF
30916 cat confdefs.h >>conftest.$ac_ext
30917 cat >>conftest.$ac_ext <<_ACEOF
30918 /* end confdefs.h. */
30919 $ac_includes_default
30920 #include <$ac_header>
30922 rm -f conftest.$ac_objext
30923 if { (ac_try="$ac_compile"
30924 case "(($ac_try" in
30925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926 *) ac_try_echo=$ac_try;;
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929 (eval "$ac_compile") 2>conftest.er1
30931 grep -v '^ *+' conftest.er1 >conftest.err
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } &&
30936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30937 { (case "(($ac_try" in
30938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939 *) ac_try_echo=$ac_try;;
30941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942 (eval "$ac_try") 2>&5
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; } &&
30946 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); }; }; then
30956 ac_header_compiler=yes
30958 echo "$as_me: failed program was:" >&5
30959 sed 's/^/| /' conftest.$ac_ext >&5
30961 ac_header_compiler=no
30964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30966 echo "${ECHO_T}$ac_header_compiler" >&6; }
30968 # Is the header present?
30969 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30971 cat >conftest.$ac_ext <<_ACEOF
30974 cat confdefs.h >>conftest.$ac_ext
30975 cat >>conftest.$ac_ext <<_ACEOF
30976 /* end confdefs.h. */
30977 #include <$ac_header>
30979 if { (ac_try="$ac_cpp conftest.$ac_ext"
30980 case "(($ac_try" in
30981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30982 *) ac_try_echo=$ac_try;;
30984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30987 grep -v '^ *+' conftest.er1 >conftest.err
30989 cat conftest.err >&5
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); } >/dev/null; then
30992 if test -s conftest.err; then
30993 ac_cpp_err=$ac_c_preproc_warn_flag
30994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31001 if test -z "$ac_cpp_err"; then
31002 ac_header_preproc=yes
31004 echo "$as_me: failed program was:" >&5
31005 sed 's/^/| /' conftest.$ac_ext >&5
31007 ac_header_preproc=no
31010 rm -f conftest.err conftest.$ac_ext
31011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31012 echo "${ECHO_T}$ac_header_preproc" >&6; }
31014 # So? What about this header?
31015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31021 ac_header_preproc=yes
31024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31037 ## ----------------------------------- ##
31038 ## Report this to llvmbugs@cs.uiuc.edu ##
31039 ## ----------------------------------- ##
31041 ) | sed "s/^/$as_me: WARNING: /" >&2
31044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31047 echo $ECHO_N "(cached) $ECHO_C" >&6
31049 eval "$as_ac_Header=\$ac_header_preproc"
31051 ac_res=`eval echo '${'$as_ac_Header'}'`
31052 { echo "$as_me:$LINENO: result: $ac_res" >&5
31053 echo "${ECHO_T}$ac_res" >&6; }
31056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31057 cat >>confdefs.h <<_ACEOF
31058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31069 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31070 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31071 if test "${ac_cv_huge_val_sanity+set}" = set; then
31072 echo $ECHO_N "(cached) $ECHO_C" >&6
31076 ac_cpp='$CXXCPP $CPPFLAGS'
31077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31082 if test "$cross_compiling" = yes; then
31083 ac_cv_huge_val_sanity=yes
31085 cat >conftest.$ac_ext <<_ACEOF
31088 cat confdefs.h >>conftest.$ac_ext
31089 cat >>conftest.$ac_ext <<_ACEOF
31090 /* end confdefs.h. */
31095 double x = HUGE_VAL; return x != x;
31100 rm -f conftest$ac_exeext
31101 if { (ac_try="$ac_link"
31102 case "(($ac_try" in
31103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31104 *) ac_try_echo=$ac_try;;
31106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31107 (eval "$ac_link") 2>&5
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31111 { (case "(($ac_try" in
31112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31113 *) ac_try_echo=$ac_try;;
31115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31116 (eval "$ac_try") 2>&5
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; }; then
31120 ac_cv_huge_val_sanity=yes
31122 echo "$as_me: program exited with status $ac_status" >&5
31123 echo "$as_me: failed program was:" >&5
31124 sed 's/^/| /' conftest.$ac_ext >&5
31126 ( exit $ac_status )
31127 ac_cv_huge_val_sanity=no
31129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31134 ac_cpp='$CPP $CPPFLAGS'
31135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31141 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31142 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31143 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31146 { echo "$as_me:$LINENO: checking for pid_t" >&5
31147 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31148 if test "${ac_cv_type_pid_t+set}" = set; then
31149 echo $ECHO_N "(cached) $ECHO_C" >&6
31151 cat >conftest.$ac_ext <<_ACEOF
31154 cat confdefs.h >>conftest.$ac_ext
31155 cat >>conftest.$ac_ext <<_ACEOF
31156 /* end confdefs.h. */
31157 $ac_includes_default
31158 typedef pid_t ac__type_new_;
31162 if ((ac__type_new_ *) 0)
31164 if (sizeof (ac__type_new_))
31170 rm -f conftest.$ac_objext
31171 if { (ac_try="$ac_compile"
31172 case "(($ac_try" in
31173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174 *) ac_try_echo=$ac_try;;
31176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177 (eval "$ac_compile") 2>conftest.er1
31179 grep -v '^ *+' conftest.er1 >conftest.err
31181 cat conftest.err >&5
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); } &&
31184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31185 { (case "(($ac_try" in
31186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 *) ac_try_echo=$ac_try;;
31189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190 (eval "$ac_try") 2>&5
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; } &&
31194 { ac_try='test -s conftest.$ac_objext'
31195 { (case "(($ac_try" in
31196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197 *) ac_try_echo=$ac_try;;
31199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200 (eval "$ac_try") 2>&5
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); }; }; then
31204 ac_cv_type_pid_t=yes
31206 echo "$as_me: failed program was:" >&5
31207 sed 's/^/| /' conftest.$ac_ext >&5
31209 ac_cv_type_pid_t=no
31212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31214 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31215 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31216 if test $ac_cv_type_pid_t = yes; then
31220 cat >>confdefs.h <<_ACEOF
31226 { echo "$as_me:$LINENO: checking for size_t" >&5
31227 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31228 if test "${ac_cv_type_size_t+set}" = set; then
31229 echo $ECHO_N "(cached) $ECHO_C" >&6
31231 cat >conftest.$ac_ext <<_ACEOF
31234 cat confdefs.h >>conftest.$ac_ext
31235 cat >>conftest.$ac_ext <<_ACEOF
31236 /* end confdefs.h. */
31237 $ac_includes_default
31238 typedef size_t ac__type_new_;
31242 if ((ac__type_new_ *) 0)
31244 if (sizeof (ac__type_new_))
31250 rm -f conftest.$ac_objext
31251 if { (ac_try="$ac_compile"
31252 case "(($ac_try" in
31253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254 *) ac_try_echo=$ac_try;;
31256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31257 (eval "$ac_compile") 2>conftest.er1
31259 grep -v '^ *+' conftest.er1 >conftest.err
31261 cat conftest.err >&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); } &&
31264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31265 { (case "(($ac_try" in
31266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267 *) ac_try_echo=$ac_try;;
31269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270 (eval "$ac_try") 2>&5
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); }; } &&
31274 { ac_try='test -s conftest.$ac_objext'
31275 { (case "(($ac_try" in
31276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277 *) ac_try_echo=$ac_try;;
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_try") 2>&5
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; }; then
31284 ac_cv_type_size_t=yes
31286 echo "$as_me: failed program was:" >&5
31287 sed 's/^/| /' conftest.$ac_ext >&5
31289 ac_cv_type_size_t=no
31292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31294 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31295 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31296 if test $ac_cv_type_size_t = yes; then
31300 cat >>confdefs.h <<_ACEOF
31301 #define size_t unsigned int
31306 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31307 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31308 if test "${ac_cv_type_signal+set}" = set; then
31309 echo $ECHO_N "(cached) $ECHO_C" >&6
31311 cat >conftest.$ac_ext <<_ACEOF
31314 cat confdefs.h >>conftest.$ac_ext
31315 cat >>conftest.$ac_ext <<_ACEOF
31316 /* end confdefs.h. */
31317 #include <sys/types.h>
31318 #include <signal.h>
31323 return *(signal (0, 0)) (0) == 1;
31328 rm -f conftest.$ac_objext
31329 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31337 grep -v '^ *+' conftest.er1 >conftest.err
31339 cat conftest.err >&5
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); } &&
31342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31343 { (case "(($ac_try" in
31344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345 *) ac_try_echo=$ac_try;;
31347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348 (eval "$ac_try") 2>&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; } &&
31352 { ac_try='test -s conftest.$ac_objext'
31353 { (case "(($ac_try" in
31354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355 *) ac_try_echo=$ac_try;;
31357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358 (eval "$ac_try") 2>&5
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; }; then
31362 ac_cv_type_signal=int
31364 echo "$as_me: failed program was:" >&5
31365 sed 's/^/| /' conftest.$ac_ext >&5
31367 ac_cv_type_signal=void
31370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31372 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31373 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31375 cat >>confdefs.h <<_ACEOF
31376 #define RETSIGTYPE $ac_cv_type_signal
31380 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31381 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31382 if test "${ac_cv_struct_tm+set}" = set; then
31383 echo $ECHO_N "(cached) $ECHO_C" >&6
31385 cat >conftest.$ac_ext <<_ACEOF
31388 cat confdefs.h >>conftest.$ac_ext
31389 cat >>conftest.$ac_ext <<_ACEOF
31390 /* end confdefs.h. */
31391 #include <sys/types.h>
31397 struct tm *tp; tp->tm_sec;
31402 rm -f conftest.$ac_objext
31403 if { (ac_try="$ac_compile"
31404 case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_compile") 2>conftest.er1
31411 grep -v '^ *+' conftest.er1 >conftest.err
31413 cat conftest.err >&5
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); } &&
31416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31417 { (case "(($ac_try" in
31418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419 *) ac_try_echo=$ac_try;;
31421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422 (eval "$ac_try") 2>&5
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); }; } &&
31426 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31436 ac_cv_struct_tm=time.h
31438 echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31441 ac_cv_struct_tm=sys/time.h
31444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31446 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31447 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31448 if test $ac_cv_struct_tm = sys/time.h; then
31450 cat >>confdefs.h <<\_ACEOF
31451 #define TM_IN_SYS_TIME 1
31456 { echo "$as_me:$LINENO: checking for int64_t" >&5
31457 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31458 if test "${ac_cv_type_int64_t+set}" = set; then
31459 echo $ECHO_N "(cached) $ECHO_C" >&6
31461 cat >conftest.$ac_ext <<_ACEOF
31464 cat confdefs.h >>conftest.$ac_ext
31465 cat >>conftest.$ac_ext <<_ACEOF
31466 /* end confdefs.h. */
31467 $ac_includes_default
31468 typedef int64_t ac__type_new_;
31472 if ((ac__type_new_ *) 0)
31474 if (sizeof (ac__type_new_))
31480 rm -f conftest.$ac_objext
31481 if { (ac_try="$ac_compile"
31482 case "(($ac_try" in
31483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484 *) ac_try_echo=$ac_try;;
31486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487 (eval "$ac_compile") 2>conftest.er1
31489 grep -v '^ *+' conftest.er1 >conftest.err
31491 cat conftest.err >&5
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); } &&
31494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31495 { (case "(($ac_try" in
31496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31497 *) ac_try_echo=$ac_try;;
31499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31500 (eval "$ac_try") 2>&5
31502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31503 (exit $ac_status); }; } &&
31504 { ac_try='test -s conftest.$ac_objext'
31505 { (case "(($ac_try" in
31506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31507 *) ac_try_echo=$ac_try;;
31509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31510 (eval "$ac_try") 2>&5
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); }; }; then
31514 ac_cv_type_int64_t=yes
31516 echo "$as_me: failed program was:" >&5
31517 sed 's/^/| /' conftest.$ac_ext >&5
31519 ac_cv_type_int64_t=no
31522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31524 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31525 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31526 if test $ac_cv_type_int64_t = yes; then
31528 cat >>confdefs.h <<_ACEOF
31529 #define HAVE_INT64_T 1
31534 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31535 echo "$as_me: error: Type int64_t required but not found" >&2;}
31536 { (exit 1); exit 1; }; }
31539 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31540 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31541 if test "${ac_cv_type_uint64_t+set}" = set; then
31542 echo $ECHO_N "(cached) $ECHO_C" >&6
31544 cat >conftest.$ac_ext <<_ACEOF
31547 cat confdefs.h >>conftest.$ac_ext
31548 cat >>conftest.$ac_ext <<_ACEOF
31549 /* end confdefs.h. */
31550 $ac_includes_default
31551 typedef uint64_t ac__type_new_;
31555 if ((ac__type_new_ *) 0)
31557 if (sizeof (ac__type_new_))
31563 rm -f conftest.$ac_objext
31564 if { (ac_try="$ac_compile"
31565 case "(($ac_try" in
31566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567 *) ac_try_echo=$ac_try;;
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_compile") 2>conftest.er1
31572 grep -v '^ *+' conftest.er1 >conftest.err
31574 cat conftest.err >&5
31575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576 (exit $ac_status); } &&
31577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31578 { (case "(($ac_try" in
31579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31580 *) ac_try_echo=$ac_try;;
31582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583 (eval "$ac_try") 2>&5
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; } &&
31587 { ac_try='test -s conftest.$ac_objext'
31588 { (case "(($ac_try" in
31589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590 *) ac_try_echo=$ac_try;;
31592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593 (eval "$ac_try") 2>&5
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); }; }; then
31597 ac_cv_type_uint64_t=yes
31599 echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31602 ac_cv_type_uint64_t=no
31605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31607 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31608 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31609 if test $ac_cv_type_uint64_t = yes; then
31611 cat >>confdefs.h <<_ACEOF
31612 #define HAVE_UINT64_T 1
31617 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31618 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31619 if test "${ac_cv_type_u_int64_t+set}" = set; then
31620 echo $ECHO_N "(cached) $ECHO_C" >&6
31622 cat >conftest.$ac_ext <<_ACEOF
31625 cat confdefs.h >>conftest.$ac_ext
31626 cat >>conftest.$ac_ext <<_ACEOF
31627 /* end confdefs.h. */
31628 $ac_includes_default
31629 typedef u_int64_t ac__type_new_;
31633 if ((ac__type_new_ *) 0)
31635 if (sizeof (ac__type_new_))
31641 rm -f conftest.$ac_objext
31642 if { (ac_try="$ac_compile"
31643 case "(($ac_try" in
31644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31645 *) ac_try_echo=$ac_try;;
31647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31648 (eval "$ac_compile") 2>conftest.er1
31650 grep -v '^ *+' conftest.er1 >conftest.err
31652 cat conftest.err >&5
31653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654 (exit $ac_status); } &&
31655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31656 { (case "(($ac_try" in
31657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31658 *) ac_try_echo=$ac_try;;
31660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31661 (eval "$ac_try") 2>&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); }; } &&
31665 { ac_try='test -s conftest.$ac_objext'
31666 { (case "(($ac_try" in
31667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668 *) ac_try_echo=$ac_try;;
31670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671 (eval "$ac_try") 2>&5
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; }; then
31675 ac_cv_type_u_int64_t=yes
31677 echo "$as_me: failed program was:" >&5
31678 sed 's/^/| /' conftest.$ac_ext >&5
31680 ac_cv_type_u_int64_t=no
31683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31685 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31686 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31687 if test $ac_cv_type_u_int64_t = yes; then
31689 cat >>confdefs.h <<_ACEOF
31690 #define HAVE_U_INT64_T 1
31695 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31696 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31697 { (exit 1); exit 1; }; }
31711 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31717 echo $ECHO_N "(cached) $ECHO_C" >&6
31719 cat >conftest.$ac_ext <<_ACEOF
31722 cat confdefs.h >>conftest.$ac_ext
31723 cat >>conftest.$ac_ext <<_ACEOF
31724 /* end confdefs.h. */
31725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31727 #define $ac_func innocuous_$ac_func
31729 /* System header to define __stub macros and hopefully few prototypes,
31730 which can conflict with char $ac_func (); below.
31731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31732 <limits.h> exists even on freestanding compilers. */
31735 # include <limits.h>
31737 # include <assert.h>
31742 /* Override any GCC internal prototype to avoid an error.
31743 Use char because int might match the return type of a GCC
31744 builtin and then its argument prototype would still apply. */
31749 /* The GNU C library defines this for functions which it implements
31750 to always fail with ENOSYS. Some functions are actually named
31751 something starting with __ and the normal name is an alias. */
31752 #if defined __stub_$ac_func || defined __stub___$ac_func
31759 return $ac_func ();
31764 rm -f conftest.$ac_objext conftest$ac_exeext
31765 if { (ac_try="$ac_link"
31766 case "(($ac_try" in
31767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31768 *) ac_try_echo=$ac_try;;
31770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31771 (eval "$ac_link") 2>conftest.er1
31773 grep -v '^ *+' conftest.er1 >conftest.err
31775 cat conftest.err >&5
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); } &&
31778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31779 { (case "(($ac_try" in
31780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31781 *) ac_try_echo=$ac_try;;
31783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31784 (eval "$ac_try") 2>&5
31786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787 (exit $ac_status); }; } &&
31788 { ac_try='test -s conftest$ac_exeext'
31789 { (case "(($ac_try" in
31790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31791 *) ac_try_echo=$ac_try;;
31793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31794 (eval "$ac_try") 2>&5
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); }; }; then
31798 eval "$as_ac_var=yes"
31800 echo "$as_me: failed program was:" >&5
31801 sed 's/^/| /' conftest.$ac_ext >&5
31803 eval "$as_ac_var=no"
31806 rm -f core conftest.err conftest.$ac_objext \
31807 conftest$ac_exeext conftest.$ac_ext
31809 ac_res=`eval echo '${'$as_ac_var'}'`
31810 { echo "$as_me:$LINENO: result: $ac_res" >&5
31811 echo "${ECHO_T}$ac_res" >&6; }
31812 if test `eval echo '${'$as_ac_var'}'` = yes; then
31813 cat >>confdefs.h <<_ACEOF
31814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31824 for ac_func in powf fmodf strtof round
31826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31830 echo $ECHO_N "(cached) $ECHO_C" >&6
31832 cat >conftest.$ac_ext <<_ACEOF
31835 cat confdefs.h >>conftest.$ac_ext
31836 cat >>conftest.$ac_ext <<_ACEOF
31837 /* end confdefs.h. */
31838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31840 #define $ac_func innocuous_$ac_func
31842 /* System header to define __stub macros and hopefully few prototypes,
31843 which can conflict with char $ac_func (); below.
31844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31845 <limits.h> exists even on freestanding compilers. */
31848 # include <limits.h>
31850 # include <assert.h>
31855 /* Override any GCC internal prototype to avoid an error.
31856 Use char because int might match the return type of a GCC
31857 builtin and then its argument prototype would still apply. */
31862 /* The GNU C library defines this for functions which it implements
31863 to always fail with ENOSYS. Some functions are actually named
31864 something starting with __ and the normal name is an alias. */
31865 #if defined __stub_$ac_func || defined __stub___$ac_func
31872 return $ac_func ();
31877 rm -f conftest.$ac_objext conftest$ac_exeext
31878 if { (ac_try="$ac_link"
31879 case "(($ac_try" in
31880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31881 *) ac_try_echo=$ac_try;;
31883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31884 (eval "$ac_link") 2>conftest.er1
31886 grep -v '^ *+' conftest.er1 >conftest.err
31888 cat conftest.err >&5
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); } &&
31891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31892 { (case "(($ac_try" in
31893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894 *) ac_try_echo=$ac_try;;
31896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897 (eval "$ac_try") 2>&5
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; } &&
31901 { ac_try='test -s conftest$ac_exeext'
31902 { (case "(($ac_try" in
31903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904 *) ac_try_echo=$ac_try;;
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907 (eval "$ac_try") 2>&5
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }; }; then
31911 eval "$as_ac_var=yes"
31913 echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31916 eval "$as_ac_var=no"
31919 rm -f core conftest.err conftest.$ac_objext \
31920 conftest$ac_exeext conftest.$ac_ext
31922 ac_res=`eval echo '${'$as_ac_var'}'`
31923 { echo "$as_me:$LINENO: result: $ac_res" >&5
31924 echo "${ECHO_T}$ac_res" >&6; }
31925 if test `eval echo '${'$as_ac_var'}'` = yes; then
31926 cat >>confdefs.h <<_ACEOF
31927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31938 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31944 echo $ECHO_N "(cached) $ECHO_C" >&6
31946 cat >conftest.$ac_ext <<_ACEOF
31949 cat confdefs.h >>conftest.$ac_ext
31950 cat >>conftest.$ac_ext <<_ACEOF
31951 /* end confdefs.h. */
31952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31954 #define $ac_func innocuous_$ac_func
31956 /* System header to define __stub macros and hopefully few prototypes,
31957 which can conflict with char $ac_func (); below.
31958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31959 <limits.h> exists even on freestanding compilers. */
31962 # include <limits.h>
31964 # include <assert.h>
31969 /* Override any GCC internal prototype to avoid an error.
31970 Use char because int might match the return type of a GCC
31971 builtin and then its argument prototype would still apply. */
31976 /* The GNU C library defines this for functions which it implements
31977 to always fail with ENOSYS. Some functions are actually named
31978 something starting with __ and the normal name is an alias. */
31979 #if defined __stub_$ac_func || defined __stub___$ac_func
31986 return $ac_func ();
31991 rm -f conftest.$ac_objext conftest$ac_exeext
31992 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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 eval "$as_ac_var=yes"
32027 echo "$as_me: failed program was:" >&5
32028 sed 's/^/| /' conftest.$ac_ext >&5
32030 eval "$as_ac_var=no"
32033 rm -f core conftest.err conftest.$ac_objext \
32034 conftest$ac_exeext conftest.$ac_ext
32036 ac_res=`eval echo '${'$as_ac_var'}'`
32037 { echo "$as_me:$LINENO: result: $ac_res" >&5
32038 echo "${ECHO_T}$ac_res" >&6; }
32039 if test `eval echo '${'$as_ac_var'}'` = yes; then
32040 cat >>confdefs.h <<_ACEOF
32041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32050 for ac_func in isatty mkdtemp mkstemp
32052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32056 echo $ECHO_N "(cached) $ECHO_C" >&6
32058 cat >conftest.$ac_ext <<_ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h. */
32064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32066 #define $ac_func innocuous_$ac_func
32068 /* System header to define __stub macros and hopefully few prototypes,
32069 which can conflict with char $ac_func (); below.
32070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32071 <limits.h> exists even on freestanding compilers. */
32074 # include <limits.h>
32076 # include <assert.h>
32081 /* Override any GCC internal prototype to avoid an error.
32082 Use char because int might match the return type of a GCC
32083 builtin and then its argument prototype would still apply. */
32088 /* The GNU C library defines this for functions which it implements
32089 to always fail with ENOSYS. Some functions are actually named
32090 something starting with __ and the normal name is an alias. */
32091 #if defined __stub_$ac_func || defined __stub___$ac_func
32098 return $ac_func ();
32103 rm -f conftest.$ac_objext conftest$ac_exeext
32104 if { (ac_try="$ac_link"
32105 case "(($ac_try" in
32106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32107 *) ac_try_echo=$ac_try;;
32109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32110 (eval "$ac_link") 2>conftest.er1
32112 grep -v '^ *+' conftest.er1 >conftest.err
32114 cat conftest.err >&5
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); } &&
32117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32118 { (case "(($ac_try" in
32119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120 *) ac_try_echo=$ac_try;;
32122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123 (eval "$ac_try") 2>&5
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); }; } &&
32127 { ac_try='test -s conftest$ac_exeext'
32128 { (case "(($ac_try" in
32129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32130 *) ac_try_echo=$ac_try;;
32132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32133 (eval "$ac_try") 2>&5
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); }; }; then
32137 eval "$as_ac_var=yes"
32139 echo "$as_me: failed program was:" >&5
32140 sed 's/^/| /' conftest.$ac_ext >&5
32142 eval "$as_ac_var=no"
32145 rm -f core conftest.err conftest.$ac_objext \
32146 conftest$ac_exeext conftest.$ac_ext
32148 ac_res=`eval echo '${'$as_ac_var'}'`
32149 { echo "$as_me:$LINENO: result: $ac_res" >&5
32150 echo "${ECHO_T}$ac_res" >&6; }
32151 if test `eval echo '${'$as_ac_var'}'` = yes; then
32152 cat >>confdefs.h <<_ACEOF
32153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32164 for ac_func in mktemp realpath sbrk setrlimit strdup
32166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32170 echo $ECHO_N "(cached) $ECHO_C" >&6
32172 cat >conftest.$ac_ext <<_ACEOF
32175 cat confdefs.h >>conftest.$ac_ext
32176 cat >>conftest.$ac_ext <<_ACEOF
32177 /* end confdefs.h. */
32178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32180 #define $ac_func innocuous_$ac_func
32182 /* System header to define __stub macros and hopefully few prototypes,
32183 which can conflict with char $ac_func (); below.
32184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32185 <limits.h> exists even on freestanding compilers. */
32188 # include <limits.h>
32190 # include <assert.h>
32195 /* Override any GCC internal prototype to avoid an error.
32196 Use char because int might match the return type of a GCC
32197 builtin and then its argument prototype would still apply. */
32202 /* The GNU C library defines this for functions which it implements
32203 to always fail with ENOSYS. Some functions are actually named
32204 something starting with __ and the normal name is an alias. */
32205 #if defined __stub_$ac_func || defined __stub___$ac_func
32212 return $ac_func ();
32217 rm -f conftest.$ac_objext conftest$ac_exeext
32218 if { (ac_try="$ac_link"
32219 case "(($ac_try" in
32220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221 *) ac_try_echo=$ac_try;;
32223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224 (eval "$ac_link") 2>conftest.er1
32226 grep -v '^ *+' conftest.er1 >conftest.err
32228 cat conftest.err >&5
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); } &&
32231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32232 { (case "(($ac_try" in
32233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32234 *) ac_try_echo=$ac_try;;
32236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32237 (eval "$ac_try") 2>&5
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); }; } &&
32241 { ac_try='test -s conftest$ac_exeext'
32242 { (case "(($ac_try" in
32243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244 *) ac_try_echo=$ac_try;;
32246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32247 (eval "$ac_try") 2>&5
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); }; }; then
32251 eval "$as_ac_var=yes"
32253 echo "$as_me: failed program was:" >&5
32254 sed 's/^/| /' conftest.$ac_ext >&5
32256 eval "$as_ac_var=no"
32259 rm -f core conftest.err conftest.$ac_objext \
32260 conftest$ac_exeext conftest.$ac_ext
32262 ac_res=`eval echo '${'$as_ac_var'}'`
32263 { echo "$as_me:$LINENO: result: $ac_res" >&5
32264 echo "${ECHO_T}$ac_res" >&6; }
32265 if test `eval echo '${'$as_ac_var'}'` = yes; then
32266 cat >>confdefs.h <<_ACEOF
32267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32277 for ac_func in strerror strerror_r strerror_s setenv
32279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32283 echo $ECHO_N "(cached) $ECHO_C" >&6
32285 cat >conftest.$ac_ext <<_ACEOF
32288 cat confdefs.h >>conftest.$ac_ext
32289 cat >>conftest.$ac_ext <<_ACEOF
32290 /* end confdefs.h. */
32291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32293 #define $ac_func innocuous_$ac_func
32295 /* System header to define __stub macros and hopefully few prototypes,
32296 which can conflict with char $ac_func (); below.
32297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32298 <limits.h> exists even on freestanding compilers. */
32301 # include <limits.h>
32303 # include <assert.h>
32308 /* Override any GCC internal prototype to avoid an error.
32309 Use char because int might match the return type of a GCC
32310 builtin and then its argument prototype would still apply. */
32315 /* The GNU C library defines this for functions which it implements
32316 to always fail with ENOSYS. Some functions are actually named
32317 something starting with __ and the normal name is an alias. */
32318 #if defined __stub_$ac_func || defined __stub___$ac_func
32325 return $ac_func ();
32330 rm -f conftest.$ac_objext conftest$ac_exeext
32331 if { (ac_try="$ac_link"
32332 case "(($ac_try" in
32333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32334 *) ac_try_echo=$ac_try;;
32336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32337 (eval "$ac_link") 2>conftest.er1
32339 grep -v '^ *+' conftest.er1 >conftest.err
32341 cat conftest.err >&5
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); } &&
32344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32345 { (case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_try") 2>&5
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); }; } &&
32354 { ac_try='test -s conftest$ac_exeext'
32355 { (case "(($ac_try" in
32356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357 *) ac_try_echo=$ac_try;;
32359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32360 (eval "$ac_try") 2>&5
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; }; then
32364 eval "$as_ac_var=yes"
32366 echo "$as_me: failed program was:" >&5
32367 sed 's/^/| /' conftest.$ac_ext >&5
32369 eval "$as_ac_var=no"
32372 rm -f core conftest.err conftest.$ac_objext \
32373 conftest$ac_exeext conftest.$ac_ext
32375 ac_res=`eval echo '${'$as_ac_var'}'`
32376 { echo "$as_me:$LINENO: result: $ac_res" >&5
32377 echo "${ECHO_T}$ac_res" >&6; }
32378 if test `eval echo '${'$as_ac_var'}'` = yes; then
32379 cat >>confdefs.h <<_ACEOF
32380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32390 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32396 echo $ECHO_N "(cached) $ECHO_C" >&6
32398 cat >conftest.$ac_ext <<_ACEOF
32401 cat confdefs.h >>conftest.$ac_ext
32402 cat >>conftest.$ac_ext <<_ACEOF
32403 /* end confdefs.h. */
32404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32406 #define $ac_func innocuous_$ac_func
32408 /* System header to define __stub macros and hopefully few prototypes,
32409 which can conflict with char $ac_func (); below.
32410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32411 <limits.h> exists even on freestanding compilers. */
32414 # include <limits.h>
32416 # include <assert.h>
32421 /* Override any GCC internal prototype to avoid an error.
32422 Use char because int might match the return type of a GCC
32423 builtin and then its argument prototype would still apply. */
32428 /* The GNU C library defines this for functions which it implements
32429 to always fail with ENOSYS. Some functions are actually named
32430 something starting with __ and the normal name is an alias. */
32431 #if defined __stub_$ac_func || defined __stub___$ac_func
32438 return $ac_func ();
32443 rm -f conftest.$ac_objext conftest$ac_exeext
32444 if { (ac_try="$ac_link"
32445 case "(($ac_try" in
32446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447 *) ac_try_echo=$ac_try;;
32449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_link") 2>conftest.er1
32452 grep -v '^ *+' conftest.er1 >conftest.err
32454 cat conftest.err >&5
32455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 (exit $ac_status); } &&
32457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32458 { (case "(($ac_try" in
32459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460 *) ac_try_echo=$ac_try;;
32462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463 (eval "$ac_try") 2>&5
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); }; } &&
32467 { ac_try='test -s conftest$ac_exeext'
32468 { (case "(($ac_try" in
32469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32470 *) ac_try_echo=$ac_try;;
32472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32473 (eval "$ac_try") 2>&5
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); }; }; then
32477 eval "$as_ac_var=yes"
32479 echo "$as_me: failed program was:" >&5
32480 sed 's/^/| /' conftest.$ac_ext >&5
32482 eval "$as_ac_var=no"
32485 rm -f core conftest.err conftest.$ac_objext \
32486 conftest$ac_exeext conftest.$ac_ext
32488 ac_res=`eval echo '${'$as_ac_var'}'`
32489 { echo "$as_me:$LINENO: result: $ac_res" >&5
32490 echo "${ECHO_T}$ac_res" >&6; }
32491 if test `eval echo '${'$as_ac_var'}'` = yes; then
32492 cat >>confdefs.h <<_ACEOF
32493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32503 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32509 echo $ECHO_N "(cached) $ECHO_C" >&6
32511 cat >conftest.$ac_ext <<_ACEOF
32514 cat confdefs.h >>conftest.$ac_ext
32515 cat >>conftest.$ac_ext <<_ACEOF
32516 /* end confdefs.h. */
32517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32519 #define $ac_func innocuous_$ac_func
32521 /* System header to define __stub macros and hopefully few prototypes,
32522 which can conflict with char $ac_func (); below.
32523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32524 <limits.h> exists even on freestanding compilers. */
32527 # include <limits.h>
32529 # include <assert.h>
32534 /* Override any GCC internal prototype to avoid an error.
32535 Use char because int might match the return type of a GCC
32536 builtin and then its argument prototype would still apply. */
32541 /* The GNU C library defines this for functions which it implements
32542 to always fail with ENOSYS. Some functions are actually named
32543 something starting with __ and the normal name is an alias. */
32544 #if defined __stub_$ac_func || defined __stub___$ac_func
32551 return $ac_func ();
32556 rm -f conftest.$ac_objext conftest$ac_exeext
32557 if { (ac_try="$ac_link"
32558 case "(($ac_try" in
32559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32560 *) ac_try_echo=$ac_try;;
32562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32563 (eval "$ac_link") 2>conftest.er1
32565 grep -v '^ *+' conftest.er1 >conftest.err
32567 cat conftest.err >&5
32568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569 (exit $ac_status); } &&
32570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32571 { (case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_try") 2>&5
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; } &&
32580 { ac_try='test -s conftest$ac_exeext'
32581 { (case "(($ac_try" in
32582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583 *) ac_try_echo=$ac_try;;
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586 (eval "$ac_try") 2>&5
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); }; }; then
32590 eval "$as_ac_var=yes"
32592 echo "$as_me: failed program was:" >&5
32593 sed 's/^/| /' conftest.$ac_ext >&5
32595 eval "$as_ac_var=no"
32598 rm -f core conftest.err conftest.$ac_objext \
32599 conftest$ac_exeext conftest.$ac_ext
32601 ac_res=`eval echo '${'$as_ac_var'}'`
32602 { echo "$as_me:$LINENO: result: $ac_res" >&5
32603 echo "${ECHO_T}$ac_res" >&6; }
32604 if test `eval echo '${'$as_ac_var'}'` = yes; then
32605 cat >>confdefs.h <<_ACEOF
32606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32612 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32613 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32614 if test "${llvm_cv_c_printf_a+set}" = set; then
32615 echo $ECHO_N "(cached) $ECHO_C" >&6
32618 ac_cpp='$CPP $CPPFLAGS'
32619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32623 if test "$cross_compiling" = yes; then
32624 llvmac_cv_c_printf_a=no
32626 cat >conftest.$ac_ext <<_ACEOF
32630 cat confdefs.h >>conftest.$ac_ext
32631 cat >>conftest.$ac_ext <<_ACEOF
32632 /* end confdefs.h. */
32635 #include <stdlib.h>
32641 volatile double A, B;
32645 sprintf(Buffer, "%a", A);
32649 if (A != 0x1.999999999999ap-4)
32656 rm -f conftest$ac_exeext
32657 if { (ac_try="$ac_link"
32658 case "(($ac_try" in
32659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32660 *) ac_try_echo=$ac_try;;
32662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32663 (eval "$ac_link") 2>&5
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32667 { (case "(($ac_try" in
32668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32669 *) ac_try_echo=$ac_try;;
32671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32672 (eval "$ac_try") 2>&5
32674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675 (exit $ac_status); }; }; then
32676 llvm_cv_c_printf_a=yes
32678 echo "$as_me: program exited with status $ac_status" >&5
32679 echo "$as_me: failed program was:" >&5
32680 sed 's/^/| /' conftest.$ac_ext >&5
32682 ( exit $ac_status )
32683 llvmac_cv_c_printf_a=no
32685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32690 ac_cpp='$CPP $CPPFLAGS'
32691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32696 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32697 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32698 if test "$llvm_cv_c_printf_a" = "yes"; then
32700 cat >>confdefs.h <<\_ACEOF
32701 #define HAVE_PRINTF_A 1
32706 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32707 # for constant arguments. Useless!
32708 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32709 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32710 if test "${ac_cv_working_alloca_h+set}" = set; then
32711 echo $ECHO_N "(cached) $ECHO_C" >&6
32713 cat >conftest.$ac_ext <<_ACEOF
32716 cat confdefs.h >>conftest.$ac_ext
32717 cat >>conftest.$ac_ext <<_ACEOF
32718 /* end confdefs.h. */
32719 #include <alloca.h>
32723 char *p = (char *) alloca (2 * sizeof (int));
32729 rm -f conftest.$ac_objext conftest$ac_exeext
32730 if { (ac_try="$ac_link"
32731 case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_link") 2>conftest.er1
32738 grep -v '^ *+' conftest.er1 >conftest.err
32740 cat conftest.err >&5
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); } &&
32743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32744 { (case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_try") 2>&5
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); }; } &&
32753 { ac_try='test -s conftest$ac_exeext'
32754 { (case "(($ac_try" in
32755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32756 *) ac_try_echo=$ac_try;;
32758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32759 (eval "$ac_try") 2>&5
32761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762 (exit $ac_status); }; }; then
32763 ac_cv_working_alloca_h=yes
32765 echo "$as_me: failed program was:" >&5
32766 sed 's/^/| /' conftest.$ac_ext >&5
32768 ac_cv_working_alloca_h=no
32771 rm -f core conftest.err conftest.$ac_objext \
32772 conftest$ac_exeext conftest.$ac_ext
32774 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32775 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32776 if test $ac_cv_working_alloca_h = yes; then
32778 cat >>confdefs.h <<\_ACEOF
32779 #define HAVE_ALLOCA_H 1
32784 { echo "$as_me:$LINENO: checking for alloca" >&5
32785 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32786 if test "${ac_cv_func_alloca_works+set}" = set; then
32787 echo $ECHO_N "(cached) $ECHO_C" >&6
32789 cat >conftest.$ac_ext <<_ACEOF
32792 cat confdefs.h >>conftest.$ac_ext
32793 cat >>conftest.$ac_ext <<_ACEOF
32794 /* end confdefs.h. */
32796 # define alloca __builtin_alloca
32799 # include <malloc.h>
32800 # define alloca _alloca
32803 # include <alloca.h>
32808 # ifndef alloca /* predefined by HP cc +Olibcalls */
32819 char *p = (char *) alloca (1);
32825 rm -f conftest.$ac_objext conftest$ac_exeext
32826 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
32834 grep -v '^ *+' conftest.er1 >conftest.err
32836 cat conftest.err >&5
32837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838 (exit $ac_status); } &&
32839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32840 { (case "(($ac_try" in
32841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32842 *) ac_try_echo=$ac_try;;
32844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32845 (eval "$ac_try") 2>&5
32847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848 (exit $ac_status); }; } &&
32849 { ac_try='test -s conftest$ac_exeext'
32850 { (case "(($ac_try" in
32851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32852 *) ac_try_echo=$ac_try;;
32854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32855 (eval "$ac_try") 2>&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); }; }; then
32859 ac_cv_func_alloca_works=yes
32861 echo "$as_me: failed program was:" >&5
32862 sed 's/^/| /' conftest.$ac_ext >&5
32864 ac_cv_func_alloca_works=no
32867 rm -f core conftest.err conftest.$ac_objext \
32868 conftest$ac_exeext conftest.$ac_ext
32870 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32871 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32873 if test $ac_cv_func_alloca_works = yes; then
32875 cat >>confdefs.h <<\_ACEOF
32876 #define HAVE_ALLOCA 1
32880 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32881 # that cause trouble. Some versions do not even contain alloca or
32882 # contain a buggy version. If you still want to use their alloca,
32883 # use ar to extract alloca.o from them instead of compiling alloca.c.
32885 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32887 cat >>confdefs.h <<\_ACEOF
32892 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32893 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32894 if test "${ac_cv_os_cray+set}" = set; then
32895 echo $ECHO_N "(cached) $ECHO_C" >&6
32897 cat >conftest.$ac_ext <<_ACEOF
32900 cat confdefs.h >>conftest.$ac_ext
32901 cat >>conftest.$ac_ext <<_ACEOF
32902 /* end confdefs.h. */
32903 #if defined CRAY && ! defined CRAY2
32910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32911 $EGREP "webecray" >/dev/null 2>&1; then
32919 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32920 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32921 if test $ac_cv_os_cray = yes; then
32922 for ac_func in _getb67 GETB67 getb67; do
32923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32927 echo $ECHO_N "(cached) $ECHO_C" >&6
32929 cat >conftest.$ac_ext <<_ACEOF
32932 cat confdefs.h >>conftest.$ac_ext
32933 cat >>conftest.$ac_ext <<_ACEOF
32934 /* end confdefs.h. */
32935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32937 #define $ac_func innocuous_$ac_func
32939 /* System header to define __stub macros and hopefully few prototypes,
32940 which can conflict with char $ac_func (); below.
32941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32942 <limits.h> exists even on freestanding compilers. */
32945 # include <limits.h>
32947 # include <assert.h>
32952 /* Override any GCC internal prototype to avoid an error.
32953 Use char because int might match the return type of a GCC
32954 builtin and then its argument prototype would still apply. */
32959 /* The GNU C library defines this for functions which it implements
32960 to always fail with ENOSYS. Some functions are actually named
32961 something starting with __ and the normal name is an alias. */
32962 #if defined __stub_$ac_func || defined __stub___$ac_func
32969 return $ac_func ();
32974 rm -f conftest.$ac_objext conftest$ac_exeext
32975 if { (ac_try="$ac_link"
32976 case "(($ac_try" in
32977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32978 *) ac_try_echo=$ac_try;;
32980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32981 (eval "$ac_link") 2>conftest.er1
32983 grep -v '^ *+' conftest.er1 >conftest.err
32985 cat conftest.err >&5
32986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987 (exit $ac_status); } &&
32988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32989 { (case "(($ac_try" in
32990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32991 *) ac_try_echo=$ac_try;;
32993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32994 (eval "$ac_try") 2>&5
32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997 (exit $ac_status); }; } &&
32998 { ac_try='test -s conftest$ac_exeext'
32999 { (case "(($ac_try" in
33000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001 *) ac_try_echo=$ac_try;;
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004 (eval "$ac_try") 2>&5
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); }; }; then
33008 eval "$as_ac_var=yes"
33010 echo "$as_me: failed program was:" >&5
33011 sed 's/^/| /' conftest.$ac_ext >&5
33013 eval "$as_ac_var=no"
33016 rm -f core conftest.err conftest.$ac_objext \
33017 conftest$ac_exeext conftest.$ac_ext
33019 ac_res=`eval echo '${'$as_ac_var'}'`
33020 { echo "$as_me:$LINENO: result: $ac_res" >&5
33021 echo "${ECHO_T}$ac_res" >&6; }
33022 if test `eval echo '${'$as_ac_var'}'` = yes; then
33024 cat >>confdefs.h <<_ACEOF
33025 #define CRAY_STACKSEG_END $ac_func
33034 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33035 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33036 if test "${ac_cv_c_stack_direction+set}" = set; then
33037 echo $ECHO_N "(cached) $ECHO_C" >&6
33039 if test "$cross_compiling" = yes; then
33040 ac_cv_c_stack_direction=0
33042 cat >conftest.$ac_ext <<_ACEOF
33045 cat confdefs.h >>conftest.$ac_ext
33046 cat >>conftest.$ac_ext <<_ACEOF
33047 /* end confdefs.h. */
33048 $ac_includes_default
33050 find_stack_direction ()
33052 static char *addr = 0;
33057 return find_stack_direction ();
33060 return (&dummy > addr) ? 1 : -1;
33066 return find_stack_direction () < 0;
33069 rm -f conftest$ac_exeext
33070 if { (ac_try="$ac_link"
33071 case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_link") 2>&5
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33080 { (case "(($ac_try" in
33081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33082 *) ac_try_echo=$ac_try;;
33084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33085 (eval "$ac_try") 2>&5
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); }; }; then
33089 ac_cv_c_stack_direction=1
33091 echo "$as_me: program exited with status $ac_status" >&5
33092 echo "$as_me: failed program was:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33095 ( exit $ac_status )
33096 ac_cv_c_stack_direction=-1
33098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33103 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33104 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33106 cat >>confdefs.h <<_ACEOF
33107 #define STACK_DIRECTION $ac_cv_c_stack_direction
33114 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33115 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33116 if test "${ac_cv_func_rand48+set}" = set; then
33117 echo $ECHO_N "(cached) $ECHO_C" >&6
33120 ac_cpp='$CXXCPP $CPPFLAGS'
33121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33125 cat >conftest.$ac_ext <<_ACEOF
33128 cat confdefs.h >>conftest.$ac_ext
33129 cat >>conftest.$ac_ext <<_ACEOF
33130 /* end confdefs.h. */
33131 #include <stdlib.h>
33135 srand48(0);lrand48();drand48();
33140 rm -f conftest.$ac_objext
33141 if { (ac_try="$ac_compile"
33142 case "(($ac_try" in
33143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144 *) ac_try_echo=$ac_try;;
33146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147 (eval "$ac_compile") 2>conftest.er1
33149 grep -v '^ *+' conftest.er1 >conftest.err
33151 cat conftest.err >&5
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); } &&
33154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33155 { (case "(($ac_try" in
33156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157 *) ac_try_echo=$ac_try;;
33159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160 (eval "$ac_try") 2>&5
33162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163 (exit $ac_status); }; } &&
33164 { ac_try='test -s conftest.$ac_objext'
33165 { (case "(($ac_try" in
33166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33167 *) ac_try_echo=$ac_try;;
33169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33170 (eval "$ac_try") 2>&5
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; }; then
33174 ac_cv_func_rand48=yes
33176 echo "$as_me: failed program was:" >&5
33177 sed 's/^/| /' conftest.$ac_ext >&5
33179 ac_cv_func_rand48=no
33182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33184 ac_cpp='$CPP $CPPFLAGS'
33185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33190 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33191 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33193 if test "$ac_cv_func_rand48" = "yes" ; then
33195 cat >>confdefs.h <<\_ACEOF
33196 #define HAVE_RAND48 1
33202 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33203 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33204 if test "${ac_cv_cxx_namespaces+set}" = set; then
33205 echo $ECHO_N "(cached) $ECHO_C" >&6
33208 ac_cpp='$CXXCPP $CPPFLAGS'
33209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33213 cat >conftest.$ac_ext <<_ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h. */
33219 namespace Outer { namespace Inner { int i = 0; }}
33223 using namespace Outer::Inner; return i;
33228 rm -f conftest.$ac_objext
33229 if { (ac_try="$ac_compile"
33230 case "(($ac_try" in
33231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232 *) ac_try_echo=$ac_try;;
33234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235 (eval "$ac_compile") 2>conftest.er1
33237 grep -v '^ *+' conftest.er1 >conftest.err
33239 cat conftest.err >&5
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); } &&
33242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33243 { (case "(($ac_try" in
33244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245 *) ac_try_echo=$ac_try;;
33247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_try") 2>&5
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); }; } &&
33252 { ac_try='test -s conftest.$ac_objext'
33253 { (case "(($ac_try" in
33254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33255 *) ac_try_echo=$ac_try;;
33257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33258 (eval "$ac_try") 2>&5
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); }; }; then
33262 ac_cv_cxx_namespaces=yes
33264 echo "$as_me: failed program was:" >&5
33265 sed 's/^/| /' conftest.$ac_ext >&5
33267 ac_cv_cxx_namespaces=no
33270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33272 ac_cpp='$CPP $CPPFLAGS'
33273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33279 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33280 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33281 if test "$ac_cv_cxx_namespaces" = yes; then
33283 cat >>confdefs.h <<\_ACEOF
33284 #define HAVE_NAMESPACES
33289 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33290 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33291 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33292 echo $ECHO_N "(cached) $ECHO_C" >&6
33296 ac_cpp='$CXXCPP $CPPFLAGS'
33297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33301 cat >conftest.$ac_ext <<_ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h. */
33307 #include <iterator>
33308 #ifdef HAVE_NAMESPACES
33309 using namespace std;
33314 iterator<int,int,int> t; return 0;
33319 rm -f conftest.$ac_objext
33320 if { (ac_try="$ac_compile"
33321 case "(($ac_try" in
33322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33323 *) ac_try_echo=$ac_try;;
33325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33326 (eval "$ac_compile") 2>conftest.er1
33328 grep -v '^ *+' conftest.er1 >conftest.err
33330 cat conftest.err >&5
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); } &&
33333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33334 { (case "(($ac_try" in
33335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336 *) ac_try_echo=$ac_try;;
33338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339 (eval "$ac_try") 2>&5
33341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342 (exit $ac_status); }; } &&
33343 { ac_try='test -s conftest.$ac_objext'
33344 { (case "(($ac_try" in
33345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33346 *) ac_try_echo=$ac_try;;
33348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33349 (eval "$ac_try") 2>&5
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); }; }; then
33353 ac_cv_cxx_have_std_iterator=yes
33355 echo "$as_me: failed program was:" >&5
33356 sed 's/^/| /' conftest.$ac_ext >&5
33358 ac_cv_cxx_have_std_iterator=no
33361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33363 ac_cpp='$CPP $CPPFLAGS'
33364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33370 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33371 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33372 if test "$ac_cv_cxx_have_std_iterator" = yes
33375 cat >>confdefs.h <<\_ACEOF
33376 #define HAVE_STD_ITERATOR 1
33381 cat >>confdefs.h <<\_ACEOF
33382 #define HAVE_STD_ITERATOR 0
33387 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33388 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33389 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33390 echo $ECHO_N "(cached) $ECHO_C" >&6
33394 ac_cpp='$CXXCPP $CPPFLAGS'
33395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33399 cat >conftest.$ac_ext <<_ACEOF
33402 cat confdefs.h >>conftest.$ac_ext
33403 cat >>conftest.$ac_ext <<_ACEOF
33404 /* end confdefs.h. */
33405 #include <iterator>
33406 #ifdef HAVE_NAMESPACES
33407 using namespace std;
33412 bidirectional_iterator<int,int> t; return 0;
33417 rm -f conftest.$ac_objext
33418 if { (ac_try="$ac_compile"
33419 case "(($ac_try" in
33420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33421 *) ac_try_echo=$ac_try;;
33423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33424 (eval "$ac_compile") 2>conftest.er1
33426 grep -v '^ *+' conftest.er1 >conftest.err
33428 cat conftest.err >&5
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); } &&
33431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33432 { (case "(($ac_try" in
33433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33434 *) ac_try_echo=$ac_try;;
33436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33437 (eval "$ac_try") 2>&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; } &&
33441 { ac_try='test -s conftest.$ac_objext'
33442 { (case "(($ac_try" in
33443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33444 *) ac_try_echo=$ac_try;;
33446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33447 (eval "$ac_try") 2>&5
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); }; }; then
33451 ac_cv_cxx_have_bi_iterator=yes
33453 echo "$as_me: failed program was:" >&5
33454 sed 's/^/| /' conftest.$ac_ext >&5
33456 ac_cv_cxx_have_bi_iterator=no
33459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33461 ac_cpp='$CPP $CPPFLAGS'
33462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33468 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33469 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33470 if test "$ac_cv_cxx_have_bi_iterator" = yes
33473 cat >>confdefs.h <<\_ACEOF
33474 #define HAVE_BI_ITERATOR 1
33479 cat >>confdefs.h <<\_ACEOF
33480 #define HAVE_BI_ITERATOR 0
33485 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33486 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33487 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33488 echo $ECHO_N "(cached) $ECHO_C" >&6
33492 ac_cpp='$CXXCPP $CPPFLAGS'
33493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33497 cat >conftest.$ac_ext <<_ACEOF
33500 cat confdefs.h >>conftest.$ac_ext
33501 cat >>conftest.$ac_ext <<_ACEOF
33502 /* end confdefs.h. */
33503 #include <iterator>
33504 #ifdef HAVE_NAMESPACES
33505 using namespace std;
33510 forward_iterator<int,int> t; return 0;
33515 rm -f conftest.$ac_objext
33516 if { (ac_try="$ac_compile"
33517 case "(($ac_try" in
33518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33519 *) ac_try_echo=$ac_try;;
33521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33522 (eval "$ac_compile") 2>conftest.er1
33524 grep -v '^ *+' conftest.er1 >conftest.err
33526 cat conftest.err >&5
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); } &&
33529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33530 { (case "(($ac_try" in
33531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33532 *) ac_try_echo=$ac_try;;
33534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33535 (eval "$ac_try") 2>&5
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); }; } &&
33539 { ac_try='test -s conftest.$ac_objext'
33540 { (case "(($ac_try" in
33541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33542 *) ac_try_echo=$ac_try;;
33544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33545 (eval "$ac_try") 2>&5
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); }; }; then
33549 ac_cv_cxx_have_fwd_iterator=yes
33551 echo "$as_me: failed program was:" >&5
33552 sed 's/^/| /' conftest.$ac_ext >&5
33554 ac_cv_cxx_have_fwd_iterator=no
33557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33559 ac_cpp='$CPP $CPPFLAGS'
33560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33566 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33567 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33568 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33571 cat >>confdefs.h <<\_ACEOF
33572 #define HAVE_FWD_ITERATOR 1
33577 cat >>confdefs.h <<\_ACEOF
33578 #define HAVE_FWD_ITERATOR 0
33584 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33585 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33586 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33587 echo $ECHO_N "(cached) $ECHO_C" >&6
33590 ac_cpp='$CXXCPP $CPPFLAGS'
33591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33595 cat >conftest.$ac_ext <<_ACEOF
33598 cat confdefs.h >>conftest.$ac_ext
33599 cat >>conftest.$ac_ext <<_ACEOF
33600 /* end confdefs.h. */
33610 rm -f conftest.$ac_objext
33611 if { (ac_try="$ac_compile"
33612 case "(($ac_try" in
33613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33614 *) ac_try_echo=$ac_try;;
33616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33617 (eval "$ac_compile") 2>conftest.er1
33619 grep -v '^ *+' conftest.er1 >conftest.err
33621 cat conftest.err >&5
33622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 (exit $ac_status); } &&
33624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33625 { (case "(($ac_try" in
33626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627 *) ac_try_echo=$ac_try;;
33629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630 (eval "$ac_try") 2>&5
33632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633 (exit $ac_status); }; } &&
33634 { ac_try='test -s conftest.$ac_objext'
33635 { (case "(($ac_try" in
33636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637 *) ac_try_echo=$ac_try;;
33639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640 (eval "$ac_try") 2>&5
33642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33643 (exit $ac_status); }; }; then
33644 ac_cv_func_isnan_in_math_h=yes
33646 echo "$as_me: failed program was:" >&5
33647 sed 's/^/| /' conftest.$ac_ext >&5
33649 ac_cv_func_isnan_in_math_h=no
33652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33654 ac_cpp='$CPP $CPPFLAGS'
33655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33660 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33661 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33664 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33666 cat >>confdefs.h <<\_ACEOF
33667 #define HAVE_ISNAN_IN_MATH_H 1
33672 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33673 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33674 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33675 echo $ECHO_N "(cached) $ECHO_C" >&6
33678 ac_cpp='$CXXCPP $CPPFLAGS'
33679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33683 cat >conftest.$ac_ext <<_ACEOF
33686 cat confdefs.h >>conftest.$ac_ext
33687 cat >>conftest.$ac_ext <<_ACEOF
33688 /* end confdefs.h. */
33698 rm -f conftest.$ac_objext
33699 if { (ac_try="$ac_compile"
33700 case "(($ac_try" in
33701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33702 *) ac_try_echo=$ac_try;;
33704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33705 (eval "$ac_compile") 2>conftest.er1
33707 grep -v '^ *+' conftest.er1 >conftest.err
33709 cat conftest.err >&5
33710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33711 (exit $ac_status); } &&
33712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33713 { (case "(($ac_try" in
33714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33715 *) ac_try_echo=$ac_try;;
33717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33718 (eval "$ac_try") 2>&5
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); }; } &&
33722 { ac_try='test -s conftest.$ac_objext'
33723 { (case "(($ac_try" in
33724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725 *) ac_try_echo=$ac_try;;
33727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728 (eval "$ac_try") 2>&5
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; }; then
33732 ac_cv_func_isnan_in_cmath=yes
33734 echo "$as_me: failed program was:" >&5
33735 sed 's/^/| /' conftest.$ac_ext >&5
33737 ac_cv_func_isnan_in_cmath=no
33740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33742 ac_cpp='$CPP $CPPFLAGS'
33743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33748 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33749 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33751 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33753 cat >>confdefs.h <<\_ACEOF
33754 #define HAVE_ISNAN_IN_CMATH 1
33759 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33760 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33761 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33765 ac_cpp='$CXXCPP $CPPFLAGS'
33766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33770 cat >conftest.$ac_ext <<_ACEOF
33773 cat confdefs.h >>conftest.$ac_ext
33774 cat >>conftest.$ac_ext <<_ACEOF
33775 /* end confdefs.h. */
33780 float f; std::isnan(f);
33785 rm -f conftest.$ac_objext
33786 if { (ac_try="$ac_compile"
33787 case "(($ac_try" in
33788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33789 *) ac_try_echo=$ac_try;;
33791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33792 (eval "$ac_compile") 2>conftest.er1
33794 grep -v '^ *+' conftest.er1 >conftest.err
33796 cat conftest.err >&5
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); } &&
33799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33800 { (case "(($ac_try" in
33801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 *) ac_try_echo=$ac_try;;
33804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 (eval "$ac_try") 2>&5
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; } &&
33809 { ac_try='test -s conftest.$ac_objext'
33810 { (case "(($ac_try" in
33811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812 *) ac_try_echo=$ac_try;;
33814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815 (eval "$ac_try") 2>&5
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }; then
33819 ac_cv_func_std_isnan_in_cmath=yes
33821 echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33824 ac_cv_func_std_isnan_in_cmath=no
33827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33829 ac_cpp='$CPP $CPPFLAGS'
33830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33835 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33836 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33838 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33840 cat >>confdefs.h <<\_ACEOF
33841 #define HAVE_STD_ISNAN_IN_CMATH 1
33847 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33848 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33849 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33850 echo $ECHO_N "(cached) $ECHO_C" >&6
33853 ac_cpp='$CXXCPP $CPPFLAGS'
33854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33858 cat >conftest.$ac_ext <<_ACEOF
33861 cat confdefs.h >>conftest.$ac_ext
33862 cat >>conftest.$ac_ext <<_ACEOF
33863 /* end confdefs.h. */
33873 rm -f conftest.$ac_objext
33874 if { (ac_try="$ac_compile"
33875 case "(($ac_try" in
33876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33877 *) ac_try_echo=$ac_try;;
33879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33880 (eval "$ac_compile") 2>conftest.er1
33882 grep -v '^ *+' conftest.er1 >conftest.err
33884 cat conftest.err >&5
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); } &&
33887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33888 { (case "(($ac_try" in
33889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890 *) ac_try_echo=$ac_try;;
33892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893 (eval "$ac_try") 2>&5
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); }; } &&
33897 { ac_try='test -s conftest.$ac_objext'
33898 { (case "(($ac_try" in
33899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33900 *) ac_try_echo=$ac_try;;
33902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33903 (eval "$ac_try") 2>&5
33905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 (exit $ac_status); }; }; then
33907 ac_cv_func_isinf_in_math_h=yes
33909 echo "$as_me: failed program was:" >&5
33910 sed 's/^/| /' conftest.$ac_ext >&5
33912 ac_cv_func_isinf_in_math_h=no
33915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33917 ac_cpp='$CPP $CPPFLAGS'
33918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33923 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33924 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33926 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33928 cat >>confdefs.h <<\_ACEOF
33929 #define HAVE_ISINF_IN_MATH_H 1
33934 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33935 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33936 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33937 echo $ECHO_N "(cached) $ECHO_C" >&6
33940 ac_cpp='$CXXCPP $CPPFLAGS'
33941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33945 cat >conftest.$ac_ext <<_ACEOF
33948 cat confdefs.h >>conftest.$ac_ext
33949 cat >>conftest.$ac_ext <<_ACEOF
33950 /* end confdefs.h. */
33960 rm -f conftest.$ac_objext
33961 if { (ac_try="$ac_compile"
33962 case "(($ac_try" in
33963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33964 *) ac_try_echo=$ac_try;;
33966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33967 (eval "$ac_compile") 2>conftest.er1
33969 grep -v '^ *+' conftest.er1 >conftest.err
33971 cat conftest.err >&5
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); } &&
33974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33975 { (case "(($ac_try" in
33976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33977 *) ac_try_echo=$ac_try;;
33979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33980 (eval "$ac_try") 2>&5
33982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983 (exit $ac_status); }; } &&
33984 { ac_try='test -s conftest.$ac_objext'
33985 { (case "(($ac_try" in
33986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33987 *) ac_try_echo=$ac_try;;
33989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33990 (eval "$ac_try") 2>&5
33992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993 (exit $ac_status); }; }; then
33994 ac_cv_func_isinf_in_cmath=yes
33996 echo "$as_me: failed program was:" >&5
33997 sed 's/^/| /' conftest.$ac_ext >&5
33999 ac_cv_func_isinf_in_cmath=no
34002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34004 ac_cpp='$CPP $CPPFLAGS'
34005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34010 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34011 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34013 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34015 cat >>confdefs.h <<\_ACEOF
34016 #define HAVE_ISINF_IN_CMATH 1
34021 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34022 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34023 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34024 echo $ECHO_N "(cached) $ECHO_C" >&6
34027 ac_cpp='$CXXCPP $CPPFLAGS'
34028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34032 cat >conftest.$ac_ext <<_ACEOF
34035 cat confdefs.h >>conftest.$ac_ext
34036 cat >>conftest.$ac_ext <<_ACEOF
34037 /* end confdefs.h. */
34042 float f; std::isinf(f)}
34047 rm -f conftest.$ac_objext
34048 if { (ac_try="$ac_compile"
34049 case "(($ac_try" in
34050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34051 *) ac_try_echo=$ac_try;;
34053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34054 (eval "$ac_compile") 2>conftest.er1
34056 grep -v '^ *+' conftest.er1 >conftest.err
34058 cat conftest.err >&5
34059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34060 (exit $ac_status); } &&
34061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34062 { (case "(($ac_try" in
34063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34064 *) ac_try_echo=$ac_try;;
34066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34067 (eval "$ac_try") 2>&5
34069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070 (exit $ac_status); }; } &&
34071 { ac_try='test -s conftest.$ac_objext'
34072 { (case "(($ac_try" in
34073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074 *) ac_try_echo=$ac_try;;
34076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077 (eval "$ac_try") 2>&5
34079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080 (exit $ac_status); }; }; then
34081 ac_cv_func_std_isinf_in_cmath=yes
34083 echo "$as_me: failed program was:" >&5
34084 sed 's/^/| /' conftest.$ac_ext >&5
34086 ac_cv_func_std_isinf_in_cmath=no
34089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34091 ac_cpp='$CPP $CPPFLAGS'
34092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34097 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34098 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34100 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34102 cat >>confdefs.h <<\_ACEOF
34103 #define HAVE_STD_ISINF_IN_CMATH 1
34108 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34109 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34110 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34111 echo $ECHO_N "(cached) $ECHO_C" >&6
34114 ac_cpp='$CXXCPP $CPPFLAGS'
34115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34119 cat >conftest.$ac_ext <<_ACEOF
34122 cat confdefs.h >>conftest.$ac_ext
34123 cat >>conftest.$ac_ext <<_ACEOF
34124 /* end confdefs.h. */
34125 #include <ieeefp.h>
34129 float f; finite(f);
34134 rm -f conftest.$ac_objext
34135 if { (ac_try="$ac_compile"
34136 case "(($ac_try" in
34137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34138 *) ac_try_echo=$ac_try;;
34140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34141 (eval "$ac_compile") 2>conftest.er1
34143 grep -v '^ *+' conftest.er1 >conftest.err
34145 cat conftest.err >&5
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); } &&
34148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34149 { (case "(($ac_try" in
34150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34151 *) ac_try_echo=$ac_try;;
34153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34154 (eval "$ac_try") 2>&5
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); }; } &&
34158 { ac_try='test -s conftest.$ac_objext'
34159 { (case "(($ac_try" in
34160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34161 *) ac_try_echo=$ac_try;;
34163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34164 (eval "$ac_try") 2>&5
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); }; }; then
34168 ac_cv_func_finite_in_ieeefp_h=yes
34170 echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.$ac_ext >&5
34173 ac_cv_func_finite_in_ieeefp_h=no
34176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34178 ac_cpp='$CPP $CPPFLAGS'
34179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34184 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34185 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34187 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34189 cat >>confdefs.h <<\_ACEOF
34190 #define HAVE_FINITE_IN_IEEEFP_H 1
34197 if test "$llvm_cv_platform_type" = "Unix" ; then
34200 for ac_header in stdlib.h unistd.h
34202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34207 echo $ECHO_N "(cached) $ECHO_C" >&6
34209 ac_res=`eval echo '${'$as_ac_Header'}'`
34210 { echo "$as_me:$LINENO: result: $ac_res" >&5
34211 echo "${ECHO_T}$ac_res" >&6; }
34213 # Is the header compilable?
34214 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34216 cat >conftest.$ac_ext <<_ACEOF
34219 cat confdefs.h >>conftest.$ac_ext
34220 cat >>conftest.$ac_ext <<_ACEOF
34221 /* end confdefs.h. */
34222 $ac_includes_default
34223 #include <$ac_header>
34225 rm -f conftest.$ac_objext
34226 if { (ac_try="$ac_compile"
34227 case "(($ac_try" in
34228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34229 *) ac_try_echo=$ac_try;;
34231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34232 (eval "$ac_compile") 2>conftest.er1
34234 grep -v '^ *+' conftest.er1 >conftest.err
34236 cat conftest.err >&5
34237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238 (exit $ac_status); } &&
34239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34240 { (case "(($ac_try" in
34241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34242 *) ac_try_echo=$ac_try;;
34244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34245 (eval "$ac_try") 2>&5
34247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); }; } &&
34249 { ac_try='test -s conftest.$ac_objext'
34250 { (case "(($ac_try" in
34251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34252 *) ac_try_echo=$ac_try;;
34254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34255 (eval "$ac_try") 2>&5
34257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); }; }; then
34259 ac_header_compiler=yes
34261 echo "$as_me: failed program was:" >&5
34262 sed 's/^/| /' conftest.$ac_ext >&5
34264 ac_header_compiler=no
34267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34269 echo "${ECHO_T}$ac_header_compiler" >&6; }
34271 # Is the header present?
34272 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34274 cat >conftest.$ac_ext <<_ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h. */
34280 #include <$ac_header>
34282 if { (ac_try="$ac_cpp conftest.$ac_ext"
34283 case "(($ac_try" in
34284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34285 *) ac_try_echo=$ac_try;;
34287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34290 grep -v '^ *+' conftest.er1 >conftest.err
34292 cat conftest.err >&5
34293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294 (exit $ac_status); } >/dev/null; then
34295 if test -s conftest.err; then
34296 ac_cpp_err=$ac_c_preproc_warn_flag
34297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34304 if test -z "$ac_cpp_err"; then
34305 ac_header_preproc=yes
34307 echo "$as_me: failed program was:" >&5
34308 sed 's/^/| /' conftest.$ac_ext >&5
34310 ac_header_preproc=no
34313 rm -f conftest.err conftest.$ac_ext
34314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34315 echo "${ECHO_T}$ac_header_preproc" >&6; }
34317 # So? What about this header?
34318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34324 ac_header_preproc=yes
34327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34340 ## ----------------------------------- ##
34341 ## Report this to llvmbugs@cs.uiuc.edu ##
34342 ## ----------------------------------- ##
34344 ) | sed "s/^/$as_me: WARNING: /" >&2
34347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34350 echo $ECHO_N "(cached) $ECHO_C" >&6
34352 eval "$as_ac_Header=\$ac_header_preproc"
34354 ac_res=`eval echo '${'$as_ac_Header'}'`
34355 { echo "$as_me:$LINENO: result: $ac_res" >&5
34356 echo "${ECHO_T}$ac_res" >&6; }
34359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34360 cat >>confdefs.h <<_ACEOF
34361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34369 for ac_func in getpagesize
34371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34375 echo $ECHO_N "(cached) $ECHO_C" >&6
34377 cat >conftest.$ac_ext <<_ACEOF
34380 cat confdefs.h >>conftest.$ac_ext
34381 cat >>conftest.$ac_ext <<_ACEOF
34382 /* end confdefs.h. */
34383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34385 #define $ac_func innocuous_$ac_func
34387 /* System header to define __stub macros and hopefully few prototypes,
34388 which can conflict with char $ac_func (); below.
34389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34390 <limits.h> exists even on freestanding compilers. */
34393 # include <limits.h>
34395 # include <assert.h>
34400 /* Override any GCC internal prototype to avoid an error.
34401 Use char because int might match the return type of a GCC
34402 builtin and then its argument prototype would still apply. */
34407 /* The GNU C library defines this for functions which it implements
34408 to always fail with ENOSYS. Some functions are actually named
34409 something starting with __ and the normal name is an alias. */
34410 #if defined __stub_$ac_func || defined __stub___$ac_func
34417 return $ac_func ();
34422 rm -f conftest.$ac_objext conftest$ac_exeext
34423 if { (ac_try="$ac_link"
34424 case "(($ac_try" in
34425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34426 *) ac_try_echo=$ac_try;;
34428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34429 (eval "$ac_link") 2>conftest.er1
34431 grep -v '^ *+' conftest.er1 >conftest.err
34433 cat conftest.err >&5
34434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435 (exit $ac_status); } &&
34436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34437 { (case "(($ac_try" in
34438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439 *) ac_try_echo=$ac_try;;
34441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442 (eval "$ac_try") 2>&5
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); }; } &&
34446 { ac_try='test -s conftest$ac_exeext'
34447 { (case "(($ac_try" in
34448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34449 *) ac_try_echo=$ac_try;;
34451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34452 (eval "$ac_try") 2>&5
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); }; }; then
34456 eval "$as_ac_var=yes"
34458 echo "$as_me: failed program was:" >&5
34459 sed 's/^/| /' conftest.$ac_ext >&5
34461 eval "$as_ac_var=no"
34464 rm -f core conftest.err conftest.$ac_objext \
34465 conftest$ac_exeext conftest.$ac_ext
34467 ac_res=`eval echo '${'$as_ac_var'}'`
34468 { echo "$as_me:$LINENO: result: $ac_res" >&5
34469 echo "${ECHO_T}$ac_res" >&6; }
34470 if test `eval echo '${'$as_ac_var'}'` = yes; then
34471 cat >>confdefs.h <<_ACEOF
34472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34478 { echo "$as_me:$LINENO: checking for working mmap" >&5
34479 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34480 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34481 echo $ECHO_N "(cached) $ECHO_C" >&6
34483 if test "$cross_compiling" = yes; then
34484 ac_cv_func_mmap_fixed_mapped=no
34486 cat >conftest.$ac_ext <<_ACEOF
34489 cat confdefs.h >>conftest.$ac_ext
34490 cat >>conftest.$ac_ext <<_ACEOF
34491 /* end confdefs.h. */
34492 $ac_includes_default
34493 /* malloc might have been renamed as rpl_malloc. */
34496 /* Thanks to Mike Haertel and Jim Avera for this test.
34497 Here is a matrix of mmap possibilities:
34498 mmap private not fixed
34499 mmap private fixed at somewhere currently unmapped
34500 mmap private fixed at somewhere already mapped
34501 mmap shared not fixed
34502 mmap shared fixed at somewhere currently unmapped
34503 mmap shared fixed at somewhere already mapped
34504 For private mappings, we should verify that changes cannot be read()
34505 back from the file, nor mmap's back from the file at a different
34506 address. (There have been systems where private was not correctly
34507 implemented like the infamous i386 svr4.0, and systems where the
34508 VM page cache was not coherent with the file system buffer cache
34509 like early versions of FreeBSD and possibly contemporary NetBSD.)
34510 For shared mappings, we should conversely verify that changes get
34511 propagated back to all the places they're supposed to be.
34513 Grep wants private fixed already mapped.
34514 The main things grep needs to know about mmap are:
34515 * does it exist and is it safe to write into the mmap'd area
34516 * how to use it (BSD variants) */
34519 #include <sys/mman.h>
34521 #if !STDC_HEADERS && !HAVE_STDLIB_H
34525 /* This mess was copied from the GNU getpagesize.h. */
34526 #if !HAVE_GETPAGESIZE
34527 /* Assume that all systems that can run configure have sys/param.h. */
34528 # if !HAVE_SYS_PARAM_H
34529 # define HAVE_SYS_PARAM_H 1
34532 # ifdef _SC_PAGESIZE
34533 # define getpagesize() sysconf(_SC_PAGESIZE)
34534 # else /* no _SC_PAGESIZE */
34535 # if HAVE_SYS_PARAM_H
34536 # include <sys/param.h>
34537 # ifdef EXEC_PAGESIZE
34538 # define getpagesize() EXEC_PAGESIZE
34539 # else /* no EXEC_PAGESIZE */
34541 # define getpagesize() NBPG * CLSIZE
34544 # endif /* no CLSIZE */
34545 # else /* no NBPG */
34547 # define getpagesize() NBPC
34548 # else /* no NBPC */
34550 # define getpagesize() PAGESIZE
34551 # endif /* PAGESIZE */
34552 # endif /* no NBPC */
34553 # endif /* no NBPG */
34554 # endif /* no EXEC_PAGESIZE */
34555 # else /* no HAVE_SYS_PARAM_H */
34556 # define getpagesize() 8192 /* punt totally */
34557 # endif /* no HAVE_SYS_PARAM_H */
34558 # endif /* no _SC_PAGESIZE */
34560 #endif /* no HAVE_GETPAGESIZE */
34565 char *data, *data2, *data3;
34569 pagesize = getpagesize ();
34571 /* First, make a file with some known garbage in it. */
34572 data = (char *) malloc (pagesize);
34575 for (i = 0; i < pagesize; ++i)
34576 *(data + i) = rand ();
34578 fd = creat ("conftest.mmap", 0600);
34581 if (write (fd, data, pagesize) != pagesize)
34585 /* Next, try to mmap the file at a fixed address which already has
34586 something else allocated at it. If we can, also make sure that
34587 we see the same garbage. */
34588 fd = open ("conftest.mmap", O_RDWR);
34591 data2 = (char *) malloc (2 * pagesize);
34594 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34595 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34596 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34598 for (i = 0; i < pagesize; ++i)
34599 if (*(data + i) != *(data2 + i))
34602 /* Finally, make sure that changes to the mapped area do not
34603 percolate back to the file as seen by read(). (This is a bug on
34604 some variants of i386 svr4.0.) */
34605 for (i = 0; i < pagesize; ++i)
34606 *(data2 + i) = *(data2 + i) + 1;
34607 data3 = (char *) malloc (pagesize);
34610 if (read (fd, data3, pagesize) != pagesize)
34612 for (i = 0; i < pagesize; ++i)
34613 if (*(data + i) != *(data3 + i))
34619 rm -f conftest$ac_exeext
34620 if { (ac_try="$ac_link"
34621 case "(($ac_try" in
34622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34623 *) ac_try_echo=$ac_try;;
34625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34626 (eval "$ac_link") 2>&5
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34630 { (case "(($ac_try" in
34631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34632 *) ac_try_echo=$ac_try;;
34634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34635 (eval "$ac_try") 2>&5
34637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); }; }; then
34639 ac_cv_func_mmap_fixed_mapped=yes
34641 echo "$as_me: program exited with status $ac_status" >&5
34642 echo "$as_me: failed program was:" >&5
34643 sed 's/^/| /' conftest.$ac_ext >&5
34645 ( exit $ac_status )
34646 ac_cv_func_mmap_fixed_mapped=no
34648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34653 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34654 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34655 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34657 cat >>confdefs.h <<\_ACEOF
34658 #define HAVE_MMAP 1
34662 rm -f conftest.mmap
34664 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34665 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34666 if test "${ac_cv_func_mmap_file+set}" = set; then
34667 echo $ECHO_N "(cached) $ECHO_C" >&6
34670 ac_cpp='$CPP $CPPFLAGS'
34671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34675 if test "$cross_compiling" = yes; then
34676 ac_cv_func_mmap_file=no
34678 cat >conftest.$ac_ext <<_ACEOF
34682 cat confdefs.h >>conftest.$ac_ext
34683 cat >>conftest.$ac_ext <<_ACEOF
34684 /* end confdefs.h. */
34686 #include <sys/types.h>
34687 #include <sys/mman.h>
34695 fd = creat ("foo",0777);
34696 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34698 return (fd != (int) MAP_FAILED);
34703 rm -f conftest$ac_exeext
34704 if { (ac_try="$ac_link"
34705 case "(($ac_try" in
34706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34707 *) ac_try_echo=$ac_try;;
34709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34710 (eval "$ac_link") 2>&5
34712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34714 { (case "(($ac_try" in
34715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34716 *) ac_try_echo=$ac_try;;
34718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34719 (eval "$ac_try") 2>&5
34721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722 (exit $ac_status); }; }; then
34723 ac_cv_func_mmap_file=yes
34725 echo "$as_me: program exited with status $ac_status" >&5
34726 echo "$as_me: failed program was:" >&5
34727 sed 's/^/| /' conftest.$ac_ext >&5
34729 ( exit $ac_status )
34730 ac_cv_func_mmap_file=no
34732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34737 ac_cpp='$CPP $CPPFLAGS'
34738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34744 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34745 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34746 if test "$ac_cv_func_mmap_file" = yes; then
34748 cat >>confdefs.h <<\_ACEOF
34749 #define HAVE_MMAP_FILE
34756 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34757 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34758 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34759 echo $ECHO_N "(cached) $ECHO_C" >&6
34761 if test "$llvm_cv_os_type" = "Interix" ; then
34762 ac_cv_need_dev_zero_for_mmap=yes
34764 ac_cv_need_dev_zero_for_mmap=no
34768 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34769 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34770 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34772 cat >>confdefs.h <<\_ACEOF
34773 #define NEED_DEV_ZERO_FOR_MMAP 1
34778 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34780 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34781 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34783 if test "$ac_cv_func_mmap_file" = "no"
34785 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34786 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34790 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34791 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34792 cat >conftest.$ac_ext <<_ACEOF
34795 cat confdefs.h >>conftest.$ac_ext
34796 cat >>conftest.$ac_ext <<_ACEOF
34797 /* end confdefs.h. */
34799 volatile unsigned long val = 1;
34800 __sync_synchronize();
34801 __sync_val_compare_and_swap(&val, 1, 0);
34802 __sync_add_and_fetch(&val, 1);
34803 __sync_sub_and_fetch(&val, 1);
34808 rm -f conftest.$ac_objext conftest$ac_exeext
34809 if { (ac_try="$ac_link"
34810 case "(($ac_try" in
34811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34812 *) ac_try_echo=$ac_try;;
34814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34815 (eval "$ac_link") 2>conftest.er1
34817 grep -v '^ *+' conftest.er1 >conftest.err
34819 cat conftest.err >&5
34820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821 (exit $ac_status); } &&
34822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34823 { (case "(($ac_try" in
34824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825 *) ac_try_echo=$ac_try;;
34827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828 (eval "$ac_try") 2>&5
34830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831 (exit $ac_status); }; } &&
34832 { ac_try='test -s conftest$ac_exeext'
34833 { (case "(($ac_try" in
34834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34835 *) ac_try_echo=$ac_try;;
34837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34838 (eval "$ac_try") 2>&5
34840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34841 (exit $ac_status); }; }; then
34842 { echo "$as_me:$LINENO: result: yes" >&5
34843 echo "${ECHO_T}yes" >&6; }
34845 cat >>confdefs.h <<\_ACEOF
34846 #define LLVM_MULTITHREADED 1
34850 echo "$as_me: failed program was:" >&5
34851 sed 's/^/| /' conftest.$ac_ext >&5
34853 { echo "$as_me:$LINENO: result: no" >&5
34854 echo "${ECHO_T}no" >&6; }
34856 cat >>confdefs.h <<\_ACEOF
34857 #define LLVM_MULTITHREADED 0
34860 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34861 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34864 rm -f core conftest.err conftest.$ac_objext \
34865 conftest$ac_exeext conftest.$ac_ext
34869 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34870 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34871 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34872 if test "${llvm_cv_linux_mixed+set}" = set; then
34873 echo $ECHO_N "(cached) $ECHO_C" >&6
34876 ac_cpp='$CPP $CPPFLAGS'
34877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34881 cat >conftest.$ac_ext <<_ACEOF
34884 cat confdefs.h >>conftest.$ac_ext
34885 cat >>conftest.$ac_ext <<_ACEOF
34886 /* end confdefs.h. */
34888 error: Not x86-64 even if uname says so!
34899 rm -f conftest.$ac_objext
34900 if { (ac_try="$ac_compile"
34901 case "(($ac_try" in
34902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34903 *) ac_try_echo=$ac_try;;
34905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34906 (eval "$ac_compile") 2>conftest.er1
34908 grep -v '^ *+' conftest.er1 >conftest.err
34910 cat conftest.err >&5
34911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912 (exit $ac_status); } &&
34913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34914 { (case "(($ac_try" in
34915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34916 *) ac_try_echo=$ac_try;;
34918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34919 (eval "$ac_try") 2>&5
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); }; } &&
34923 { ac_try='test -s conftest.$ac_objext'
34924 { (case "(($ac_try" in
34925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34926 *) ac_try_echo=$ac_try;;
34928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34929 (eval "$ac_try") 2>&5
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; }; then
34933 llvm_cv_linux_mixed=no
34935 echo "$as_me: failed program was:" >&5
34936 sed 's/^/| /' conftest.$ac_ext >&5
34938 llvm_cv_linux_mixed=yes
34941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34943 ac_cpp='$CPP $CPPFLAGS'
34944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34950 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34951 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34953 if test "$llvm_cv_linux_mixed" = "yes"; then
34954 llvm_cv_target_arch="x86"
34960 for ac_func in __dso_handle
34962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34966 echo $ECHO_N "(cached) $ECHO_C" >&6
34968 cat >conftest.$ac_ext <<_ACEOF
34971 cat confdefs.h >>conftest.$ac_ext
34972 cat >>conftest.$ac_ext <<_ACEOF
34973 /* end confdefs.h. */
34974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34976 #define $ac_func innocuous_$ac_func
34978 /* System header to define __stub macros and hopefully few prototypes,
34979 which can conflict with char $ac_func (); below.
34980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34981 <limits.h> exists even on freestanding compilers. */
34984 # include <limits.h>
34986 # include <assert.h>
34991 /* Override any GCC internal prototype to avoid an error.
34992 Use char because int might match the return type of a GCC
34993 builtin and then its argument prototype would still apply. */
34998 /* The GNU C library defines this for functions which it implements
34999 to always fail with ENOSYS. Some functions are actually named
35000 something starting with __ and the normal name is an alias. */
35001 #if defined __stub_$ac_func || defined __stub___$ac_func
35008 return $ac_func ();
35013 rm -f conftest.$ac_objext conftest$ac_exeext
35014 if { (ac_try="$ac_link"
35015 case "(($ac_try" in
35016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35017 *) ac_try_echo=$ac_try;;
35019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35020 (eval "$ac_link") 2>conftest.er1
35022 grep -v '^ *+' conftest.er1 >conftest.err
35024 cat conftest.err >&5
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); } &&
35027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35028 { (case "(($ac_try" in
35029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35030 *) ac_try_echo=$ac_try;;
35032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35033 (eval "$ac_try") 2>&5
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); }; } &&
35037 { ac_try='test -s conftest$ac_exeext'
35038 { (case "(($ac_try" in
35039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35040 *) ac_try_echo=$ac_try;;
35042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35043 (eval "$ac_try") 2>&5
35045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046 (exit $ac_status); }; }; then
35047 eval "$as_ac_var=yes"
35049 echo "$as_me: failed program was:" >&5
35050 sed 's/^/| /' conftest.$ac_ext >&5
35052 eval "$as_ac_var=no"
35055 rm -f core conftest.err conftest.$ac_objext \
35056 conftest$ac_exeext conftest.$ac_ext
35058 ac_res=`eval echo '${'$as_ac_var'}'`
35059 { echo "$as_me:$LINENO: result: $ac_res" >&5
35060 echo "${ECHO_T}$ac_res" >&6; }
35061 if test `eval echo '${'$as_ac_var'}'` = yes; then
35062 cat >>confdefs.h <<_ACEOF
35063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35070 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35071 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35072 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35073 echo $ECHO_N "(cached) $ECHO_C" >&6
35075 llvm_cv_llvmgcc_sanity="no"
35076 if test -x "$LLVMGCC" ; then
35077 cp /dev/null conftest.c
35078 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35079 grep 'target datalayout =' > /dev/null 2>&1
35080 if test $? -eq 0 ; then
35081 llvm_cv_llvmgcc_sanity="yes"
35086 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35087 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35089 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35090 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35091 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35092 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35093 LLVMCC1=$llvmcc1path
35095 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35096 LLVMCC1PLUS=$llvmcc1pluspath
35098 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35099 LLVMGCCDIR=$llvmgccdir
35101 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35102 LLVMGCCLIBEXEC=$llvmgcclibexec
35104 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35105 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35106 LLVMGCC_VERSION=$llvmgccversion
35108 LLVMGCC_MAJVERS=$llvmgccmajvers
35110 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35111 LLVMGCC_LANGS=$llvmgcclangs
35113 { echo "$as_me:$LINENO: result: ok" >&5
35114 echo "${ECHO_T}ok" >&6; }
35117 SHLIBEXT=$libltdl_cv_shlibext
35120 # Translate the various configuration directories and other basic
35121 # information into substitutions that will end up in Makefile.config.in
35122 # that these configured values can be used by the makefiles
35123 if test "${prefix}" = "NONE" ; then
35124 prefix="/usr/local"
35126 eval LLVM_PREFIX="${prefix}";
35127 eval LLVM_BINDIR="${prefix}/bin";
35128 eval LLVM_LIBDIR="${prefix}/lib";
35129 eval LLVM_DATADIR="${prefix}/share/llvm";
35130 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35131 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35132 eval LLVM_INCLUDEDIR="${prefix}/include";
35133 eval LLVM_INFODIR="${prefix}/info";
35134 eval LLVM_MANDIR="${prefix}/man";
35135 LLVM_CONFIGTIME=`date`
35147 # Place the various directores into the config.h file as #defines so that we
35148 # can know about the installation paths within LLVM.
35150 cat >>confdefs.h <<_ACEOF
35151 #define LLVM_PREFIX "$LLVM_PREFIX"
35155 cat >>confdefs.h <<_ACEOF
35156 #define LLVM_BINDIR "$LLVM_BINDIR"
35160 cat >>confdefs.h <<_ACEOF
35161 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35165 cat >>confdefs.h <<_ACEOF
35166 #define LLVM_DATADIR "$LLVM_DATADIR"
35170 cat >>confdefs.h <<_ACEOF
35171 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35175 cat >>confdefs.h <<_ACEOF
35176 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35180 cat >>confdefs.h <<_ACEOF
35181 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35185 cat >>confdefs.h <<_ACEOF
35186 #define LLVM_INFODIR "$LLVM_INFODIR"
35190 cat >>confdefs.h <<_ACEOF
35191 #define LLVM_MANDIR "$LLVM_MANDIR"
35195 cat >>confdefs.h <<_ACEOF
35196 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35200 cat >>confdefs.h <<_ACEOF
35201 #define LLVM_HOSTTRIPLE "$host"
35205 # Determine which bindings to build.
35206 if test "$BINDINGS_TO_BUILD" = auto ; then
35207 BINDINGS_TO_BUILD=""
35208 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35209 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35212 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35215 # This isn't really configurey, but it avoids having to repeat the list in
35220 # Do any work necessary to ensure that bindings have what they need.
35221 binding_prereqs_failed=0
35222 for a_binding in $BINDINGS_TO_BUILD ; do
35223 case "$a_binding" in
35225 if test "x$OCAMLC" = x ; then
35226 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35227 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35228 binding_prereqs_failed=1
35230 if test "x$OCAMLDEP" = x ; then
35231 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35232 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35233 binding_prereqs_failed=1
35235 if test "x$OCAMLOPT" = x ; then
35236 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35237 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35239 if test "x$with_ocaml_libdir" != xauto ; then
35240 OCAML_LIBDIR=$with_ocaml_libdir
35243 ocaml_stdlib="`"$OCAMLC" -where`"
35244 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35246 # ocaml stdlib is beneath our prefix; use stdlib
35247 OCAML_LIBDIR=$ocaml_stdlib
35250 # ocaml stdlib is outside our prefix; use libdir/ocaml
35251 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35258 if test "$binding_prereqs_failed" = 1 ; then
35259 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35260 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35261 { (exit 1); exit 1; }; }
35264 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35265 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35266 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35267 echo $ECHO_N "(cached) $ECHO_C" >&6
35270 ac_cpp='$CXXCPP $CPPFLAGS'
35271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35275 oldcxxflags="$CXXFLAGS"
35276 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35277 cat >conftest.$ac_ext <<_ACEOF
35280 cat confdefs.h >>conftest.$ac_ext
35281 cat >>conftest.$ac_ext <<_ACEOF
35282 /* end confdefs.h. */
35292 rm -f conftest.$ac_objext
35293 if { (ac_try="$ac_compile"
35294 case "(($ac_try" in
35295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35296 *) ac_try_echo=$ac_try;;
35298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35299 (eval "$ac_compile") 2>conftest.er1
35301 grep -v '^ *+' conftest.er1 >conftest.err
35303 cat conftest.err >&5
35304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35305 (exit $ac_status); } &&
35306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35307 { (case "(($ac_try" in
35308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35309 *) ac_try_echo=$ac_try;;
35311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35312 (eval "$ac_try") 2>&5
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); }; } &&
35316 { ac_try='test -s conftest.$ac_objext'
35317 { (case "(($ac_try" in
35318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35319 *) ac_try_echo=$ac_try;;
35321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35322 (eval "$ac_try") 2>&5
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); }; }; then
35326 llvm_cv_cxx_visibility_inlines_hidden=yes
35328 echo "$as_me: failed program was:" >&5
35329 sed 's/^/| /' conftest.$ac_ext >&5
35331 llvm_cv_cxx_visibility_inlines_hidden=no
35334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35335 CXXFLAGS="$oldcxxflags"
35337 ac_cpp='$CPP $CPPFLAGS'
35338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35344 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35345 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35346 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35347 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35350 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35355 if test "$llvm_cv_link_use_r" = "yes" ; then
35362 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35363 RDYNAMIC="-Wl,-export-dynamic"
35370 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35372 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35374 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35376 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35378 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
35381 ac_config_files="$ac_config_files Makefile.config"
35384 ac_config_files="$ac_config_files llvm.spec"
35387 ac_config_files="$ac_config_files docs/doxygen.cfg"
35390 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35393 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35396 ac_config_commands="$ac_config_commands setup"
35398 ac_config_commands="$ac_config_commands Makefile"
35401 ac_config_commands="$ac_config_commands Makefile.common"
35404 ac_config_commands="$ac_config_commands examples/Makefile"
35407 ac_config_commands="$ac_config_commands lib/Makefile"
35410 ac_config_commands="$ac_config_commands runtime/Makefile"
35413 ac_config_commands="$ac_config_commands test/Makefile"
35416 ac_config_commands="$ac_config_commands test/Makefile.tests"
35419 ac_config_commands="$ac_config_commands unittests/Makefile"
35422 ac_config_commands="$ac_config_commands tools/Makefile"
35425 ac_config_commands="$ac_config_commands utils/Makefile"
35428 ac_config_commands="$ac_config_commands projects/Makefile"
35431 ac_config_commands="$ac_config_commands bindings/Makefile"
35434 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35438 cat >confcache <<\_ACEOF
35439 # This file is a shell script that caches the results of configure
35440 # tests run on this system so they can be shared between configure
35441 # scripts and configure runs, see configure's option --config-cache.
35442 # It is not useful on other systems. If it contains results you don't
35443 # want to keep, you may remove or edit it.
35445 # config.status only pays attention to the cache file if you give it
35446 # the --recheck option to rerun configure.
35448 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35450 # following values.
35454 # The following way of writing the cache mishandles newlines in values,
35455 # but we know of no workaround that is simple, portable, and efficient.
35456 # So, we kill variables containing newlines.
35457 # Ultrix sh set writes to stderr and can't be redirected directly,
35458 # and sets the high bit in the cache file unless we assign to the vars.
35460 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35461 eval ac_val=\$$ac_var
35465 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35466 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35469 _ | IFS | as_nl) ;; #(
35470 *) $as_unset $ac_var ;;
35476 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35477 *${as_nl}ac_space=\ *)
35478 # `set' does not quote correctly, so add quotes (double-quote
35479 # substitution turns \\\\ into \\, and sed turns \\ into \).
35482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35485 # `set' quotes correctly as required by POSIX, so do not add quotes.
35486 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35495 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35497 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35499 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35500 if test -w "$cache_file"; then
35501 test "x$cache_file" != "x/dev/null" &&
35502 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35503 echo "$as_me: updating cache $cache_file" >&6;}
35504 cat confcache >$cache_file
35506 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35507 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35513 # Let make expand exec_prefix.
35514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35516 DEFS=-DHAVE_CONFIG_H
35520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35521 # 1. Remove the extension, and $U if already installed.
35522 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35523 ac_i=`echo "$ac_i" | sed "$ac_script"`
35524 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35525 # will be set to the directory where LIBOBJS objects are built.
35526 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35527 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35529 LIBOBJS=$ac_libobjs
35531 LTLIBOBJS=$ac_ltlibobjs
35534 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35535 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35536 Usually this means the macro was only invoked conditionally." >&5
35537 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35538 Usually this means the macro was only invoked conditionally." >&2;}
35539 { (exit 1); exit 1; }; }
35541 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35542 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35543 Usually this means the macro was only invoked conditionally." >&5
35544 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35545 Usually this means the macro was only invoked conditionally." >&2;}
35546 { (exit 1); exit 1; }; }
35549 : ${CONFIG_STATUS=./config.status}
35550 ac_clean_files_save=$ac_clean_files
35551 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35552 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35553 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35554 cat >$CONFIG_STATUS <<_ACEOF
35556 # Generated by $as_me.
35557 # Run this file to recreate the current configuration.
35558 # Compiler output produced by configure, useful for debugging
35559 # configure, is in config.log if it exists.
35562 ac_cs_recheck=false
35564 SHELL=\${CONFIG_SHELL-$SHELL}
35567 cat >>$CONFIG_STATUS <<\_ACEOF
35568 ## --------------------- ##
35569 ## M4sh Initialization. ##
35570 ## --------------------- ##
35572 # Be Bourne compatible
35573 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35576 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35577 # is contrary to our usage. Disable this feature.
35578 alias -g '${1+"$@"}'='"$@"'
35579 setopt NO_GLOB_SUBST
35581 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35583 BIN_SH=xpg4; export BIN_SH # for Tru64
35584 DUALCASE=1; export DUALCASE # for MKS sh
35588 # Avoid depending upon Character Ranges.
35589 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35590 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35591 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35592 as_cr_digits='0123456789'
35593 as_cr_alnum=$as_cr_Letters$as_cr_digits
35595 # The user is always right.
35596 if test "${PATH_SEPARATOR+set}" != set; then
35597 echo "#! /bin/sh" >conf$$.sh
35598 echo "exit 0" >>conf$$.sh
35600 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35608 # Support unset when possible.
35609 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35617 # We need space, tab and new line, in precisely that order. Quoting is
35618 # there to prevent editors from complaining about space-tab.
35619 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35620 # splitting by setting IFS to empty value.)
35625 # Find who we are. Look in the path if we contain no directory separator.
35627 *[\\/]* ) as_myself=$0 ;;
35628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35629 for as_dir in $PATH
35632 test -z "$as_dir" && as_dir=.
35633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35639 # We did not find ourselves, most probably we were run as `sh COMMAND'
35640 # in which case we are not to be found in the path.
35641 if test "x$as_myself" = x; then
35644 if test ! -f "$as_myself"; then
35645 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35646 { (exit 1); exit 1; }
35649 # Work around bugs in pre-3.0 UWIN ksh.
35650 for as_var in ENV MAIL MAILPATH
35651 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35659 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35660 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35661 LC_TELEPHONE LC_TIME
35663 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35664 eval $as_var=C; export $as_var
35666 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35670 # Required to use basename.
35671 if expr a : '\(a\)' >/dev/null 2>&1 &&
35672 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35678 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35679 as_basename=basename
35685 # Name of the executable.
35686 as_me=`$as_basename -- "$0" ||
35687 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35688 X"$0" : 'X\(//\)$' \| \
35689 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35691 sed '/^.*\/\([^/][^/]*\)\/*$/{
35710 as_lineno_1=$LINENO
35711 as_lineno_2=$LINENO
35712 test "x$as_lineno_1" != "x$as_lineno_2" &&
35713 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35715 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35716 # uniformly replaced by the line number. The first 'sed' inserts a
35717 # line-number line after each line using $LINENO; the second 'sed'
35718 # does the real work. The second script uses 'N' to pair each
35719 # line-number line with the line containing $LINENO, and appends
35720 # trailing '-' during substitution so that $LINENO is not a special
35721 # case at line end.
35722 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35723 # scripts with optimization help from Paolo Bonzini. Blame Lee
35724 # E. McMahon (1931-1989) for sed's syntax. :-)
35736 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35739 ' >$as_me.lineno &&
35740 chmod +x "$as_me.lineno" ||
35741 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35742 { (exit 1); exit 1; }; }
35744 # Don't try to exec as it changes $[0], causing all sort of problems
35745 # (the dirname of $[0] is not the place where we might find the
35746 # original and so on. Autoconf is especially sensitive to this).
35747 . "./$as_me.lineno"
35748 # Exit status is that of the last command.
35753 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35759 ECHO_C= ECHO_N= ECHO_T=
35760 case `echo -n x` in
35762 case `echo 'x\c'` in
35763 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35770 if expr a : '\(a\)' >/dev/null 2>&1 &&
35771 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35777 rm -f conf$$ conf$$.exe conf$$.file
35778 if test -d conf$$.dir; then
35779 rm -f conf$$.dir/conf$$.file
35785 if ln -s conf$$.file conf$$ 2>/dev/null; then
35787 # ... but there are two gotchas:
35788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35790 # In both cases, we have to default to `cp -p'.
35791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35793 elif ln conf$$.file conf$$ 2>/dev/null; then
35798 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35799 rmdir conf$$.dir 2>/dev/null
35801 if mkdir -p . 2>/dev/null; then
35804 test -d ./-p && rmdir ./-p
35808 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35809 # systems may use methods other than mode bits to determine executability.
35810 cat >conf$$.file <<_ASEOF
35814 chmod +x conf$$.file
35815 if test -x conf$$.file >/dev/null 2>&1; then
35816 as_executable_p="test -x"
35822 # Sed expression to map a string onto a valid CPP name.
35823 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35825 # Sed expression to map a string onto a valid variable name.
35826 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35831 # Save the log message, to keep $[0] and so on meaningful, and to
35832 # report actual input values of CONFIG_FILES etc. instead of their
35833 # values after options handling.
35835 This file was extended by llvm $as_me 2.7svn, which was
35836 generated by GNU Autoconf 2.60. Invocation command line was
35838 CONFIG_FILES = $CONFIG_FILES
35839 CONFIG_HEADERS = $CONFIG_HEADERS
35840 CONFIG_LINKS = $CONFIG_LINKS
35841 CONFIG_COMMANDS = $CONFIG_COMMANDS
35844 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35849 cat >>$CONFIG_STATUS <<_ACEOF
35850 # Files that config.status was made for.
35851 config_files="$ac_config_files"
35852 config_headers="$ac_config_headers"
35853 config_commands="$ac_config_commands"
35857 cat >>$CONFIG_STATUS <<\_ACEOF
35859 \`$as_me' instantiates files from templates according to the
35860 current configuration.
35862 Usage: $0 [OPTIONS] [FILE]...
35864 -h, --help print this help, then exit
35865 -V, --version print version number, then exit
35866 -q, --quiet do not print progress messages
35867 -d, --debug don't remove temporary files
35868 --recheck update $as_me by reconfiguring in the same conditions
35869 --file=FILE[:TEMPLATE]
35870 instantiate the configuration file FILE
35871 --header=FILE[:TEMPLATE]
35872 instantiate the configuration header FILE
35874 Configuration files:
35877 Configuration headers:
35880 Configuration commands:
35883 Report bugs to <bug-autoconf@gnu.org>."
35886 cat >>$CONFIG_STATUS <<_ACEOF
35888 llvm config.status 2.7svn
35889 configured by $0, generated by GNU Autoconf 2.60,
35890 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35892 Copyright (C) 2006 Free Software Foundation, Inc.
35893 This config.status script is free software; the Free Software Foundation
35894 gives unlimited permission to copy, distribute and modify it."
35901 cat >>$CONFIG_STATUS <<\_ACEOF
35902 # If no file are specified by the user, then we need to provide default
35903 # value. By we need to know if files were specified by the user.
35909 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35910 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35921 # Handling of the options.
35922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35924 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35925 echo "$ac_cs_version"; exit ;;
35926 --debug | --debu | --deb | --de | --d | -d )
35928 --file | --fil | --fi | --f )
35930 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35931 ac_need_defaults=false;;
35932 --header | --heade | --head | --hea )
35934 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35935 ac_need_defaults=false;;
35937 # Conflict between --help and --header
35938 { echo "$as_me: error: ambiguous option: $1
35939 Try \`$0 --help' for more information." >&2
35940 { (exit 1); exit 1; }; };;
35941 --help | --hel | -h )
35942 echo "$ac_cs_usage"; exit ;;
35943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35944 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35947 # This is an error.
35948 -*) { echo "$as_me: error: unrecognized option: $1
35949 Try \`$0 --help' for more information." >&2
35950 { (exit 1); exit 1; }; } ;;
35952 *) ac_config_targets="$ac_config_targets $1"
35953 ac_need_defaults=false ;;
35959 ac_configure_extra_args=
35961 if $ac_cs_silent; then
35963 ac_configure_extra_args="$ac_configure_extra_args --silent"
35967 cat >>$CONFIG_STATUS <<_ACEOF
35968 if \$ac_cs_recheck; then
35969 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35970 CONFIG_SHELL=$SHELL
35971 export CONFIG_SHELL
35972 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35976 cat >>$CONFIG_STATUS <<\_ACEOF
35980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35981 ## Running $as_me. ##
35987 cat >>$CONFIG_STATUS <<_ACEOF
35991 llvm_src="${srcdir}"
35995 cat >>$CONFIG_STATUS <<\_ACEOF
35997 # Handling of arguments.
35998 for ac_config_target in $ac_config_targets
36000 case $ac_config_target in
36001 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
36002 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36003 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
36004 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
36005 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
36006 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
36007 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
36008 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
36009 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
36010 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36011 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36012 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36013 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36014 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36015 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
36016 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
36017 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36018 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
36019 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
36020 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36021 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36022 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
36023 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36024 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
36026 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36027 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36028 { (exit 1); exit 1; }; };;
36033 # If the user did not use the arguments to specify the items to instantiate,
36034 # then the envvar interface is used. Set only those that are not.
36035 # We use the long form for the default assignment because of an extremely
36036 # bizarre bug on SunOS 4.1.3.
36037 if $ac_need_defaults; then
36038 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36039 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36040 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36043 # Have a temporary directory for convenience. Make it in the build tree
36044 # simply because there is no reason against having it here, and in addition,
36045 # creating and moving files from /tmp can sometimes cause problems.
36046 # Hook for its removal unless debugging.
36047 # Note that there is a small window in which the directory will not be cleaned:
36048 # after its creation but before its name has been assigned to `$tmp'.
36052 trap 'exit_status=$?
36053 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36055 trap '{ (exit 1); exit 1; }' 1 2 13 15
36057 # Create a (secure) tmp directory for tmp files.
36060 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36061 test -n "$tmp" && test -d "$tmp"
36064 tmp=./conf$$-$RANDOM
36065 (umask 077 && mkdir "$tmp")
36068 echo "$me: cannot create a temporary directory in ." >&2
36069 { (exit 1); exit 1; }
36073 # Set up the sed scripts for CONFIG_FILES section.
36076 # No need to generate the scripts if there are no CONFIG_FILES.
36077 # This happens for instance when ./config.status config.h
36078 if test -n "$CONFIG_FILES"; then
36085 for ac_last_try in false false false false false :; do
36086 cat >conf$$subs.sed <<_ACEOF
36087 SHELL!$SHELL$ac_delim
36088 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36089 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36090 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36091 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36092 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36093 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36094 exec_prefix!$exec_prefix$ac_delim
36095 prefix!$prefix$ac_delim
36096 program_transform_name!$program_transform_name$ac_delim
36097 bindir!$bindir$ac_delim
36098 sbindir!$sbindir$ac_delim
36099 libexecdir!$libexecdir$ac_delim
36100 datarootdir!$datarootdir$ac_delim
36101 datadir!$datadir$ac_delim
36102 sysconfdir!$sysconfdir$ac_delim
36103 sharedstatedir!$sharedstatedir$ac_delim
36104 localstatedir!$localstatedir$ac_delim
36105 includedir!$includedir$ac_delim
36106 oldincludedir!$oldincludedir$ac_delim
36107 docdir!$docdir$ac_delim
36108 infodir!$infodir$ac_delim
36109 htmldir!$htmldir$ac_delim
36110 dvidir!$dvidir$ac_delim
36111 pdfdir!$pdfdir$ac_delim
36112 psdir!$psdir$ac_delim
36113 libdir!$libdir$ac_delim
36114 localedir!$localedir$ac_delim
36115 mandir!$mandir$ac_delim
36116 DEFS!$DEFS$ac_delim
36117 ECHO_C!$ECHO_C$ac_delim
36118 ECHO_N!$ECHO_N$ac_delim
36119 ECHO_T!$ECHO_T$ac_delim
36120 LIBS!$LIBS$ac_delim
36121 build_alias!$build_alias$ac_delim
36122 host_alias!$host_alias$ac_delim
36123 target_alias!$target_alias$ac_delim
36124 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36125 subdirs!$subdirs$ac_delim
36126 build!$build$ac_delim
36127 build_cpu!$build_cpu$ac_delim
36128 build_vendor!$build_vendor$ac_delim
36129 build_os!$build_os$ac_delim
36130 host!$host$ac_delim
36131 host_cpu!$host_cpu$ac_delim
36132 host_vendor!$host_vendor$ac_delim
36133 host_os!$host_os$ac_delim
36134 target!$target$ac_delim
36135 target_cpu!$target_cpu$ac_delim
36136 target_vendor!$target_vendor$ac_delim
36137 target_os!$target_os$ac_delim
36139 HOST_OS!$HOST_OS$ac_delim
36140 TARGET_OS!$TARGET_OS$ac_delim
36141 LINKALL!$LINKALL$ac_delim
36142 NOLINKALL!$NOLINKALL$ac_delim
36143 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36144 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36145 ARCH!$ARCH$ac_delim
36146 ENDIAN!$ENDIAN$ac_delim
36148 CFLAGS!$CFLAGS$ac_delim
36149 LDFLAGS!$LDFLAGS$ac_delim
36150 CPPFLAGS!$CPPFLAGS$ac_delim
36151 ac_ct_CC!$ac_ct_CC$ac_delim
36152 EXEEXT!$EXEEXT$ac_delim
36153 OBJEXT!$OBJEXT$ac_delim
36155 GREP!$GREP$ac_delim
36156 EGREP!$EGREP$ac_delim
36157 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36158 BUILD_CC!$BUILD_CC$ac_delim
36159 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36160 BUILD_CXX!$BUILD_CXX$ac_delim
36161 CVSBUILD!$CVSBUILD$ac_delim
36162 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36163 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36164 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36165 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36166 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36167 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36168 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36170 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36171 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36172 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36173 ENABLE_PIC!$ENABLE_PIC$ac_delim
36174 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36175 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36176 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36177 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36178 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36179 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
36180 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36181 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36182 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36183 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36186 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36188 elif $ac_last_try; then
36189 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36190 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36191 { (exit 1); exit 1; }; }
36193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36197 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36198 if test -n "$ac_eof"; then
36199 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36200 ac_eof=`expr $ac_eof + 1`
36203 cat >>$CONFIG_STATUS <<_ACEOF
36204 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36208 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36209 s/^/s,@/; s/!/@,|#_!!_#|/
36212 s/'"$ac_delim"'$/,g/; t
36214 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36215 ' >>$CONFIG_STATUS <conf$$subs.sed
36216 rm -f conf$$subs.sed
36217 cat >>$CONFIG_STATUS <<_ACEOF
36223 for ac_last_try in false false false false false :; do
36224 cat >conf$$subs.sed <<_ACEOF
36226 CXXFLAGS!$CXXFLAGS$ac_delim
36227 ac_ct_CXX!$ac_ct_CXX$ac_delim
36229 ifGNUmake!$ifGNUmake$ac_delim
36230 LN_S!$LN_S$ac_delim
36233 DATE!$DATE$ac_delim
36234 FIND!$FIND$ac_delim
36235 MKDIR!$MKDIR$ac_delim
36237 RANLIB!$RANLIB$ac_delim
36241 BINPWD!$BINPWD$ac_delim
36242 GRAPHVIZ!$GRAPHVIZ$ac_delim
36245 NEATO!$NEATO$ac_delim
36246 TWOPI!$TWOPI$ac_delim
36247 CIRCO!$CIRCO$ac_delim
36249 DOTTY!$DOTTY$ac_delim
36250 PERL!$PERL$ac_delim
36251 HAVE_PERL!$HAVE_PERL$ac_delim
36252 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36253 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36254 INSTALL_DATA!$INSTALL_DATA$ac_delim
36255 BZIP2!$BZIP2$ac_delim
36256 DOXYGEN!$DOXYGEN$ac_delim
36257 GROFF!$GROFF$ac_delim
36258 GZIP!$GZIP$ac_delim
36259 POD2HTML!$POD2HTML$ac_delim
36260 POD2MAN!$POD2MAN$ac_delim
36261 RUNTEST!$RUNTEST$ac_delim
36262 TCLSH!$TCLSH$ac_delim
36264 OCAMLC!$OCAMLC$ac_delim
36265 OCAMLOPT!$OCAMLOPT$ac_delim
36266 OCAMLDEP!$OCAMLDEP$ac_delim
36267 OCAMLDOC!$OCAMLDOC$ac_delim
36269 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36270 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36271 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36272 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36273 LIBADD_DL!$LIBADD_DL$ac_delim
36274 ECHO!$ECHO$ac_delim
36276 STRIP!$STRIP$ac_delim
36277 CXXCPP!$CXXCPP$ac_delim
36279 FFLAGS!$FFLAGS$ac_delim
36280 ac_ct_F77!$ac_ct_F77$ac_delim
36281 LIBTOOL!$LIBTOOL$ac_delim
36282 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36283 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36284 LLVMGCC!$LLVMGCC$ac_delim
36285 LLVMGXX!$LLVMGXX$ac_delim
36286 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36287 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
36288 USE_UDIS86!$USE_UDIS86$ac_delim
36289 USE_OPROFILE!$USE_OPROFILE$ac_delim
36290 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36291 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36292 ALLOCA!$ALLOCA$ac_delim
36293 MMAP_FILE!$MMAP_FILE$ac_delim
36294 LLVMCC1!$LLVMCC1$ac_delim
36295 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36296 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36297 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36298 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36299 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36300 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36301 SHLIBEXT!$SHLIBEXT$ac_delim
36302 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36303 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36304 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36305 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36306 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36307 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36308 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36309 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36310 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36311 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36312 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36313 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36314 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36315 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36316 RPATH!$RPATH$ac_delim
36317 RDYNAMIC!$RDYNAMIC$ac_delim
36318 LIBOBJS!$LIBOBJS$ac_delim
36319 LTLIBOBJS!$LTLIBOBJS$ac_delim
36322 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
36324 elif $ac_last_try; then
36325 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36326 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36327 { (exit 1); exit 1; }; }
36329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36333 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36334 if test -n "$ac_eof"; then
36335 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36336 ac_eof=`expr $ac_eof + 1`
36339 cat >>$CONFIG_STATUS <<_ACEOF
36340 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36344 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36345 s/^/s,@/; s/!/@,|#_!!_#|/
36348 s/'"$ac_delim"'$/,g/; t
36350 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36351 ' >>$CONFIG_STATUS <conf$$subs.sed
36352 rm -f conf$$subs.sed
36353 cat >>$CONFIG_STATUS <<_ACEOF
36360 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36361 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36362 # trailing colons and then remove the whole line if VPATH becomes empty
36363 # (actually we leave an empty line to preserve line numbers).
36364 if test "x$srcdir" = x.; then
36365 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36366 s/:*\$(srcdir):*/:/
36367 s/:*\${srcdir}:*/:/
36369 s/^\([^=]*=[ ]*\):*/\1/
36375 cat >>$CONFIG_STATUS <<\_ACEOF
36376 fi # test -n "$CONFIG_FILES"
36379 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36382 :[FHLC]) ac_mode=$ac_tag; continue;;
36384 case $ac_mode$ac_tag in
36386 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36387 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36388 { (exit 1); exit 1; }; };;
36389 :[FH]-) ac_tag=-:-;;
36390 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36407 -) ac_f="$tmp/stdin";;
36408 *) # Look for the file first in the build tree, then in the source tree
36409 # (if the path is not absolute). The absolute path cannot be DOS-style,
36410 # because $ac_f cannot contain `:'.
36414 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36416 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36417 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36418 { (exit 1); exit 1; }; };;
36420 ac_file_inputs="$ac_file_inputs $ac_f"
36423 # Let's still pretend it is `configure' which instantiates (i.e., don't
36424 # use $as_me), people would be surprised to read:
36425 # /* config.h. Generated by config.status. */
36426 configure_input="Generated from "`IFS=:
36427 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36428 if test x"$ac_file" != x-; then
36429 configure_input="$ac_file. $configure_input"
36430 { echo "$as_me:$LINENO: creating $ac_file" >&5
36431 echo "$as_me: creating $ac_file" >&6;}
36435 *:-:* | *:-) cat >"$tmp/stdin";;
36440 ac_dir=`$as_dirname -- "$ac_file" ||
36441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36442 X"$ac_file" : 'X\(//\)[^/]' \| \
36443 X"$ac_file" : 'X\(//\)$' \| \
36444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36450 /^X\(\/\/\)[^/].*/{
36465 -*) as_dir=./$as_dir;;
36467 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36471 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36472 *) as_qdir=$as_dir;;
36474 as_dirs="'$as_qdir' $as_dirs"
36475 as_dir=`$as_dirname -- "$as_dir" ||
36476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36477 X"$as_dir" : 'X\(//\)[^/]' \| \
36478 X"$as_dir" : 'X\(//\)$' \| \
36479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36485 /^X\(\/\/\)[^/].*/{
36498 test -d "$as_dir" && break
36500 test -z "$as_dirs" || eval "mkdir $as_dirs"
36501 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36502 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36503 { (exit 1); exit 1; }; }; }
36507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36510 # A ".." for each directory in $ac_dir_suffix.
36511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36512 case $ac_top_builddir_sub in
36513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36517 ac_abs_top_builddir=$ac_pwd
36518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36519 # for backward compatibility:
36520 ac_top_builddir=$ac_top_build_prefix
36523 .) # We are building in place.
36525 ac_top_srcdir=$ac_top_builddir_sub
36526 ac_abs_top_srcdir=$ac_pwd ;;
36527 [\\/]* | ?:[\\/]* ) # Absolute name.
36528 ac_srcdir=$srcdir$ac_dir_suffix;
36529 ac_top_srcdir=$srcdir
36530 ac_abs_top_srcdir=$srcdir ;;
36531 *) # Relative name.
36532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36533 ac_top_srcdir=$ac_top_build_prefix$srcdir
36534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36546 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36547 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36551 cat >>$CONFIG_STATUS <<\_ACEOF
36552 # If the template does not know about datarootdir, expand it.
36553 # FIXME: This hack should be removed a few years after 2.60.
36554 ac_datarootdir_hack=; ac_datarootdir_seen=
36556 case `sed -n '/datarootdir/ {
36565 ' $ac_file_inputs` in
36566 *datarootdir*) ac_datarootdir_seen=yes;;
36567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36568 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36569 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36571 cat >>$CONFIG_STATUS <<_ACEOF
36572 ac_datarootdir_hack='
36573 s&@datadir@&$datadir&g
36574 s&@docdir@&$docdir&g
36575 s&@infodir@&$infodir&g
36576 s&@localedir@&$localedir&g
36577 s&@mandir@&$mandir&g
36578 s&\\\${datarootdir}&$datarootdir&g' ;;
36582 # Neutralize VPATH when `$srcdir' = `.'.
36583 # Shell code in configure.ac might set extrasub.
36584 # FIXME: do we really want to maintain this feature?
36585 cat >>$CONFIG_STATUS <<_ACEOF
36589 cat >>$CONFIG_STATUS <<\_ACEOF
36591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36592 s&@configure_input@&$configure_input&;t t
36593 s&@top_builddir@&$ac_top_builddir_sub&;t t
36594 s&@srcdir@&$ac_srcdir&;t t
36595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36596 s&@top_srcdir@&$ac_top_srcdir&;t t
36597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36598 s&@builddir@&$ac_builddir&;t t
36599 s&@abs_builddir@&$ac_abs_builddir&;t t
36600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36601 s&@INSTALL@&$ac_INSTALL&;t t
36602 $ac_datarootdir_hack
36603 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36605 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36606 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36608 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36609 which seems to be undefined. Please make sure it is defined." >&5
36610 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36611 which seems to be undefined. Please make sure it is defined." >&2;}
36615 -) cat "$tmp/out"; rm -f "$tmp/out";;
36616 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36625 # Transform confdefs.h into a sed script `conftest.defines', that
36626 # substitutes the proper values into config.h.in to produce config.h.
36627 rm -f conftest.defines conftest.tail
36628 # First, append a space to every undef/define line, to ease matching.
36629 echo 's/$/ /' >conftest.defines
36630 # Then, protect against being on the right side of a sed subst, or in
36631 # an unquoted here document, in config.status. If some macros were
36632 # called several times there might be several #defines for the same
36633 # symbol, which is useless. But do not sort them, since the last
36634 # AC_DEFINE must be honored.
36635 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36636 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36637 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36638 # PARAMS is the parameter list in the macro definition--in most cases, it's
36639 # just an empty string.
36640 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36641 ac_dB='\\)[ (].*,\\1define\\2'
36649 s/^[ ]*#[ ]*define[ ][ ]*//
36654 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36655 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36656 ' >>conftest.defines
36658 # Remove the space that was appended to ease matching.
36659 # Then replace #undef with comments. This is necessary, for
36660 # example, in the case of _POSIX_SOURCE, which is predefined and required
36661 # on some systems where configure will not decide to define it.
36662 # (The regexp can be short, since the line contains either #define or #undef.)
36664 s,^[ #]*u.*,/* & */,' >>conftest.defines
36666 # Break up conftest.defines:
36667 ac_max_sed_lines=50
36669 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36670 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36671 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36673 ac_in='$ac_file_inputs'
36674 ac_out='"$tmp/out1"'
36675 ac_nxt='"$tmp/out2"'
36679 # Write a here document:
36680 cat >>$CONFIG_STATUS <<_ACEOF
36681 # First, check the format of the line:
36682 cat >"\$tmp/defines.sed" <<\\CEOF
36683 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36684 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36688 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36690 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36691 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36692 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36693 grep . conftest.tail >/dev/null || break
36694 rm -f conftest.defines
36695 mv conftest.tail conftest.defines
36697 rm -f conftest.defines conftest.tail
36699 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36700 cat >>$CONFIG_STATUS <<\_ACEOF
36701 if test x"$ac_file" != x-; then
36702 echo "/* $configure_input */" >"$tmp/config.h"
36703 cat "$ac_result" >>"$tmp/config.h"
36704 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36705 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36706 echo "$as_me: $ac_file is unchanged" >&6;}
36709 mv "$tmp/config.h" $ac_file
36712 echo "/* $configure_input */"
36718 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36719 echo "$as_me: executing $ac_file commands" >&6;}
36724 case $ac_file$ac_mode in
36725 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36727 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36729 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36731 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36732 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36733 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36735 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36737 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36739 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36741 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36743 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36744 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36745 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36746 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36747 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36748 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36749 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36750 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36756 { (exit 0); exit 0; }
36758 chmod +x $CONFIG_STATUS
36759 ac_clean_files=$ac_clean_files_save
36762 # configure is writing to config.log, and then calls config.status.
36763 # config.status does its own redirection, appending to config.log.
36764 # Unfortunately, on DOS this fails, as config.log is still kept open
36765 # by configure, so config.status won't be able to write to it; its
36766 # output is simply discarded. So we exec the FD to /dev/null,
36767 # effectively closing config.log, so it can be properly (re)opened and
36768 # appended to by config.status. When coming back to configure, we
36769 # need to make the FD available again.
36770 if test "$no_create" != yes; then
36772 ac_config_status_args=
36773 test "$silent" = yes &&
36774 ac_config_status_args="$ac_config_status_args --quiet"
36776 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36778 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36779 # would make configure fail if this is the last instruction.
36780 $ac_cs_success || { (exit 1); exit 1; }
36784 # CONFIG_SUBDIRS section.
36786 if test "$no_recursion" != yes; then
36788 # Remove --cache-file and --srcdir arguments so they do not pile up.
36789 ac_sub_configure_args=
36791 eval "set x $ac_configure_args"
36795 if test -n "$ac_prev"; then
36800 -cache-file | --cache-file | --cache-fil | --cache-fi \
36801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36802 ac_prev=cache_file ;;
36803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36807 --config-cache | -C)
36809 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36811 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36813 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36815 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36819 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36821 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36825 # Always prepend --prefix to ensure using the same prefix
36826 # in subdir configurations.
36827 ac_arg="--prefix=$prefix"
36829 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36831 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36834 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36836 # Do not complain, so a configure script can configure whichever
36837 # parts of a large source tree are present.
36838 test -d "$srcdir/$ac_dir" || continue
36840 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36841 echo "$as_me:$LINENO: $ac_msg" >&5
36845 -*) as_dir=./$as_dir;;
36847 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36851 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36852 *) as_qdir=$as_dir;;
36854 as_dirs="'$as_qdir' $as_dirs"
36855 as_dir=`$as_dirname -- "$as_dir" ||
36856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36857 X"$as_dir" : 'X\(//\)[^/]' \| \
36858 X"$as_dir" : 'X\(//\)$' \| \
36859 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36865 /^X\(\/\/\)[^/].*/{
36878 test -d "$as_dir" && break
36880 test -z "$as_dirs" || eval "mkdir $as_dirs"
36881 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36882 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36883 { (exit 1); exit 1; }; }; }
36887 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36890 # A ".." for each directory in $ac_dir_suffix.
36891 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36892 case $ac_top_builddir_sub in
36893 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36894 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36897 ac_abs_top_builddir=$ac_pwd
36898 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36899 # for backward compatibility:
36900 ac_top_builddir=$ac_top_build_prefix
36903 .) # We are building in place.
36905 ac_top_srcdir=$ac_top_builddir_sub
36906 ac_abs_top_srcdir=$ac_pwd ;;
36907 [\\/]* | ?:[\\/]* ) # Absolute name.
36908 ac_srcdir=$srcdir$ac_dir_suffix;
36909 ac_top_srcdir=$srcdir
36910 ac_abs_top_srcdir=$srcdir ;;
36911 *) # Relative name.
36912 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36913 ac_top_srcdir=$ac_top_build_prefix$srcdir
36914 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36916 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36921 # Check for guested configure; otherwise get Cygnus style configure.
36922 if test -f "$ac_srcdir/configure.gnu"; then
36923 ac_sub_configure=$ac_srcdir/configure.gnu
36924 elif test -f "$ac_srcdir/configure"; then
36925 ac_sub_configure=$ac_srcdir/configure
36926 elif test -f "$ac_srcdir/configure.in"; then
36927 # This should be Cygnus configure.
36928 ac_sub_configure=$ac_aux_dir/configure
36930 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36931 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36935 # The recursion is here.
36936 if test -n "$ac_sub_configure"; then
36937 # Make the cache file name correct relative to the subdirectory.
36938 case $cache_file in
36939 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36940 *) # Relative name.
36941 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36944 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36945 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36946 # The eval makes quoting arguments work.
36947 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36948 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36949 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36950 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36951 { (exit 1); exit 1; }; }