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
854 ENABLE_LLVMC_DYNAMIC_PLUGINS
901 CONVENIENCE_LTDL_TRUE
902 CONVENIENCE_LTDL_FALSE
943 ENABLE_VISIBILITY_INLINES_HIDDEN
949 ac_precious_vars='build_alias
963 ac_subdirs_all='projects/sample
965 projects/llvm-stacker
972 projects/llvm-poolalloc
974 projects/llvm-kernel'
976 # Initialize some variables set by options.
978 ac_init_version=false
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name=s,x,x,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir='${datarootdir}/info'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1083 eval enable_$ac_feature=no ;;
1085 -docdir | --docdir | --docdi | --doc | --do)
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1095 -enable-* | --enable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1102 eval enable_$ac_feature=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1266 -site=* | --site=* | --sit=*)
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1293 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_package=`echo $ac_package| sed 's/-/_/g'`
1299 eval with_$ac_package=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
1307 ac_package=`echo $ac_package | sed 's/-/_/g'`
1308 eval with_$ac_package=no ;;
1311 # Obsolete; use --with-x.
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1359 # Be sure to have absolute directory names.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1379 target=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395 test "$silent" = yes && exec 6>/dev/null
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$0" ||
1413 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
1416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1440 ac_srcdir_defaulted=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445 { (exit 1); exit 1; }; }
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450 { (exit 1); exit 1; }; }
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1476 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1540 if test -n "$ac_init_help"; then
1541 case $ac_init_help in
1542 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-optimized Compile with optimizations enabled (default is NO)
1550 --enable-profiling Compile with profiling enabled (default is NO)
1551 --enable-assertions Compile with assertion checks enabled (default is
1553 --enable-expensive-checks
1554 Compile with expensive debug checks enabled (default
1556 --enable-debug-runtime Build runtime libs with debug symbols (default is
1558 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1559 optimization is on and YES if it's off)
1560 --enable-jit Enable Just In Time Compiling (default is YES)
1561 --enable-doxygen Build doxygen documentation (default is NO)
1562 --enable-threads Use threads if available (default is YES)
1563 --enable-pic Build LLVM with Position Independent Code (default
1565 --enable-targets Build specific host targets: all or
1566 target1,target2,... Valid targets are: host, x86,
1567 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1568 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1569 and cpp (default=all)
1570 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1572 --enable-bindings Build specific language bindings:
1573 all,auto,none,{binding-name} (default=auto)
1574 --enable-libffi Check for the presence of libffi (default is YES)
1575 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1577 --enable-llvmc-dynamic-plugins
1578 Enable dynamic LLVMC plugins (default is YES)
1579 --enable-ltdl-install install libltdl
1580 --enable-shared[=PKGS] build shared libraries
1582 --enable-static[=PKGS] build static libraries
1584 --enable-fast-install[=PKGS]
1585 optimize for fast installation
1587 --disable-libtool-lock avoid locking (might break parallel builds)
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1594 --with-llvmgcc Specify location of llvm-gcc driver (default
1596 --with-llvmgxx Specify location of llvm-g++ driver (default
1598 --with-extra-options Specify additional options to compile LLVM with
1599 --with-ocaml-libdir Specify install location for ocaml bindings (default
1601 --with-binutils-include Specify path to binutils/include/ containing
1602 plugin-api.h file for gold plugin.
1603 --with-tclinclude directory where tcl headers are
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1607 --with-tags[=TAGS] include additional configurations [automatic]
1608 --with-udis86=<path> Use udis86 external x86 disassembler library
1609 --with-oprofile=<prefix>
1610 Tell OProfile >= 0.9.4 how to symbolize JIT output
1612 Some influential environment variables:
1613 CC C compiler command
1614 CFLAGS C compiler flags
1615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1620 CXX C++ compiler command
1621 CXXFLAGS C++ compiler flags
1622 CXXCPP C++ preprocessor
1623 F77 Fortran 77 compiler command
1624 FFLAGS Fortran 77 compiler flags
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1629 Report bugs to <llvmbugs@cs.uiuc.edu>.
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" || continue
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1657 .) # We are building in place.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1690 llvm configure 2.7svn
1691 generated by GNU Autoconf 2.60
1693 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1694 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1698 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1706 It was created by llvm $as_me 2.7svn, which was
1707 generated by GNU Autoconf 2.60. Invocation command line was
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1728 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir=.
1743 echo "PATH: $as_dir"
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1767 ac_must_keep_next=false
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1778 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796 -* ) ac_must_keep_next=true ;;
1799 ac_configure_args="$ac_configure_args '$ac_arg'"
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log. We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1823 # The following way of writing the cache mishandles newlines in values,
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1830 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1834 _ | IFS | as_nl) ;; #(
1835 *) $as_unset $ac_var ;;
1840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
1843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1855 ## ----------------- ##
1856 ## Output variables. ##
1857 ## ----------------- ##
1860 for ac_var in $ac_subst_vars
1862 eval ac_val=\$$ac_var
1864 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 echo "$ac_var='\''$ac_val'\''"
1870 if test -n "$ac_subst_files"; then
1872 ## ------------------- ##
1873 ## File substitutions. ##
1874 ## ------------------- ##
1877 for ac_var in $ac_subst_files
1879 eval ac_val=\$$ac_var
1881 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 echo "$ac_var='\''$ac_val'\''"
1888 if test -s confdefs.h; then
1898 test "$ac_signal" != 0 &&
1899 echo "$as_me: caught signal $ac_signal"
1900 echo "$as_me: exit $exit_status"
1902 rm -f core *.core core.conftest.* &&
1903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1906 for ac_signal in 1 2 13 15; do
1907 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1912 rm -f -r conftest* confdefs.h
1914 # Predefined preprocessor variables.
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_NAME "$PACKAGE_NAME"
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_STRING "$PACKAGE_STRING"
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1941 # Let the site file select an alternate cache file if it wants to.
1942 # Prefer explicitly selected file to automatically selected ones.
1943 if test -n "$CONFIG_SITE"; then
1944 set x "$CONFIG_SITE"
1945 elif test "x$prefix" != xNONE; then
1946 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1948 set x "$ac_default_prefix/share/config.site" \
1949 "$ac_default_prefix/etc/config.site"
1954 if test -r "$ac_site_file"; then
1955 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956 echo "$as_me: loading site script $ac_site_file" >&6;}
1957 sed 's/^/| /' "$ac_site_file" >&5
1962 if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special
1964 # files actually), so we avoid doing that.
1965 if test -f "$cache_file"; then
1966 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967 echo "$as_me: loading cache $cache_file" >&6;}
1969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
1974 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975 echo "$as_me: creating cache $cache_file" >&6;}
1979 # Check that the precious variables saved in the cache have kept the same
1981 ac_cache_corrupted=false
1982 for ac_var in $ac_precious_vars; do
1983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
1985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
1987 case $ac_old_set,$ac_new_set in
1989 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1993 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
1999 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2000 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2002 echo "$as_me: former value: $ac_old_val" >&2;}
2003 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2004 echo "$as_me: current value: $ac_new_val" >&2;}
2005 ac_cache_corrupted=:
2008 # Pass precious variables to config.status.
2009 if test "$ac_new_set" = set; then
2011 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2012 *) ac_arg=$ac_var=$ac_new_val ;;
2014 case " $ac_configure_args " in
2015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2016 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2020 if $ac_cache_corrupted; then
2021 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025 { (exit 1); exit 1; }; }
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2069 for ac_dir in autoconf "$srcdir"/autoconf; do
2070 if test -f "$ac_dir/install-sh"; then
2072 ac_install_sh="$ac_aux_dir/install-sh -c"
2074 elif test -f "$ac_dir/install.sh"; then
2076 ac_install_sh="$ac_aux_dir/install.sh -c"
2078 elif test -f "$ac_dir/shtool"; then
2080 ac_install_sh="$ac_aux_dir/shtool install -c"
2084 if test -z "$ac_aux_dir"; then
2085 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2086 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2087 { (exit 1); exit 1; }; }
2090 # These three variables are undocumented and unsupported,
2091 # and are intended to be withdrawn in a future Autoconf release.
2092 # They can cause serious problems if a builder's source tree is in a directory
2093 # whose full name contains unusual characters.
2094 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2095 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2096 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2100 if test ${srcdir} != "." ; then
2101 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2102 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2103 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2104 { (exit 1); exit 1; }; }
2108 for i in `ls ${srcdir}/projects`
2110 if test -d ${srcdir}/projects/${i} ; then
2113 sample) subdirs="$subdirs projects/sample"
2115 privbracket) subdirs="$subdirs projects/privbracket"
2117 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2119 # llvm-test is the old name of the test-suite, kept here for backwards
2121 llvm-test) subdirs="$subdirs projects/llvm-test"
2123 test-suite) subdirs="$subdirs projects/test-suite"
2125 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2127 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2129 llvm-java) subdirs="$subdirs projects/llvm-java"
2131 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2133 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2135 poolalloc) subdirs="$subdirs projects/poolalloc"
2137 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2140 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2141 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2148 # Make sure we can run config.sub.
2149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2152 { (exit 1); exit 1; }; }
2154 { echo "$as_me:$LINENO: checking build system type" >&5
2155 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2156 if test "${ac_cv_build+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 ac_build_alias=$build_alias
2160 test "x$ac_build_alias" = x &&
2161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162 test "x$ac_build_alias" = x &&
2163 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165 { (exit 1); exit 1; }; }
2166 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2172 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173 echo "${ECHO_T}$ac_cv_build" >&6; }
2174 case $ac_cv_build in
2176 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177 echo "$as_me: error: invalid value of canonical build" >&2;}
2178 { (exit 1); exit 1; }; };;
2181 ac_save_IFS=$IFS; IFS='-'
2187 # Remember, the first character of IFS is used to create $*,
2188 # except with old shells:
2191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2194 { echo "$as_me:$LINENO: checking host system type" >&5
2195 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2196 if test "${ac_cv_host+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test "x$host_alias" = x; then
2200 ac_cv_host=$ac_cv_build
2202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2205 { (exit 1); exit 1; }; }
2209 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210 echo "${ECHO_T}$ac_cv_host" >&6; }
2213 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214 echo "$as_me: error: invalid value of canonical host" >&2;}
2215 { (exit 1); exit 1; }; };;
2218 ac_save_IFS=$IFS; IFS='-'
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2228 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2231 { echo "$as_me:$LINENO: checking target system type" >&5
2232 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2233 if test "${ac_cv_target+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 if test "x$target_alias" = x; then
2237 ac_cv_target=$ac_cv_host
2239 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2242 { (exit 1); exit 1; }; }
2246 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247 echo "${ECHO_T}$ac_cv_target" >&6; }
2248 case $ac_cv_target in
2250 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251 echo "$as_me: error: invalid value of canonical target" >&2;}
2252 { (exit 1); exit 1; }; };;
2254 target=$ac_cv_target
2255 ac_save_IFS=$IFS; IFS='-'
2261 # Remember, the first character of IFS is used to create $*,
2262 # except with old shells:
2265 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2268 # The aliases save the names the user supplied, while $host etc.
2269 # will get canonicalized.
2270 test -n "$target_alias" &&
2271 test "$program_prefix$program_suffix$program_transform_name" = \
2273 program_prefix=${target_alias}-
2275 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2276 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2277 if test "${llvm_cv_os_type+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="AIX"
2285 llvm_cv_platform_type="Unix" ;;
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="IRIX"
2290 llvm_cv_platform_type="Unix" ;;
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="Cygwin"
2295 llvm_cv_platform_type="Unix" ;;
2297 llvm_cv_link_all_option="-Wl,-all_load"
2298 llvm_cv_no_link_all_option="-Wl,-noall_load"
2299 llvm_cv_os_type="Darwin"
2300 llvm_cv_platform_type="Unix" ;;
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="FreeBSD"
2305 llvm_cv_platform_type="Unix" ;;
2307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309 llvm_cv_os_type="OpenBSD"
2310 llvm_cv_platform_type="Unix" ;;
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="NetBSD"
2315 llvm_cv_platform_type="Unix" ;;
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="DragonFly"
2320 llvm_cv_platform_type="Unix" ;;
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="HP-UX"
2325 llvm_cv_platform_type="Unix" ;;
2327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329 llvm_cv_os_type="Interix"
2330 llvm_cv_platform_type="Unix" ;;
2332 llvm_cv_link_all_option="-Wl,--whole-archive"
2333 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2334 llvm_cv_os_type="Linux"
2335 llvm_cv_platform_type="Unix" ;;
2337 llvm_cv_link_all_option="-Wl,-z,allextract"
2338 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2339 llvm_cv_os_type="SunOS"
2340 llvm_cv_platform_type="Unix" ;;
2342 llvm_cv_link_all_option="-Wl,-z,allextract"
2343 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2344 llvm_cv_os_type="AuroraUX"
2345 llvm_cv_platform_type="Unix" ;;
2347 llvm_cv_link_all_option="-Wl,--whole-archive"
2348 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2349 llvm_cv_os_type="Win32"
2350 llvm_cv_platform_type="Win32" ;;
2352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354 llvm_cv_os_type="MingW"
2355 llvm_cv_platform_type="Win32" ;;
2357 llvm_cv_link_all_option="-Wl,--whole-archive"
2358 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359 llvm_cv_os_type="Haiku"
2360 llvm_cv_platform_type="Unix" ;;
2362 llvm_cv_link_all_option="-Wl,--whole-archive"
2363 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2364 llvm_cv_os_type="Freestanding"
2365 llvm_cv_platform_type="Unix" ;;
2367 llvm_cv_link_all_option="-Wl,--whole-archive"
2368 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2369 llvm_cv_os_type="Freestanding"
2370 llvm_cv_platform_type="Unix" ;;
2372 llvm_cv_link_all_option=""
2373 llvm_cv_no_link_all_option=""
2374 llvm_cv_os_type="Unknown"
2375 llvm_cv_platform_type="Unknown" ;;
2378 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2379 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2381 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2382 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2383 if test "${llvm_cv_target_os_type+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 llvm_cv_target_os_type="AIX" ;;
2390 llvm_cv_target_os_type="IRIX" ;;
2392 llvm_cv_target_os_type="Cygwin" ;;
2394 llvm_cv_target_os_type="Darwin" ;;
2396 llvm_cv_target_os_type="FreeBSD" ;;
2398 llvm_cv_target_os_type="OpenBSD" ;;
2400 llvm_cv_target_os_type="NetBSD" ;;
2402 llvm_cv_target_os_type="DragonFly" ;;
2404 llvm_cv_target_os_type="HP-UX" ;;
2406 llvm_cv_target_os_type="Interix" ;;
2408 llvm_cv_target_os_type="Linux" ;;
2410 llvm_cv_target_os_type="SunOS" ;;
2412 llvm_cv_target_os_type="AuroraUX" ;;
2414 llvm_cv_target_os_type="Win32" ;;
2416 llvm_cv_target_os_type="MingW" ;;
2418 llvm_cv_target_os_type="Haiku" ;;
2420 llvm_cv_target_os_type="Freestanding" ;;
2422 llvm_cv_target_os_type="Unknown" ;;
2425 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2426 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2428 if test "$llvm_cv_os_type" = "Unknown" ; then
2429 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2430 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2431 { (exit 1); exit 1; }; }
2436 HOST_OS=$llvm_cv_os_type
2438 TARGET_OS=$llvm_cv_target_os_type
2441 LINKALL=$llvm_cv_link_all_option
2443 NOLINKALL=$llvm_cv_no_link_all_option
2446 case $llvm_cv_platform_type in
2449 cat >>confdefs.h <<\_ACEOF
2450 #define LLVM_ON_UNIX 1
2460 cat >>confdefs.h <<\_ACEOF
2461 #define LLVM_ON_WIN32 1
2471 { echo "$as_me:$LINENO: checking target architecture" >&5
2472 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2473 if test "${llvm_cv_target_arch+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 i?86-*) llvm_cv_target_arch="x86" ;;
2478 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2479 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2480 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2481 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2482 arm*-*) llvm_cv_target_arch="ARM" ;;
2483 mips-*) llvm_cv_target_arch="Mips" ;;
2484 pic16-*) llvm_cv_target_arch="PIC16" ;;
2485 xcore-*) llvm_cv_target_arch="XCore" ;;
2486 msp430-*) llvm_cv_target_arch="MSP430" ;;
2487 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2488 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2489 *) llvm_cv_target_arch="Unknown" ;;
2492 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2493 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2495 if test "$llvm_cv_target_arch" = "Unknown" ; then
2496 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2497 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2500 # Determine the LLVM native architecture for the target
2501 case "$llvm_cv_target_arch" in
2502 x86) LLVM_NATIVE_ARCH="X86" ;;
2503 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2504 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2507 ARCH=$llvm_cv_target_arch
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 if test -n "$CC"; then
2545 { echo "$as_me:$LINENO: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2554 if test -z "$ac_cv_prog_CC"; then
2556 # Extract the first word of "gcc", so it can be a program name with args.
2557 set dummy gcc; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$ac_ct_CC"; then
2564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_CC="gcc"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2584 if test -n "$ac_ct_CC"; then
2585 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2586 echo "${ECHO_T}$ac_ct_CC" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2592 if test "x$ac_ct_CC" = x; then
2595 case $cross_compiling:$ac_tool_warned in
2597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2598 whose name does not start with the host triplet. If you think this
2599 configuration is useful to you, please write to autoconf@gnu.org." >&5
2600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet. If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2603 ac_tool_warned=yes ;;
2611 if test -z "$CC"; then
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}cc; ac_word=$2
2615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 ac_cv_prog_CC="${ac_tool_prefix}cc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 if test -n "$CC"; then
2642 { echo "$as_me:$LINENO: result: $CC" >&5
2643 echo "${ECHO_T}$CC" >&6; }
2645 { echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6; }
2652 if test -z "$CC"; then
2653 # Extract the first word of "cc", so it can be a program name with args.
2654 set dummy cc; ac_word=$2
2655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_CC+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2672 ac_prog_rejected=yes
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 if test $ac_prog_rejected = yes; then
2684 # We found a bogon in the path, so make sure we never use it.
2685 set dummy $ac_cv_prog_CC
2687 if test $# != 0; then
2688 # We chose a different compiler from the bogus one.
2689 # However, it has the same basename, so the bogon will be chosen
2690 # first if we set CC to just the basename; use the full file name.
2692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2698 if test -n "$CC"; then
2699 { echo "$as_me:$LINENO: result: $CC" >&5
2700 echo "${ECHO_T}$CC" >&6; }
2702 { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2708 if test -z "$CC"; then
2709 if test -n "$ac_tool_prefix"; then
2710 for ac_prog in cl.exe
2712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_CC+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test -n "$CC"; then
2741 { echo "$as_me:$LINENO: result: $CC" >&5
2742 echo "${ECHO_T}$CC" >&6; }
2744 { echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6; }
2749 test -n "$CC" && break
2752 if test -z "$CC"; then
2754 for ac_prog in cl.exe
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757 set dummy $ac_prog; ac_word=$2
2758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 if test -n "$ac_ct_CC"; then
2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_ac_ct_CC="$ac_prog"
2774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2786 echo "${ECHO_T}$ac_ct_CC" >&6; }
2788 { echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6; }
2793 test -n "$ac_ct_CC" && break
2796 if test "x$ac_ct_CC" = x; then
2799 case $cross_compiling:$ac_tool_warned in
2801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2802 whose name does not start with the host triplet. If you think this
2803 configuration is useful to you, please write to autoconf@gnu.org." >&5
2804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet. If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2807 ac_tool_warned=yes ;;
2816 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2817 See \`config.log' for more details." >&5
2818 echo "$as_me: error: no acceptable C compiler found in \$PATH
2819 See \`config.log' for more details." >&2;}
2820 { (exit 1); exit 1; }; }
2822 # Provide some information about the compiler.
2823 echo "$as_me:$LINENO: checking for C compiler version" >&5
2824 ac_compiler=`set X $ac_compile; echo $2`
2825 { (ac_try="$ac_compiler --version >&5"
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_compiler --version >&5") 2>&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2835 { (ac_try="$ac_compiler -v >&5"
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_compiler -v >&5") 2>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }
2845 { (ac_try="$ac_compiler -V >&5"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_compiler -V >&5") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }
2856 cat >conftest.$ac_ext <<_ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2871 ac_clean_files_save=$ac_clean_files
2872 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2873 # Try to create an executable without -o first, disregard a.out.
2874 # It will help us diagnose broken compilers, and finding out an intuition
2876 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2877 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2878 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2880 # List of possible output files, starting from the most likely.
2881 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2882 # only as a last resort. b.out is created by i960 compilers.
2883 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2885 # The IRIX 6 linker writes into existing files which may not be
2886 # executable, retaining their permissions. Remove them first so a
2887 # subsequent execution test works.
2889 for ac_file in $ac_files
2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2893 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2898 if { (ac_try="$ac_link_default"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_link_default") 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; then
2908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2909 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2910 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2911 # so that the user can short-circuit this test for compilers unknown to
2913 for ac_file in $ac_files
2915 test -f "$ac_file" || continue
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2920 # We found the default executable, but exeext='' is most
2924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2928 # We set ac_cv_exeext here because the later test for it is not
2929 # safe: cross compilers may not add the suffix if given an `-o'
2930 # argument, so we may need to know it at that point already.
2931 # Even if this section looks crufty: it has the advantage of
2938 test "$ac_cv_exeext" = no && ac_cv_exeext=
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2944 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: C compiler cannot create executables
2947 See \`config.log' for more details." >&2;}
2948 { (exit 77); exit 77; }; }
2951 ac_exeext=$ac_cv_exeext
2952 { echo "$as_me:$LINENO: result: $ac_file" >&5
2953 echo "${ECHO_T}$ac_file" >&6; }
2955 # Check that the compiler produces executables we can run. If not, either
2956 # the compiler is broken, or we cross compile.
2957 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2958 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2959 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2960 # If not cross compiling, check that we can run a simple program.
2961 if test "$cross_compiling" != yes; then
2962 if { ac_try='./$ac_file'
2963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2974 if test "$cross_compiling" = maybe; then
2977 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2978 If you meant to cross compile, use \`--host'.
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details." >&2;}
2983 { (exit 1); exit 1; }; }
2987 { echo "$as_me:$LINENO: result: yes" >&5
2988 echo "${ECHO_T}yes" >&6; }
2990 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2991 ac_clean_files=$ac_clean_files_save
2992 # Check that the compiler produces executables we can run. If not, either
2993 # the compiler is broken, or we cross compile.
2994 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2995 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2996 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2997 echo "${ECHO_T}$cross_compiling" >&6; }
2999 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3000 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3001 if { (ac_try="$ac_link"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_link") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; then
3011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3013 # work properly (i.e., refer to `conftest.exe'), while it won't with
3015 for ac_file in conftest.exe conftest conftest.*; do
3016 test -f "$ac_file" || continue
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3026 See \`config.log' for more details." >&5
3027 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details." >&2;}
3029 { (exit 1); exit 1; }; }
3032 rm -f conftest$ac_cv_exeext
3033 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3034 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3036 rm -f conftest.$ac_ext
3037 EXEEXT=$ac_cv_exeext
3039 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3040 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3041 if test "${ac_cv_objext+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 cat >conftest.$ac_ext <<_ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3059 rm -f conftest.o conftest.obj
3060 if { (ac_try="$ac_compile"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compile") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 for ac_file in conftest.o conftest.obj conftest.*; do
3071 test -f "$ac_file" || continue;
3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3083 See \`config.log' for more details." >&5
3084 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3085 See \`config.log' for more details." >&2;}
3086 { (exit 1); exit 1; }; }
3089 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3091 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3092 echo "${ECHO_T}$ac_cv_objext" >&6; }
3093 OBJEXT=$ac_cv_objext
3095 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3096 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3097 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 cat >conftest.$ac_ext <<_ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133 { (case "(($ac_try" in
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_try") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3164 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3165 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3166 GCC=`test $ac_compiler_gnu = yes && echo yes`
3167 ac_test_CFLAGS=${CFLAGS+set}
3168 ac_save_CFLAGS=$CFLAGS
3169 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3170 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3171 if test "${ac_cv_prog_cc_g+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 ac_save_c_werror_flag=$ac_c_werror_flag
3175 ac_c_werror_flag=yes
3178 cat >conftest.$ac_ext <<_ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3208 { (case "(($ac_try" in
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_try") 2>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_try") 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; }; then
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3248 rm -f conftest.$ac_objext
3249 if { (ac_try="$ac_compile"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compile") 2>conftest.er1
3257 grep -v '^ *+' conftest.er1 >conftest.err
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3263 { (case "(($ac_try" in
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_try") 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_try") 2>&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3319 { (case "(($ac_try" in
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_try") 2>&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_try") 2>&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 ac_c_werror_flag=$ac_save_c_werror_flag
3355 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3356 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3357 if test "$ac_test_CFLAGS" = set; then
3358 CFLAGS=$ac_save_CFLAGS
3359 elif test $ac_cv_prog_cc_g = yes; then
3360 if test "$GCC" = yes; then
3366 if test "$GCC" = yes; then
3372 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3373 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_cc_c89+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 ac_cv_prog_cc_c89=no
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3387 #include <sys/types.h>
3388 #include <sys/stat.h>
3389 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3390 struct buf { int x; };
3391 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3392 static char *e (p, i)
3398 static char *f (char * (*g) (char **, int), char **p, ...)
3403 s = g (p, va_arg (v,int));
3408 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3409 function prototypes and stuff, but not '\xHH' hex character constants.
3410 These don't provoke an error unfortunately, instead are silently treated
3411 as 'x'. The following induces an error, until -std is added to get
3412 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3413 array size at least. It's necessary to write '\x00'==0 to get something
3414 that's true only with -std. */
3415 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3417 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3418 inside strings and character constants. */
3420 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3422 int test (int i, double x);
3423 struct s1 {int (*f) (int a);};
3424 struct s2 {int (*f) (double a);};
3425 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3431 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3436 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3437 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3439 CC="$ac_save_CC $ac_arg"
3440 rm -f conftest.$ac_objext
3441 if { (ac_try="$ac_compile"
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_compile") 2>conftest.er1
3449 grep -v '^ *+' conftest.er1 >conftest.err
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3455 { (case "(($ac_try" in
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_try") 2>&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; } &&
3464 { ac_try='test -s conftest.$ac_objext'
3465 { (case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_try") 2>&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_cv_prog_cc_c89=$ac_arg
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3482 rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
3485 rm -f conftest.$ac_ext
3490 case "x$ac_cv_prog_cc_c89" in
3492 { echo "$as_me:$LINENO: result: none needed" >&5
3493 echo "${ECHO_T}none needed" >&6; } ;;
3495 { echo "$as_me:$LINENO: result: unsupported" >&5
3496 echo "${ECHO_T}unsupported" >&6; } ;;
3498 CC="$CC $ac_cv_prog_cc_c89"
3499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3500 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 ac_cpp='$CPP $CPPFLAGS'
3513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3517 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3518 # On Suns, sometimes $CPP names a directory.
3519 if test -n "$CPP" && test -d "$CPP"; then
3522 if test -z "$CPP"; then
3523 if test "${ac_cv_prog_CPP+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 # Double quotes because CPP needs to be expanded
3527 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3530 for ac_c_preproc_warn_flag in '' yes
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat >conftest.$ac_ext <<_ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3545 # include <limits.h>
3547 # include <assert.h>
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573 if test -z "$ac_cpp_err"; then
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 # Broken: fails on valid input.
3583 rm -f conftest.err conftest.$ac_ext
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 #include <ac_nonexistent.h>
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3617 if test -z "$ac_cpp_err"; then
3618 # Broken: success on invalid input.
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Passes both tests.
3629 rm -f conftest.err conftest.$ac_ext
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3646 { echo "$as_me:$LINENO: result: $CPP" >&5
3647 echo "${ECHO_T}$CPP" >&6; }
3649 for ac_c_preproc_warn_flag in '' yes
3651 # Use a header file that comes with gcc, so configuring glibc
3652 # with a fresh cross-compiler works.
3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654 # <limits.h> exists even on freestanding compilers.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3664 # include <limits.h>
3666 # include <assert.h>
3670 if { (ac_try="$ac_cpp conftest.$ac_ext"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3678 grep -v '^ *+' conftest.er1 >conftest.err
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } >/dev/null; then
3683 if test -s conftest.err; then
3684 ac_cpp_err=$ac_c_preproc_warn_flag
3685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3692 if test -z "$ac_cpp_err"; then
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3698 # Broken: fails on valid input.
3702 rm -f conftest.err conftest.$ac_ext
3704 # OK, works on sane cases. Now check whether nonexistent headers
3705 # can be detected and how.
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 #include <ac_nonexistent.h>
3714 if { (ac_try="$ac_cpp conftest.$ac_ext"
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3722 grep -v '^ *+' conftest.er1 >conftest.err
3724 cat conftest.err >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } >/dev/null; then
3727 if test -s conftest.err; then
3728 ac_cpp_err=$ac_c_preproc_warn_flag
3729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3736 if test -z "$ac_cpp_err"; then
3737 # Broken: success on invalid input.
3740 echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3743 # Passes both tests.
3748 rm -f conftest.err conftest.$ac_ext
3751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752 rm -f conftest.err conftest.$ac_ext
3753 if $ac_preproc_ok; then
3756 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3757 See \`config.log' for more details." >&5
3758 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details." >&2;}
3760 { (exit 1); exit 1; }; }
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3771 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3772 if test "${ac_cv_path_GREP+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 # Extract the first word of "grep ggrep" to use in msg output
3776 if test -z "$GREP"; then
3777 set dummy grep ggrep; ac_prog_name=$2
3778 if test "${ac_cv_path_GREP+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 ac_path_GREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787 test -z "$as_dir" && as_dir=.
3788 for ac_prog in grep ggrep; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3791 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3792 # Check for GNU ac_path_GREP and select it if it is found.
3793 # Check for GNU $ac_path_GREP
3794 case `"$ac_path_GREP" --version 2>&1` in
3796 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3799 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 echo 'GREP' >> "conftest.nl"
3806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808 ac_count=`expr $ac_count + 1`
3809 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_GREP="$ac_path_GREP"
3812 ac_path_GREP_max=$ac_count
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3821 $ac_path_GREP_found && break 3
3831 GREP="$ac_cv_path_GREP"
3832 if test -z "$GREP"; then
3833 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3834 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3835 { (exit 1); exit 1; }; }
3839 ac_cv_path_GREP=$GREP
3844 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3845 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3846 GREP="$ac_cv_path_GREP"
3849 { echo "$as_me:$LINENO: checking for egrep" >&5
3850 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3851 if test "${ac_cv_path_EGREP+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3855 then ac_cv_path_EGREP="$GREP -E"
3857 # Extract the first word of "egrep" to use in msg output
3858 if test -z "$EGREP"; then
3859 set dummy egrep; ac_prog_name=$2
3860 if test "${ac_cv_path_EGREP+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 ac_path_EGREP_found=false
3864 # Loop through the user's path and test for each of PROGNAME-LIST
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3869 test -z "$as_dir" && as_dir=.
3870 for ac_prog in egrep; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3873 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3874 # Check for GNU ac_path_EGREP and select it if it is found.
3875 # Check for GNU $ac_path_EGREP
3876 case `"$ac_path_EGREP" --version 2>&1` in
3878 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3881 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3884 cat "conftest.in" "conftest.in" >"conftest.tmp"
3885 mv "conftest.tmp" "conftest.in"
3886 cp "conftest.in" "conftest.nl"
3887 echo 'EGREP' >> "conftest.nl"
3888 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3890 ac_count=`expr $ac_count + 1`
3891 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3892 # Best one so far, save it but keep looking for a better one
3893 ac_cv_path_EGREP="$ac_path_EGREP"
3894 ac_path_EGREP_max=$ac_count
3896 # 10*(2^10) chars as input seems more than enough
3897 test $ac_count -gt 10 && break
3899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 $ac_path_EGREP_found && break 3
3913 EGREP="$ac_cv_path_EGREP"
3914 if test -z "$EGREP"; then
3915 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3916 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3917 { (exit 1); exit 1; }; }
3921 ac_cv_path_EGREP=$EGREP
3927 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3928 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3929 EGREP="$ac_cv_path_EGREP"
3932 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3933 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3934 if test "${ac_cv_header_stdc+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3956 rm -f conftest.$ac_objext
3957 if { (ac_try="$ac_compile"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_compile") 2>conftest.er1
3965 grep -v '^ *+' conftest.er1 >conftest.err
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3971 { (case "(($ac_try" in
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_try") 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_try") 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 ac_cv_header_stdc=yes
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 ac_cv_header_stdc=no
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 if test $ac_cv_header_stdc = yes; then
4001 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4012 $EGREP "memchr" >/dev/null 2>&1; then
4015 ac_cv_header_stdc=no
4021 if test $ac_cv_header_stdc = yes; then
4022 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4023 cat >conftest.$ac_ext <<_ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4033 $EGREP "free" >/dev/null 2>&1; then
4036 ac_cv_header_stdc=no
4042 if test $ac_cv_header_stdc = yes; then
4043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4044 if test "$cross_compiling" = yes; then
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4055 #if ((' ' & 0x0FF) == 0x020)
4056 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4057 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4059 # define ISLOWER(c) \
4060 (('a' <= (c) && (c) <= 'i') \
4061 || ('j' <= (c) && (c) <= 'r') \
4062 || ('s' <= (c) && (c) <= 'z'))
4063 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4066 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4071 for (i = 0; i < 256; i++)
4072 if (XOR (islower (i), ISLOWER (i))
4073 || toupper (i) != TOUPPER (i))
4078 rm -f conftest$ac_exeext
4079 if { (ac_try="$ac_link"
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_link") 2>&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4089 { (case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4100 echo "$as_me: program exited with status $ac_status" >&5
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4105 ac_cv_header_stdc=no
4107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4113 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4114 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4115 if test $ac_cv_header_stdc = yes; then
4117 cat >>confdefs.h <<\_ACEOF
4118 #define STDC_HEADERS 1
4123 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4134 inttypes.h stdint.h unistd.h
4136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148 $ac_includes_default
4150 #include <$ac_header>
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (case "(($ac_try" in
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_try") 2>&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 { (case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_try") 2>&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 eval "$as_ac_Header=yes"
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 eval "$as_ac_Header=no"
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 ac_res=`eval echo '${'$as_ac_Header'}'`
4197 { echo "$as_me:$LINENO: result: $ac_res" >&5
4198 echo "${ECHO_T}$ac_res" >&6; }
4199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4200 cat >>confdefs.h <<_ACEOF
4201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4210 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4211 if test "${ac_cv_c_bigendian+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 # See if sys/param.h defines the BYTE_ORDER macro.
4215 cat >conftest.$ac_ext <<_ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 #include <sys/types.h>
4222 #include <sys/param.h>
4227 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4235 rm -f conftest.$ac_objext
4236 if { (ac_try="$ac_compile"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_compile") 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4250 { (case "(($ac_try" in
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_try") 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try='test -s conftest.$ac_objext'
4260 { (case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_try") 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4269 # It does; now see whether it defined to BIG_ENDIAN or not.
4270 cat >conftest.$ac_ext <<_ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 #include <sys/types.h>
4277 #include <sys/param.h>
4282 #if BYTE_ORDER != BIG_ENDIAN
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4299 grep -v '^ *+' conftest.er1 >conftest.err
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
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_try") 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_c_bigendian=yes
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ac_cv_c_bigendian=no
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4337 # It does not; compile a test program.
4338 if test "$cross_compiling" = yes; then
4339 # try to guess the endianness by grepping values into an object file
4340 ac_cv_c_bigendian=unknown
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4348 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4349 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4350 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4351 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4352 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4356 _ascii (); _ebcdic ();
4361 rm -f conftest.$ac_objext
4362 if { (ac_try="$ac_compile"
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_compile") 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4376 { (case "(($ac_try" in
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_try") 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; } &&
4385 { ac_try='test -s conftest.$ac_objext'
4386 { (case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_try") 2>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4395 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4396 ac_cv_c_bigendian=yes
4398 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4399 if test "$ac_cv_c_bigendian" = unknown; then
4400 ac_cv_c_bigendian=no
4402 # finding both strings is unlikely to happen, but who knows?
4403 ac_cv_c_bigendian=unknown
4407 echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 cat >conftest.$ac_ext <<_ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 $ac_includes_default
4426 /* Are we little or big endian? From Harbison&Steele. */
4430 char c[sizeof (long int)];
4433 return u.c[sizeof (long int) - 1] == 1;
4439 rm -f conftest$ac_exeext
4440 if { (ac_try="$ac_link"
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_link") 2>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4450 { (case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_try") 2>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_cv_c_bigendian=no
4461 echo "$as_me: program exited with status $ac_status" >&5
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4466 ac_cv_c_bigendian=yes
4468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4477 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4478 case $ac_cv_c_bigendian in
4486 { { echo "$as_me:$LINENO: error: unknown endianness
4487 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4488 echo "$as_me: error: unknown endianness
4489 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4490 { (exit 1); exit 1; }; } ;;
4494 if test "$cross_compiling" = yes; then
4495 LLVM_CROSS_COMPILING=1
4498 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4499 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4500 if test "${ac_cv_build_exeext+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4504 ac_cv_build_exeext=.exe
4506 ac_build_prefix=${build_alias}-
4508 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4509 set dummy ${ac_build_prefix}gcc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 if test -n "$BUILD_CC"; then
4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 BUILD_CC=$ac_cv_prog_BUILD_CC
4536 if test -n "$BUILD_CC"; then
4537 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4538 echo "${ECHO_T}$BUILD_CC" >&6; }
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4545 if test -z "$BUILD_CC"; then
4546 # Extract the first word of "gcc", so it can be a program name with args.
4547 set dummy gcc; ac_word=$2
4548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4550 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 if test -n "$BUILD_CC"; then
4554 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_BUILD_CC="gcc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 BUILD_CC=$ac_cv_prog_BUILD_CC
4574 if test -n "$BUILD_CC"; then
4575 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4576 echo "${ECHO_T}$BUILD_CC" >&6; }
4578 { echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6; }
4583 if test -z "$BUILD_CC"; then
4584 # Extract the first word of "cc", so it can be a program name with args.
4585 set dummy cc; ac_word=$2
4586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4588 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 if test -n "$BUILD_CC"; then
4592 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4603 ac_prog_rejected=yes
4606 ac_cv_prog_BUILD_CC="cc"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 if test $ac_prog_rejected = yes; then
4615 # We found a bogon in the path, so make sure we never use it.
4616 set dummy $ac_cv_prog_BUILD_CC
4618 if test $# != 0; then
4619 # We chose a different compiler from the bogus one.
4620 # However, it has the same basename, so the bogon will be chosen
4621 # first if we set BUILD_CC to just the basename; use the full file name.
4623 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4628 BUILD_CC=$ac_cv_prog_BUILD_CC
4629 if test -n "$BUILD_CC"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4631 echo "${ECHO_T}$BUILD_CC" >&6; }
4633 { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4640 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4641 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4642 { (exit 1); exit 1; }; }
4643 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4645 echo 'int main () { return 0; }' > conftest.$ac_ext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4648 (eval $ac_build_link) 2>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; then
4652 for file in conftest.*; do
4654 *.c | *.o | *.obj | *.dSYM) ;;
4655 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4659 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4660 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4661 { (exit 1); exit 1; }; }
4664 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4669 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4670 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4671 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4672 ac_build_exeext=$BUILD_EXEEXT
4674 ac_build_prefix=${build_alias}-
4675 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4676 set dummy ${ac_build_prefix}g++; ac_word=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 if test -n "$BUILD_CXX"; then
4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4703 if test -n "$BUILD_CXX"; then
4704 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4705 echo "${ECHO_T}$BUILD_CXX" >&6; }
4707 { echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6; }
4712 if test -z "$BUILD_CXX"; then
4713 # Extract the first word of "g++", so it can be a program name with args.
4714 set dummy g++; ac_word=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 if test -n "$BUILD_CXX"; then
4721 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_BUILD_CXX="g++"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4741 if test -n "$BUILD_CXX"; then
4742 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4743 echo "${ECHO_T}$BUILD_CXX" >&6; }
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4750 if test -z "$BUILD_CXX"; then
4751 # Extract the first word of "c++", so it can be a program name with args.
4752 set dummy c++; ac_word=$2
4753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4755 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 if test -n "$BUILD_CXX"; then
4759 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4770 ac_prog_rejected=yes
4773 ac_cv_prog_BUILD_CXX="c++"
4774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 if test $ac_prog_rejected = yes; then
4782 # We found a bogon in the path, so make sure we never use it.
4783 set dummy $ac_cv_prog_BUILD_CXX
4785 if test $# != 0; then
4786 # We chose a different compiler from the bogus one.
4787 # However, it has the same basename, so the bogon will be chosen
4788 # first if we set BUILD_CXX to just the basename; use the full file name.
4790 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4795 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4796 if test -n "$BUILD_CXX"; then
4797 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4798 echo "${ECHO_T}$BUILD_CXX" >&6; }
4800 { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4808 LLVM_CROSS_COMPILING=0
4812 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4823 # Check whether --enable-optimized was given.
4824 if test "${enable_optimized+set}" = set; then
4825 enableval=$enable_optimized;
4830 if test ${enableval} = "no" ; then
4834 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4838 # Check whether --enable-profiling was given.
4839 if test "${enable_profiling+set}" = set; then
4840 enableval=$enable_profiling;
4845 if test ${enableval} = "no" ; then
4849 ENABLE_PROFILING=ENABLE_PROFILING=1
4853 # Check whether --enable-assertions was given.
4854 if test "${enable_assertions+set}" = set; then
4855 enableval=$enable_assertions;
4860 if test ${enableval} = "yes" ; then
4864 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4868 # Check whether --enable-expensive-checks was given.
4869 if test "${enable_expensive_checks+set}" = set; then
4870 enableval=$enable_expensive_checks;
4875 if test ${enableval} = "yes" ; then
4876 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4878 EXPENSIVE_CHECKS=yes
4881 ENABLE_EXPENSIVE_CHECKS=
4887 # Check whether --enable-debug-runtime was given.
4888 if test "${enable_debug_runtime+set}" = set; then
4889 enableval=$enable_debug_runtime;
4894 if test ${enableval} = "no" ; then
4898 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4902 # Check whether --enable-debug-symbols was given.
4903 if test "${enable_debug_symbols+set}" = set; then
4904 enableval=$enable_debug_symbols;
4909 if test ${enableval} = "no" ; then
4913 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4917 # Check whether --enable-jit was given.
4918 if test "${enable_jit+set}" = set; then
4919 enableval=$enable_jit;
4924 if test ${enableval} = "no"
4929 case "$llvm_cv_target_arch" in
4930 x86) TARGET_HAS_JIT=1
4932 Sparc) TARGET_HAS_JIT=0
4934 PowerPC) TARGET_HAS_JIT=1
4936 x86_64) TARGET_HAS_JIT=1
4938 Alpha) TARGET_HAS_JIT=1
4940 ARM) TARGET_HAS_JIT=1
4942 Mips) TARGET_HAS_JIT=0
4944 PIC16) TARGET_HAS_JIT=0
4946 XCore) TARGET_HAS_JIT=0
4948 MSP430) TARGET_HAS_JIT=0
4950 SystemZ) TARGET_HAS_JIT=0
4952 Blackfin) TARGET_HAS_JIT=0
4959 # Check whether --enable-doxygen was given.
4960 if test "${enable_doxygen+set}" = set; then
4961 enableval=$enable_doxygen;
4966 case "$enableval" in
4967 yes) ENABLE_DOXYGEN=1
4969 no) ENABLE_DOXYGEN=0
4971 default) ENABLE_DOXYGEN=0
4973 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4974 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4978 # Check whether --enable-threads was given.
4979 if test "${enable_threads+set}" = set; then
4980 enableval=$enable_threads;
4985 case "$enableval" in
4986 yes) ENABLE_THREADS=1
4988 no) ENABLE_THREADS=0
4990 default) ENABLE_THREADS=1
4992 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4993 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4994 { (exit 1); exit 1; }; } ;;
4997 cat >>confdefs.h <<_ACEOF
4998 #define ENABLE_THREADS $ENABLE_THREADS
5002 # Check whether --enable-pic was given.
5003 if test "${enable_pic+set}" = set; then
5004 enableval=$enable_pic;
5009 case "$enableval" in
5014 default) ENABLE_PIC=1
5016 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5017 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5018 { (exit 1); exit 1; }; } ;;
5021 cat >>confdefs.h <<_ACEOF
5022 #define ENABLE_PIC $ENABLE_PIC
5027 # Check whether --enable-targets was given.
5028 if test "${enable_targets+set}" = set; then
5029 enableval=$enable_targets;
5034 if test "$enableval" = host-only ; then
5037 case "$enableval" in
5038 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5039 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5041 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5042 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5043 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5044 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5045 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5046 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5047 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5048 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5049 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5050 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5051 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5052 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5053 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5054 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5055 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5056 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5057 host) case "$llvm_cv_target_arch" in
5058 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5059 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5060 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5061 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5062 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5063 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5064 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5065 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5066 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5067 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5068 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5069 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5070 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5071 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5072 echo "$as_me: error: Can not set target to build" >&2;}
5073 { (exit 1); exit 1; }; } ;;
5075 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5076 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5077 { (exit 1); exit 1; }; } ;;
5082 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5085 # Determine whether we are building LLVM support for the native architecture.
5086 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5087 for a_target in $TARGETS_TO_BUILD; do
5088 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5089 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5091 cat >>confdefs.h <<_ACEOF
5092 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5098 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5099 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5100 LLVM_ENUM_TARGETS=""
5101 LLVM_ENUM_ASM_PRINTERS=""
5102 LLVM_ENUM_ASM_PARSERS=""
5103 for target_to_build in $TARGETS_TO_BUILD; do
5104 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5105 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5106 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5108 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5109 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5116 # Check whether --enable-cbe-printf-a was given.
5117 if test "${enable_cbe_printf_a+set}" = set; then
5118 enableval=$enable_cbe_printf_a;
5123 case "$enableval" in
5124 yes) ENABLE_CBE_PRINTF_A=1
5126 no) ENABLE_CBE_PRINTF_A=0
5128 default) ENABLE_CBE_PRINTF_A=1
5130 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5132 { (exit 1); exit 1; }; } ;;
5135 cat >>confdefs.h <<_ACEOF
5136 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5141 # Check whether --with-llvmgccdir was given.
5142 if test "${with_llvmgccdir+set}" = set; then
5143 withval=$with_llvmgccdir;
5149 default) WITH_LLVMGCCDIR=default ;;
5150 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5151 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5152 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5157 # Check whether --with-llvmgcc was given.
5158 if test "${with_llvmgcc+set}" = set; then
5159 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5165 # Check whether --with-llvmgxx was given.
5166 if test "${with_llvmgxx+set}" = set; then
5167 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5172 if test -n "$LLVMGCC"; then
5173 LLVMGCCCOMMAND="$LLVMGCC"
5176 if test -n "$LLVMGXX"; then
5177 LLVMGXXCOMMAND="$LLVMGXX"
5180 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5181 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5182 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5183 { (exit 1); exit 1; }; };
5186 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5187 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5188 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5189 { (exit 1); exit 1; }; };
5193 # Check whether --with-extra-options was given.
5194 if test "${with_extra_options+set}" = set; then
5195 withval=$with_extra_options;
5201 default) EXTRA_OPTIONS= ;;
5202 *) EXTRA_OPTIONS=$withval ;;
5204 EXTRA_OPTIONS=$EXTRA_OPTIONS
5207 # Check whether --enable-bindings was given.
5208 if test "${enable_bindings+set}" = set; then
5209 enableval=$enable_bindings;
5214 BINDINGS_TO_BUILD=""
5215 case "$enableval" in
5216 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5217 all ) BINDINGS_TO_BUILD="ocaml" ;;
5218 none | no) BINDINGS_TO_BUILD="" ;;
5219 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5220 case "$a_binding" in
5221 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5222 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5223 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5231 # Check whether --with-ocaml-libdir was given.
5232 if test "${with_ocaml_libdir+set}" = set; then
5233 withval=$with_ocaml_libdir;
5239 auto) with_ocaml_libdir="$withval" ;;
5240 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5241 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5242 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5243 { (exit 1); exit 1; }; } ;;
5247 # Check whether --with-binutils-include was given.
5248 if test "${with_binutils_include+set}" = set; then
5249 withval=$with_binutils_include;
5255 default) WITH_BINUTILS_INCDIR=default ;;
5256 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5257 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5258 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5259 { (exit 1); exit 1; }; } ;;
5261 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5262 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5264 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5265 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5266 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5267 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5268 { (exit 1); exit 1; }; };
5272 # Check whether --enable-libffi was given.
5273 if test "${enable_libffi+set}" = set; then
5274 enableval=$enable_libffi;
5279 case "$enableval" in
5280 yes) llvm_cv_enable_libffi="yes" ;;
5281 no) llvm_cv_enable_libffi="no" ;;
5282 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5283 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5284 { (exit 1); exit 1; }; } ;;
5287 if test "$llvm_cv_os_type" = "Win32" ; then
5293 # Check whether --enable-llvmc-dynamic was given.
5294 if test "${enable_llvmc_dynamic+set}" = set; then
5295 enableval=$enable_llvmc_dynamic;
5297 enableval=$llvmc_dynamic
5300 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5301 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5304 ENABLE_LLVMC_DYNAMIC=
5308 # Check whether --enable-llvmc-dynamic-plugins was given.
5309 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5310 enableval=$enable_llvmc_dynamic_plugins;
5315 if test ${enableval} = "yes" ; then
5316 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5319 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5325 ac_cpp='$CPP $CPPFLAGS'
5326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5330 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5331 # On Suns, sometimes $CPP names a directory.
5332 if test -n "$CPP" && test -d "$CPP"; then
5335 if test -z "$CPP"; then
5336 if test "${ac_cv_prog_CPP+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 # Double quotes because CPP needs to be expanded
5340 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5343 for ac_c_preproc_warn_flag in '' yes
5345 # Use a header file that comes with gcc, so configuring glibc
5346 # with a fresh cross-compiler works.
5347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5348 # <limits.h> exists even on freestanding compilers.
5349 # On the NeXT, cc -E runs the code through the compiler's parser,
5350 # not just through cpp. "Syntax error" is here to catch this case.
5351 cat >conftest.$ac_ext <<_ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5358 # include <limits.h>
5360 # include <assert.h>
5364 if { (ac_try="$ac_cpp conftest.$ac_ext"
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } >/dev/null; then
5377 if test -s conftest.err; then
5378 ac_cpp_err=$ac_c_preproc_warn_flag
5379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386 if test -z "$ac_cpp_err"; then
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 # Broken: fails on valid input.
5396 rm -f conftest.err conftest.$ac_ext
5398 # OK, works on sane cases. Now check whether nonexistent headers
5399 # can be detected and how.
5400 cat >conftest.$ac_ext <<_ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5406 #include <ac_nonexistent.h>
5408 if { (ac_try="$ac_cpp conftest.$ac_ext"
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5416 grep -v '^ *+' conftest.er1 >conftest.err
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5430 if test -z "$ac_cpp_err"; then
5431 # Broken: success on invalid input.
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5437 # Passes both tests.
5442 rm -f conftest.err conftest.$ac_ext
5445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5446 rm -f conftest.err conftest.$ac_ext
5447 if $ac_preproc_ok; then
5459 { echo "$as_me:$LINENO: result: $CPP" >&5
5460 echo "${ECHO_T}$CPP" >&6; }
5462 for ac_c_preproc_warn_flag in '' yes
5464 # Use a header file that comes with gcc, so configuring glibc
5465 # with a fresh cross-compiler works.
5466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467 # <limits.h> exists even on freestanding compilers.
5468 # On the NeXT, cc -E runs the code through the compiler's parser,
5469 # not just through cpp. "Syntax error" is here to catch this case.
5470 cat >conftest.$ac_ext <<_ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5477 # include <limits.h>
5479 # include <assert.h>
5483 if { (ac_try="$ac_cpp conftest.$ac_ext"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_c_preproc_warn_flag
5498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5505 if test -z "$ac_cpp_err"; then
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5511 # Broken: fails on valid input.
5515 rm -f conftest.err conftest.$ac_ext
5517 # OK, works on sane cases. Now check whether nonexistent headers
5518 # can be detected and how.
5519 cat >conftest.$ac_ext <<_ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <ac_nonexistent.h>
5527 if { (ac_try="$ac_cpp conftest.$ac_ext"
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } >/dev/null; then
5540 if test -s conftest.err; then
5541 ac_cpp_err=$ac_c_preproc_warn_flag
5542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5549 if test -z "$ac_cpp_err"; then
5550 # Broken: success on invalid input.
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 # Passes both tests.
5561 rm -f conftest.err conftest.$ac_ext
5564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5565 rm -f conftest.err conftest.$ac_ext
5566 if $ac_preproc_ok; then
5569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5570 See \`config.log' for more details." >&5
5571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5572 See \`config.log' for more details." >&2;}
5573 { (exit 1); exit 1; }; }
5577 ac_cpp='$CPP $CPPFLAGS'
5578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5583 ac_cpp='$CPP $CPPFLAGS'
5584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5587 if test -n "$ac_tool_prefix"; then
5590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5594 if test "${ac_cv_prog_CC+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 if test -n "$CC"; then
5598 ac_cv_prog_CC="$CC" # Let the user override the test.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 if test -n "$CC"; then
5619 { echo "$as_me:$LINENO: result: $CC" >&5
5620 echo "${ECHO_T}$CC" >&6; }
5622 { echo "$as_me:$LINENO: result: no" >&5
5623 echo "${ECHO_T}no" >&6; }
5627 test -n "$CC" && break
5630 if test -z "$CC"; then
5634 # Extract the first word of "$ac_prog", so it can be a program name with args.
5635 set dummy $ac_prog; ac_word=$2
5636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 if test -n "$ac_ct_CC"; then
5642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5651 ac_cv_prog_ac_ct_CC="$ac_prog"
5652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5662 if test -n "$ac_ct_CC"; then
5663 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5664 echo "${ECHO_T}$ac_ct_CC" >&6; }
5666 { echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6; }
5671 test -n "$ac_ct_CC" && break
5674 if test "x$ac_ct_CC" = x; then
5677 case $cross_compiling:$ac_tool_warned in
5679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5680 whose name does not start with the host triplet. If you think this
5681 configuration is useful to you, please write to autoconf@gnu.org." >&5
5682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5683 whose name does not start with the host triplet. If you think this
5684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5685 ac_tool_warned=yes ;;
5692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5693 See \`config.log' for more details." >&5
5694 echo "$as_me: error: no acceptable C compiler found in \$PATH
5695 See \`config.log' for more details." >&2;}
5696 { (exit 1); exit 1; }; }
5698 # Provide some information about the compiler.
5699 echo "$as_me:$LINENO: checking for C compiler version" >&5
5700 ac_compiler=`set X $ac_compile; echo $2`
5701 { (ac_try="$ac_compiler --version >&5"
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compiler --version >&5") 2>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }
5711 { (ac_try="$ac_compiler -v >&5"
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_compiler -v >&5") 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }
5721 { (ac_try="$ac_compiler -V >&5"
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compiler -V >&5") 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }
5732 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5733 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5734 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 cat >conftest.$ac_ext <<_ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5755 rm -f conftest.$ac_objext
5756 if { (ac_try="$ac_compile"
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5770 { (case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_try") 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_try") 2>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5801 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5802 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5803 GCC=`test $ac_compiler_gnu = yes && echo yes`
5804 ac_test_CFLAGS=${CFLAGS+set}
5805 ac_save_CFLAGS=$CFLAGS
5806 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5807 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5808 if test "${ac_cv_prog_cc_g+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 ac_save_c_werror_flag=$ac_c_werror_flag
5812 ac_c_werror_flag=yes
5815 cat >conftest.$ac_ext <<_ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5845 { (case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_try") 2>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_try") 2>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5870 cat >conftest.$ac_ext <<_ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5885 rm -f conftest.$ac_objext
5886 if { (ac_try="$ac_compile"
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_compile") 2>conftest.er1
5894 grep -v '^ *+' conftest.er1 >conftest.err
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } &&
5899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5900 { (case "(($ac_try" in
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_try") 2>&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; } &&
5909 { ac_try='test -s conftest.$ac_objext'
5910 { (case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_try") 2>&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 ac_c_werror_flag=$ac_save_c_werror_flag
5926 cat >conftest.$ac_ext <<_ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5941 rm -f conftest.$ac_objext
5942 if { (ac_try="$ac_compile"
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5956 { (case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_try") 2>&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; } &&
5965 { ac_try='test -s conftest.$ac_objext'
5966 { (case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_try") 2>&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 ac_c_werror_flag=$ac_save_c_werror_flag
5992 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5993 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5994 if test "$ac_test_CFLAGS" = set; then
5995 CFLAGS=$ac_save_CFLAGS
5996 elif test $ac_cv_prog_cc_g = yes; then
5997 if test "$GCC" = yes; then
6003 if test "$GCC" = yes; then
6009 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6010 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6011 if test "${ac_cv_prog_cc_c89+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 ac_cv_prog_cc_c89=no
6016 cat >conftest.$ac_ext <<_ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6024 #include <sys/types.h>
6025 #include <sys/stat.h>
6026 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6027 struct buf { int x; };
6028 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6029 static char *e (p, i)
6035 static char *f (char * (*g) (char **, int), char **p, ...)
6040 s = g (p, va_arg (v,int));
6045 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6046 function prototypes and stuff, but not '\xHH' hex character constants.
6047 These don't provoke an error unfortunately, instead are silently treated
6048 as 'x'. The following induces an error, until -std is added to get
6049 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6050 array size at least. It's necessary to write '\x00'==0 to get something
6051 that's true only with -std. */
6052 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6054 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6055 inside strings and character constants. */
6057 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6059 int test (int i, double x);
6060 struct s1 {int (*f) (int a);};
6061 struct s2 {int (*f) (double a);};
6062 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6068 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6073 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6074 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6076 CC="$ac_save_CC $ac_arg"
6077 rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6086 grep -v '^ *+' conftest.er1 >conftest.err
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6092 { (case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_try") 2>&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; } &&
6101 { ac_try='test -s conftest.$ac_objext'
6102 { (case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_try") 2>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 ac_cv_prog_cc_c89=$ac_arg
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6119 rm -f core conftest.err conftest.$ac_objext
6120 test "x$ac_cv_prog_cc_c89" != "xno" && break
6122 rm -f conftest.$ac_ext
6127 case "x$ac_cv_prog_cc_c89" in
6129 { echo "$as_me:$LINENO: result: none needed" >&5
6130 echo "${ECHO_T}none needed" >&6; } ;;
6132 { echo "$as_me:$LINENO: result: unsupported" >&5
6133 echo "${ECHO_T}unsupported" >&6; } ;;
6135 CC="$CC $ac_cv_prog_cc_c89"
6136 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6137 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6142 ac_cpp='$CPP $CPPFLAGS'
6143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148 ac_cpp='$CXXCPP $CPPFLAGS'
6149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6152 if test -z "$CXX"; then
6153 if test -n "$CCC"; then
6156 if test -n "$ac_tool_prefix"; then
6159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6163 if test "${ac_cv_prog_CXX+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 if test -n "$CXX"; then
6167 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6176 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 if test -n "$CXX"; then
6188 { echo "$as_me:$LINENO: result: $CXX" >&5
6189 echo "${ECHO_T}$CXX" >&6; }
6191 { echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6; }
6196 test -n "$CXX" && break
6199 if test -z "$CXX"; then
6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
6204 set dummy $ac_prog; ac_word=$2
6205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 if test -n "$ac_ct_CXX"; then
6211 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6220 ac_cv_prog_ac_ct_CXX="$ac_prog"
6221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6231 if test -n "$ac_ct_CXX"; then
6232 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6233 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6235 { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6240 test -n "$ac_ct_CXX" && break
6243 if test "x$ac_ct_CXX" = x; then
6246 case $cross_compiling:$ac_tool_warned in
6248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6249 whose name does not start with the host triplet. If you think this
6250 configuration is useful to you, please write to autoconf@gnu.org." >&5
6251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6252 whose name does not start with the host triplet. If you think this
6253 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6254 ac_tool_warned=yes ;;
6262 # Provide some information about the compiler.
6263 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6264 ac_compiler=`set X $ac_compile; echo $2`
6265 { (ac_try="$ac_compiler --version >&5"
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compiler --version >&5") 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }
6275 { (ac_try="$ac_compiler -v >&5"
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_compiler -v >&5") 2>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }
6285 { (ac_try="$ac_compiler -V >&5"
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6291 (eval "$ac_compiler -V >&5") 2>&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }
6296 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6297 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6298 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 cat >conftest.$ac_ext <<_ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6319 rm -f conftest.$ac_objext
6320 if { (ac_try="$ac_compile"
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326 (eval "$ac_compile") 2>conftest.er1
6328 grep -v '^ *+' conftest.er1 >conftest.err
6330 cat conftest.err >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6334 { (case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_try") 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; } &&
6343 { ac_try='test -s conftest.$ac_objext'
6344 { (case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_try") 2>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6365 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6366 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6367 GXX=`test $ac_compiler_gnu = yes && echo yes`
6368 ac_test_CXXFLAGS=${CXXFLAGS+set}
6369 ac_save_CXXFLAGS=$CXXFLAGS
6370 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6371 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6372 if test "${ac_cv_prog_cxx_g+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6376 ac_cxx_werror_flag=yes
6379 cat >conftest.$ac_ext <<_ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6403 grep -v '^ *+' conftest.er1 >conftest.err
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6409 { (case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_try") 2>&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_try") 2>&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_cv_prog_cxx_g=yes
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6434 cat >conftest.$ac_ext <<_ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6449 rm -f conftest.$ac_objext
6450 if { (ac_try="$ac_compile"
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_compile") 2>conftest.er1
6458 grep -v '^ *+' conftest.er1 >conftest.err
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } &&
6463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6464 { (case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_try") 2>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest.$ac_objext'
6474 { (case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_try") 2>&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6490 cat >conftest.$ac_ext <<_ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6505 rm -f conftest.$ac_objext
6506 if { (ac_try="$ac_compile"
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_compile") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } &&
6519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6520 { (case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_try") 2>&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; } &&
6529 { ac_try='test -s conftest.$ac_objext'
6530 { (case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535 (eval "$ac_try") 2>&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_cv_prog_cxx_g=yes
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6556 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6557 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6558 if test "$ac_test_CXXFLAGS" = set; then
6559 CXXFLAGS=$ac_save_CXXFLAGS
6560 elif test $ac_cv_prog_cxx_g = yes; then
6561 if test "$GXX" = yes; then
6567 if test "$GXX" = yes; then
6574 ac_cpp='$CPP $CPPFLAGS'
6575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6580 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6581 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6582 if test "${lt_cv_path_NM+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 if test -n "$NM"; then
6586 # Let the user override the test.
6589 lt_nm_to_check="${ac_tool_prefix}nm"
6590 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6591 lt_nm_to_check="$lt_nm_to_check nm"
6593 for lt_tmp_nm in $lt_nm_to_check; do
6594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6595 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6597 test -z "$ac_dir" && ac_dir=.
6598 tmp_nm="$ac_dir/$lt_tmp_nm"
6599 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6600 # Check to see if the nm accepts a BSD-compat flag.
6601 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6602 # nm: unknown option "B" ignored
6603 # Tru64's nm complains that /dev/null is an invalid object file
6604 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6605 */dev/null* | *'Invalid file or object type'*)
6606 lt_cv_path_NM="$tmp_nm -B"
6610 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6612 lt_cv_path_NM="$tmp_nm -p"
6616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6617 continue # so that we can try to find one that supports BSD flags
6626 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6629 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6630 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6635 { echo "$as_me:$LINENO: checking for GNU make" >&5
6636 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6637 if test "${llvm_cv_gnu_make_command+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 llvm_cv_gnu_make_command=''
6641 for a in "$MAKE" make gmake gnumake ; do
6642 if test -z "$a" ; then continue ; fi ;
6643 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6645 llvm_cv_gnu_make_command=$a ;
6650 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6651 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6652 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6656 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6657 echo "${ECHO_T}\"Not found\"" >&6; };
6661 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6664 if test "$LN_S" = "ln -s"; then
6665 { echo "$as_me:$LINENO: result: yes" >&5
6666 echo "${ECHO_T}yes" >&6; }
6668 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6669 echo "${ECHO_T}no, using $LN_S" >&6; }
6672 # Extract the first word of "cmp", so it can be a program name with args.
6673 set dummy cmp; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_CMP+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6704 if test -n "$CMP"; then
6705 { echo "$as_me:$LINENO: result: $CMP" >&5
6706 echo "${ECHO_T}$CMP" >&6; }
6708 { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6713 # Extract the first word of "cp", so it can be a program name with args.
6714 set dummy cp; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_path_CP+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6745 if test -n "$CP"; then
6746 { echo "$as_me:$LINENO: result: $CP" >&5
6747 echo "${ECHO_T}$CP" >&6; }
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6754 # Extract the first word of "date", so it can be a program name with args.
6755 set dummy date; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_DATE+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6785 DATE=$ac_cv_path_DATE
6786 if test -n "$DATE"; then
6787 { echo "$as_me:$LINENO: result: $DATE" >&5
6788 echo "${ECHO_T}$DATE" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6795 # Extract the first word of "find", so it can be a program name with args.
6796 set dummy find; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_path_FIND+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6826 FIND=$ac_cv_path_FIND
6827 if test -n "$FIND"; then
6828 { echo "$as_me:$LINENO: result: $FIND" >&5
6829 echo "${ECHO_T}$FIND" >&6; }
6831 { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6836 # Extract the first word of "grep", so it can be a program name with args.
6837 set dummy grep; ac_word=$2
6838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840 if test "${ac_cv_path_GREP+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6867 GREP=$ac_cv_path_GREP
6868 if test -n "$GREP"; then
6869 { echo "$as_me:$LINENO: result: $GREP" >&5
6870 echo "${ECHO_T}$GREP" >&6; }
6872 { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6877 # Extract the first word of "mkdir", so it can be a program name with args.
6878 set dummy mkdir; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_MKDIR+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6908 MKDIR=$ac_cv_path_MKDIR
6909 if test -n "$MKDIR"; then
6910 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6911 echo "${ECHO_T}$MKDIR" >&6; }
6913 { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6918 # Extract the first word of "mv", so it can be a program name with args.
6919 set dummy mv; ac_word=$2
6920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6922 if test "${ac_cv_path_MV+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6937 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6950 if test -n "$MV"; then
6951 { echo "$as_me:$LINENO: result: $MV" >&5
6952 echo "${ECHO_T}$MV" >&6; }
6954 { echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6; }
6959 if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_prog_RANLIB+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 if test -n "$RANLIB"; then
6968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 RANLIB=$ac_cv_prog_RANLIB
6988 if test -n "$RANLIB"; then
6989 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6990 echo "${ECHO_T}$RANLIB" >&6; }
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6998 if test -z "$ac_cv_prog_RANLIB"; then
6999 ac_ct_RANLIB=$RANLIB
7000 # Extract the first word of "ranlib", so it can be a program name with args.
7001 set dummy ranlib; ac_word=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 if test -n "$ac_ct_RANLIB"; then
7008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_prog_ac_ct_RANLIB="ranlib"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7028 if test -n "$ac_ct_RANLIB"; then
7029 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7030 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7032 { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7036 if test "x$ac_ct_RANLIB" = x; then
7039 case $cross_compiling:$ac_tool_warned in
7041 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7042 whose name does not start with the host triplet. If you think this
7043 configuration is useful to you, please write to autoconf@gnu.org." >&5
7044 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7045 whose name does not start with the host triplet. If you think this
7046 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7047 ac_tool_warned=yes ;;
7049 RANLIB=$ac_ct_RANLIB
7052 RANLIB="$ac_cv_prog_RANLIB"
7055 # Extract the first word of "rm", so it can be a program name with args.
7056 set dummy rm; ac_word=$2
7057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_RM+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7087 if test -n "$RM"; then
7088 { echo "$as_me:$LINENO: result: $RM" >&5
7089 echo "${ECHO_T}$RM" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7096 # Extract the first word of "sed", so it can be a program name with args.
7097 set dummy sed; ac_word=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_SED+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7128 if test -n "$SED"; then
7129 { echo "$as_me:$LINENO: result: $SED" >&5
7130 echo "${ECHO_T}$SED" >&6; }
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7137 # Extract the first word of "tar", so it can be a program name with args.
7138 set dummy tar; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_TAR+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7169 if test -n "$TAR"; then
7170 { echo "$as_me:$LINENO: result: $TAR" >&5
7171 echo "${ECHO_T}$TAR" >&6; }
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7178 # Extract the first word of "pwd", so it can be a program name with args.
7179 set dummy pwd; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_BINPWD+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7209 BINPWD=$ac_cv_path_BINPWD
7210 if test -n "$BINPWD"; then
7211 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7212 echo "${ECHO_T}$BINPWD" >&6; }
7214 { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7220 # Extract the first word of "Graphviz", so it can be a program name with args.
7221 set dummy Graphviz; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7251 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7252 if test -n "$GRAPHVIZ"; then
7253 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7254 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7256 { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7261 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7263 cat >>confdefs.h <<\_ACEOF
7264 #define HAVE_GRAPHVIZ 1
7267 if test "$llvm_cv_os_type" = "MingW" ; then
7268 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7271 cat >>confdefs.h <<_ACEOF
7272 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7276 # Extract the first word of "dot", so it can be a program name with args.
7277 set dummy dot; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_path_DOT+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7308 if test -n "$DOT"; then
7309 { echo "$as_me:$LINENO: result: $DOT" >&5
7310 echo "${ECHO_T}$DOT" >&6; }
7312 { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7317 if test "$DOT" != "echo dot" ; then
7319 cat >>confdefs.h <<\_ACEOF
7323 if test "$llvm_cv_os_type" = "MingW" ; then
7324 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7327 cat >>confdefs.h <<_ACEOF
7328 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7332 # Extract the first word of "fdp", so it can be a program name with args.
7333 set dummy fdp; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_FDP+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7364 if test -n "$FDP"; then
7365 { echo "$as_me:$LINENO: result: $FDP" >&5
7366 echo "${ECHO_T}$FDP" >&6; }
7368 { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7373 if test "$FDP" != "echo fdp" ; then
7375 cat >>confdefs.h <<\_ACEOF
7379 if test "$llvm_cv_os_type" = "MingW" ; then
7380 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7383 cat >>confdefs.h <<_ACEOF
7384 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7388 # Extract the first word of "neato", so it can be a program name with args.
7389 set dummy neato; ac_word=$2
7390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392 if test "${ac_cv_path_NEATO+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7419 NEATO=$ac_cv_path_NEATO
7420 if test -n "$NEATO"; then
7421 { echo "$as_me:$LINENO: result: $NEATO" >&5
7422 echo "${ECHO_T}$NEATO" >&6; }
7424 { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7429 if test "$NEATO" != "echo neato" ; then
7431 cat >>confdefs.h <<\_ACEOF
7432 #define HAVE_NEATO 1
7435 if test "$llvm_cv_os_type" = "MingW" ; then
7436 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7439 cat >>confdefs.h <<_ACEOF
7440 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7444 # Extract the first word of "twopi", so it can be a program name with args.
7445 set dummy twopi; ac_word=$2
7446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448 if test "${ac_cv_path_TWOPI+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7475 TWOPI=$ac_cv_path_TWOPI
7476 if test -n "$TWOPI"; then
7477 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7478 echo "${ECHO_T}$TWOPI" >&6; }
7480 { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7485 if test "$TWOPI" != "echo twopi" ; then
7487 cat >>confdefs.h <<\_ACEOF
7488 #define HAVE_TWOPI 1
7491 if test "$llvm_cv_os_type" = "MingW" ; then
7492 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7495 cat >>confdefs.h <<_ACEOF
7496 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7500 # Extract the first word of "circo", so it can be a program name with args.
7501 set dummy circo; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_path_CIRCO+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7531 CIRCO=$ac_cv_path_CIRCO
7532 if test -n "$CIRCO"; then
7533 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7534 echo "${ECHO_T}$CIRCO" >&6; }
7536 { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7541 if test "$CIRCO" != "echo circo" ; then
7543 cat >>confdefs.h <<\_ACEOF
7544 #define HAVE_CIRCO 1
7547 if test "$llvm_cv_os_type" = "MingW" ; then
7548 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7551 cat >>confdefs.h <<_ACEOF
7552 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7556 for ac_prog in gv gsview32
7558 # Extract the first word of "$ac_prog", so it can be a program name with args.
7559 set dummy $ac_prog; ac_word=$2
7560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562 if test "${ac_cv_path_GV+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 if test -n "$GV"; then
7590 { echo "$as_me:$LINENO: result: $GV" >&5
7591 echo "${ECHO_T}$GV" >&6; }
7593 { echo "$as_me:$LINENO: result: no" >&5
7594 echo "${ECHO_T}no" >&6; }
7598 test -n "$GV" && break
7600 test -n "$GV" || GV="echo gv"
7602 if test "$GV" != "echo gv" ; then
7604 cat >>confdefs.h <<\_ACEOF
7608 if test "$llvm_cv_os_type" = "MingW" ; then
7609 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7612 cat >>confdefs.h <<_ACEOF
7613 #define LLVM_PATH_GV "$GV${EXEEXT}"
7617 # Extract the first word of "dotty", so it can be a program name with args.
7618 set dummy dotty; ac_word=$2
7619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621 if test "${ac_cv_path_DOTTY+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7636 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7648 DOTTY=$ac_cv_path_DOTTY
7649 if test -n "$DOTTY"; then
7650 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7651 echo "${ECHO_T}$DOTTY" >&6; }
7653 { echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6; }
7658 if test "$DOTTY" != "echo dotty" ; then
7660 cat >>confdefs.h <<\_ACEOF
7661 #define HAVE_DOTTY 1
7664 if test "$llvm_cv_os_type" = "MingW" ; then
7665 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7668 cat >>confdefs.h <<_ACEOF
7669 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7675 # Extract the first word of "perl", so it can be a program name with args.
7676 set dummy perl; ac_word=$2
7677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679 if test "${ac_cv_path_PERL+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7694 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7706 PERL=$ac_cv_path_PERL
7707 if test -n "$PERL"; then
7708 { echo "$as_me:$LINENO: result: $PERL" >&5
7709 echo "${ECHO_T}$PERL" >&6; }
7711 { echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6; }
7716 if test "$PERL" != "none"; then
7717 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7718 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7719 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7720 { echo "$as_me:$LINENO: result: yes" >&5
7721 echo "${ECHO_T}yes" >&6; }
7724 { echo "$as_me:$LINENO: result: not found" >&5
7725 echo "${ECHO_T}not found" >&6; }
7730 if test x"$PERL" = xnone; then
7733 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7734 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7735 { (exit 1); exit 1; }; }
7741 # Find a good install program. We prefer a C program (faster),
7742 # so one script is as good as another. But avoid the broken or
7743 # incompatible versions:
7744 # SysV /etc/install, /usr/sbin/install
7745 # SunOS /usr/etc/install
7746 # IRIX /sbin/install
7748 # AmigaOS /C/install, which installs bootblocks on floppy discs
7749 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7750 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7751 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7752 # OS/2's system install, which has a completely different semantic
7753 # ./install, which can be erroneously created by make from ./install.sh.
7754 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7755 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7756 if test -z "$INSTALL"; then
7757 if test "${ac_cv_path_install+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir=.
7765 # Account for people who put trailing slashes in PATH elements.
7767 ./ | .// | /cC/* | \
7768 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7769 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7772 # OSF1 and SCO ODT 3.0 have their own names for install.
7773 # Don't use installbsd from OSF since it installs stuff as root
7775 for ac_prog in ginstall scoinst install; do
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7778 if test $ac_prog = install &&
7779 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7780 # AIX install. It has an incompatible calling convention.
7782 elif test $ac_prog = install &&
7783 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7784 # program-specific install script used by HP pwplus--don't use.
7787 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7800 if test "${ac_cv_path_install+set}" = set; then
7801 INSTALL=$ac_cv_path_install
7803 # As a last resort, use the slow shell script. Don't cache a
7804 # value for INSTALL within a source directory, because that will
7805 # break other packages using the cache if that directory is
7806 # removed, or if the value is a relative name.
7807 INSTALL=$ac_install_sh
7810 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7811 echo "${ECHO_T}$INSTALL" >&6; }
7813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7814 # It thinks the first close brace ends the variable substitution.
7815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7822 # Extract the first word of "bzip2", so it can be a program name with args.
7823 set dummy bzip2; ac_word=$2
7824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7826 if test "${ac_cv_path_BZIP2+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 BZIP2=$ac_cv_path_BZIP2
7853 if test -n "$BZIP2"; then
7854 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7855 echo "${ECHO_T}$BZIP2" >&6; }
7857 { echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6; }
7862 # Extract the first word of "doxygen", so it can be a program name with args.
7863 set dummy doxygen; ac_word=$2
7864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7866 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 DOXYGEN=$ac_cv_path_DOXYGEN
7893 if test -n "$DOXYGEN"; then
7894 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7895 echo "${ECHO_T}$DOXYGEN" >&6; }
7897 { echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6; }
7902 # Extract the first word of "groff", so it can be a program name with args.
7903 set dummy groff; ac_word=$2
7904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7906 if test "${ac_cv_path_GROFF+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7921 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 GROFF=$ac_cv_path_GROFF
7933 if test -n "$GROFF"; then
7934 { echo "$as_me:$LINENO: result: $GROFF" >&5
7935 echo "${ECHO_T}$GROFF" >&6; }
7937 { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7942 # Extract the first word of "gzip", so it can be a program name with args.
7943 set dummy gzip; ac_word=$2
7944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7946 if test "${ac_cv_path_GZIP+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7961 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 GZIP=$ac_cv_path_GZIP
7973 if test -n "$GZIP"; then
7974 { echo "$as_me:$LINENO: result: $GZIP" >&5
7975 echo "${ECHO_T}$GZIP" >&6; }
7977 { echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6; }
7982 # Extract the first word of "pod2html", so it can be a program name with args.
7983 set dummy pod2html; ac_word=$2
7984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7986 if test "${ac_cv_path_POD2HTML+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 POD2HTML=$ac_cv_path_POD2HTML
8013 if test -n "$POD2HTML"; then
8014 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8015 echo "${ECHO_T}$POD2HTML" >&6; }
8017 { echo "$as_me:$LINENO: result: no" >&5
8018 echo "${ECHO_T}no" >&6; }
8022 # Extract the first word of "pod2man", so it can be a program name with args.
8023 set dummy pod2man; ac_word=$2
8024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8026 if test "${ac_cv_path_POD2MAN+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8041 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 POD2MAN=$ac_cv_path_POD2MAN
8053 if test -n "$POD2MAN"; then
8054 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8055 echo "${ECHO_T}$POD2MAN" >&6; }
8057 { echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6; }
8062 # Extract the first word of "runtest", so it can be a program name with args.
8063 set dummy runtest; ac_word=$2
8064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8066 if test "${ac_cv_path_RUNTEST+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 test -z "$as_dir" && as_dir=.
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8081 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 RUNTEST=$ac_cv_path_RUNTEST
8093 if test -n "$RUNTEST"; then
8094 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8095 echo "${ECHO_T}$RUNTEST" >&6; }
8097 { echo "$as_me:$LINENO: result: no" >&5
8098 echo "${ECHO_T}no" >&6; }
8104 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8105 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8107 # Check whether --with-tclinclude was given.
8108 if test "${with_tclinclude+set}" = set; then
8109 withval=$with_tclinclude; with_tclinclude=${withval}
8114 if test "${ac_cv_path_tclsh+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 if test x"${with_tclinclude}" != x ; then
8119 if test -f ${with_tclinclude}/tclsh ; then
8120 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8121 elif test -f ${with_tclinclude}/src/tclsh ; then
8122 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8124 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8125 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8126 { (exit 1); exit 1; }; }
8130 if test x"${ac_cv_path_tclsh}" = x ; then
8131 { echo "$as_me:$LINENO: result: none" >&5
8132 echo "${ECHO_T}none" >&6; }
8133 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
8135 # Extract the first word of "$ac_prog", so it can be a program name with args.
8136 set dummy $ac_prog; ac_word=$2
8137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8139 if test "${ac_cv_path_TCLSH+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8154 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 TCLSH=$ac_cv_path_TCLSH
8166 if test -n "$TCLSH"; then
8167 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8168 echo "${ECHO_T}$TCLSH" >&6; }
8170 { echo "$as_me:$LINENO: result: no" >&5
8171 echo "${ECHO_T}no" >&6; }
8175 test -n "$TCLSH" && break
8178 if test x"${TCLSH}" = x ; then
8179 ac_cv_path_tclsh='';
8181 ac_cv_path_tclsh="${TCLSH}";
8184 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8185 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8186 TCLSH="${ac_cv_path_tclsh}"
8192 # Extract the first word of "zip", so it can be a program name with args.
8193 set dummy zip; ac_word=$2
8194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8196 if test "${ac_cv_path_ZIP+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8211 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 if test -n "$ZIP"; then
8224 { echo "$as_me:$LINENO: result: $ZIP" >&5
8225 echo "${ECHO_T}$ZIP" >&6; }
8227 { echo "$as_me:$LINENO: result: no" >&5
8228 echo "${ECHO_T}no" >&6; }
8232 for ac_prog in ocamlc
8234 # Extract the first word of "$ac_prog", so it can be a program name with args.
8235 set dummy $ac_prog; ac_word=$2
8236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8238 if test "${ac_cv_path_OCAMLC+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8253 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 OCAMLC=$ac_cv_path_OCAMLC
8265 if test -n "$OCAMLC"; then
8266 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8267 echo "${ECHO_T}$OCAMLC" >&6; }
8269 { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8274 test -n "$OCAMLC" && break
8277 for ac_prog in ocamlopt
8279 # Extract the first word of "$ac_prog", so it can be a program name with args.
8280 set dummy $ac_prog; ac_word=$2
8281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8283 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8298 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 OCAMLOPT=$ac_cv_path_OCAMLOPT
8310 if test -n "$OCAMLOPT"; then
8311 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8312 echo "${ECHO_T}$OCAMLOPT" >&6; }
8314 { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8319 test -n "$OCAMLOPT" && break
8322 for ac_prog in ocamldep
8324 # Extract the first word of "$ac_prog", so it can be a program name with args.
8325 set dummy $ac_prog; ac_word=$2
8326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8328 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8343 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 OCAMLDEP=$ac_cv_path_OCAMLDEP
8355 if test -n "$OCAMLDEP"; then
8356 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8357 echo "${ECHO_T}$OCAMLDEP" >&6; }
8359 { echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6; }
8364 test -n "$OCAMLDEP" && break
8367 for ac_prog in ocamldoc
8369 # Extract the first word of "$ac_prog", so it can be a program name with args.
8370 set dummy $ac_prog; ac_word=$2
8371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8373 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8388 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 OCAMLDOC=$ac_cv_path_OCAMLDOC
8400 if test -n "$OCAMLDOC"; then
8401 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8402 echo "${ECHO_T}$OCAMLDOC" >&6; }
8404 { echo "$as_me:$LINENO: result: no" >&5
8405 echo "${ECHO_T}no" >&6; }
8409 test -n "$OCAMLDOC" && break
8412 for ac_prog in gas as
8414 # Extract the first word of "$ac_prog", so it can be a program name with args.
8415 set dummy $ac_prog; ac_word=$2
8416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418 if test "${ac_cv_path_GAS+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8433 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 if test -n "$GAS"; then
8446 { echo "$as_me:$LINENO: result: $GAS" >&5
8447 echo "${ECHO_T}$GAS" >&6; }
8449 { echo "$as_me:$LINENO: result: no" >&5
8450 echo "${ECHO_T}no" >&6; }
8454 test -n "$GAS" && break
8458 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8459 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8460 if test "${llvm_cv_link_use_r+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 ac_cpp='$CPP $CPPFLAGS'
8465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8470 CFLAGS="$CFLAGS -Wl,-R."
8471 cat >conftest.$ac_ext <<_ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8481 int main() { return 0; }
8486 rm -f conftest.$ac_objext conftest$ac_exeext
8487 if { (ac_try="$ac_link"
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_link") 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest$ac_exeext'
8511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_try") 2>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 llvm_cv_link_use_r=yes
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8525 llvm_cv_link_use_r=no
8528 rm -f core conftest.err conftest.$ac_objext \
8529 conftest$ac_exeext conftest.$ac_ext
8532 ac_cpp='$CPP $CPPFLAGS'
8533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8539 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8540 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8541 if test "$llvm_cv_link_use_r" = yes ; then
8543 cat >>confdefs.h <<\_ACEOF
8544 #define HAVE_LINK_R 1
8550 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8551 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8552 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 ac_cpp='$CPP $CPPFLAGS'
8557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8562 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8573 int main() { return 0; }
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_link") 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593 { (case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_try") 2>&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest$ac_exeext'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_try") 2>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 llvm_cv_link_use_export_dynamic=yes
8614 echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8617 llvm_cv_link_use_export_dynamic=no
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8624 ac_cpp='$CPP $CPPFLAGS'
8625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8631 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8632 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8633 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8635 cat >>confdefs.h <<\_ACEOF
8636 #define HAVE_LINK_EXPORT_DYNAMIC 1
8644 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8645 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8646 if test "${ac_cv_c_const+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8659 /* FIXME: Include the comments suggested by Paul. */
8661 /* Ultrix mips cc rejects this. */
8662 typedef int charset[2];
8664 /* SunOS 4.1.1 cc rejects this. */
8665 char const *const *ccp;
8667 /* NEC SVR4.0.2 mips cc rejects this. */
8668 struct point {int x, y;};
8669 static struct point const zero = {0,0};
8670 /* AIX XL C 1.02.0.0 rejects this.
8671 It does not let you subtract one const X* pointer from another in
8672 an arm of an if-expression whose if-part is not a constant
8674 const char *g = "string";
8675 ccp = &g + (g ? g-g : 0);
8676 /* HPUX 7.0 cc rejects these. */
8679 ccp = (char const *const *) p;
8680 { /* SCO 3.2v4 cc rejects this. */
8682 char const *s = 0 ? (char *) 0 : (char const *) 0;
8687 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8689 const int *foo = &x[0];
8692 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8693 typedef const int *iptr;
8697 { /* AIX XL C 1.02.0.0 rejects this saying
8698 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8699 struct s { int j; const int *ap[3]; };
8700 struct s *b; b->j = 5;
8702 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8706 return !x[0] && !zero.x;
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_compile") 2>conftest.er1
8722 grep -v '^ *+' conftest.er1 >conftest.err
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8728 { (case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_try") 2>&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try='test -s conftest.$ac_objext'
8738 { (case "(($ac_try" in
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_try") 2>&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8758 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8759 if test $ac_cv_c_const = no; then
8761 cat >>confdefs.h <<\_ACEOF
8773 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8774 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8775 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8776 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 #include <sys/types.h>
8798 rm -f conftest.$ac_objext
8799 if { (ac_try="$ac_compile"
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_compile") 2>conftest.er1
8807 grep -v '^ *+' conftest.er1 >conftest.err
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8813 { (case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest.$ac_objext'
8823 { (case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_try") 2>&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 eval "$as_ac_Header=yes"
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 eval "$as_ac_Header=no"
8840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 ac_res=`eval echo '${'$as_ac_Header'}'`
8843 { echo "$as_me:$LINENO: result: $ac_res" >&5
8844 echo "${ECHO_T}$ac_res" >&6; }
8845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8846 cat >>confdefs.h <<_ACEOF
8847 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8850 ac_header_dirent=$ac_hdr; break
8854 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8855 if test $ac_header_dirent = dirent.h; then
8856 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8857 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8858 if test "${ac_cv_search_opendir+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 ac_func_search_save_LIBS=$LIBS
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8869 /* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8884 for ac_lib in '' dir; do
8885 if test -z "$ac_lib"; then
8886 ac_res="none required"
8889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (ac_try="$ac_link"
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_link") 2>conftest.er1
8900 grep -v '^ *+' conftest.er1 >conftest.err
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8906 { (case "(($ac_try" in
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_try") 2>&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_try") 2>&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 ac_cv_search_opendir=$ac_res
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8933 rm -f core conftest.err conftest.$ac_objext \
8935 if test "${ac_cv_search_opendir+set}" = set; then
8939 if test "${ac_cv_search_opendir+set}" = set; then
8942 ac_cv_search_opendir=no
8945 LIBS=$ac_func_search_save_LIBS
8947 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8948 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8949 ac_res=$ac_cv_search_opendir
8950 if test "$ac_res" != no; then
8951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8956 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8957 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8958 if test "${ac_cv_search_opendir+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_func_search_save_LIBS=$LIBS
8962 cat >conftest.$ac_ext <<_ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8969 /* Override any GCC internal prototype to avoid an error.
8970 Use char because int might match the return type of a GCC
8971 builtin and then its argument prototype would still apply. */
8984 for ac_lib in '' x; do
8985 if test -z "$ac_lib"; then
8986 ac_res="none required"
8989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (ac_try="$ac_link"
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_link") 2>conftest.er1
9000 grep -v '^ *+' conftest.er1 >conftest.err
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9006 { (case "(($ac_try" in
9007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008 *) ac_try_echo=$ac_try;;
9010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011 (eval "$ac_try") 2>&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try='test -s conftest$ac_exeext'
9016 { (case "(($ac_try" in
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_try") 2>&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_cv_search_opendir=$ac_res
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9033 rm -f core conftest.err conftest.$ac_objext \
9035 if test "${ac_cv_search_opendir+set}" = set; then
9039 if test "${ac_cv_search_opendir+set}" = set; then
9042 ac_cv_search_opendir=no
9045 LIBS=$ac_func_search_save_LIBS
9047 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9048 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9049 ac_res=$ac_cv_search_opendir
9050 if test "$ac_res" != no; then
9051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9058 for ac_header in dlfcn.h
9060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 ac_res=`eval echo '${'$as_ac_Header'}'`
9068 { echo "$as_me:$LINENO: result: $ac_res" >&5
9069 echo "${ECHO_T}$ac_res" >&6; }
9071 # Is the header compilable?
9072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9074 cat >conftest.$ac_ext <<_ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080 $ac_includes_default
9081 #include <$ac_header>
9083 rm -f conftest.$ac_objext
9084 if { (ac_try="$ac_compile"
9086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087 *) ac_try_echo=$ac_try;;
9089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9090 (eval "$ac_compile") 2>conftest.er1
9092 grep -v '^ *+' conftest.er1 >conftest.err
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9098 { (case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_try") 2>&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_header_compiler=yes
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 ac_header_compiler=no
9125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9127 echo "${ECHO_T}$ac_header_compiler" >&6; }
9129 # Is the header present?
9130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9132 cat >conftest.$ac_ext <<_ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9138 #include <$ac_header>
9140 if { (ac_try="$ac_cpp conftest.$ac_ext"
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9148 grep -v '^ *+' conftest.er1 >conftest.err
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } >/dev/null; then
9153 if test -s conftest.err; then
9154 ac_cpp_err=$ac_c_preproc_warn_flag
9155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9162 if test -z "$ac_cpp_err"; then
9163 ac_header_preproc=yes
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 ac_header_preproc=no
9171 rm -f conftest.err conftest.$ac_ext
9172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9173 echo "${ECHO_T}$ac_header_preproc" >&6; }
9175 # So? What about this header?
9176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9182 ac_header_preproc=yes
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9198 ## ----------------------------------- ##
9199 ## Report this to llvmbugs@cs.uiuc.edu ##
9200 ## ----------------------------------- ##
9202 ) | sed "s/^/$as_me: WARNING: /" >&2
9205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 eval "$as_ac_Header=\$ac_header_preproc"
9212 ac_res=`eval echo '${'$as_ac_Header'}'`
9213 { echo "$as_me:$LINENO: result: $ac_res" >&5
9214 echo "${ECHO_T}$ac_res" >&6; }
9217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9218 cat >>confdefs.h <<_ACEOF
9219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9226 # Check whether --enable-ltdl-install was given.
9227 if test "${enable_ltdl_install+set}" = set; then
9228 enableval=$enable_ltdl_install;
9234 if test x"${enable_ltdl_install-no}" != xno; then
9236 INSTALL_LTDL_FALSE='#'
9238 INSTALL_LTDL_TRUE='#'
9244 if test x"${enable_ltdl_convenience-no}" != xno; then
9245 CONVENIENCE_LTDL_TRUE=
9246 CONVENIENCE_LTDL_FALSE='#'
9248 CONVENIENCE_LTDL_TRUE='#'
9249 CONVENIENCE_LTDL_FALSE=
9253 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9254 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9256 libname_spec='lib$name'
9264 shlibpath_overrides_runpath=unknown
9266 dynamic_linker="$host_os ld.so"
9267 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9268 if test "$GCC" = yes; then
9269 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9270 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9271 # if the path contains ";" then we assume it to be the separator
9272 # otherwise default to the standard path separator (i.e. ":") - it is
9273 # assumed that no part of a normal pathname contains ";" but that should
9274 # okay in the real world where ";" in dirpaths is itself problematic.
9275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9280 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9282 need_lib_prefix=unknown
9283 hardcode_into_libs=no
9285 # when you set need_version to no, make sure it does not cause -set_version
9286 # flags to be left without arguments
9287 need_version=unknown
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9293 shlibpath_var=LIBPATH
9295 # AIX 3 has no versioning support, so we append a major version to the name.
9296 soname_spec='${libname}${release}${shared_ext}$major'
9303 hardcode_into_libs=yes
9304 if test "$host_cpu" = ia64; then
9305 # AIX 5 supports IA64
9306 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9307 shlibpath_var=LD_LIBRARY_PATH
9309 # With GCC up to 2.95.x, collect2 would create an import file
9310 # for dependence libraries. The import file would start with
9311 # the line `#! .'. This would cause the generated library to
9312 # depend on `.', always an invalid library. This was fixed in
9313 # development snapshots of GCC prior to 3.0.
9315 aix4 | aix4.[01] | aix4.[01].*)
9316 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9318 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9325 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9326 # soname into executable. Probably we can add versioning support to
9327 # collect2, so additional links can be useful in future.
9328 if test "$aix_use_runtimelinking" = yes; then
9329 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9330 # instead of lib<name>.a to let people know that these are not
9331 # typical AIX shared libraries.
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334 # We preserve .a as extension for shared libraries through AIX4.2
9335 # and later when we are not doing run time linking.
9336 library_names_spec='${libname}${release}.a $libname.a'
9337 soname_spec='${libname}${release}${shared_ext}$major'
9339 shlibpath_var=LIBPATH
9344 library_names_spec='$libname.ixlibrary $libname.a'
9345 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9346 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'
9350 library_names_spec='${libname}${shared_ext}'
9351 dynamic_linker="$host_os ld.so"
9352 shlibpath_var=LIBRARY_PATH
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9361 shlibpath_var=LD_LIBRARY_PATH
9362 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9363 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9364 # the default ld.so.conf also contains /usr/contrib/lib and
9365 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9366 # libtool to hard-code these into programs
9369 cygwin* | mingw* | pw32*)
9370 version_type=windows
9375 case $GCC,$host_os in
9376 yes,cygwin* | yes,mingw* | yes,pw32*)
9377 library_names_spec='$libname.dll.a'
9378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9379 postinstall_cmds='base_file=`basename \${file}`~
9380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9381 dldir=$destdir/`dirname \$dlpath`~
9382 test -d \$dldir || mkdir -p \$dldir~
9383 $install_prog $dir/$dlname \$dldir/$dlname~
9384 chmod a+x \$dldir/$dlname'
9385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9386 dlpath=$dir/\$dldll~
9388 shlibpath_overrides_runpath=yes
9392 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9393 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9394 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9397 # MinGW DLLs use traditional 'lib' prefix
9398 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9399 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9400 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9401 # It is most probably a Windows format PATH printed by
9402 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9403 # path with ; separators, and with drive letters. We can handle the
9404 # drive letters (cygwin fileutils understands them), so leave them,
9405 # especially as we might pass files found there to a mingw objdump,
9406 # which wouldn't understand a cygwinified path. Ahh.
9407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9413 # pw32 DLLs use 'pw' prefix rather than 'lib'
9414 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9420 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9423 dynamic_linker='Win32 ld.exe'
9424 # FIXME: first we should search . and the directory the executable is in
9428 darwin* | rhapsody*)
9429 dynamic_linker="$host_os dyld"
9433 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9434 soname_spec='${libname}${release}${major}$shared_ext'
9435 shlibpath_overrides_runpath=yes
9436 shlibpath_var=DYLD_LIBRARY_PATH
9437 shrext_cmds='.dylib'
9438 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9439 if test "$GCC" = yes; then
9440 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"`
9442 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9444 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 shlibpath_var=LD_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 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=no
9468 hardcode_into_libs=yes
9469 dynamic_linker='GNU ld.so'
9472 freebsd* | dragonfly*)
9473 # DragonFly does not have aout. When/if they implement a new
9474 # versioning mechanism, adjust this.
9475 if test -x /usr/bin/objformat; then
9476 objformat=`/usr/bin/objformat`
9479 freebsd[123]*) objformat=aout ;;
9483 version_type=freebsd-$objformat
9484 case $version_type in
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9495 shlibpath_var=LD_LIBRARY_PATH
9498 shlibpath_overrides_runpath=yes
9500 freebsd3.[01]* | freebsdelf3.[01]*)
9501 shlibpath_overrides_runpath=yes
9502 hardcode_into_libs=yes
9504 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9505 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9506 shlibpath_overrides_runpath=no
9507 hardcode_into_libs=yes
9509 freebsd*) # from 4.6 on
9510 shlibpath_overrides_runpath=yes
9511 hardcode_into_libs=yes
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9521 soname_spec='${libname}${release}${shared_ext}$major'
9522 shlibpath_var=LD_LIBRARY_PATH
9523 hardcode_into_libs=yes
9526 hpux9* | hpux10* | hpux11*)
9527 # Give a soname corresponding to the major version so that dld.sl refuses to
9528 # link against other versions.
9535 hardcode_into_libs=yes
9536 dynamic_linker="$host_os dld.so"
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 if test "X$HPUX_IA64_MODE" = X32; then
9542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9550 hardcode_into_libs=yes
9551 dynamic_linker="$host_os dld.sl"
9552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9561 dynamic_linker="$host_os dld.sl"
9562 shlibpath_var=SHLIB_PATH
9563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9569 postinstall_cmds='chmod 555 $lib'
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath=no
9581 hardcode_into_libs=yes
9584 irix5* | irix6* | nonstopux*)
9586 nonstopux*) version_type=nonstopux ;;
9588 if test "$lt_cv_prog_gnu_ld" = yes; then
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9599 irix5* | nonstopux*)
9603 case $LD in # libtool.m4 will add one of these switches to LD
9604 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9605 libsuff= shlibsuff= libmagic=32-bit;;
9606 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9607 libsuff=32 shlibsuff=N32 libmagic=N32;;
9608 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9609 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9610 *) libsuff= shlibsuff= libmagic=never-match;;
9614 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9615 shlibpath_overrides_runpath=no
9616 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9617 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9618 hardcode_into_libs=yes
9621 # No shared lib support for Linux oldld, aout, or coff.
9622 linux*oldld* | linux*aout* | linux*coff*)
9626 # This must be Linux ELF.
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=no
9636 # This implies no fast_install, which is unacceptable.
9637 # Some rework will be needed to allow for fast_install
9638 # before this can be enabled.
9639 hardcode_into_libs=yes
9641 # Append ld.so.conf contents to the search path
9642 if test -f /etc/ld.so.conf; then
9643 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' ' '`
9644 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9647 # We used to test for /lib/ld.so.1 and disable shared libraries on
9648 # powerpc, because MkLinux only supported shared libraries with the
9649 # GNU dynamic linker. Since this was broken with cross compilers,
9650 # most powerpc-linux boxes support dynamic linking these days and
9651 # people can always --disable-shared, the test was removed, and we
9652 # assume the GNU/Linux dynamic linker is in use.
9653 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=no
9664 hardcode_into_libs=yes
9665 dynamic_linker='GNU ld.so'
9672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9675 dynamic_linker='NetBSD (a.out) ld.so'
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 dynamic_linker='NetBSD ld.elf_so'
9681 shlibpath_var=LD_LIBRARY_PATH
9682 shlibpath_overrides_runpath=yes
9683 hardcode_into_libs=yes
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 shlibpath_overrides_runpath=yes
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 shlibpath_overrides_runpath=yes
9705 sys_lib_dlsearch_path_spec="/usr/lib"
9707 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9709 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9710 *) need_version=no ;;
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9714 shlibpath_var=LD_LIBRARY_PATH
9715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9717 openbsd2.[89] | openbsd2.[89].*)
9718 shlibpath_overrides_runpath=no
9721 shlibpath_overrides_runpath=yes
9725 shlibpath_overrides_runpath=yes
9730 libname_spec='$name'
9733 library_names_spec='$libname${shared_ext} $libname.a'
9734 dynamic_linker='OS/2 ld.exe'
9735 shlibpath_var=LIBPATH
9738 osf3* | osf4* | osf5*)
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744 shlibpath_var=LD_LIBRARY_PATH
9745 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9746 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 shlibpath_var=LD_LIBRARY_PATH
9756 shlibpath_overrides_runpath=yes
9757 hardcode_into_libs=yes
9758 # ldd complains unless libraries are executable
9759 postinstall_cmds='chmod +x $lib'
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9765 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=yes
9768 if test "$with_gnu_ld" = yes; then
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777 soname_spec='${libname}${release}${shared_ext}$major'
9778 shlibpath_var=LD_LIBRARY_PATH
9779 case $host_vendor in
9781 shlibpath_overrides_runpath=no
9783 export_dynamic_flag_spec='${wl}-Blargedynsym'
9784 runpath_var=LD_RUN_PATH
9792 shlibpath_overrides_runpath=no
9793 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9799 if test -d /usr/nec ;then
9801 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9802 soname_spec='$libname${shared_ext}.$major'
9803 shlibpath_var=LD_LIBRARY_PATH
9807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9808 version_type=freebsd-elf
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 shlibpath_var=LD_LIBRARY_PATH
9814 hardcode_into_libs=yes
9815 if test "$with_gnu_ld" = yes; then
9816 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9817 shlibpath_overrides_runpath=no
9819 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9820 shlibpath_overrides_runpath=yes
9823 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9827 sys_lib_dlsearch_path_spec='/usr/lib'
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 shlibpath_var=LD_LIBRARY_PATH
9841 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9842 echo "${ECHO_T}$dynamic_linker" >&6; }
9843 test "$dynamic_linker" = no && can_build_shared=no
9845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9846 if test "$GCC" = yes; then
9847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9851 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9852 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9853 if test "${libltdl_cv_shlibext+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 eval libltdl_cv_shlibext=$shrext_cmds
9861 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9862 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9863 if test -n "$libltdl_cv_shlibext"; then
9865 cat >>confdefs.h <<_ACEOF
9866 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9872 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9873 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9874 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 libltdl_cv_shlibpath_var="$shlibpath_var"
9879 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9880 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9881 if test -n "$libltdl_cv_shlibpath_var"; then
9883 cat >>confdefs.h <<_ACEOF
9884 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9890 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9891 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9892 if test "${libltdl_cv_sys_search_path+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9897 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9898 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9899 if test -n "$libltdl_cv_sys_search_path"; then
9901 for dir in $libltdl_cv_sys_search_path; do
9902 if test -z "$sys_search_path"; then
9903 sys_search_path="$dir"
9905 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9909 cat >>confdefs.h <<_ACEOF
9910 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9915 { echo "$as_me:$LINENO: checking for objdir" >&5
9916 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9917 if test "${libltdl_cv_objdir+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 libltdl_cv_objdir="$objdir"
9921 if test -n "$objdir"; then
9924 rm -f .libs 2>/dev/null
9925 mkdir .libs 2>/dev/null
9926 if test -d .libs; then
9927 libltdl_cv_objdir=.libs
9929 # MS-DOS does not allow filenames that begin with a dot.
9930 libltdl_cv_objdir=_libs
9932 rmdir .libs 2>/dev/null
9936 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9937 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9939 cat >>confdefs.h <<_ACEOF
9940 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9948 # Check for command to grab the raw symbol name followed by C symbol from nm.
9949 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9950 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9951 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 # These are sane defaults that work on at least a few old systems.
9956 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9958 # Character class describing NM global symbol codes.
9959 symcode='[BCDEGRST]'
9961 # Regexp to match symbols that can be accessed directly from C.
9962 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9964 # Transform an extracted symbol line into a proper C declaration
9965 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9967 # Transform an extracted symbol line into symbol name and symbol address
9968 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'"
9970 # Define system-specific variables.
9975 cygwin* | mingw* | pw32*)
9976 symcode='[ABCDGISTW]'
9978 hpux*) # Its linker distinguishes data from code symbols
9979 if test "$host_cpu" = ia64; then
9980 symcode='[ABCDEGRST]'
9982 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9983 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'"
9986 if test "$host_cpu" = ia64; then
9987 symcode='[ABCDGIRSTW]'
9988 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9989 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'"
9993 symcode='[BCDEGRST]'
9996 symcode='[BCDEGQRST]'
10007 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10015 # Handle CRLF in mingw tool chain
10019 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10023 # If we're using GNU nm, then use its standard symbol codes.
10024 case `$NM -V 2>&1` in
10025 *GNU* | *'with BFD'*)
10026 symcode='[ABCDGIRSTW]' ;;
10029 # Try without a prefix undercore, then with it.
10030 for ac_symprfx in "" "_"; do
10032 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10033 symxfrm="\\1 $ac_symprfx\\2 \\2"
10035 # Write the raw and C identifiers.
10036 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10038 # Check to see that the pipe works correctly.
10042 cat > conftest.$ac_ext <<EOF
10047 void nm_test_func(){}
10051 int main(){nm_test_var='a';nm_test_func();return(0);}
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; then
10059 # Now try to grab the symbols.
10061 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10062 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } && test -s "$nlist"; then
10066 # Try sorting and uniquifying the output.
10067 if sort "$nlist" | uniq > "$nlist"T; then
10068 mv -f "$nlist"T "$nlist"
10073 # Make sure that we snagged all the symbols we need.
10074 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10075 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10076 cat <<EOF > conftest.$ac_ext
10082 # Now generate the symbol file.
10083 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10085 cat <<EOF >> conftest.$ac_ext
10086 #if defined (__STDC__) && __STDC__
10087 # define lt_ptr_t void *
10089 # define lt_ptr_t char *
10093 /* The mapping between symbol names and symbols. */
10098 lt_preloaded_symbols[] =
10101 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10102 cat <<\EOF >> conftest.$ac_ext
10110 # Now try linking the two files.
10111 mv conftest.$ac_objext conftstm.$ac_objext
10112 lt_save_LIBS="$LIBS"
10113 lt_save_CFLAGS="$CFLAGS"
10114 LIBS="conftstm.$ac_objext"
10115 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10117 (eval $ac_link) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10123 LIBS="$lt_save_LIBS"
10124 CFLAGS="$lt_save_CFLAGS"
10126 echo "cannot find nm_test_func in $nlist" >&5
10129 echo "cannot find nm_test_var in $nlist" >&5
10132 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10135 echo "$progname: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10138 rm -f conftest* conftst*
10140 # Do not use the global_symbol_pipe unless it works.
10141 if test "$pipe_works" = yes; then
10144 lt_cv_sys_global_symbol_pipe=
10150 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10151 lt_cv_sys_global_symbol_to_cdecl=
10153 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10154 { echo "$as_me:$LINENO: result: failed" >&5
10155 echo "${ECHO_T}failed" >&6; }
10157 { echo "$as_me:$LINENO: result: ok" >&5
10158 echo "${ECHO_T}ok" >&6; }
10162 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10163 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10164 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10168 libltdl_cv_preloaded_symbols=yes
10170 libltdl_cv_preloaded_symbols=no
10174 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10175 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10176 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10178 cat >>confdefs.h <<\_ACEOF
10179 #define HAVE_PRELOADED_SYMBOLS 1
10187 ac_cpp='$CPP $CPPFLAGS'
10188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10193 { echo "$as_me:$LINENO: checking for shl_load" >&5
10194 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10195 if test "${ac_cv_func_shl_load+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 cat >conftest.$ac_ext <<_ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10206 #define shl_load innocuous_shl_load
10208 /* System header to define __stub macros and hopefully few prototypes,
10209 which can conflict with char shl_load (); below.
10210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211 <limits.h> exists even on freestanding compilers. */
10214 # include <limits.h>
10216 # include <assert.h>
10221 /* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10228 /* The GNU C library defines this for functions which it implements
10229 to always fail with ENOSYS. Some functions are actually named
10230 something starting with __ and the normal name is an alias. */
10231 #if defined __stub_shl_load || defined __stub___shl_load
10238 return shl_load ();
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258 { (case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_try") 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_try") 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_func_shl_load=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_cv_func_shl_load=no
10285 rm -f core conftest.err conftest.$ac_objext \
10286 conftest$ac_exeext conftest.$ac_ext
10288 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10289 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10290 if test $ac_cv_func_shl_load = yes; then
10292 cat >>confdefs.h <<\_ACEOF
10293 #define HAVE_SHL_LOAD 1
10297 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10298 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 ac_check_lib_save_LIBS=$LIBS
10304 cat >conftest.$ac_ext <<_ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10311 /* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
10321 return shl_load ();
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10341 { (case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_try") 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; } &&
10350 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 ac_cv_lib_dld_shl_load=yes
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 ac_cv_lib_dld_shl_load=no
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10370 LIBS=$ac_check_lib_save_LIBS
10372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10373 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10374 if test $ac_cv_lib_dld_shl_load = yes; then
10376 cat >>confdefs.h <<\_ACEOF
10377 #define HAVE_SHL_LOAD 1
10380 LIBADD_DL="$LIBADD_DL -ldld"
10382 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10383 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10384 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 ac_check_lib_save_LIBS=$LIBS
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_try") 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_cv_lib_dl_dlopen=yes
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_cv_lib_dl_dlopen=no
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LIBS=$ac_check_lib_save_LIBS
10457 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10458 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10459 if test $ac_cv_lib_dl_dlopen = yes; then
10461 cat >>confdefs.h <<\_ACEOF
10462 #define HAVE_LIBDL 1
10465 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10467 cat >conftest.$ac_ext <<_ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10474 # include <dlfcn.h>
10485 rm -f conftest.$ac_objext conftest$ac_exeext
10486 if { (ac_try="$ac_link"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_link") 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10500 { (case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_try") 2>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try='test -s conftest$ac_exeext'
10510 { (case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_try") 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10520 cat >>confdefs.h <<\_ACEOF
10521 #define HAVE_LIBDL 1
10523 libltdl_cv_func_dlopen="yes"
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10528 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10529 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10530 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-lsvld $LIBS"
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (ac_try="$ac_link"
10559 case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_link") 2>conftest.er1
10566 grep -v '^ *+' conftest.er1 >conftest.err
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
10571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10572 { (case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_try") 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_try") 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 ac_cv_lib_svld_dlopen=yes
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_cv_lib_svld_dlopen=no
10599 rm -f core conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10603 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10604 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10605 if test $ac_cv_lib_svld_dlopen = yes; then
10607 cat >>confdefs.h <<\_ACEOF
10608 #define HAVE_LIBDL 1
10611 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10613 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10614 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10615 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 ac_check_lib_save_LIBS=$LIBS
10620 cat >conftest.$ac_ext <<_ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10627 /* Override any GCC internal prototype to avoid an error.
10628 Use char because int might match the return type of a GCC
10629 builtin and then its argument prototype would still apply. */
10637 return dld_link ();
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (ac_try="$ac_link"
10644 case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_link") 2>conftest.er1
10651 grep -v '^ *+' conftest.er1 >conftest.err
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10657 { (case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_try") 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_try") 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_lib_dld_dld_link=yes
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 ac_cv_lib_dld_dld_link=no
10684 rm -f core conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
10686 LIBS=$ac_check_lib_save_LIBS
10688 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10689 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10690 if test $ac_cv_lib_dld_dld_link = yes; then
10692 cat >>confdefs.h <<\_ACEOF
10696 LIBADD_DL="$LIBADD_DL -ldld"
10698 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10699 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10700 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10711 #define _dyld_func_lookup innocuous__dyld_func_lookup
10713 /* System header to define __stub macros and hopefully few prototypes,
10714 which can conflict with char _dyld_func_lookup (); below.
10715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10716 <limits.h> exists even on freestanding compilers. */
10719 # include <limits.h>
10721 # include <assert.h>
10724 #undef _dyld_func_lookup
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10732 char _dyld_func_lookup ();
10733 /* The GNU C library defines this for functions which it implements
10734 to always fail with ENOSYS. Some functions are actually named
10735 something starting with __ and the normal name is an alias. */
10736 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10743 return _dyld_func_lookup ();
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_func__dyld_func_lookup=yes
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ac_cv_func__dyld_func_lookup=no
10790 rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10793 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10794 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10795 if test $ac_cv_func__dyld_func_lookup = yes; then
10797 cat >>confdefs.h <<\_ACEOF
10798 #define HAVE_DYLD 1
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10824 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10826 lt_save_LIBS="$LIBS"
10827 LIBS="$LIBS $LIBADD_DL"
10829 for ac_func in dlerror
10831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 cat >conftest.$ac_ext <<_ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10845 #define $ac_func innocuous_$ac_func
10847 /* System header to define __stub macros and hopefully few prototypes,
10848 which can conflict with char $ac_func (); below.
10849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10850 <limits.h> exists even on freestanding compilers. */
10853 # include <limits.h>
10855 # include <assert.h>
10860 /* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
10867 /* The GNU C library defines this for functions which it implements
10868 to always fail with ENOSYS. Some functions are actually named
10869 something starting with __ and the normal name is an alias. */
10870 #if defined __stub_$ac_func || defined __stub___$ac_func
10877 return $ac_func ();
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (ac_try="$ac_link"
10884 case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_link") 2>conftest.er1
10891 grep -v '^ *+' conftest.er1 >conftest.err
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
10896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; } &&
10906 { ac_try='test -s conftest$ac_exeext'
10907 { (case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_try") 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 eval "$as_ac_var=yes"
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 eval "$as_ac_var=no"
10924 rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10927 ac_res=`eval echo '${'$as_ac_var'}'`
10928 { echo "$as_me:$LINENO: result: $ac_res" >&5
10929 echo "${ECHO_T}$ac_res" >&6; }
10930 if test `eval echo '${'$as_ac_var'}'` = yes; then
10931 cat >>confdefs.h <<_ACEOF
10932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10938 LIBS="$lt_save_LIBS"
10941 ac_cpp='$CPP $CPPFLAGS'
10942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10948 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10949 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10950 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 ac_cv_sys_symbol_underscore=no
10954 cat > conftest.$ac_ext <<EOF
10955 void nm_test_func(){}
10956 int main(){nm_test_func;return 0;}
10958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10959 (eval $ac_compile) 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; then
10963 # Now try to grab the symbols.
10964 ac_nlist=conftest.nm
10965 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10966 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && test -s "$ac_nlist"; then
10970 # See whether the symbols have a leading underscore.
10971 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10972 ac_cv_sys_symbol_underscore=yes
10974 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10977 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10981 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10984 echo "configure: failed program was:" >&5
10990 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10991 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10994 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10995 if test x"$libltdl_cv_func_dlopen" = xyes ||
10996 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10997 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10998 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10999 if test "${libltdl_cv_need_uscore+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 libltdl_cv_need_uscore=unknown
11004 LIBS="$LIBS $LIBADD_DL"
11005 if test "$cross_compiling" = yes; then :
11006 libltdl_cv_need_uscore=cross
11008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11009 lt_status=$lt_dlunknown
11010 cat > conftest.$ac_ext <<EOF
11011 #line 11011 "configure"
11012 #include "confdefs.h"
11021 # define LT_DLGLOBAL RTLD_GLOBAL
11024 # define LT_DLGLOBAL DL_GLOBAL
11026 # define LT_DLGLOBAL 0
11030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11031 find out it does not work in some platform. */
11032 #ifndef LT_DLLAZY_OR_NOW
11034 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11037 # define LT_DLLAZY_OR_NOW DL_LAZY
11040 # define LT_DLLAZY_OR_NOW RTLD_NOW
11043 # define LT_DLLAZY_OR_NOW DL_NOW
11045 # define LT_DLLAZY_OR_NOW 0
11053 extern "C" void exit (int);
11056 void fnord() { int i=42;}
11059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11060 int status = $lt_dlunknown;
11064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11065 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11066 /* dlclose (self); */
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11079 (./conftest; exit; ) >&5 2>/dev/null
11081 case x$lt_status in
11082 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11083 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11084 x$lt_dlunknown|x*) ;;
11087 # compilation failed
11096 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11097 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11101 if test x"$libltdl_cv_need_uscore" = xyes; then
11103 cat >>confdefs.h <<\_ACEOF
11104 #define NEED_USCORE 1
11110 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11111 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11112 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 # PORTME does your system automatically load deplibs for dlopen?
11116 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11117 # For now, we just catch OSes we know something about -- in the
11118 # future, we'll try test this programmatically.
11119 libltdl_cv_sys_dlopen_deplibs=unknown
11121 aix3*|aix4.1.*|aix4.2.*)
11122 # Unknown whether this is true for these versions of AIX, but
11123 # we want this `case' here to explicitly catch those versions.
11124 libltdl_cv_sys_dlopen_deplibs=unknown
11127 libltdl_cv_sys_dlopen_deplibs=yes
11130 # Assuming the user has installed a libdl from somewhere, this is true
11131 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11132 libltdl_cv_sys_dlopen_deplibs=yes
11134 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11135 # GNU and its variants, using gnu ld.so (Glibc)
11136 libltdl_cv_sys_dlopen_deplibs=yes
11139 libltdl_cv_sys_dlopen_deplibs=yes
11142 libltdl_cv_sys_dlopen_deplibs=yes
11144 irix[12345]*|irix6.[01]*)
11145 # Catch all versions of IRIX before 6.2, and indicate that we don't
11146 # know how it worked for any of those versions.
11147 libltdl_cv_sys_dlopen_deplibs=unknown
11150 # The case above catches anything before 6.2, and it's known that
11151 # at 6.2 and later dlopen does load deplibs.
11152 libltdl_cv_sys_dlopen_deplibs=yes
11155 libltdl_cv_sys_dlopen_deplibs=yes
11158 libltdl_cv_sys_dlopen_deplibs=yes
11161 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11162 # it did *not* use an RPATH in a shared library to find objects the
11163 # library depends on, so we explictly say `no'.
11164 libltdl_cv_sys_dlopen_deplibs=no
11166 osf5.0|osf5.0a|osf5.1)
11167 # dlopen *does* load deplibs and with the right loader patch applied
11168 # it even uses RPATH in a shared library to search for shared objects
11169 # that the library depends on, but there's no easy way to know if that
11170 # patch is installed. Since this is the case, all we can really
11171 # say is unknown -- it depends on the patch being installed. If
11172 # it is, this changes to `yes'. Without it, it would be `no'.
11173 libltdl_cv_sys_dlopen_deplibs=unknown
11176 # the two cases above should catch all versions of osf <= 5.1. Read
11177 # the comments above for what we know about them.
11178 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11179 # is used to find them so we can finally say `yes'.
11180 libltdl_cv_sys_dlopen_deplibs=yes
11183 libltdl_cv_sys_dlopen_deplibs=yes
11185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11186 libltdl_cv_sys_dlopen_deplibs=yes
11191 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11192 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11193 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11195 cat >>confdefs.h <<\_ACEOF
11196 #define LTDL_DLOPEN_DEPLIBS 1
11202 for ac_header in argz.h
11204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 ac_res=`eval echo '${'$as_ac_Header'}'`
11212 { echo "$as_me:$LINENO: result: $ac_res" >&5
11213 echo "${ECHO_T}$ac_res" >&6; }
11215 # Is the header compilable?
11216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11218 cat >conftest.$ac_ext <<_ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 $ac_includes_default
11225 #include <$ac_header>
11227 rm -f conftest.$ac_objext
11228 if { (ac_try="$ac_compile"
11229 case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_compile") 2>conftest.er1
11236 grep -v '^ *+' conftest.er1 >conftest.err
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11242 { (case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_try") 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; } &&
11251 { ac_try='test -s conftest.$ac_objext'
11252 { (case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_try") 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_header_compiler=yes
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11266 ac_header_compiler=no
11269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11271 echo "${ECHO_T}$ac_header_compiler" >&6; }
11273 # Is the header present?
11274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 #include <$ac_header>
11284 if { (ac_try="$ac_cpp conftest.$ac_ext"
11285 case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11292 grep -v '^ *+' conftest.er1 >conftest.err
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } >/dev/null; then
11297 if test -s conftest.err; then
11298 ac_cpp_err=$ac_c_preproc_warn_flag
11299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11306 if test -z "$ac_cpp_err"; then
11307 ac_header_preproc=yes
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11312 ac_header_preproc=no
11315 rm -f conftest.err conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11317 echo "${ECHO_T}$ac_header_preproc" >&6; }
11319 # So? What about this header?
11320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11326 ac_header_preproc=yes
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11342 ## ----------------------------------- ##
11343 ## Report this to llvmbugs@cs.uiuc.edu ##
11344 ## ----------------------------------- ##
11346 ) | sed "s/^/$as_me: WARNING: /" >&2
11349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 eval "$as_ac_Header=\$ac_header_preproc"
11356 ac_res=`eval echo '${'$as_ac_Header'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358 echo "${ECHO_T}$ac_res" >&6; }
11361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11362 cat >>confdefs.h <<_ACEOF
11363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11371 { echo "$as_me:$LINENO: checking for error_t" >&5
11372 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11373 if test "${ac_cv_type_error_t+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11386 typedef error_t ac__type_new_;
11390 if ((ac__type_new_ *) 0)
11392 if (sizeof (ac__type_new_))
11398 rm -f conftest.$ac_objext
11399 if { (ac_try="$ac_compile"
11400 case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_compile") 2>conftest.er1
11407 grep -v '^ *+' conftest.er1 >conftest.err
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11413 { (case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_try") 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_try") 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 ac_cv_type_error_t=yes
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ac_cv_type_error_t=no
11440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11443 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11444 if test $ac_cv_type_error_t = yes; then
11446 cat >>confdefs.h <<_ACEOF
11447 #define HAVE_ERROR_T 1
11453 cat >>confdefs.h <<\_ACEOF
11454 #define error_t int
11465 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11481 #define $ac_func innocuous_$ac_func
11483 /* System header to define __stub macros and hopefully few prototypes,
11484 which can conflict with char $ac_func (); below.
11485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11486 <limits.h> exists even on freestanding compilers. */
11489 # include <limits.h>
11491 # include <assert.h>
11496 /* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11503 /* The GNU C library defines this for functions which it implements
11504 to always fail with ENOSYS. Some functions are actually named
11505 something starting with __ and the normal name is an alias. */
11506 #if defined __stub_$ac_func || defined __stub___$ac_func
11513 return $ac_func ();
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (ac_try="$ac_link"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_link") 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest$ac_exeext'
11543 { (case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_try") 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 eval "$as_ac_var=yes"
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 eval "$as_ac_var=no"
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11563 ac_res=`eval echo '${'$as_ac_var'}'`
11564 { echo "$as_me:$LINENO: result: $ac_res" >&5
11565 echo "${ECHO_T}$ac_res" >&6; }
11566 if test `eval echo '${'$as_ac_var'}'` = yes; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11601 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 ac_res=`eval echo '${'$as_ac_Header'}'`
11612 { echo "$as_me:$LINENO: result: $ac_res" >&5
11613 echo "${ECHO_T}$ac_res" >&6; }
11615 # Is the header compilable?
11616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11618 cat >conftest.$ac_ext <<_ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 $ac_includes_default
11625 #include <$ac_header>
11627 rm -f conftest.$ac_objext
11628 if { (ac_try="$ac_compile"
11629 case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_compile") 2>conftest.er1
11636 grep -v '^ *+' conftest.er1 >conftest.err
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11642 { (case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_try") 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; } &&
11651 { ac_try='test -s conftest.$ac_objext'
11652 { (case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_try") 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 ac_header_compiler=yes
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11666 ac_header_compiler=no
11669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11671 echo "${ECHO_T}$ac_header_compiler" >&6; }
11673 # Is the header present?
11674 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11676 cat >conftest.$ac_ext <<_ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 #include <$ac_header>
11684 if { (ac_try="$ac_cpp conftest.$ac_ext"
11685 case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11692 grep -v '^ *+' conftest.er1 >conftest.err
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } >/dev/null; then
11697 if test -s conftest.err; then
11698 ac_cpp_err=$ac_c_preproc_warn_flag
11699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11706 if test -z "$ac_cpp_err"; then
11707 ac_header_preproc=yes
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_header_preproc=no
11715 rm -f conftest.err conftest.$ac_ext
11716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11717 echo "${ECHO_T}$ac_header_preproc" >&6; }
11719 # So? What about this header?
11720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11726 ac_header_preproc=yes
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11742 ## ----------------------------------- ##
11743 ## Report this to llvmbugs@cs.uiuc.edu ##
11744 ## ----------------------------------- ##
11746 ) | sed "s/^/$as_me: WARNING: /" >&2
11749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 eval "$as_ac_Header=\$ac_header_preproc"
11756 ac_res=`eval echo '${'$as_ac_Header'}'`
11757 { echo "$as_me:$LINENO: result: $ac_res" >&5
11758 echo "${ECHO_T}$ac_res" >&6; }
11761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11762 cat >>confdefs.h <<_ACEOF
11763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11774 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 ac_res=`eval echo '${'$as_ac_Header'}'`
11784 { echo "$as_me:$LINENO: result: $ac_res" >&5
11785 echo "${ECHO_T}$ac_res" >&6; }
11787 # Is the header compilable?
11788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11790 cat >conftest.$ac_ext <<_ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 $ac_includes_default
11797 #include <$ac_header>
11799 rm -f conftest.$ac_objext
11800 if { (ac_try="$ac_compile"
11801 case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_compile") 2>conftest.er1
11808 grep -v '^ *+' conftest.er1 >conftest.err
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11814 { (case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_try") 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest.$ac_objext'
11824 { (case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 ac_header_compiler=yes
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 ac_header_compiler=no
11841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11843 echo "${ECHO_T}$ac_header_compiler" >&6; }
11845 # Is the header present?
11846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11848 cat >conftest.$ac_ext <<_ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 #include <$ac_header>
11856 if { (ac_try="$ac_cpp conftest.$ac_ext"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } >/dev/null; then
11869 if test -s conftest.err; then
11870 ac_cpp_err=$ac_c_preproc_warn_flag
11871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11878 if test -z "$ac_cpp_err"; then
11879 ac_header_preproc=yes
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 ac_header_preproc=no
11887 rm -f conftest.err conftest.$ac_ext
11888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11889 echo "${ECHO_T}$ac_header_preproc" >&6; }
11891 # So? What about this header?
11892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11898 ac_header_preproc=yes
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11914 ## ----------------------------------- ##
11915 ## Report this to llvmbugs@cs.uiuc.edu ##
11916 ## ----------------------------------- ##
11918 ) | sed "s/^/$as_me: WARNING: /" >&2
11921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 eval "$as_ac_Header=\$ac_header_preproc"
11928 ac_res=`eval echo '${'$as_ac_Header'}'`
11929 { echo "$as_me:$LINENO: result: $ac_res" >&5
11930 echo "${ECHO_T}$ac_res" >&6; }
11933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11934 cat >>confdefs.h <<_ACEOF
11935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11944 for ac_header in string.h strings.h
11946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 ac_res=`eval echo '${'$as_ac_Header'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11957 # Is the header compilable?
11958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11960 cat >conftest.$ac_ext <<_ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 $ac_includes_default
11967 #include <$ac_header>
11969 rm -f conftest.$ac_objext
11970 if { (ac_try="$ac_compile"
11971 case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_compile") 2>conftest.er1
11978 grep -v '^ *+' conftest.er1 >conftest.err
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11984 { (case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest.$ac_objext'
11994 { (case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_try") 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 ac_header_compiler=yes
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ac_header_compiler=no
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12013 echo "${ECHO_T}$ac_header_compiler" >&6; }
12015 # Is the header present?
12016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 #include <$ac_header>
12026 if { (ac_try="$ac_cpp conftest.$ac_ext"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12034 grep -v '^ *+' conftest.er1 >conftest.err
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } >/dev/null; then
12039 if test -s conftest.err; then
12040 ac_cpp_err=$ac_c_preproc_warn_flag
12041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12048 if test -z "$ac_cpp_err"; then
12049 ac_header_preproc=yes
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 ac_header_preproc=no
12057 rm -f conftest.err conftest.$ac_ext
12058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12059 echo "${ECHO_T}$ac_header_preproc" >&6; }
12061 # So? What about this header?
12062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12068 ac_header_preproc=yes
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12084 ## ----------------------------------- ##
12085 ## Report this to llvmbugs@cs.uiuc.edu ##
12086 ## ----------------------------------- ##
12088 ) | sed "s/^/$as_me: WARNING: /" >&2
12091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 eval "$as_ac_Header=\$ac_header_preproc"
12098 ac_res=`eval echo '${'$as_ac_Header'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100 echo "${ECHO_T}$ac_res" >&6; }
12103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12104 cat >>confdefs.h <<_ACEOF
12105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12115 for ac_func in strchr index
12117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12131 #define $ac_func innocuous_$ac_func
12133 /* System header to define __stub macros and hopefully few prototypes,
12134 which can conflict with char $ac_func (); below.
12135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12136 <limits.h> exists even on freestanding compilers. */
12139 # include <limits.h>
12141 # include <assert.h>
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12153 /* The GNU C library defines this for functions which it implements
12154 to always fail with ENOSYS. Some functions are actually named
12155 something starting with __ and the normal name is an alias. */
12156 #if defined __stub_$ac_func || defined __stub___$ac_func
12163 return $ac_func ();
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (ac_try="$ac_link"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_link") 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12183 { (case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_try") 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest$ac_exeext'
12193 { (case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_try") 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 eval "$as_ac_var=yes"
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 eval "$as_ac_var=no"
12210 rm -f core conftest.err conftest.$ac_objext \
12211 conftest$ac_exeext conftest.$ac_ext
12213 ac_res=`eval echo '${'$as_ac_var'}'`
12214 { echo "$as_me:$LINENO: result: $ac_res" >&5
12215 echo "${ECHO_T}$ac_res" >&6; }
12216 if test `eval echo '${'$as_ac_var'}'` = yes; then
12217 cat >>confdefs.h <<_ACEOF
12218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12226 for ac_func in strrchr rindex
12228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12242 #define $ac_func innocuous_$ac_func
12244 /* System header to define __stub macros and hopefully few prototypes,
12245 which can conflict with char $ac_func (); below.
12246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12247 <limits.h> exists even on freestanding compilers. */
12250 # include <limits.h>
12252 # include <assert.h>
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12264 /* The GNU C library defines this for functions which it implements
12265 to always fail with ENOSYS. Some functions are actually named
12266 something starting with __ and the normal name is an alias. */
12267 #if defined __stub_$ac_func || defined __stub___$ac_func
12274 return $ac_func ();
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (ac_try="$ac_link"
12281 case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_link") 2>conftest.er1
12288 grep -v '^ *+' conftest.er1 >conftest.err
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12294 { (case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_try") 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest$ac_exeext'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 eval "$as_ac_var=yes"
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 eval "$as_ac_var=no"
12321 rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12324 ac_res=`eval echo '${'$as_ac_var'}'`
12325 { echo "$as_me:$LINENO: result: $ac_res" >&5
12326 echo "${ECHO_T}$ac_res" >&6; }
12327 if test `eval echo '${'$as_ac_var'}'` = yes; then
12328 cat >>confdefs.h <<_ACEOF
12329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12337 for ac_func in memcpy bcopy
12339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 cat >conftest.$ac_ext <<_ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12353 #define $ac_func innocuous_$ac_func
12355 /* System header to define __stub macros and hopefully few prototypes,
12356 which can conflict with char $ac_func (); below.
12357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12358 <limits.h> exists even on freestanding compilers. */
12361 # include <limits.h>
12363 # include <assert.h>
12368 /* Override any GCC internal prototype to avoid an error.
12369 Use char because int might match the return type of a GCC
12370 builtin and then its argument prototype would still apply. */
12375 /* The GNU C library defines this for functions which it implements
12376 to always fail with ENOSYS. Some functions are actually named
12377 something starting with __ and the normal name is an alias. */
12378 #if defined __stub_$ac_func || defined __stub___$ac_func
12385 return $ac_func ();
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_link") 2>conftest.er1
12399 grep -v '^ *+' conftest.er1 >conftest.err
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12405 { (case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_try") 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest$ac_exeext'
12415 { (case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_try") 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 eval "$as_ac_var=yes"
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12429 eval "$as_ac_var=no"
12432 rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12435 ac_res=`eval echo '${'$as_ac_var'}'`
12436 { echo "$as_me:$LINENO: result: $ac_res" >&5
12437 echo "${ECHO_T}$ac_res" >&6; }
12438 if test `eval echo '${'$as_ac_var'}'` = yes; then
12439 cat >>confdefs.h <<_ACEOF
12440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12448 for ac_func in memmove strcmp
12450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12464 #define $ac_func innocuous_$ac_func
12466 /* System header to define __stub macros and hopefully few prototypes,
12467 which can conflict with char $ac_func (); below.
12468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12469 <limits.h> exists even on freestanding compilers. */
12472 # include <limits.h>
12474 # include <assert.h>
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12486 /* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489 #if defined __stub_$ac_func || defined __stub___$ac_func
12496 return $ac_func ();
12501 rm -f conftest.$ac_objext conftest$ac_exeext
12502 if { (ac_try="$ac_link"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_link") 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12516 { (case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_try") 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest$ac_exeext'
12526 { (case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_try") 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; }; then
12535 eval "$as_ac_var=yes"
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12540 eval "$as_ac_var=no"
12543 rm -f core conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12546 ac_res=`eval echo '${'$as_ac_var'}'`
12547 { echo "$as_me:$LINENO: result: $ac_res" >&5
12548 echo "${ECHO_T}$ac_res" >&6; }
12549 if test `eval echo '${'$as_ac_var'}'` = yes; then
12550 cat >>confdefs.h <<_ACEOF
12551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12560 for ac_func in closedir opendir readdir
12562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 cat >conftest.$ac_ext <<_ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12576 #define $ac_func innocuous_$ac_func
12578 /* System header to define __stub macros and hopefully few prototypes,
12579 which can conflict with char $ac_func (); below.
12580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12581 <limits.h> exists even on freestanding compilers. */
12584 # include <limits.h>
12586 # include <assert.h>
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12598 /* The GNU C library defines this for functions which it implements
12599 to always fail with ENOSYS. Some functions are actually named
12600 something starting with __ and the normal name is an alias. */
12601 #if defined __stub_$ac_func || defined __stub___$ac_func
12608 return $ac_func ();
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_link") 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_try") 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 eval "$as_ac_var=yes"
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12652 eval "$as_ac_var=no"
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12658 ac_res=`eval echo '${'$as_ac_var'}'`
12659 { echo "$as_me:$LINENO: result: $ac_res" >&5
12660 echo "${ECHO_T}$ac_res" >&6; }
12661 if test `eval echo '${'$as_ac_var'}'` = yes; then
12662 cat >>confdefs.h <<_ACEOF
12663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12670 # Check whether --enable-shared was given.
12671 if test "${enable_shared+set}" = set; then
12672 enableval=$enable_shared; p=${PACKAGE-default}
12674 yes) enable_shared=yes ;;
12675 no) enable_shared=no ;;
12678 # Look at the argument we got. We use all the common list separators.
12679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12680 for pkg in $enableval; do
12682 if test "X$pkg" = "X$p"; then
12694 # Check whether --enable-static was given.
12695 if test "${enable_static+set}" = set; then
12696 enableval=$enable_static; p=${PACKAGE-default}
12698 yes) enable_static=yes ;;
12699 no) enable_static=no ;;
12702 # Look at the argument we got. We use all the common list separators.
12703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12704 for pkg in $enableval; do
12706 if test "X$pkg" = "X$p"; then
12718 # Check whether --enable-fast-install was given.
12719 if test "${enable_fast_install+set}" = set; then
12720 enableval=$enable_fast_install; p=${PACKAGE-default}
12722 yes) enable_fast_install=yes ;;
12723 no) enable_fast_install=no ;;
12725 enable_fast_install=no
12726 # Look at the argument we got. We use all the common list separators.
12727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12728 for pkg in $enableval; do
12730 if test "X$pkg" = "X$p"; then
12731 enable_fast_install=yes
12738 enable_fast_install=yes
12742 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12743 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12744 if test "${lt_cv_path_SED+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 # Loop through the user's path and test for sed and gsed.
12748 # Then use that list of sed's as ones to test for truncation.
12749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 for as_dir in $PATH
12753 test -z "$as_dir" && as_dir=.
12754 for lt_ac_prog in sed gsed; do
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12757 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12764 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12765 # along with /bin/sed that truncates output.
12766 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12767 test ! -f $lt_ac_sed && continue
12768 cat /dev/null > conftest.in
12770 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12771 # Check for GNU sed and select it if it is found.
12772 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12773 lt_cv_path_SED=$lt_ac_sed
12777 cat conftest.in conftest.in >conftest.tmp
12778 mv conftest.tmp conftest.in
12779 cp conftest.in conftest.nl
12781 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12782 cmp -s conftest.out conftest.nl || break
12783 # 10000 chars as input seems more than enough
12784 test $lt_ac_count -gt 10 && break
12785 lt_ac_count=`expr $lt_ac_count + 1`
12786 if test $lt_ac_count -gt $lt_ac_max; then
12787 lt_ac_max=$lt_ac_count
12788 lt_cv_path_SED=$lt_ac_sed
12795 SED=$lt_cv_path_SED
12796 { echo "$as_me:$LINENO: result: $SED" >&5
12797 echo "${ECHO_T}$SED" >&6; }
12800 # Check whether --with-gnu-ld was given.
12801 if test "${with_gnu_ld+set}" = set; then
12802 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12808 if test "$GCC" = yes; then
12809 # Check if gcc -print-prog-name=ld gives a path.
12810 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12811 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12814 # gcc leaves a trailing carriage return which upsets mingw
12815 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12817 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12820 # Accept absolute paths.
12822 re_direlt='/[^/][^/]*/\.\./'
12823 # Canonicalize the pathname of ld
12824 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12825 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12826 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12828 test -z "$LD" && LD="$ac_prog"
12831 # If it fails, then pretend we aren't using GCC.
12835 # If it is relative, then search for the first ld in PATH.
12836 with_gnu_ld=unknown
12839 elif test "$with_gnu_ld" = yes; then
12840 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12841 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12843 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12844 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12846 if test "${lt_cv_path_LD+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 if test -z "$LD"; then
12850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12851 for ac_dir in $PATH; do
12853 test -z "$ac_dir" && ac_dir=.
12854 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12855 lt_cv_path_LD="$ac_dir/$ac_prog"
12856 # Check to see if the program is GNU ld. I'd rather use --version,
12857 # but apparently some variants of GNU ld only accept -v.
12858 # Break only if it was the GNU/non-GNU ld that we prefer.
12859 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12860 *GNU* | *'with BFD'*)
12861 test "$with_gnu_ld" != no && break
12864 test "$with_gnu_ld" != yes && break
12871 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12875 LD="$lt_cv_path_LD"
12876 if test -n "$LD"; then
12877 { echo "$as_me:$LINENO: result: $LD" >&5
12878 echo "${ECHO_T}$LD" >&6; }
12880 { echo "$as_me:$LINENO: result: no" >&5
12881 echo "${ECHO_T}no" >&6; }
12883 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12884 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12885 { (exit 1); exit 1; }; }
12886 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12887 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12888 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12892 case `$LD -v 2>&1 </dev/null` in
12893 *GNU* | *'with BFD'*)
12894 lt_cv_prog_gnu_ld=yes
12897 lt_cv_prog_gnu_ld=no
12901 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12902 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12903 with_gnu_ld=$lt_cv_prog_gnu_ld
12906 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12907 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12908 if test "${lt_cv_ld_reload_flag+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 lt_cv_ld_reload_flag='-r'
12913 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12914 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12915 reload_flag=$lt_cv_ld_reload_flag
12916 case $reload_flag in
12918 *) reload_flag=" $reload_flag" ;;
12920 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12923 if test "$GCC" = yes; then
12924 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12926 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12931 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12932 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12933 if test "${lt_cv_deplibs_check_method+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 lt_cv_file_magic_cmd='$MAGIC_CMD'
12937 lt_cv_file_magic_test_file=
12938 lt_cv_deplibs_check_method='unknown'
12939 # Need to set the preceding variable on all platforms that support
12940 # interlibrary dependencies.
12941 # 'none' -- dependencies not supported.
12942 # `unknown' -- same as none, but documents that we really don't know.
12943 # 'pass_all' -- all dependencies passed with no checks.
12944 # 'test_compile' -- check by making test program.
12945 # 'file_magic [[regex]]' -- check by looking for files in library path
12946 # which responds to the $file_magic_cmd with a given extended regex.
12947 # If you have `file' or equivalent on your system and you're not sure
12948 # whether `pass_all' will *always* work, you probably want this one.
12952 lt_cv_deplibs_check_method=pass_all
12956 lt_cv_deplibs_check_method=pass_all
12960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12961 lt_cv_file_magic_cmd='/usr/bin/file -L'
12962 lt_cv_file_magic_test_file=/shlib/libc.so
12966 # func_win32_libid is a shell function defined in ltmain.sh
12967 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12968 lt_cv_file_magic_cmd='func_win32_libid'
12972 # Base MSYS/MinGW do not provide the 'file' command needed by
12973 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12974 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12975 lt_cv_file_magic_cmd='$OBJDUMP -f'
12978 darwin* | rhapsody*)
12979 lt_cv_deplibs_check_method=pass_all
12982 freebsd* | kfreebsd*-gnu | dragonfly*)
12983 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12986 # Not sure whether the presence of OpenBSD here was a mistake.
12987 # Let's accept both of them until this is cleared up.
12988 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12989 lt_cv_file_magic_cmd=/usr/bin/file
12990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12994 lt_cv_deplibs_check_method=pass_all
12999 lt_cv_deplibs_check_method=pass_all
13002 hpux10.20* | hpux11*)
13003 lt_cv_file_magic_cmd=/usr/bin/file
13006 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13007 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13010 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]'
13011 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13014 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13015 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13021 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13025 irix5* | irix6* | nonstopux*)
13027 *-32|*"-32 ") libmagic=32-bit;;
13028 *-n32|*"-n32 ") libmagic=N32;;
13029 *-64|*"-64 ") libmagic=64-bit;;
13030 *) libmagic=never-match;;
13032 lt_cv_deplibs_check_method=pass_all
13035 # This must be Linux ELF.
13037 lt_cv_deplibs_check_method=pass_all
13041 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13050 lt_cv_file_magic_cmd=/usr/bin/file
13051 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13055 lt_cv_deplibs_check_method=unknown
13059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13066 osf3* | osf4* | osf5*)
13067 lt_cv_deplibs_check_method=pass_all
13071 lt_cv_deplibs_check_method=pass_all
13075 case $host_vendor in
13077 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]'
13078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13081 lt_cv_deplibs_check_method=pass_all
13084 lt_cv_file_magic_cmd='/bin/file'
13085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13088 lt_cv_file_magic_cmd='/bin/file'
13089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13090 lt_cv_file_magic_test_file=/lib/libc.so
13093 lt_cv_deplibs_check_method=pass_all
13096 lt_cv_deplibs_check_method=pass_all
13101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13102 lt_cv_deplibs_check_method=pass_all
13107 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13108 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13109 file_magic_cmd=$lt_cv_file_magic_cmd
13110 deplibs_check_method=$lt_cv_deplibs_check_method
13111 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13115 # If no C compiler was specified, use CC.
13118 # If no C compiler flags were specified, use CFLAGS.
13119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13121 # Allow CC to be a program name with arguments.
13124 # Check whether --enable-libtool-lock was given.
13125 if test "${enable_libtool_lock+set}" = set; then
13126 enableval=$enable_libtool_lock;
13129 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13131 # Some flags need to be propagated to the compiler or linker for good
13135 # Find out which ABI we are using.
13136 echo 'int i;' > conftest.$ac_ext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138 (eval $ac_compile) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; then
13142 case `/usr/bin/file conftest.$ac_objext` in
13144 HPUX_IA64_MODE="32"
13147 HPUX_IA64_MODE="64"
13154 # Find out which ABI we are using.
13155 echo '#line 13155 "configure"' > conftest.$ac_ext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; then
13161 if test "$lt_cv_prog_gnu_ld" = yes; then
13162 case `/usr/bin/file conftest.$ac_objext` in
13164 LD="${LD-ld} -melf32bsmip"
13167 LD="${LD-ld} -melf32bmipn32"
13170 LD="${LD-ld} -melf64bmip"
13174 case `/usr/bin/file conftest.$ac_objext` in
13190 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13191 # Find out which ABI we are using.
13192 echo 'int i;' > conftest.$ac_ext
13193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13194 (eval $ac_compile) 2>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; then
13198 case `/usr/bin/file conftest.o` in
13202 LD="${LD-ld} -m elf_i386"
13204 ppc64-*linux*|powerpc64-*linux*)
13205 LD="${LD-ld} -m elf32ppclinux"
13208 LD="${LD-ld} -m elf_s390"
13211 LD="${LD-ld} -m elf32_sparc"
13218 LD="${LD-ld} -m elf_x86_64"
13220 ppc*-*linux*|powerpc*-*linux*)
13221 LD="${LD-ld} -m elf64ppc"
13224 LD="${LD-ld} -m elf64_s390"
13227 LD="${LD-ld} -m elf64_sparc"
13237 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13238 SAVE_CFLAGS="$CFLAGS"
13239 CFLAGS="$CFLAGS -belf"
13240 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13241 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13242 if test "${lt_cv_cc_needs_belf+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 ac_cpp='$CPP $CPPFLAGS'
13247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (ac_try="$ac_link"
13268 case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273 (eval "$ac_link") 2>conftest.er1
13275 grep -v '^ *+' conftest.er1 >conftest.err
13277 cat conftest.err >&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13281 { (case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286 (eval "$ac_try") 2>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; } &&
13290 { ac_try='test -s conftest$ac_exeext'
13291 { (case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_try") 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 lt_cv_cc_needs_belf=yes
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 lt_cv_cc_needs_belf=no
13308 rm -f core conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
13311 ac_cpp='$CPP $CPPFLAGS'
13312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13318 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13319 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13320 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13321 CFLAGS="$SAVE_CFLAGS"
13325 # Find out which ABI we are using.
13326 echo 'int i;' > conftest.$ac_ext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; then
13332 case `/usr/bin/file conftest.o` in
13334 case $lt_cv_prog_gnu_ld in
13335 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13336 *) LD="${LD-ld} -64" ;;
13347 need_locks="$enable_libtool_lock"
13352 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13353 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13354 (test "X$CXX" != "Xg++"))) ; then
13356 ac_cpp='$CXXCPP $CPPFLAGS'
13357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13360 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13361 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13362 if test -z "$CXXCPP"; then
13363 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 # Double quotes because CXXCPP needs to be expanded
13367 for CXXCPP in "$CXX -E" "/lib/cpp"
13369 ac_preproc_ok=false
13370 for ac_cxx_preproc_warn_flag in '' yes
13372 # Use a header file that comes with gcc, so configuring glibc
13373 # with a fresh cross-compiler works.
13374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13375 # <limits.h> exists even on freestanding compilers.
13376 # On the NeXT, cc -E runs the code through the compiler's parser,
13377 # not just through cpp. "Syntax error" is here to catch this case.
13378 cat >conftest.$ac_ext <<_ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13385 # include <limits.h>
13387 # include <assert.h>
13391 if { (ac_try="$ac_cpp conftest.$ac_ext"
13392 case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13399 grep -v '^ *+' conftest.er1 >conftest.err
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } >/dev/null; then
13404 if test -s conftest.err; then
13405 ac_cpp_err=$ac_cxx_preproc_warn_flag
13406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13413 if test -z "$ac_cpp_err"; then
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 # Broken: fails on valid input.
13423 rm -f conftest.err conftest.$ac_ext
13425 # OK, works on sane cases. Now check whether nonexistent headers
13426 # can be detected and how.
13427 cat >conftest.$ac_ext <<_ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 #include <ac_nonexistent.h>
13435 if { (ac_try="$ac_cpp conftest.$ac_ext"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13443 grep -v '^ *+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } >/dev/null; then
13448 if test -s conftest.err; then
13449 ac_cpp_err=$ac_cxx_preproc_warn_flag
13450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13457 if test -z "$ac_cpp_err"; then
13458 # Broken: success on invalid input.
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 # Passes both tests.
13469 rm -f conftest.err conftest.$ac_ext
13472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13473 rm -f conftest.err conftest.$ac_ext
13474 if $ac_preproc_ok; then
13479 ac_cv_prog_CXXCPP=$CXXCPP
13482 CXXCPP=$ac_cv_prog_CXXCPP
13484 ac_cv_prog_CXXCPP=$CXXCPP
13486 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13487 echo "${ECHO_T}$CXXCPP" >&6; }
13488 ac_preproc_ok=false
13489 for ac_cxx_preproc_warn_flag in '' yes
13491 # Use a header file that comes with gcc, so configuring glibc
13492 # with a fresh cross-compiler works.
13493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13494 # <limits.h> exists even on freestanding compilers.
13495 # On the NeXT, cc -E runs the code through the compiler's parser,
13496 # not just through cpp. "Syntax error" is here to catch this case.
13497 cat >conftest.$ac_ext <<_ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13504 # include <limits.h>
13506 # include <assert.h>
13510 if { (ac_try="$ac_cpp conftest.$ac_ext"
13511 case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13518 grep -v '^ *+' conftest.er1 >conftest.err
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } >/dev/null; then
13523 if test -s conftest.err; then
13524 ac_cpp_err=$ac_cxx_preproc_warn_flag
13525 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13532 if test -z "$ac_cpp_err"; then
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 # Broken: fails on valid input.
13542 rm -f conftest.err conftest.$ac_ext
13544 # OK, works on sane cases. Now check whether nonexistent headers
13545 # can be detected and how.
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 #include <ac_nonexistent.h>
13554 if { (ac_try="$ac_cpp conftest.$ac_ext"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13562 grep -v '^ *+' conftest.er1 >conftest.err
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } >/dev/null; then
13567 if test -s conftest.err; then
13568 ac_cpp_err=$ac_cxx_preproc_warn_flag
13569 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13576 if test -z "$ac_cpp_err"; then
13577 # Broken: success on invalid input.
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 # Passes both tests.
13588 rm -f conftest.err conftest.$ac_ext
13591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13592 rm -f conftest.err conftest.$ac_ext
13593 if $ac_preproc_ok; then
13596 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13597 See \`config.log' for more details." >&5
13598 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13599 See \`config.log' for more details." >&2;}
13600 { (exit 1); exit 1; }; }
13604 ac_cpp='$CXXCPP $CPPFLAGS'
13605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13613 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13614 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13615 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13616 if test -n "$ac_tool_prefix"; then
13617 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
13619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13623 if test "${ac_cv_prog_F77+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 if test -n "$F77"; then
13627 ac_cv_prog_F77="$F77" # Let the user override the test.
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13636 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 F77=$ac_cv_prog_F77
13647 if test -n "$F77"; then
13648 { echo "$as_me:$LINENO: result: $F77" >&5
13649 echo "${ECHO_T}$F77" >&6; }
13651 { echo "$as_me:$LINENO: result: no" >&5
13652 echo "${ECHO_T}no" >&6; }
13656 test -n "$F77" && break
13659 if test -z "$F77"; then
13661 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
13663 # Extract the first word of "$ac_prog", so it can be a program name with args.
13664 set dummy $ac_prog; ac_word=$2
13665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13667 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 if test -n "$ac_ct_F77"; then
13671 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13680 ac_cv_prog_ac_ct_F77="$ac_prog"
13681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13690 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13691 if test -n "$ac_ct_F77"; then
13692 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13693 echo "${ECHO_T}$ac_ct_F77" >&6; }
13695 { echo "$as_me:$LINENO: result: no" >&5
13696 echo "${ECHO_T}no" >&6; }
13700 test -n "$ac_ct_F77" && break
13703 if test "x$ac_ct_F77" = x; then
13706 case $cross_compiling:$ac_tool_warned in
13708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13709 whose name does not start with the host triplet. If you think this
13710 configuration is useful to you, please write to autoconf@gnu.org." >&5
13711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13712 whose name does not start with the host triplet. If you think this
13713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13714 ac_tool_warned=yes ;;
13721 # Provide some information about the compiler.
13722 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13723 ac_compiler=`set X $ac_compile; echo $2`
13724 { (ac_try="$ac_compiler --version >&5"
13725 case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_compiler --version >&5") 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }
13734 { (ac_try="$ac_compiler -v >&5"
13735 case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_compiler -v >&5") 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }
13744 { (ac_try="$ac_compiler -V >&5"
13745 case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_compiler -V >&5") 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }
13756 # If we don't use `.F' as extension, the preprocessor is not run on the
13757 # input file. (Note that this only needs to work for GNU compilers.)
13758 ac_save_ext=$ac_ext
13760 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13761 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13762 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 cat >conftest.$ac_ext <<_ACEOF
13773 rm -f conftest.$ac_objext
13774 if { (ac_try="$ac_compile"
13775 case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_compile") 2>conftest.er1
13782 grep -v '^ *+' conftest.er1 >conftest.err
13784 cat conftest.err >&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest.$ac_objext'
13798 { (case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_try") 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; }; then
13807 ac_compiler_gnu=yes
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13819 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13820 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13821 ac_ext=$ac_save_ext
13822 ac_test_FFLAGS=${FFLAGS+set}
13823 ac_save_FFLAGS=$FFLAGS
13825 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13826 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13827 if test "${ac_cv_prog_f77_g+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 cat >conftest.$ac_ext <<_ACEOF
13836 rm -f conftest.$ac_objext
13837 if { (ac_try="$ac_compile"
13838 case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_compile") 2>conftest.er1
13845 grep -v '^ *+' conftest.er1 >conftest.err
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
13850 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 ac_cv_prog_f77_g=yes
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13875 ac_cv_prog_f77_g=no
13878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13882 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13883 if test "$ac_test_FFLAGS" = set; then
13884 FFLAGS=$ac_save_FFLAGS
13885 elif test $ac_cv_prog_f77_g = yes; then
13886 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13892 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13899 G77=`test $ac_compiler_gnu = yes && echo yes`
13901 ac_cpp='$CPP $CPPFLAGS'
13902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13908 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13910 # find the maximum length of command line arguments
13911 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13912 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13913 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 # On DJGPP, this test can blow up pretty badly due to problems in libc
13922 # (any single argument exceeding 2000 bytes causes a buffer overrun
13923 # during glob expansion). Even if it were fixed, the result of this
13924 # check would be larger than it should be.
13925 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13929 # Under GNU Hurd, this test is not required because there is
13930 # no limit to the length of command line arguments.
13931 # Libtool will interpret -1 as no limit whatsoever
13932 lt_cv_sys_max_cmd_len=-1;
13936 # On Win9x/ME, this test blows up -- it succeeds, but takes
13937 # about 5 minutes as the teststring grows exponentially.
13938 # Worse, since 9x/ME are not pre-emptively multitasking,
13939 # you end up with a "frozen" computer, even though with patience
13940 # the test eventually succeeds (with a max line length of 256k).
13941 # Instead, let's just punt: use the minimum linelength reported by
13942 # all of the supported platforms: 8192 (on NT/2K/XP).
13943 lt_cv_sys_max_cmd_len=8192;
13947 # On AmigaOS with pdksh, this test takes hours, literally.
13948 # So we just punt and use a minimum line length of 8192.
13949 lt_cv_sys_max_cmd_len=8192;
13952 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13953 # This has been around since 386BSD, at least. Likely further.
13954 if test -x /sbin/sysctl; then
13955 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13956 elif test -x /usr/sbin/sysctl; then
13957 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13959 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13961 # And add a safety zone
13962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13967 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13968 lt_cv_sys_max_cmd_len=196608
13972 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13973 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13974 # nice to cause kernel panics so lets avoid the loop below.
13975 # First set a reasonable default.
13976 lt_cv_sys_max_cmd_len=16384
13978 if test -x /sbin/sysconfig; then
13979 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13980 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13985 lt_cv_sys_max_cmd_len=102400
13987 sysv5* | sco5v6* | sysv4.2uw2*)
13988 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13989 if test -n "$kargmax"; then
13990 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13992 lt_cv_sys_max_cmd_len=32768
13996 # If test is not a shell built-in, we'll probably end up computing a
13997 # maximum length that is only half of the actual maximum length, but
13999 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14000 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14001 = "XX$teststring") >/dev/null 2>&1 &&
14002 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14003 lt_cv_sys_max_cmd_len=$new_result &&
14004 test $i != 17 # 1/2 MB should be enough
14007 teststring=$teststring$teststring
14010 # Add a significant safety factor because C++ compilers can tack on massive
14011 # amounts of additional arguments before passing them to the linker.
14012 # It appears as though 1/2 is a usable value.
14013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14019 if test -n $lt_cv_sys_max_cmd_len ; then
14020 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14021 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14023 { echo "$as_me:$LINENO: result: none" >&5
14024 echo "${ECHO_T}none" >&6; }
14030 # Check for command to grab the raw symbol name followed by C symbol from nm.
14031 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14032 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14033 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 # These are sane defaults that work on at least a few old systems.
14038 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14040 # Character class describing NM global symbol codes.
14041 symcode='[BCDEGRST]'
14043 # Regexp to match symbols that can be accessed directly from C.
14044 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14046 # Transform an extracted symbol line into a proper C declaration
14047 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14049 # Transform an extracted symbol line into symbol name and symbol address
14050 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'"
14052 # Define system-specific variables.
14057 cygwin* | mingw* | pw32*)
14058 symcode='[ABCDGISTW]'
14060 hpux*) # Its linker distinguishes data from code symbols
14061 if test "$host_cpu" = ia64; then
14062 symcode='[ABCDEGRST]'
14064 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14065 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'"
14068 if test "$host_cpu" = ia64; then
14069 symcode='[ABCDGIRSTW]'
14070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14071 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'"
14074 irix* | nonstopux*)
14075 symcode='[BCDEGRST]'
14078 symcode='[BCDEGQRST]'
14089 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14097 # Handle CRLF in mingw tool chain
14101 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14105 # If we're using GNU nm, then use its standard symbol codes.
14106 case `$NM -V 2>&1` in
14107 *GNU* | *'with BFD'*)
14108 symcode='[ABCDGIRSTW]' ;;
14111 # Try without a prefix undercore, then with it.
14112 for ac_symprfx in "" "_"; do
14114 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14115 symxfrm="\\1 $ac_symprfx\\2 \\2"
14117 # Write the raw and C identifiers.
14118 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14120 # Check to see that the pipe works correctly.
14124 cat > conftest.$ac_ext <<EOF
14129 void nm_test_func(){}
14133 int main(){nm_test_var='a';nm_test_func();return(0);}
14136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137 (eval $ac_compile) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; then
14141 # Now try to grab the symbols.
14143 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14144 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } && test -s "$nlist"; then
14148 # Try sorting and uniquifying the output.
14149 if sort "$nlist" | uniq > "$nlist"T; then
14150 mv -f "$nlist"T "$nlist"
14155 # Make sure that we snagged all the symbols we need.
14156 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14157 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14158 cat <<EOF > conftest.$ac_ext
14164 # Now generate the symbol file.
14165 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14167 cat <<EOF >> conftest.$ac_ext
14168 #if defined (__STDC__) && __STDC__
14169 # define lt_ptr_t void *
14171 # define lt_ptr_t char *
14175 /* The mapping between symbol names and symbols. */
14180 lt_preloaded_symbols[] =
14183 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14184 cat <<\EOF >> conftest.$ac_ext
14192 # Now try linking the two files.
14193 mv conftest.$ac_objext conftstm.$ac_objext
14194 lt_save_LIBS="$LIBS"
14195 lt_save_CFLAGS="$CFLAGS"
14196 LIBS="conftstm.$ac_objext"
14197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14199 (eval $ac_link) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14205 LIBS="$lt_save_LIBS"
14206 CFLAGS="$lt_save_CFLAGS"
14208 echo "cannot find nm_test_func in $nlist" >&5
14211 echo "cannot find nm_test_var in $nlist" >&5
14214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14217 echo "$progname: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14220 rm -f conftest* conftst*
14222 # Do not use the global_symbol_pipe unless it works.
14223 if test "$pipe_works" = yes; then
14226 lt_cv_sys_global_symbol_pipe=
14232 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14233 lt_cv_sys_global_symbol_to_cdecl=
14235 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14236 { echo "$as_me:$LINENO: result: failed" >&5
14237 echo "${ECHO_T}failed" >&6; }
14239 { echo "$as_me:$LINENO: result: ok" >&5
14240 echo "${ECHO_T}ok" >&6; }
14243 { echo "$as_me:$LINENO: checking for objdir" >&5
14244 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14245 if test "${lt_cv_objdir+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 rm -f .libs 2>/dev/null
14249 mkdir .libs 2>/dev/null
14250 if test -d .libs; then
14253 # MS-DOS does not allow filenames that begin with a dot.
14256 rmdir .libs 2>/dev/null
14258 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14259 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14260 objdir=$lt_cv_objdir
14268 # AIX sometimes has problems with the GCC collect2 program. For some
14269 # reason, if we set the COLLECT_NAMES environment variable, the problems
14270 # vanish in a puff of smoke.
14271 if test "X${COLLECT_NAMES+set}" != Xset; then
14273 export COLLECT_NAMES
14278 # Sed substitution that helps us do robust quoting. It backslashifies
14279 # metacharacters that are still active within double-quoted strings.
14280 Xsed='sed -e 1s/^X//'
14281 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14283 # Same as above, but do not quote variable references.
14284 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14286 # Sed substitution to delay expansion of an escaped shell variable in a
14287 # double_quote_subst'ed string.
14288 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14290 # Sed substitution to avoid accidental globbing in evaled expressions
14291 no_glob_subst='s/\*/\\\*/g'
14296 # Global variables:
14297 default_ofile=mklib
14298 can_build_shared=yes
14300 # All known linkers require a `.a' archive for static linking (except MSVC,
14301 # which needs '.lib').
14303 ltmain="$ac_aux_dir/ltmain.sh"
14304 ofile="$default_ofile"
14305 with_gnu_ld="$lt_cv_prog_gnu_ld"
14307 if test -n "$ac_tool_prefix"; then
14308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14309 set dummy ${ac_tool_prefix}ar; ac_word=$2
14310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14312 if test "${ac_cv_prog_AR+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 if test -n "$AR"; then
14316 ac_cv_prog_AR="$AR" # Let the user override the test.
14318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14319 for as_dir in $PATH
14322 test -z "$as_dir" && as_dir=.
14323 for ac_exec_ext in '' $ac_executable_extensions; do
14324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14325 ac_cv_prog_AR="${ac_tool_prefix}ar"
14326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14336 if test -n "$AR"; then
14337 { echo "$as_me:$LINENO: result: $AR" >&5
14338 echo "${ECHO_T}$AR" >&6; }
14340 { echo "$as_me:$LINENO: result: no" >&5
14341 echo "${ECHO_T}no" >&6; }
14346 if test -z "$ac_cv_prog_AR"; then
14348 # Extract the first word of "ar", so it can be a program name with args.
14349 set dummy ar; ac_word=$2
14350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14352 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 if test -n "$ac_ct_AR"; then
14356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359 for as_dir in $PATH
14362 test -z "$as_dir" && as_dir=.
14363 for ac_exec_ext in '' $ac_executable_extensions; do
14364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14365 ac_cv_prog_ac_ct_AR="ar"
14366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14375 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14376 if test -n "$ac_ct_AR"; then
14377 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14378 echo "${ECHO_T}$ac_ct_AR" >&6; }
14380 { echo "$as_me:$LINENO: result: no" >&5
14381 echo "${ECHO_T}no" >&6; }
14384 if test "x$ac_ct_AR" = x; then
14387 case $cross_compiling:$ac_tool_warned in
14389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14390 whose name does not start with the host triplet. If you think this
14391 configuration is useful to you, please write to autoconf@gnu.org." >&5
14392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14393 whose name does not start with the host triplet. If you think this
14394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14395 ac_tool_warned=yes ;;
14400 AR="$ac_cv_prog_AR"
14403 if test -n "$ac_tool_prefix"; then
14404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14408 if test "${ac_cv_prog_RANLIB+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 if test -n "$RANLIB"; then
14412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14415 for as_dir in $PATH
14418 test -z "$as_dir" && as_dir=.
14419 for ac_exec_ext in '' $ac_executable_extensions; do
14420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14431 RANLIB=$ac_cv_prog_RANLIB
14432 if test -n "$RANLIB"; then
14433 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14434 echo "${ECHO_T}$RANLIB" >&6; }
14436 { echo "$as_me:$LINENO: result: no" >&5
14437 echo "${ECHO_T}no" >&6; }
14442 if test -z "$ac_cv_prog_RANLIB"; then
14443 ac_ct_RANLIB=$RANLIB
14444 # Extract the first word of "ranlib", so it can be a program name with args.
14445 set dummy ranlib; ac_word=$2
14446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14448 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 if test -n "$ac_ct_RANLIB"; then
14452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14455 for as_dir in $PATH
14458 test -z "$as_dir" && as_dir=.
14459 for ac_exec_ext in '' $ac_executable_extensions; do
14460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14461 ac_cv_prog_ac_ct_RANLIB="ranlib"
14462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14472 if test -n "$ac_ct_RANLIB"; then
14473 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14474 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14476 { echo "$as_me:$LINENO: result: no" >&5
14477 echo "${ECHO_T}no" >&6; }
14480 if test "x$ac_ct_RANLIB" = x; then
14483 case $cross_compiling:$ac_tool_warned in
14485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14486 whose name does not start with the host triplet. If you think this
14487 configuration is useful to you, please write to autoconf@gnu.org." >&5
14488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14489 whose name does not start with the host triplet. If you think this
14490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14491 ac_tool_warned=yes ;;
14493 RANLIB=$ac_ct_RANLIB
14496 RANLIB="$ac_cv_prog_RANLIB"
14499 if test -n "$ac_tool_prefix"; then
14500 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14501 set dummy ${ac_tool_prefix}strip; ac_word=$2
14502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14504 if test "${ac_cv_prog_STRIP+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14507 if test -n "$STRIP"; then
14508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511 for as_dir in $PATH
14514 test -z "$as_dir" && as_dir=.
14515 for ac_exec_ext in '' $ac_executable_extensions; do
14516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14517 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14527 STRIP=$ac_cv_prog_STRIP
14528 if test -n "$STRIP"; then
14529 { echo "$as_me:$LINENO: result: $STRIP" >&5
14530 echo "${ECHO_T}$STRIP" >&6; }
14532 { echo "$as_me:$LINENO: result: no" >&5
14533 echo "${ECHO_T}no" >&6; }
14538 if test -z "$ac_cv_prog_STRIP"; then
14540 # Extract the first word of "strip", so it can be a program name with args.
14541 set dummy strip; ac_word=$2
14542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 if test -n "$ac_ct_STRIP"; then
14548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14551 for as_dir in $PATH
14554 test -z "$as_dir" && as_dir=.
14555 for ac_exec_ext in '' $ac_executable_extensions; do
14556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14557 ac_cv_prog_ac_ct_STRIP="strip"
14558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14568 if test -n "$ac_ct_STRIP"; then
14569 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14570 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14572 { echo "$as_me:$LINENO: result: no" >&5
14573 echo "${ECHO_T}no" >&6; }
14576 if test "x$ac_ct_STRIP" = x; then
14579 case $cross_compiling:$ac_tool_warned in
14581 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14582 whose name does not start with the host triplet. If you think this
14583 configuration is useful to you, please write to autoconf@gnu.org." >&5
14584 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14585 whose name does not start with the host triplet. If you think this
14586 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14587 ac_tool_warned=yes ;;
14592 STRIP="$ac_cv_prog_STRIP"
14597 old_CFLAGS="$CFLAGS"
14599 # Set sane defaults for various variables
14600 test -z "$AR" && AR=ar
14601 test -z "$AR_FLAGS" && AR_FLAGS=cru
14602 test -z "$AS" && AS=as
14603 test -z "$CC" && CC=cc
14604 test -z "$LTCC" && LTCC=$CC
14605 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14606 test -z "$DLLTOOL" && DLLTOOL=dlltool
14607 test -z "$LD" && LD=ld
14608 test -z "$LN_S" && LN_S="ln -s"
14609 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14610 test -z "$NM" && NM=nm
14611 test -z "$SED" && SED=sed
14612 test -z "$OBJDUMP" && OBJDUMP=objdump
14613 test -z "$RANLIB" && RANLIB=:
14614 test -z "$STRIP" && STRIP=:
14615 test -z "$ac_objext" && ac_objext=o
14617 # Determine commands to create old-style static archives.
14618 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14619 old_postinstall_cmds='chmod 644 $oldlib'
14620 old_postuninstall_cmds=
14622 if test -n "$RANLIB"; then
14625 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14628 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14631 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14634 for cc_temp in $compiler""; do
14636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14642 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14645 # Only perform the check for file, if the check method requires it
14646 case $deplibs_check_method in
14648 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14649 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14650 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14651 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14659 lt_save_MAGIC_CMD="$MAGIC_CMD"
14660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14661 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14662 for ac_dir in $ac_dummy; do
14664 test -z "$ac_dir" && ac_dir=.
14665 if test -f $ac_dir/${ac_tool_prefix}file; then
14666 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14667 if test -n "$file_magic_test_file"; then
14668 case $deplibs_check_method in
14670 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14672 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14673 $EGREP "$file_magic_regex" > /dev/null; then
14678 *** Warning: the command libtool uses to detect shared libraries,
14679 *** $file_magic_cmd, produces output that libtool cannot recognize.
14680 *** The result is that libtool may fail to recognize shared libraries
14681 *** as such. This will affect the creation of libtool libraries that
14682 *** depend on shared libraries, but programs linked with such libtool
14683 *** libraries will work regardless of this problem. Nevertheless, you
14684 *** may want to report the problem to your system manager and/or to
14685 *** bug-libtool@gnu.org
14695 MAGIC_CMD="$lt_save_MAGIC_CMD"
14700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14701 if test -n "$MAGIC_CMD"; then
14702 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14703 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14705 { echo "$as_me:$LINENO: result: no" >&5
14706 echo "${ECHO_T}no" >&6; }
14709 if test -z "$lt_cv_path_MAGIC_CMD"; then
14710 if test -n "$ac_tool_prefix"; then
14711 { echo "$as_me:$LINENO: checking for file" >&5
14712 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14713 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14721 lt_save_MAGIC_CMD="$MAGIC_CMD"
14722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14723 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14724 for ac_dir in $ac_dummy; do
14726 test -z "$ac_dir" && ac_dir=.
14727 if test -f $ac_dir/file; then
14728 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14729 if test -n "$file_magic_test_file"; then
14730 case $deplibs_check_method in
14732 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14735 $EGREP "$file_magic_regex" > /dev/null; then
14740 *** Warning: the command libtool uses to detect shared libraries,
14741 *** $file_magic_cmd, produces output that libtool cannot recognize.
14742 *** The result is that libtool may fail to recognize shared libraries
14743 *** as such. This will affect the creation of libtool libraries that
14744 *** depend on shared libraries, but programs linked with such libtool
14745 *** libraries will work regardless of this problem. Nevertheless, you
14746 *** may want to report the problem to your system manager and/or to
14747 *** bug-libtool@gnu.org
14757 MAGIC_CMD="$lt_save_MAGIC_CMD"
14762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14763 if test -n "$MAGIC_CMD"; then
14764 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14765 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14767 { echo "$as_me:$LINENO: result: no" >&5
14768 echo "${ECHO_T}no" >&6; }
14781 enable_win32_dll=no
14783 # Check whether --enable-libtool-lock was given.
14784 if test "${enable_libtool_lock+set}" = set; then
14785 enableval=$enable_libtool_lock;
14788 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14791 # Check whether --with-pic was given.
14792 if test "${with_pic+set}" = set; then
14793 withval=$with_pic; pic_mode="$withval"
14798 test -z "$pic_mode" && pic_mode=default
14800 # Use C for the default configuration in the libtool script
14804 ac_cpp='$CPP $CPPFLAGS'
14805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14810 # Source file extension for C test sources.
14813 # Object file extension for compiled C test sources.
14817 # Code to be used in simple compile tests
14818 lt_simple_compile_test_code="int some_variable = 0;\n"
14820 # Code to be used in simple link tests
14821 lt_simple_link_test_code='int main(){return(0);}\n'
14824 # If no C compiler was specified, use CC.
14827 # If no C compiler flags were specified, use CFLAGS.
14828 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14830 # Allow CC to be a program name with arguments.
14834 # save warnings/boilerplate of simple test code
14835 ac_outfile=conftest.$ac_objext
14836 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14837 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14838 _lt_compiler_boilerplate=`cat conftest.err`
14841 ac_outfile=conftest.$ac_objext
14842 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14843 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14844 _lt_linker_boilerplate=`cat conftest.err`
14849 lt_prog_compiler_no_builtin_flag=
14851 if test "$GCC" = yes; then
14852 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14855 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14856 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14857 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 lt_cv_prog_compiler_rtti_exceptions=no
14861 ac_outfile=conftest.$ac_objext
14862 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14863 lt_compiler_flag="-fno-rtti -fno-exceptions"
14864 # Insert the option either (1) after the last *FLAGS variable, or
14865 # (2) before a word containing "conftest.", or (3) at the end.
14866 # Note that $ac_compile itself does not contain backslashes and begins
14867 # with a dollar sign (not a hyphen), so the echo should work correctly.
14868 # The option is referenced via a variable to avoid confusing sed.
14869 lt_compile=`echo "$ac_compile" | $SED \
14870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14872 -e 's:$: $lt_compiler_flag:'`
14873 (eval echo "\"\$as_me:14873: $lt_compile\"" >&5)
14874 (eval "$lt_compile" 2>conftest.err)
14876 cat conftest.err >&5
14877 echo "$as_me:14877: \$? = $ac_status" >&5
14878 if (exit $ac_status) && test -s "$ac_outfile"; then
14879 # The compiler can only warn and ignore the option if not recognized
14880 # So say no if there are warnings other than the usual output.
14881 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14884 lt_cv_prog_compiler_rtti_exceptions=yes
14890 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14891 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14893 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14894 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14901 lt_prog_compiler_wl=
14902 lt_prog_compiler_pic=
14903 lt_prog_compiler_static=
14905 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14906 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14908 if test "$GCC" = yes; then
14909 lt_prog_compiler_wl='-Wl,'
14910 lt_prog_compiler_static='-static'
14914 # All AIX code is PIC.
14915 if test "$host_cpu" = ia64; then
14916 # AIX 5 now supports IA64 processor
14917 lt_prog_compiler_static='-Bstatic'
14922 # FIXME: we need at least 68020 code to build shared libraries, but
14923 # adding the `-m68020' flag to GCC prevents building anything better,
14925 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14928 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14929 # PIC is the default for these OSes.
14932 mingw* | pw32* | os2*)
14933 # This hack is so that the source file can tell whether it is being
14934 # built for inclusion in a dll (and should export symbols for example).
14935 lt_prog_compiler_pic='-DDLL_EXPORT'
14938 darwin* | rhapsody*)
14939 # PIC is the default on this platform
14940 # Common symbols not allowed in MH_DYLIB files
14941 lt_prog_compiler_pic='-fno-common'
14945 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14946 # Instead, we relocate shared libraries at runtime.
14950 # Just because we use GCC doesn't mean we suddenly get shared libraries
14951 # on systems that don't support them.
14952 lt_prog_compiler_can_build_shared=no
14957 if test -d /usr/nec; then
14958 lt_prog_compiler_pic=-Kconform_pic
14963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14964 # not for PA HP-UX.
14970 lt_prog_compiler_pic='-fPIC'
14976 lt_prog_compiler_pic='-fPIC'
14980 # PORTME Check for flag to pass linker flags through the system compiler.
14983 lt_prog_compiler_wl='-Wl,'
14984 if test "$host_cpu" = ia64; then
14985 # AIX 5 now supports IA64 processor
14986 lt_prog_compiler_static='-Bstatic'
14988 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14992 # PIC is the default on this platform
14993 # Common symbols not allowed in MH_DYLIB files
14994 case $cc_basename in
14996 lt_prog_compiler_pic='-qnocommon'
14997 lt_prog_compiler_wl='-Wl,'
15002 mingw* | pw32* | os2*)
15003 # This hack is so that the source file can tell whether it is being
15004 # built for inclusion in a dll (and should export symbols for example).
15005 lt_prog_compiler_pic='-DDLL_EXPORT'
15008 hpux9* | hpux10* | hpux11*)
15009 lt_prog_compiler_wl='-Wl,'
15010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15011 # not for PA HP-UX.
15017 lt_prog_compiler_pic='+Z'
15020 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15021 lt_prog_compiler_static='${wl}-a ${wl}archive'
15024 irix5* | irix6* | nonstopux*)
15025 lt_prog_compiler_wl='-Wl,'
15026 # PIC (with -KPIC) is the default.
15027 lt_prog_compiler_static='-non_shared'
15031 lt_prog_compiler_pic='-KPIC'
15032 lt_prog_compiler_static='-Bstatic'
15036 case $cc_basename in
15038 lt_prog_compiler_wl='-Wl,'
15039 lt_prog_compiler_pic='-KPIC'
15040 lt_prog_compiler_static='-static'
15042 pgcc* | pgf77* | pgf90* | pgf95*)
15043 # Portland Group compilers (*not* the Pentium gcc compiler,
15044 # which looks to be a dead project)
15045 lt_prog_compiler_wl='-Wl,'
15046 lt_prog_compiler_pic='-fpic'
15047 lt_prog_compiler_static='-Bstatic'
15050 lt_prog_compiler_wl='-Wl,'
15051 # All Alpha code is PIC.
15052 lt_prog_compiler_static='-non_shared'
15057 osf3* | osf4* | osf5*)
15058 lt_prog_compiler_wl='-Wl,'
15059 # All OSF/1 code is PIC.
15060 lt_prog_compiler_static='-non_shared'
15064 lt_prog_compiler_pic='-KPIC'
15065 lt_prog_compiler_static='-Bstatic'
15066 case $cc_basename in
15067 f77* | f90* | f95*)
15068 lt_prog_compiler_wl='-Qoption ld ';;
15070 lt_prog_compiler_wl='-Wl,';;
15075 lt_prog_compiler_wl='-Qoption ld '
15076 lt_prog_compiler_pic='-PIC'
15077 lt_prog_compiler_static='-Bstatic'
15080 sysv4 | sysv4.2uw2* | sysv4.3*)
15081 lt_prog_compiler_wl='-Wl,'
15082 lt_prog_compiler_pic='-KPIC'
15083 lt_prog_compiler_static='-Bstatic'
15087 if test -d /usr/nec ;then
15088 lt_prog_compiler_pic='-Kconform_pic'
15089 lt_prog_compiler_static='-Bstatic'
15093 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15094 lt_prog_compiler_wl='-Wl,'
15095 lt_prog_compiler_pic='-KPIC'
15096 lt_prog_compiler_static='-Bstatic'
15100 lt_prog_compiler_wl='-Wl,'
15101 lt_prog_compiler_can_build_shared=no
15105 lt_prog_compiler_pic='-pic'
15106 lt_prog_compiler_static='-Bstatic'
15110 lt_prog_compiler_can_build_shared=no
15115 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15116 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15119 # Check to make sure the PIC flag actually works.
15121 if test -n "$lt_prog_compiler_pic"; then
15123 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15124 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15125 if test "${lt_prog_compiler_pic_works+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 lt_prog_compiler_pic_works=no
15129 ac_outfile=conftest.$ac_objext
15130 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15131 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15132 # Insert the option either (1) after the last *FLAGS variable, or
15133 # (2) before a word containing "conftest.", or (3) at the end.
15134 # Note that $ac_compile itself does not contain backslashes and begins
15135 # with a dollar sign (not a hyphen), so the echo should work correctly.
15136 # The option is referenced via a variable to avoid confusing sed.
15137 lt_compile=`echo "$ac_compile" | $SED \
15138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15140 -e 's:$: $lt_compiler_flag:'`
15141 (eval echo "\"\$as_me:15141: $lt_compile\"" >&5)
15142 (eval "$lt_compile" 2>conftest.err)
15144 cat conftest.err >&5
15145 echo "$as_me:15145: \$? = $ac_status" >&5
15146 if (exit $ac_status) && test -s "$ac_outfile"; then
15147 # The compiler can only warn and ignore the option if not recognized
15148 # So say no if there are warnings other than the usual output.
15149 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15152 lt_prog_compiler_pic_works=yes
15158 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15159 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15161 if test x"$lt_prog_compiler_pic_works" = xyes; then
15162 case $lt_prog_compiler_pic in
15164 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15167 lt_prog_compiler_pic=
15168 lt_prog_compiler_can_build_shared=no
15173 # For platforms which do not support PIC, -DPIC is meaningless:
15175 lt_prog_compiler_pic=
15178 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15183 # Check to make sure the static flag actually works.
15185 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15186 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15187 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15188 if test "${lt_prog_compiler_static_works+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 lt_prog_compiler_static_works=no
15192 save_LDFLAGS="$LDFLAGS"
15193 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15194 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15195 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15196 # The linker can only warn and ignore the option if not recognized
15197 # So say no if there are warnings
15198 if test -s conftest.err; then
15199 # Append any errors to the config.log.
15200 cat conftest.err 1>&5
15201 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15203 if diff conftest.exp conftest.er2 >/dev/null; then
15204 lt_prog_compiler_static_works=yes
15207 lt_prog_compiler_static_works=yes
15211 LDFLAGS="$save_LDFLAGS"
15214 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15215 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15217 if test x"$lt_prog_compiler_static_works" = xyes; then
15220 lt_prog_compiler_static=
15224 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15225 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15226 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 lt_cv_prog_compiler_c_o=no
15230 $rm -r conftest 2>/dev/null
15234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15236 lt_compiler_flag="-o out/conftest2.$ac_objext"
15237 # Insert the option either (1) after the last *FLAGS variable, or
15238 # (2) before a word containing "conftest.", or (3) at the end.
15239 # Note that $ac_compile itself does not contain backslashes and begins
15240 # with a dollar sign (not a hyphen), so the echo should work correctly.
15241 lt_compile=`echo "$ac_compile" | $SED \
15242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15244 -e 's:$: $lt_compiler_flag:'`
15245 (eval echo "\"\$as_me:15245: $lt_compile\"" >&5)
15246 (eval "$lt_compile" 2>out/conftest.err)
15248 cat out/conftest.err >&5
15249 echo "$as_me:15249: \$? = $ac_status" >&5
15250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15252 # The compiler can only warn and ignore the option if not recognized
15253 # So say no if there are warnings
15254 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15257 lt_cv_prog_compiler_c_o=yes
15262 # SGI C++ compiler will create directory out/ii_files/ for
15263 # template instantiation
15264 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15265 $rm out/* && rmdir out
15271 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15272 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15275 hard_links="nottested"
15276 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15277 # do not overwrite the value of need_locks provided by the user
15278 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15279 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15284 ln conftest.a conftest.b 2>&5 || hard_links=no
15285 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15286 { echo "$as_me:$LINENO: result: $hard_links" >&5
15287 echo "${ECHO_T}$hard_links" >&6; }
15288 if test "$hard_links" = no; then
15289 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15290 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15297 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15298 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15301 allow_undefined_flag=
15302 enable_shared_with_static_runtimes=no
15304 archive_expsym_cmds=
15305 old_archive_From_new_cmds=
15306 old_archive_from_expsyms_cmds=
15307 export_dynamic_flag_spec=
15308 whole_archive_flag_spec=
15309 thread_safe_flag_spec=
15310 hardcode_libdir_flag_spec=
15311 hardcode_libdir_flag_spec_ld=
15312 hardcode_libdir_separator=
15314 hardcode_minus_L=no
15315 hardcode_shlibpath_var=unsupported
15316 link_all_deplibs=unknown
15317 hardcode_automatic=no
15319 module_expsym_cmds=
15320 always_export_symbols=no
15321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15322 # include_expsyms should be a list of space-separated symbols to be *always*
15323 # included in the symbol list
15325 # exclude_expsyms can be an extended regexp of symbols to exclude
15326 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15327 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15328 # as well as any symbol that contains `d'.
15329 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15330 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15331 # platforms (ab)use it in PIC code, but their linkers get confused if
15332 # the symbol is explicitly referenced. Since portable code cannot
15333 # rely on this symbol name, it's probably fine to never include it in
15334 # preloaded symbol tables.
15335 extract_expsyms_cmds=
15336 # Just being paranoid about ensuring that cc_basename is set.
15337 for cc_temp in $compiler""; do
15339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15345 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15348 cygwin* | mingw* | pw32*)
15349 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15350 # When not using gcc, we currently assume that we are using
15351 # Microsoft Visual C++.
15352 if test "$GCC" != yes; then
15357 # we just hope/assume this is gcc and not c89 (= MSVC++)
15366 if test "$with_gnu_ld" = yes; then
15367 # If archive_cmds runs LD, not CC, wlarc should be empty
15370 # Set some defaults for GNU ld with shared library support. These
15371 # are reset later if shared libraries are not supported. Putting them
15372 # here allows them to be overridden if necessary.
15373 runpath_var=LD_RUN_PATH
15374 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15375 export_dynamic_flag_spec='${wl}--export-dynamic'
15376 # ancient GNU ld didn't support --whole-archive et. al.
15377 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15378 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15380 whole_archive_flag_spec=
15382 supports_anon_versioning=no
15383 case `$LD -v 2>/dev/null` in
15384 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15385 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15386 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15387 *\ 2.11.*) ;; # other 2.11 versions
15388 *) supports_anon_versioning=yes ;;
15391 # See if GNU ld supports shared libraries.
15393 aix3* | aix4* | aix5*)
15394 # On AIX/PPC, the GNU linker is very broken
15395 if test "$host_cpu" != ia64; then
15399 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15400 *** to be unable to reliably create shared libraries on AIX.
15401 *** Therefore, libtool is disabling shared libraries support. If you
15402 *** really care for shared libraries, you may want to modify your PATH
15403 *** so that a non-GNU linker is found, and then restart.
15410 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)'
15411 hardcode_libdir_flag_spec='-L$libdir'
15412 hardcode_minus_L=yes
15414 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15415 # that the semantics of dynamic libraries on AmigaOS, at least up
15416 # to version 4, is to share data among multiple programs linked
15417 # with the same dynamic library. Since this doesn't match the
15418 # behavior of shared libraries on other platforms, we can't use
15424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15425 allow_undefined_flag=unsupported
15426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15427 # support --undefined. This deserves some investigation. FIXME
15428 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15434 cygwin* | mingw* | pw32*)
15435 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15436 # as there is no search path for DLLs.
15437 hardcode_libdir_flag_spec='-L$libdir'
15438 allow_undefined_flag=unsupported
15439 always_export_symbols=no
15440 enable_shared_with_static_runtimes=yes
15441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15443 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15445 # If the export-symbols file already is a .def file (1st line
15446 # is EXPORTS), use it as is; otherwise, prepend...
15447 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15448 cp $export_symbols $output_objdir/$soname.def;
15450 echo EXPORTS > $output_objdir/$soname.def;
15451 cat $export_symbols >> $output_objdir/$soname.def;
15453 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15461 hardcode_shlibpath_var=no
15462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15463 export_dynamic_flag_spec='${wl}-E'
15464 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15465 # Instead, shared libraries are loaded at an image base (0x10000000 by
15466 # default) and relocated if they conflict, which is a slow very memory
15467 # consuming and fragmenting process. To avoid this, we pick a random,
15468 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15469 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15471 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'
15475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15477 case $cc_basename,$host_cpu in
15478 pgcc*) # Portland Group C compiler
15479 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'
15480 tmp_addflag=' $pic_flag'
15482 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15483 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'
15484 tmp_addflag=' $pic_flag -Mnomain' ;;
15485 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15486 tmp_addflag=' -i_dynamic' ;;
15487 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15488 tmp_addflag=' -i_dynamic -nofor_main' ;;
15489 ifc* | ifort*) # Intel Fortran compiler
15490 tmp_addflag=' -nofor_main' ;;
15492 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15494 if test $supports_anon_versioning = yes; then
15495 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15496 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15497 $echo "local: *; };" >> $output_objdir/$libname.ver~
15498 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15507 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15516 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15520 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15521 *** create shared libraries on Solaris systems. Therefore, libtool
15522 *** is disabling shared libraries support. We urge you to upgrade GNU
15523 *** binutils to release 2.9.1 or newer. Another option is to modify
15524 *** your PATH or compiler configuration so that the native linker is
15525 *** used, and then restart.
15528 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15537 case `$LD -v 2>&1` in
15538 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15542 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15543 *** reliably create shared libraries on SCO systems. Therefore, libtool
15544 *** is disabling shared libraries support. We urge you to upgrade GNU
15545 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15546 *** your PATH or compiler configuration so that the native linker is
15547 *** used, and then restart.
15552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15553 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15555 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15564 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15566 hardcode_direct=yes
15567 hardcode_shlibpath_var=no
15571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15580 if test "$ld_shlibs" = no; then
15582 hardcode_libdir_flag_spec=
15583 export_dynamic_flag_spec=
15584 whole_archive_flag_spec=
15587 # PORTME fill in a description of your system's linker (not GNU ld)
15590 allow_undefined_flag=unsupported
15591 always_export_symbols=yes
15592 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'
15593 # Note: this linker hardcodes the directories in LIBPATH if there
15594 # are no directories specified by -L.
15595 hardcode_minus_L=yes
15596 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15597 # Neither direct hardcoding nor static linking is supported with a
15599 hardcode_direct=unsupported
15604 if test "$host_cpu" = ia64; then
15605 # On IA64, the linker does run time linking by default, so we don't
15606 # have to do anything special.
15607 aix_use_runtimelinking=no
15608 exp_sym_flag='-Bexport'
15611 # If we're using GNU nm, then we don't want the "-C" option.
15612 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15613 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15614 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'
15616 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'
15618 aix_use_runtimelinking=no
15620 # Test if we are trying to use run time linking or normal
15621 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15622 # need to do runtime linking.
15623 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15624 for ld_flag in $LDFLAGS; do
15625 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15626 aix_use_runtimelinking=yes
15633 exp_sym_flag='-bexport'
15634 no_entry_flag='-bnoentry'
15637 # When large executables or shared objects are built, AIX ld can
15638 # have problems creating the table of contents. If linking a library
15639 # or program results in "error TOC overflow" add -mminimal-toc to
15640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15644 hardcode_direct=yes
15645 hardcode_libdir_separator=':'
15646 link_all_deplibs=yes
15648 if test "$GCC" = yes; then
15649 case $host_os in aix4.[012]|aix4.[012].*)
15650 # We only want to do this on AIX 4.2 and lower, the check
15651 # below for broken collect2 doesn't work under 4.3+
15652 collect2name=`${CC} -print-prog-name=collect2`
15653 if test -f "$collect2name" && \
15654 strings "$collect2name" | grep resolve_lib_name >/dev/null
15656 # We have reworked collect2
15657 hardcode_direct=yes
15659 # We have old collect2
15660 hardcode_direct=unsupported
15661 # It fails to find uninstalled libraries when the uninstalled
15662 # path is not listed in the libpath. Setting hardcode_minus_L
15663 # to unsupported forces relinking
15664 hardcode_minus_L=yes
15665 hardcode_libdir_flag_spec='-L$libdir'
15666 hardcode_libdir_separator=
15670 shared_flag='-shared'
15671 if test "$aix_use_runtimelinking" = yes; then
15672 shared_flag="$shared_flag "'${wl}-G'
15676 if test "$host_cpu" = ia64; then
15677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15678 # chokes on -Wl,-G. The following line is correct:
15681 if test "$aix_use_runtimelinking" = yes; then
15682 shared_flag='${wl}-G'
15684 shared_flag='${wl}-bM:SRE'
15689 # It seems that -bexpall does not export symbols beginning with
15690 # underscore (_), so it is better to generate a list of symbols to export.
15691 always_export_symbols=yes
15692 if test "$aix_use_runtimelinking" = yes; then
15693 # Warning - without using the other runtime loading flags (-brtl),
15694 # -berok will link without error, but may produce a broken library.
15695 allow_undefined_flag='-berok'
15696 # Determine the default libpath from the value encoded in an empty executable.
15697 cat >conftest.$ac_ext <<_ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15712 rm -f conftest.$ac_objext conftest$ac_exeext
15713 if { (ac_try="$ac_link"
15714 case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_link") 2>conftest.er1
15721 grep -v '^ *+' conftest.er1 >conftest.err
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15727 { (case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_try") 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; } &&
15736 { ac_try='test -s conftest$ac_exeext'
15737 { (case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_try") 2>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15749 # Check for a 64-bit object if we didn't find anything.
15750 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; }
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15759 rm -f core conftest.err conftest.$ac_objext \
15760 conftest$ac_exeext conftest.$ac_ext
15761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15763 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15764 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"
15766 if test "$host_cpu" = ia64; then
15767 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15768 allow_undefined_flag="-z nodefs"
15769 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"
15771 # Determine the default libpath from the value encoded in an empty executable.
15772 cat >conftest.$ac_ext <<_ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15787 rm -f conftest.$ac_objext conftest$ac_exeext
15788 if { (ac_try="$ac_link"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_link") 2>conftest.er1
15796 grep -v '^ *+' conftest.er1 >conftest.err
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
15801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15802 { (case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_try") 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest$ac_exeext'
15812 { (case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_try") 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15824 # Check for a 64-bit object if we didn't find anything.
15825 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; }
15828 echo "$as_me: failed program was:" >&5
15829 sed 's/^/| /' conftest.$ac_ext >&5
15834 rm -f core conftest.err conftest.$ac_objext \
15835 conftest$ac_exeext conftest.$ac_ext
15836 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15838 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15839 # Warning - without using the other run time loading flags,
15840 # -berok will link without error, but may produce a broken library.
15841 no_undefined_flag=' ${wl}-bernotok'
15842 allow_undefined_flag=' ${wl}-berok'
15843 # Exported symbols can be pulled into shared objects from archives
15844 whole_archive_flag_spec='$convenience'
15845 archive_cmds_need_lc=yes
15846 # This is similar to how AIX traditionally builds its shared libraries.
15847 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'
15853 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)'
15854 hardcode_libdir_flag_spec='-L$libdir'
15855 hardcode_minus_L=yes
15856 # see comment about different semantics on the GNU ld section
15861 export_dynamic_flag_spec=-rdynamic
15864 cygwin* | mingw* | pw32*)
15865 # When not using gcc, we currently assume that we are using
15866 # Microsoft Visual C++.
15867 # hardcode_libdir_flag_spec is actually meaningless, as there is
15868 # no search path for DLLs.
15869 hardcode_libdir_flag_spec=' '
15870 allow_undefined_flag=unsupported
15871 # Tell ltmain to make .lib files, not .a files.
15873 # Tell ltmain to make .dll files, not .so files.
15875 # FIXME: Setting linknames here is a bad hack.
15876 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15877 # The linker will automatically build a .lib file if we build a DLL.
15878 old_archive_From_new_cmds='true'
15879 # FIXME: Should let the user specify the lib program.
15880 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15881 fix_srcfile_path='`cygpath -w "$srcfile"`'
15882 enable_shared_with_static_runtimes=yes
15885 darwin* | rhapsody*)
15887 rhapsody* | darwin1.[012])
15888 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15891 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15892 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15894 case ${MACOSX_DEPLOYMENT_TARGET} in
15896 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15899 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15905 archive_cmds_need_lc=no
15907 hardcode_automatic=yes
15908 hardcode_shlibpath_var=unsupported
15909 whole_archive_flag_spec=''
15910 link_all_deplibs=yes
15911 if test "$GCC" = yes ; then
15912 output_verbose_link_cmd='echo'
15913 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15914 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15915 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15916 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}'
15917 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}'
15919 case $cc_basename in
15921 output_verbose_link_cmd='echo'
15922 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15923 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15924 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15925 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}'
15926 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}'
15936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15937 hardcode_libdir_flag_spec='-L$libdir'
15938 hardcode_shlibpath_var=no
15945 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15946 # support. Future versions do this automatically, but an explicit c++rt0.o
15947 # does not break anything, and helps significantly (at the cost of a little
15950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15951 hardcode_libdir_flag_spec='-R$libdir'
15952 hardcode_direct=yes
15953 hardcode_shlibpath_var=no
15956 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15959 hardcode_direct=yes
15960 hardcode_minus_L=yes
15961 hardcode_shlibpath_var=no
15964 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15965 freebsd* | kfreebsd*-gnu | dragonfly*)
15966 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15967 hardcode_libdir_flag_spec='-R$libdir'
15968 hardcode_direct=yes
15969 hardcode_shlibpath_var=no
15973 if test "$GCC" = yes; then
15974 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'
15976 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'
15978 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15979 hardcode_libdir_separator=:
15980 hardcode_direct=yes
15982 # hardcode_minus_L: Not really in the search PATH,
15983 # but as the default location of the library.
15984 hardcode_minus_L=yes
15985 export_dynamic_flag_spec='${wl}-E'
15989 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15990 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15994 if test "$with_gnu_ld" = no; then
15995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15996 hardcode_libdir_separator=:
15998 hardcode_direct=yes
15999 export_dynamic_flag_spec='${wl}-E'
16001 # hardcode_minus_L: Not really in the search PATH,
16002 # but as the default location of the library.
16003 hardcode_minus_L=yes
16008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16011 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16014 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16017 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16023 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16026 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16029 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16033 if test "$with_gnu_ld" = no; then
16034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16035 hardcode_libdir_separator=:
16039 hardcode_libdir_flag_spec_ld='+b $libdir'
16041 hardcode_shlibpath_var=no
16044 hardcode_direct=yes
16045 export_dynamic_flag_spec='${wl}-E'
16047 # hardcode_minus_L: Not really in the search PATH,
16048 # but as the default location of the library.
16049 hardcode_minus_L=yes
16055 irix5* | irix6* | nonstopux*)
16056 if test "$GCC" = yes; then
16057 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'
16059 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'
16060 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16063 hardcode_libdir_separator=:
16064 link_all_deplibs=yes
16068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16071 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16073 hardcode_libdir_flag_spec='-R$libdir'
16074 hardcode_direct=yes
16075 hardcode_shlibpath_var=no
16079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16080 hardcode_direct=yes
16081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16082 hardcode_libdir_separator=:
16083 hardcode_shlibpath_var=no
16087 hardcode_direct=yes
16088 hardcode_shlibpath_var=no
16089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16093 export_dynamic_flag_spec='${wl}-E'
16096 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16098 hardcode_libdir_flag_spec='-R$libdir'
16101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16109 hardcode_libdir_flag_spec='-L$libdir'
16110 hardcode_minus_L=yes
16111 allow_undefined_flag=unsupported
16112 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'
16113 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16117 if test "$GCC" = yes; then
16118 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16119 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'
16121 allow_undefined_flag=' -expect_unresolved \*'
16122 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'
16124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16125 hardcode_libdir_separator=:
16128 osf4* | osf5*) # as osf3* with the addition of -msym flag
16129 if test "$GCC" = yes; then
16130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16131 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'
16132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16134 allow_undefined_flag=' -expect_unresolved \*'
16135 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'
16136 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16137 $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'
16139 # Both c and cxx compiler support -rpath directly
16140 hardcode_libdir_flag_spec='-rpath $libdir'
16142 hardcode_libdir_separator=:
16146 no_undefined_flag=' -z text'
16147 if test "$GCC" = yes; then
16149 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16150 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16151 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16154 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16155 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16156 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16158 hardcode_libdir_flag_spec='-R$libdir'
16159 hardcode_shlibpath_var=no
16161 solaris2.[0-5] | solaris2.[0-5].*) ;;
16163 # The compiler driver will combine linker options so we
16164 # cannot just pass the convience library names through
16165 # without $wl, iff we do not link with $LD.
16166 # Luckily, gcc supports the same syntax we need for Sun Studio.
16167 # Supported since Solaris 2.6 (maybe 2.5.1?)
16170 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16172 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' ;;
16175 link_all_deplibs=yes
16179 if test "x$host_vendor" = xsequent; then
16180 # Use $CC to link under sequent, because it throws in some extra .o
16181 # files that make .init and .fini sections work.
16182 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16184 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16186 hardcode_libdir_flag_spec='-L$libdir'
16187 hardcode_direct=yes
16188 hardcode_minus_L=yes
16189 hardcode_shlibpath_var=no
16193 case $host_vendor in
16195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_direct=yes # is this really true???
16199 ## LD is ld it makes a PLAMLIB
16200 ## CC just makes a GrossModule.
16201 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16202 reload_cmds='$CC -r -o $output$reload_objs'
16206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16207 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16210 runpath_var='LD_RUN_PATH'
16211 hardcode_shlibpath_var=no
16215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_shlibpath_var=no
16217 export_dynamic_flag_spec='-Bexport'
16221 if test -d /usr/nec; then
16222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16223 hardcode_shlibpath_var=no
16224 runpath_var=LD_RUN_PATH
16225 hardcode_runpath_var=yes
16230 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16231 no_undefined_flag='${wl}-z,text'
16232 archive_cmds_need_lc=no
16233 hardcode_shlibpath_var=no
16234 runpath_var='LD_RUN_PATH'
16236 if test "$GCC" = yes; then
16237 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16238 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16240 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16241 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16245 sysv5* | sco3.2v5* | sco5v6*)
16246 # Note: We can NOT use -z defs as we might desire, because we do not
16247 # link with -lc, and that would cause any symbols used from libc to
16248 # always be unresolved, which means just about no library would
16249 # ever link correctly. If we're not using GNU ld we use -z text
16250 # though, which does catch some bad symbols but isn't as heavy-handed
16252 no_undefined_flag='${wl}-z,text'
16253 allow_undefined_flag='${wl}-z,nodefs'
16254 archive_cmds_need_lc=no
16255 hardcode_shlibpath_var=no
16256 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16257 hardcode_libdir_separator=':'
16258 link_all_deplibs=yes
16259 export_dynamic_flag_spec='${wl}-Bexport'
16260 runpath_var='LD_RUN_PATH'
16262 if test "$GCC" = yes; then
16263 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16264 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16266 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16267 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16273 hardcode_libdir_flag_spec='-L$libdir'
16274 hardcode_shlibpath_var=no
16283 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16284 echo "${ECHO_T}$ld_shlibs" >&6; }
16285 test "$ld_shlibs" = no && can_build_shared=no
16288 # Do we need to explicitly link libc?
16290 case "x$archive_cmds_need_lc" in
16292 # Assume -lc should be added
16293 archive_cmds_need_lc=yes
16295 if test "$enable_shared" = yes && test "$GCC" = yes; then
16296 case $archive_cmds in
16298 # FIXME: we may have to deal with multi-command sequences.
16301 # Test whether the compiler implicitly links with -lc since on some
16302 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16303 # to ld, don't add -lc before -lgcc.
16304 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16305 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } 2>conftest.err; then
16316 libobjs=conftest.$ac_objext
16318 wl=$lt_prog_compiler_wl
16319 pic_flag=$lt_prog_compiler_pic
16325 lt_save_allow_undefined_flag=$allow_undefined_flag
16326 allow_undefined_flag=
16327 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16328 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }
16333 archive_cmds_need_lc=no
16335 archive_cmds_need_lc=yes
16337 allow_undefined_flag=$lt_save_allow_undefined_flag
16339 cat conftest.err 1>&5
16342 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16343 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16350 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16351 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16352 library_names_spec=
16353 libname_spec='lib$name'
16357 postuninstall_cmds=
16361 shlibpath_overrides_runpath=unknown
16363 dynamic_linker="$host_os ld.so"
16364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16365 if test "$GCC" = yes; then
16366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16367 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16368 # if the path contains ";" then we assume it to be the separator
16369 # otherwise default to the standard path separator (i.e. ":") - it is
16370 # assumed that no part of a normal pathname contains ";" but that should
16371 # okay in the real world where ";" in dirpaths is itself problematic.
16372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16379 need_lib_prefix=unknown
16380 hardcode_into_libs=no
16382 # when you set need_version to no, make sure it does not cause -set_version
16383 # flags to be left without arguments
16384 need_version=unknown
16389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16390 shlibpath_var=LIBPATH
16392 # AIX 3 has no versioning support, so we append a major version to the name.
16393 soname_spec='${libname}${release}${shared_ext}$major'
16400 hardcode_into_libs=yes
16401 if test "$host_cpu" = ia64; then
16402 # AIX 5 supports IA64
16403 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16404 shlibpath_var=LD_LIBRARY_PATH
16406 # With GCC up to 2.95.x, collect2 would create an import file
16407 # for dependence libraries. The import file would start with
16408 # the line `#! .'. This would cause the generated library to
16409 # depend on `.', always an invalid library. This was fixed in
16410 # development snapshots of GCC prior to 3.0.
16412 aix4 | aix4.[01] | aix4.[01].*)
16413 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16415 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16418 can_build_shared=no
16422 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16423 # soname into executable. Probably we can add versioning support to
16424 # collect2, so additional links can be useful in future.
16425 if test "$aix_use_runtimelinking" = yes; then
16426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16427 # instead of lib<name>.a to let people know that these are not
16428 # typical AIX shared libraries.
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431 # We preserve .a as extension for shared libraries through AIX4.2
16432 # and later when we are not doing run time linking.
16433 library_names_spec='${libname}${release}.a $libname.a'
16434 soname_spec='${libname}${release}${shared_ext}$major'
16436 shlibpath_var=LIBPATH
16441 library_names_spec='$libname.ixlibrary $libname.a'
16442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16443 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'
16447 library_names_spec='${libname}${shared_ext}'
16448 dynamic_linker="$host_os ld.so"
16449 shlibpath_var=LIBRARY_PATH
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16458 shlibpath_var=LD_LIBRARY_PATH
16459 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16460 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16461 # the default ld.so.conf also contains /usr/contrib/lib and
16462 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16463 # libtool to hard-code these into programs
16466 cygwin* | mingw* | pw32*)
16467 version_type=windows
16472 case $GCC,$host_os in
16473 yes,cygwin* | yes,mingw* | yes,pw32*)
16474 library_names_spec='$libname.dll.a'
16475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16476 postinstall_cmds='base_file=`basename \${file}`~
16477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16478 dldir=$destdir/`dirname \$dlpath`~
16479 test -d \$dldir || mkdir -p \$dldir~
16480 $install_prog $dir/$dlname \$dldir/$dlname~
16481 chmod a+x \$dldir/$dlname'
16482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16483 dlpath=$dir/\$dldll~
16485 shlibpath_overrides_runpath=yes
16489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16491 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16494 # MinGW DLLs use traditional 'lib' prefix
16495 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16496 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16497 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16498 # It is most probably a Windows format PATH printed by
16499 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16500 # path with ; separators, and with drive letters. We can handle the
16501 # drive letters (cygwin fileutils understands them), so leave them,
16502 # especially as we might pass files found there to a mingw objdump,
16503 # which wouldn't understand a cygwinified path. Ahh.
16504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16510 # pw32 DLLs use 'pw' prefix rather than 'lib'
16511 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16517 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16520 dynamic_linker='Win32 ld.exe'
16521 # FIXME: first we should search . and the directory the executable is in
16525 darwin* | rhapsody*)
16526 dynamic_linker="$host_os dyld"
16527 version_type=darwin
16530 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16531 soname_spec='${libname}${release}${major}$shared_ext'
16532 shlibpath_overrides_runpath=yes
16533 shlibpath_var=DYLD_LIBRARY_PATH
16534 shrext_cmds='.dylib'
16535 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16536 if test "$GCC" = yes; then
16537 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"`
16539 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16549 soname_spec='${libname}${release}${shared_ext}$major'
16550 shlibpath_var=LD_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 shlibpath_var=LD_LIBRARY_PATH
16564 shlibpath_overrides_runpath=no
16565 hardcode_into_libs=yes
16566 dynamic_linker='GNU ld.so'
16569 freebsd* | dragonfly*)
16570 # DragonFly does not have aout. When/if they implement a new
16571 # versioning mechanism, adjust this.
16572 if test -x /usr/bin/objformat; then
16573 objformat=`/usr/bin/objformat`
16576 freebsd[123]*) objformat=aout ;;
16577 *) objformat=elf ;;
16580 version_type=freebsd-$objformat
16581 case $version_type in
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16592 shlibpath_var=LD_LIBRARY_PATH
16595 shlibpath_overrides_runpath=yes
16597 freebsd3.[01]* | freebsdelf3.[01]*)
16598 shlibpath_overrides_runpath=yes
16599 hardcode_into_libs=yes
16601 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16602 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16603 shlibpath_overrides_runpath=no
16604 hardcode_into_libs=yes
16606 freebsd*) # from 4.6 on
16607 shlibpath_overrides_runpath=yes
16608 hardcode_into_libs=yes
16617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16618 soname_spec='${libname}${release}${shared_ext}$major'
16619 shlibpath_var=LD_LIBRARY_PATH
16620 hardcode_into_libs=yes
16623 hpux9* | hpux10* | hpux11*)
16624 # Give a soname corresponding to the major version so that dld.sl refuses to
16625 # link against other versions.
16632 hardcode_into_libs=yes
16633 dynamic_linker="$host_os dld.so"
16634 shlibpath_var=LD_LIBRARY_PATH
16635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16637 soname_spec='${libname}${release}${shared_ext}$major'
16638 if test "X$HPUX_IA64_MODE" = X32; then
16639 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16641 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16647 hardcode_into_libs=yes
16648 dynamic_linker="$host_os dld.sl"
16649 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652 soname_spec='${libname}${release}${shared_ext}$major'
16653 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16658 dynamic_linker="$host_os dld.sl"
16659 shlibpath_var=SHLIB_PATH
16660 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16665 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16666 postinstall_cmds='chmod 555 $lib'
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16676 shlibpath_var=LD_LIBRARY_PATH
16677 shlibpath_overrides_runpath=no
16678 hardcode_into_libs=yes
16681 irix5* | irix6* | nonstopux*)
16683 nonstopux*) version_type=nonstopux ;;
16685 if test "$lt_cv_prog_gnu_ld" = yes; then
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16696 irix5* | nonstopux*)
16697 libsuff= shlibsuff=
16700 case $LD in # libtool.m4 will add one of these switches to LD
16701 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16702 libsuff= shlibsuff= libmagic=32-bit;;
16703 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16704 libsuff=32 shlibsuff=N32 libmagic=N32;;
16705 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16706 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16707 *) libsuff= shlibsuff= libmagic=never-match;;
16711 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16712 shlibpath_overrides_runpath=no
16713 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16714 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16715 hardcode_into_libs=yes
16718 # No shared lib support for Linux oldld, aout, or coff.
16719 linux*oldld* | linux*aout* | linux*coff*)
16723 # This must be Linux ELF.
16728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16729 soname_spec='${libname}${release}${shared_ext}$major'
16730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=no
16733 # This implies no fast_install, which is unacceptable.
16734 # Some rework will be needed to allow for fast_install
16735 # before this can be enabled.
16736 hardcode_into_libs=yes
16738 # Append ld.so.conf contents to the search path
16739 if test -f /etc/ld.so.conf; then
16740 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' ' '`
16741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16744 # We used to test for /lib/ld.so.1 and disable shared libraries on
16745 # powerpc, because MkLinux only supported shared libraries with the
16746 # GNU dynamic linker. Since this was broken with cross compilers,
16747 # most powerpc-linux boxes support dynamic linking these days and
16748 # people can always --disable-shared, the test was removed, and we
16749 # assume the GNU/Linux dynamic linker is in use.
16750 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
16760 shlibpath_overrides_runpath=no
16761 hardcode_into_libs=yes
16762 dynamic_linker='GNU ld.so'
16769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16772 dynamic_linker='NetBSD (a.out) ld.so'
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 dynamic_linker='NetBSD ld.elf_so'
16778 shlibpath_var=LD_LIBRARY_PATH
16779 shlibpath_overrides_runpath=yes
16780 hardcode_into_libs=yes
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16786 shlibpath_var=LD_LIBRARY_PATH
16787 shlibpath_overrides_runpath=yes
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 soname_spec='${libname}${release}${shared_ext}$major'
16796 shlibpath_var=LD_LIBRARY_PATH
16797 shlibpath_overrides_runpath=yes
16802 sys_lib_dlsearch_path_spec="/usr/lib"
16804 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16806 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16807 *) need_version=no ;;
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16814 openbsd2.[89] | openbsd2.[89].*)
16815 shlibpath_overrides_runpath=no
16818 shlibpath_overrides_runpath=yes
16822 shlibpath_overrides_runpath=yes
16827 libname_spec='$name'
16830 library_names_spec='$libname${shared_ext} $libname.a'
16831 dynamic_linker='OS/2 ld.exe'
16832 shlibpath_var=LIBPATH
16835 osf3* | osf4* | osf5*)
16839 soname_spec='${libname}${release}${shared_ext}$major'
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 shlibpath_overrides_runpath=yes
16854 hardcode_into_libs=yes
16855 # ldd complains unless libraries are executable
16856 postinstall_cmds='chmod +x $lib'
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 shlibpath_overrides_runpath=yes
16865 if test "$with_gnu_ld" = yes; then
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 case $host_vendor in
16878 shlibpath_overrides_runpath=no
16880 export_dynamic_flag_spec='${wl}-Blargedynsym'
16881 runpath_var=LD_RUN_PATH
16889 shlibpath_overrides_runpath=no
16890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16896 if test -d /usr/nec ;then
16898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16899 soname_spec='$libname${shared_ext}.$major'
16900 shlibpath_var=LD_LIBRARY_PATH
16904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16905 version_type=freebsd-elf
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 hardcode_into_libs=yes
16912 if test "$with_gnu_ld" = yes; then
16913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16914 shlibpath_overrides_runpath=no
16916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16917 shlibpath_overrides_runpath=yes
16920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16924 sys_lib_dlsearch_path_spec='/usr/lib'
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16938 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16939 echo "${ECHO_T}$dynamic_linker" >&6; }
16940 test "$dynamic_linker" = no && can_build_shared=no
16942 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16943 if test "$GCC" = yes; then
16944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16947 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16948 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16950 if test -n "$hardcode_libdir_flag_spec" || \
16951 test -n "$runpath_var" || \
16952 test "X$hardcode_automatic" = "Xyes" ; then
16954 # We can hardcode non-existant directories.
16955 if test "$hardcode_direct" != no &&
16956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16957 # have to relink, otherwise we might link with an installed library
16958 # when we should be linking with a yet-to-be-installed one
16959 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16960 test "$hardcode_minus_L" != no; then
16961 # Linking always hardcodes the temporary library directory.
16962 hardcode_action=relink
16964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16965 hardcode_action=immediate
16968 # We cannot hardcode anything, or else we can only hardcode existing
16970 hardcode_action=unsupported
16972 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16973 echo "${ECHO_T}$hardcode_action" >&6; }
16975 if test "$hardcode_action" = relink; then
16976 # Fast installation is not supported
16977 enable_fast_install=no
16978 elif test "$shlibpath_overrides_runpath" = yes ||
16979 test "$enable_shared" = no; then
16980 # Fast installation is not necessary
16981 enable_fast_install=needless
16986 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16987 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16988 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16989 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16990 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16991 { echo "$as_me:$LINENO: result: yes" >&5
16992 echo "${ECHO_T}yes" >&6; }
16994 # FIXME - insert some real tests, host_os isn't really good enough
16997 if test -n "$STRIP" ; then
16998 striplib="$STRIP -x"
16999 { echo "$as_me:$LINENO: result: yes" >&5
17000 echo "${ECHO_T}yes" >&6; }
17002 { echo "$as_me:$LINENO: result: no" >&5
17003 echo "${ECHO_T}no" >&6; }
17007 { echo "$as_me:$LINENO: result: no" >&5
17008 echo "${ECHO_T}no" >&6; }
17013 if test "x$enable_dlopen" != xyes; then
17014 enable_dlopen=unknown
17015 enable_dlopen_self=unknown
17016 enable_dlopen_self_static=unknown
17023 lt_cv_dlopen="load_add_on"
17025 lt_cv_dlopen_self=yes
17029 lt_cv_dlopen="LoadLibrary"
17034 lt_cv_dlopen="dlopen"
17039 # if libdl is installed we need to link against it
17040 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17041 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17042 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 ac_check_lib_save_LIBS=$LIBS
17047 cat >conftest.$ac_ext <<_ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17054 /* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (ac_try="$ac_link"
17071 case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_link") 2>conftest.er1
17078 grep -v '^ *+' conftest.er1 >conftest.err
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } &&
17083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17084 { (case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_try") 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest$ac_exeext'
17094 { (case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_cv_lib_dl_dlopen=yes
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 ac_cv_lib_dl_dlopen=no
17111 rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
17113 LIBS=$ac_check_lib_save_LIBS
17115 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17116 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17117 if test $ac_cv_lib_dl_dlopen = yes; then
17118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17121 lt_cv_dlopen="dyld"
17123 lt_cv_dlopen_self=yes
17130 { echo "$as_me:$LINENO: checking for shl_load" >&5
17131 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17132 if test "${ac_cv_func_shl_load+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 cat >conftest.$ac_ext <<_ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17143 #define shl_load innocuous_shl_load
17145 /* System header to define __stub macros and hopefully few prototypes,
17146 which can conflict with char shl_load (); below.
17147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17148 <limits.h> exists even on freestanding compilers. */
17151 # include <limits.h>
17153 # include <assert.h>
17158 /* Override any GCC internal prototype to avoid an error.
17159 Use char because int might match the return type of a GCC
17160 builtin and then its argument prototype would still apply. */
17165 /* The GNU C library defines this for functions which it implements
17166 to always fail with ENOSYS. Some functions are actually named
17167 something starting with __ and the normal name is an alias. */
17168 #if defined __stub_shl_load || defined __stub___shl_load
17175 return shl_load ();
17180 rm -f conftest.$ac_objext conftest$ac_exeext
17181 if { (ac_try="$ac_link"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_link") 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195 { (case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_try") 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest$ac_exeext'
17205 { (case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_try") 2>&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 ac_cv_func_shl_load=yes
17216 echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17219 ac_cv_func_shl_load=no
17222 rm -f core conftest.err conftest.$ac_objext \
17223 conftest$ac_exeext conftest.$ac_ext
17225 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17226 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17227 if test $ac_cv_func_shl_load = yes; then
17228 lt_cv_dlopen="shl_load"
17230 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17231 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17232 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 ac_check_lib_save_LIBS=$LIBS
17237 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17254 return shl_load ();
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_link") 2>conftest.er1
17268 grep -v '^ *+' conftest.er1 >conftest.err
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } &&
17273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17274 { (case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_try") 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest$ac_exeext'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_cv_lib_dld_shl_load=yes
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 ac_cv_lib_dld_shl_load=no
17301 rm -f core conftest.err conftest.$ac_objext \
17302 conftest$ac_exeext conftest.$ac_ext
17303 LIBS=$ac_check_lib_save_LIBS
17305 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17306 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17307 if test $ac_cv_lib_dld_shl_load = yes; then
17308 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17310 { echo "$as_me:$LINENO: checking for dlopen" >&5
17311 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17312 if test "${ac_cv_func_dlopen+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 cat >conftest.$ac_ext <<_ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17323 #define dlopen innocuous_dlopen
17325 /* System header to define __stub macros and hopefully few prototypes,
17326 which can conflict with char dlopen (); below.
17327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17328 <limits.h> exists even on freestanding compilers. */
17331 # include <limits.h>
17333 # include <assert.h>
17338 /* Override any GCC internal prototype to avoid an error.
17339 Use char because int might match the return type of a GCC
17340 builtin and then its argument prototype would still apply. */
17345 /* The GNU C library defines this for functions which it implements
17346 to always fail with ENOSYS. Some functions are actually named
17347 something starting with __ and the normal name is an alias. */
17348 #if defined __stub_dlopen || defined __stub___dlopen
17360 rm -f conftest.$ac_objext conftest$ac_exeext
17361 if { (ac_try="$ac_link"
17362 case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_link") 2>conftest.er1
17369 grep -v '^ *+' conftest.er1 >conftest.err
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
17374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17375 { (case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_try") 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try='test -s conftest$ac_exeext'
17385 { (case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_try") 2>&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
17394 ac_cv_func_dlopen=yes
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 ac_cv_func_dlopen=no
17402 rm -f core conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
17405 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17406 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17407 if test $ac_cv_func_dlopen = yes; then
17408 lt_cv_dlopen="dlopen"
17410 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17411 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17412 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 ac_check_lib_save_LIBS=$LIBS
17417 cat >conftest.$ac_ext <<_ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17424 /* Override any GCC internal prototype to avoid an error.
17425 Use char because int might match the return type of a GCC
17426 builtin and then its argument prototype would still apply. */
17439 rm -f conftest.$ac_objext conftest$ac_exeext
17440 if { (ac_try="$ac_link"
17441 case "(($ac_try" in
17442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_link") 2>conftest.er1
17448 grep -v '^ *+' conftest.er1 >conftest.err
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17454 { (case "(($ac_try" in
17455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456 *) ac_try_echo=$ac_try;;
17458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459 (eval "$ac_try") 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest$ac_exeext'
17464 { (case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_try") 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
17473 ac_cv_lib_dl_dlopen=yes
17475 echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17478 ac_cv_lib_dl_dlopen=no
17481 rm -f core conftest.err conftest.$ac_objext \
17482 conftest$ac_exeext conftest.$ac_ext
17483 LIBS=$ac_check_lib_save_LIBS
17485 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17486 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17487 if test $ac_cv_lib_dl_dlopen = yes; then
17488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17490 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17491 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17492 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 ac_check_lib_save_LIBS=$LIBS
17496 LIBS="-lsvld $LIBS"
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17504 /* Override any GCC internal prototype to avoid an error.
17505 Use char because int might match the return type of a GCC
17506 builtin and then its argument prototype would still apply. */
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (ac_try="$ac_link"
17521 case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_link") 2>conftest.er1
17528 grep -v '^ *+' conftest.er1 >conftest.err
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17534 { (case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_try") 2>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_try") 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
17553 ac_cv_lib_svld_dlopen=yes
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 ac_cv_lib_svld_dlopen=no
17561 rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17563 LIBS=$ac_check_lib_save_LIBS
17565 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17566 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17567 if test $ac_cv_lib_svld_dlopen = yes; then
17568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17570 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17571 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17572 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 ac_check_lib_save_LIBS=$LIBS
17577 cat >conftest.$ac_ext <<_ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17584 /* Override any GCC internal prototype to avoid an error.
17585 Use char because int might match the return type of a GCC
17586 builtin and then its argument prototype would still apply. */
17594 return dld_link ();
17599 rm -f conftest.$ac_objext conftest$ac_exeext
17600 if { (ac_try="$ac_link"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_link") 2>conftest.er1
17608 grep -v '^ *+' conftest.er1 >conftest.err
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
17613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17614 { (case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_try") 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try='test -s conftest$ac_exeext'
17624 { (case "(($ac_try" in
17625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626 *) ac_try_echo=$ac_try;;
17628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17629 (eval "$ac_try") 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 ac_cv_lib_dld_dld_link=yes
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 ac_cv_lib_dld_dld_link=no
17641 rm -f core conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17643 LIBS=$ac_check_lib_save_LIBS
17645 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17646 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17647 if test $ac_cv_lib_dld_dld_link = yes; then
17648 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17669 if test "x$lt_cv_dlopen" != xno; then
17675 case $lt_cv_dlopen in
17677 save_CPPFLAGS="$CPPFLAGS"
17678 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17680 save_LDFLAGS="$LDFLAGS"
17681 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17684 LIBS="$lt_cv_dlopen_libs $LIBS"
17686 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17687 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17688 if test "${lt_cv_dlopen_self+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 if test "$cross_compiling" = yes; then :
17692 lt_cv_dlopen_self=cross
17694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17695 lt_status=$lt_dlunknown
17696 cat > conftest.$ac_ext <<EOF
17697 #line 17697 "configure"
17698 #include "confdefs.h"
17707 # define LT_DLGLOBAL RTLD_GLOBAL
17710 # define LT_DLGLOBAL DL_GLOBAL
17712 # define LT_DLGLOBAL 0
17716 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17717 find out it does not work in some platform. */
17718 #ifndef LT_DLLAZY_OR_NOW
17720 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17723 # define LT_DLLAZY_OR_NOW DL_LAZY
17726 # define LT_DLLAZY_OR_NOW RTLD_NOW
17729 # define LT_DLLAZY_OR_NOW DL_NOW
17731 # define LT_DLLAZY_OR_NOW 0
17739 extern "C" void exit (int);
17742 void fnord() { int i=42;}
17745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17746 int status = $lt_dlunknown;
17750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17751 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17752 /* dlclose (self); */
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17765 (./conftest; exit; ) >&5 2>/dev/null
17767 case x$lt_status in
17768 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17769 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17770 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17773 # compilation failed
17774 lt_cv_dlopen_self=no
17781 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17782 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17784 if test "x$lt_cv_dlopen_self" = xyes; then
17785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17786 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17787 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17788 if test "${lt_cv_dlopen_self_static+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 if test "$cross_compiling" = yes; then :
17792 lt_cv_dlopen_self_static=cross
17794 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17795 lt_status=$lt_dlunknown
17796 cat > conftest.$ac_ext <<EOF
17797 #line 17797 "configure"
17798 #include "confdefs.h"
17807 # define LT_DLGLOBAL RTLD_GLOBAL
17810 # define LT_DLGLOBAL DL_GLOBAL
17812 # define LT_DLGLOBAL 0
17816 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17817 find out it does not work in some platform. */
17818 #ifndef LT_DLLAZY_OR_NOW
17820 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17823 # define LT_DLLAZY_OR_NOW DL_LAZY
17826 # define LT_DLLAZY_OR_NOW RTLD_NOW
17829 # define LT_DLLAZY_OR_NOW DL_NOW
17831 # define LT_DLLAZY_OR_NOW 0
17839 extern "C" void exit (int);
17842 void fnord() { int i=42;}
17845 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17846 int status = $lt_dlunknown;
17850 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17851 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17852 /* dlclose (self); */
17860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17861 (eval $ac_link) 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17865 (./conftest; exit; ) >&5 2>/dev/null
17867 case x$lt_status in
17868 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17869 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17870 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17873 # compilation failed
17874 lt_cv_dlopen_self_static=no
17881 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17882 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17885 CPPFLAGS="$save_CPPFLAGS"
17886 LDFLAGS="$save_LDFLAGS"
17891 case $lt_cv_dlopen_self in
17892 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17893 *) enable_dlopen_self=unknown ;;
17896 case $lt_cv_dlopen_self_static in
17897 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17898 *) enable_dlopen_self_static=unknown ;;
17903 # Report which library types will actually be built
17904 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17905 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17906 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17907 echo "${ECHO_T}$can_build_shared" >&6; }
17909 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17910 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17911 test "$can_build_shared" = "no" && enable_shared=no
17913 # On AIX, shared libraries and static libraries use the same namespace, and
17914 # are all built from PIC.
17917 test "$enable_shared" = yes && enable_static=no
17918 if test -n "$RANLIB"; then
17919 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17920 postinstall_cmds='$RANLIB $lib'
17925 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17926 test "$enable_shared" = yes && enable_static=no
17930 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17931 echo "${ECHO_T}$enable_shared" >&6; }
17933 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17934 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17935 # Make sure either enable_shared or enable_static is yes.
17936 test "$enable_shared" = yes || enable_static=yes
17937 { echo "$as_me:$LINENO: result: $enable_static" >&5
17938 echo "${ECHO_T}$enable_static" >&6; }
17940 # The else clause should only fire when bootstrapping the
17941 # libtool distribution, otherwise you forgot to ship ltmain.sh
17942 # with your package, and you will get complaints that there are
17943 # no rules to generate ltmain.sh.
17944 if test -f "$ltmain"; then
17945 # See if we are running on zsh, and set the options which allow our commands through
17946 # without removal of \ escapes.
17947 if test -n "${ZSH_VERSION+set}" ; then
17948 setopt NO_GLOB_SUBST
17950 # Now quote all the things that may contain metacharacters while being
17951 # careful not to overquote the AC_SUBSTed values. We take copies of the
17952 # variables and quote the copies for generation of the libtool script.
17953 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17955 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17956 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17957 deplibs_check_method reload_flag reload_cmds need_locks \
17958 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17959 lt_cv_sys_global_symbol_to_c_name_address \
17960 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17961 old_postinstall_cmds old_postuninstall_cmds \
17965 lt_prog_compiler_wl \
17966 lt_prog_compiler_pic \
17967 lt_prog_compiler_static \
17968 lt_prog_compiler_no_builtin_flag \
17969 export_dynamic_flag_spec \
17970 thread_safe_flag_spec \
17971 whole_archive_flag_spec \
17972 enable_shared_with_static_runtimes \
17974 old_archive_from_new_cmds \
17979 compiler_lib_search_path \
17981 archive_expsym_cmds \
17983 postuninstall_cmds \
17984 old_archive_from_expsyms_cmds \
17985 allow_undefined_flag \
17986 no_undefined_flag \
17987 export_symbols_cmds \
17988 hardcode_libdir_flag_spec \
17989 hardcode_libdir_flag_spec_ld \
17990 hardcode_libdir_separator \
17991 hardcode_automatic \
17993 module_expsym_cmds \
17994 lt_cv_prog_compiler_c_o \
17996 include_expsyms; do
17999 old_archive_cmds | \
18000 old_archive_from_new_cmds | \
18002 archive_expsym_cmds | \
18004 module_expsym_cmds | \
18005 old_archive_from_expsyms_cmds | \
18006 export_symbols_cmds | \
18007 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18008 postinstall_cmds | postuninstall_cmds | \
18009 old_postinstall_cmds | old_postuninstall_cmds | \
18010 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18011 # Double-quote double-evaled strings.
18012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18021 *'\$0 --fallback-echo"')
18022 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18026 cfgfile="${ofile}T"
18027 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18029 { echo "$as_me:$LINENO: creating $ofile" >&5
18030 echo "$as_me: creating $ofile" >&6;}
18032 cat <<__EOF__ >> "$cfgfile"
18035 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18036 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18037 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18039 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18040 # Free Software Foundation, Inc.
18042 # This file is part of GNU Libtool:
18043 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18045 # This program is free software; you can redistribute it and/or modify
18046 # it under the terms of the GNU General Public License as published by
18047 # the Free Software Foundation; either version 2 of the License, or
18048 # (at your option) any later version.
18050 # This program is distributed in the hope that it will be useful, but
18051 # WITHOUT ANY WARRANTY; without even the implied warranty of
18052 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18053 # General Public License for more details.
18055 # You should have received a copy of the GNU General Public License
18056 # along with this program; if not, write to the Free Software
18057 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18059 # As a special exception to the GNU General Public License, if you
18060 # distribute this file as part of a program that contains a
18061 # configuration script generated by Autoconf, you may include it under
18062 # the same distribution terms that you use for the rest of that program.
18064 # A sed program that does not truncate output.
18067 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18068 Xsed="$SED -e 1s/^X//"
18070 # The HP-UX ksh and POSIX shell print the target directory to stdout
18071 # if CDPATH is set.
18072 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18074 # The names of the tagged configurations supported by this script.
18077 # ### BEGIN LIBTOOL CONFIG
18079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18081 # Shell to use when invoking shell scripts.
18084 # Whether or not to build shared libraries.
18085 build_libtool_libs=$enable_shared
18087 # Whether or not to build static libraries.
18088 build_old_libs=$enable_static
18090 # Whether or not to add -lc for building shared libraries.
18091 build_libtool_need_lc=$archive_cmds_need_lc
18093 # Whether or not to disallow shared libs when runtime libs are static
18094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18096 # Whether or not to optimize for fast installation.
18097 fast_install=$enable_fast_install
18100 host_alias=$host_alias
18104 # The build system.
18105 build_alias=$build_alias
18109 # An echo program that does not interpret backslashes.
18114 AR_FLAGS=$lt_AR_FLAGS
18119 # LTCC compiler flags.
18120 LTCFLAGS=$lt_LTCFLAGS
18122 # A language-specific compiler.
18125 # Is the compiler the GNU C compiler?
18131 # The linker used to build libraries.
18134 # Whether we need hard or soft links.
18137 # A BSD-compatible nm program.
18140 # A symbol stripping program
18143 # Used to examine libraries when file_magic_cmd begins "file"
18144 MAGIC_CMD=$MAGIC_CMD
18146 # Used on cygwin: DLL creation program.
18149 # Used on cygwin: object dumper.
18152 # Used on cygwin: assembler.
18155 # The name of the directory that contains temporary libtool files.
18158 # How to create reloadable object files.
18159 reload_flag=$lt_reload_flag
18160 reload_cmds=$lt_reload_cmds
18162 # How to pass a linker flag through the compiler.
18163 wl=$lt_lt_prog_compiler_wl
18165 # Object file suffix (normally "o").
18166 objext="$ac_objext"
18168 # Old archive suffix (normally "a").
18171 # Shared library suffix (normally ".so").
18172 shrext_cmds='$shrext_cmds'
18174 # Executable file suffix (normally "").
18177 # Additional compiler flags for building library objects.
18178 pic_flag=$lt_lt_prog_compiler_pic
18181 # What is the maximum length of a command?
18182 max_cmd_len=$lt_cv_sys_max_cmd_len
18184 # Does compiler simultaneously support -c and -o options?
18185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18187 # Must we lock files when doing compilation?
18188 need_locks=$lt_need_locks
18190 # Do we need the lib prefix for modules?
18191 need_lib_prefix=$need_lib_prefix
18193 # Do we need a version for libraries?
18194 need_version=$need_version
18196 # Whether dlopen is supported.
18197 dlopen_support=$enable_dlopen
18199 # Whether dlopen of programs is supported.
18200 dlopen_self=$enable_dlopen_self
18202 # Whether dlopen of statically linked programs is supported.
18203 dlopen_self_static=$enable_dlopen_self_static
18205 # Compiler flag to prevent dynamic linking.
18206 link_static_flag=$lt_lt_prog_compiler_static
18208 # Compiler flag to turn off builtin functions.
18209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18211 # Compiler flag to allow reflexive dlopens.
18212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18214 # Compiler flag to generate shared objects directly from archives.
18215 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18217 # Compiler flag to generate thread-safe objects.
18218 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18220 # Library versioning type.
18221 version_type=$version_type
18223 # Format of library name prefix.
18224 libname_spec=$lt_libname_spec
18226 # List of archive names. First name is the real one, the rest are links.
18227 # The last name is the one that the linker finds with -lNAME.
18228 library_names_spec=$lt_library_names_spec
18230 # The coded name of the library, if different from the real name.
18231 soname_spec=$lt_soname_spec
18233 # Commands used to build and install an old-style archive.
18235 old_archive_cmds=$lt_old_archive_cmds
18236 old_postinstall_cmds=$lt_old_postinstall_cmds
18237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18239 # Create an old-style archive from a shared archive.
18240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18242 # Create a temporary old-style archive to link instead of a shared archive.
18243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18245 # Commands used to build and install a shared archive.
18246 archive_cmds=$lt_archive_cmds
18247 archive_expsym_cmds=$lt_archive_expsym_cmds
18248 postinstall_cmds=$lt_postinstall_cmds
18249 postuninstall_cmds=$lt_postuninstall_cmds
18251 # Commands used to build a loadable module (assumed same as above if empty)
18252 module_cmds=$lt_module_cmds
18253 module_expsym_cmds=$lt_module_expsym_cmds
18255 # Commands to strip libraries.
18256 old_striplib=$lt_old_striplib
18257 striplib=$lt_striplib
18259 # Dependencies to place before the objects being linked to create a
18261 predep_objects=$lt_predep_objects
18263 # Dependencies to place after the objects being linked to create a
18265 postdep_objects=$lt_postdep_objects
18267 # Dependencies to place before the objects being linked to create a
18269 predeps=$lt_predeps
18271 # Dependencies to place after the objects being linked to create a
18273 postdeps=$lt_postdeps
18275 # The library search path used internally by the compiler when linking
18276 # a shared library.
18277 compiler_lib_search_path=$lt_compiler_lib_search_path
18279 # Method to check whether dependent libraries are shared objects.
18280 deplibs_check_method=$lt_deplibs_check_method
18282 # Command to use when deplibs_check_method == file_magic.
18283 file_magic_cmd=$lt_file_magic_cmd
18285 # Flag that allows shared libraries with undefined symbols to be built.
18286 allow_undefined_flag=$lt_allow_undefined_flag
18288 # Flag that forces no undefined symbols.
18289 no_undefined_flag=$lt_no_undefined_flag
18291 # Commands used to finish a libtool library installation in a directory.
18292 finish_cmds=$lt_finish_cmds
18294 # Same as above, but a single script fragment to be evaled but not shown.
18295 finish_eval=$lt_finish_eval
18297 # Take the output of nm and produce a listing of raw symbols and C names.
18298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18300 # Transform the output of nm in a proper C declaration
18301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18303 # Transform the output of nm in a C name address pair
18304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18306 # This is the shared library runtime path variable.
18307 runpath_var=$runpath_var
18309 # This is the shared library path variable.
18310 shlibpath_var=$shlibpath_var
18312 # Is shlibpath searched before the hard-coded library search path?
18313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18315 # How to hardcode a shared library path into an executable.
18316 hardcode_action=$hardcode_action
18318 # Whether we should hardcode library paths into libraries.
18319 hardcode_into_libs=$hardcode_into_libs
18321 # Flag to hardcode \$libdir into a binary during linking.
18322 # This must work even if \$libdir does not exist.
18323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18325 # If ld is used when linking, flag to hardcode \$libdir into
18326 # a binary during linking. This must work even if \$libdir does
18328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18330 # Whether we need a single -rpath flag with a separated argument.
18331 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18334 # resulting binary.
18335 hardcode_direct=$hardcode_direct
18337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18338 # resulting binary.
18339 hardcode_minus_L=$hardcode_minus_L
18341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18342 # the resulting binary.
18343 hardcode_shlibpath_var=$hardcode_shlibpath_var
18345 # Set to yes if building a shared library automatically hardcodes DIR into the library
18346 # and all subsequent libraries and executables linked against it.
18347 hardcode_automatic=$hardcode_automatic
18349 # Variables whose values should be saved in libtool wrapper scripts and
18350 # restored at relink time.
18351 variables_saved_for_relink="$variables_saved_for_relink"
18353 # Whether libtool must link a program against all its dependency libraries.
18354 link_all_deplibs=$link_all_deplibs
18356 # Compile-time system search path for libraries
18357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18359 # Run-time system search path for libraries
18360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18362 # Fix the shell variable \$srcfile for the compiler.
18363 fix_srcfile_path="$fix_srcfile_path"
18365 # Set to yes if exported symbols are required.
18366 always_export_symbols=$always_export_symbols
18368 # The commands to list exported symbols.
18369 export_symbols_cmds=$lt_export_symbols_cmds
18371 # The commands to extract the exported symbol list from a shared archive.
18372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18374 # Symbols that should not be listed in the preloaded symbols.
18375 exclude_expsyms=$lt_exclude_expsyms
18377 # Symbols that must always be exported.
18378 include_expsyms=$lt_include_expsyms
18380 # ### END LIBTOOL CONFIG
18387 cat <<\EOF >> "$cfgfile"
18389 # AIX sometimes has problems with the GCC collect2 program. For some
18390 # reason, if we set the COLLECT_NAMES environment variable, the problems
18391 # vanish in a puff of smoke.
18392 if test "X${COLLECT_NAMES+set}" != Xset; then
18394 export COLLECT_NAMES
18400 # We use sed instead of cat because bash on DJGPP gets confused if
18401 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18402 # text mode, it properly converts lines to CR/LF. This bash problem
18403 # is reportedly fixed, but why not run on old versions too?
18404 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18406 mv -f "$cfgfile" "$ofile" || \
18407 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18411 # If there is no Makefile yet, we rely on a make rule to execute
18412 # `config.status --recheck' to rerun these tests and create the
18413 # libtool script then.
18414 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18415 if test -f "$ltmain_in"; then
18416 test -f Makefile && make "$ltmain"
18422 ac_cpp='$CPP $CPPFLAGS'
18423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18430 # Check whether --with-tags was given.
18431 if test "${with_tags+set}" = set; then
18432 withval=$with_tags; tagnames="$withval"
18436 if test -f "$ltmain" && test -n "$tagnames"; then
18437 if test ! -f "${ofile}"; then
18438 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18439 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18442 if test -z "$LTCC"; then
18443 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18444 if test -z "$LTCC"; then
18445 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18446 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18449 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18452 if test -z "$LTCFLAGS"; then
18453 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18456 # Extract list of available tagged configurations in $ofile.
18457 # Note that this assumes the entire list is on one line.
18458 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18461 for tagname in $tagnames; do
18463 # Check whether tagname contains only valid characters
18464 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18466 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18467 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18468 { (exit 1); exit 1; }; }
18472 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18474 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18475 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18476 { (exit 1); exit 1; }; }
18479 # Update the list of available tags.
18480 if test -n "$tagname"; then
18481 echo appending configuration tag \"$tagname\" to $ofile
18485 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18486 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18487 (test "X$CXX" != "Xg++"))) ; then
18489 ac_cpp='$CXXCPP $CPPFLAGS'
18490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18497 archive_cmds_need_lc_CXX=no
18498 allow_undefined_flag_CXX=
18499 always_export_symbols_CXX=no
18500 archive_expsym_cmds_CXX=
18501 export_dynamic_flag_spec_CXX=
18502 hardcode_direct_CXX=no
18503 hardcode_libdir_flag_spec_CXX=
18504 hardcode_libdir_flag_spec_ld_CXX=
18505 hardcode_libdir_separator_CXX=
18506 hardcode_minus_L_CXX=no
18507 hardcode_shlibpath_var_CXX=unsupported
18508 hardcode_automatic_CXX=no
18510 module_expsym_cmds_CXX=
18511 link_all_deplibs_CXX=unknown
18512 old_archive_cmds_CXX=$old_archive_cmds
18513 no_undefined_flag_CXX=
18514 whole_archive_flag_spec_CXX=
18515 enable_shared_with_static_runtimes_CXX=no
18517 # Dependencies to place before and after the object being linked:
18518 predep_objects_CXX=
18519 postdep_objects_CXX=
18522 compiler_lib_search_path_CXX=
18524 # Source file extension for C++ test sources.
18527 # Object file extension for compiled C++ test sources.
18531 # Code to be used in simple compile tests
18532 lt_simple_compile_test_code="int some_variable = 0;\n"
18534 # Code to be used in simple link tests
18535 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18537 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18539 # If no C compiler was specified, use CC.
18542 # If no C compiler flags were specified, use CFLAGS.
18543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18545 # Allow CC to be a program name with arguments.
18549 # save warnings/boilerplate of simple test code
18550 ac_outfile=conftest.$ac_objext
18551 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18552 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18553 _lt_compiler_boilerplate=`cat conftest.err`
18556 ac_outfile=conftest.$ac_objext
18557 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18558 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18559 _lt_linker_boilerplate=`cat conftest.err`
18563 # Allow CC to be a program name with arguments.
18568 lt_save_with_gnu_ld=$with_gnu_ld
18569 lt_save_path_LD=$lt_cv_path_LD
18570 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18571 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18573 $as_unset lt_cv_prog_gnu_ld
18575 if test -n "${lt_cv_path_LDCXX+set}"; then
18576 lt_cv_path_LD=$lt_cv_path_LDCXX
18578 $as_unset lt_cv_path_LD
18580 test -z "${LDCXX+set}" || LD=$LDCXX
18584 for cc_temp in $compiler""; do
18586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18592 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18595 # We don't want -fno-exception wen compiling C++ code, so set the
18596 # no_builtin_flag separately
18597 if test "$GXX" = yes; then
18598 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18600 lt_prog_compiler_no_builtin_flag_CXX=
18603 if test "$GXX" = yes; then
18604 # Set up default GNU C++ configuration
18607 # Check whether --with-gnu-ld was given.
18608 if test "${with_gnu_ld+set}" = set; then
18609 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18615 if test "$GCC" = yes; then
18616 # Check if gcc -print-prog-name=ld gives a path.
18617 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18618 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18621 # gcc leaves a trailing carriage return which upsets mingw
18622 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18624 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18627 # Accept absolute paths.
18629 re_direlt='/[^/][^/]*/\.\./'
18630 # Canonicalize the pathname of ld
18631 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18632 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18633 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18635 test -z "$LD" && LD="$ac_prog"
18638 # If it fails, then pretend we aren't using GCC.
18642 # If it is relative, then search for the first ld in PATH.
18643 with_gnu_ld=unknown
18646 elif test "$with_gnu_ld" = yes; then
18647 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18648 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18650 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18651 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18653 if test "${lt_cv_path_LD+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 if test -z "$LD"; then
18657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18658 for ac_dir in $PATH; do
18660 test -z "$ac_dir" && ac_dir=.
18661 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18662 lt_cv_path_LD="$ac_dir/$ac_prog"
18663 # Check to see if the program is GNU ld. I'd rather use --version,
18664 # but apparently some variants of GNU ld only accept -v.
18665 # Break only if it was the GNU/non-GNU ld that we prefer.
18666 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18667 *GNU* | *'with BFD'*)
18668 test "$with_gnu_ld" != no && break
18671 test "$with_gnu_ld" != yes && break
18678 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18682 LD="$lt_cv_path_LD"
18683 if test -n "$LD"; then
18684 { echo "$as_me:$LINENO: result: $LD" >&5
18685 echo "${ECHO_T}$LD" >&6; }
18687 { echo "$as_me:$LINENO: result: no" >&5
18688 echo "${ECHO_T}no" >&6; }
18690 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18691 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18692 { (exit 1); exit 1; }; }
18693 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18694 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18695 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18699 case `$LD -v 2>&1 </dev/null` in
18700 *GNU* | *'with BFD'*)
18701 lt_cv_prog_gnu_ld=yes
18704 lt_cv_prog_gnu_ld=no
18708 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18709 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18710 with_gnu_ld=$lt_cv_prog_gnu_ld
18714 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18715 # archiving commands below assume that GNU ld is being used.
18716 if test "$with_gnu_ld" = yes; then
18717 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18718 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'
18720 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18723 # If archive_cmds runs LD, not CC, wlarc should be empty
18724 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18725 # investigate it a little bit more. (MM)
18728 # ancient GNU ld didn't support --whole-archive et. al.
18729 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18730 grep 'no-whole-archive' > /dev/null; then
18731 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18733 whole_archive_flag_spec_CXX=
18739 # A generic and very simple default shared library creation
18740 # command for GNU C++ for the case where it uses the native
18741 # linker, instead of GNU ld. If possible, this setting should
18742 # overridden to take advantage of the native linker features on
18743 # the platform it is being used on.
18744 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18747 # Commands to make compiler produce verbose output that lists
18748 # what "hidden" libraries, object files and flags are used when
18749 # linking a shared library.
18750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18758 # PORTME: fill in a description of your system's C++ link characteristics
18759 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18760 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18764 # FIXME: insert proper C++ library support
18768 if test "$host_cpu" = ia64; then
18769 # On IA64, the linker does run time linking by default, so we don't
18770 # have to do anything special.
18771 aix_use_runtimelinking=no
18772 exp_sym_flag='-Bexport'
18775 aix_use_runtimelinking=no
18777 # Test if we are trying to use run time linking or normal
18778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18779 # need to do runtime linking.
18780 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18781 for ld_flag in $LDFLAGS; do
18784 aix_use_runtimelinking=yes
18792 exp_sym_flag='-bexport'
18793 no_entry_flag='-bnoentry'
18796 # When large executables or shared objects are built, AIX ld can
18797 # have problems creating the table of contents. If linking a library
18798 # or program results in "error TOC overflow" add -mminimal-toc to
18799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18802 archive_cmds_CXX=''
18803 hardcode_direct_CXX=yes
18804 hardcode_libdir_separator_CXX=':'
18805 link_all_deplibs_CXX=yes
18807 if test "$GXX" = yes; then
18808 case $host_os in aix4.[012]|aix4.[012].*)
18809 # We only want to do this on AIX 4.2 and lower, the check
18810 # below for broken collect2 doesn't work under 4.3+
18811 collect2name=`${CC} -print-prog-name=collect2`
18812 if test -f "$collect2name" && \
18813 strings "$collect2name" | grep resolve_lib_name >/dev/null
18815 # We have reworked collect2
18816 hardcode_direct_CXX=yes
18818 # We have old collect2
18819 hardcode_direct_CXX=unsupported
18820 # It fails to find uninstalled libraries when the uninstalled
18821 # path is not listed in the libpath. Setting hardcode_minus_L
18822 # to unsupported forces relinking
18823 hardcode_minus_L_CXX=yes
18824 hardcode_libdir_flag_spec_CXX='-L$libdir'
18825 hardcode_libdir_separator_CXX=
18829 shared_flag='-shared'
18830 if test "$aix_use_runtimelinking" = yes; then
18831 shared_flag="$shared_flag "'${wl}-G'
18835 if test "$host_cpu" = ia64; then
18836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18837 # chokes on -Wl,-G. The following line is correct:
18840 if test "$aix_use_runtimelinking" = yes; then
18841 shared_flag='${wl}-G'
18843 shared_flag='${wl}-bM:SRE'
18848 # It seems that -bexpall does not export symbols beginning with
18849 # underscore (_), so it is better to generate a list of symbols to export.
18850 always_export_symbols_CXX=yes
18851 if test "$aix_use_runtimelinking" = yes; then
18852 # Warning - without using the other runtime loading flags (-brtl),
18853 # -berok will link without error, but may produce a broken library.
18854 allow_undefined_flag_CXX='-berok'
18855 # Determine the default libpath from the value encoded in an empty executable.
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18880 grep -v '^ *+' conftest.er1 >conftest.err
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest$ac_exeext'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18908 # Check for a 64-bit object if we didn't find anything.
18909 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; }
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18918 rm -f core conftest.err conftest.$ac_objext \
18919 conftest$ac_exeext conftest.$ac_ext
18920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18922 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18924 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"
18926 if test "$host_cpu" = ia64; then
18927 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18928 allow_undefined_flag_CXX="-z nodefs"
18929 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"
18931 # Determine the default libpath from the value encoded in an empty executable.
18932 cat >conftest.$ac_ext <<_ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_link") 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; } &&
18971 { ac_try='test -s conftest$ac_exeext'
18972 { (case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_try") 2>&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; }; then
18982 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18984 # Check for a 64-bit object if we didn't find anything.
18985 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; }
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18994 rm -f core conftest.err conftest.$ac_objext \
18995 conftest$ac_exeext conftest.$ac_ext
18996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18998 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18999 # Warning - without using the other run time loading flags,
19000 # -berok will link without error, but may produce a broken library.
19001 no_undefined_flag_CXX=' ${wl}-bernotok'
19002 allow_undefined_flag_CXX=' ${wl}-berok'
19003 # Exported symbols can be pulled into shared objects from archives
19004 whole_archive_flag_spec_CXX='$convenience'
19005 archive_cmds_need_lc_CXX=yes
19006 # This is similar to how AIX traditionally builds its shared libraries.
19007 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'
19013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19014 allow_undefined_flag_CXX=unsupported
19015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19016 # support --undefined. This deserves some investigation. FIXME
19017 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19024 case $cc_basename in
19026 # FIXME: insert proper C++ library support
19032 cygwin* | mingw* | pw32*)
19033 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19034 # as there is no search path for DLLs.
19035 hardcode_libdir_flag_spec_CXX='-L$libdir'
19036 allow_undefined_flag_CXX=unsupported
19037 always_export_symbols_CXX=no
19038 enable_shared_with_static_runtimes_CXX=yes
19040 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19041 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'
19042 # If the export-symbols file already is a .def file (1st line
19043 # is EXPORTS), use it as is; otherwise, prepend...
19044 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19045 cp $export_symbols $output_objdir/$soname.def;
19047 echo EXPORTS > $output_objdir/$soname.def;
19048 cat $export_symbols >> $output_objdir/$soname.def;
19050 $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'
19055 darwin* | rhapsody*)
19057 rhapsody* | darwin1.[012])
19058 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19061 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19062 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19064 case ${MACOSX_DEPLOYMENT_TARGET} in
19066 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19069 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19075 archive_cmds_need_lc_CXX=no
19076 hardcode_direct_CXX=no
19077 hardcode_automatic_CXX=yes
19078 hardcode_shlibpath_var_CXX=unsupported
19079 whole_archive_flag_spec_CXX=''
19080 link_all_deplibs_CXX=yes
19082 if test "$GXX" = yes ; then
19083 lt_int_apple_cc_single_mod=no
19084 output_verbose_link_cmd='echo'
19085 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19086 lt_int_apple_cc_single_mod=yes
19088 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19089 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19091 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'
19093 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19094 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19095 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19096 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}'
19098 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}'
19100 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}'
19102 case $cc_basename in
19104 output_verbose_link_cmd='echo'
19105 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'
19106 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19107 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19108 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}'
19109 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}'
19119 case $cc_basename in
19121 # FIXME: insert proper C++ library support
19125 # Green Hills C++ Compiler
19126 # FIXME: insert proper C++ library support
19130 # FIXME: insert proper C++ library support
19136 # C++ shared libraries reported to be fairly broken before switch to ELF
19140 archive_cmds_need_lc_CXX=no
19142 freebsd* | kfreebsd*-gnu | dragonfly*)
19143 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19150 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19151 hardcode_libdir_separator_CXX=:
19152 export_dynamic_flag_spec_CXX='${wl}-E'
19153 hardcode_direct_CXX=yes
19154 hardcode_minus_L_CXX=yes # Not in the search PATH,
19155 # but as the default
19156 # location of the library.
19158 case $cc_basename in
19160 # FIXME: insert proper C++ library support
19164 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'
19165 # Commands to make compiler produce verbose output that lists
19166 # what "hidden" libraries, object files and flags are used when
19167 # linking a shared library.
19169 # There doesn't appear to be a way to prevent this compiler from
19170 # explicitly linking system object files so we need to strip them
19171 # from the output so that they don't get included in the library
19173 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'
19176 if test "$GXX" = yes; then
19177 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'
19179 # FIXME: insert proper C++ library support
19186 if test $with_gnu_ld = no; then
19187 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19188 hardcode_libdir_separator_CXX=:
19192 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19195 export_dynamic_flag_spec_CXX='${wl}-E'
19201 hardcode_direct_CXX=no
19202 hardcode_shlibpath_var_CXX=no
19205 hardcode_direct_CXX=yes
19206 hardcode_minus_L_CXX=yes # Not in the search PATH,
19207 # but as the default
19208 # location of the library.
19212 case $cc_basename in
19214 # FIXME: insert proper C++ library support
19220 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19223 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19226 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19229 # Commands to make compiler produce verbose output that lists
19230 # what "hidden" libraries, object files and flags are used when
19231 # linking a shared library.
19233 # There doesn't appear to be a way to prevent this compiler from
19234 # explicitly linking system object files so we need to strip them
19235 # from the output so that they don't get included in the library
19237 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'
19240 if test "$GXX" = yes; then
19241 if test $with_gnu_ld = no; then
19244 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19247 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19250 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'
19255 # FIXME: insert proper C++ library support
19262 hardcode_direct_CXX=no
19263 hardcode_shlibpath_var_CXX=no
19264 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19265 export_dynamic_flag_spec_CXX='${wl}-E'
19266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19267 # Instead, shared libraries are loaded at an image base (0x10000000 by
19268 # default) and relocated if they conflict, which is a slow very memory
19269 # consuming and fragmenting process. To avoid this, we pick a random,
19270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19271 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19272 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'
19273 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'
19276 case $cc_basename in
19279 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'
19281 # Archives containing C++ object files must be created using
19282 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19283 # necessary to make sure instantiated templates are included
19285 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19288 if test "$GXX" = yes; then
19289 if test "$with_gnu_ld" = no; then
19290 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'
19292 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'
19295 link_all_deplibs_CXX=yes
19298 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19299 hardcode_libdir_separator_CXX=:
19302 case $cc_basename in
19304 # Kuck and Associates, Inc. (KAI) C++ Compiler
19306 # KCC will only create a shared library if the output file
19307 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19308 # to its proper name (with version) after linking.
19309 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'
19310 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'
19311 # Commands to make compiler produce verbose output that lists
19312 # what "hidden" libraries, object files and flags are used when
19313 # linking a shared library.
19315 # There doesn't appear to be a way to prevent this compiler from
19316 # explicitly linking system object files so we need to strip them
19317 # from the output so that they don't get included in the library
19319 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'
19321 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19324 # Archives containing C++ object files must be created using
19325 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19326 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19331 # version 8.0 and above of icpc choke on multiply defined symbols
19332 # if we add $predep_objects and $postdep_objects, however 7.1 and
19333 # earlier do not add the objects themselves.
19334 case `$CC -V 2>&1` in
19336 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19337 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'
19339 *) # Version 8.0 or newer
19342 ia64*) tmp_idyn=' -i_dynamic';;
19344 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19345 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'
19348 archive_cmds_need_lc_CXX=no
19349 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19350 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19351 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19354 # Portland Group C++ compiler
19355 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19356 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'
19358 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19359 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19360 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'
19364 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19365 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'
19367 runpath_var=LD_RUN_PATH
19368 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19369 hardcode_libdir_separator_CXX=:
19371 # Commands to make compiler produce verbose output that lists
19372 # what "hidden" libraries, object files and flags are used when
19373 # linking a shared library.
19375 # There doesn't appear to be a way to prevent this compiler from
19376 # explicitly linking system object files so we need to strip them
19377 # from the output so that they don't get included in the library
19379 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'
19384 # FIXME: insert proper C++ library support
19388 # FIXME: insert proper C++ library support
19392 case $cc_basename in
19394 # FIXME: insert proper C++ library support
19398 # FIXME: insert proper C++ library support
19404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19405 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19407 hardcode_libdir_flag_spec_CXX='-R$libdir'
19408 hardcode_direct_CXX=yes
19409 hardcode_shlibpath_var_CXX=no
19411 # Workaround some broken pre-1.5 toolchains
19412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19415 # C++ shared libraries are fairly broken
19419 hardcode_direct_CXX=yes
19420 hardcode_shlibpath_var_CXX=no
19421 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19422 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19423 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19424 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19425 export_dynamic_flag_spec_CXX='${wl}-E'
19426 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19428 output_verbose_link_cmd='echo'
19431 case $cc_basename in
19433 # Kuck and Associates, Inc. (KAI) C++ Compiler
19435 # KCC will only create a shared library if the output file
19436 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19437 # to its proper name (with version) after linking.
19438 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'
19440 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19441 hardcode_libdir_separator_CXX=:
19443 # Archives containing C++ object files must be created using
19444 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19445 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19449 # Rational C++ 2.4.1
19450 # FIXME: insert proper C++ library support
19454 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19455 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'
19457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19458 hardcode_libdir_separator_CXX=:
19460 # Commands to make compiler produce verbose output that lists
19461 # what "hidden" libraries, object files and flags are used when
19462 # linking a shared library.
19464 # There doesn't appear to be a way to prevent this compiler from
19465 # explicitly linking system object files so we need to strip them
19466 # from the output so that they don't get included in the library
19468 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'
19471 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19472 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19473 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'
19475 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19476 hardcode_libdir_separator_CXX=:
19478 # Commands to make compiler produce verbose output that lists
19479 # what "hidden" libraries, object files and flags are used when
19480 # linking a shared library.
19481 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19484 # FIXME: insert proper C++ library support
19491 case $cc_basename in
19493 # Kuck and Associates, Inc. (KAI) C++ Compiler
19495 # KCC will only create a shared library if the output file
19496 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19497 # to its proper name (with version) after linking.
19498 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'
19500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19501 hardcode_libdir_separator_CXX=:
19503 # Archives containing C++ object files must be created using
19504 # the KAI C++ compiler.
19505 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19508 # Rational C++ 2.4.1
19509 # FIXME: insert proper C++ library support
19513 allow_undefined_flag_CXX=' -expect_unresolved \*'
19514 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'
19515 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19516 echo "-hidden">> $lib.exp~
19517 $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~
19520 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19521 hardcode_libdir_separator_CXX=:
19523 # Commands to make compiler produce verbose output that lists
19524 # what "hidden" libraries, object files and flags are used when
19525 # linking a shared library.
19527 # There doesn't appear to be a way to prevent this compiler from
19528 # explicitly linking system object files so we need to strip them
19529 # from the output so that they don't get included in the library
19531 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'
19534 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19535 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19536 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'
19538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19539 hardcode_libdir_separator_CXX=:
19541 # Commands to make compiler produce verbose output that lists
19542 # what "hidden" libraries, object files and flags are used when
19543 # linking a shared library.
19544 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19547 # FIXME: insert proper C++ library support
19554 # FIXME: insert proper C++ library support
19558 case $cc_basename in
19561 # FIXME: insert proper C++ library support
19566 # FIXME: insert proper C++ library support
19570 # FIXME: insert proper C++ library support
19576 case $cc_basename in
19578 # Sun C++ 4.2, 5.x and Centerline C++
19579 archive_cmds_need_lc_CXX=yes
19580 no_undefined_flag_CXX=' -zdefs'
19581 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19582 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19583 $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'
19585 hardcode_libdir_flag_spec_CXX='-R$libdir'
19586 hardcode_shlibpath_var_CXX=no
19588 solaris2.[0-5] | solaris2.[0-5].*) ;;
19590 # The C++ compiler is used as linker so we must use $wl
19591 # flag to pass the commands to the underlying system
19592 # linker. We must also pass each convience library through
19593 # to the system linker between allextract/defaultextract.
19594 # The C++ compiler will combine linker options so we
19595 # cannot just pass the convience library names through
19597 # Supported since Solaris 2.6 (maybe 2.5.1?)
19598 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'
19601 link_all_deplibs_CXX=yes
19603 output_verbose_link_cmd='echo'
19605 # Archives containing C++ object files must be created using
19606 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19607 # necessary to make sure instantiated templates are included
19609 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19612 # Green Hills C++ Compiler
19613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19615 # The C++ compiler must be used to create the archive.
19616 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19619 # GNU C++ compiler with Solaris linker
19620 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19621 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19622 if $CC --version | grep -v '^2\.7' > /dev/null; then
19623 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19624 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19625 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19627 # Commands to make compiler produce verbose output that lists
19628 # what "hidden" libraries, object files and flags are used when
19629 # linking a shared library.
19630 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19632 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19634 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19635 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19636 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19638 # Commands to make compiler produce verbose output that lists
19639 # what "hidden" libraries, object files and flags are used when
19640 # linking a shared library.
19641 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19644 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19649 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19650 no_undefined_flag_CXX='${wl}-z,text'
19651 archive_cmds_need_lc_CXX=no
19652 hardcode_shlibpath_var_CXX=no
19653 runpath_var='LD_RUN_PATH'
19655 case $cc_basename in
19657 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19658 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19661 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19662 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19666 sysv5* | sco3.2v5* | sco5v6*)
19667 # Note: We can NOT use -z defs as we might desire, because we do not
19668 # link with -lc, and that would cause any symbols used from libc to
19669 # always be unresolved, which means just about no library would
19670 # ever link correctly. If we're not using GNU ld we use -z text
19671 # though, which does catch some bad symbols but isn't as heavy-handed
19673 # For security reasons, it is highly recommended that you always
19674 # use absolute paths for naming shared libraries, and exclude the
19675 # DT_RUNPATH tag from executables and libraries. But doing so
19676 # requires that you compile everything twice, which is a pain.
19677 # So that behaviour is only enabled if SCOABSPATH is set to a
19678 # non-empty value in the environment. Most likely only useful for
19679 # creating official distributions of packages.
19680 # This is a hack until libtool officially supports absolute path
19681 # names for shared libraries.
19682 no_undefined_flag_CXX='${wl}-z,text'
19683 allow_undefined_flag_CXX='${wl}-z,nodefs'
19684 archive_cmds_need_lc_CXX=no
19685 hardcode_shlibpath_var_CXX=no
19686 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19687 hardcode_libdir_separator_CXX=':'
19688 link_all_deplibs_CXX=yes
19689 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19690 runpath_var='LD_RUN_PATH'
19692 case $cc_basename in
19694 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19695 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19698 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19699 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19704 case $cc_basename in
19706 # NonStop-UX NCC 3.20
19707 # FIXME: insert proper C++ library support
19711 # FIXME: insert proper C++ library support
19717 # FIXME: insert proper C++ library support
19721 # FIXME: insert proper C++ library support
19725 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19726 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19727 test "$ld_shlibs_CXX" = no && can_build_shared=no
19733 cat > conftest.$ac_ext <<EOF
19737 Foo (void) { a = 0; }
19743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19744 (eval $ac_compile) 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; then
19748 # Parse the compiler output and extract the necessary
19749 # objects, libraries and library flags.
19751 # Sentinel used to keep track of whether or not we are before
19752 # the conftest object file.
19753 pre_test_object_deps_done=no
19755 # The `*' in the case matches for architectures that use `case' in
19756 # $output_verbose_cmd can trigger glob expansion during the loop
19757 # eval without this substitution.
19758 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19760 for p in `eval $output_verbose_link_cmd`; do
19764 # Some compilers place space between "-{L,R}" and the path.
19765 # Remove the space.
19766 if test $p = "-L" \
19767 || test $p = "-R"; then
19774 if test "$pre_test_object_deps_done" = no; then
19777 # Internal compiler library paths should come after those
19778 # provided the user. The postdeps already come after the
19779 # user supplied libs so there is no need to process them.
19780 if test -z "$compiler_lib_search_path_CXX"; then
19781 compiler_lib_search_path_CXX="${prev}${p}"
19783 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19786 # The "-l" case would never come before the object being
19787 # linked, so don't bother handling this case.
19790 if test -z "$postdeps_CXX"; then
19791 postdeps_CXX="${prev}${p}"
19793 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19799 # This assumes that the test object file only shows up
19800 # once in the compiler output.
19801 if test "$p" = "conftest.$objext"; then
19802 pre_test_object_deps_done=yes
19806 if test "$pre_test_object_deps_done" = no; then
19807 if test -z "$predep_objects_CXX"; then
19808 predep_objects_CXX="$p"
19810 predep_objects_CXX="$predep_objects_CXX $p"
19813 if test -z "$postdep_objects_CXX"; then
19814 postdep_objects_CXX="$p"
19816 postdep_objects_CXX="$postdep_objects_CXX $p"
19821 *) ;; # Ignore the rest.
19829 echo "libtool.m4: error: problem compiling CXX test program"
19832 $rm -f confest.$objext
19834 # PORTME: override above test on systems where it is broken
19837 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19838 # hack all around it, let's just trust "g++" to DTRT.
19839 predep_objects_CXX=
19840 postdep_objects_CXX=
19845 case $cc_basename in
19847 # Adding this requires a known-good setup of shared libraries for
19848 # Sun compiler versions before 5.6, else PIC objects from an old
19849 # archive will be linked into the output, leading to subtle bugs.
19850 postdeps_CXX='-lCstd -lCrun'
19857 case " $postdeps_CXX " in
19858 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19861 lt_prog_compiler_wl_CXX=
19862 lt_prog_compiler_pic_CXX=
19863 lt_prog_compiler_static_CXX=
19865 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19866 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19868 # C++ specific cases for pic, static, wl, etc.
19869 if test "$GXX" = yes; then
19870 lt_prog_compiler_wl_CXX='-Wl,'
19871 lt_prog_compiler_static_CXX='-static'
19875 # All AIX code is PIC.
19876 if test "$host_cpu" = ia64; then
19877 # AIX 5 now supports IA64 processor
19878 lt_prog_compiler_static_CXX='-Bstatic'
19882 # FIXME: we need at least 68020 code to build shared libraries, but
19883 # adding the `-m68020' flag to GCC prevents building anything better,
19885 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19887 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19888 # PIC is the default for these OSes.
19890 mingw* | os2* | pw32*)
19891 # This hack is so that the source file can tell whether it is being
19892 # built for inclusion in a dll (and should export symbols for example).
19893 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19895 darwin* | rhapsody*)
19896 # PIC is the default on this platform
19897 # Common symbols not allowed in MH_DYLIB files
19898 lt_prog_compiler_pic_CXX='-fno-common'
19901 # DJGPP does not support shared libraries at all
19902 lt_prog_compiler_pic_CXX=
19905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19906 # Instead, we relocate shared libraries at runtime.
19909 if test -d /usr/nec; then
19910 lt_prog_compiler_pic_CXX=-Kconform_pic
19914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19915 # not for PA HP-UX.
19920 lt_prog_compiler_pic_CXX='-fPIC'
19925 lt_prog_compiler_pic_CXX='-fPIC'
19931 # All AIX code is PIC.
19932 if test "$host_cpu" = ia64; then
19933 # AIX 5 now supports IA64 processor
19934 lt_prog_compiler_static_CXX='-Bstatic'
19936 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19940 case $cc_basename in
19942 # Green Hills C++ Compiler
19943 # _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"
19948 # PIC is the default on this platform
19949 # Common symbols not allowed in MH_DYLIB files
19950 case $cc_basename in
19952 lt_prog_compiler_pic_CXX='-qnocommon'
19953 lt_prog_compiler_wl_CXX='-Wl,'
19958 case $cc_basename in
19960 lt_prog_compiler_pic_CXX='-KPIC'
19963 # Green Hills C++ Compiler
19964 lt_prog_compiler_pic_CXX='-pic'
19970 freebsd* | kfreebsd*-gnu | dragonfly*)
19971 # FreeBSD uses GNU C++
19973 hpux9* | hpux10* | hpux11*)
19974 case $cc_basename in
19976 lt_prog_compiler_wl_CXX='-Wl,'
19977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19978 if test "$host_cpu" != ia64; then
19979 lt_prog_compiler_pic_CXX='+Z'
19983 lt_prog_compiler_wl_CXX='-Wl,'
19984 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19990 lt_prog_compiler_pic_CXX='+Z'
19999 # This is c89, which is MS Visual C++ (no shared libs)
20000 # Anyone wants to do a port?
20002 irix5* | irix6* | nonstopux*)
20003 case $cc_basename in
20005 lt_prog_compiler_wl_CXX='-Wl,'
20006 lt_prog_compiler_static_CXX='-non_shared'
20007 # CC pic flag -KPIC is the default.
20014 case $cc_basename in
20017 lt_prog_compiler_wl_CXX='--backend -Wl,'
20018 lt_prog_compiler_pic_CXX='-fPIC'
20022 lt_prog_compiler_wl_CXX='-Wl,'
20023 lt_prog_compiler_pic_CXX='-KPIC'
20024 lt_prog_compiler_static_CXX='-static'
20027 # Portland Group C++ compiler.
20028 lt_prog_compiler_wl_CXX='-Wl,'
20029 lt_prog_compiler_pic_CXX='-fpic'
20030 lt_prog_compiler_static_CXX='-Bstatic'
20034 # Make sure the PIC flag is empty. It appears that all Alpha
20035 # Linux and Compaq Tru64 Unix objects are PIC.
20036 lt_prog_compiler_pic_CXX=
20037 lt_prog_compiler_static_CXX='-non_shared'
20048 case $cc_basename in
20050 lt_prog_compiler_pic_CXX='-W c,exportall'
20058 osf3* | osf4* | osf5*)
20059 case $cc_basename in
20061 lt_prog_compiler_wl_CXX='--backend -Wl,'
20064 # Rational C++ 2.4.1
20065 lt_prog_compiler_pic_CXX='-pic'
20068 # Digital/Compaq C++
20069 lt_prog_compiler_wl_CXX='-Wl,'
20070 # Make sure the PIC flag is empty. It appears that all Alpha
20071 # Linux and Compaq Tru64 Unix objects are PIC.
20072 lt_prog_compiler_pic_CXX=
20073 lt_prog_compiler_static_CXX='-non_shared'
20082 case $cc_basename in
20084 # Sun C++ 4.2, 5.x and Centerline C++
20085 lt_prog_compiler_pic_CXX='-KPIC'
20086 lt_prog_compiler_static_CXX='-Bstatic'
20087 lt_prog_compiler_wl_CXX='-Qoption ld '
20090 # Green Hills C++ Compiler
20091 lt_prog_compiler_pic_CXX='-PIC'
20098 case $cc_basename in
20101 lt_prog_compiler_pic_CXX='-pic'
20102 lt_prog_compiler_static_CXX='-Bstatic'
20106 lt_prog_compiler_pic_CXX='-pic'
20113 case $cc_basename in
20115 # NonStop-UX NCC 3.20
20116 lt_prog_compiler_pic_CXX='-KPIC'
20122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20123 case $cc_basename in
20125 lt_prog_compiler_wl_CXX='-Wl,'
20126 lt_prog_compiler_pic_CXX='-KPIC'
20127 lt_prog_compiler_static_CXX='-Bstatic'
20134 lt_prog_compiler_can_build_shared_CXX=no
20139 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20140 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20143 # Check to make sure the PIC flag actually works.
20145 if test -n "$lt_prog_compiler_pic_CXX"; then
20147 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20148 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20149 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 lt_prog_compiler_pic_works_CXX=no
20153 ac_outfile=conftest.$ac_objext
20154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20155 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20156 # Insert the option either (1) after the last *FLAGS variable, or
20157 # (2) before a word containing "conftest.", or (3) at the end.
20158 # Note that $ac_compile itself does not contain backslashes and begins
20159 # with a dollar sign (not a hyphen), so the echo should work correctly.
20160 # The option is referenced via a variable to avoid confusing sed.
20161 lt_compile=`echo "$ac_compile" | $SED \
20162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20164 -e 's:$: $lt_compiler_flag:'`
20165 (eval echo "\"\$as_me:20165: $lt_compile\"" >&5)
20166 (eval "$lt_compile" 2>conftest.err)
20168 cat conftest.err >&5
20169 echo "$as_me:20169: \$? = $ac_status" >&5
20170 if (exit $ac_status) && test -s "$ac_outfile"; then
20171 # The compiler can only warn and ignore the option if not recognized
20172 # So say no if there are warnings other than the usual output.
20173 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20175 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20176 lt_prog_compiler_pic_works_CXX=yes
20182 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20183 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20185 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20186 case $lt_prog_compiler_pic_CXX in
20188 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20191 lt_prog_compiler_pic_CXX=
20192 lt_prog_compiler_can_build_shared_CXX=no
20197 # For platforms which do not support PIC, -DPIC is meaningless:
20199 lt_prog_compiler_pic_CXX=
20202 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20207 # Check to make sure the static flag actually works.
20209 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20210 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20211 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20212 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 lt_prog_compiler_static_works_CXX=no
20216 save_LDFLAGS="$LDFLAGS"
20217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20218 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20220 # The linker can only warn and ignore the option if not recognized
20221 # So say no if there are warnings
20222 if test -s conftest.err; then
20223 # Append any errors to the config.log.
20224 cat conftest.err 1>&5
20225 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20227 if diff conftest.exp conftest.er2 >/dev/null; then
20228 lt_prog_compiler_static_works_CXX=yes
20231 lt_prog_compiler_static_works_CXX=yes
20235 LDFLAGS="$save_LDFLAGS"
20238 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20239 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20241 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20244 lt_prog_compiler_static_CXX=
20248 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20249 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20250 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 lt_cv_prog_compiler_c_o_CXX=no
20254 $rm -r conftest 2>/dev/null
20258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20260 lt_compiler_flag="-o out/conftest2.$ac_objext"
20261 # Insert the option either (1) after the last *FLAGS variable, or
20262 # (2) before a word containing "conftest.", or (3) at the end.
20263 # Note that $ac_compile itself does not contain backslashes and begins
20264 # with a dollar sign (not a hyphen), so the echo should work correctly.
20265 lt_compile=`echo "$ac_compile" | $SED \
20266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20268 -e 's:$: $lt_compiler_flag:'`
20269 (eval echo "\"\$as_me:20269: $lt_compile\"" >&5)
20270 (eval "$lt_compile" 2>out/conftest.err)
20272 cat out/conftest.err >&5
20273 echo "$as_me:20273: \$? = $ac_status" >&5
20274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20276 # The compiler can only warn and ignore the option if not recognized
20277 # So say no if there are warnings
20278 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20281 lt_cv_prog_compiler_c_o_CXX=yes
20286 # SGI C++ compiler will create directory out/ii_files/ for
20287 # template instantiation
20288 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20289 $rm out/* && rmdir out
20295 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20296 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20299 hard_links="nottested"
20300 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20301 # do not overwrite the value of need_locks provided by the user
20302 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20303 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20306 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20308 ln conftest.a conftest.b 2>&5 || hard_links=no
20309 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20310 { echo "$as_me:$LINENO: result: $hard_links" >&5
20311 echo "${ECHO_T}$hard_links" >&6; }
20312 if test "$hard_links" = no; then
20313 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20314 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20321 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20322 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20324 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20327 # If we're using GNU nm, then we don't want the "-C" option.
20328 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20329 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20330 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'
20332 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'
20336 export_symbols_cmds_CXX="$ltdll_cmds"
20339 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'
20342 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20346 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20347 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20348 test "$ld_shlibs_CXX" = no && can_build_shared=no
20351 # Do we need to explicitly link libc?
20353 case "x$archive_cmds_need_lc_CXX" in
20355 # Assume -lc should be added
20356 archive_cmds_need_lc_CXX=yes
20358 if test "$enable_shared" = yes && test "$GCC" = yes; then
20359 case $archive_cmds_CXX in
20361 # FIXME: we may have to deal with multi-command sequences.
20364 # Test whether the compiler implicitly links with -lc since on some
20365 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20366 # to ld, don't add -lc before -lgcc.
20367 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20368 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20370 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20373 (eval $ac_compile) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } 2>conftest.err; then
20379 libobjs=conftest.$ac_objext
20381 wl=$lt_prog_compiler_wl_CXX
20382 pic_flag=$lt_prog_compiler_pic_CXX
20388 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20389 allow_undefined_flag_CXX=
20390 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20391 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }
20396 archive_cmds_need_lc_CXX=no
20398 archive_cmds_need_lc_CXX=yes
20400 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20402 cat conftest.err 1>&5
20405 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20406 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20413 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20414 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20415 library_names_spec=
20416 libname_spec='lib$name'
20420 postuninstall_cmds=
20424 shlibpath_overrides_runpath=unknown
20426 dynamic_linker="$host_os ld.so"
20427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20428 if test "$GCC" = yes; then
20429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20430 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20431 # if the path contains ";" then we assume it to be the separator
20432 # otherwise default to the standard path separator (i.e. ":") - it is
20433 # assumed that no part of a normal pathname contains ";" but that should
20434 # okay in the real world where ";" in dirpaths is itself problematic.
20435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20440 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20442 need_lib_prefix=unknown
20443 hardcode_into_libs=no
20445 # when you set need_version to no, make sure it does not cause -set_version
20446 # flags to be left without arguments
20447 need_version=unknown
20452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20453 shlibpath_var=LIBPATH
20455 # AIX 3 has no versioning support, so we append a major version to the name.
20456 soname_spec='${libname}${release}${shared_ext}$major'
20463 hardcode_into_libs=yes
20464 if test "$host_cpu" = ia64; then
20465 # AIX 5 supports IA64
20466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20467 shlibpath_var=LD_LIBRARY_PATH
20469 # With GCC up to 2.95.x, collect2 would create an import file
20470 # for dependence libraries. The import file would start with
20471 # the line `#! .'. This would cause the generated library to
20472 # depend on `.', always an invalid library. This was fixed in
20473 # development snapshots of GCC prior to 3.0.
20475 aix4 | aix4.[01] | aix4.[01].*)
20476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20478 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20481 can_build_shared=no
20485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20486 # soname into executable. Probably we can add versioning support to
20487 # collect2, so additional links can be useful in future.
20488 if test "$aix_use_runtimelinking" = yes; then
20489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20490 # instead of lib<name>.a to let people know that these are not
20491 # typical AIX shared libraries.
20492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494 # We preserve .a as extension for shared libraries through AIX4.2
20495 # and later when we are not doing run time linking.
20496 library_names_spec='${libname}${release}.a $libname.a'
20497 soname_spec='${libname}${release}${shared_ext}$major'
20499 shlibpath_var=LIBPATH
20504 library_names_spec='$libname.ixlibrary $libname.a'
20505 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20506 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'
20510 library_names_spec='${libname}${shared_ext}'
20511 dynamic_linker="$host_os ld.so"
20512 shlibpath_var=LIBRARY_PATH
20518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20519 soname_spec='${libname}${release}${shared_ext}$major'
20520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20521 shlibpath_var=LD_LIBRARY_PATH
20522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20524 # the default ld.so.conf also contains /usr/contrib/lib and
20525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20526 # libtool to hard-code these into programs
20529 cygwin* | mingw* | pw32*)
20530 version_type=windows
20535 case $GCC,$host_os in
20536 yes,cygwin* | yes,mingw* | yes,pw32*)
20537 library_names_spec='$libname.dll.a'
20538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20539 postinstall_cmds='base_file=`basename \${file}`~
20540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20541 dldir=$destdir/`dirname \$dlpath`~
20542 test -d \$dldir || mkdir -p \$dldir~
20543 $install_prog $dir/$dlname \$dldir/$dlname~
20544 chmod a+x \$dldir/$dlname'
20545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20546 dlpath=$dir/\$dldll~
20548 shlibpath_overrides_runpath=yes
20552 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20553 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20554 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20557 # MinGW DLLs use traditional 'lib' prefix
20558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20560 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20561 # It is most probably a Windows format PATH printed by
20562 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20563 # path with ; separators, and with drive letters. We can handle the
20564 # drive letters (cygwin fileutils understands them), so leave them,
20565 # especially as we might pass files found there to a mingw objdump,
20566 # which wouldn't understand a cygwinified path. Ahh.
20567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20573 # pw32 DLLs use 'pw' prefix rather than 'lib'
20574 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20583 dynamic_linker='Win32 ld.exe'
20584 # FIXME: first we should search . and the directory the executable is in
20588 darwin* | rhapsody*)
20589 dynamic_linker="$host_os dyld"
20590 version_type=darwin
20593 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20594 soname_spec='${libname}${release}${major}$shared_ext'
20595 shlibpath_overrides_runpath=yes
20596 shlibpath_var=DYLD_LIBRARY_PATH
20597 shrext_cmds='.dylib'
20598 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20599 if test "$GCC" = yes; then
20600 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"`
20602 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20612 soname_spec='${libname}${release}${shared_ext}$major'
20613 shlibpath_var=LD_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 shlibpath_var=LD_LIBRARY_PATH
20627 shlibpath_overrides_runpath=no
20628 hardcode_into_libs=yes
20629 dynamic_linker='GNU ld.so'
20632 freebsd* | dragonfly*)
20633 # DragonFly does not have aout. When/if they implement a new
20634 # versioning mechanism, adjust this.
20635 if test -x /usr/bin/objformat; then
20636 objformat=`/usr/bin/objformat`
20639 freebsd[123]*) objformat=aout ;;
20640 *) objformat=elf ;;
20643 version_type=freebsd-$objformat
20644 case $version_type in
20646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20655 shlibpath_var=LD_LIBRARY_PATH
20658 shlibpath_overrides_runpath=yes
20660 freebsd3.[01]* | freebsdelf3.[01]*)
20661 shlibpath_overrides_runpath=yes
20662 hardcode_into_libs=yes
20664 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20665 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20666 shlibpath_overrides_runpath=no
20667 hardcode_into_libs=yes
20669 freebsd*) # from 4.6 on
20670 shlibpath_overrides_runpath=yes
20671 hardcode_into_libs=yes
20680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20681 soname_spec='${libname}${release}${shared_ext}$major'
20682 shlibpath_var=LD_LIBRARY_PATH
20683 hardcode_into_libs=yes
20686 hpux9* | hpux10* | hpux11*)
20687 # Give a soname corresponding to the major version so that dld.sl refuses to
20688 # link against other versions.
20695 hardcode_into_libs=yes
20696 dynamic_linker="$host_os dld.so"
20697 shlibpath_var=LD_LIBRARY_PATH
20698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20700 soname_spec='${libname}${release}${shared_ext}$major'
20701 if test "X$HPUX_IA64_MODE" = X32; then
20702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20710 hardcode_into_libs=yes
20711 dynamic_linker="$host_os dld.sl"
20712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20715 soname_spec='${libname}${release}${shared_ext}$major'
20716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20721 dynamic_linker="$host_os dld.sl"
20722 shlibpath_var=SHLIB_PATH
20723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20725 soname_spec='${libname}${release}${shared_ext}$major'
20728 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20729 postinstall_cmds='chmod 555 $lib'
20736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20737 soname_spec='${libname}${release}${shared_ext}$major'
20738 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20739 shlibpath_var=LD_LIBRARY_PATH
20740 shlibpath_overrides_runpath=no
20741 hardcode_into_libs=yes
20744 irix5* | irix6* | nonstopux*)
20746 nonstopux*) version_type=nonstopux ;;
20748 if test "$lt_cv_prog_gnu_ld" = yes; then
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20759 irix5* | nonstopux*)
20760 libsuff= shlibsuff=
20763 case $LD in # libtool.m4 will add one of these switches to LD
20764 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20765 libsuff= shlibsuff= libmagic=32-bit;;
20766 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20767 libsuff=32 shlibsuff=N32 libmagic=N32;;
20768 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20769 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20770 *) libsuff= shlibsuff= libmagic=never-match;;
20774 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20775 shlibpath_overrides_runpath=no
20776 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20777 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20778 hardcode_into_libs=yes
20781 # No shared lib support for Linux oldld, aout, or coff.
20782 linux*oldld* | linux*aout* | linux*coff*)
20786 # This must be Linux ELF.
20791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20792 soname_spec='${libname}${release}${shared_ext}$major'
20793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20794 shlibpath_var=LD_LIBRARY_PATH
20795 shlibpath_overrides_runpath=no
20796 # This implies no fast_install, which is unacceptable.
20797 # Some rework will be needed to allow for fast_install
20798 # before this can be enabled.
20799 hardcode_into_libs=yes
20801 # Append ld.so.conf contents to the search path
20802 if test -f /etc/ld.so.conf; then
20803 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' ' '`
20804 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20807 # We used to test for /lib/ld.so.1 and disable shared libraries on
20808 # powerpc, because MkLinux only supported shared libraries with the
20809 # GNU dynamic linker. Since this was broken with cross compilers,
20810 # most powerpc-linux boxes support dynamic linking these days and
20811 # people can always --disable-shared, the test was removed, and we
20812 # assume the GNU/Linux dynamic linker is in use.
20813 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
20823 shlibpath_overrides_runpath=no
20824 hardcode_into_libs=yes
20825 dynamic_linker='GNU ld.so'
20832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20835 dynamic_linker='NetBSD (a.out) ld.so'
20837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20838 soname_spec='${libname}${release}${shared_ext}$major'
20839 dynamic_linker='NetBSD ld.elf_so'
20841 shlibpath_var=LD_LIBRARY_PATH
20842 shlibpath_overrides_runpath=yes
20843 hardcode_into_libs=yes
20848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20849 shlibpath_var=LD_LIBRARY_PATH
20850 shlibpath_overrides_runpath=yes
20857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20858 soname_spec='${libname}${release}${shared_ext}$major'
20859 shlibpath_var=LD_LIBRARY_PATH
20860 shlibpath_overrides_runpath=yes
20865 sys_lib_dlsearch_path_spec="/usr/lib"
20867 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20869 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20870 *) need_version=no ;;
20872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20874 shlibpath_var=LD_LIBRARY_PATH
20875 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20877 openbsd2.[89] | openbsd2.[89].*)
20878 shlibpath_overrides_runpath=no
20881 shlibpath_overrides_runpath=yes
20885 shlibpath_overrides_runpath=yes
20890 libname_spec='$name'
20893 library_names_spec='$libname${shared_ext} $libname.a'
20894 dynamic_linker='OS/2 ld.exe'
20895 shlibpath_var=LIBPATH
20898 osf3* | osf4* | osf5*)
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20904 shlibpath_var=LD_LIBRARY_PATH
20905 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20906 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20914 soname_spec='${libname}${release}${shared_ext}$major'
20915 shlibpath_var=LD_LIBRARY_PATH
20916 shlibpath_overrides_runpath=yes
20917 hardcode_into_libs=yes
20918 # ldd complains unless libraries are executable
20919 postinstall_cmds='chmod +x $lib'
20924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20925 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20926 shlibpath_var=LD_LIBRARY_PATH
20927 shlibpath_overrides_runpath=yes
20928 if test "$with_gnu_ld" = yes; then
20936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20937 soname_spec='${libname}${release}${shared_ext}$major'
20938 shlibpath_var=LD_LIBRARY_PATH
20939 case $host_vendor in
20941 shlibpath_overrides_runpath=no
20943 export_dynamic_flag_spec='${wl}-Blargedynsym'
20944 runpath_var=LD_RUN_PATH
20952 shlibpath_overrides_runpath=no
20953 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20959 if test -d /usr/nec ;then
20961 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20962 soname_spec='$libname${shared_ext}.$major'
20963 shlibpath_var=LD_LIBRARY_PATH
20967 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20968 version_type=freebsd-elf
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20972 soname_spec='${libname}${release}${shared_ext}$major'
20973 shlibpath_var=LD_LIBRARY_PATH
20974 hardcode_into_libs=yes
20975 if test "$with_gnu_ld" = yes; then
20976 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20977 shlibpath_overrides_runpath=no
20979 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20980 shlibpath_overrides_runpath=yes
20983 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20987 sys_lib_dlsearch_path_spec='/usr/lib'
20992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20993 soname_spec='${libname}${release}${shared_ext}$major'
20994 shlibpath_var=LD_LIBRARY_PATH
21001 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21002 echo "${ECHO_T}$dynamic_linker" >&6; }
21003 test "$dynamic_linker" = no && can_build_shared=no
21005 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21006 if test "$GCC" = yes; then
21007 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21010 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21011 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21012 hardcode_action_CXX=
21013 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21014 test -n "$runpath_var_CXX" || \
21015 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21017 # We can hardcode non-existant directories.
21018 if test "$hardcode_direct_CXX" != no &&
21019 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21020 # have to relink, otherwise we might link with an installed library
21021 # when we should be linking with a yet-to-be-installed one
21022 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21023 test "$hardcode_minus_L_CXX" != no; then
21024 # Linking always hardcodes the temporary library directory.
21025 hardcode_action_CXX=relink
21027 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21028 hardcode_action_CXX=immediate
21031 # We cannot hardcode anything, or else we can only hardcode existing
21033 hardcode_action_CXX=unsupported
21035 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21036 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21038 if test "$hardcode_action_CXX" = relink; then
21039 # Fast installation is not supported
21040 enable_fast_install=no
21041 elif test "$shlibpath_overrides_runpath" = yes ||
21042 test "$enable_shared" = no; then
21043 # Fast installation is not necessary
21044 enable_fast_install=needless
21048 # The else clause should only fire when bootstrapping the
21049 # libtool distribution, otherwise you forgot to ship ltmain.sh
21050 # with your package, and you will get complaints that there are
21051 # no rules to generate ltmain.sh.
21052 if test -f "$ltmain"; then
21053 # See if we are running on zsh, and set the options which allow our commands through
21054 # without removal of \ escapes.
21055 if test -n "${ZSH_VERSION+set}" ; then
21056 setopt NO_GLOB_SUBST
21058 # Now quote all the things that may contain metacharacters while being
21059 # careful not to overquote the AC_SUBSTed values. We take copies of the
21060 # variables and quote the copies for generation of the libtool script.
21061 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21063 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21064 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21065 deplibs_check_method reload_flag reload_cmds need_locks \
21066 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21067 lt_cv_sys_global_symbol_to_c_name_address \
21068 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21069 old_postinstall_cmds old_postuninstall_cmds \
21073 lt_prog_compiler_wl_CXX \
21074 lt_prog_compiler_pic_CXX \
21075 lt_prog_compiler_static_CXX \
21076 lt_prog_compiler_no_builtin_flag_CXX \
21077 export_dynamic_flag_spec_CXX \
21078 thread_safe_flag_spec_CXX \
21079 whole_archive_flag_spec_CXX \
21080 enable_shared_with_static_runtimes_CXX \
21081 old_archive_cmds_CXX \
21082 old_archive_from_new_cmds_CXX \
21083 predep_objects_CXX \
21084 postdep_objects_CXX \
21087 compiler_lib_search_path_CXX \
21089 archive_expsym_cmds_CXX \
21090 postinstall_cmds_CXX \
21091 postuninstall_cmds_CXX \
21092 old_archive_from_expsyms_cmds_CXX \
21093 allow_undefined_flag_CXX \
21094 no_undefined_flag_CXX \
21095 export_symbols_cmds_CXX \
21096 hardcode_libdir_flag_spec_CXX \
21097 hardcode_libdir_flag_spec_ld_CXX \
21098 hardcode_libdir_separator_CXX \
21099 hardcode_automatic_CXX \
21101 module_expsym_cmds_CXX \
21102 lt_cv_prog_compiler_c_o_CXX \
21103 exclude_expsyms_CXX \
21104 include_expsyms_CXX; do
21107 old_archive_cmds_CXX | \
21108 old_archive_from_new_cmds_CXX | \
21109 archive_cmds_CXX | \
21110 archive_expsym_cmds_CXX | \
21111 module_cmds_CXX | \
21112 module_expsym_cmds_CXX | \
21113 old_archive_from_expsyms_cmds_CXX | \
21114 export_symbols_cmds_CXX | \
21115 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21116 postinstall_cmds | postuninstall_cmds | \
21117 old_postinstall_cmds | old_postuninstall_cmds | \
21118 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21119 # Double-quote double-evaled strings.
21120 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21123 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21129 *'\$0 --fallback-echo"')
21130 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21136 cat <<__EOF__ >> "$cfgfile"
21137 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21139 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21141 # Shell to use when invoking shell scripts.
21144 # Whether or not to build shared libraries.
21145 build_libtool_libs=$enable_shared
21147 # Whether or not to build static libraries.
21148 build_old_libs=$enable_static
21150 # Whether or not to add -lc for building shared libraries.
21151 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21153 # Whether or not to disallow shared libs when runtime libs are static
21154 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21156 # Whether or not to optimize for fast installation.
21157 fast_install=$enable_fast_install
21160 host_alias=$host_alias
21164 # The build system.
21165 build_alias=$build_alias
21169 # An echo program that does not interpret backslashes.
21174 AR_FLAGS=$lt_AR_FLAGS
21179 # LTCC compiler flags.
21180 LTCFLAGS=$lt_LTCFLAGS
21182 # A language-specific compiler.
21183 CC=$lt_compiler_CXX
21185 # Is the compiler the GNU C compiler?
21191 # The linker used to build libraries.
21194 # Whether we need hard or soft links.
21197 # A BSD-compatible nm program.
21200 # A symbol stripping program
21203 # Used to examine libraries when file_magic_cmd begins "file"
21204 MAGIC_CMD=$MAGIC_CMD
21206 # Used on cygwin: DLL creation program.
21209 # Used on cygwin: object dumper.
21212 # Used on cygwin: assembler.
21215 # The name of the directory that contains temporary libtool files.
21218 # How to create reloadable object files.
21219 reload_flag=$lt_reload_flag
21220 reload_cmds=$lt_reload_cmds
21222 # How to pass a linker flag through the compiler.
21223 wl=$lt_lt_prog_compiler_wl_CXX
21225 # Object file suffix (normally "o").
21226 objext="$ac_objext"
21228 # Old archive suffix (normally "a").
21231 # Shared library suffix (normally ".so").
21232 shrext_cmds='$shrext_cmds'
21234 # Executable file suffix (normally "").
21237 # Additional compiler flags for building library objects.
21238 pic_flag=$lt_lt_prog_compiler_pic_CXX
21241 # What is the maximum length of a command?
21242 max_cmd_len=$lt_cv_sys_max_cmd_len
21244 # Does compiler simultaneously support -c and -o options?
21245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21247 # Must we lock files when doing compilation?
21248 need_locks=$lt_need_locks
21250 # Do we need the lib prefix for modules?
21251 need_lib_prefix=$need_lib_prefix
21253 # Do we need a version for libraries?
21254 need_version=$need_version
21256 # Whether dlopen is supported.
21257 dlopen_support=$enable_dlopen
21259 # Whether dlopen of programs is supported.
21260 dlopen_self=$enable_dlopen_self
21262 # Whether dlopen of statically linked programs is supported.
21263 dlopen_self_static=$enable_dlopen_self_static
21265 # Compiler flag to prevent dynamic linking.
21266 link_static_flag=$lt_lt_prog_compiler_static_CXX
21268 # Compiler flag to turn off builtin functions.
21269 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21271 # Compiler flag to allow reflexive dlopens.
21272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21274 # Compiler flag to generate shared objects directly from archives.
21275 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21277 # Compiler flag to generate thread-safe objects.
21278 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21280 # Library versioning type.
21281 version_type=$version_type
21283 # Format of library name prefix.
21284 libname_spec=$lt_libname_spec
21286 # List of archive names. First name is the real one, the rest are links.
21287 # The last name is the one that the linker finds with -lNAME.
21288 library_names_spec=$lt_library_names_spec
21290 # The coded name of the library, if different from the real name.
21291 soname_spec=$lt_soname_spec
21293 # Commands used to build and install an old-style archive.
21295 old_archive_cmds=$lt_old_archive_cmds_CXX
21296 old_postinstall_cmds=$lt_old_postinstall_cmds
21297 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21299 # Create an old-style archive from a shared archive.
21300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21302 # Create a temporary old-style archive to link instead of a shared archive.
21303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21305 # Commands used to build and install a shared archive.
21306 archive_cmds=$lt_archive_cmds_CXX
21307 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21308 postinstall_cmds=$lt_postinstall_cmds
21309 postuninstall_cmds=$lt_postuninstall_cmds
21311 # Commands used to build a loadable module (assumed same as above if empty)
21312 module_cmds=$lt_module_cmds_CXX
21313 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21315 # Commands to strip libraries.
21316 old_striplib=$lt_old_striplib
21317 striplib=$lt_striplib
21319 # Dependencies to place before the objects being linked to create a
21321 predep_objects=$lt_predep_objects_CXX
21323 # Dependencies to place after the objects being linked to create a
21325 postdep_objects=$lt_postdep_objects_CXX
21327 # Dependencies to place before the objects being linked to create a
21329 predeps=$lt_predeps_CXX
21331 # Dependencies to place after the objects being linked to create a
21333 postdeps=$lt_postdeps_CXX
21335 # The library search path used internally by the compiler when linking
21336 # a shared library.
21337 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21339 # Method to check whether dependent libraries are shared objects.
21340 deplibs_check_method=$lt_deplibs_check_method
21342 # Command to use when deplibs_check_method == file_magic.
21343 file_magic_cmd=$lt_file_magic_cmd
21345 # Flag that allows shared libraries with undefined symbols to be built.
21346 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21348 # Flag that forces no undefined symbols.
21349 no_undefined_flag=$lt_no_undefined_flag_CXX
21351 # Commands used to finish a libtool library installation in a directory.
21352 finish_cmds=$lt_finish_cmds
21354 # Same as above, but a single script fragment to be evaled but not shown.
21355 finish_eval=$lt_finish_eval
21357 # Take the output of nm and produce a listing of raw symbols and C names.
21358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21360 # Transform the output of nm in a proper C declaration
21361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21363 # Transform the output of nm in a C name address pair
21364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21366 # This is the shared library runtime path variable.
21367 runpath_var=$runpath_var
21369 # This is the shared library path variable.
21370 shlibpath_var=$shlibpath_var
21372 # Is shlibpath searched before the hard-coded library search path?
21373 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21375 # How to hardcode a shared library path into an executable.
21376 hardcode_action=$hardcode_action_CXX
21378 # Whether we should hardcode library paths into libraries.
21379 hardcode_into_libs=$hardcode_into_libs
21381 # Flag to hardcode \$libdir into a binary during linking.
21382 # This must work even if \$libdir does not exist.
21383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21385 # If ld is used when linking, flag to hardcode \$libdir into
21386 # a binary during linking. This must work even if \$libdir does
21388 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21390 # Whether we need a single -rpath flag with a separated argument.
21391 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21393 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21394 # resulting binary.
21395 hardcode_direct=$hardcode_direct_CXX
21397 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21398 # resulting binary.
21399 hardcode_minus_L=$hardcode_minus_L_CXX
21401 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21402 # the resulting binary.
21403 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21405 # Set to yes if building a shared library automatically hardcodes DIR into the library
21406 # and all subsequent libraries and executables linked against it.
21407 hardcode_automatic=$hardcode_automatic_CXX
21409 # Variables whose values should be saved in libtool wrapper scripts and
21410 # restored at relink time.
21411 variables_saved_for_relink="$variables_saved_for_relink"
21413 # Whether libtool must link a program against all its dependency libraries.
21414 link_all_deplibs=$link_all_deplibs_CXX
21416 # Compile-time system search path for libraries
21417 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21419 # Run-time system search path for libraries
21420 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21422 # Fix the shell variable \$srcfile for the compiler.
21423 fix_srcfile_path="$fix_srcfile_path_CXX"
21425 # Set to yes if exported symbols are required.
21426 always_export_symbols=$always_export_symbols_CXX
21428 # The commands to list exported symbols.
21429 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21431 # The commands to extract the exported symbol list from a shared archive.
21432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21434 # Symbols that should not be listed in the preloaded symbols.
21435 exclude_expsyms=$lt_exclude_expsyms_CXX
21437 # Symbols that must always be exported.
21438 include_expsyms=$lt_include_expsyms_CXX
21440 # ### END LIBTOOL TAG CONFIG: $tagname
21446 # If there is no Makefile yet, we rely on a make rule to execute
21447 # `config.status --recheck' to rerun these tests and create the
21448 # libtool script then.
21449 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21450 if test -f "$ltmain_in"; then
21451 test -f Makefile && make "$ltmain"
21457 ac_cpp='$CPP $CPPFLAGS'
21458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21466 with_gnu_ldcxx=$with_gnu_ld
21467 with_gnu_ld=$lt_save_with_gnu_ld
21468 lt_cv_path_LDCXX=$lt_cv_path_LD
21469 lt_cv_path_LD=$lt_save_path_LD
21470 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21471 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21479 if test -n "$F77" && test "X$F77" != "Xno"; then
21482 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21483 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21484 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21487 archive_cmds_need_lc_F77=no
21488 allow_undefined_flag_F77=
21489 always_export_symbols_F77=no
21490 archive_expsym_cmds_F77=
21491 export_dynamic_flag_spec_F77=
21492 hardcode_direct_F77=no
21493 hardcode_libdir_flag_spec_F77=
21494 hardcode_libdir_flag_spec_ld_F77=
21495 hardcode_libdir_separator_F77=
21496 hardcode_minus_L_F77=no
21497 hardcode_automatic_F77=no
21499 module_expsym_cmds_F77=
21500 link_all_deplibs_F77=unknown
21501 old_archive_cmds_F77=$old_archive_cmds
21502 no_undefined_flag_F77=
21503 whole_archive_flag_spec_F77=
21504 enable_shared_with_static_runtimes_F77=no
21506 # Source file extension for f77 test sources.
21509 # Object file extension for compiled f77 test sources.
21513 # Code to be used in simple compile tests
21514 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21516 # Code to be used in simple link tests
21517 lt_simple_link_test_code=" program t\n end\n"
21519 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21521 # If no C compiler was specified, use CC.
21524 # If no C compiler flags were specified, use CFLAGS.
21525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21527 # Allow CC to be a program name with arguments.
21531 # save warnings/boilerplate of simple test code
21532 ac_outfile=conftest.$ac_objext
21533 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21534 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21535 _lt_compiler_boilerplate=`cat conftest.err`
21538 ac_outfile=conftest.$ac_objext
21539 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21540 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21541 _lt_linker_boilerplate=`cat conftest.err`
21545 # Allow CC to be a program name with arguments.
21550 for cc_temp in $compiler""; do
21552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21558 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21561 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21562 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21563 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21564 echo "${ECHO_T}$can_build_shared" >&6; }
21566 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21567 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21568 test "$can_build_shared" = "no" && enable_shared=no
21570 # On AIX, shared libraries and static libraries use the same namespace, and
21571 # are all built from PIC.
21574 test "$enable_shared" = yes && enable_static=no
21575 if test -n "$RANLIB"; then
21576 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21577 postinstall_cmds='$RANLIB $lib'
21581 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21582 test "$enable_shared" = yes && enable_static=no
21586 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21587 echo "${ECHO_T}$enable_shared" >&6; }
21589 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21590 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21591 # Make sure either enable_shared or enable_static is yes.
21592 test "$enable_shared" = yes || enable_static=yes
21593 { echo "$as_me:$LINENO: result: $enable_static" >&5
21594 echo "${ECHO_T}$enable_static" >&6; }
21599 lt_prog_compiler_wl_F77=
21600 lt_prog_compiler_pic_F77=
21601 lt_prog_compiler_static_F77=
21603 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21604 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21606 if test "$GCC" = yes; then
21607 lt_prog_compiler_wl_F77='-Wl,'
21608 lt_prog_compiler_static_F77='-static'
21612 # All AIX code is PIC.
21613 if test "$host_cpu" = ia64; then
21614 # AIX 5 now supports IA64 processor
21615 lt_prog_compiler_static_F77='-Bstatic'
21620 # FIXME: we need at least 68020 code to build shared libraries, but
21621 # adding the `-m68020' flag to GCC prevents building anything better,
21623 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21626 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21627 # PIC is the default for these OSes.
21630 mingw* | pw32* | os2*)
21631 # This hack is so that the source file can tell whether it is being
21632 # built for inclusion in a dll (and should export symbols for example).
21633 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21636 darwin* | rhapsody*)
21637 # PIC is the default on this platform
21638 # Common symbols not allowed in MH_DYLIB files
21639 lt_prog_compiler_pic_F77='-fno-common'
21643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21644 # Instead, we relocate shared libraries at runtime.
21648 # Just because we use GCC doesn't mean we suddenly get shared libraries
21649 # on systems that don't support them.
21650 lt_prog_compiler_can_build_shared_F77=no
21655 if test -d /usr/nec; then
21656 lt_prog_compiler_pic_F77=-Kconform_pic
21661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21662 # not for PA HP-UX.
21668 lt_prog_compiler_pic_F77='-fPIC'
21674 lt_prog_compiler_pic_F77='-fPIC'
21678 # PORTME Check for flag to pass linker flags through the system compiler.
21681 lt_prog_compiler_wl_F77='-Wl,'
21682 if test "$host_cpu" = ia64; then
21683 # AIX 5 now supports IA64 processor
21684 lt_prog_compiler_static_F77='-Bstatic'
21686 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21690 # PIC is the default on this platform
21691 # Common symbols not allowed in MH_DYLIB files
21692 case $cc_basename in
21694 lt_prog_compiler_pic_F77='-qnocommon'
21695 lt_prog_compiler_wl_F77='-Wl,'
21700 mingw* | pw32* | os2*)
21701 # This hack is so that the source file can tell whether it is being
21702 # built for inclusion in a dll (and should export symbols for example).
21703 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21706 hpux9* | hpux10* | hpux11*)
21707 lt_prog_compiler_wl_F77='-Wl,'
21708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21709 # not for PA HP-UX.
21715 lt_prog_compiler_pic_F77='+Z'
21718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21719 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21722 irix5* | irix6* | nonstopux*)
21723 lt_prog_compiler_wl_F77='-Wl,'
21724 # PIC (with -KPIC) is the default.
21725 lt_prog_compiler_static_F77='-non_shared'
21729 lt_prog_compiler_pic_F77='-KPIC'
21730 lt_prog_compiler_static_F77='-Bstatic'
21734 case $cc_basename in
21736 lt_prog_compiler_wl_F77='-Wl,'
21737 lt_prog_compiler_pic_F77='-KPIC'
21738 lt_prog_compiler_static_F77='-static'
21740 pgcc* | pgf77* | pgf90* | pgf95*)
21741 # Portland Group compilers (*not* the Pentium gcc compiler,
21742 # which looks to be a dead project)
21743 lt_prog_compiler_wl_F77='-Wl,'
21744 lt_prog_compiler_pic_F77='-fpic'
21745 lt_prog_compiler_static_F77='-Bstatic'
21748 lt_prog_compiler_wl_F77='-Wl,'
21749 # All Alpha code is PIC.
21750 lt_prog_compiler_static_F77='-non_shared'
21755 osf3* | osf4* | osf5*)
21756 lt_prog_compiler_wl_F77='-Wl,'
21757 # All OSF/1 code is PIC.
21758 lt_prog_compiler_static_F77='-non_shared'
21762 lt_prog_compiler_pic_F77='-KPIC'
21763 lt_prog_compiler_static_F77='-Bstatic'
21764 case $cc_basename in
21765 f77* | f90* | f95*)
21766 lt_prog_compiler_wl_F77='-Qoption ld ';;
21768 lt_prog_compiler_wl_F77='-Wl,';;
21773 lt_prog_compiler_wl_F77='-Qoption ld '
21774 lt_prog_compiler_pic_F77='-PIC'
21775 lt_prog_compiler_static_F77='-Bstatic'
21778 sysv4 | sysv4.2uw2* | sysv4.3*)
21779 lt_prog_compiler_wl_F77='-Wl,'
21780 lt_prog_compiler_pic_F77='-KPIC'
21781 lt_prog_compiler_static_F77='-Bstatic'
21785 if test -d /usr/nec ;then
21786 lt_prog_compiler_pic_F77='-Kconform_pic'
21787 lt_prog_compiler_static_F77='-Bstatic'
21791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21792 lt_prog_compiler_wl_F77='-Wl,'
21793 lt_prog_compiler_pic_F77='-KPIC'
21794 lt_prog_compiler_static_F77='-Bstatic'
21798 lt_prog_compiler_wl_F77='-Wl,'
21799 lt_prog_compiler_can_build_shared_F77=no
21803 lt_prog_compiler_pic_F77='-pic'
21804 lt_prog_compiler_static_F77='-Bstatic'
21808 lt_prog_compiler_can_build_shared_F77=no
21813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21814 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21817 # Check to make sure the PIC flag actually works.
21819 if test -n "$lt_prog_compiler_pic_F77"; then
21821 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21822 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21823 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 lt_prog_compiler_pic_works_F77=no
21827 ac_outfile=conftest.$ac_objext
21828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21829 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21830 # Insert the option either (1) after the last *FLAGS variable, or
21831 # (2) before a word containing "conftest.", or (3) at the end.
21832 # Note that $ac_compile itself does not contain backslashes and begins
21833 # with a dollar sign (not a hyphen), so the echo should work correctly.
21834 # The option is referenced via a variable to avoid confusing sed.
21835 lt_compile=`echo "$ac_compile" | $SED \
21836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21838 -e 's:$: $lt_compiler_flag:'`
21839 (eval echo "\"\$as_me:21839: $lt_compile\"" >&5)
21840 (eval "$lt_compile" 2>conftest.err)
21842 cat conftest.err >&5
21843 echo "$as_me:21843: \$? = $ac_status" >&5
21844 if (exit $ac_status) && test -s "$ac_outfile"; then
21845 # The compiler can only warn and ignore the option if not recognized
21846 # So say no if there are warnings other than the usual output.
21847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21850 lt_prog_compiler_pic_works_F77=yes
21856 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21857 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21859 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21860 case $lt_prog_compiler_pic_F77 in
21862 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21865 lt_prog_compiler_pic_F77=
21866 lt_prog_compiler_can_build_shared_F77=no
21871 # For platforms which do not support PIC, -DPIC is meaningless:
21873 lt_prog_compiler_pic_F77=
21876 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21881 # Check to make sure the static flag actually works.
21883 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21884 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21885 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21886 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21889 lt_prog_compiler_static_works_F77=no
21890 save_LDFLAGS="$LDFLAGS"
21891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21892 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21894 # The linker can only warn and ignore the option if not recognized
21895 # So say no if there are warnings
21896 if test -s conftest.err; then
21897 # Append any errors to the config.log.
21898 cat conftest.err 1>&5
21899 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21901 if diff conftest.exp conftest.er2 >/dev/null; then
21902 lt_prog_compiler_static_works_F77=yes
21905 lt_prog_compiler_static_works_F77=yes
21909 LDFLAGS="$save_LDFLAGS"
21912 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21913 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21915 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21918 lt_prog_compiler_static_F77=
21922 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21923 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21924 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 lt_cv_prog_compiler_c_o_F77=no
21928 $rm -r conftest 2>/dev/null
21932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21934 lt_compiler_flag="-o out/conftest2.$ac_objext"
21935 # Insert the option either (1) after the last *FLAGS variable, or
21936 # (2) before a word containing "conftest.", or (3) at the end.
21937 # Note that $ac_compile itself does not contain backslashes and begins
21938 # with a dollar sign (not a hyphen), so the echo should work correctly.
21939 lt_compile=`echo "$ac_compile" | $SED \
21940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21942 -e 's:$: $lt_compiler_flag:'`
21943 (eval echo "\"\$as_me:21943: $lt_compile\"" >&5)
21944 (eval "$lt_compile" 2>out/conftest.err)
21946 cat out/conftest.err >&5
21947 echo "$as_me:21947: \$? = $ac_status" >&5
21948 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21950 # The compiler can only warn and ignore the option if not recognized
21951 # So say no if there are warnings
21952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21955 lt_cv_prog_compiler_c_o_F77=yes
21960 # SGI C++ compiler will create directory out/ii_files/ for
21961 # template instantiation
21962 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21963 $rm out/* && rmdir out
21969 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21970 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21973 hard_links="nottested"
21974 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21975 # do not overwrite the value of need_locks provided by the user
21976 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21977 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21982 ln conftest.a conftest.b 2>&5 || hard_links=no
21983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21984 { echo "$as_me:$LINENO: result: $hard_links" >&5
21985 echo "${ECHO_T}$hard_links" >&6; }
21986 if test "$hard_links" = no; then
21987 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21988 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21995 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21999 allow_undefined_flag_F77=
22000 enable_shared_with_static_runtimes_F77=no
22002 archive_expsym_cmds_F77=
22003 old_archive_From_new_cmds_F77=
22004 old_archive_from_expsyms_cmds_F77=
22005 export_dynamic_flag_spec_F77=
22006 whole_archive_flag_spec_F77=
22007 thread_safe_flag_spec_F77=
22008 hardcode_libdir_flag_spec_F77=
22009 hardcode_libdir_flag_spec_ld_F77=
22010 hardcode_libdir_separator_F77=
22011 hardcode_direct_F77=no
22012 hardcode_minus_L_F77=no
22013 hardcode_shlibpath_var_F77=unsupported
22014 link_all_deplibs_F77=unknown
22015 hardcode_automatic_F77=no
22017 module_expsym_cmds_F77=
22018 always_export_symbols_F77=no
22019 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22020 # include_expsyms should be a list of space-separated symbols to be *always*
22021 # included in the symbol list
22022 include_expsyms_F77=
22023 # exclude_expsyms can be an extended regexp of symbols to exclude
22024 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22025 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22026 # as well as any symbol that contains `d'.
22027 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22028 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22029 # platforms (ab)use it in PIC code, but their linkers get confused if
22030 # the symbol is explicitly referenced. Since portable code cannot
22031 # rely on this symbol name, it's probably fine to never include it in
22032 # preloaded symbol tables.
22033 extract_expsyms_cmds=
22034 # Just being paranoid about ensuring that cc_basename is set.
22035 for cc_temp in $compiler""; do
22037 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22038 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22043 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22046 cygwin* | mingw* | pw32*)
22047 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22048 # When not using gcc, we currently assume that we are using
22049 # Microsoft Visual C++.
22050 if test "$GCC" != yes; then
22055 # we just hope/assume this is gcc and not c89 (= MSVC++)
22064 if test "$with_gnu_ld" = yes; then
22065 # If archive_cmds runs LD, not CC, wlarc should be empty
22068 # Set some defaults for GNU ld with shared library support. These
22069 # are reset later if shared libraries are not supported. Putting them
22070 # here allows them to be overridden if necessary.
22071 runpath_var=LD_RUN_PATH
22072 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22073 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22074 # ancient GNU ld didn't support --whole-archive et. al.
22075 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22076 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22078 whole_archive_flag_spec_F77=
22080 supports_anon_versioning=no
22081 case `$LD -v 2>/dev/null` in
22082 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22083 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22084 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22085 *\ 2.11.*) ;; # other 2.11 versions
22086 *) supports_anon_versioning=yes ;;
22089 # See if GNU ld supports shared libraries.
22091 aix3* | aix4* | aix5*)
22092 # On AIX/PPC, the GNU linker is very broken
22093 if test "$host_cpu" != ia64; then
22097 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22098 *** to be unable to reliably create shared libraries on AIX.
22099 *** Therefore, libtool is disabling shared libraries support. If you
22100 *** really care for shared libraries, you may want to modify your PATH
22101 *** so that a non-GNU linker is found, and then restart.
22108 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)'
22109 hardcode_libdir_flag_spec_F77='-L$libdir'
22110 hardcode_minus_L_F77=yes
22112 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22113 # that the semantics of dynamic libraries on AmigaOS, at least up
22114 # to version 4, is to share data among multiple programs linked
22115 # with the same dynamic library. Since this doesn't match the
22116 # behavior of shared libraries on other platforms, we can't use
22122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22123 allow_undefined_flag_F77=unsupported
22124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22125 # support --undefined. This deserves some investigation. FIXME
22126 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22132 cygwin* | mingw* | pw32*)
22133 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22134 # as there is no search path for DLLs.
22135 hardcode_libdir_flag_spec_F77='-L$libdir'
22136 allow_undefined_flag_F77=unsupported
22137 always_export_symbols_F77=no
22138 enable_shared_with_static_runtimes_F77=yes
22139 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22141 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22142 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22143 # If the export-symbols file already is a .def file (1st line
22144 # is EXPORTS), use it as is; otherwise, prepend...
22145 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22146 cp $export_symbols $output_objdir/$soname.def;
22148 echo EXPORTS > $output_objdir/$soname.def;
22149 cat $export_symbols >> $output_objdir/$soname.def;
22151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22158 hardcode_direct_F77=no
22159 hardcode_shlibpath_var_F77=no
22160 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22161 export_dynamic_flag_spec_F77='${wl}-E'
22162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22163 # Instead, shared libraries are loaded at an image base (0x10000000 by
22164 # default) and relocated if they conflict, which is a slow very memory
22165 # consuming and fragmenting process. To avoid this, we pick a random,
22166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22167 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22168 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'
22169 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'
22173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22175 case $cc_basename,$host_cpu in
22176 pgcc*) # Portland Group C compiler
22177 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'
22178 tmp_addflag=' $pic_flag'
22180 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22181 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'
22182 tmp_addflag=' $pic_flag -Mnomain' ;;
22183 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22184 tmp_addflag=' -i_dynamic' ;;
22185 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22186 tmp_addflag=' -i_dynamic -nofor_main' ;;
22187 ifc* | ifort*) # Intel Fortran compiler
22188 tmp_addflag=' -nofor_main' ;;
22190 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22192 if test $supports_anon_versioning = yes; then
22193 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22195 $echo "local: *; };" >> $output_objdir/$libname.ver~
22196 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22205 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22208 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22209 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22214 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22218 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22219 *** create shared libraries on Solaris systems. Therefore, libtool
22220 *** is disabling shared libraries support. We urge you to upgrade GNU
22221 *** binutils to release 2.9.1 or newer. Another option is to modify
22222 *** your PATH or compiler configuration so that the native linker is
22223 *** used, and then restart.
22226 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22227 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22228 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22235 case `$LD -v 2>&1` in
22236 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22240 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22241 *** reliably create shared libraries on SCO systems. Therefore, libtool
22242 *** is disabling shared libraries support. We urge you to upgrade GNU
22243 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22244 *** your PATH or compiler configuration so that the native linker is
22245 *** used, and then restart.
22250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22251 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22252 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22253 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22262 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22264 hardcode_direct_F77=yes
22265 hardcode_shlibpath_var_F77=no
22269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22270 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22271 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22278 if test "$ld_shlibs_F77" = no; then
22280 hardcode_libdir_flag_spec_F77=
22281 export_dynamic_flag_spec_F77=
22282 whole_archive_flag_spec_F77=
22285 # PORTME fill in a description of your system's linker (not GNU ld)
22288 allow_undefined_flag_F77=unsupported
22289 always_export_symbols_F77=yes
22290 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'
22291 # Note: this linker hardcodes the directories in LIBPATH if there
22292 # are no directories specified by -L.
22293 hardcode_minus_L_F77=yes
22294 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22295 # Neither direct hardcoding nor static linking is supported with a
22297 hardcode_direct_F77=unsupported
22302 if test "$host_cpu" = ia64; then
22303 # On IA64, the linker does run time linking by default, so we don't
22304 # have to do anything special.
22305 aix_use_runtimelinking=no
22306 exp_sym_flag='-Bexport'
22309 # If we're using GNU nm, then we don't want the "-C" option.
22310 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22311 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22312 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'
22314 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'
22316 aix_use_runtimelinking=no
22318 # Test if we are trying to use run time linking or normal
22319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22320 # need to do runtime linking.
22321 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22322 for ld_flag in $LDFLAGS; do
22323 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22324 aix_use_runtimelinking=yes
22331 exp_sym_flag='-bexport'
22332 no_entry_flag='-bnoentry'
22335 # When large executables or shared objects are built, AIX ld can
22336 # have problems creating the table of contents. If linking a library
22337 # or program results in "error TOC overflow" add -mminimal-toc to
22338 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22339 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22341 archive_cmds_F77=''
22342 hardcode_direct_F77=yes
22343 hardcode_libdir_separator_F77=':'
22344 link_all_deplibs_F77=yes
22346 if test "$GCC" = yes; then
22347 case $host_os in aix4.[012]|aix4.[012].*)
22348 # We only want to do this on AIX 4.2 and lower, the check
22349 # below for broken collect2 doesn't work under 4.3+
22350 collect2name=`${CC} -print-prog-name=collect2`
22351 if test -f "$collect2name" && \
22352 strings "$collect2name" | grep resolve_lib_name >/dev/null
22354 # We have reworked collect2
22355 hardcode_direct_F77=yes
22357 # We have old collect2
22358 hardcode_direct_F77=unsupported
22359 # It fails to find uninstalled libraries when the uninstalled
22360 # path is not listed in the libpath. Setting hardcode_minus_L
22361 # to unsupported forces relinking
22362 hardcode_minus_L_F77=yes
22363 hardcode_libdir_flag_spec_F77='-L$libdir'
22364 hardcode_libdir_separator_F77=
22368 shared_flag='-shared'
22369 if test "$aix_use_runtimelinking" = yes; then
22370 shared_flag="$shared_flag "'${wl}-G'
22374 if test "$host_cpu" = ia64; then
22375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22376 # chokes on -Wl,-G. The following line is correct:
22379 if test "$aix_use_runtimelinking" = yes; then
22380 shared_flag='${wl}-G'
22382 shared_flag='${wl}-bM:SRE'
22387 # It seems that -bexpall does not export symbols beginning with
22388 # underscore (_), so it is better to generate a list of symbols to export.
22389 always_export_symbols_F77=yes
22390 if test "$aix_use_runtimelinking" = yes; then
22391 # Warning - without using the other runtime loading flags (-brtl),
22392 # -berok will link without error, but may produce a broken library.
22393 allow_undefined_flag_F77='-berok'
22394 # Determine the default libpath from the value encoded in an empty executable.
22395 cat >conftest.$ac_ext <<_ACEOF
22400 rm -f conftest.$ac_objext conftest$ac_exeext
22401 if { (ac_try="$ac_link"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_link") 2>conftest.er1
22409 grep -v '^ *+' conftest.er1 >conftest.err
22411 cat conftest.err >&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } &&
22414 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22415 { (case "(($ac_try" in
22416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417 *) ac_try_echo=$ac_try;;
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420 (eval "$ac_try") 2>&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try='test -s conftest$ac_exeext'
22425 { (case "(($ac_try" in
22426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430 (eval "$ac_try") 2>&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }; then
22435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22437 # Check for a 64-bit object if we didn't find anything.
22438 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; }
22441 echo "$as_me: failed program was:" >&5
22442 sed 's/^/| /' conftest.$ac_ext >&5
22447 rm -f core conftest.err conftest.$ac_objext \
22448 conftest$ac_exeext conftest.$ac_ext
22449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22451 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22452 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"
22454 if test "$host_cpu" = ia64; then
22455 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22456 allow_undefined_flag_F77="-z nodefs"
22457 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"
22459 # Determine the default libpath from the value encoded in an empty executable.
22460 cat >conftest.$ac_ext <<_ACEOF
22465 rm -f conftest.$ac_objext conftest$ac_exeext
22466 if { (ac_try="$ac_link"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_link") 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } &&
22479 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22480 { (case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_try") 2>&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; } &&
22489 { ac_try='test -s conftest$ac_exeext'
22490 { (case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_try") 2>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22502 # Check for a 64-bit object if we didn't find anything.
22503 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; }
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22512 rm -f core conftest.err conftest.$ac_objext \
22513 conftest$ac_exeext conftest.$ac_ext
22514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22516 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22517 # Warning - without using the other run time loading flags,
22518 # -berok will link without error, but may produce a broken library.
22519 no_undefined_flag_F77=' ${wl}-bernotok'
22520 allow_undefined_flag_F77=' ${wl}-berok'
22521 # Exported symbols can be pulled into shared objects from archives
22522 whole_archive_flag_spec_F77='$convenience'
22523 archive_cmds_need_lc_F77=yes
22524 # This is similar to how AIX traditionally builds its shared libraries.
22525 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'
22531 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)'
22532 hardcode_libdir_flag_spec_F77='-L$libdir'
22533 hardcode_minus_L_F77=yes
22534 # see comment about different semantics on the GNU ld section
22539 export_dynamic_flag_spec_F77=-rdynamic
22542 cygwin* | mingw* | pw32*)
22543 # When not using gcc, we currently assume that we are using
22544 # Microsoft Visual C++.
22545 # hardcode_libdir_flag_spec is actually meaningless, as there is
22546 # no search path for DLLs.
22547 hardcode_libdir_flag_spec_F77=' '
22548 allow_undefined_flag_F77=unsupported
22549 # Tell ltmain to make .lib files, not .a files.
22551 # Tell ltmain to make .dll files, not .so files.
22553 # FIXME: Setting linknames here is a bad hack.
22554 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22555 # The linker will automatically build a .lib file if we build a DLL.
22556 old_archive_From_new_cmds_F77='true'
22557 # FIXME: Should let the user specify the lib program.
22558 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22559 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22560 enable_shared_with_static_runtimes_F77=yes
22563 darwin* | rhapsody*)
22565 rhapsody* | darwin1.[012])
22566 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22569 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22570 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22572 case ${MACOSX_DEPLOYMENT_TARGET} in
22574 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22577 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22583 archive_cmds_need_lc_F77=no
22584 hardcode_direct_F77=no
22585 hardcode_automatic_F77=yes
22586 hardcode_shlibpath_var_F77=unsupported
22587 whole_archive_flag_spec_F77=''
22588 link_all_deplibs_F77=yes
22589 if test "$GCC" = yes ; then
22590 output_verbose_link_cmd='echo'
22591 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22592 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22594 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}'
22595 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}'
22597 case $cc_basename in
22599 output_verbose_link_cmd='echo'
22600 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22601 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22603 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}'
22604 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}'
22614 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22615 hardcode_libdir_flag_spec_F77='-L$libdir'
22616 hardcode_shlibpath_var_F77=no
22623 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22624 # support. Future versions do this automatically, but an explicit c++rt0.o
22625 # does not break anything, and helps significantly (at the cost of a little
22628 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22629 hardcode_libdir_flag_spec_F77='-R$libdir'
22630 hardcode_direct_F77=yes
22631 hardcode_shlibpath_var_F77=no
22634 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22636 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22637 hardcode_direct_F77=yes
22638 hardcode_minus_L_F77=yes
22639 hardcode_shlibpath_var_F77=no
22642 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22643 freebsd* | kfreebsd*-gnu | dragonfly*)
22644 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22645 hardcode_libdir_flag_spec_F77='-R$libdir'
22646 hardcode_direct_F77=yes
22647 hardcode_shlibpath_var_F77=no
22651 if test "$GCC" = yes; then
22652 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'
22654 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'
22656 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22657 hardcode_libdir_separator_F77=:
22658 hardcode_direct_F77=yes
22660 # hardcode_minus_L: Not really in the search PATH,
22661 # but as the default location of the library.
22662 hardcode_minus_L_F77=yes
22663 export_dynamic_flag_spec_F77='${wl}-E'
22667 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22668 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22670 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22672 if test "$with_gnu_ld" = no; then
22673 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22674 hardcode_libdir_separator_F77=:
22676 hardcode_direct_F77=yes
22677 export_dynamic_flag_spec_F77='${wl}-E'
22679 # hardcode_minus_L: Not really in the search PATH,
22680 # but as the default location of the library.
22681 hardcode_minus_L_F77=yes
22686 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22689 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22692 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22695 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22701 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22704 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22707 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22711 if test "$with_gnu_ld" = no; then
22712 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22713 hardcode_libdir_separator_F77=:
22717 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22718 hardcode_direct_F77=no
22719 hardcode_shlibpath_var_F77=no
22722 hardcode_direct_F77=yes
22723 export_dynamic_flag_spec_F77='${wl}-E'
22725 # hardcode_minus_L: Not really in the search PATH,
22726 # but as the default location of the library.
22727 hardcode_minus_L_F77=yes
22733 irix5* | irix6* | nonstopux*)
22734 if test "$GCC" = yes; then
22735 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'
22737 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'
22738 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22740 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22741 hardcode_libdir_separator_F77=:
22742 link_all_deplibs_F77=yes
22746 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22747 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22749 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22751 hardcode_libdir_flag_spec_F77='-R$libdir'
22752 hardcode_direct_F77=yes
22753 hardcode_shlibpath_var_F77=no
22757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22758 hardcode_direct_F77=yes
22759 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22760 hardcode_libdir_separator_F77=:
22761 hardcode_shlibpath_var_F77=no
22765 hardcode_direct_F77=yes
22766 hardcode_shlibpath_var_F77=no
22767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22768 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22769 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22770 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22771 export_dynamic_flag_spec_F77='${wl}-E'
22774 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22775 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22776 hardcode_libdir_flag_spec_F77='-R$libdir'
22779 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22780 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22787 hardcode_libdir_flag_spec_F77='-L$libdir'
22788 hardcode_minus_L_F77=yes
22789 allow_undefined_flag_F77=unsupported
22790 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'
22791 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22795 if test "$GCC" = yes; then
22796 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22797 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'
22799 allow_undefined_flag_F77=' -expect_unresolved \*'
22800 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'
22802 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22803 hardcode_libdir_separator_F77=:
22806 osf4* | osf5*) # as osf3* with the addition of -msym flag
22807 if test "$GCC" = yes; then
22808 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22809 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'
22810 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22812 allow_undefined_flag_F77=' -expect_unresolved \*'
22813 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'
22814 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~
22815 $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'
22817 # Both c and cxx compiler support -rpath directly
22818 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22820 hardcode_libdir_separator_F77=:
22824 no_undefined_flag_F77=' -z text'
22825 if test "$GCC" = yes; then
22827 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22828 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22829 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22832 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22833 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22836 hardcode_libdir_flag_spec_F77='-R$libdir'
22837 hardcode_shlibpath_var_F77=no
22839 solaris2.[0-5] | solaris2.[0-5].*) ;;
22841 # The compiler driver will combine linker options so we
22842 # cannot just pass the convience library names through
22843 # without $wl, iff we do not link with $LD.
22844 # Luckily, gcc supports the same syntax we need for Sun Studio.
22845 # Supported since Solaris 2.6 (maybe 2.5.1?)
22848 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22850 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' ;;
22853 link_all_deplibs_F77=yes
22857 if test "x$host_vendor" = xsequent; then
22858 # Use $CC to link under sequent, because it throws in some extra .o
22859 # files that make .init and .fini sections work.
22860 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22862 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22864 hardcode_libdir_flag_spec_F77='-L$libdir'
22865 hardcode_direct_F77=yes
22866 hardcode_minus_L_F77=yes
22867 hardcode_shlibpath_var_F77=no
22871 case $host_vendor in
22873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22874 hardcode_direct_F77=yes # is this really true???
22877 ## LD is ld it makes a PLAMLIB
22878 ## CC just makes a GrossModule.
22879 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22880 reload_cmds_F77='$CC -r -o $output$reload_objs'
22881 hardcode_direct_F77=no
22884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22885 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22888 runpath_var='LD_RUN_PATH'
22889 hardcode_shlibpath_var_F77=no
22893 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22894 hardcode_shlibpath_var_F77=no
22895 export_dynamic_flag_spec_F77='-Bexport'
22899 if test -d /usr/nec; then
22900 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22901 hardcode_shlibpath_var_F77=no
22902 runpath_var=LD_RUN_PATH
22903 hardcode_runpath_var=yes
22908 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22909 no_undefined_flag_F77='${wl}-z,text'
22910 archive_cmds_need_lc_F77=no
22911 hardcode_shlibpath_var_F77=no
22912 runpath_var='LD_RUN_PATH'
22914 if test "$GCC" = yes; then
22915 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22916 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22918 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22919 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22923 sysv5* | sco3.2v5* | sco5v6*)
22924 # Note: We can NOT use -z defs as we might desire, because we do not
22925 # link with -lc, and that would cause any symbols used from libc to
22926 # always be unresolved, which means just about no library would
22927 # ever link correctly. If we're not using GNU ld we use -z text
22928 # though, which does catch some bad symbols but isn't as heavy-handed
22930 no_undefined_flag_F77='${wl}-z,text'
22931 allow_undefined_flag_F77='${wl}-z,nodefs'
22932 archive_cmds_need_lc_F77=no
22933 hardcode_shlibpath_var_F77=no
22934 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22935 hardcode_libdir_separator_F77=':'
22936 link_all_deplibs_F77=yes
22937 export_dynamic_flag_spec_F77='${wl}-Bexport'
22938 runpath_var='LD_RUN_PATH'
22940 if test "$GCC" = yes; then
22941 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22942 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22944 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22945 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22950 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22951 hardcode_libdir_flag_spec_F77='-L$libdir'
22952 hardcode_shlibpath_var_F77=no
22961 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22962 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22963 test "$ld_shlibs_F77" = no && can_build_shared=no
22966 # Do we need to explicitly link libc?
22968 case "x$archive_cmds_need_lc_F77" in
22970 # Assume -lc should be added
22971 archive_cmds_need_lc_F77=yes
22973 if test "$enable_shared" = yes && test "$GCC" = yes; then
22974 case $archive_cmds_F77 in
22976 # FIXME: we may have to deal with multi-command sequences.
22979 # Test whether the compiler implicitly links with -lc since on some
22980 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22981 # to ld, don't add -lc before -lgcc.
22982 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22983 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22988 (eval $ac_compile) 2>&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } 2>conftest.err; then
22994 libobjs=conftest.$ac_objext
22996 wl=$lt_prog_compiler_wl_F77
22997 pic_flag=$lt_prog_compiler_pic_F77
23003 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23004 allow_undefined_flag_F77=
23005 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23006 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); }
23011 archive_cmds_need_lc_F77=no
23013 archive_cmds_need_lc_F77=yes
23015 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23017 cat conftest.err 1>&5
23020 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23021 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23028 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23029 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23030 library_names_spec=
23031 libname_spec='lib$name'
23035 postuninstall_cmds=
23039 shlibpath_overrides_runpath=unknown
23041 dynamic_linker="$host_os ld.so"
23042 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23043 if test "$GCC" = yes; then
23044 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23045 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23046 # if the path contains ";" then we assume it to be the separator
23047 # otherwise default to the standard path separator (i.e. ":") - it is
23048 # assumed that no part of a normal pathname contains ";" but that should
23049 # okay in the real world where ";" in dirpaths is itself problematic.
23050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23055 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23057 need_lib_prefix=unknown
23058 hardcode_into_libs=no
23060 # when you set need_version to no, make sure it does not cause -set_version
23061 # flags to be left without arguments
23062 need_version=unknown
23067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23068 shlibpath_var=LIBPATH
23070 # AIX 3 has no versioning support, so we append a major version to the name.
23071 soname_spec='${libname}${release}${shared_ext}$major'
23078 hardcode_into_libs=yes
23079 if test "$host_cpu" = ia64; then
23080 # AIX 5 supports IA64
23081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23082 shlibpath_var=LD_LIBRARY_PATH
23084 # With GCC up to 2.95.x, collect2 would create an import file
23085 # for dependence libraries. The import file would start with
23086 # the line `#! .'. This would cause the generated library to
23087 # depend on `.', always an invalid library. This was fixed in
23088 # development snapshots of GCC prior to 3.0.
23090 aix4 | aix4.[01] | aix4.[01].*)
23091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23093 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23096 can_build_shared=no
23100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23101 # soname into executable. Probably we can add versioning support to
23102 # collect2, so additional links can be useful in future.
23103 if test "$aix_use_runtimelinking" = yes; then
23104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23105 # instead of lib<name>.a to let people know that these are not
23106 # typical AIX shared libraries.
23107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23109 # We preserve .a as extension for shared libraries through AIX4.2
23110 # and later when we are not doing run time linking.
23111 library_names_spec='${libname}${release}.a $libname.a'
23112 soname_spec='${libname}${release}${shared_ext}$major'
23114 shlibpath_var=LIBPATH
23119 library_names_spec='$libname.ixlibrary $libname.a'
23120 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23121 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'
23125 library_names_spec='${libname}${shared_ext}'
23126 dynamic_linker="$host_os ld.so"
23127 shlibpath_var=LIBRARY_PATH
23133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23134 soname_spec='${libname}${release}${shared_ext}$major'
23135 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23136 shlibpath_var=LD_LIBRARY_PATH
23137 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23138 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23139 # the default ld.so.conf also contains /usr/contrib/lib and
23140 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23141 # libtool to hard-code these into programs
23144 cygwin* | mingw* | pw32*)
23145 version_type=windows
23150 case $GCC,$host_os in
23151 yes,cygwin* | yes,mingw* | yes,pw32*)
23152 library_names_spec='$libname.dll.a'
23153 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23154 postinstall_cmds='base_file=`basename \${file}`~
23155 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23156 dldir=$destdir/`dirname \$dlpath`~
23157 test -d \$dldir || mkdir -p \$dldir~
23158 $install_prog $dir/$dlname \$dldir/$dlname~
23159 chmod a+x \$dldir/$dlname'
23160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23161 dlpath=$dir/\$dldll~
23163 shlibpath_overrides_runpath=yes
23167 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23168 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23169 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23172 # MinGW DLLs use traditional 'lib' prefix
23173 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23175 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23176 # It is most probably a Windows format PATH printed by
23177 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23178 # path with ; separators, and with drive letters. We can handle the
23179 # drive letters (cygwin fileutils understands them), so leave them,
23180 # especially as we might pass files found there to a mingw objdump,
23181 # which wouldn't understand a cygwinified path. Ahh.
23182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23188 # pw32 DLLs use 'pw' prefix rather than 'lib'
23189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23198 dynamic_linker='Win32 ld.exe'
23199 # FIXME: first we should search . and the directory the executable is in
23203 darwin* | rhapsody*)
23204 dynamic_linker="$host_os dyld"
23205 version_type=darwin
23208 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23209 soname_spec='${libname}${release}${major}$shared_ext'
23210 shlibpath_overrides_runpath=yes
23211 shlibpath_var=DYLD_LIBRARY_PATH
23212 shrext_cmds='.dylib'
23213 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23214 if test "$GCC" = yes; then
23215 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"`
23217 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23227 soname_spec='${libname}${release}${shared_ext}$major'
23228 shlibpath_var=LD_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 shlibpath_var=LD_LIBRARY_PATH
23242 shlibpath_overrides_runpath=no
23243 hardcode_into_libs=yes
23244 dynamic_linker='GNU ld.so'
23247 freebsd* | dragonfly*)
23248 # DragonFly does not have aout. When/if they implement a new
23249 # versioning mechanism, adjust this.
23250 if test -x /usr/bin/objformat; then
23251 objformat=`/usr/bin/objformat`
23254 freebsd[123]*) objformat=aout ;;
23255 *) objformat=elf ;;
23258 version_type=freebsd-$objformat
23259 case $version_type in
23261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23270 shlibpath_var=LD_LIBRARY_PATH
23273 shlibpath_overrides_runpath=yes
23275 freebsd3.[01]* | freebsdelf3.[01]*)
23276 shlibpath_overrides_runpath=yes
23277 hardcode_into_libs=yes
23279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23281 shlibpath_overrides_runpath=no
23282 hardcode_into_libs=yes
23284 freebsd*) # from 4.6 on
23285 shlibpath_overrides_runpath=yes
23286 hardcode_into_libs=yes
23295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23296 soname_spec='${libname}${release}${shared_ext}$major'
23297 shlibpath_var=LD_LIBRARY_PATH
23298 hardcode_into_libs=yes
23301 hpux9* | hpux10* | hpux11*)
23302 # Give a soname corresponding to the major version so that dld.sl refuses to
23303 # link against other versions.
23310 hardcode_into_libs=yes
23311 dynamic_linker="$host_os dld.so"
23312 shlibpath_var=LD_LIBRARY_PATH
23313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23315 soname_spec='${libname}${release}${shared_ext}$major'
23316 if test "X$HPUX_IA64_MODE" = X32; then
23317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23325 hardcode_into_libs=yes
23326 dynamic_linker="$host_os dld.sl"
23327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23330 soname_spec='${libname}${release}${shared_ext}$major'
23331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23336 dynamic_linker="$host_os dld.sl"
23337 shlibpath_var=SHLIB_PATH
23338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23340 soname_spec='${libname}${release}${shared_ext}$major'
23343 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23344 postinstall_cmds='chmod 555 $lib'
23351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23352 soname_spec='${libname}${release}${shared_ext}$major'
23353 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23354 shlibpath_var=LD_LIBRARY_PATH
23355 shlibpath_overrides_runpath=no
23356 hardcode_into_libs=yes
23359 irix5* | irix6* | nonstopux*)
23361 nonstopux*) version_type=nonstopux ;;
23363 if test "$lt_cv_prog_gnu_ld" = yes; then
23371 soname_spec='${libname}${release}${shared_ext}$major'
23372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23374 irix5* | nonstopux*)
23375 libsuff= shlibsuff=
23378 case $LD in # libtool.m4 will add one of these switches to LD
23379 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23380 libsuff= shlibsuff= libmagic=32-bit;;
23381 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23382 libsuff=32 shlibsuff=N32 libmagic=N32;;
23383 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23384 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23385 *) libsuff= shlibsuff= libmagic=never-match;;
23389 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23390 shlibpath_overrides_runpath=no
23391 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23392 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23393 hardcode_into_libs=yes
23396 # No shared lib support for Linux oldld, aout, or coff.
23397 linux*oldld* | linux*aout* | linux*coff*)
23401 # This must be Linux ELF.
23406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23407 soname_spec='${libname}${release}${shared_ext}$major'
23408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23409 shlibpath_var=LD_LIBRARY_PATH
23410 shlibpath_overrides_runpath=no
23411 # This implies no fast_install, which is unacceptable.
23412 # Some rework will be needed to allow for fast_install
23413 # before this can be enabled.
23414 hardcode_into_libs=yes
23416 # Append ld.so.conf contents to the search path
23417 if test -f /etc/ld.so.conf; then
23418 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' ' '`
23419 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23422 # We used to test for /lib/ld.so.1 and disable shared libraries on
23423 # powerpc, because MkLinux only supported shared libraries with the
23424 # GNU dynamic linker. Since this was broken with cross compilers,
23425 # most powerpc-linux boxes support dynamic linking these days and
23426 # people can always --disable-shared, the test was removed, and we
23427 # assume the GNU/Linux dynamic linker is in use.
23428 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
23438 shlibpath_overrides_runpath=no
23439 hardcode_into_libs=yes
23440 dynamic_linker='GNU ld.so'
23447 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23450 dynamic_linker='NetBSD (a.out) ld.so'
23452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23453 soname_spec='${libname}${release}${shared_ext}$major'
23454 dynamic_linker='NetBSD ld.elf_so'
23456 shlibpath_var=LD_LIBRARY_PATH
23457 shlibpath_overrides_runpath=yes
23458 hardcode_into_libs=yes
23463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23464 shlibpath_var=LD_LIBRARY_PATH
23465 shlibpath_overrides_runpath=yes
23472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23473 soname_spec='${libname}${release}${shared_ext}$major'
23474 shlibpath_var=LD_LIBRARY_PATH
23475 shlibpath_overrides_runpath=yes
23480 sys_lib_dlsearch_path_spec="/usr/lib"
23482 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23484 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23485 *) need_version=no ;;
23487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23489 shlibpath_var=LD_LIBRARY_PATH
23490 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23492 openbsd2.[89] | openbsd2.[89].*)
23493 shlibpath_overrides_runpath=no
23496 shlibpath_overrides_runpath=yes
23500 shlibpath_overrides_runpath=yes
23505 libname_spec='$name'
23508 library_names_spec='$libname${shared_ext} $libname.a'
23509 dynamic_linker='OS/2 ld.exe'
23510 shlibpath_var=LIBPATH
23513 osf3* | osf4* | osf5*)
23517 soname_spec='${libname}${release}${shared_ext}$major'
23518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23519 shlibpath_var=LD_LIBRARY_PATH
23520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23521 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23529 soname_spec='${libname}${release}${shared_ext}$major'
23530 shlibpath_var=LD_LIBRARY_PATH
23531 shlibpath_overrides_runpath=yes
23532 hardcode_into_libs=yes
23533 # ldd complains unless libraries are executable
23534 postinstall_cmds='chmod +x $lib'
23539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23541 shlibpath_var=LD_LIBRARY_PATH
23542 shlibpath_overrides_runpath=yes
23543 if test "$with_gnu_ld" = yes; then
23551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23552 soname_spec='${libname}${release}${shared_ext}$major'
23553 shlibpath_var=LD_LIBRARY_PATH
23554 case $host_vendor in
23556 shlibpath_overrides_runpath=no
23558 export_dynamic_flag_spec='${wl}-Blargedynsym'
23559 runpath_var=LD_RUN_PATH
23567 shlibpath_overrides_runpath=no
23568 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23574 if test -d /usr/nec ;then
23576 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23577 soname_spec='$libname${shared_ext}.$major'
23578 shlibpath_var=LD_LIBRARY_PATH
23582 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23583 version_type=freebsd-elf
23586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23587 soname_spec='${libname}${release}${shared_ext}$major'
23588 shlibpath_var=LD_LIBRARY_PATH
23589 hardcode_into_libs=yes
23590 if test "$with_gnu_ld" = yes; then
23591 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23592 shlibpath_overrides_runpath=no
23594 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23595 shlibpath_overrides_runpath=yes
23598 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23602 sys_lib_dlsearch_path_spec='/usr/lib'
23607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23608 soname_spec='${libname}${release}${shared_ext}$major'
23609 shlibpath_var=LD_LIBRARY_PATH
23616 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23617 echo "${ECHO_T}$dynamic_linker" >&6; }
23618 test "$dynamic_linker" = no && can_build_shared=no
23620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23621 if test "$GCC" = yes; then
23622 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23625 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23626 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23627 hardcode_action_F77=
23628 if test -n "$hardcode_libdir_flag_spec_F77" || \
23629 test -n "$runpath_var_F77" || \
23630 test "X$hardcode_automatic_F77" = "Xyes" ; then
23632 # We can hardcode non-existant directories.
23633 if test "$hardcode_direct_F77" != no &&
23634 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23635 # have to relink, otherwise we might link with an installed library
23636 # when we should be linking with a yet-to-be-installed one
23637 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23638 test "$hardcode_minus_L_F77" != no; then
23639 # Linking always hardcodes the temporary library directory.
23640 hardcode_action_F77=relink
23642 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23643 hardcode_action_F77=immediate
23646 # We cannot hardcode anything, or else we can only hardcode existing
23648 hardcode_action_F77=unsupported
23650 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23651 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23653 if test "$hardcode_action_F77" = relink; then
23654 # Fast installation is not supported
23655 enable_fast_install=no
23656 elif test "$shlibpath_overrides_runpath" = yes ||
23657 test "$enable_shared" = no; then
23658 # Fast installation is not necessary
23659 enable_fast_install=needless
23663 # The else clause should only fire when bootstrapping the
23664 # libtool distribution, otherwise you forgot to ship ltmain.sh
23665 # with your package, and you will get complaints that there are
23666 # no rules to generate ltmain.sh.
23667 if test -f "$ltmain"; then
23668 # See if we are running on zsh, and set the options which allow our commands through
23669 # without removal of \ escapes.
23670 if test -n "${ZSH_VERSION+set}" ; then
23671 setopt NO_GLOB_SUBST
23673 # Now quote all the things that may contain metacharacters while being
23674 # careful not to overquote the AC_SUBSTed values. We take copies of the
23675 # variables and quote the copies for generation of the libtool script.
23676 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23678 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23679 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23680 deplibs_check_method reload_flag reload_cmds need_locks \
23681 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23682 lt_cv_sys_global_symbol_to_c_name_address \
23683 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23684 old_postinstall_cmds old_postuninstall_cmds \
23688 lt_prog_compiler_wl_F77 \
23689 lt_prog_compiler_pic_F77 \
23690 lt_prog_compiler_static_F77 \
23691 lt_prog_compiler_no_builtin_flag_F77 \
23692 export_dynamic_flag_spec_F77 \
23693 thread_safe_flag_spec_F77 \
23694 whole_archive_flag_spec_F77 \
23695 enable_shared_with_static_runtimes_F77 \
23696 old_archive_cmds_F77 \
23697 old_archive_from_new_cmds_F77 \
23698 predep_objects_F77 \
23699 postdep_objects_F77 \
23702 compiler_lib_search_path_F77 \
23704 archive_expsym_cmds_F77 \
23705 postinstall_cmds_F77 \
23706 postuninstall_cmds_F77 \
23707 old_archive_from_expsyms_cmds_F77 \
23708 allow_undefined_flag_F77 \
23709 no_undefined_flag_F77 \
23710 export_symbols_cmds_F77 \
23711 hardcode_libdir_flag_spec_F77 \
23712 hardcode_libdir_flag_spec_ld_F77 \
23713 hardcode_libdir_separator_F77 \
23714 hardcode_automatic_F77 \
23716 module_expsym_cmds_F77 \
23717 lt_cv_prog_compiler_c_o_F77 \
23718 exclude_expsyms_F77 \
23719 include_expsyms_F77; do
23722 old_archive_cmds_F77 | \
23723 old_archive_from_new_cmds_F77 | \
23724 archive_cmds_F77 | \
23725 archive_expsym_cmds_F77 | \
23726 module_cmds_F77 | \
23727 module_expsym_cmds_F77 | \
23728 old_archive_from_expsyms_cmds_F77 | \
23729 export_symbols_cmds_F77 | \
23730 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23731 postinstall_cmds | postuninstall_cmds | \
23732 old_postinstall_cmds | old_postuninstall_cmds | \
23733 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23734 # Double-quote double-evaled strings.
23735 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23738 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23744 *'\$0 --fallback-echo"')
23745 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23751 cat <<__EOF__ >> "$cfgfile"
23752 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23756 # Shell to use when invoking shell scripts.
23759 # Whether or not to build shared libraries.
23760 build_libtool_libs=$enable_shared
23762 # Whether or not to build static libraries.
23763 build_old_libs=$enable_static
23765 # Whether or not to add -lc for building shared libraries.
23766 build_libtool_need_lc=$archive_cmds_need_lc_F77
23768 # Whether or not to disallow shared libs when runtime libs are static
23769 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23771 # Whether or not to optimize for fast installation.
23772 fast_install=$enable_fast_install
23775 host_alias=$host_alias
23779 # The build system.
23780 build_alias=$build_alias
23784 # An echo program that does not interpret backslashes.
23789 AR_FLAGS=$lt_AR_FLAGS
23794 # LTCC compiler flags.
23795 LTCFLAGS=$lt_LTCFLAGS
23797 # A language-specific compiler.
23798 CC=$lt_compiler_F77
23800 # Is the compiler the GNU C compiler?
23806 # The linker used to build libraries.
23809 # Whether we need hard or soft links.
23812 # A BSD-compatible nm program.
23815 # A symbol stripping program
23818 # Used to examine libraries when file_magic_cmd begins "file"
23819 MAGIC_CMD=$MAGIC_CMD
23821 # Used on cygwin: DLL creation program.
23824 # Used on cygwin: object dumper.
23827 # Used on cygwin: assembler.
23830 # The name of the directory that contains temporary libtool files.
23833 # How to create reloadable object files.
23834 reload_flag=$lt_reload_flag
23835 reload_cmds=$lt_reload_cmds
23837 # How to pass a linker flag through the compiler.
23838 wl=$lt_lt_prog_compiler_wl_F77
23840 # Object file suffix (normally "o").
23841 objext="$ac_objext"
23843 # Old archive suffix (normally "a").
23846 # Shared library suffix (normally ".so").
23847 shrext_cmds='$shrext_cmds'
23849 # Executable file suffix (normally "").
23852 # Additional compiler flags for building library objects.
23853 pic_flag=$lt_lt_prog_compiler_pic_F77
23856 # What is the maximum length of a command?
23857 max_cmd_len=$lt_cv_sys_max_cmd_len
23859 # Does compiler simultaneously support -c and -o options?
23860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23862 # Must we lock files when doing compilation?
23863 need_locks=$lt_need_locks
23865 # Do we need the lib prefix for modules?
23866 need_lib_prefix=$need_lib_prefix
23868 # Do we need a version for libraries?
23869 need_version=$need_version
23871 # Whether dlopen is supported.
23872 dlopen_support=$enable_dlopen
23874 # Whether dlopen of programs is supported.
23875 dlopen_self=$enable_dlopen_self
23877 # Whether dlopen of statically linked programs is supported.
23878 dlopen_self_static=$enable_dlopen_self_static
23880 # Compiler flag to prevent dynamic linking.
23881 link_static_flag=$lt_lt_prog_compiler_static_F77
23883 # Compiler flag to turn off builtin functions.
23884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23886 # Compiler flag to allow reflexive dlopens.
23887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23889 # Compiler flag to generate shared objects directly from archives.
23890 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23892 # Compiler flag to generate thread-safe objects.
23893 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23895 # Library versioning type.
23896 version_type=$version_type
23898 # Format of library name prefix.
23899 libname_spec=$lt_libname_spec
23901 # List of archive names. First name is the real one, the rest are links.
23902 # The last name is the one that the linker finds with -lNAME.
23903 library_names_spec=$lt_library_names_spec
23905 # The coded name of the library, if different from the real name.
23906 soname_spec=$lt_soname_spec
23908 # Commands used to build and install an old-style archive.
23910 old_archive_cmds=$lt_old_archive_cmds_F77
23911 old_postinstall_cmds=$lt_old_postinstall_cmds
23912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23914 # Create an old-style archive from a shared archive.
23915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23917 # Create a temporary old-style archive to link instead of a shared archive.
23918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23920 # Commands used to build and install a shared archive.
23921 archive_cmds=$lt_archive_cmds_F77
23922 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23923 postinstall_cmds=$lt_postinstall_cmds
23924 postuninstall_cmds=$lt_postuninstall_cmds
23926 # Commands used to build a loadable module (assumed same as above if empty)
23927 module_cmds=$lt_module_cmds_F77
23928 module_expsym_cmds=$lt_module_expsym_cmds_F77
23930 # Commands to strip libraries.
23931 old_striplib=$lt_old_striplib
23932 striplib=$lt_striplib
23934 # Dependencies to place before the objects being linked to create a
23936 predep_objects=$lt_predep_objects_F77
23938 # Dependencies to place after the objects being linked to create a
23940 postdep_objects=$lt_postdep_objects_F77
23942 # Dependencies to place before the objects being linked to create a
23944 predeps=$lt_predeps_F77
23946 # Dependencies to place after the objects being linked to create a
23948 postdeps=$lt_postdeps_F77
23950 # The library search path used internally by the compiler when linking
23951 # a shared library.
23952 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23954 # Method to check whether dependent libraries are shared objects.
23955 deplibs_check_method=$lt_deplibs_check_method
23957 # Command to use when deplibs_check_method == file_magic.
23958 file_magic_cmd=$lt_file_magic_cmd
23960 # Flag that allows shared libraries with undefined symbols to be built.
23961 allow_undefined_flag=$lt_allow_undefined_flag_F77
23963 # Flag that forces no undefined symbols.
23964 no_undefined_flag=$lt_no_undefined_flag_F77
23966 # Commands used to finish a libtool library installation in a directory.
23967 finish_cmds=$lt_finish_cmds
23969 # Same as above, but a single script fragment to be evaled but not shown.
23970 finish_eval=$lt_finish_eval
23972 # Take the output of nm and produce a listing of raw symbols and C names.
23973 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23975 # Transform the output of nm in a proper C declaration
23976 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23978 # Transform the output of nm in a C name address pair
23979 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23981 # This is the shared library runtime path variable.
23982 runpath_var=$runpath_var
23984 # This is the shared library path variable.
23985 shlibpath_var=$shlibpath_var
23987 # Is shlibpath searched before the hard-coded library search path?
23988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23990 # How to hardcode a shared library path into an executable.
23991 hardcode_action=$hardcode_action_F77
23993 # Whether we should hardcode library paths into libraries.
23994 hardcode_into_libs=$hardcode_into_libs
23996 # Flag to hardcode \$libdir into a binary during linking.
23997 # This must work even if \$libdir does not exist.
23998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24000 # If ld is used when linking, flag to hardcode \$libdir into
24001 # a binary during linking. This must work even if \$libdir does
24003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24005 # Whether we need a single -rpath flag with a separated argument.
24006 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24008 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24009 # resulting binary.
24010 hardcode_direct=$hardcode_direct_F77
24012 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24013 # resulting binary.
24014 hardcode_minus_L=$hardcode_minus_L_F77
24016 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24017 # the resulting binary.
24018 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24020 # Set to yes if building a shared library automatically hardcodes DIR into the library
24021 # and all subsequent libraries and executables linked against it.
24022 hardcode_automatic=$hardcode_automatic_F77
24024 # Variables whose values should be saved in libtool wrapper scripts and
24025 # restored at relink time.
24026 variables_saved_for_relink="$variables_saved_for_relink"
24028 # Whether libtool must link a program against all its dependency libraries.
24029 link_all_deplibs=$link_all_deplibs_F77
24031 # Compile-time system search path for libraries
24032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24034 # Run-time system search path for libraries
24035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24037 # Fix the shell variable \$srcfile for the compiler.
24038 fix_srcfile_path="$fix_srcfile_path_F77"
24040 # Set to yes if exported symbols are required.
24041 always_export_symbols=$always_export_symbols_F77
24043 # The commands to list exported symbols.
24044 export_symbols_cmds=$lt_export_symbols_cmds_F77
24046 # The commands to extract the exported symbol list from a shared archive.
24047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24049 # Symbols that should not be listed in the preloaded symbols.
24050 exclude_expsyms=$lt_exclude_expsyms_F77
24052 # Symbols that must always be exported.
24053 include_expsyms=$lt_include_expsyms_F77
24055 # ### END LIBTOOL TAG CONFIG: $tagname
24061 # If there is no Makefile yet, we rely on a make rule to execute
24062 # `config.status --recheck' to rerun these tests and create the
24063 # libtool script then.
24064 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24065 if test -f "$ltmain_in"; then
24066 test -f Makefile && make "$ltmain"
24072 ac_cpp='$CPP $CPPFLAGS'
24073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24085 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24087 ac_cpp='$CPP $CPPFLAGS'
24088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24093 # Source file extension for Java test sources.
24096 # Object file extension for compiled Java test sources.
24100 # Code to be used in simple compile tests
24101 lt_simple_compile_test_code="class foo {}\n"
24103 # Code to be used in simple link tests
24104 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24106 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24108 # If no C compiler was specified, use CC.
24111 # If no C compiler flags were specified, use CFLAGS.
24112 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24114 # Allow CC to be a program name with arguments.
24118 # save warnings/boilerplate of simple test code
24119 ac_outfile=conftest.$ac_objext
24120 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24121 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24122 _lt_compiler_boilerplate=`cat conftest.err`
24125 ac_outfile=conftest.$ac_objext
24126 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24127 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24128 _lt_linker_boilerplate=`cat conftest.err`
24132 # Allow CC to be a program name with arguments.
24137 for cc_temp in $compiler""; do
24139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24145 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24148 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24149 archive_cmds_need_lc_GCJ=no
24151 old_archive_cmds_GCJ=$old_archive_cmds
24154 lt_prog_compiler_no_builtin_flag_GCJ=
24156 if test "$GCC" = yes; then
24157 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24160 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24161 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24162 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24163 echo $ECHO_N "(cached) $ECHO_C" >&6
24165 lt_cv_prog_compiler_rtti_exceptions=no
24166 ac_outfile=conftest.$ac_objext
24167 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24168 lt_compiler_flag="-fno-rtti -fno-exceptions"
24169 # Insert the option either (1) after the last *FLAGS variable, or
24170 # (2) before a word containing "conftest.", or (3) at the end.
24171 # Note that $ac_compile itself does not contain backslashes and begins
24172 # with a dollar sign (not a hyphen), so the echo should work correctly.
24173 # The option is referenced via a variable to avoid confusing sed.
24174 lt_compile=`echo "$ac_compile" | $SED \
24175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24177 -e 's:$: $lt_compiler_flag:'`
24178 (eval echo "\"\$as_me:24178: $lt_compile\"" >&5)
24179 (eval "$lt_compile" 2>conftest.err)
24181 cat conftest.err >&5
24182 echo "$as_me:24182: \$? = $ac_status" >&5
24183 if (exit $ac_status) && test -s "$ac_outfile"; then
24184 # The compiler can only warn and ignore the option if not recognized
24185 # So say no if there are warnings other than the usual output.
24186 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24188 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24189 lt_cv_prog_compiler_rtti_exceptions=yes
24195 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24196 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24198 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24199 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24206 lt_prog_compiler_wl_GCJ=
24207 lt_prog_compiler_pic_GCJ=
24208 lt_prog_compiler_static_GCJ=
24210 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24211 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24213 if test "$GCC" = yes; then
24214 lt_prog_compiler_wl_GCJ='-Wl,'
24215 lt_prog_compiler_static_GCJ='-static'
24219 # All AIX code is PIC.
24220 if test "$host_cpu" = ia64; then
24221 # AIX 5 now supports IA64 processor
24222 lt_prog_compiler_static_GCJ='-Bstatic'
24227 # FIXME: we need at least 68020 code to build shared libraries, but
24228 # adding the `-m68020' flag to GCC prevents building anything better,
24230 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24233 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24234 # PIC is the default for these OSes.
24237 mingw* | pw32* | os2*)
24238 # This hack is so that the source file can tell whether it is being
24239 # built for inclusion in a dll (and should export symbols for example).
24240 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24243 darwin* | rhapsody*)
24244 # PIC is the default on this platform
24245 # Common symbols not allowed in MH_DYLIB files
24246 lt_prog_compiler_pic_GCJ='-fno-common'
24250 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24251 # Instead, we relocate shared libraries at runtime.
24255 # Just because we use GCC doesn't mean we suddenly get shared libraries
24256 # on systems that don't support them.
24257 lt_prog_compiler_can_build_shared_GCJ=no
24262 if test -d /usr/nec; then
24263 lt_prog_compiler_pic_GCJ=-Kconform_pic
24268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24269 # not for PA HP-UX.
24275 lt_prog_compiler_pic_GCJ='-fPIC'
24281 lt_prog_compiler_pic_GCJ='-fPIC'
24285 # PORTME Check for flag to pass linker flags through the system compiler.
24288 lt_prog_compiler_wl_GCJ='-Wl,'
24289 if test "$host_cpu" = ia64; then
24290 # AIX 5 now supports IA64 processor
24291 lt_prog_compiler_static_GCJ='-Bstatic'
24293 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24297 # PIC is the default on this platform
24298 # Common symbols not allowed in MH_DYLIB files
24299 case $cc_basename in
24301 lt_prog_compiler_pic_GCJ='-qnocommon'
24302 lt_prog_compiler_wl_GCJ='-Wl,'
24307 mingw* | pw32* | os2*)
24308 # This hack is so that the source file can tell whether it is being
24309 # built for inclusion in a dll (and should export symbols for example).
24310 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24313 hpux9* | hpux10* | hpux11*)
24314 lt_prog_compiler_wl_GCJ='-Wl,'
24315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24316 # not for PA HP-UX.
24322 lt_prog_compiler_pic_GCJ='+Z'
24325 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24326 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24329 irix5* | irix6* | nonstopux*)
24330 lt_prog_compiler_wl_GCJ='-Wl,'
24331 # PIC (with -KPIC) is the default.
24332 lt_prog_compiler_static_GCJ='-non_shared'
24336 lt_prog_compiler_pic_GCJ='-KPIC'
24337 lt_prog_compiler_static_GCJ='-Bstatic'
24341 case $cc_basename in
24343 lt_prog_compiler_wl_GCJ='-Wl,'
24344 lt_prog_compiler_pic_GCJ='-KPIC'
24345 lt_prog_compiler_static_GCJ='-static'
24347 pgcc* | pgf77* | pgf90* | pgf95*)
24348 # Portland Group compilers (*not* the Pentium gcc compiler,
24349 # which looks to be a dead project)
24350 lt_prog_compiler_wl_GCJ='-Wl,'
24351 lt_prog_compiler_pic_GCJ='-fpic'
24352 lt_prog_compiler_static_GCJ='-Bstatic'
24355 lt_prog_compiler_wl_GCJ='-Wl,'
24356 # All Alpha code is PIC.
24357 lt_prog_compiler_static_GCJ='-non_shared'
24362 osf3* | osf4* | osf5*)
24363 lt_prog_compiler_wl_GCJ='-Wl,'
24364 # All OSF/1 code is PIC.
24365 lt_prog_compiler_static_GCJ='-non_shared'
24369 lt_prog_compiler_pic_GCJ='-KPIC'
24370 lt_prog_compiler_static_GCJ='-Bstatic'
24371 case $cc_basename in
24372 f77* | f90* | f95*)
24373 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24375 lt_prog_compiler_wl_GCJ='-Wl,';;
24380 lt_prog_compiler_wl_GCJ='-Qoption ld '
24381 lt_prog_compiler_pic_GCJ='-PIC'
24382 lt_prog_compiler_static_GCJ='-Bstatic'
24385 sysv4 | sysv4.2uw2* | sysv4.3*)
24386 lt_prog_compiler_wl_GCJ='-Wl,'
24387 lt_prog_compiler_pic_GCJ='-KPIC'
24388 lt_prog_compiler_static_GCJ='-Bstatic'
24392 if test -d /usr/nec ;then
24393 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24394 lt_prog_compiler_static_GCJ='-Bstatic'
24398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24399 lt_prog_compiler_wl_GCJ='-Wl,'
24400 lt_prog_compiler_pic_GCJ='-KPIC'
24401 lt_prog_compiler_static_GCJ='-Bstatic'
24405 lt_prog_compiler_wl_GCJ='-Wl,'
24406 lt_prog_compiler_can_build_shared_GCJ=no
24410 lt_prog_compiler_pic_GCJ='-pic'
24411 lt_prog_compiler_static_GCJ='-Bstatic'
24415 lt_prog_compiler_can_build_shared_GCJ=no
24420 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24421 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24424 # Check to make sure the PIC flag actually works.
24426 if test -n "$lt_prog_compiler_pic_GCJ"; then
24428 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24429 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24430 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24431 echo $ECHO_N "(cached) $ECHO_C" >&6
24433 lt_prog_compiler_pic_works_GCJ=no
24434 ac_outfile=conftest.$ac_objext
24435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24436 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24437 # Insert the option either (1) after the last *FLAGS variable, or
24438 # (2) before a word containing "conftest.", or (3) at the end.
24439 # Note that $ac_compile itself does not contain backslashes and begins
24440 # with a dollar sign (not a hyphen), so the echo should work correctly.
24441 # The option is referenced via a variable to avoid confusing sed.
24442 lt_compile=`echo "$ac_compile" | $SED \
24443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24445 -e 's:$: $lt_compiler_flag:'`
24446 (eval echo "\"\$as_me:24446: $lt_compile\"" >&5)
24447 (eval "$lt_compile" 2>conftest.err)
24449 cat conftest.err >&5
24450 echo "$as_me:24450: \$? = $ac_status" >&5
24451 if (exit $ac_status) && test -s "$ac_outfile"; then
24452 # The compiler can only warn and ignore the option if not recognized
24453 # So say no if there are warnings other than the usual output.
24454 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24457 lt_prog_compiler_pic_works_GCJ=yes
24463 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24464 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24466 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24467 case $lt_prog_compiler_pic_GCJ in
24469 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24472 lt_prog_compiler_pic_GCJ=
24473 lt_prog_compiler_can_build_shared_GCJ=no
24478 # For platforms which do not support PIC, -DPIC is meaningless:
24480 lt_prog_compiler_pic_GCJ=
24483 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24488 # Check to make sure the static flag actually works.
24490 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24491 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24492 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24493 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24494 echo $ECHO_N "(cached) $ECHO_C" >&6
24496 lt_prog_compiler_static_works_GCJ=no
24497 save_LDFLAGS="$LDFLAGS"
24498 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24499 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24500 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24501 # The linker can only warn and ignore the option if not recognized
24502 # So say no if there are warnings
24503 if test -s conftest.err; then
24504 # Append any errors to the config.log.
24505 cat conftest.err 1>&5
24506 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24508 if diff conftest.exp conftest.er2 >/dev/null; then
24509 lt_prog_compiler_static_works_GCJ=yes
24512 lt_prog_compiler_static_works_GCJ=yes
24516 LDFLAGS="$save_LDFLAGS"
24519 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24520 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24522 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24525 lt_prog_compiler_static_GCJ=
24529 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24530 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24531 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24532 echo $ECHO_N "(cached) $ECHO_C" >&6
24534 lt_cv_prog_compiler_c_o_GCJ=no
24535 $rm -r conftest 2>/dev/null
24539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24541 lt_compiler_flag="-o out/conftest2.$ac_objext"
24542 # Insert the option either (1) after the last *FLAGS variable, or
24543 # (2) before a word containing "conftest.", or (3) at the end.
24544 # Note that $ac_compile itself does not contain backslashes and begins
24545 # with a dollar sign (not a hyphen), so the echo should work correctly.
24546 lt_compile=`echo "$ac_compile" | $SED \
24547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24549 -e 's:$: $lt_compiler_flag:'`
24550 (eval echo "\"\$as_me:24550: $lt_compile\"" >&5)
24551 (eval "$lt_compile" 2>out/conftest.err)
24553 cat out/conftest.err >&5
24554 echo "$as_me:24554: \$? = $ac_status" >&5
24555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24557 # The compiler can only warn and ignore the option if not recognized
24558 # So say no if there are warnings
24559 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24562 lt_cv_prog_compiler_c_o_GCJ=yes
24567 # SGI C++ compiler will create directory out/ii_files/ for
24568 # template instantiation
24569 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24570 $rm out/* && rmdir out
24576 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24577 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24580 hard_links="nottested"
24581 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24582 # do not overwrite the value of need_locks provided by the user
24583 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24584 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24589 ln conftest.a conftest.b 2>&5 || hard_links=no
24590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24591 { echo "$as_me:$LINENO: result: $hard_links" >&5
24592 echo "${ECHO_T}$hard_links" >&6; }
24593 if test "$hard_links" = no; then
24594 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24595 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24602 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24603 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24606 allow_undefined_flag_GCJ=
24607 enable_shared_with_static_runtimes_GCJ=no
24609 archive_expsym_cmds_GCJ=
24610 old_archive_From_new_cmds_GCJ=
24611 old_archive_from_expsyms_cmds_GCJ=
24612 export_dynamic_flag_spec_GCJ=
24613 whole_archive_flag_spec_GCJ=
24614 thread_safe_flag_spec_GCJ=
24615 hardcode_libdir_flag_spec_GCJ=
24616 hardcode_libdir_flag_spec_ld_GCJ=
24617 hardcode_libdir_separator_GCJ=
24618 hardcode_direct_GCJ=no
24619 hardcode_minus_L_GCJ=no
24620 hardcode_shlibpath_var_GCJ=unsupported
24621 link_all_deplibs_GCJ=unknown
24622 hardcode_automatic_GCJ=no
24624 module_expsym_cmds_GCJ=
24625 always_export_symbols_GCJ=no
24626 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24627 # include_expsyms should be a list of space-separated symbols to be *always*
24628 # included in the symbol list
24629 include_expsyms_GCJ=
24630 # exclude_expsyms can be an extended regexp of symbols to exclude
24631 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24632 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24633 # as well as any symbol that contains `d'.
24634 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24635 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24636 # platforms (ab)use it in PIC code, but their linkers get confused if
24637 # the symbol is explicitly referenced. Since portable code cannot
24638 # rely on this symbol name, it's probably fine to never include it in
24639 # preloaded symbol tables.
24640 extract_expsyms_cmds=
24641 # Just being paranoid about ensuring that cc_basename is set.
24642 for cc_temp in $compiler""; do
24644 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24645 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24650 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24653 cygwin* | mingw* | pw32*)
24654 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24655 # When not using gcc, we currently assume that we are using
24656 # Microsoft Visual C++.
24657 if test "$GCC" != yes; then
24662 # we just hope/assume this is gcc and not c89 (= MSVC++)
24671 if test "$with_gnu_ld" = yes; then
24672 # If archive_cmds runs LD, not CC, wlarc should be empty
24675 # Set some defaults for GNU ld with shared library support. These
24676 # are reset later if shared libraries are not supported. Putting them
24677 # here allows them to be overridden if necessary.
24678 runpath_var=LD_RUN_PATH
24679 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24680 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24681 # ancient GNU ld didn't support --whole-archive et. al.
24682 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24683 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24685 whole_archive_flag_spec_GCJ=
24687 supports_anon_versioning=no
24688 case `$LD -v 2>/dev/null` in
24689 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24690 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24691 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24692 *\ 2.11.*) ;; # other 2.11 versions
24693 *) supports_anon_versioning=yes ;;
24696 # See if GNU ld supports shared libraries.
24698 aix3* | aix4* | aix5*)
24699 # On AIX/PPC, the GNU linker is very broken
24700 if test "$host_cpu" != ia64; then
24704 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24705 *** to be unable to reliably create shared libraries on AIX.
24706 *** Therefore, libtool is disabling shared libraries support. If you
24707 *** really care for shared libraries, you may want to modify your PATH
24708 *** so that a non-GNU linker is found, and then restart.
24715 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)'
24716 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24717 hardcode_minus_L_GCJ=yes
24719 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24720 # that the semantics of dynamic libraries on AmigaOS, at least up
24721 # to version 4, is to share data among multiple programs linked
24722 # with the same dynamic library. Since this doesn't match the
24723 # behavior of shared libraries on other platforms, we can't use
24729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24730 allow_undefined_flag_GCJ=unsupported
24731 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24732 # support --undefined. This deserves some investigation. FIXME
24733 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24739 cygwin* | mingw* | pw32*)
24740 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24741 # as there is no search path for DLLs.
24742 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24743 allow_undefined_flag_GCJ=unsupported
24744 always_export_symbols_GCJ=no
24745 enable_shared_with_static_runtimes_GCJ=yes
24746 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24748 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24749 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24750 # If the export-symbols file already is a .def file (1st line
24751 # is EXPORTS), use it as is; otherwise, prepend...
24752 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24753 cp $export_symbols $output_objdir/$soname.def;
24755 echo EXPORTS > $output_objdir/$soname.def;
24756 cat $export_symbols >> $output_objdir/$soname.def;
24758 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24765 hardcode_direct_GCJ=no
24766 hardcode_shlibpath_var_GCJ=no
24767 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24768 export_dynamic_flag_spec_GCJ='${wl}-E'
24769 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24770 # Instead, shared libraries are loaded at an image base (0x10000000 by
24771 # default) and relocated if they conflict, which is a slow very memory
24772 # consuming and fragmenting process. To avoid this, we pick a random,
24773 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24774 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24775 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'
24776 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'
24780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24782 case $cc_basename,$host_cpu in
24783 pgcc*) # Portland Group C compiler
24784 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'
24785 tmp_addflag=' $pic_flag'
24787 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24788 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'
24789 tmp_addflag=' $pic_flag -Mnomain' ;;
24790 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24791 tmp_addflag=' -i_dynamic' ;;
24792 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24793 tmp_addflag=' -i_dynamic -nofor_main' ;;
24794 ifc* | ifort*) # Intel Fortran compiler
24795 tmp_addflag=' -nofor_main' ;;
24797 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24799 if test $supports_anon_versioning = yes; then
24800 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24802 $echo "local: *; };" >> $output_objdir/$libname.ver~
24803 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24812 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24815 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24816 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24821 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24825 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24826 *** create shared libraries on Solaris systems. Therefore, libtool
24827 *** is disabling shared libraries support. We urge you to upgrade GNU
24828 *** binutils to release 2.9.1 or newer. Another option is to modify
24829 *** your PATH or compiler configuration so that the native linker is
24830 *** used, and then restart.
24833 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24834 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24835 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24842 case `$LD -v 2>&1` in
24843 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24847 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24848 *** reliably create shared libraries on SCO systems. Therefore, libtool
24849 *** is disabling shared libraries support. We urge you to upgrade GNU
24850 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24851 *** your PATH or compiler configuration so that the native linker is
24852 *** used, and then restart.
24857 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24858 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24859 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24860 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24869 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24871 hardcode_direct_GCJ=yes
24872 hardcode_shlibpath_var_GCJ=no
24876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24877 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24878 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24885 if test "$ld_shlibs_GCJ" = no; then
24887 hardcode_libdir_flag_spec_GCJ=
24888 export_dynamic_flag_spec_GCJ=
24889 whole_archive_flag_spec_GCJ=
24892 # PORTME fill in a description of your system's linker (not GNU ld)
24895 allow_undefined_flag_GCJ=unsupported
24896 always_export_symbols_GCJ=yes
24897 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'
24898 # Note: this linker hardcodes the directories in LIBPATH if there
24899 # are no directories specified by -L.
24900 hardcode_minus_L_GCJ=yes
24901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24902 # Neither direct hardcoding nor static linking is supported with a
24904 hardcode_direct_GCJ=unsupported
24909 if test "$host_cpu" = ia64; then
24910 # On IA64, the linker does run time linking by default, so we don't
24911 # have to do anything special.
24912 aix_use_runtimelinking=no
24913 exp_sym_flag='-Bexport'
24916 # If we're using GNU nm, then we don't want the "-C" option.
24917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24918 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24919 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'
24921 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'
24923 aix_use_runtimelinking=no
24925 # Test if we are trying to use run time linking or normal
24926 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24927 # need to do runtime linking.
24928 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24929 for ld_flag in $LDFLAGS; do
24930 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24931 aix_use_runtimelinking=yes
24938 exp_sym_flag='-bexport'
24939 no_entry_flag='-bnoentry'
24942 # When large executables or shared objects are built, AIX ld can
24943 # have problems creating the table of contents. If linking a library
24944 # or program results in "error TOC overflow" add -mminimal-toc to
24945 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24946 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24948 archive_cmds_GCJ=''
24949 hardcode_direct_GCJ=yes
24950 hardcode_libdir_separator_GCJ=':'
24951 link_all_deplibs_GCJ=yes
24953 if test "$GCC" = yes; then
24954 case $host_os in aix4.[012]|aix4.[012].*)
24955 # We only want to do this on AIX 4.2 and lower, the check
24956 # below for broken collect2 doesn't work under 4.3+
24957 collect2name=`${CC} -print-prog-name=collect2`
24958 if test -f "$collect2name" && \
24959 strings "$collect2name" | grep resolve_lib_name >/dev/null
24961 # We have reworked collect2
24962 hardcode_direct_GCJ=yes
24964 # We have old collect2
24965 hardcode_direct_GCJ=unsupported
24966 # It fails to find uninstalled libraries when the uninstalled
24967 # path is not listed in the libpath. Setting hardcode_minus_L
24968 # to unsupported forces relinking
24969 hardcode_minus_L_GCJ=yes
24970 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24971 hardcode_libdir_separator_GCJ=
24975 shared_flag='-shared'
24976 if test "$aix_use_runtimelinking" = yes; then
24977 shared_flag="$shared_flag "'${wl}-G'
24981 if test "$host_cpu" = ia64; then
24982 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24983 # chokes on -Wl,-G. The following line is correct:
24986 if test "$aix_use_runtimelinking" = yes; then
24987 shared_flag='${wl}-G'
24989 shared_flag='${wl}-bM:SRE'
24994 # It seems that -bexpall does not export symbols beginning with
24995 # underscore (_), so it is better to generate a list of symbols to export.
24996 always_export_symbols_GCJ=yes
24997 if test "$aix_use_runtimelinking" = yes; then
24998 # Warning - without using the other runtime loading flags (-brtl),
24999 # -berok will link without error, but may produce a broken library.
25000 allow_undefined_flag_GCJ='-berok'
25001 # Determine the default libpath from the value encoded in an empty executable.
25002 cat >conftest.$ac_ext <<_ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h. */
25017 rm -f conftest.$ac_objext conftest$ac_exeext
25018 if { (ac_try="$ac_link"
25019 case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024 (eval "$ac_link") 2>conftest.er1
25026 grep -v '^ *+' conftest.er1 >conftest.err
25028 cat conftest.err >&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } &&
25031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25032 { (case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_try") 2>&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); }; } &&
25041 { ac_try='test -s conftest$ac_exeext'
25042 { (case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047 (eval "$ac_try") 2>&5
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); }; }; then
25052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25054 # Check for a 64-bit object if we didn't find anything.
25055 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; }
25058 echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25064 rm -f core conftest.err conftest.$ac_objext \
25065 conftest$ac_exeext conftest.$ac_ext
25066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25068 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25069 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"
25071 if test "$host_cpu" = ia64; then
25072 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25073 allow_undefined_flag_GCJ="-z nodefs"
25074 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"
25076 # Determine the default libpath from the value encoded in an empty executable.
25077 cat >conftest.$ac_ext <<_ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h. */
25092 rm -f conftest.$ac_objext conftest$ac_exeext
25093 if { (ac_try="$ac_link"
25094 case "(($ac_try" in
25095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099 (eval "$ac_link") 2>conftest.er1
25101 grep -v '^ *+' conftest.er1 >conftest.err
25103 cat conftest.err >&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } &&
25106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25107 { (case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112 (eval "$ac_try") 2>&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; } &&
25116 { ac_try='test -s conftest$ac_exeext'
25117 { (case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122 (eval "$ac_try") 2>&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
25127 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25129 # Check for a 64-bit object if we didn't find anything.
25130 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; }
25133 echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25139 rm -f core conftest.err conftest.$ac_objext \
25140 conftest$ac_exeext conftest.$ac_ext
25141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25143 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25144 # Warning - without using the other run time loading flags,
25145 # -berok will link without error, but may produce a broken library.
25146 no_undefined_flag_GCJ=' ${wl}-bernotok'
25147 allow_undefined_flag_GCJ=' ${wl}-berok'
25148 # Exported symbols can be pulled into shared objects from archives
25149 whole_archive_flag_spec_GCJ='$convenience'
25150 archive_cmds_need_lc_GCJ=yes
25151 # This is similar to how AIX traditionally builds its shared libraries.
25152 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'
25158 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)'
25159 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25160 hardcode_minus_L_GCJ=yes
25161 # see comment about different semantics on the GNU ld section
25166 export_dynamic_flag_spec_GCJ=-rdynamic
25169 cygwin* | mingw* | pw32*)
25170 # When not using gcc, we currently assume that we are using
25171 # Microsoft Visual C++.
25172 # hardcode_libdir_flag_spec is actually meaningless, as there is
25173 # no search path for DLLs.
25174 hardcode_libdir_flag_spec_GCJ=' '
25175 allow_undefined_flag_GCJ=unsupported
25176 # Tell ltmain to make .lib files, not .a files.
25178 # Tell ltmain to make .dll files, not .so files.
25180 # FIXME: Setting linknames here is a bad hack.
25181 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25182 # The linker will automatically build a .lib file if we build a DLL.
25183 old_archive_From_new_cmds_GCJ='true'
25184 # FIXME: Should let the user specify the lib program.
25185 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25186 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25187 enable_shared_with_static_runtimes_GCJ=yes
25190 darwin* | rhapsody*)
25192 rhapsody* | darwin1.[012])
25193 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25196 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25197 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25199 case ${MACOSX_DEPLOYMENT_TARGET} in
25201 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25204 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25210 archive_cmds_need_lc_GCJ=no
25211 hardcode_direct_GCJ=no
25212 hardcode_automatic_GCJ=yes
25213 hardcode_shlibpath_var_GCJ=unsupported
25214 whole_archive_flag_spec_GCJ=''
25215 link_all_deplibs_GCJ=yes
25216 if test "$GCC" = yes ; then
25217 output_verbose_link_cmd='echo'
25218 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25219 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25221 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}'
25222 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}'
25224 case $cc_basename in
25226 output_verbose_link_cmd='echo'
25227 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25228 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25229 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25230 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}'
25231 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}'
25241 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25242 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25243 hardcode_shlibpath_var_GCJ=no
25250 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25251 # support. Future versions do this automatically, but an explicit c++rt0.o
25252 # does not break anything, and helps significantly (at the cost of a little
25255 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25256 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25257 hardcode_direct_GCJ=yes
25258 hardcode_shlibpath_var_GCJ=no
25261 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25263 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25264 hardcode_direct_GCJ=yes
25265 hardcode_minus_L_GCJ=yes
25266 hardcode_shlibpath_var_GCJ=no
25269 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25270 freebsd* | kfreebsd*-gnu | dragonfly*)
25271 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25272 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25273 hardcode_direct_GCJ=yes
25274 hardcode_shlibpath_var_GCJ=no
25278 if test "$GCC" = yes; then
25279 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'
25281 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'
25283 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25284 hardcode_libdir_separator_GCJ=:
25285 hardcode_direct_GCJ=yes
25287 # hardcode_minus_L: Not really in the search PATH,
25288 # but as the default location of the library.
25289 hardcode_minus_L_GCJ=yes
25290 export_dynamic_flag_spec_GCJ='${wl}-E'
25294 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25295 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25297 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25299 if test "$with_gnu_ld" = no; then
25300 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25301 hardcode_libdir_separator_GCJ=:
25303 hardcode_direct_GCJ=yes
25304 export_dynamic_flag_spec_GCJ='${wl}-E'
25306 # hardcode_minus_L: Not really in the search PATH,
25307 # but as the default location of the library.
25308 hardcode_minus_L_GCJ=yes
25313 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25316 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25319 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25322 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25328 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25331 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25334 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25338 if test "$with_gnu_ld" = no; then
25339 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25340 hardcode_libdir_separator_GCJ=:
25344 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25345 hardcode_direct_GCJ=no
25346 hardcode_shlibpath_var_GCJ=no
25349 hardcode_direct_GCJ=yes
25350 export_dynamic_flag_spec_GCJ='${wl}-E'
25352 # hardcode_minus_L: Not really in the search PATH,
25353 # but as the default location of the library.
25354 hardcode_minus_L_GCJ=yes
25360 irix5* | irix6* | nonstopux*)
25361 if test "$GCC" = yes; then
25362 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'
25364 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'
25365 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25367 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25368 hardcode_libdir_separator_GCJ=:
25369 link_all_deplibs_GCJ=yes
25373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25374 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25376 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25379 hardcode_direct_GCJ=yes
25380 hardcode_shlibpath_var_GCJ=no
25384 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25385 hardcode_direct_GCJ=yes
25386 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25387 hardcode_libdir_separator_GCJ=:
25388 hardcode_shlibpath_var_GCJ=no
25392 hardcode_direct_GCJ=yes
25393 hardcode_shlibpath_var_GCJ=no
25394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25395 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25396 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25397 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25398 export_dynamic_flag_spec_GCJ='${wl}-E'
25401 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25403 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25406 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25414 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25415 hardcode_minus_L_GCJ=yes
25416 allow_undefined_flag_GCJ=unsupported
25417 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'
25418 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25422 if test "$GCC" = yes; then
25423 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25424 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'
25426 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25427 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'
25429 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25430 hardcode_libdir_separator_GCJ=:
25433 osf4* | osf5*) # as osf3* with the addition of -msym flag
25434 if test "$GCC" = yes; then
25435 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25436 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'
25437 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25439 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25440 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'
25441 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~
25442 $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'
25444 # Both c and cxx compiler support -rpath directly
25445 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25447 hardcode_libdir_separator_GCJ=:
25451 no_undefined_flag_GCJ=' -z text'
25452 if test "$GCC" = yes; then
25454 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25455 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25456 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25459 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25460 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25461 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25464 hardcode_shlibpath_var_GCJ=no
25466 solaris2.[0-5] | solaris2.[0-5].*) ;;
25468 # The compiler driver will combine linker options so we
25469 # cannot just pass the convience library names through
25470 # without $wl, iff we do not link with $LD.
25471 # Luckily, gcc supports the same syntax we need for Sun Studio.
25472 # Supported since Solaris 2.6 (maybe 2.5.1?)
25475 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25477 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' ;;
25480 link_all_deplibs_GCJ=yes
25484 if test "x$host_vendor" = xsequent; then
25485 # Use $CC to link under sequent, because it throws in some extra .o
25486 # files that make .init and .fini sections work.
25487 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25489 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25492 hardcode_direct_GCJ=yes
25493 hardcode_minus_L_GCJ=yes
25494 hardcode_shlibpath_var_GCJ=no
25498 case $host_vendor in
25500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25501 hardcode_direct_GCJ=yes # is this really true???
25504 ## LD is ld it makes a PLAMLIB
25505 ## CC just makes a GrossModule.
25506 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25507 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25508 hardcode_direct_GCJ=no
25511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25512 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25515 runpath_var='LD_RUN_PATH'
25516 hardcode_shlibpath_var_GCJ=no
25520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25521 hardcode_shlibpath_var_GCJ=no
25522 export_dynamic_flag_spec_GCJ='-Bexport'
25526 if test -d /usr/nec; then
25527 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25528 hardcode_shlibpath_var_GCJ=no
25529 runpath_var=LD_RUN_PATH
25530 hardcode_runpath_var=yes
25535 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25536 no_undefined_flag_GCJ='${wl}-z,text'
25537 archive_cmds_need_lc_GCJ=no
25538 hardcode_shlibpath_var_GCJ=no
25539 runpath_var='LD_RUN_PATH'
25541 if test "$GCC" = yes; then
25542 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25543 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25545 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25546 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25550 sysv5* | sco3.2v5* | sco5v6*)
25551 # Note: We can NOT use -z defs as we might desire, because we do not
25552 # link with -lc, and that would cause any symbols used from libc to
25553 # always be unresolved, which means just about no library would
25554 # ever link correctly. If we're not using GNU ld we use -z text
25555 # though, which does catch some bad symbols but isn't as heavy-handed
25557 no_undefined_flag_GCJ='${wl}-z,text'
25558 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25559 archive_cmds_need_lc_GCJ=no
25560 hardcode_shlibpath_var_GCJ=no
25561 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25562 hardcode_libdir_separator_GCJ=':'
25563 link_all_deplibs_GCJ=yes
25564 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25565 runpath_var='LD_RUN_PATH'
25567 if test "$GCC" = yes; then
25568 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25569 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25571 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25572 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25579 hardcode_shlibpath_var_GCJ=no
25588 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25589 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25590 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25593 # Do we need to explicitly link libc?
25595 case "x$archive_cmds_need_lc_GCJ" in
25597 # Assume -lc should be added
25598 archive_cmds_need_lc_GCJ=yes
25600 if test "$enable_shared" = yes && test "$GCC" = yes; then
25601 case $archive_cmds_GCJ in
25603 # FIXME: we may have to deal with multi-command sequences.
25606 # Test whether the compiler implicitly links with -lc since on some
25607 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25608 # to ld, don't add -lc before -lgcc.
25609 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25610 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25615 (eval $ac_compile) 2>&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); } 2>conftest.err; then
25621 libobjs=conftest.$ac_objext
25623 wl=$lt_prog_compiler_wl_GCJ
25624 pic_flag=$lt_prog_compiler_pic_GCJ
25630 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25631 allow_undefined_flag_GCJ=
25632 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25633 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); }
25638 archive_cmds_need_lc_GCJ=no
25640 archive_cmds_need_lc_GCJ=yes
25642 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25644 cat conftest.err 1>&5
25647 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25648 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25655 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25656 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25657 library_names_spec=
25658 libname_spec='lib$name'
25662 postuninstall_cmds=
25666 shlibpath_overrides_runpath=unknown
25668 dynamic_linker="$host_os ld.so"
25669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25670 if test "$GCC" = yes; then
25671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25672 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25673 # if the path contains ";" then we assume it to be the separator
25674 # otherwise default to the standard path separator (i.e. ":") - it is
25675 # assumed that no part of a normal pathname contains ";" but that should
25676 # okay in the real world where ";" in dirpaths is itself problematic.
25677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25682 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25684 need_lib_prefix=unknown
25685 hardcode_into_libs=no
25687 # when you set need_version to no, make sure it does not cause -set_version
25688 # flags to be left without arguments
25689 need_version=unknown
25694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25695 shlibpath_var=LIBPATH
25697 # AIX 3 has no versioning support, so we append a major version to the name.
25698 soname_spec='${libname}${release}${shared_ext}$major'
25705 hardcode_into_libs=yes
25706 if test "$host_cpu" = ia64; then
25707 # AIX 5 supports IA64
25708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25709 shlibpath_var=LD_LIBRARY_PATH
25711 # With GCC up to 2.95.x, collect2 would create an import file
25712 # for dependence libraries. The import file would start with
25713 # the line `#! .'. This would cause the generated library to
25714 # depend on `.', always an invalid library. This was fixed in
25715 # development snapshots of GCC prior to 3.0.
25717 aix4 | aix4.[01] | aix4.[01].*)
25718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25720 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25723 can_build_shared=no
25727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25728 # soname into executable. Probably we can add versioning support to
25729 # collect2, so additional links can be useful in future.
25730 if test "$aix_use_runtimelinking" = yes; then
25731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25732 # instead of lib<name>.a to let people know that these are not
25733 # typical AIX shared libraries.
25734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25736 # We preserve .a as extension for shared libraries through AIX4.2
25737 # and later when we are not doing run time linking.
25738 library_names_spec='${libname}${release}.a $libname.a'
25739 soname_spec='${libname}${release}${shared_ext}$major'
25741 shlibpath_var=LIBPATH
25746 library_names_spec='$libname.ixlibrary $libname.a'
25747 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25748 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'
25752 library_names_spec='${libname}${shared_ext}'
25753 dynamic_linker="$host_os ld.so"
25754 shlibpath_var=LIBRARY_PATH
25760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25761 soname_spec='${libname}${release}${shared_ext}$major'
25762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25763 shlibpath_var=LD_LIBRARY_PATH
25764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25766 # the default ld.so.conf also contains /usr/contrib/lib and
25767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25768 # libtool to hard-code these into programs
25771 cygwin* | mingw* | pw32*)
25772 version_type=windows
25777 case $GCC,$host_os in
25778 yes,cygwin* | yes,mingw* | yes,pw32*)
25779 library_names_spec='$libname.dll.a'
25780 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25781 postinstall_cmds='base_file=`basename \${file}`~
25782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25783 dldir=$destdir/`dirname \$dlpath`~
25784 test -d \$dldir || mkdir -p \$dldir~
25785 $install_prog $dir/$dlname \$dldir/$dlname~
25786 chmod a+x \$dldir/$dlname'
25787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25788 dlpath=$dir/\$dldll~
25790 shlibpath_overrides_runpath=yes
25794 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25795 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25796 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25799 # MinGW DLLs use traditional 'lib' prefix
25800 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25801 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25802 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25803 # It is most probably a Windows format PATH printed by
25804 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25805 # path with ; separators, and with drive letters. We can handle the
25806 # drive letters (cygwin fileutils understands them), so leave them,
25807 # especially as we might pass files found there to a mingw objdump,
25808 # which wouldn't understand a cygwinified path. Ahh.
25809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25815 # pw32 DLLs use 'pw' prefix rather than 'lib'
25816 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25822 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25825 dynamic_linker='Win32 ld.exe'
25826 # FIXME: first we should search . and the directory the executable is in
25830 darwin* | rhapsody*)
25831 dynamic_linker="$host_os dyld"
25832 version_type=darwin
25835 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25836 soname_spec='${libname}${release}${major}$shared_ext'
25837 shlibpath_overrides_runpath=yes
25838 shlibpath_var=DYLD_LIBRARY_PATH
25839 shrext_cmds='.dylib'
25840 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25841 if test "$GCC" = yes; then
25842 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"`
25844 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25854 soname_spec='${libname}${release}${shared_ext}$major'
25855 shlibpath_var=LD_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 shlibpath_var=LD_LIBRARY_PATH
25869 shlibpath_overrides_runpath=no
25870 hardcode_into_libs=yes
25871 dynamic_linker='GNU ld.so'
25874 freebsd* | dragonfly*)
25875 # DragonFly does not have aout. When/if they implement a new
25876 # versioning mechanism, adjust this.
25877 if test -x /usr/bin/objformat; then
25878 objformat=`/usr/bin/objformat`
25881 freebsd[123]*) objformat=aout ;;
25882 *) objformat=elf ;;
25885 version_type=freebsd-$objformat
25886 case $version_type in
25888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25897 shlibpath_var=LD_LIBRARY_PATH
25900 shlibpath_overrides_runpath=yes
25902 freebsd3.[01]* | freebsdelf3.[01]*)
25903 shlibpath_overrides_runpath=yes
25904 hardcode_into_libs=yes
25906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25908 shlibpath_overrides_runpath=no
25909 hardcode_into_libs=yes
25911 freebsd*) # from 4.6 on
25912 shlibpath_overrides_runpath=yes
25913 hardcode_into_libs=yes
25922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25923 soname_spec='${libname}${release}${shared_ext}$major'
25924 shlibpath_var=LD_LIBRARY_PATH
25925 hardcode_into_libs=yes
25928 hpux9* | hpux10* | hpux11*)
25929 # Give a soname corresponding to the major version so that dld.sl refuses to
25930 # link against other versions.
25937 hardcode_into_libs=yes
25938 dynamic_linker="$host_os dld.so"
25939 shlibpath_var=LD_LIBRARY_PATH
25940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25942 soname_spec='${libname}${release}${shared_ext}$major'
25943 if test "X$HPUX_IA64_MODE" = X32; then
25944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25952 hardcode_into_libs=yes
25953 dynamic_linker="$host_os dld.sl"
25954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25957 soname_spec='${libname}${release}${shared_ext}$major'
25958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25963 dynamic_linker="$host_os dld.sl"
25964 shlibpath_var=SHLIB_PATH
25965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25967 soname_spec='${libname}${release}${shared_ext}$major'
25970 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25971 postinstall_cmds='chmod 555 $lib'
25978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25979 soname_spec='${libname}${release}${shared_ext}$major'
25980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25981 shlibpath_var=LD_LIBRARY_PATH
25982 shlibpath_overrides_runpath=no
25983 hardcode_into_libs=yes
25986 irix5* | irix6* | nonstopux*)
25988 nonstopux*) version_type=nonstopux ;;
25990 if test "$lt_cv_prog_gnu_ld" = yes; then
25998 soname_spec='${libname}${release}${shared_ext}$major'
25999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26001 irix5* | nonstopux*)
26002 libsuff= shlibsuff=
26005 case $LD in # libtool.m4 will add one of these switches to LD
26006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26007 libsuff= shlibsuff= libmagic=32-bit;;
26008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26009 libsuff=32 shlibsuff=N32 libmagic=N32;;
26010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26012 *) libsuff= shlibsuff= libmagic=never-match;;
26016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26017 shlibpath_overrides_runpath=no
26018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26020 hardcode_into_libs=yes
26023 # No shared lib support for Linux oldld, aout, or coff.
26024 linux*oldld* | linux*aout* | linux*coff*)
26028 # This must be Linux ELF.
26033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26034 soname_spec='${libname}${release}${shared_ext}$major'
26035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26036 shlibpath_var=LD_LIBRARY_PATH
26037 shlibpath_overrides_runpath=no
26038 # This implies no fast_install, which is unacceptable.
26039 # Some rework will be needed to allow for fast_install
26040 # before this can be enabled.
26041 hardcode_into_libs=yes
26043 # Append ld.so.conf contents to the search path
26044 if test -f /etc/ld.so.conf; then
26045 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' ' '`
26046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26049 # We used to test for /lib/ld.so.1 and disable shared libraries on
26050 # powerpc, because MkLinux only supported shared libraries with the
26051 # GNU dynamic linker. Since this was broken with cross compilers,
26052 # most powerpc-linux boxes support dynamic linking these days and
26053 # people can always --disable-shared, the test was removed, and we
26054 # assume the GNU/Linux dynamic linker is in use.
26055 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
26065 shlibpath_overrides_runpath=no
26066 hardcode_into_libs=yes
26067 dynamic_linker='GNU ld.so'
26074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26077 dynamic_linker='NetBSD (a.out) ld.so'
26079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26080 soname_spec='${libname}${release}${shared_ext}$major'
26081 dynamic_linker='NetBSD ld.elf_so'
26083 shlibpath_var=LD_LIBRARY_PATH
26084 shlibpath_overrides_runpath=yes
26085 hardcode_into_libs=yes
26090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26091 shlibpath_var=LD_LIBRARY_PATH
26092 shlibpath_overrides_runpath=yes
26099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26100 soname_spec='${libname}${release}${shared_ext}$major'
26101 shlibpath_var=LD_LIBRARY_PATH
26102 shlibpath_overrides_runpath=yes
26107 sys_lib_dlsearch_path_spec="/usr/lib"
26109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26112 *) need_version=no ;;
26114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26116 shlibpath_var=LD_LIBRARY_PATH
26117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26119 openbsd2.[89] | openbsd2.[89].*)
26120 shlibpath_overrides_runpath=no
26123 shlibpath_overrides_runpath=yes
26127 shlibpath_overrides_runpath=yes
26132 libname_spec='$name'
26135 library_names_spec='$libname${shared_ext} $libname.a'
26136 dynamic_linker='OS/2 ld.exe'
26137 shlibpath_var=LIBPATH
26140 osf3* | osf4* | osf5*)
26144 soname_spec='${libname}${release}${shared_ext}$major'
26145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26146 shlibpath_var=LD_LIBRARY_PATH
26147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26156 soname_spec='${libname}${release}${shared_ext}$major'
26157 shlibpath_var=LD_LIBRARY_PATH
26158 shlibpath_overrides_runpath=yes
26159 hardcode_into_libs=yes
26160 # ldd complains unless libraries are executable
26161 postinstall_cmds='chmod +x $lib'
26166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26168 shlibpath_var=LD_LIBRARY_PATH
26169 shlibpath_overrides_runpath=yes
26170 if test "$with_gnu_ld" = yes; then
26178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26179 soname_spec='${libname}${release}${shared_ext}$major'
26180 shlibpath_var=LD_LIBRARY_PATH
26181 case $host_vendor in
26183 shlibpath_overrides_runpath=no
26185 export_dynamic_flag_spec='${wl}-Blargedynsym'
26186 runpath_var=LD_RUN_PATH
26194 shlibpath_overrides_runpath=no
26195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26201 if test -d /usr/nec ;then
26203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26204 soname_spec='$libname${shared_ext}.$major'
26205 shlibpath_var=LD_LIBRARY_PATH
26209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26210 version_type=freebsd-elf
26213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26214 soname_spec='${libname}${release}${shared_ext}$major'
26215 shlibpath_var=LD_LIBRARY_PATH
26216 hardcode_into_libs=yes
26217 if test "$with_gnu_ld" = yes; then
26218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26219 shlibpath_overrides_runpath=no
26221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26222 shlibpath_overrides_runpath=yes
26225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26229 sys_lib_dlsearch_path_spec='/usr/lib'
26234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26235 soname_spec='${libname}${release}${shared_ext}$major'
26236 shlibpath_var=LD_LIBRARY_PATH
26243 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26244 echo "${ECHO_T}$dynamic_linker" >&6; }
26245 test "$dynamic_linker" = no && can_build_shared=no
26247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26248 if test "$GCC" = yes; then
26249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26252 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26253 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26254 hardcode_action_GCJ=
26255 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26256 test -n "$runpath_var_GCJ" || \
26257 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26259 # We can hardcode non-existant directories.
26260 if test "$hardcode_direct_GCJ" != no &&
26261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26262 # have to relink, otherwise we might link with an installed library
26263 # when we should be linking with a yet-to-be-installed one
26264 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26265 test "$hardcode_minus_L_GCJ" != no; then
26266 # Linking always hardcodes the temporary library directory.
26267 hardcode_action_GCJ=relink
26269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26270 hardcode_action_GCJ=immediate
26273 # We cannot hardcode anything, or else we can only hardcode existing
26275 hardcode_action_GCJ=unsupported
26277 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26278 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26280 if test "$hardcode_action_GCJ" = relink; then
26281 # Fast installation is not supported
26282 enable_fast_install=no
26283 elif test "$shlibpath_overrides_runpath" = yes ||
26284 test "$enable_shared" = no; then
26285 # Fast installation is not necessary
26286 enable_fast_install=needless
26290 # The else clause should only fire when bootstrapping the
26291 # libtool distribution, otherwise you forgot to ship ltmain.sh
26292 # with your package, and you will get complaints that there are
26293 # no rules to generate ltmain.sh.
26294 if test -f "$ltmain"; then
26295 # See if we are running on zsh, and set the options which allow our commands through
26296 # without removal of \ escapes.
26297 if test -n "${ZSH_VERSION+set}" ; then
26298 setopt NO_GLOB_SUBST
26300 # Now quote all the things that may contain metacharacters while being
26301 # careful not to overquote the AC_SUBSTed values. We take copies of the
26302 # variables and quote the copies for generation of the libtool script.
26303 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26307 deplibs_check_method reload_flag reload_cmds need_locks \
26308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26309 lt_cv_sys_global_symbol_to_c_name_address \
26310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26311 old_postinstall_cmds old_postuninstall_cmds \
26315 lt_prog_compiler_wl_GCJ \
26316 lt_prog_compiler_pic_GCJ \
26317 lt_prog_compiler_static_GCJ \
26318 lt_prog_compiler_no_builtin_flag_GCJ \
26319 export_dynamic_flag_spec_GCJ \
26320 thread_safe_flag_spec_GCJ \
26321 whole_archive_flag_spec_GCJ \
26322 enable_shared_with_static_runtimes_GCJ \
26323 old_archive_cmds_GCJ \
26324 old_archive_from_new_cmds_GCJ \
26325 predep_objects_GCJ \
26326 postdep_objects_GCJ \
26329 compiler_lib_search_path_GCJ \
26331 archive_expsym_cmds_GCJ \
26332 postinstall_cmds_GCJ \
26333 postuninstall_cmds_GCJ \
26334 old_archive_from_expsyms_cmds_GCJ \
26335 allow_undefined_flag_GCJ \
26336 no_undefined_flag_GCJ \
26337 export_symbols_cmds_GCJ \
26338 hardcode_libdir_flag_spec_GCJ \
26339 hardcode_libdir_flag_spec_ld_GCJ \
26340 hardcode_libdir_separator_GCJ \
26341 hardcode_automatic_GCJ \
26343 module_expsym_cmds_GCJ \
26344 lt_cv_prog_compiler_c_o_GCJ \
26345 exclude_expsyms_GCJ \
26346 include_expsyms_GCJ; do
26349 old_archive_cmds_GCJ | \
26350 old_archive_from_new_cmds_GCJ | \
26351 archive_cmds_GCJ | \
26352 archive_expsym_cmds_GCJ | \
26353 module_cmds_GCJ | \
26354 module_expsym_cmds_GCJ | \
26355 old_archive_from_expsyms_cmds_GCJ | \
26356 export_symbols_cmds_GCJ | \
26357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26358 postinstall_cmds | postuninstall_cmds | \
26359 old_postinstall_cmds | old_postuninstall_cmds | \
26360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26361 # Double-quote double-evaled strings.
26362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26371 *'\$0 --fallback-echo"')
26372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26378 cat <<__EOF__ >> "$cfgfile"
26379 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26383 # Shell to use when invoking shell scripts.
26386 # Whether or not to build shared libraries.
26387 build_libtool_libs=$enable_shared
26389 # Whether or not to build static libraries.
26390 build_old_libs=$enable_static
26392 # Whether or not to add -lc for building shared libraries.
26393 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26395 # Whether or not to disallow shared libs when runtime libs are static
26396 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26398 # Whether or not to optimize for fast installation.
26399 fast_install=$enable_fast_install
26402 host_alias=$host_alias
26406 # The build system.
26407 build_alias=$build_alias
26411 # An echo program that does not interpret backslashes.
26416 AR_FLAGS=$lt_AR_FLAGS
26421 # LTCC compiler flags.
26422 LTCFLAGS=$lt_LTCFLAGS
26424 # A language-specific compiler.
26425 CC=$lt_compiler_GCJ
26427 # Is the compiler the GNU C compiler?
26433 # The linker used to build libraries.
26436 # Whether we need hard or soft links.
26439 # A BSD-compatible nm program.
26442 # A symbol stripping program
26445 # Used to examine libraries when file_magic_cmd begins "file"
26446 MAGIC_CMD=$MAGIC_CMD
26448 # Used on cygwin: DLL creation program.
26451 # Used on cygwin: object dumper.
26454 # Used on cygwin: assembler.
26457 # The name of the directory that contains temporary libtool files.
26460 # How to create reloadable object files.
26461 reload_flag=$lt_reload_flag
26462 reload_cmds=$lt_reload_cmds
26464 # How to pass a linker flag through the compiler.
26465 wl=$lt_lt_prog_compiler_wl_GCJ
26467 # Object file suffix (normally "o").
26468 objext="$ac_objext"
26470 # Old archive suffix (normally "a").
26473 # Shared library suffix (normally ".so").
26474 shrext_cmds='$shrext_cmds'
26476 # Executable file suffix (normally "").
26479 # Additional compiler flags for building library objects.
26480 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26483 # What is the maximum length of a command?
26484 max_cmd_len=$lt_cv_sys_max_cmd_len
26486 # Does compiler simultaneously support -c and -o options?
26487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26489 # Must we lock files when doing compilation?
26490 need_locks=$lt_need_locks
26492 # Do we need the lib prefix for modules?
26493 need_lib_prefix=$need_lib_prefix
26495 # Do we need a version for libraries?
26496 need_version=$need_version
26498 # Whether dlopen is supported.
26499 dlopen_support=$enable_dlopen
26501 # Whether dlopen of programs is supported.
26502 dlopen_self=$enable_dlopen_self
26504 # Whether dlopen of statically linked programs is supported.
26505 dlopen_self_static=$enable_dlopen_self_static
26507 # Compiler flag to prevent dynamic linking.
26508 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26510 # Compiler flag to turn off builtin functions.
26511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26513 # Compiler flag to allow reflexive dlopens.
26514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26516 # Compiler flag to generate shared objects directly from archives.
26517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26519 # Compiler flag to generate thread-safe objects.
26520 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26522 # Library versioning type.
26523 version_type=$version_type
26525 # Format of library name prefix.
26526 libname_spec=$lt_libname_spec
26528 # List of archive names. First name is the real one, the rest are links.
26529 # The last name is the one that the linker finds with -lNAME.
26530 library_names_spec=$lt_library_names_spec
26532 # The coded name of the library, if different from the real name.
26533 soname_spec=$lt_soname_spec
26535 # Commands used to build and install an old-style archive.
26537 old_archive_cmds=$lt_old_archive_cmds_GCJ
26538 old_postinstall_cmds=$lt_old_postinstall_cmds
26539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26541 # Create an old-style archive from a shared archive.
26542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26544 # Create a temporary old-style archive to link instead of a shared archive.
26545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26547 # Commands used to build and install a shared archive.
26548 archive_cmds=$lt_archive_cmds_GCJ
26549 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26550 postinstall_cmds=$lt_postinstall_cmds
26551 postuninstall_cmds=$lt_postuninstall_cmds
26553 # Commands used to build a loadable module (assumed same as above if empty)
26554 module_cmds=$lt_module_cmds_GCJ
26555 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26557 # Commands to strip libraries.
26558 old_striplib=$lt_old_striplib
26559 striplib=$lt_striplib
26561 # Dependencies to place before the objects being linked to create a
26563 predep_objects=$lt_predep_objects_GCJ
26565 # Dependencies to place after the objects being linked to create a
26567 postdep_objects=$lt_postdep_objects_GCJ
26569 # Dependencies to place before the objects being linked to create a
26571 predeps=$lt_predeps_GCJ
26573 # Dependencies to place after the objects being linked to create a
26575 postdeps=$lt_postdeps_GCJ
26577 # The library search path used internally by the compiler when linking
26578 # a shared library.
26579 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26581 # Method to check whether dependent libraries are shared objects.
26582 deplibs_check_method=$lt_deplibs_check_method
26584 # Command to use when deplibs_check_method == file_magic.
26585 file_magic_cmd=$lt_file_magic_cmd
26587 # Flag that allows shared libraries with undefined symbols to be built.
26588 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26590 # Flag that forces no undefined symbols.
26591 no_undefined_flag=$lt_no_undefined_flag_GCJ
26593 # Commands used to finish a libtool library installation in a directory.
26594 finish_cmds=$lt_finish_cmds
26596 # Same as above, but a single script fragment to be evaled but not shown.
26597 finish_eval=$lt_finish_eval
26599 # Take the output of nm and produce a listing of raw symbols and C names.
26600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26602 # Transform the output of nm in a proper C declaration
26603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26605 # Transform the output of nm in a C name address pair
26606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26608 # This is the shared library runtime path variable.
26609 runpath_var=$runpath_var
26611 # This is the shared library path variable.
26612 shlibpath_var=$shlibpath_var
26614 # Is shlibpath searched before the hard-coded library search path?
26615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26617 # How to hardcode a shared library path into an executable.
26618 hardcode_action=$hardcode_action_GCJ
26620 # Whether we should hardcode library paths into libraries.
26621 hardcode_into_libs=$hardcode_into_libs
26623 # Flag to hardcode \$libdir into a binary during linking.
26624 # This must work even if \$libdir does not exist.
26625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26627 # If ld is used when linking, flag to hardcode \$libdir into
26628 # a binary during linking. This must work even if \$libdir does
26630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26632 # Whether we need a single -rpath flag with a separated argument.
26633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26636 # resulting binary.
26637 hardcode_direct=$hardcode_direct_GCJ
26639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26640 # resulting binary.
26641 hardcode_minus_L=$hardcode_minus_L_GCJ
26643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26644 # the resulting binary.
26645 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26647 # Set to yes if building a shared library automatically hardcodes DIR into the library
26648 # and all subsequent libraries and executables linked against it.
26649 hardcode_automatic=$hardcode_automatic_GCJ
26651 # Variables whose values should be saved in libtool wrapper scripts and
26652 # restored at relink time.
26653 variables_saved_for_relink="$variables_saved_for_relink"
26655 # Whether libtool must link a program against all its dependency libraries.
26656 link_all_deplibs=$link_all_deplibs_GCJ
26658 # Compile-time system search path for libraries
26659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26661 # Run-time system search path for libraries
26662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26664 # Fix the shell variable \$srcfile for the compiler.
26665 fix_srcfile_path="$fix_srcfile_path_GCJ"
26667 # Set to yes if exported symbols are required.
26668 always_export_symbols=$always_export_symbols_GCJ
26670 # The commands to list exported symbols.
26671 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26673 # The commands to extract the exported symbol list from a shared archive.
26674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26676 # Symbols that should not be listed in the preloaded symbols.
26677 exclude_expsyms=$lt_exclude_expsyms_GCJ
26679 # Symbols that must always be exported.
26680 include_expsyms=$lt_include_expsyms_GCJ
26682 # ### END LIBTOOL TAG CONFIG: $tagname
26688 # If there is no Makefile yet, we rely on a make rule to execute
26689 # `config.status --recheck' to rerun these tests and create the
26690 # libtool script then.
26691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26692 if test -f "$ltmain_in"; then
26693 test -f Makefile && make "$ltmain"
26699 ac_cpp='$CPP $CPPFLAGS'
26700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26713 ac_cpp='$CPP $CPPFLAGS'
26714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26719 # Source file extension for RC test sources.
26722 # Object file extension for compiled RC test sources.
26726 # Code to be used in simple compile tests
26727 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26729 # Code to be used in simple link tests
26730 lt_simple_link_test_code="$lt_simple_compile_test_code"
26732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26734 # If no C compiler was specified, use CC.
26737 # If no C compiler flags were specified, use CFLAGS.
26738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26740 # Allow CC to be a program name with arguments.
26744 # save warnings/boilerplate of simple test code
26745 ac_outfile=conftest.$ac_objext
26746 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26748 _lt_compiler_boilerplate=`cat conftest.err`
26751 ac_outfile=conftest.$ac_objext
26752 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26754 _lt_linker_boilerplate=`cat conftest.err`
26758 # Allow CC to be a program name with arguments.
26763 for cc_temp in $compiler""; do
26765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26771 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26773 lt_cv_prog_compiler_c_o_RC=yes
26775 # The else clause should only fire when bootstrapping the
26776 # libtool distribution, otherwise you forgot to ship ltmain.sh
26777 # with your package, and you will get complaints that there are
26778 # no rules to generate ltmain.sh.
26779 if test -f "$ltmain"; then
26780 # See if we are running on zsh, and set the options which allow our commands through
26781 # without removal of \ escapes.
26782 if test -n "${ZSH_VERSION+set}" ; then
26783 setopt NO_GLOB_SUBST
26785 # Now quote all the things that may contain metacharacters while being
26786 # careful not to overquote the AC_SUBSTed values. We take copies of the
26787 # variables and quote the copies for generation of the libtool script.
26788 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26792 deplibs_check_method reload_flag reload_cmds need_locks \
26793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26794 lt_cv_sys_global_symbol_to_c_name_address \
26795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26796 old_postinstall_cmds old_postuninstall_cmds \
26800 lt_prog_compiler_wl_RC \
26801 lt_prog_compiler_pic_RC \
26802 lt_prog_compiler_static_RC \
26803 lt_prog_compiler_no_builtin_flag_RC \
26804 export_dynamic_flag_spec_RC \
26805 thread_safe_flag_spec_RC \
26806 whole_archive_flag_spec_RC \
26807 enable_shared_with_static_runtimes_RC \
26808 old_archive_cmds_RC \
26809 old_archive_from_new_cmds_RC \
26810 predep_objects_RC \
26811 postdep_objects_RC \
26814 compiler_lib_search_path_RC \
26816 archive_expsym_cmds_RC \
26817 postinstall_cmds_RC \
26818 postuninstall_cmds_RC \
26819 old_archive_from_expsyms_cmds_RC \
26820 allow_undefined_flag_RC \
26821 no_undefined_flag_RC \
26822 export_symbols_cmds_RC \
26823 hardcode_libdir_flag_spec_RC \
26824 hardcode_libdir_flag_spec_ld_RC \
26825 hardcode_libdir_separator_RC \
26826 hardcode_automatic_RC \
26828 module_expsym_cmds_RC \
26829 lt_cv_prog_compiler_c_o_RC \
26830 exclude_expsyms_RC \
26831 include_expsyms_RC; do
26834 old_archive_cmds_RC | \
26835 old_archive_from_new_cmds_RC | \
26836 archive_cmds_RC | \
26837 archive_expsym_cmds_RC | \
26839 module_expsym_cmds_RC | \
26840 old_archive_from_expsyms_cmds_RC | \
26841 export_symbols_cmds_RC | \
26842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26843 postinstall_cmds | postuninstall_cmds | \
26844 old_postinstall_cmds | old_postuninstall_cmds | \
26845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26846 # Double-quote double-evaled strings.
26847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26856 *'\$0 --fallback-echo"')
26857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26863 cat <<__EOF__ >> "$cfgfile"
26864 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26866 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26868 # Shell to use when invoking shell scripts.
26871 # Whether or not to build shared libraries.
26872 build_libtool_libs=$enable_shared
26874 # Whether or not to build static libraries.
26875 build_old_libs=$enable_static
26877 # Whether or not to add -lc for building shared libraries.
26878 build_libtool_need_lc=$archive_cmds_need_lc_RC
26880 # Whether or not to disallow shared libs when runtime libs are static
26881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26883 # Whether or not to optimize for fast installation.
26884 fast_install=$enable_fast_install
26887 host_alias=$host_alias
26891 # The build system.
26892 build_alias=$build_alias
26896 # An echo program that does not interpret backslashes.
26901 AR_FLAGS=$lt_AR_FLAGS
26906 # LTCC compiler flags.
26907 LTCFLAGS=$lt_LTCFLAGS
26909 # A language-specific compiler.
26912 # Is the compiler the GNU C compiler?
26918 # The linker used to build libraries.
26921 # Whether we need hard or soft links.
26924 # A BSD-compatible nm program.
26927 # A symbol stripping program
26930 # Used to examine libraries when file_magic_cmd begins "file"
26931 MAGIC_CMD=$MAGIC_CMD
26933 # Used on cygwin: DLL creation program.
26936 # Used on cygwin: object dumper.
26939 # Used on cygwin: assembler.
26942 # The name of the directory that contains temporary libtool files.
26945 # How to create reloadable object files.
26946 reload_flag=$lt_reload_flag
26947 reload_cmds=$lt_reload_cmds
26949 # How to pass a linker flag through the compiler.
26950 wl=$lt_lt_prog_compiler_wl_RC
26952 # Object file suffix (normally "o").
26953 objext="$ac_objext"
26955 # Old archive suffix (normally "a").
26958 # Shared library suffix (normally ".so").
26959 shrext_cmds='$shrext_cmds'
26961 # Executable file suffix (normally "").
26964 # Additional compiler flags for building library objects.
26965 pic_flag=$lt_lt_prog_compiler_pic_RC
26968 # What is the maximum length of a command?
26969 max_cmd_len=$lt_cv_sys_max_cmd_len
26971 # Does compiler simultaneously support -c and -o options?
26972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26974 # Must we lock files when doing compilation?
26975 need_locks=$lt_need_locks
26977 # Do we need the lib prefix for modules?
26978 need_lib_prefix=$need_lib_prefix
26980 # Do we need a version for libraries?
26981 need_version=$need_version
26983 # Whether dlopen is supported.
26984 dlopen_support=$enable_dlopen
26986 # Whether dlopen of programs is supported.
26987 dlopen_self=$enable_dlopen_self
26989 # Whether dlopen of statically linked programs is supported.
26990 dlopen_self_static=$enable_dlopen_self_static
26992 # Compiler flag to prevent dynamic linking.
26993 link_static_flag=$lt_lt_prog_compiler_static_RC
26995 # Compiler flag to turn off builtin functions.
26996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26998 # Compiler flag to allow reflexive dlopens.
26999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27001 # Compiler flag to generate shared objects directly from archives.
27002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27004 # Compiler flag to generate thread-safe objects.
27005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27007 # Library versioning type.
27008 version_type=$version_type
27010 # Format of library name prefix.
27011 libname_spec=$lt_libname_spec
27013 # List of archive names. First name is the real one, the rest are links.
27014 # The last name is the one that the linker finds with -lNAME.
27015 library_names_spec=$lt_library_names_spec
27017 # The coded name of the library, if different from the real name.
27018 soname_spec=$lt_soname_spec
27020 # Commands used to build and install an old-style archive.
27022 old_archive_cmds=$lt_old_archive_cmds_RC
27023 old_postinstall_cmds=$lt_old_postinstall_cmds
27024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27026 # Create an old-style archive from a shared archive.
27027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27029 # Create a temporary old-style archive to link instead of a shared archive.
27030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27032 # Commands used to build and install a shared archive.
27033 archive_cmds=$lt_archive_cmds_RC
27034 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27035 postinstall_cmds=$lt_postinstall_cmds
27036 postuninstall_cmds=$lt_postuninstall_cmds
27038 # Commands used to build a loadable module (assumed same as above if empty)
27039 module_cmds=$lt_module_cmds_RC
27040 module_expsym_cmds=$lt_module_expsym_cmds_RC
27042 # Commands to strip libraries.
27043 old_striplib=$lt_old_striplib
27044 striplib=$lt_striplib
27046 # Dependencies to place before the objects being linked to create a
27048 predep_objects=$lt_predep_objects_RC
27050 # Dependencies to place after the objects being linked to create a
27052 postdep_objects=$lt_postdep_objects_RC
27054 # Dependencies to place before the objects being linked to create a
27056 predeps=$lt_predeps_RC
27058 # Dependencies to place after the objects being linked to create a
27060 postdeps=$lt_postdeps_RC
27062 # The library search path used internally by the compiler when linking
27063 # a shared library.
27064 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27066 # Method to check whether dependent libraries are shared objects.
27067 deplibs_check_method=$lt_deplibs_check_method
27069 # Command to use when deplibs_check_method == file_magic.
27070 file_magic_cmd=$lt_file_magic_cmd
27072 # Flag that allows shared libraries with undefined symbols to be built.
27073 allow_undefined_flag=$lt_allow_undefined_flag_RC
27075 # Flag that forces no undefined symbols.
27076 no_undefined_flag=$lt_no_undefined_flag_RC
27078 # Commands used to finish a libtool library installation in a directory.
27079 finish_cmds=$lt_finish_cmds
27081 # Same as above, but a single script fragment to be evaled but not shown.
27082 finish_eval=$lt_finish_eval
27084 # Take the output of nm and produce a listing of raw symbols and C names.
27085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27087 # Transform the output of nm in a proper C declaration
27088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27090 # Transform the output of nm in a C name address pair
27091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27093 # This is the shared library runtime path variable.
27094 runpath_var=$runpath_var
27096 # This is the shared library path variable.
27097 shlibpath_var=$shlibpath_var
27099 # Is shlibpath searched before the hard-coded library search path?
27100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27102 # How to hardcode a shared library path into an executable.
27103 hardcode_action=$hardcode_action_RC
27105 # Whether we should hardcode library paths into libraries.
27106 hardcode_into_libs=$hardcode_into_libs
27108 # Flag to hardcode \$libdir into a binary during linking.
27109 # This must work even if \$libdir does not exist.
27110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27112 # If ld is used when linking, flag to hardcode \$libdir into
27113 # a binary during linking. This must work even if \$libdir does
27115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27117 # Whether we need a single -rpath flag with a separated argument.
27118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27121 # resulting binary.
27122 hardcode_direct=$hardcode_direct_RC
27124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27125 # resulting binary.
27126 hardcode_minus_L=$hardcode_minus_L_RC
27128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27129 # the resulting binary.
27130 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27132 # Set to yes if building a shared library automatically hardcodes DIR into the library
27133 # and all subsequent libraries and executables linked against it.
27134 hardcode_automatic=$hardcode_automatic_RC
27136 # Variables whose values should be saved in libtool wrapper scripts and
27137 # restored at relink time.
27138 variables_saved_for_relink="$variables_saved_for_relink"
27140 # Whether libtool must link a program against all its dependency libraries.
27141 link_all_deplibs=$link_all_deplibs_RC
27143 # Compile-time system search path for libraries
27144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27146 # Run-time system search path for libraries
27147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27149 # Fix the shell variable \$srcfile for the compiler.
27150 fix_srcfile_path="$fix_srcfile_path_RC"
27152 # Set to yes if exported symbols are required.
27153 always_export_symbols=$always_export_symbols_RC
27155 # The commands to list exported symbols.
27156 export_symbols_cmds=$lt_export_symbols_cmds_RC
27158 # The commands to extract the exported symbol list from a shared archive.
27159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27161 # Symbols that should not be listed in the preloaded symbols.
27162 exclude_expsyms=$lt_exclude_expsyms_RC
27164 # Symbols that must always be exported.
27165 include_expsyms=$lt_include_expsyms_RC
27167 # ### END LIBTOOL TAG CONFIG: $tagname
27173 # If there is no Makefile yet, we rely on a make rule to execute
27174 # `config.status --recheck' to rerun these tests and create the
27175 # libtool script then.
27176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27177 if test -f "$ltmain_in"; then
27178 test -f Makefile && make "$ltmain"
27184 ac_cpp='$CPP $CPPFLAGS'
27185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27194 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27195 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27196 { (exit 1); exit 1; }; }
27200 # Append the new tag name to the list of available tags.
27201 if test -n "$tagname" ; then
27202 available_tags="$available_tags $tagname"
27208 # Now substitute the updated list of available tags.
27209 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27210 mv "${ofile}T" "$ofile"
27214 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27215 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27216 { (exit 1); exit 1; }; }
27222 # This can be used to rebuild libtool when needed
27223 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27225 # Always use our own libtool.
27226 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27228 # Prevent multiple expansion
27250 if test "$lt_cv_dlopen_self" = "yes" ; then
27252 cat >>confdefs.h <<\_ACEOF
27253 #define CAN_DLOPEN_SELF 1
27259 if test "$WITH_LLVMGCCDIR" = "default" ; then
27260 LLVMGCC="llvm-gcc${EXEEXT}"
27261 LLVMGXX="llvm-g++${EXEEXT}"
27262 LLVMGCCCOMMAND="$LLVMGCC"
27263 LLVMGXXCOMMAND="$LLVMGXX"
27264 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27266 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27268 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27269 set dummy $LLVMGCC; ac_word=$2
27270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27272 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27273 echo $ECHO_N "(cached) $ECHO_C" >&6
27277 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27281 for as_dir in $PATH
27284 test -z "$as_dir" && as_dir=.
27285 for ac_exec_ext in '' $ac_executable_extensions; do
27286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27287 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27298 LLVMGCC=$ac_cv_path_LLVMGCC
27299 if test -n "$LLVMGCC"; then
27300 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27301 echo "${ECHO_T}$LLVMGCC" >&6; }
27303 { echo "$as_me:$LINENO: result: no" >&5
27304 echo "${ECHO_T}no" >&6; }
27308 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27309 set dummy $LLVMGXX; ac_word=$2
27310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27312 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27313 echo $ECHO_N "(cached) $ECHO_C" >&6
27317 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27321 for as_dir in $PATH
27324 test -z "$as_dir" && as_dir=.
27325 for ac_exec_ext in '' $ac_executable_extensions; do
27326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27327 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27338 LLVMGXX=$ac_cv_path_LLVMGXX
27339 if test -n "$LLVMGXX"; then
27340 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27341 echo "${ECHO_T}$LLVMGXX" >&6; }
27343 { echo "$as_me:$LINENO: result: no" >&5
27344 echo "${ECHO_T}no" >&6; }
27349 if test -z "$LLVMGCC"; then
27350 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27351 LLVMGCCCOMMAND="$LLVMGCC"
27353 if test -z "$LLVMGXX"; then
27354 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27355 LLVMGXXCOMMAND="$LLVMGXX"
27362 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27364 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27369 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27370 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27383 if test "$GCC" != "yes" && test "$ICC" != "yes"
27385 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27386 echo "$as_me: error: gcc|icc required but not found" >&2;}
27387 { (exit 1); exit 1; }; }
27390 if test "$GXX" != "yes" && test "$IXX" != "yes"
27392 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27393 echo "$as_me: error: g++|icc required but not found" >&2;}
27394 { (exit 1); exit 1; }; }
27397 if test "$GCC" = "yes"
27399 cat >conftest.$ac_ext <<_ACEOF
27400 #if !defined(__GNUC__) || __GNUC__ < 3
27401 #error Unsupported GCC version
27405 rm -f conftest.$ac_objext
27406 if { (ac_try="$ac_compile"
27407 case "(($ac_try" in
27408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27409 *) ac_try_echo=$ac_try;;
27411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27412 (eval "$ac_compile") 2>conftest.er1
27414 grep -v '^ *+' conftest.er1 >conftest.err
27416 cat conftest.err >&5
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); } &&
27419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27420 { (case "(($ac_try" in
27421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422 *) ac_try_echo=$ac_try;;
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425 (eval "$ac_try") 2>&5
27427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); }; } &&
27429 { ac_try='test -s conftest.$ac_objext'
27430 { (case "(($ac_try" in
27431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27432 *) ac_try_echo=$ac_try;;
27434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27435 (eval "$ac_try") 2>&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); }; }; then
27441 echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27444 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27445 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27446 { (exit 1); exit 1; }; }
27449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27452 if test -z "$llvm_cv_gnu_make_command"
27454 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27455 echo "$as_me: error: GNU Make required but not found" >&2;}
27456 { (exit 1); exit 1; }; }
27459 { echo "$as_me:$LINENO: result: ok" >&5
27460 echo "${ECHO_T}ok" >&6; }
27464 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27465 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27466 if test "${ac_cv_lib_m_sin+set}" = set; then
27467 echo $ECHO_N "(cached) $ECHO_C" >&6
27469 ac_check_lib_save_LIBS=$LIBS
27471 cat >conftest.$ac_ext <<_ACEOF
27474 cat confdefs.h >>conftest.$ac_ext
27475 cat >>conftest.$ac_ext <<_ACEOF
27476 /* end confdefs.h. */
27478 /* Override any GCC internal prototype to avoid an error.
27479 Use char because int might match the return type of a GCC
27480 builtin and then its argument prototype would still apply. */
27493 rm -f conftest.$ac_objext conftest$ac_exeext
27494 if { (ac_try="$ac_link"
27495 case "(($ac_try" in
27496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497 *) ac_try_echo=$ac_try;;
27499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500 (eval "$ac_link") 2>conftest.er1
27502 grep -v '^ *+' conftest.er1 >conftest.err
27504 cat conftest.err >&5
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); } &&
27507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27508 { (case "(($ac_try" in
27509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510 *) ac_try_echo=$ac_try;;
27512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513 (eval "$ac_try") 2>&5
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; } &&
27517 { ac_try='test -s conftest$ac_exeext'
27518 { (case "(($ac_try" in
27519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27520 *) ac_try_echo=$ac_try;;
27522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27523 (eval "$ac_try") 2>&5
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); }; }; then
27527 ac_cv_lib_m_sin=yes
27529 echo "$as_me: failed program was:" >&5
27530 sed 's/^/| /' conftest.$ac_ext >&5
27535 rm -f core conftest.err conftest.$ac_objext \
27536 conftest$ac_exeext conftest.$ac_ext
27537 LIBS=$ac_check_lib_save_LIBS
27539 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27540 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27541 if test $ac_cv_lib_m_sin = yes; then
27542 cat >>confdefs.h <<_ACEOF
27543 #define HAVE_LIBM 1
27550 if test "$llvm_cv_os_type" = "MingW" ; then
27552 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27553 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27554 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27555 echo $ECHO_N "(cached) $ECHO_C" >&6
27557 ac_check_lib_save_LIBS=$LIBS
27558 LIBS="-limagehlp $LIBS"
27559 cat >conftest.$ac_ext <<_ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h. */
27575 rm -f conftest.$ac_objext conftest$ac_exeext
27576 if { (ac_try="$ac_link"
27577 case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_link") 2>conftest.er1
27584 grep -v '^ *+' conftest.er1 >conftest.err
27586 cat conftest.err >&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); } &&
27589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27590 { (case "(($ac_try" in
27591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27592 *) ac_try_echo=$ac_try;;
27594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27595 (eval "$ac_try") 2>&5
27597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); }; } &&
27599 { ac_try='test -s conftest$ac_exeext'
27600 { (case "(($ac_try" in
27601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27602 *) ac_try_echo=$ac_try;;
27604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27605 (eval "$ac_try") 2>&5
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); }; }; then
27609 ac_cv_lib_imagehlp_main=yes
27611 echo "$as_me: failed program was:" >&5
27612 sed 's/^/| /' conftest.$ac_ext >&5
27614 ac_cv_lib_imagehlp_main=no
27617 rm -f core conftest.err conftest.$ac_objext \
27618 conftest$ac_exeext conftest.$ac_ext
27619 LIBS=$ac_check_lib_save_LIBS
27621 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27622 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27623 if test $ac_cv_lib_imagehlp_main = yes; then
27624 cat >>confdefs.h <<_ACEOF
27625 #define HAVE_LIBIMAGEHLP 1
27628 LIBS="-limagehlp $LIBS"
27633 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27634 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27635 if test "${ac_cv_lib_psapi_main+set}" = set; then
27636 echo $ECHO_N "(cached) $ECHO_C" >&6
27638 ac_check_lib_save_LIBS=$LIBS
27639 LIBS="-lpsapi $LIBS"
27640 cat >conftest.$ac_ext <<_ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h. */
27656 rm -f conftest.$ac_objext conftest$ac_exeext
27657 if { (ac_try="$ac_link"
27658 case "(($ac_try" in
27659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27660 *) ac_try_echo=$ac_try;;
27662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27663 (eval "$ac_link") 2>conftest.er1
27665 grep -v '^ *+' conftest.er1 >conftest.err
27667 cat conftest.err >&5
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); } &&
27670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27671 { (case "(($ac_try" in
27672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673 *) ac_try_echo=$ac_try;;
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676 (eval "$ac_try") 2>&5
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; } &&
27680 { ac_try='test -s conftest$ac_exeext'
27681 { (case "(($ac_try" in
27682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27683 *) ac_try_echo=$ac_try;;
27685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27686 (eval "$ac_try") 2>&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); }; }; then
27690 ac_cv_lib_psapi_main=yes
27692 echo "$as_me: failed program was:" >&5
27693 sed 's/^/| /' conftest.$ac_ext >&5
27695 ac_cv_lib_psapi_main=no
27698 rm -f core conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
27700 LIBS=$ac_check_lib_save_LIBS
27702 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27703 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27704 if test $ac_cv_lib_psapi_main = yes; then
27705 cat >>confdefs.h <<_ACEOF
27706 #define HAVE_LIBPSAPI 1
27709 LIBS="-lpsapi $LIBS"
27715 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27716 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27717 if test "${ac_cv_search_dlopen+set}" = set; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 ac_func_search_save_LIBS=$LIBS
27721 cat >conftest.$ac_ext <<_ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h. */
27728 /* Override any GCC internal prototype to avoid an error.
27729 Use char because int might match the return type of a GCC
27730 builtin and then its argument prototype would still apply. */
27743 for ac_lib in '' dl; do
27744 if test -z "$ac_lib"; then
27745 ac_res="none required"
27748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27750 rm -f conftest.$ac_objext conftest$ac_exeext
27751 if { (ac_try="$ac_link"
27752 case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_link") 2>conftest.er1
27759 grep -v '^ *+' conftest.er1 >conftest.err
27761 cat conftest.err >&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } &&
27764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27765 { (case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_try") 2>&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
27774 { ac_try='test -s conftest$ac_exeext'
27775 { (case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_try") 2>&5
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
27784 ac_cv_search_dlopen=$ac_res
27786 echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.$ac_ext >&5
27792 rm -f core conftest.err conftest.$ac_objext \
27794 if test "${ac_cv_search_dlopen+set}" = set; then
27798 if test "${ac_cv_search_dlopen+set}" = set; then
27801 ac_cv_search_dlopen=no
27803 rm conftest.$ac_ext
27804 LIBS=$ac_func_search_save_LIBS
27806 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27807 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27808 ac_res=$ac_cv_search_dlopen
27809 if test "$ac_res" != no; then
27810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27812 cat >>confdefs.h <<\_ACEOF
27813 #define HAVE_DLOPEN 1
27817 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27818 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27822 if test "$llvm_cv_enable_libffi" = "yes" ; then
27823 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27824 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27825 if test "${ac_cv_search_ffi_call+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27828 ac_func_search_save_LIBS=$LIBS
27829 cat >conftest.$ac_ext <<_ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h. */
27836 /* Override any GCC internal prototype to avoid an error.
27837 Use char because int might match the return type of a GCC
27838 builtin and then its argument prototype would still apply. */
27846 return ffi_call ();
27851 for ac_lib in '' ffi; do
27852 if test -z "$ac_lib"; then
27853 ac_res="none required"
27856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27858 rm -f conftest.$ac_objext conftest$ac_exeext
27859 if { (ac_try="$ac_link"
27860 case "(($ac_try" in
27861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862 *) ac_try_echo=$ac_try;;
27864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865 (eval "$ac_link") 2>conftest.er1
27867 grep -v '^ *+' conftest.er1 >conftest.err
27869 cat conftest.err >&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); } &&
27872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27873 { (case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_try") 2>&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); }; } &&
27882 { ac_try='test -s conftest$ac_exeext'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
27892 ac_cv_search_ffi_call=$ac_res
27894 echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27900 rm -f core conftest.err conftest.$ac_objext \
27902 if test "${ac_cv_search_ffi_call+set}" = set; then
27906 if test "${ac_cv_search_ffi_call+set}" = set; then
27909 ac_cv_search_ffi_call=no
27911 rm conftest.$ac_ext
27912 LIBS=$ac_func_search_save_LIBS
27914 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27915 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27916 ac_res=$ac_cv_search_ffi_call
27917 if test "$ac_res" != no; then
27918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27920 cat >>confdefs.h <<\_ACEOF
27921 #define HAVE_FFI_CALL 1
27925 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27926 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27931 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27932 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27933 if test "${ac_cv_search_mallinfo+set}" = set; then
27934 echo $ECHO_N "(cached) $ECHO_C" >&6
27936 ac_func_search_save_LIBS=$LIBS
27937 cat >conftest.$ac_ext <<_ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h. */
27944 /* Override any GCC internal prototype to avoid an error.
27945 Use char because int might match the return type of a GCC
27946 builtin and then its argument prototype would still apply. */
27954 return mallinfo ();
27959 for ac_lib in '' malloc; do
27960 if test -z "$ac_lib"; then
27961 ac_res="none required"
27964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27966 rm -f conftest.$ac_objext conftest$ac_exeext
27967 if { (ac_try="$ac_link"
27968 case "(($ac_try" in
27969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970 *) ac_try_echo=$ac_try;;
27972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27973 (eval "$ac_link") 2>conftest.er1
27975 grep -v '^ *+' conftest.er1 >conftest.err
27977 cat conftest.err >&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } &&
27980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27981 { (case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_try") 2>&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; } &&
27990 { ac_try='test -s conftest$ac_exeext'
27991 { (case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28000 ac_cv_search_mallinfo=$ac_res
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28008 rm -f core conftest.err conftest.$ac_objext \
28010 if test "${ac_cv_search_mallinfo+set}" = set; then
28014 if test "${ac_cv_search_mallinfo+set}" = set; then
28017 ac_cv_search_mallinfo=no
28019 rm conftest.$ac_ext
28020 LIBS=$ac_func_search_save_LIBS
28022 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28023 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28024 ac_res=$ac_cv_search_mallinfo
28025 if test "$ac_res" != no; then
28026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28028 cat >>confdefs.h <<\_ACEOF
28029 #define HAVE_MALLINFO 1
28035 if test "$ENABLE_THREADS" -eq 1 ; then
28036 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_init" >&5
28037 echo $ECHO_N "checking for library containing pthread_mutex_init... $ECHO_C" >&6; }
28038 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28039 echo $ECHO_N "(cached) $ECHO_C" >&6
28041 ac_func_search_save_LIBS=$LIBS
28042 cat >conftest.$ac_ext <<_ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h. */
28049 /* Override any GCC internal prototype to avoid an error.
28050 Use char because int might match the return type of a GCC
28051 builtin and then its argument prototype would still apply. */
28055 char pthread_mutex_init ();
28059 return pthread_mutex_init ();
28064 for ac_lib in '' pthread; do
28065 if test -z "$ac_lib"; then
28066 ac_res="none required"
28069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28071 rm -f conftest.$ac_objext conftest$ac_exeext
28072 if { (ac_try="$ac_link"
28073 case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_link") 2>conftest.er1
28080 grep -v '^ *+' conftest.er1 >conftest.err
28082 cat conftest.err >&5
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); } &&
28085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28086 { (case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_try") 2>&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; } &&
28095 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28105 ac_cv_search_pthread_mutex_init=$ac_res
28107 echo "$as_me: failed program was:" >&5
28108 sed 's/^/| /' conftest.$ac_ext >&5
28113 rm -f core conftest.err conftest.$ac_objext \
28115 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28119 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28122 ac_cv_search_pthread_mutex_init=no
28124 rm conftest.$ac_ext
28125 LIBS=$ac_func_search_save_LIBS
28127 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_init" >&5
28128 echo "${ECHO_T}$ac_cv_search_pthread_mutex_init" >&6; }
28129 ac_res=$ac_cv_search_pthread_mutex_init
28130 if test "$ac_res" != no; then
28131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28133 cat >>confdefs.h <<\_ACEOF
28134 #define HAVE_PTHREAD 1
28139 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28140 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28141 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28142 echo $ECHO_N "(cached) $ECHO_C" >&6
28144 ac_func_search_save_LIBS=$LIBS
28145 cat >conftest.$ac_ext <<_ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28152 /* Override any GCC internal prototype to avoid an error.
28153 Use char because int might match the return type of a GCC
28154 builtin and then its argument prototype would still apply. */
28158 char pthread_mutex_lock ();
28162 return pthread_mutex_lock ();
28167 for ac_lib in '' pthread; do
28168 if test -z "$ac_lib"; then
28169 ac_res="none required"
28172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28174 rm -f conftest.$ac_objext conftest$ac_exeext
28175 if { (ac_try="$ac_link"
28176 case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_link") 2>conftest.er1
28183 grep -v '^ *+' conftest.er1 >conftest.err
28185 cat conftest.err >&5
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); } &&
28188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28189 { (case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_try") 2>&5
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; } &&
28198 { ac_try='test -s conftest$ac_exeext'
28199 { (case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_try") 2>&5
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; }; then
28208 ac_cv_search_pthread_mutex_lock=$ac_res
28210 echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28216 rm -f core conftest.err conftest.$ac_objext \
28218 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28222 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28225 ac_cv_search_pthread_mutex_lock=no
28227 rm conftest.$ac_ext
28228 LIBS=$ac_func_search_save_LIBS
28230 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28231 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28232 ac_res=$ac_cv_search_pthread_mutex_lock
28233 if test "$ac_res" != no; then
28234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28236 cat >>confdefs.h <<\_ACEOF
28237 #define HAVE_PTHREAD_MUTEX_LOCK 1
28242 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28243 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28244 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28245 echo $ECHO_N "(cached) $ECHO_C" >&6
28247 ac_func_search_save_LIBS=$LIBS
28248 cat >conftest.$ac_ext <<_ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h. */
28255 /* Override any GCC internal prototype to avoid an error.
28256 Use char because int might match the return type of a GCC
28257 builtin and then its argument prototype would still apply. */
28261 char pthread_rwlock_init ();
28265 return pthread_rwlock_init ();
28270 for ac_lib in '' pthread; do
28271 if test -z "$ac_lib"; then
28272 ac_res="none required"
28275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28277 rm -f conftest.$ac_objext conftest$ac_exeext
28278 if { (ac_try="$ac_link"
28279 case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_link") 2>conftest.er1
28286 grep -v '^ *+' conftest.er1 >conftest.err
28288 cat conftest.err >&5
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); } &&
28291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28292 { (case "(($ac_try" in
28293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28294 *) ac_try_echo=$ac_try;;
28296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28297 (eval "$ac_try") 2>&5
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); }; } &&
28301 { ac_try='test -s conftest$ac_exeext'
28302 { (case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_try") 2>&5
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28311 ac_cv_search_pthread_rwlock_init=$ac_res
28313 echo "$as_me: failed program was:" >&5
28314 sed 's/^/| /' conftest.$ac_ext >&5
28319 rm -f core conftest.err conftest.$ac_objext \
28321 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28325 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28328 ac_cv_search_pthread_rwlock_init=no
28330 rm conftest.$ac_ext
28331 LIBS=$ac_func_search_save_LIBS
28333 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28334 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28335 ac_res=$ac_cv_search_pthread_rwlock_init
28336 if test "$ac_res" != no; then
28337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28339 cat >>confdefs.h <<\_ACEOF
28340 #define HAVE_PTHREAD_RWLOCK_INIT 1
28345 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28346 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28347 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28348 echo $ECHO_N "(cached) $ECHO_C" >&6
28350 ac_func_search_save_LIBS=$LIBS
28351 cat >conftest.$ac_ext <<_ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h. */
28358 /* Override any GCC internal prototype to avoid an error.
28359 Use char because int might match the return type of a GCC
28360 builtin and then its argument prototype would still apply. */
28364 char pthread_getspecific ();
28368 return pthread_getspecific ();
28373 for ac_lib in '' pthread; do
28374 if test -z "$ac_lib"; then
28375 ac_res="none required"
28378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28380 rm -f conftest.$ac_objext conftest$ac_exeext
28381 if { (ac_try="$ac_link"
28382 case "(($ac_try" in
28383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28384 *) ac_try_echo=$ac_try;;
28386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28387 (eval "$ac_link") 2>conftest.er1
28389 grep -v '^ *+' conftest.er1 >conftest.err
28391 cat conftest.err >&5
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); } &&
28394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28395 { (case "(($ac_try" in
28396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397 *) ac_try_echo=$ac_try;;
28399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28400 (eval "$ac_try") 2>&5
28402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403 (exit $ac_status); }; } &&
28404 { ac_try='test -s conftest$ac_exeext'
28405 { (case "(($ac_try" in
28406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407 *) ac_try_echo=$ac_try;;
28409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28410 (eval "$ac_try") 2>&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; }; then
28414 ac_cv_search_pthread_getspecific=$ac_res
28416 echo "$as_me: failed program was:" >&5
28417 sed 's/^/| /' conftest.$ac_ext >&5
28422 rm -f core conftest.err conftest.$ac_objext \
28424 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28428 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28431 ac_cv_search_pthread_getspecific=no
28433 rm conftest.$ac_ext
28434 LIBS=$ac_func_search_save_LIBS
28436 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28437 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28438 ac_res=$ac_cv_search_pthread_getspecific
28439 if test "$ac_res" != no; then
28440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28442 cat >>confdefs.h <<\_ACEOF
28443 #define HAVE_PTHREAD_GETSPECIFIC 1
28451 # Check whether --with-udis86 was given.
28452 if test "${with_udis86+set}" = set; then
28453 withval=$with_udis86;
28458 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28461 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28462 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28463 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28466 ac_check_lib_save_LIBS=$LIBS
28467 LIBS="-ludis86 $LIBS"
28468 cat >conftest.$ac_ext <<_ACEOF
28471 cat confdefs.h >>conftest.$ac_ext
28472 cat >>conftest.$ac_ext <<_ACEOF
28473 /* end confdefs.h. */
28475 /* Override any GCC internal prototype to avoid an error.
28476 Use char because int might match the return type of a GCC
28477 builtin and then its argument prototype would still apply. */
28490 rm -f conftest.$ac_objext conftest$ac_exeext
28491 if { (ac_try="$ac_link"
28492 case "(($ac_try" in
28493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494 *) ac_try_echo=$ac_try;;
28496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497 (eval "$ac_link") 2>conftest.er1
28499 grep -v '^ *+' conftest.er1 >conftest.err
28501 cat conftest.err >&5
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); } &&
28504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28505 { (case "(($ac_try" in
28506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28507 *) ac_try_echo=$ac_try;;
28509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28510 (eval "$ac_try") 2>&5
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; } &&
28514 { ac_try='test -s conftest$ac_exeext'
28515 { (case "(($ac_try" in
28516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28517 *) ac_try_echo=$ac_try;;
28519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28520 (eval "$ac_try") 2>&5
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; }; then
28524 ac_cv_lib_udis86_ud_init=yes
28526 echo "$as_me: failed program was:" >&5
28527 sed 's/^/| /' conftest.$ac_ext >&5
28529 ac_cv_lib_udis86_ud_init=no
28532 rm -f core conftest.err conftest.$ac_objext \
28533 conftest$ac_exeext conftest.$ac_ext
28534 LIBS=$ac_check_lib_save_LIBS
28536 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28537 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28538 if test $ac_cv_lib_udis86_ud_init = yes; then
28539 cat >>confdefs.h <<_ACEOF
28540 #define HAVE_LIBUDIS86 1
28543 LIBS="-ludis86 $LIBS"
28547 echo "Error! You need to have libudis86 around."
28559 cat >>confdefs.h <<_ACEOF
28560 #define USE_UDIS86 $USE_UDIS86
28565 # Check whether --with-oprofile was given.
28566 if test "${with_oprofile+set}" = set; then
28567 withval=$with_oprofile;
28571 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28572 no) llvm_cv_oppath=
28575 *) llvm_cv_oppath="${withval}/lib/oprofile"
28576 CPPFLAGS="-I${withval}/include";;
28578 if test -n "$llvm_cv_oppath" ; then
28579 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28580 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28581 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28582 if test "${ac_cv_search_bfd_init+set}" = set; then
28583 echo $ECHO_N "(cached) $ECHO_C" >&6
28585 ac_func_search_save_LIBS=$LIBS
28586 cat >conftest.$ac_ext <<_ACEOF
28589 cat confdefs.h >>conftest.$ac_ext
28590 cat >>conftest.$ac_ext <<_ACEOF
28591 /* end confdefs.h. */
28593 /* Override any GCC internal prototype to avoid an error.
28594 Use char because int might match the return type of a GCC
28595 builtin and then its argument prototype would still apply. */
28603 return bfd_init ();
28608 for ac_lib in '' bfd; do
28609 if test -z "$ac_lib"; then
28610 ac_res="none required"
28613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28615 rm -f conftest.$ac_objext conftest$ac_exeext
28616 if { (ac_try="$ac_link"
28617 case "(($ac_try" in
28618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619 *) ac_try_echo=$ac_try;;
28621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28622 (eval "$ac_link") 2>conftest.er1
28624 grep -v '^ *+' conftest.er1 >conftest.err
28626 cat conftest.err >&5
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); } &&
28629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28630 { (case "(($ac_try" in
28631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632 *) ac_try_echo=$ac_try;;
28634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28635 (eval "$ac_try") 2>&5
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; } &&
28639 { ac_try='test -s conftest$ac_exeext'
28640 { (case "(($ac_try" in
28641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28642 *) ac_try_echo=$ac_try;;
28644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28645 (eval "$ac_try") 2>&5
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); }; }; then
28649 ac_cv_search_bfd_init=$ac_res
28651 echo "$as_me: failed program was:" >&5
28652 sed 's/^/| /' conftest.$ac_ext >&5
28657 rm -f core conftest.err conftest.$ac_objext \
28659 if test "${ac_cv_search_bfd_init+set}" = set; then
28663 if test "${ac_cv_search_bfd_init+set}" = set; then
28666 ac_cv_search_bfd_init=no
28668 rm conftest.$ac_ext
28669 LIBS=$ac_func_search_save_LIBS
28671 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28672 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28673 ac_res=$ac_cv_search_bfd_init
28674 if test "$ac_res" != no; then
28675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28679 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28680 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28681 if test "${ac_cv_search_op_open_agent+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. */
28698 char op_open_agent ();
28702 return op_open_agent ();
28707 for ac_lib in '' opagent; 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_op_open_agent=$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_op_open_agent+set}" = set; then
28762 if test "${ac_cv_search_op_open_agent+set}" = set; then
28765 ac_cv_search_op_open_agent=no
28767 rm conftest.$ac_ext
28768 LIBS=$ac_func_search_save_LIBS
28770 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28771 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28772 ac_res=$ac_cv_search_op_open_agent
28773 if test "$ac_res" != no; then
28774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28778 echo "Error! You need to have libopagent around."
28783 if test "${ac_cv_header_opagent_h+set}" = set; then
28784 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28785 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28786 if test "${ac_cv_header_opagent_h+set}" = set; then
28787 echo $ECHO_N "(cached) $ECHO_C" >&6
28789 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28790 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28792 # Is the header compilable?
28793 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28794 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28795 cat >conftest.$ac_ext <<_ACEOF
28798 cat confdefs.h >>conftest.$ac_ext
28799 cat >>conftest.$ac_ext <<_ACEOF
28800 /* end confdefs.h. */
28801 $ac_includes_default
28802 #include <opagent.h>
28804 rm -f conftest.$ac_objext
28805 if { (ac_try="$ac_compile"
28806 case "(($ac_try" in
28807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28808 *) ac_try_echo=$ac_try;;
28810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28811 (eval "$ac_compile") 2>conftest.er1
28813 grep -v '^ *+' conftest.er1 >conftest.err
28815 cat conftest.err >&5
28816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817 (exit $ac_status); } &&
28818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28819 { (case "(($ac_try" in
28820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821 *) ac_try_echo=$ac_try;;
28823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824 (eval "$ac_try") 2>&5
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; } &&
28828 { ac_try='test -s conftest.$ac_objext'
28829 { (case "(($ac_try" in
28830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28831 *) ac_try_echo=$ac_try;;
28833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28834 (eval "$ac_try") 2>&5
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); }; }; then
28838 ac_header_compiler=yes
28840 echo "$as_me: failed program was:" >&5
28841 sed 's/^/| /' conftest.$ac_ext >&5
28843 ac_header_compiler=no
28846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28848 echo "${ECHO_T}$ac_header_compiler" >&6; }
28850 # Is the header present?
28851 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28852 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28853 cat >conftest.$ac_ext <<_ACEOF
28856 cat confdefs.h >>conftest.$ac_ext
28857 cat >>conftest.$ac_ext <<_ACEOF
28858 /* end confdefs.h. */
28859 #include <opagent.h>
28861 if { (ac_try="$ac_cpp conftest.$ac_ext"
28862 case "(($ac_try" in
28863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28864 *) ac_try_echo=$ac_try;;
28866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28869 grep -v '^ *+' conftest.er1 >conftest.err
28871 cat conftest.err >&5
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); } >/dev/null; then
28874 if test -s conftest.err; then
28875 ac_cpp_err=$ac_c_preproc_warn_flag
28876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28883 if test -z "$ac_cpp_err"; then
28884 ac_header_preproc=yes
28886 echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28889 ac_header_preproc=no
28892 rm -f conftest.err conftest.$ac_ext
28893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28894 echo "${ECHO_T}$ac_header_preproc" >&6; }
28896 # So? What about this header?
28897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28899 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28900 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28901 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28902 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28903 ac_header_preproc=yes
28906 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28907 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28908 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28909 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28910 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28911 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28912 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28913 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28915 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28917 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28919 ## ----------------------------------- ##
28920 ## Report this to llvmbugs@cs.uiuc.edu ##
28921 ## ----------------------------------- ##
28923 ) | sed "s/^/$as_me: WARNING: /" >&2
28926 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28927 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28928 if test "${ac_cv_header_opagent_h+set}" = set; then
28929 echo $ECHO_N "(cached) $ECHO_C" >&6
28931 ac_cv_header_opagent_h=$ac_header_preproc
28933 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28934 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28937 if test $ac_cv_header_opagent_h = yes; then
28941 echo "Error! You need to have opagent.h around."
28957 cat >>confdefs.h <<_ACEOF
28958 #define USE_OPROFILE $USE_OPROFILE
28968 ac_header_dirent=no
28969 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28970 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28971 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28972 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28974 echo $ECHO_N "(cached) $ECHO_C" >&6
28976 cat >conftest.$ac_ext <<_ACEOF
28979 cat confdefs.h >>conftest.$ac_ext
28980 cat >>conftest.$ac_ext <<_ACEOF
28981 /* end confdefs.h. */
28982 #include <sys/types.h>
28994 rm -f conftest.$ac_objext
28995 if { (ac_try="$ac_compile"
28996 case "(($ac_try" in
28997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_compile") 2>conftest.er1
29003 grep -v '^ *+' conftest.er1 >conftest.err
29005 cat conftest.err >&5
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); } &&
29008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29009 { (case "(($ac_try" in
29010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011 *) ac_try_echo=$ac_try;;
29013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29014 (eval "$ac_try") 2>&5
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); }; } &&
29018 { ac_try='test -s conftest.$ac_objext'
29019 { (case "(($ac_try" in
29020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29021 *) ac_try_echo=$ac_try;;
29023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29024 (eval "$ac_try") 2>&5
29026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29027 (exit $ac_status); }; }; then
29028 eval "$as_ac_Header=yes"
29030 echo "$as_me: failed program was:" >&5
29031 sed 's/^/| /' conftest.$ac_ext >&5
29033 eval "$as_ac_Header=no"
29036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29038 ac_res=`eval echo '${'$as_ac_Header'}'`
29039 { echo "$as_me:$LINENO: result: $ac_res" >&5
29040 echo "${ECHO_T}$ac_res" >&6; }
29041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29042 cat >>confdefs.h <<_ACEOF
29043 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29046 ac_header_dirent=$ac_hdr; break
29050 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29051 if test $ac_header_dirent = dirent.h; then
29052 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29053 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29054 if test "${ac_cv_search_opendir+set}" = set; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29057 ac_func_search_save_LIBS=$LIBS
29058 cat >conftest.$ac_ext <<_ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h. */
29065 /* Override any GCC internal prototype to avoid an error.
29066 Use char because int might match the return type of a GCC
29067 builtin and then its argument prototype would still apply. */
29080 for ac_lib in '' dir; do
29081 if test -z "$ac_lib"; then
29082 ac_res="none required"
29085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29087 rm -f conftest.$ac_objext conftest$ac_exeext
29088 if { (ac_try="$ac_link"
29089 case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_link") 2>conftest.er1
29096 grep -v '^ *+' conftest.er1 >conftest.err
29098 cat conftest.err >&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } &&
29101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29102 { (case "(($ac_try" in
29103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104 *) ac_try_echo=$ac_try;;
29106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107 (eval "$ac_try") 2>&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; } &&
29111 { ac_try='test -s conftest$ac_exeext'
29112 { (case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_try") 2>&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); }; }; then
29121 ac_cv_search_opendir=$ac_res
29123 echo "$as_me: failed program was:" >&5
29124 sed 's/^/| /' conftest.$ac_ext >&5
29129 rm -f core conftest.err conftest.$ac_objext \
29131 if test "${ac_cv_search_opendir+set}" = set; then
29135 if test "${ac_cv_search_opendir+set}" = set; then
29138 ac_cv_search_opendir=no
29140 rm conftest.$ac_ext
29141 LIBS=$ac_func_search_save_LIBS
29143 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29144 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29145 ac_res=$ac_cv_search_opendir
29146 if test "$ac_res" != no; then
29147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29152 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29153 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29154 if test "${ac_cv_search_opendir+set}" = set; then
29155 echo $ECHO_N "(cached) $ECHO_C" >&6
29157 ac_func_search_save_LIBS=$LIBS
29158 cat >conftest.$ac_ext <<_ACEOF
29161 cat confdefs.h >>conftest.$ac_ext
29162 cat >>conftest.$ac_ext <<_ACEOF
29163 /* end confdefs.h. */
29165 /* Override any GCC internal prototype to avoid an error.
29166 Use char because int might match the return type of a GCC
29167 builtin and then its argument prototype would still apply. */
29180 for ac_lib in '' x; do
29181 if test -z "$ac_lib"; then
29182 ac_res="none required"
29185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29187 rm -f conftest.$ac_objext conftest$ac_exeext
29188 if { (ac_try="$ac_link"
29189 case "(($ac_try" in
29190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191 *) ac_try_echo=$ac_try;;
29193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29194 (eval "$ac_link") 2>conftest.er1
29196 grep -v '^ *+' conftest.er1 >conftest.err
29198 cat conftest.err >&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); } &&
29201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29202 { (case "(($ac_try" in
29203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204 *) ac_try_echo=$ac_try;;
29206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29207 (eval "$ac_try") 2>&5
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); }; } &&
29211 { ac_try='test -s conftest$ac_exeext'
29212 { (case "(($ac_try" in
29213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214 *) ac_try_echo=$ac_try;;
29216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29217 (eval "$ac_try") 2>&5
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); }; }; then
29221 ac_cv_search_opendir=$ac_res
29223 echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29229 rm -f core conftest.err conftest.$ac_objext \
29231 if test "${ac_cv_search_opendir+set}" = set; then
29235 if test "${ac_cv_search_opendir+set}" = set; then
29238 ac_cv_search_opendir=no
29240 rm conftest.$ac_ext
29241 LIBS=$ac_func_search_save_LIBS
29243 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29244 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29245 ac_res=$ac_cv_search_opendir
29246 if test "$ac_res" != no; then
29247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29253 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29254 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29255 if test "${ac_cv_header_mmap_anon+set}" = set; then
29256 echo $ECHO_N "(cached) $ECHO_C" >&6
29259 ac_cpp='$CPP $CPPFLAGS'
29260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29264 cat >conftest.$ac_ext <<_ACEOF
29267 cat confdefs.h >>conftest.$ac_ext
29268 cat >>conftest.$ac_ext <<_ACEOF
29269 /* end confdefs.h. */
29270 #include <sys/mman.h>
29271 #include <unistd.h>
29276 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29281 rm -f conftest.$ac_objext
29282 if { (ac_try="$ac_compile"
29283 case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_compile") 2>conftest.er1
29290 grep -v '^ *+' conftest.er1 >conftest.err
29292 cat conftest.err >&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
29295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
29306 { (case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_try") 2>&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 ac_cv_header_mmap_anon=yes
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29320 ac_cv_header_mmap_anon=no
29323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29325 ac_cpp='$CPP $CPPFLAGS'
29326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29332 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29333 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29334 if test "$ac_cv_header_mmap_anon" = yes; then
29336 cat >>confdefs.h <<\_ACEOF
29337 #define HAVE_MMAP_ANONYMOUS 1
29342 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29343 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29344 if test "${ac_cv_header_stat_broken+set}" = set; then
29345 echo $ECHO_N "(cached) $ECHO_C" >&6
29347 cat >conftest.$ac_ext <<_ACEOF
29350 cat confdefs.h >>conftest.$ac_ext
29351 cat >>conftest.$ac_ext <<_ACEOF
29352 /* end confdefs.h. */
29353 #include <sys/types.h>
29354 #include <sys/stat.h>
29356 #if defined S_ISBLK && defined S_IFDIR
29357 # if S_ISBLK (S_IFDIR)
29362 #if defined S_ISBLK && defined S_IFCHR
29363 # if S_ISBLK (S_IFCHR)
29368 #if defined S_ISLNK && defined S_IFREG
29369 # if S_ISLNK (S_IFREG)
29374 #if defined S_ISSOCK && defined S_IFREG
29375 # if S_ISSOCK (S_IFREG)
29381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29382 $EGREP "You lose" >/dev/null 2>&1; then
29383 ac_cv_header_stat_broken=yes
29385 ac_cv_header_stat_broken=no
29390 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29391 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29392 if test $ac_cv_header_stat_broken = yes; then
29394 cat >>confdefs.h <<\_ACEOF
29395 #define STAT_MACROS_BROKEN 1
29400 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29401 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29402 if test "${ac_cv_header_stdc+set}" = set; then
29403 echo $ECHO_N "(cached) $ECHO_C" >&6
29405 cat >conftest.$ac_ext <<_ACEOF
29408 cat confdefs.h >>conftest.$ac_ext
29409 cat >>conftest.$ac_ext <<_ACEOF
29410 /* end confdefs.h. */
29411 #include <stdlib.h>
29412 #include <stdarg.h>
29413 #include <string.h>
29424 rm -f conftest.$ac_objext
29425 if { (ac_try="$ac_compile"
29426 case "(($ac_try" in
29427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428 *) ac_try_echo=$ac_try;;
29430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431 (eval "$ac_compile") 2>conftest.er1
29433 grep -v '^ *+' conftest.er1 >conftest.err
29435 cat conftest.err >&5
29436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437 (exit $ac_status); } &&
29438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29439 { (case "(($ac_try" in
29440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29441 *) ac_try_echo=$ac_try;;
29443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29444 (eval "$ac_try") 2>&5
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; } &&
29448 { ac_try='test -s conftest.$ac_objext'
29449 { (case "(($ac_try" in
29450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29451 *) ac_try_echo=$ac_try;;
29453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29454 (eval "$ac_try") 2>&5
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); }; }; then
29458 ac_cv_header_stdc=yes
29460 echo "$as_me: failed program was:" >&5
29461 sed 's/^/| /' conftest.$ac_ext >&5
29463 ac_cv_header_stdc=no
29466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29468 if test $ac_cv_header_stdc = yes; then
29469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29470 cat >conftest.$ac_ext <<_ACEOF
29473 cat confdefs.h >>conftest.$ac_ext
29474 cat >>conftest.$ac_ext <<_ACEOF
29475 /* end confdefs.h. */
29476 #include <string.h>
29479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29480 $EGREP "memchr" >/dev/null 2>&1; then
29483 ac_cv_header_stdc=no
29489 if test $ac_cv_header_stdc = yes; then
29490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29491 cat >conftest.$ac_ext <<_ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h. */
29497 #include <stdlib.h>
29500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29501 $EGREP "free" >/dev/null 2>&1; then
29504 ac_cv_header_stdc=no
29510 if test $ac_cv_header_stdc = yes; then
29511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29512 if test "$cross_compiling" = yes; then
29515 cat >conftest.$ac_ext <<_ACEOF
29518 cat confdefs.h >>conftest.$ac_ext
29519 cat >>conftest.$ac_ext <<_ACEOF
29520 /* end confdefs.h. */
29522 #include <stdlib.h>
29523 #if ((' ' & 0x0FF) == 0x020)
29524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29527 # define ISLOWER(c) \
29528 (('a' <= (c) && (c) <= 'i') \
29529 || ('j' <= (c) && (c) <= 'r') \
29530 || ('s' <= (c) && (c) <= 'z'))
29531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29539 for (i = 0; i < 256; i++)
29540 if (XOR (islower (i), ISLOWER (i))
29541 || toupper (i) != TOUPPER (i))
29546 rm -f conftest$ac_exeext
29547 if { (ac_try="$ac_link"
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_link") 2>&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29557 { (case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_try") 2>&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; }; then
29568 echo "$as_me: program exited with status $ac_status" >&5
29569 echo "$as_me: failed program was:" >&5
29570 sed 's/^/| /' conftest.$ac_ext >&5
29572 ( exit $ac_status )
29573 ac_cv_header_stdc=no
29575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29581 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29582 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29583 if test $ac_cv_header_stdc = yes; then
29585 cat >>confdefs.h <<\_ACEOF
29586 #define STDC_HEADERS 1
29591 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29592 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29593 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29594 echo $ECHO_N "(cached) $ECHO_C" >&6
29596 cat >conftest.$ac_ext <<_ACEOF
29599 cat confdefs.h >>conftest.$ac_ext
29600 cat >>conftest.$ac_ext <<_ACEOF
29601 /* end confdefs.h. */
29602 #include <sys/types.h>
29603 #include <sys/wait.h>
29604 #ifndef WEXITSTATUS
29605 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29608 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29616 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29621 rm -f conftest.$ac_objext
29622 if { (ac_try="$ac_compile"
29623 case "(($ac_try" in
29624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625 *) ac_try_echo=$ac_try;;
29627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628 (eval "$ac_compile") 2>conftest.er1
29630 grep -v '^ *+' conftest.er1 >conftest.err
29632 cat conftest.err >&5
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); } &&
29635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29636 { (case "(($ac_try" in
29637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638 *) ac_try_echo=$ac_try;;
29640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641 (eval "$ac_try") 2>&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest.$ac_objext'
29646 { (case "(($ac_try" in
29647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29648 *) ac_try_echo=$ac_try;;
29650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29651 (eval "$ac_try") 2>&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; }; then
29655 ac_cv_header_sys_wait_h=yes
29657 echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.$ac_ext >&5
29660 ac_cv_header_sys_wait_h=no
29663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29665 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29666 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29667 if test $ac_cv_header_sys_wait_h = yes; then
29669 cat >>confdefs.h <<\_ACEOF
29670 #define HAVE_SYS_WAIT_H 1
29675 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29676 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29677 if test "${ac_cv_header_time+set}" = set; then
29678 echo $ECHO_N "(cached) $ECHO_C" >&6
29680 cat >conftest.$ac_ext <<_ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h. */
29686 #include <sys/types.h>
29687 #include <sys/time.h>
29693 if ((struct tm *) 0)
29699 rm -f conftest.$ac_objext
29700 if { (ac_try="$ac_compile"
29701 case "(($ac_try" in
29702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29703 *) ac_try_echo=$ac_try;;
29705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29706 (eval "$ac_compile") 2>conftest.er1
29708 grep -v '^ *+' conftest.er1 >conftest.err
29710 cat conftest.err >&5
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); } &&
29713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29714 { (case "(($ac_try" in
29715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716 *) ac_try_echo=$ac_try;;
29718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29719 (eval "$ac_try") 2>&5
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); }; } &&
29723 { ac_try='test -s conftest.$ac_objext'
29724 { (case "(($ac_try" in
29725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726 *) ac_try_echo=$ac_try;;
29728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29729 (eval "$ac_try") 2>&5
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; }; then
29733 ac_cv_header_time=yes
29735 echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29738 ac_cv_header_time=no
29741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29743 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29744 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29745 if test $ac_cv_header_time = yes; then
29747 cat >>confdefs.h <<\_ACEOF
29748 #define TIME_WITH_SYS_TIME 1
29760 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29767 echo $ECHO_N "(cached) $ECHO_C" >&6
29769 ac_res=`eval echo '${'$as_ac_Header'}'`
29770 { echo "$as_me:$LINENO: result: $ac_res" >&5
29771 echo "${ECHO_T}$ac_res" >&6; }
29773 # Is the header compilable?
29774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29776 cat >conftest.$ac_ext <<_ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h. */
29782 $ac_includes_default
29783 #include <$ac_header>
29785 rm -f conftest.$ac_objext
29786 if { (ac_try="$ac_compile"
29787 case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_compile") 2>conftest.er1
29794 grep -v '^ *+' conftest.er1 >conftest.err
29796 cat conftest.err >&5
29797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798 (exit $ac_status); } &&
29799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; } &&
29809 { ac_try='test -s conftest.$ac_objext'
29810 { (case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_try") 2>&5
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; }; then
29819 ac_header_compiler=yes
29821 echo "$as_me: failed program was:" >&5
29822 sed 's/^/| /' conftest.$ac_ext >&5
29824 ac_header_compiler=no
29827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29829 echo "${ECHO_T}$ac_header_compiler" >&6; }
29831 # Is the header present?
29832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29834 cat >conftest.$ac_ext <<_ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h. */
29840 #include <$ac_header>
29842 if { (ac_try="$ac_cpp conftest.$ac_ext"
29843 case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29850 grep -v '^ *+' conftest.er1 >conftest.err
29852 cat conftest.err >&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } >/dev/null; then
29855 if test -s conftest.err; then
29856 ac_cpp_err=$ac_c_preproc_warn_flag
29857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29864 if test -z "$ac_cpp_err"; then
29865 ac_header_preproc=yes
29867 echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.$ac_ext >&5
29870 ac_header_preproc=no
29873 rm -f conftest.err conftest.$ac_ext
29874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29875 echo "${ECHO_T}$ac_header_preproc" >&6; }
29877 # So? What about this header?
29878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29884 ac_header_preproc=yes
29887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29900 ## ----------------------------------- ##
29901 ## Report this to llvmbugs@cs.uiuc.edu ##
29902 ## ----------------------------------- ##
29904 ) | sed "s/^/$as_me: WARNING: /" >&2
29907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29912 eval "$as_ac_Header=\$ac_header_preproc"
29914 ac_res=`eval echo '${'$as_ac_Header'}'`
29915 { echo "$as_me:$LINENO: result: $ac_res" >&5
29916 echo "${ECHO_T}$ac_res" >&6; }
29919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29920 cat >>confdefs.h <<_ACEOF
29921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29934 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29941 echo $ECHO_N "(cached) $ECHO_C" >&6
29943 ac_res=`eval echo '${'$as_ac_Header'}'`
29944 { echo "$as_me:$LINENO: result: $ac_res" >&5
29945 echo "${ECHO_T}$ac_res" >&6; }
29947 # Is the header compilable?
29948 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29950 cat >conftest.$ac_ext <<_ACEOF
29953 cat confdefs.h >>conftest.$ac_ext
29954 cat >>conftest.$ac_ext <<_ACEOF
29955 /* end confdefs.h. */
29956 $ac_includes_default
29957 #include <$ac_header>
29959 rm -f conftest.$ac_objext
29960 if { (ac_try="$ac_compile"
29961 case "(($ac_try" in
29962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29963 *) ac_try_echo=$ac_try;;
29965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29966 (eval "$ac_compile") 2>conftest.er1
29968 grep -v '^ *+' conftest.er1 >conftest.err
29970 cat conftest.err >&5
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); } &&
29973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29974 { (case "(($ac_try" in
29975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976 *) ac_try_echo=$ac_try;;
29978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979 (eval "$ac_try") 2>&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest.$ac_objext'
29984 { (case "(($ac_try" in
29985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986 *) ac_try_echo=$ac_try;;
29988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989 (eval "$ac_try") 2>&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
29993 ac_header_compiler=yes
29995 echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
29998 ac_header_compiler=no
30001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30003 echo "${ECHO_T}$ac_header_compiler" >&6; }
30005 # Is the header present?
30006 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30008 cat >conftest.$ac_ext <<_ACEOF
30011 cat confdefs.h >>conftest.$ac_ext
30012 cat >>conftest.$ac_ext <<_ACEOF
30013 /* end confdefs.h. */
30014 #include <$ac_header>
30016 if { (ac_try="$ac_cpp conftest.$ac_ext"
30017 case "(($ac_try" in
30018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30019 *) ac_try_echo=$ac_try;;
30021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30024 grep -v '^ *+' conftest.er1 >conftest.err
30026 cat conftest.err >&5
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); } >/dev/null; then
30029 if test -s conftest.err; then
30030 ac_cpp_err=$ac_c_preproc_warn_flag
30031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30038 if test -z "$ac_cpp_err"; then
30039 ac_header_preproc=yes
30041 echo "$as_me: failed program was:" >&5
30042 sed 's/^/| /' conftest.$ac_ext >&5
30044 ac_header_preproc=no
30047 rm -f conftest.err conftest.$ac_ext
30048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30049 echo "${ECHO_T}$ac_header_preproc" >&6; }
30051 # So? What about this header?
30052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30058 ac_header_preproc=yes
30061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30074 ## ----------------------------------- ##
30075 ## Report this to llvmbugs@cs.uiuc.edu ##
30076 ## ----------------------------------- ##
30078 ) | sed "s/^/$as_me: WARNING: /" >&2
30081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30084 echo $ECHO_N "(cached) $ECHO_C" >&6
30086 eval "$as_ac_Header=\$ac_header_preproc"
30088 ac_res=`eval echo '${'$as_ac_Header'}'`
30089 { echo "$as_me:$LINENO: result: $ac_res" >&5
30090 echo "${ECHO_T}$ac_res" >&6; }
30093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30094 cat >>confdefs.h <<_ACEOF
30095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30104 for ac_header in utime.h windows.h
30106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30111 echo $ECHO_N "(cached) $ECHO_C" >&6
30113 ac_res=`eval echo '${'$as_ac_Header'}'`
30114 { echo "$as_me:$LINENO: result: $ac_res" >&5
30115 echo "${ECHO_T}$ac_res" >&6; }
30117 # Is the header compilable?
30118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30120 cat >conftest.$ac_ext <<_ACEOF
30123 cat confdefs.h >>conftest.$ac_ext
30124 cat >>conftest.$ac_ext <<_ACEOF
30125 /* end confdefs.h. */
30126 $ac_includes_default
30127 #include <$ac_header>
30129 rm -f conftest.$ac_objext
30130 if { (ac_try="$ac_compile"
30131 case "(($ac_try" in
30132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30133 *) ac_try_echo=$ac_try;;
30135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30136 (eval "$ac_compile") 2>conftest.er1
30138 grep -v '^ *+' conftest.er1 >conftest.err
30140 cat conftest.err >&5
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); } &&
30143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30144 { (case "(($ac_try" in
30145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30146 *) ac_try_echo=$ac_try;;
30148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30149 (eval "$ac_try") 2>&5
30151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); }; } &&
30153 { ac_try='test -s conftest.$ac_objext'
30154 { (case "(($ac_try" in
30155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156 *) ac_try_echo=$ac_try;;
30158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30159 (eval "$ac_try") 2>&5
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); }; }; then
30163 ac_header_compiler=yes
30165 echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.$ac_ext >&5
30168 ac_header_compiler=no
30171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30173 echo "${ECHO_T}$ac_header_compiler" >&6; }
30175 # Is the header present?
30176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30178 cat >conftest.$ac_ext <<_ACEOF
30181 cat confdefs.h >>conftest.$ac_ext
30182 cat >>conftest.$ac_ext <<_ACEOF
30183 /* end confdefs.h. */
30184 #include <$ac_header>
30186 if { (ac_try="$ac_cpp conftest.$ac_ext"
30187 case "(($ac_try" in
30188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189 *) ac_try_echo=$ac_try;;
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30194 grep -v '^ *+' conftest.er1 >conftest.err
30196 cat conftest.err >&5
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); } >/dev/null; then
30199 if test -s conftest.err; then
30200 ac_cpp_err=$ac_c_preproc_warn_flag
30201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30208 if test -z "$ac_cpp_err"; then
30209 ac_header_preproc=yes
30211 echo "$as_me: failed program was:" >&5
30212 sed 's/^/| /' conftest.$ac_ext >&5
30214 ac_header_preproc=no
30217 rm -f conftest.err conftest.$ac_ext
30218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30219 echo "${ECHO_T}$ac_header_preproc" >&6; }
30221 # So? What about this header?
30222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30228 ac_header_preproc=yes
30231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30244 ## ----------------------------------- ##
30245 ## Report this to llvmbugs@cs.uiuc.edu ##
30246 ## ----------------------------------- ##
30248 ) | sed "s/^/$as_me: WARNING: /" >&2
30251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30256 eval "$as_ac_Header=\$ac_header_preproc"
30258 ac_res=`eval echo '${'$as_ac_Header'}'`
30259 { echo "$as_me:$LINENO: result: $ac_res" >&5
30260 echo "${ECHO_T}$ac_res" >&6; }
30263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30264 cat >>confdefs.h <<_ACEOF
30265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30276 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30283 echo $ECHO_N "(cached) $ECHO_C" >&6
30285 ac_res=`eval echo '${'$as_ac_Header'}'`
30286 { echo "$as_me:$LINENO: result: $ac_res" >&5
30287 echo "${ECHO_T}$ac_res" >&6; }
30289 # Is the header compilable?
30290 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30292 cat >conftest.$ac_ext <<_ACEOF
30295 cat confdefs.h >>conftest.$ac_ext
30296 cat >>conftest.$ac_ext <<_ACEOF
30297 /* end confdefs.h. */
30298 $ac_includes_default
30299 #include <$ac_header>
30301 rm -f conftest.$ac_objext
30302 if { (ac_try="$ac_compile"
30303 case "(($ac_try" in
30304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305 *) ac_try_echo=$ac_try;;
30307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308 (eval "$ac_compile") 2>conftest.er1
30310 grep -v '^ *+' conftest.er1 >conftest.err
30312 cat conftest.err >&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); } &&
30315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30316 { (case "(($ac_try" in
30317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_try") 2>&5
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; } &&
30325 { ac_try='test -s conftest.$ac_objext'
30326 { (case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331 (eval "$ac_try") 2>&5
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; }; then
30335 ac_header_compiler=yes
30337 echo "$as_me: failed program was:" >&5
30338 sed 's/^/| /' conftest.$ac_ext >&5
30340 ac_header_compiler=no
30343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30345 echo "${ECHO_T}$ac_header_compiler" >&6; }
30347 # Is the header present?
30348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30350 cat >conftest.$ac_ext <<_ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h. */
30356 #include <$ac_header>
30358 if { (ac_try="$ac_cpp conftest.$ac_ext"
30359 case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30366 grep -v '^ *+' conftest.er1 >conftest.err
30368 cat conftest.err >&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } >/dev/null; then
30371 if test -s conftest.err; then
30372 ac_cpp_err=$ac_c_preproc_warn_flag
30373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30380 if test -z "$ac_cpp_err"; then
30381 ac_header_preproc=yes
30383 echo "$as_me: failed program was:" >&5
30384 sed 's/^/| /' conftest.$ac_ext >&5
30386 ac_header_preproc=no
30389 rm -f conftest.err conftest.$ac_ext
30390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30391 echo "${ECHO_T}$ac_header_preproc" >&6; }
30393 # So? What about this header?
30394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30400 ac_header_preproc=yes
30403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30416 ## ----------------------------------- ##
30417 ## Report this to llvmbugs@cs.uiuc.edu ##
30418 ## ----------------------------------- ##
30420 ) | sed "s/^/$as_me: WARNING: /" >&2
30423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30426 echo $ECHO_N "(cached) $ECHO_C" >&6
30428 eval "$as_ac_Header=\$ac_header_preproc"
30430 ac_res=`eval echo '${'$as_ac_Header'}'`
30431 { echo "$as_me:$LINENO: result: $ac_res" >&5
30432 echo "${ECHO_T}$ac_res" >&6; }
30435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30436 cat >>confdefs.h <<_ACEOF
30437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30448 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30455 echo $ECHO_N "(cached) $ECHO_C" >&6
30457 ac_res=`eval echo '${'$as_ac_Header'}'`
30458 { echo "$as_me:$LINENO: result: $ac_res" >&5
30459 echo "${ECHO_T}$ac_res" >&6; }
30461 # Is the header compilable?
30462 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30464 cat >conftest.$ac_ext <<_ACEOF
30467 cat confdefs.h >>conftest.$ac_ext
30468 cat >>conftest.$ac_ext <<_ACEOF
30469 /* end confdefs.h. */
30470 $ac_includes_default
30471 #include <$ac_header>
30473 rm -f conftest.$ac_objext
30474 if { (ac_try="$ac_compile"
30475 case "(($ac_try" in
30476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30477 *) ac_try_echo=$ac_try;;
30479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30480 (eval "$ac_compile") 2>conftest.er1
30482 grep -v '^ *+' conftest.er1 >conftest.err
30484 cat conftest.err >&5
30485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486 (exit $ac_status); } &&
30487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30488 { (case "(($ac_try" in
30489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490 *) ac_try_echo=$ac_try;;
30492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493 (eval "$ac_try") 2>&5
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); }; } &&
30497 { ac_try='test -s conftest.$ac_objext'
30498 { (case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_try") 2>&5
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; }; then
30507 ac_header_compiler=yes
30509 echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30512 ac_header_compiler=no
30515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30517 echo "${ECHO_T}$ac_header_compiler" >&6; }
30519 # Is the header present?
30520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30522 cat >conftest.$ac_ext <<_ACEOF
30525 cat confdefs.h >>conftest.$ac_ext
30526 cat >>conftest.$ac_ext <<_ACEOF
30527 /* end confdefs.h. */
30528 #include <$ac_header>
30530 if { (ac_try="$ac_cpp conftest.$ac_ext"
30531 case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30538 grep -v '^ *+' conftest.er1 >conftest.err
30540 cat conftest.err >&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); } >/dev/null; then
30543 if test -s conftest.err; then
30544 ac_cpp_err=$ac_c_preproc_warn_flag
30545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30552 if test -z "$ac_cpp_err"; then
30553 ac_header_preproc=yes
30555 echo "$as_me: failed program was:" >&5
30556 sed 's/^/| /' conftest.$ac_ext >&5
30558 ac_header_preproc=no
30561 rm -f conftest.err conftest.$ac_ext
30562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30563 echo "${ECHO_T}$ac_header_preproc" >&6; }
30565 # So? What about this header?
30566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30572 ac_header_preproc=yes
30575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30588 ## ----------------------------------- ##
30589 ## Report this to llvmbugs@cs.uiuc.edu ##
30590 ## ----------------------------------- ##
30592 ) | sed "s/^/$as_me: WARNING: /" >&2
30595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30598 echo $ECHO_N "(cached) $ECHO_C" >&6
30600 eval "$as_ac_Header=\$ac_header_preproc"
30602 ac_res=`eval echo '${'$as_ac_Header'}'`
30603 { echo "$as_me:$LINENO: result: $ac_res" >&5
30604 echo "${ECHO_T}$ac_res" >&6; }
30607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30608 cat >>confdefs.h <<_ACEOF
30609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30616 if test "$ENABLE_THREADS" -eq 1 ; then
30618 for ac_header in pthread.h
30620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30625 echo $ECHO_N "(cached) $ECHO_C" >&6
30627 ac_res=`eval echo '${'$as_ac_Header'}'`
30628 { echo "$as_me:$LINENO: result: $ac_res" >&5
30629 echo "${ECHO_T}$ac_res" >&6; }
30631 # Is the header compilable?
30632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30634 cat >conftest.$ac_ext <<_ACEOF
30637 cat confdefs.h >>conftest.$ac_ext
30638 cat >>conftest.$ac_ext <<_ACEOF
30639 /* end confdefs.h. */
30640 $ac_includes_default
30641 #include <$ac_header>
30643 rm -f conftest.$ac_objext
30644 if { (ac_try="$ac_compile"
30645 case "(($ac_try" in
30646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30647 *) ac_try_echo=$ac_try;;
30649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30650 (eval "$ac_compile") 2>conftest.er1
30652 grep -v '^ *+' conftest.er1 >conftest.err
30654 cat conftest.err >&5
30655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656 (exit $ac_status); } &&
30657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30658 { (case "(($ac_try" in
30659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30660 *) ac_try_echo=$ac_try;;
30662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30663 (eval "$ac_try") 2>&5
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); }; } &&
30667 { ac_try='test -s conftest.$ac_objext'
30668 { (case "(($ac_try" in
30669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670 *) ac_try_echo=$ac_try;;
30672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30673 (eval "$ac_try") 2>&5
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); }; }; then
30677 ac_header_compiler=yes
30679 echo "$as_me: failed program was:" >&5
30680 sed 's/^/| /' conftest.$ac_ext >&5
30682 ac_header_compiler=no
30685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30687 echo "${ECHO_T}$ac_header_compiler" >&6; }
30689 # Is the header present?
30690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30692 cat >conftest.$ac_ext <<_ACEOF
30695 cat confdefs.h >>conftest.$ac_ext
30696 cat >>conftest.$ac_ext <<_ACEOF
30697 /* end confdefs.h. */
30698 #include <$ac_header>
30700 if { (ac_try="$ac_cpp conftest.$ac_ext"
30701 case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30708 grep -v '^ *+' conftest.er1 >conftest.err
30710 cat conftest.err >&5
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); } >/dev/null; then
30713 if test -s conftest.err; then
30714 ac_cpp_err=$ac_c_preproc_warn_flag
30715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30722 if test -z "$ac_cpp_err"; then
30723 ac_header_preproc=yes
30725 echo "$as_me: failed program was:" >&5
30726 sed 's/^/| /' conftest.$ac_ext >&5
30728 ac_header_preproc=no
30731 rm -f conftest.err conftest.$ac_ext
30732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30733 echo "${ECHO_T}$ac_header_preproc" >&6; }
30735 # So? What about this header?
30736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30742 ac_header_preproc=yes
30745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30758 ## ----------------------------------- ##
30759 ## Report this to llvmbugs@cs.uiuc.edu ##
30760 ## ----------------------------------- ##
30762 ) | sed "s/^/$as_me: WARNING: /" >&2
30765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30768 echo $ECHO_N "(cached) $ECHO_C" >&6
30770 eval "$as_ac_Header=\$ac_header_preproc"
30772 ac_res=`eval echo '${'$as_ac_Header'}'`
30773 { echo "$as_me:$LINENO: result: $ac_res" >&5
30774 echo "${ECHO_T}$ac_res" >&6; }
30777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30778 cat >>confdefs.h <<_ACEOF
30779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30795 if test "$llvm_cv_enable_libffi" = "yes" ; then
30798 for ac_header in ffi.h ffi/ffi.h
30800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30805 echo $ECHO_N "(cached) $ECHO_C" >&6
30807 ac_res=`eval echo '${'$as_ac_Header'}'`
30808 { echo "$as_me:$LINENO: result: $ac_res" >&5
30809 echo "${ECHO_T}$ac_res" >&6; }
30811 # Is the header compilable?
30812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30814 cat >conftest.$ac_ext <<_ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h. */
30820 $ac_includes_default
30821 #include <$ac_header>
30823 rm -f conftest.$ac_objext
30824 if { (ac_try="$ac_compile"
30825 case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_compile") 2>conftest.er1
30832 grep -v '^ *+' conftest.er1 >conftest.err
30834 cat conftest.err >&5
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); } &&
30837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30838 { (case "(($ac_try" in
30839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840 *) ac_try_echo=$ac_try;;
30842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843 (eval "$ac_try") 2>&5
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); }; } &&
30847 { ac_try='test -s conftest.$ac_objext'
30848 { (case "(($ac_try" in
30849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850 *) ac_try_echo=$ac_try;;
30852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30853 (eval "$ac_try") 2>&5
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; }; then
30857 ac_header_compiler=yes
30859 echo "$as_me: failed program was:" >&5
30860 sed 's/^/| /' conftest.$ac_ext >&5
30862 ac_header_compiler=no
30865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30867 echo "${ECHO_T}$ac_header_compiler" >&6; }
30869 # Is the header present?
30870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30872 cat >conftest.$ac_ext <<_ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h. */
30878 #include <$ac_header>
30880 if { (ac_try="$ac_cpp conftest.$ac_ext"
30881 case "(($ac_try" in
30882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30883 *) ac_try_echo=$ac_try;;
30885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30888 grep -v '^ *+' conftest.er1 >conftest.err
30890 cat conftest.err >&5
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); } >/dev/null; then
30893 if test -s conftest.err; then
30894 ac_cpp_err=$ac_c_preproc_warn_flag
30895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30902 if test -z "$ac_cpp_err"; then
30903 ac_header_preproc=yes
30905 echo "$as_me: failed program was:" >&5
30906 sed 's/^/| /' conftest.$ac_ext >&5
30908 ac_header_preproc=no
30911 rm -f conftest.err conftest.$ac_ext
30912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30913 echo "${ECHO_T}$ac_header_preproc" >&6; }
30915 # So? What about this header?
30916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30922 ac_header_preproc=yes
30925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30938 ## ----------------------------------- ##
30939 ## Report this to llvmbugs@cs.uiuc.edu ##
30940 ## ----------------------------------- ##
30942 ) | sed "s/^/$as_me: WARNING: /" >&2
30945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30950 eval "$as_ac_Header=\$ac_header_preproc"
30952 ac_res=`eval echo '${'$as_ac_Header'}'`
30953 { echo "$as_me:$LINENO: result: $ac_res" >&5
30954 echo "${ECHO_T}$ac_res" >&6; }
30957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30958 cat >>confdefs.h <<_ACEOF
30959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30970 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30971 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30972 if test "${ac_cv_huge_val_sanity+set}" = set; then
30973 echo $ECHO_N "(cached) $ECHO_C" >&6
30977 ac_cpp='$CXXCPP $CPPFLAGS'
30978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30983 if test "$cross_compiling" = yes; then
30984 ac_cv_huge_val_sanity=yes
30986 cat >conftest.$ac_ext <<_ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h. */
30996 double x = HUGE_VAL; return x != x;
31001 rm -f conftest$ac_exeext
31002 if { (ac_try="$ac_link"
31003 case "(($ac_try" in
31004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005 *) ac_try_echo=$ac_try;;
31007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008 (eval "$ac_link") 2>&5
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31012 { (case "(($ac_try" in
31013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31014 *) ac_try_echo=$ac_try;;
31016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31017 (eval "$ac_try") 2>&5
31019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31020 (exit $ac_status); }; }; then
31021 ac_cv_huge_val_sanity=yes
31023 echo "$as_me: program exited with status $ac_status" >&5
31024 echo "$as_me: failed program was:" >&5
31025 sed 's/^/| /' conftest.$ac_ext >&5
31027 ( exit $ac_status )
31028 ac_cv_huge_val_sanity=no
31030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31035 ac_cpp='$CPP $CPPFLAGS'
31036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31042 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31043 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31044 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31047 { echo "$as_me:$LINENO: checking for pid_t" >&5
31048 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31049 if test "${ac_cv_type_pid_t+set}" = set; then
31050 echo $ECHO_N "(cached) $ECHO_C" >&6
31052 cat >conftest.$ac_ext <<_ACEOF
31055 cat confdefs.h >>conftest.$ac_ext
31056 cat >>conftest.$ac_ext <<_ACEOF
31057 /* end confdefs.h. */
31058 $ac_includes_default
31059 typedef pid_t ac__type_new_;
31063 if ((ac__type_new_ *) 0)
31065 if (sizeof (ac__type_new_))
31071 rm -f conftest.$ac_objext
31072 if { (ac_try="$ac_compile"
31073 case "(($ac_try" in
31074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075 *) ac_try_echo=$ac_try;;
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078 (eval "$ac_compile") 2>conftest.er1
31080 grep -v '^ *+' conftest.er1 >conftest.err
31082 cat conftest.err >&5
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); } &&
31085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31086 { (case "(($ac_try" in
31087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088 *) ac_try_echo=$ac_try;;
31090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31091 (eval "$ac_try") 2>&5
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); }; } &&
31095 { ac_try='test -s conftest.$ac_objext'
31096 { (case "(($ac_try" in
31097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31098 *) ac_try_echo=$ac_try;;
31100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31101 (eval "$ac_try") 2>&5
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); }; }; then
31105 ac_cv_type_pid_t=yes
31107 echo "$as_me: failed program was:" >&5
31108 sed 's/^/| /' conftest.$ac_ext >&5
31110 ac_cv_type_pid_t=no
31113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31115 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31116 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31117 if test $ac_cv_type_pid_t = yes; then
31121 cat >>confdefs.h <<_ACEOF
31127 { echo "$as_me:$LINENO: checking for size_t" >&5
31128 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31129 if test "${ac_cv_type_size_t+set}" = set; then
31130 echo $ECHO_N "(cached) $ECHO_C" >&6
31132 cat >conftest.$ac_ext <<_ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h. */
31138 $ac_includes_default
31139 typedef size_t ac__type_new_;
31143 if ((ac__type_new_ *) 0)
31145 if (sizeof (ac__type_new_))
31151 rm -f conftest.$ac_objext
31152 if { (ac_try="$ac_compile"
31153 case "(($ac_try" in
31154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31155 *) ac_try_echo=$ac_try;;
31157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31158 (eval "$ac_compile") 2>conftest.er1
31160 grep -v '^ *+' conftest.er1 >conftest.err
31162 cat conftest.err >&5
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); } &&
31165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31166 { (case "(($ac_try" in
31167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31168 *) ac_try_echo=$ac_try;;
31170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171 (eval "$ac_try") 2>&5
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; } &&
31175 { ac_try='test -s conftest.$ac_objext'
31176 { (case "(($ac_try" in
31177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31178 *) ac_try_echo=$ac_try;;
31180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181 (eval "$ac_try") 2>&5
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); }; }; then
31185 ac_cv_type_size_t=yes
31187 echo "$as_me: failed program was:" >&5
31188 sed 's/^/| /' conftest.$ac_ext >&5
31190 ac_cv_type_size_t=no
31193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31195 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31196 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31197 if test $ac_cv_type_size_t = yes; then
31201 cat >>confdefs.h <<_ACEOF
31202 #define size_t unsigned int
31207 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31208 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31209 if test "${ac_cv_type_signal+set}" = set; then
31210 echo $ECHO_N "(cached) $ECHO_C" >&6
31212 cat >conftest.$ac_ext <<_ACEOF
31215 cat confdefs.h >>conftest.$ac_ext
31216 cat >>conftest.$ac_ext <<_ACEOF
31217 /* end confdefs.h. */
31218 #include <sys/types.h>
31219 #include <signal.h>
31224 return *(signal (0, 0)) (0) == 1;
31229 rm -f conftest.$ac_objext
31230 if { (ac_try="$ac_compile"
31231 case "(($ac_try" in
31232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233 *) ac_try_echo=$ac_try;;
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236 (eval "$ac_compile") 2>conftest.er1
31238 grep -v '^ *+' conftest.er1 >conftest.err
31240 cat conftest.err >&5
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); } &&
31243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31244 { (case "(($ac_try" in
31245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246 *) ac_try_echo=$ac_try;;
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249 (eval "$ac_try") 2>&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); }; } &&
31253 { ac_try='test -s conftest.$ac_objext'
31254 { (case "(($ac_try" in
31255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256 *) ac_try_echo=$ac_try;;
31258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259 (eval "$ac_try") 2>&5
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; }; then
31263 ac_cv_type_signal=int
31265 echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31268 ac_cv_type_signal=void
31271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31273 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31274 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31276 cat >>confdefs.h <<_ACEOF
31277 #define RETSIGTYPE $ac_cv_type_signal
31281 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31282 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31283 if test "${ac_cv_struct_tm+set}" = set; then
31284 echo $ECHO_N "(cached) $ECHO_C" >&6
31286 cat >conftest.$ac_ext <<_ACEOF
31289 cat confdefs.h >>conftest.$ac_ext
31290 cat >>conftest.$ac_ext <<_ACEOF
31291 /* end confdefs.h. */
31292 #include <sys/types.h>
31298 struct tm *tp; tp->tm_sec;
31303 rm -f conftest.$ac_objext
31304 if { (ac_try="$ac_compile"
31305 case "(($ac_try" in
31306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31307 *) ac_try_echo=$ac_try;;
31309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310 (eval "$ac_compile") 2>conftest.er1
31312 grep -v '^ *+' conftest.er1 >conftest.err
31314 cat conftest.err >&5
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); } &&
31317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31318 { (case "(($ac_try" in
31319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31320 *) ac_try_echo=$ac_try;;
31322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31323 (eval "$ac_try") 2>&5
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); }; } &&
31327 { ac_try='test -s conftest.$ac_objext'
31328 { (case "(($ac_try" in
31329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330 *) ac_try_echo=$ac_try;;
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333 (eval "$ac_try") 2>&5
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); }; }; then
31337 ac_cv_struct_tm=time.h
31339 echo "$as_me: failed program was:" >&5
31340 sed 's/^/| /' conftest.$ac_ext >&5
31342 ac_cv_struct_tm=sys/time.h
31345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31347 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31348 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31349 if test $ac_cv_struct_tm = sys/time.h; then
31351 cat >>confdefs.h <<\_ACEOF
31352 #define TM_IN_SYS_TIME 1
31357 { echo "$as_me:$LINENO: checking for int64_t" >&5
31358 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31359 if test "${ac_cv_type_int64_t+set}" = set; then
31360 echo $ECHO_N "(cached) $ECHO_C" >&6
31362 cat >conftest.$ac_ext <<_ACEOF
31365 cat confdefs.h >>conftest.$ac_ext
31366 cat >>conftest.$ac_ext <<_ACEOF
31367 /* end confdefs.h. */
31368 $ac_includes_default
31369 typedef int64_t ac__type_new_;
31373 if ((ac__type_new_ *) 0)
31375 if (sizeof (ac__type_new_))
31381 rm -f conftest.$ac_objext
31382 if { (ac_try="$ac_compile"
31383 case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_compile") 2>conftest.er1
31390 grep -v '^ *+' conftest.er1 >conftest.err
31392 cat conftest.err >&5
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); } &&
31395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31396 { (case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401 (eval "$ac_try") 2>&5
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; } &&
31405 { ac_try='test -s conftest.$ac_objext'
31406 { (case "(($ac_try" in
31407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408 *) ac_try_echo=$ac_try;;
31410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411 (eval "$ac_try") 2>&5
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); }; }; then
31415 ac_cv_type_int64_t=yes
31417 echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31420 ac_cv_type_int64_t=no
31423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31425 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31426 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31427 if test $ac_cv_type_int64_t = yes; then
31429 cat >>confdefs.h <<_ACEOF
31430 #define HAVE_INT64_T 1
31435 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31436 echo "$as_me: error: Type int64_t required but not found" >&2;}
31437 { (exit 1); exit 1; }; }
31440 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31441 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31442 if test "${ac_cv_type_uint64_t+set}" = set; then
31443 echo $ECHO_N "(cached) $ECHO_C" >&6
31445 cat >conftest.$ac_ext <<_ACEOF
31448 cat confdefs.h >>conftest.$ac_ext
31449 cat >>conftest.$ac_ext <<_ACEOF
31450 /* end confdefs.h. */
31451 $ac_includes_default
31452 typedef uint64_t ac__type_new_;
31456 if ((ac__type_new_ *) 0)
31458 if (sizeof (ac__type_new_))
31464 rm -f conftest.$ac_objext
31465 if { (ac_try="$ac_compile"
31466 case "(($ac_try" in
31467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31468 *) ac_try_echo=$ac_try;;
31470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31471 (eval "$ac_compile") 2>conftest.er1
31473 grep -v '^ *+' conftest.er1 >conftest.err
31475 cat conftest.err >&5
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); } &&
31478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31479 { (case "(($ac_try" in
31480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31481 *) ac_try_echo=$ac_try;;
31483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31484 (eval "$ac_try") 2>&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; } &&
31488 { ac_try='test -s conftest.$ac_objext'
31489 { (case "(($ac_try" in
31490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31491 *) ac_try_echo=$ac_try;;
31493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31494 (eval "$ac_try") 2>&5
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); }; }; then
31498 ac_cv_type_uint64_t=yes
31500 echo "$as_me: failed program was:" >&5
31501 sed 's/^/| /' conftest.$ac_ext >&5
31503 ac_cv_type_uint64_t=no
31506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31508 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31509 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31510 if test $ac_cv_type_uint64_t = yes; then
31512 cat >>confdefs.h <<_ACEOF
31513 #define HAVE_UINT64_T 1
31518 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31519 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31520 if test "${ac_cv_type_u_int64_t+set}" = set; then
31521 echo $ECHO_N "(cached) $ECHO_C" >&6
31523 cat >conftest.$ac_ext <<_ACEOF
31526 cat confdefs.h >>conftest.$ac_ext
31527 cat >>conftest.$ac_ext <<_ACEOF
31528 /* end confdefs.h. */
31529 $ac_includes_default
31530 typedef u_int64_t ac__type_new_;
31534 if ((ac__type_new_ *) 0)
31536 if (sizeof (ac__type_new_))
31542 rm -f conftest.$ac_objext
31543 if { (ac_try="$ac_compile"
31544 case "(($ac_try" in
31545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31546 *) ac_try_echo=$ac_try;;
31548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31549 (eval "$ac_compile") 2>conftest.er1
31551 grep -v '^ *+' conftest.er1 >conftest.err
31553 cat conftest.err >&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); } &&
31556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31557 { (case "(($ac_try" in
31558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559 *) ac_try_echo=$ac_try;;
31561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562 (eval "$ac_try") 2>&5
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; } &&
31566 { ac_try='test -s conftest.$ac_objext'
31567 { (case "(($ac_try" in
31568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31569 *) ac_try_echo=$ac_try;;
31571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31572 (eval "$ac_try") 2>&5
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; }; then
31576 ac_cv_type_u_int64_t=yes
31578 echo "$as_me: failed program was:" >&5
31579 sed 's/^/| /' conftest.$ac_ext >&5
31581 ac_cv_type_u_int64_t=no
31584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31586 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31587 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31588 if test $ac_cv_type_u_int64_t = yes; then
31590 cat >>confdefs.h <<_ACEOF
31591 #define HAVE_U_INT64_T 1
31596 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31597 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31598 { (exit 1); exit 1; }; }
31612 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31618 echo $ECHO_N "(cached) $ECHO_C" >&6
31620 cat >conftest.$ac_ext <<_ACEOF
31623 cat confdefs.h >>conftest.$ac_ext
31624 cat >>conftest.$ac_ext <<_ACEOF
31625 /* end confdefs.h. */
31626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31628 #define $ac_func innocuous_$ac_func
31630 /* System header to define __stub macros and hopefully few prototypes,
31631 which can conflict with char $ac_func (); below.
31632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31633 <limits.h> exists even on freestanding compilers. */
31636 # include <limits.h>
31638 # include <assert.h>
31643 /* Override any GCC internal prototype to avoid an error.
31644 Use char because int might match the return type of a GCC
31645 builtin and then its argument prototype would still apply. */
31650 /* The GNU C library defines this for functions which it implements
31651 to always fail with ENOSYS. Some functions are actually named
31652 something starting with __ and the normal name is an alias. */
31653 #if defined __stub_$ac_func || defined __stub___$ac_func
31660 return $ac_func ();
31665 rm -f conftest.$ac_objext conftest$ac_exeext
31666 if { (ac_try="$ac_link"
31667 case "(($ac_try" in
31668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669 *) ac_try_echo=$ac_try;;
31671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31672 (eval "$ac_link") 2>conftest.er1
31674 grep -v '^ *+' conftest.er1 >conftest.err
31676 cat conftest.err >&5
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); } &&
31679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31680 { (case "(($ac_try" in
31681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31682 *) ac_try_echo=$ac_try;;
31684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31685 (eval "$ac_try") 2>&5
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); }; } &&
31689 { ac_try='test -s conftest$ac_exeext'
31690 { (case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_try") 2>&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; }; then
31699 eval "$as_ac_var=yes"
31701 echo "$as_me: failed program was:" >&5
31702 sed 's/^/| /' conftest.$ac_ext >&5
31704 eval "$as_ac_var=no"
31707 rm -f core conftest.err conftest.$ac_objext \
31708 conftest$ac_exeext conftest.$ac_ext
31710 ac_res=`eval echo '${'$as_ac_var'}'`
31711 { echo "$as_me:$LINENO: result: $ac_res" >&5
31712 echo "${ECHO_T}$ac_res" >&6; }
31713 if test `eval echo '${'$as_ac_var'}'` = yes; then
31714 cat >>confdefs.h <<_ACEOF
31715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31725 for ac_func in powf fmodf strtof round
31727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31731 echo $ECHO_N "(cached) $ECHO_C" >&6
31733 cat >conftest.$ac_ext <<_ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h. */
31739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31741 #define $ac_func innocuous_$ac_func
31743 /* System header to define __stub macros and hopefully few prototypes,
31744 which can conflict with char $ac_func (); below.
31745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31746 <limits.h> exists even on freestanding compilers. */
31749 # include <limits.h>
31751 # include <assert.h>
31756 /* Override any GCC internal prototype to avoid an error.
31757 Use char because int might match the return type of a GCC
31758 builtin and then its argument prototype would still apply. */
31763 /* The GNU C library defines this for functions which it implements
31764 to always fail with ENOSYS. Some functions are actually named
31765 something starting with __ and the normal name is an alias. */
31766 #if defined __stub_$ac_func || defined __stub___$ac_func
31773 return $ac_func ();
31778 rm -f conftest.$ac_objext conftest$ac_exeext
31779 if { (ac_try="$ac_link"
31780 case "(($ac_try" in
31781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782 *) ac_try_echo=$ac_try;;
31784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785 (eval "$ac_link") 2>conftest.er1
31787 grep -v '^ *+' conftest.er1 >conftest.err
31789 cat conftest.err >&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); } &&
31792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31793 { (case "(($ac_try" in
31794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795 *) ac_try_echo=$ac_try;;
31797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798 (eval "$ac_try") 2>&5
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); }; } &&
31802 { ac_try='test -s conftest$ac_exeext'
31803 { (case "(($ac_try" in
31804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31805 *) ac_try_echo=$ac_try;;
31807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31808 (eval "$ac_try") 2>&5
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); }; }; then
31812 eval "$as_ac_var=yes"
31814 echo "$as_me: failed program was:" >&5
31815 sed 's/^/| /' conftest.$ac_ext >&5
31817 eval "$as_ac_var=no"
31820 rm -f core conftest.err conftest.$ac_objext \
31821 conftest$ac_exeext conftest.$ac_ext
31823 ac_res=`eval echo '${'$as_ac_var'}'`
31824 { echo "$as_me:$LINENO: result: $ac_res" >&5
31825 echo "${ECHO_T}$ac_res" >&6; }
31826 if test `eval echo '${'$as_ac_var'}'` = yes; then
31827 cat >>confdefs.h <<_ACEOF
31828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31839 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31845 echo $ECHO_N "(cached) $ECHO_C" >&6
31847 cat >conftest.$ac_ext <<_ACEOF
31850 cat confdefs.h >>conftest.$ac_ext
31851 cat >>conftest.$ac_ext <<_ACEOF
31852 /* end confdefs.h. */
31853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31855 #define $ac_func innocuous_$ac_func
31857 /* System header to define __stub macros and hopefully few prototypes,
31858 which can conflict with char $ac_func (); below.
31859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31860 <limits.h> exists even on freestanding compilers. */
31863 # include <limits.h>
31865 # include <assert.h>
31870 /* Override any GCC internal prototype to avoid an error.
31871 Use char because int might match the return type of a GCC
31872 builtin and then its argument prototype would still apply. */
31877 /* The GNU C library defines this for functions which it implements
31878 to always fail with ENOSYS. Some functions are actually named
31879 something starting with __ and the normal name is an alias. */
31880 #if defined __stub_$ac_func || defined __stub___$ac_func
31887 return $ac_func ();
31892 rm -f conftest.$ac_objext conftest$ac_exeext
31893 if { (ac_try="$ac_link"
31894 case "(($ac_try" in
31895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896 *) ac_try_echo=$ac_try;;
31898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31899 (eval "$ac_link") 2>conftest.er1
31901 grep -v '^ *+' conftest.er1 >conftest.err
31903 cat conftest.err >&5
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); } &&
31906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31907 { (case "(($ac_try" in
31908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31909 *) ac_try_echo=$ac_try;;
31911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31912 (eval "$ac_try") 2>&5
31914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915 (exit $ac_status); }; } &&
31916 { ac_try='test -s conftest$ac_exeext'
31917 { (case "(($ac_try" in
31918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919 *) ac_try_echo=$ac_try;;
31921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922 (eval "$ac_try") 2>&5
31924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925 (exit $ac_status); }; }; then
31926 eval "$as_ac_var=yes"
31928 echo "$as_me: failed program was:" >&5
31929 sed 's/^/| /' conftest.$ac_ext >&5
31931 eval "$as_ac_var=no"
31934 rm -f core conftest.err conftest.$ac_objext \
31935 conftest$ac_exeext conftest.$ac_ext
31937 ac_res=`eval echo '${'$as_ac_var'}'`
31938 { echo "$as_me:$LINENO: result: $ac_res" >&5
31939 echo "${ECHO_T}$ac_res" >&6; }
31940 if test `eval echo '${'$as_ac_var'}'` = yes; then
31941 cat >>confdefs.h <<_ACEOF
31942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31951 for ac_func in isatty mkdtemp mkstemp
31953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31957 echo $ECHO_N "(cached) $ECHO_C" >&6
31959 cat >conftest.$ac_ext <<_ACEOF
31962 cat confdefs.h >>conftest.$ac_ext
31963 cat >>conftest.$ac_ext <<_ACEOF
31964 /* end confdefs.h. */
31965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31967 #define $ac_func innocuous_$ac_func
31969 /* System header to define __stub macros and hopefully few prototypes,
31970 which can conflict with char $ac_func (); below.
31971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31972 <limits.h> exists even on freestanding compilers. */
31975 # include <limits.h>
31977 # include <assert.h>
31982 /* Override any GCC internal prototype to avoid an error.
31983 Use char because int might match the return type of a GCC
31984 builtin and then its argument prototype would still apply. */
31989 /* The GNU C library defines this for functions which it implements
31990 to always fail with ENOSYS. Some functions are actually named
31991 something starting with __ and the normal name is an alias. */
31992 #if defined __stub_$ac_func || defined __stub___$ac_func
31999 return $ac_func ();
32004 rm -f conftest.$ac_objext conftest$ac_exeext
32005 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
32013 grep -v '^ *+' conftest.er1 >conftest.err
32015 cat conftest.err >&5
32016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017 (exit $ac_status); } &&
32018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32019 { (case "(($ac_try" in
32020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32021 *) ac_try_echo=$ac_try;;
32023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32024 (eval "$ac_try") 2>&5
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); }; } &&
32028 { ac_try='test -s conftest$ac_exeext'
32029 { (case "(($ac_try" in
32030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32031 *) ac_try_echo=$ac_try;;
32033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32034 (eval "$ac_try") 2>&5
32036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32037 (exit $ac_status); }; }; then
32038 eval "$as_ac_var=yes"
32040 echo "$as_me: failed program was:" >&5
32041 sed 's/^/| /' conftest.$ac_ext >&5
32043 eval "$as_ac_var=no"
32046 rm -f core conftest.err conftest.$ac_objext \
32047 conftest$ac_exeext conftest.$ac_ext
32049 ac_res=`eval echo '${'$as_ac_var'}'`
32050 { echo "$as_me:$LINENO: result: $ac_res" >&5
32051 echo "${ECHO_T}$ac_res" >&6; }
32052 if test `eval echo '${'$as_ac_var'}'` = yes; then
32053 cat >>confdefs.h <<_ACEOF
32054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32065 for ac_func in mktemp realpath sbrk setrlimit strdup
32067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32071 echo $ECHO_N "(cached) $ECHO_C" >&6
32073 cat >conftest.$ac_ext <<_ACEOF
32076 cat confdefs.h >>conftest.$ac_ext
32077 cat >>conftest.$ac_ext <<_ACEOF
32078 /* end confdefs.h. */
32079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32081 #define $ac_func innocuous_$ac_func
32083 /* System header to define __stub macros and hopefully few prototypes,
32084 which can conflict with char $ac_func (); below.
32085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32086 <limits.h> exists even on freestanding compilers. */
32089 # include <limits.h>
32091 # include <assert.h>
32096 /* Override any GCC internal prototype to avoid an error.
32097 Use char because int might match the return type of a GCC
32098 builtin and then its argument prototype would still apply. */
32103 /* The GNU C library defines this for functions which it implements
32104 to always fail with ENOSYS. Some functions are actually named
32105 something starting with __ and the normal name is an alias. */
32106 #if defined __stub_$ac_func || defined __stub___$ac_func
32113 return $ac_func ();
32118 rm -f conftest.$ac_objext conftest$ac_exeext
32119 if { (ac_try="$ac_link"
32120 case "(($ac_try" in
32121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32122 *) ac_try_echo=$ac_try;;
32124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32125 (eval "$ac_link") 2>conftest.er1
32127 grep -v '^ *+' conftest.er1 >conftest.err
32129 cat conftest.err >&5
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); } &&
32132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32133 { (case "(($ac_try" in
32134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32135 *) ac_try_echo=$ac_try;;
32137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32138 (eval "$ac_try") 2>&5
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); }; } &&
32142 { ac_try='test -s conftest$ac_exeext'
32143 { (case "(($ac_try" in
32144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145 *) ac_try_echo=$ac_try;;
32147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148 (eval "$ac_try") 2>&5
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); }; }; then
32152 eval "$as_ac_var=yes"
32154 echo "$as_me: failed program was:" >&5
32155 sed 's/^/| /' conftest.$ac_ext >&5
32157 eval "$as_ac_var=no"
32160 rm -f core conftest.err conftest.$ac_objext \
32161 conftest$ac_exeext conftest.$ac_ext
32163 ac_res=`eval echo '${'$as_ac_var'}'`
32164 { echo "$as_me:$LINENO: result: $ac_res" >&5
32165 echo "${ECHO_T}$ac_res" >&6; }
32166 if test `eval echo '${'$as_ac_var'}'` = yes; then
32167 cat >>confdefs.h <<_ACEOF
32168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32178 for ac_func in strerror strerror_r strerror_s setenv
32180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32184 echo $ECHO_N "(cached) $ECHO_C" >&6
32186 cat >conftest.$ac_ext <<_ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h. */
32192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32194 #define $ac_func innocuous_$ac_func
32196 /* System header to define __stub macros and hopefully few prototypes,
32197 which can conflict with char $ac_func (); below.
32198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199 <limits.h> exists even on freestanding compilers. */
32202 # include <limits.h>
32204 # include <assert.h>
32209 /* Override any GCC internal prototype to avoid an error.
32210 Use char because int might match the return type of a GCC
32211 builtin and then its argument prototype would still apply. */
32216 /* The GNU C library defines this for functions which it implements
32217 to always fail with ENOSYS. Some functions are actually named
32218 something starting with __ and the normal name is an alias. */
32219 #if defined __stub_$ac_func || defined __stub___$ac_func
32226 return $ac_func ();
32231 rm -f conftest.$ac_objext conftest$ac_exeext
32232 if { (ac_try="$ac_link"
32233 case "(($ac_try" in
32234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238 (eval "$ac_link") 2>conftest.er1
32240 grep -v '^ *+' conftest.er1 >conftest.err
32242 cat conftest.err >&5
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); } &&
32245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32246 { (case "(($ac_try" in
32247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248 *) ac_try_echo=$ac_try;;
32250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251 (eval "$ac_try") 2>&5
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); }; } &&
32255 { ac_try='test -s conftest$ac_exeext'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; }; then
32265 eval "$as_ac_var=yes"
32267 echo "$as_me: failed program was:" >&5
32268 sed 's/^/| /' conftest.$ac_ext >&5
32270 eval "$as_ac_var=no"
32273 rm -f core conftest.err conftest.$ac_objext \
32274 conftest$ac_exeext conftest.$ac_ext
32276 ac_res=`eval echo '${'$as_ac_var'}'`
32277 { echo "$as_me:$LINENO: result: $ac_res" >&5
32278 echo "${ECHO_T}$ac_res" >&6; }
32279 if test `eval echo '${'$as_ac_var'}'` = yes; then
32280 cat >>confdefs.h <<_ACEOF
32281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32291 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32297 echo $ECHO_N "(cached) $ECHO_C" >&6
32299 cat >conftest.$ac_ext <<_ACEOF
32302 cat confdefs.h >>conftest.$ac_ext
32303 cat >>conftest.$ac_ext <<_ACEOF
32304 /* end confdefs.h. */
32305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32307 #define $ac_func innocuous_$ac_func
32309 /* System header to define __stub macros and hopefully few prototypes,
32310 which can conflict with char $ac_func (); below.
32311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32312 <limits.h> exists even on freestanding compilers. */
32315 # include <limits.h>
32317 # include <assert.h>
32322 /* Override any GCC internal prototype to avoid an error.
32323 Use char because int might match the return type of a GCC
32324 builtin and then its argument prototype would still apply. */
32329 /* The GNU C library defines this for functions which it implements
32330 to always fail with ENOSYS. Some functions are actually named
32331 something starting with __ and the normal name is an alias. */
32332 #if defined __stub_$ac_func || defined __stub___$ac_func
32339 return $ac_func ();
32344 rm -f conftest.$ac_objext conftest$ac_exeext
32345 if { (ac_try="$ac_link"
32346 case "(($ac_try" in
32347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348 *) ac_try_echo=$ac_try;;
32350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351 (eval "$ac_link") 2>conftest.er1
32353 grep -v '^ *+' conftest.er1 >conftest.err
32355 cat conftest.err >&5
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); } &&
32358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32359 { (case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_try") 2>&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; } &&
32368 { ac_try='test -s conftest$ac_exeext'
32369 { (case "(($ac_try" in
32370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371 *) ac_try_echo=$ac_try;;
32373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32374 (eval "$ac_try") 2>&5
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); }; }; then
32378 eval "$as_ac_var=yes"
32380 echo "$as_me: failed program was:" >&5
32381 sed 's/^/| /' conftest.$ac_ext >&5
32383 eval "$as_ac_var=no"
32386 rm -f core conftest.err conftest.$ac_objext \
32387 conftest$ac_exeext conftest.$ac_ext
32389 ac_res=`eval echo '${'$as_ac_var'}'`
32390 { echo "$as_me:$LINENO: result: $ac_res" >&5
32391 echo "${ECHO_T}$ac_res" >&6; }
32392 if test `eval echo '${'$as_ac_var'}'` = yes; then
32393 cat >>confdefs.h <<_ACEOF
32394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32404 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32410 echo $ECHO_N "(cached) $ECHO_C" >&6
32412 cat >conftest.$ac_ext <<_ACEOF
32415 cat confdefs.h >>conftest.$ac_ext
32416 cat >>conftest.$ac_ext <<_ACEOF
32417 /* end confdefs.h. */
32418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32420 #define $ac_func innocuous_$ac_func
32422 /* System header to define __stub macros and hopefully few prototypes,
32423 which can conflict with char $ac_func (); below.
32424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32425 <limits.h> exists even on freestanding compilers. */
32428 # include <limits.h>
32430 # include <assert.h>
32435 /* Override any GCC internal prototype to avoid an error.
32436 Use char because int might match the return type of a GCC
32437 builtin and then its argument prototype would still apply. */
32442 /* The GNU C library defines this for functions which it implements
32443 to always fail with ENOSYS. Some functions are actually named
32444 something starting with __ and the normal name is an alias. */
32445 #if defined __stub_$ac_func || defined __stub___$ac_func
32452 return $ac_func ();
32457 rm -f conftest.$ac_objext conftest$ac_exeext
32458 if { (ac_try="$ac_link"
32459 case "(($ac_try" in
32460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32461 *) ac_try_echo=$ac_try;;
32463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464 (eval "$ac_link") 2>conftest.er1
32466 grep -v '^ *+' conftest.er1 >conftest.err
32468 cat conftest.err >&5
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); } &&
32471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32472 { (case "(($ac_try" in
32473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474 *) ac_try_echo=$ac_try;;
32476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32477 (eval "$ac_try") 2>&5
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; } &&
32481 { ac_try='test -s conftest$ac_exeext'
32482 { (case "(($ac_try" in
32483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32484 *) ac_try_echo=$ac_try;;
32486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487 (eval "$ac_try") 2>&5
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); }; }; then
32491 eval "$as_ac_var=yes"
32493 echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32496 eval "$as_ac_var=no"
32499 rm -f core conftest.err conftest.$ac_objext \
32500 conftest$ac_exeext conftest.$ac_ext
32502 ac_res=`eval echo '${'$as_ac_var'}'`
32503 { echo "$as_me:$LINENO: result: $ac_res" >&5
32504 echo "${ECHO_T}$ac_res" >&6; }
32505 if test `eval echo '${'$as_ac_var'}'` = yes; then
32506 cat >>confdefs.h <<_ACEOF
32507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32513 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32514 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32515 if test "${llvm_cv_c_printf_a+set}" = set; then
32516 echo $ECHO_N "(cached) $ECHO_C" >&6
32519 ac_cpp='$CPP $CPPFLAGS'
32520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32524 if test "$cross_compiling" = yes; then
32525 llvmac_cv_c_printf_a=no
32527 cat >conftest.$ac_ext <<_ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h. */
32536 #include <stdlib.h>
32542 volatile double A, B;
32546 sprintf(Buffer, "%a", A);
32550 if (A != 0x1.999999999999ap-4)
32557 rm -f conftest$ac_exeext
32558 if { (ac_try="$ac_link"
32559 case "(($ac_try" in
32560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32561 *) ac_try_echo=$ac_try;;
32563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32564 (eval "$ac_link") 2>&5
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32568 { (case "(($ac_try" in
32569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32570 *) ac_try_echo=$ac_try;;
32572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32573 (eval "$ac_try") 2>&5
32575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32576 (exit $ac_status); }; }; then
32577 llvm_cv_c_printf_a=yes
32579 echo "$as_me: program exited with status $ac_status" >&5
32580 echo "$as_me: failed program was:" >&5
32581 sed 's/^/| /' conftest.$ac_ext >&5
32583 ( exit $ac_status )
32584 llvmac_cv_c_printf_a=no
32586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32591 ac_cpp='$CPP $CPPFLAGS'
32592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32597 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32598 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32599 if test "$llvm_cv_c_printf_a" = "yes"; then
32601 cat >>confdefs.h <<\_ACEOF
32602 #define HAVE_PRINTF_A 1
32607 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32608 # for constant arguments. Useless!
32609 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32610 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32611 if test "${ac_cv_working_alloca_h+set}" = set; then
32612 echo $ECHO_N "(cached) $ECHO_C" >&6
32614 cat >conftest.$ac_ext <<_ACEOF
32617 cat confdefs.h >>conftest.$ac_ext
32618 cat >>conftest.$ac_ext <<_ACEOF
32619 /* end confdefs.h. */
32620 #include <alloca.h>
32624 char *p = (char *) alloca (2 * sizeof (int));
32630 rm -f conftest.$ac_objext conftest$ac_exeext
32631 if { (ac_try="$ac_link"
32632 case "(($ac_try" in
32633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634 *) ac_try_echo=$ac_try;;
32636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637 (eval "$ac_link") 2>conftest.er1
32639 grep -v '^ *+' conftest.er1 >conftest.err
32641 cat conftest.err >&5
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); } &&
32644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32645 { (case "(($ac_try" in
32646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647 *) ac_try_echo=$ac_try;;
32649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650 (eval "$ac_try") 2>&5
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); }; } &&
32654 { ac_try='test -s conftest$ac_exeext'
32655 { (case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_try") 2>&5
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); }; }; then
32664 ac_cv_working_alloca_h=yes
32666 echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32669 ac_cv_working_alloca_h=no
32672 rm -f core conftest.err conftest.$ac_objext \
32673 conftest$ac_exeext conftest.$ac_ext
32675 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32676 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32677 if test $ac_cv_working_alloca_h = yes; then
32679 cat >>confdefs.h <<\_ACEOF
32680 #define HAVE_ALLOCA_H 1
32685 { echo "$as_me:$LINENO: checking for alloca" >&5
32686 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32687 if test "${ac_cv_func_alloca_works+set}" = set; then
32688 echo $ECHO_N "(cached) $ECHO_C" >&6
32690 cat >conftest.$ac_ext <<_ACEOF
32693 cat confdefs.h >>conftest.$ac_ext
32694 cat >>conftest.$ac_ext <<_ACEOF
32695 /* end confdefs.h. */
32697 # define alloca __builtin_alloca
32700 # include <malloc.h>
32701 # define alloca _alloca
32704 # include <alloca.h>
32709 # ifndef alloca /* predefined by HP cc +Olibcalls */
32720 char *p = (char *) alloca (1);
32726 rm -f conftest.$ac_objext conftest$ac_exeext
32727 if { (ac_try="$ac_link"
32728 case "(($ac_try" in
32729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730 *) ac_try_echo=$ac_try;;
32732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32733 (eval "$ac_link") 2>conftest.er1
32735 grep -v '^ *+' conftest.er1 >conftest.err
32737 cat conftest.err >&5
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); } &&
32740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32741 { (case "(($ac_try" in
32742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32743 *) ac_try_echo=$ac_try;;
32745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32746 (eval "$ac_try") 2>&5
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 (exit $ac_status); }; } &&
32750 { ac_try='test -s conftest$ac_exeext'
32751 { (case "(($ac_try" in
32752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32753 *) ac_try_echo=$ac_try;;
32755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32756 (eval "$ac_try") 2>&5
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); }; }; then
32760 ac_cv_func_alloca_works=yes
32762 echo "$as_me: failed program was:" >&5
32763 sed 's/^/| /' conftest.$ac_ext >&5
32765 ac_cv_func_alloca_works=no
32768 rm -f core conftest.err conftest.$ac_objext \
32769 conftest$ac_exeext conftest.$ac_ext
32771 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32772 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32774 if test $ac_cv_func_alloca_works = yes; then
32776 cat >>confdefs.h <<\_ACEOF
32777 #define HAVE_ALLOCA 1
32781 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32782 # that cause trouble. Some versions do not even contain alloca or
32783 # contain a buggy version. If you still want to use their alloca,
32784 # use ar to extract alloca.o from them instead of compiling alloca.c.
32786 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32788 cat >>confdefs.h <<\_ACEOF
32793 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32794 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32795 if test "${ac_cv_os_cray+set}" = set; then
32796 echo $ECHO_N "(cached) $ECHO_C" >&6
32798 cat >conftest.$ac_ext <<_ACEOF
32801 cat confdefs.h >>conftest.$ac_ext
32802 cat >>conftest.$ac_ext <<_ACEOF
32803 /* end confdefs.h. */
32804 #if defined CRAY && ! defined CRAY2
32811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32812 $EGREP "webecray" >/dev/null 2>&1; then
32820 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32821 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32822 if test $ac_cv_os_cray = yes; then
32823 for ac_func in _getb67 GETB67 getb67; do
32824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32828 echo $ECHO_N "(cached) $ECHO_C" >&6
32830 cat >conftest.$ac_ext <<_ACEOF
32833 cat confdefs.h >>conftest.$ac_ext
32834 cat >>conftest.$ac_ext <<_ACEOF
32835 /* end confdefs.h. */
32836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32838 #define $ac_func innocuous_$ac_func
32840 /* System header to define __stub macros and hopefully few prototypes,
32841 which can conflict with char $ac_func (); below.
32842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32843 <limits.h> exists even on freestanding compilers. */
32846 # include <limits.h>
32848 # include <assert.h>
32853 /* Override any GCC internal prototype to avoid an error.
32854 Use char because int might match the return type of a GCC
32855 builtin and then its argument prototype would still apply. */
32860 /* The GNU C library defines this for functions which it implements
32861 to always fail with ENOSYS. Some functions are actually named
32862 something starting with __ and the normal name is an alias. */
32863 #if defined __stub_$ac_func || defined __stub___$ac_func
32870 return $ac_func ();
32875 rm -f conftest.$ac_objext conftest$ac_exeext
32876 if { (ac_try="$ac_link"
32877 case "(($ac_try" in
32878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879 *) ac_try_echo=$ac_try;;
32881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882 (eval "$ac_link") 2>conftest.er1
32884 grep -v '^ *+' conftest.er1 >conftest.err
32886 cat conftest.err >&5
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); } &&
32889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32890 { (case "(($ac_try" in
32891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32892 *) ac_try_echo=$ac_try;;
32894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32895 (eval "$ac_try") 2>&5
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; } &&
32899 { ac_try='test -s conftest$ac_exeext'
32900 { (case "(($ac_try" in
32901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32902 *) ac_try_echo=$ac_try;;
32904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32905 (eval "$ac_try") 2>&5
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); }; }; then
32909 eval "$as_ac_var=yes"
32911 echo "$as_me: failed program was:" >&5
32912 sed 's/^/| /' conftest.$ac_ext >&5
32914 eval "$as_ac_var=no"
32917 rm -f core conftest.err conftest.$ac_objext \
32918 conftest$ac_exeext conftest.$ac_ext
32920 ac_res=`eval echo '${'$as_ac_var'}'`
32921 { echo "$as_me:$LINENO: result: $ac_res" >&5
32922 echo "${ECHO_T}$ac_res" >&6; }
32923 if test `eval echo '${'$as_ac_var'}'` = yes; then
32925 cat >>confdefs.h <<_ACEOF
32926 #define CRAY_STACKSEG_END $ac_func
32935 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32936 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32937 if test "${ac_cv_c_stack_direction+set}" = set; then
32938 echo $ECHO_N "(cached) $ECHO_C" >&6
32940 if test "$cross_compiling" = yes; then
32941 ac_cv_c_stack_direction=0
32943 cat >conftest.$ac_ext <<_ACEOF
32946 cat confdefs.h >>conftest.$ac_ext
32947 cat >>conftest.$ac_ext <<_ACEOF
32948 /* end confdefs.h. */
32949 $ac_includes_default
32951 find_stack_direction ()
32953 static char *addr = 0;
32958 return find_stack_direction ();
32961 return (&dummy > addr) ? 1 : -1;
32967 return find_stack_direction () < 0;
32970 rm -f conftest$ac_exeext
32971 if { (ac_try="$ac_link"
32972 case "(($ac_try" in
32973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32974 *) ac_try_echo=$ac_try;;
32976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32977 (eval "$ac_link") 2>&5
32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32981 { (case "(($ac_try" in
32982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983 *) ac_try_echo=$ac_try;;
32985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986 (eval "$ac_try") 2>&5
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); }; }; then
32990 ac_cv_c_stack_direction=1
32992 echo "$as_me: program exited with status $ac_status" >&5
32993 echo "$as_me: failed program was:" >&5
32994 sed 's/^/| /' conftest.$ac_ext >&5
32996 ( exit $ac_status )
32997 ac_cv_c_stack_direction=-1
32999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33004 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33005 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33007 cat >>confdefs.h <<_ACEOF
33008 #define STACK_DIRECTION $ac_cv_c_stack_direction
33015 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33016 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33017 if test "${ac_cv_func_rand48+set}" = set; then
33018 echo $ECHO_N "(cached) $ECHO_C" >&6
33021 ac_cpp='$CXXCPP $CPPFLAGS'
33022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33026 cat >conftest.$ac_ext <<_ACEOF
33029 cat confdefs.h >>conftest.$ac_ext
33030 cat >>conftest.$ac_ext <<_ACEOF
33031 /* end confdefs.h. */
33032 #include <stdlib.h>
33036 srand48(0);lrand48();drand48();
33041 rm -f conftest.$ac_objext
33042 if { (ac_try="$ac_compile"
33043 case "(($ac_try" in
33044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33045 *) ac_try_echo=$ac_try;;
33047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33048 (eval "$ac_compile") 2>conftest.er1
33050 grep -v '^ *+' conftest.er1 >conftest.err
33052 cat conftest.err >&5
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); } &&
33055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33056 { (case "(($ac_try" in
33057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33058 *) ac_try_echo=$ac_try;;
33060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33061 (eval "$ac_try") 2>&5
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); }; } &&
33065 { ac_try='test -s conftest.$ac_objext'
33066 { (case "(($ac_try" in
33067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068 *) ac_try_echo=$ac_try;;
33070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071 (eval "$ac_try") 2>&5
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); }; }; then
33075 ac_cv_func_rand48=yes
33077 echo "$as_me: failed program was:" >&5
33078 sed 's/^/| /' conftest.$ac_ext >&5
33080 ac_cv_func_rand48=no
33083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33085 ac_cpp='$CPP $CPPFLAGS'
33086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33091 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33092 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33094 if test "$ac_cv_func_rand48" = "yes" ; then
33096 cat >>confdefs.h <<\_ACEOF
33097 #define HAVE_RAND48 1
33103 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33104 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33105 if test "${ac_cv_cxx_namespaces+set}" = set; then
33106 echo $ECHO_N "(cached) $ECHO_C" >&6
33109 ac_cpp='$CXXCPP $CPPFLAGS'
33110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33114 cat >conftest.$ac_ext <<_ACEOF
33117 cat confdefs.h >>conftest.$ac_ext
33118 cat >>conftest.$ac_ext <<_ACEOF
33119 /* end confdefs.h. */
33120 namespace Outer { namespace Inner { int i = 0; }}
33124 using namespace Outer::Inner; return i;
33129 rm -f conftest.$ac_objext
33130 if { (ac_try="$ac_compile"
33131 case "(($ac_try" in
33132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33133 *) ac_try_echo=$ac_try;;
33135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33136 (eval "$ac_compile") 2>conftest.er1
33138 grep -v '^ *+' conftest.er1 >conftest.err
33140 cat conftest.err >&5
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); } &&
33143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33144 { (case "(($ac_try" in
33145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146 *) ac_try_echo=$ac_try;;
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149 (eval "$ac_try") 2>&5
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); }; } &&
33153 { ac_try='test -s conftest.$ac_objext'
33154 { (case "(($ac_try" in
33155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33156 *) ac_try_echo=$ac_try;;
33158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33159 (eval "$ac_try") 2>&5
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; }; then
33163 ac_cv_cxx_namespaces=yes
33165 echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33168 ac_cv_cxx_namespaces=no
33171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33173 ac_cpp='$CPP $CPPFLAGS'
33174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33180 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33181 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33182 if test "$ac_cv_cxx_namespaces" = yes; then
33184 cat >>confdefs.h <<\_ACEOF
33185 #define HAVE_NAMESPACES
33190 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33191 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33192 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33193 echo $ECHO_N "(cached) $ECHO_C" >&6
33197 ac_cpp='$CXXCPP $CPPFLAGS'
33198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33202 cat >conftest.$ac_ext <<_ACEOF
33205 cat confdefs.h >>conftest.$ac_ext
33206 cat >>conftest.$ac_ext <<_ACEOF
33207 /* end confdefs.h. */
33208 #include <iterator>
33209 #ifdef HAVE_NAMESPACES
33210 using namespace std;
33215 iterator<int,int,int> t; return 0;
33220 rm -f conftest.$ac_objext
33221 if { (ac_try="$ac_compile"
33222 case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_compile") 2>conftest.er1
33229 grep -v '^ *+' conftest.er1 >conftest.err
33231 cat conftest.err >&5
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); } &&
33234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33235 { (case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_try") 2>&5
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; } &&
33244 { ac_try='test -s conftest.$ac_objext'
33245 { (case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_try") 2>&5
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; }; then
33254 ac_cv_cxx_have_std_iterator=yes
33256 echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33259 ac_cv_cxx_have_std_iterator=no
33262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33264 ac_cpp='$CPP $CPPFLAGS'
33265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33271 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33272 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33273 if test "$ac_cv_cxx_have_std_iterator" = yes
33276 cat >>confdefs.h <<\_ACEOF
33277 #define HAVE_STD_ITERATOR 1
33282 cat >>confdefs.h <<\_ACEOF
33283 #define HAVE_STD_ITERATOR 0
33288 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33289 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33290 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33291 echo $ECHO_N "(cached) $ECHO_C" >&6
33295 ac_cpp='$CXXCPP $CPPFLAGS'
33296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33300 cat >conftest.$ac_ext <<_ACEOF
33303 cat confdefs.h >>conftest.$ac_ext
33304 cat >>conftest.$ac_ext <<_ACEOF
33305 /* end confdefs.h. */
33306 #include <iterator>
33307 #ifdef HAVE_NAMESPACES
33308 using namespace std;
33313 bidirectional_iterator<int,int> t; return 0;
33318 rm -f conftest.$ac_objext
33319 if { (ac_try="$ac_compile"
33320 case "(($ac_try" in
33321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33322 *) ac_try_echo=$ac_try;;
33324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33325 (eval "$ac_compile") 2>conftest.er1
33327 grep -v '^ *+' conftest.er1 >conftest.err
33329 cat conftest.err >&5
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); } &&
33332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33333 { (case "(($ac_try" in
33334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33335 *) ac_try_echo=$ac_try;;
33337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33338 (eval "$ac_try") 2>&5
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); }; } &&
33342 { ac_try='test -s conftest.$ac_objext'
33343 { (case "(($ac_try" in
33344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33345 *) ac_try_echo=$ac_try;;
33347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33348 (eval "$ac_try") 2>&5
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); }; }; then
33352 ac_cv_cxx_have_bi_iterator=yes
33354 echo "$as_me: failed program was:" >&5
33355 sed 's/^/| /' conftest.$ac_ext >&5
33357 ac_cv_cxx_have_bi_iterator=no
33360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33362 ac_cpp='$CPP $CPPFLAGS'
33363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33369 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33370 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33371 if test "$ac_cv_cxx_have_bi_iterator" = yes
33374 cat >>confdefs.h <<\_ACEOF
33375 #define HAVE_BI_ITERATOR 1
33380 cat >>confdefs.h <<\_ACEOF
33381 #define HAVE_BI_ITERATOR 0
33386 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33387 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33388 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33389 echo $ECHO_N "(cached) $ECHO_C" >&6
33393 ac_cpp='$CXXCPP $CPPFLAGS'
33394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33398 cat >conftest.$ac_ext <<_ACEOF
33401 cat confdefs.h >>conftest.$ac_ext
33402 cat >>conftest.$ac_ext <<_ACEOF
33403 /* end confdefs.h. */
33404 #include <iterator>
33405 #ifdef HAVE_NAMESPACES
33406 using namespace std;
33411 forward_iterator<int,int> t; return 0;
33416 rm -f conftest.$ac_objext
33417 if { (ac_try="$ac_compile"
33418 case "(($ac_try" in
33419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420 *) ac_try_echo=$ac_try;;
33422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423 (eval "$ac_compile") 2>conftest.er1
33425 grep -v '^ *+' conftest.er1 >conftest.err
33427 cat conftest.err >&5
33428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429 (exit $ac_status); } &&
33430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33431 { (case "(($ac_try" in
33432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33433 *) ac_try_echo=$ac_try;;
33435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33436 (eval "$ac_try") 2>&5
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; } &&
33440 { ac_try='test -s conftest.$ac_objext'
33441 { (case "(($ac_try" in
33442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33443 *) ac_try_echo=$ac_try;;
33445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33446 (eval "$ac_try") 2>&5
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); }; }; then
33450 ac_cv_cxx_have_fwd_iterator=yes
33452 echo "$as_me: failed program was:" >&5
33453 sed 's/^/| /' conftest.$ac_ext >&5
33455 ac_cv_cxx_have_fwd_iterator=no
33458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33460 ac_cpp='$CPP $CPPFLAGS'
33461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33467 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33468 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33469 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33472 cat >>confdefs.h <<\_ACEOF
33473 #define HAVE_FWD_ITERATOR 1
33478 cat >>confdefs.h <<\_ACEOF
33479 #define HAVE_FWD_ITERATOR 0
33485 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33486 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33487 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33488 echo $ECHO_N "(cached) $ECHO_C" >&6
33491 ac_cpp='$CXXCPP $CPPFLAGS'
33492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33496 cat >conftest.$ac_ext <<_ACEOF
33499 cat confdefs.h >>conftest.$ac_ext
33500 cat >>conftest.$ac_ext <<_ACEOF
33501 /* end confdefs.h. */
33511 rm -f conftest.$ac_objext
33512 if { (ac_try="$ac_compile"
33513 case "(($ac_try" in
33514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33515 *) ac_try_echo=$ac_try;;
33517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33518 (eval "$ac_compile") 2>conftest.er1
33520 grep -v '^ *+' conftest.er1 >conftest.err
33522 cat conftest.err >&5
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); } &&
33525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33526 { (case "(($ac_try" in
33527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528 *) ac_try_echo=$ac_try;;
33530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531 (eval "$ac_try") 2>&5
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); }; } &&
33535 { ac_try='test -s conftest.$ac_objext'
33536 { (case "(($ac_try" in
33537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538 *) ac_try_echo=$ac_try;;
33540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541 (eval "$ac_try") 2>&5
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; }; then
33545 ac_cv_func_isnan_in_math_h=yes
33547 echo "$as_me: failed program was:" >&5
33548 sed 's/^/| /' conftest.$ac_ext >&5
33550 ac_cv_func_isnan_in_math_h=no
33553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33555 ac_cpp='$CPP $CPPFLAGS'
33556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33561 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33562 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33565 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33567 cat >>confdefs.h <<\_ACEOF
33568 #define HAVE_ISNAN_IN_MATH_H 1
33573 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33574 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33575 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33576 echo $ECHO_N "(cached) $ECHO_C" >&6
33579 ac_cpp='$CXXCPP $CPPFLAGS'
33580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33584 cat >conftest.$ac_ext <<_ACEOF
33587 cat confdefs.h >>conftest.$ac_ext
33588 cat >>conftest.$ac_ext <<_ACEOF
33589 /* end confdefs.h. */
33599 rm -f conftest.$ac_objext
33600 if { (ac_try="$ac_compile"
33601 case "(($ac_try" in
33602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33603 *) ac_try_echo=$ac_try;;
33605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33606 (eval "$ac_compile") 2>conftest.er1
33608 grep -v '^ *+' conftest.er1 >conftest.err
33610 cat conftest.err >&5
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); } &&
33613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33614 { (case "(($ac_try" in
33615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616 *) ac_try_echo=$ac_try;;
33618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33619 (eval "$ac_try") 2>&5
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); }; } &&
33623 { ac_try='test -s conftest.$ac_objext'
33624 { (case "(($ac_try" in
33625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33626 *) ac_try_echo=$ac_try;;
33628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33629 (eval "$ac_try") 2>&5
33631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33632 (exit $ac_status); }; }; then
33633 ac_cv_func_isnan_in_cmath=yes
33635 echo "$as_me: failed program was:" >&5
33636 sed 's/^/| /' conftest.$ac_ext >&5
33638 ac_cv_func_isnan_in_cmath=no
33641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33643 ac_cpp='$CPP $CPPFLAGS'
33644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33649 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33650 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33652 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33654 cat >>confdefs.h <<\_ACEOF
33655 #define HAVE_ISNAN_IN_CMATH 1
33660 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33661 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33662 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33663 echo $ECHO_N "(cached) $ECHO_C" >&6
33666 ac_cpp='$CXXCPP $CPPFLAGS'
33667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33671 cat >conftest.$ac_ext <<_ACEOF
33674 cat confdefs.h >>conftest.$ac_ext
33675 cat >>conftest.$ac_ext <<_ACEOF
33676 /* end confdefs.h. */
33681 float f; std::isnan(f);
33686 rm -f conftest.$ac_objext
33687 if { (ac_try="$ac_compile"
33688 case "(($ac_try" in
33689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33690 *) ac_try_echo=$ac_try;;
33692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33693 (eval "$ac_compile") 2>conftest.er1
33695 grep -v '^ *+' conftest.er1 >conftest.err
33697 cat conftest.err >&5
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); } &&
33700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33701 { (case "(($ac_try" in
33702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33703 *) ac_try_echo=$ac_try;;
33705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33706 (eval "$ac_try") 2>&5
33708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709 (exit $ac_status); }; } &&
33710 { ac_try='test -s conftest.$ac_objext'
33711 { (case "(($ac_try" in
33712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33713 *) ac_try_echo=$ac_try;;
33715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33716 (eval "$ac_try") 2>&5
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; }; then
33720 ac_cv_func_std_isnan_in_cmath=yes
33722 echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33725 ac_cv_func_std_isnan_in_cmath=no
33728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33730 ac_cpp='$CPP $CPPFLAGS'
33731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33736 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33737 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33739 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33741 cat >>confdefs.h <<\_ACEOF
33742 #define HAVE_STD_ISNAN_IN_CMATH 1
33748 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33749 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33750 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33751 echo $ECHO_N "(cached) $ECHO_C" >&6
33754 ac_cpp='$CXXCPP $CPPFLAGS'
33755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33759 cat >conftest.$ac_ext <<_ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h. */
33774 rm -f conftest.$ac_objext
33775 if { (ac_try="$ac_compile"
33776 case "(($ac_try" in
33777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33778 *) ac_try_echo=$ac_try;;
33780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33781 (eval "$ac_compile") 2>conftest.er1
33783 grep -v '^ *+' conftest.er1 >conftest.err
33785 cat conftest.err >&5
33786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787 (exit $ac_status); } &&
33788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33789 { (case "(($ac_try" in
33790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33791 *) ac_try_echo=$ac_try;;
33793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33794 (eval "$ac_try") 2>&5
33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); }; } &&
33798 { ac_try='test -s conftest.$ac_objext'
33799 { (case "(($ac_try" in
33800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33801 *) ac_try_echo=$ac_try;;
33803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33804 (eval "$ac_try") 2>&5
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; }; then
33808 ac_cv_func_isinf_in_math_h=yes
33810 echo "$as_me: failed program was:" >&5
33811 sed 's/^/| /' conftest.$ac_ext >&5
33813 ac_cv_func_isinf_in_math_h=no
33816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33818 ac_cpp='$CPP $CPPFLAGS'
33819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33824 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33825 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33827 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33829 cat >>confdefs.h <<\_ACEOF
33830 #define HAVE_ISINF_IN_MATH_H 1
33835 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33836 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33837 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33841 ac_cpp='$CXXCPP $CPPFLAGS'
33842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33846 cat >conftest.$ac_ext <<_ACEOF
33849 cat confdefs.h >>conftest.$ac_ext
33850 cat >>conftest.$ac_ext <<_ACEOF
33851 /* end confdefs.h. */
33861 rm -f conftest.$ac_objext
33862 if { (ac_try="$ac_compile"
33863 case "(($ac_try" in
33864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33865 *) ac_try_echo=$ac_try;;
33867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33868 (eval "$ac_compile") 2>conftest.er1
33870 grep -v '^ *+' conftest.er1 >conftest.err
33872 cat conftest.err >&5
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); } &&
33875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33876 { (case "(($ac_try" in
33877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33878 *) ac_try_echo=$ac_try;;
33880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33881 (eval "$ac_try") 2>&5
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); }; } &&
33885 { ac_try='test -s conftest.$ac_objext'
33886 { (case "(($ac_try" in
33887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33888 *) ac_try_echo=$ac_try;;
33890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33891 (eval "$ac_try") 2>&5
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); }; }; then
33895 ac_cv_func_isinf_in_cmath=yes
33897 echo "$as_me: failed program was:" >&5
33898 sed 's/^/| /' conftest.$ac_ext >&5
33900 ac_cv_func_isinf_in_cmath=no
33903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33905 ac_cpp='$CPP $CPPFLAGS'
33906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33911 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33912 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33914 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33916 cat >>confdefs.h <<\_ACEOF
33917 #define HAVE_ISINF_IN_CMATH 1
33922 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33923 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33924 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33925 echo $ECHO_N "(cached) $ECHO_C" >&6
33928 ac_cpp='$CXXCPP $CPPFLAGS'
33929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33933 cat >conftest.$ac_ext <<_ACEOF
33936 cat confdefs.h >>conftest.$ac_ext
33937 cat >>conftest.$ac_ext <<_ACEOF
33938 /* end confdefs.h. */
33943 float f; std::isinf(f)}
33948 rm -f conftest.$ac_objext
33949 if { (ac_try="$ac_compile"
33950 case "(($ac_try" in
33951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952 *) ac_try_echo=$ac_try;;
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955 (eval "$ac_compile") 2>conftest.er1
33957 grep -v '^ *+' conftest.er1 >conftest.err
33959 cat conftest.err >&5
33960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961 (exit $ac_status); } &&
33962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33963 { (case "(($ac_try" in
33964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33965 *) ac_try_echo=$ac_try;;
33967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33968 (eval "$ac_try") 2>&5
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); }; } &&
33972 { ac_try='test -s conftest.$ac_objext'
33973 { (case "(($ac_try" in
33974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975 *) ac_try_echo=$ac_try;;
33977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33978 (eval "$ac_try") 2>&5
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; }; then
33982 ac_cv_func_std_isinf_in_cmath=yes
33984 echo "$as_me: failed program was:" >&5
33985 sed 's/^/| /' conftest.$ac_ext >&5
33987 ac_cv_func_std_isinf_in_cmath=no
33990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33992 ac_cpp='$CPP $CPPFLAGS'
33993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33998 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33999 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34001 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34003 cat >>confdefs.h <<\_ACEOF
34004 #define HAVE_STD_ISINF_IN_CMATH 1
34009 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34010 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34011 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34012 echo $ECHO_N "(cached) $ECHO_C" >&6
34015 ac_cpp='$CXXCPP $CPPFLAGS'
34016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34020 cat >conftest.$ac_ext <<_ACEOF
34023 cat confdefs.h >>conftest.$ac_ext
34024 cat >>conftest.$ac_ext <<_ACEOF
34025 /* end confdefs.h. */
34026 #include <ieeefp.h>
34030 float f; finite(f);
34035 rm -f conftest.$ac_objext
34036 if { (ac_try="$ac_compile"
34037 case "(($ac_try" in
34038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34039 *) ac_try_echo=$ac_try;;
34041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34042 (eval "$ac_compile") 2>conftest.er1
34044 grep -v '^ *+' conftest.er1 >conftest.err
34046 cat conftest.err >&5
34047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048 (exit $ac_status); } &&
34049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34050 { (case "(($ac_try" in
34051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34052 *) ac_try_echo=$ac_try;;
34054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34055 (eval "$ac_try") 2>&5
34057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); }; } &&
34059 { ac_try='test -s conftest.$ac_objext'
34060 { (case "(($ac_try" in
34061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34062 *) ac_try_echo=$ac_try;;
34064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34065 (eval "$ac_try") 2>&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); }; }; then
34069 ac_cv_func_finite_in_ieeefp_h=yes
34071 echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34074 ac_cv_func_finite_in_ieeefp_h=no
34077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34079 ac_cpp='$CPP $CPPFLAGS'
34080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34085 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34086 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34088 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34090 cat >>confdefs.h <<\_ACEOF
34091 #define HAVE_FINITE_IN_IEEEFP_H 1
34098 if test "$llvm_cv_platform_type" = "Unix" ; then
34101 for ac_header in stdlib.h unistd.h
34103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34108 echo $ECHO_N "(cached) $ECHO_C" >&6
34110 ac_res=`eval echo '${'$as_ac_Header'}'`
34111 { echo "$as_me:$LINENO: result: $ac_res" >&5
34112 echo "${ECHO_T}$ac_res" >&6; }
34114 # Is the header compilable?
34115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34117 cat >conftest.$ac_ext <<_ACEOF
34120 cat confdefs.h >>conftest.$ac_ext
34121 cat >>conftest.$ac_ext <<_ACEOF
34122 /* end confdefs.h. */
34123 $ac_includes_default
34124 #include <$ac_header>
34126 rm -f conftest.$ac_objext
34127 if { (ac_try="$ac_compile"
34128 case "(($ac_try" in
34129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34130 *) ac_try_echo=$ac_try;;
34132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34133 (eval "$ac_compile") 2>conftest.er1
34135 grep -v '^ *+' conftest.er1 >conftest.err
34137 cat conftest.err >&5
34138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139 (exit $ac_status); } &&
34140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34141 { (case "(($ac_try" in
34142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34143 *) ac_try_echo=$ac_try;;
34145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34146 (eval "$ac_try") 2>&5
34148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149 (exit $ac_status); }; } &&
34150 { ac_try='test -s conftest.$ac_objext'
34151 { (case "(($ac_try" in
34152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34153 *) ac_try_echo=$ac_try;;
34155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34156 (eval "$ac_try") 2>&5
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); }; }; then
34160 ac_header_compiler=yes
34162 echo "$as_me: failed program was:" >&5
34163 sed 's/^/| /' conftest.$ac_ext >&5
34165 ac_header_compiler=no
34168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34170 echo "${ECHO_T}$ac_header_compiler" >&6; }
34172 # Is the header present?
34173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34175 cat >conftest.$ac_ext <<_ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h. */
34181 #include <$ac_header>
34183 if { (ac_try="$ac_cpp conftest.$ac_ext"
34184 case "(($ac_try" in
34185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186 *) ac_try_echo=$ac_try;;
34188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34191 grep -v '^ *+' conftest.er1 >conftest.err
34193 cat conftest.err >&5
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195 (exit $ac_status); } >/dev/null; then
34196 if test -s conftest.err; then
34197 ac_cpp_err=$ac_c_preproc_warn_flag
34198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34205 if test -z "$ac_cpp_err"; then
34206 ac_header_preproc=yes
34208 echo "$as_me: failed program was:" >&5
34209 sed 's/^/| /' conftest.$ac_ext >&5
34211 ac_header_preproc=no
34214 rm -f conftest.err conftest.$ac_ext
34215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34216 echo "${ECHO_T}$ac_header_preproc" >&6; }
34218 # So? What about this header?
34219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34225 ac_header_preproc=yes
34228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34241 ## ----------------------------------- ##
34242 ## Report this to llvmbugs@cs.uiuc.edu ##
34243 ## ----------------------------------- ##
34245 ) | sed "s/^/$as_me: WARNING: /" >&2
34248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34251 echo $ECHO_N "(cached) $ECHO_C" >&6
34253 eval "$as_ac_Header=\$ac_header_preproc"
34255 ac_res=`eval echo '${'$as_ac_Header'}'`
34256 { echo "$as_me:$LINENO: result: $ac_res" >&5
34257 echo "${ECHO_T}$ac_res" >&6; }
34260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34261 cat >>confdefs.h <<_ACEOF
34262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34270 for ac_func in getpagesize
34272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34276 echo $ECHO_N "(cached) $ECHO_C" >&6
34278 cat >conftest.$ac_ext <<_ACEOF
34281 cat confdefs.h >>conftest.$ac_ext
34282 cat >>conftest.$ac_ext <<_ACEOF
34283 /* end confdefs.h. */
34284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34286 #define $ac_func innocuous_$ac_func
34288 /* System header to define __stub macros and hopefully few prototypes,
34289 which can conflict with char $ac_func (); below.
34290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34291 <limits.h> exists even on freestanding compilers. */
34294 # include <limits.h>
34296 # include <assert.h>
34301 /* Override any GCC internal prototype to avoid an error.
34302 Use char because int might match the return type of a GCC
34303 builtin and then its argument prototype would still apply. */
34308 /* The GNU C library defines this for functions which it implements
34309 to always fail with ENOSYS. Some functions are actually named
34310 something starting with __ and the normal name is an alias. */
34311 #if defined __stub_$ac_func || defined __stub___$ac_func
34318 return $ac_func ();
34323 rm -f conftest.$ac_objext conftest$ac_exeext
34324 if { (ac_try="$ac_link"
34325 case "(($ac_try" in
34326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34327 *) ac_try_echo=$ac_try;;
34329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34330 (eval "$ac_link") 2>conftest.er1
34332 grep -v '^ *+' conftest.er1 >conftest.err
34334 cat conftest.err >&5
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); } &&
34337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34338 { (case "(($ac_try" in
34339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34340 *) ac_try_echo=$ac_try;;
34342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34343 (eval "$ac_try") 2>&5
34345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346 (exit $ac_status); }; } &&
34347 { ac_try='test -s conftest$ac_exeext'
34348 { (case "(($ac_try" in
34349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34350 *) ac_try_echo=$ac_try;;
34352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34353 (eval "$ac_try") 2>&5
34355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356 (exit $ac_status); }; }; then
34357 eval "$as_ac_var=yes"
34359 echo "$as_me: failed program was:" >&5
34360 sed 's/^/| /' conftest.$ac_ext >&5
34362 eval "$as_ac_var=no"
34365 rm -f core conftest.err conftest.$ac_objext \
34366 conftest$ac_exeext conftest.$ac_ext
34368 ac_res=`eval echo '${'$as_ac_var'}'`
34369 { echo "$as_me:$LINENO: result: $ac_res" >&5
34370 echo "${ECHO_T}$ac_res" >&6; }
34371 if test `eval echo '${'$as_ac_var'}'` = yes; then
34372 cat >>confdefs.h <<_ACEOF
34373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34379 { echo "$as_me:$LINENO: checking for working mmap" >&5
34380 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34381 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34382 echo $ECHO_N "(cached) $ECHO_C" >&6
34384 if test "$cross_compiling" = yes; then
34385 ac_cv_func_mmap_fixed_mapped=no
34387 cat >conftest.$ac_ext <<_ACEOF
34390 cat confdefs.h >>conftest.$ac_ext
34391 cat >>conftest.$ac_ext <<_ACEOF
34392 /* end confdefs.h. */
34393 $ac_includes_default
34394 /* malloc might have been renamed as rpl_malloc. */
34397 /* Thanks to Mike Haertel and Jim Avera for this test.
34398 Here is a matrix of mmap possibilities:
34399 mmap private not fixed
34400 mmap private fixed at somewhere currently unmapped
34401 mmap private fixed at somewhere already mapped
34402 mmap shared not fixed
34403 mmap shared fixed at somewhere currently unmapped
34404 mmap shared fixed at somewhere already mapped
34405 For private mappings, we should verify that changes cannot be read()
34406 back from the file, nor mmap's back from the file at a different
34407 address. (There have been systems where private was not correctly
34408 implemented like the infamous i386 svr4.0, and systems where the
34409 VM page cache was not coherent with the file system buffer cache
34410 like early versions of FreeBSD and possibly contemporary NetBSD.)
34411 For shared mappings, we should conversely verify that changes get
34412 propagated back to all the places they're supposed to be.
34414 Grep wants private fixed already mapped.
34415 The main things grep needs to know about mmap are:
34416 * does it exist and is it safe to write into the mmap'd area
34417 * how to use it (BSD variants) */
34420 #include <sys/mman.h>
34422 #if !STDC_HEADERS && !HAVE_STDLIB_H
34426 /* This mess was copied from the GNU getpagesize.h. */
34427 #if !HAVE_GETPAGESIZE
34428 /* Assume that all systems that can run configure have sys/param.h. */
34429 # if !HAVE_SYS_PARAM_H
34430 # define HAVE_SYS_PARAM_H 1
34433 # ifdef _SC_PAGESIZE
34434 # define getpagesize() sysconf(_SC_PAGESIZE)
34435 # else /* no _SC_PAGESIZE */
34436 # if HAVE_SYS_PARAM_H
34437 # include <sys/param.h>
34438 # ifdef EXEC_PAGESIZE
34439 # define getpagesize() EXEC_PAGESIZE
34440 # else /* no EXEC_PAGESIZE */
34442 # define getpagesize() NBPG * CLSIZE
34445 # endif /* no CLSIZE */
34446 # else /* no NBPG */
34448 # define getpagesize() NBPC
34449 # else /* no NBPC */
34451 # define getpagesize() PAGESIZE
34452 # endif /* PAGESIZE */
34453 # endif /* no NBPC */
34454 # endif /* no NBPG */
34455 # endif /* no EXEC_PAGESIZE */
34456 # else /* no HAVE_SYS_PARAM_H */
34457 # define getpagesize() 8192 /* punt totally */
34458 # endif /* no HAVE_SYS_PARAM_H */
34459 # endif /* no _SC_PAGESIZE */
34461 #endif /* no HAVE_GETPAGESIZE */
34466 char *data, *data2, *data3;
34470 pagesize = getpagesize ();
34472 /* First, make a file with some known garbage in it. */
34473 data = (char *) malloc (pagesize);
34476 for (i = 0; i < pagesize; ++i)
34477 *(data + i) = rand ();
34479 fd = creat ("conftest.mmap", 0600);
34482 if (write (fd, data, pagesize) != pagesize)
34486 /* Next, try to mmap the file at a fixed address which already has
34487 something else allocated at it. If we can, also make sure that
34488 we see the same garbage. */
34489 fd = open ("conftest.mmap", O_RDWR);
34492 data2 = (char *) malloc (2 * pagesize);
34495 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34496 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34497 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34499 for (i = 0; i < pagesize; ++i)
34500 if (*(data + i) != *(data2 + i))
34503 /* Finally, make sure that changes to the mapped area do not
34504 percolate back to the file as seen by read(). (This is a bug on
34505 some variants of i386 svr4.0.) */
34506 for (i = 0; i < pagesize; ++i)
34507 *(data2 + i) = *(data2 + i) + 1;
34508 data3 = (char *) malloc (pagesize);
34511 if (read (fd, data3, pagesize) != pagesize)
34513 for (i = 0; i < pagesize; ++i)
34514 if (*(data + i) != *(data3 + i))
34520 rm -f conftest$ac_exeext
34521 if { (ac_try="$ac_link"
34522 case "(($ac_try" in
34523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34524 *) ac_try_echo=$ac_try;;
34526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34527 (eval "$ac_link") 2>&5
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34531 { (case "(($ac_try" in
34532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34533 *) ac_try_echo=$ac_try;;
34535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34536 (eval "$ac_try") 2>&5
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); }; }; then
34540 ac_cv_func_mmap_fixed_mapped=yes
34542 echo "$as_me: program exited with status $ac_status" >&5
34543 echo "$as_me: failed program was:" >&5
34544 sed 's/^/| /' conftest.$ac_ext >&5
34546 ( exit $ac_status )
34547 ac_cv_func_mmap_fixed_mapped=no
34549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34554 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34555 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34556 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34558 cat >>confdefs.h <<\_ACEOF
34559 #define HAVE_MMAP 1
34563 rm -f conftest.mmap
34565 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34566 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34567 if test "${ac_cv_func_mmap_file+set}" = set; then
34568 echo $ECHO_N "(cached) $ECHO_C" >&6
34571 ac_cpp='$CPP $CPPFLAGS'
34572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34576 if test "$cross_compiling" = yes; then
34577 ac_cv_func_mmap_file=no
34579 cat >conftest.$ac_ext <<_ACEOF
34583 cat confdefs.h >>conftest.$ac_ext
34584 cat >>conftest.$ac_ext <<_ACEOF
34585 /* end confdefs.h. */
34587 #include <sys/types.h>
34588 #include <sys/mman.h>
34596 fd = creat ("foo",0777);
34597 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34599 return (fd != (int) MAP_FAILED);
34604 rm -f conftest$ac_exeext
34605 if { (ac_try="$ac_link"
34606 case "(($ac_try" in
34607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34608 *) ac_try_echo=$ac_try;;
34610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34611 (eval "$ac_link") 2>&5
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34615 { (case "(($ac_try" in
34616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34617 *) ac_try_echo=$ac_try;;
34619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34620 (eval "$ac_try") 2>&5
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); }; }; then
34624 ac_cv_func_mmap_file=yes
34626 echo "$as_me: program exited with status $ac_status" >&5
34627 echo "$as_me: failed program was:" >&5
34628 sed 's/^/| /' conftest.$ac_ext >&5
34630 ( exit $ac_status )
34631 ac_cv_func_mmap_file=no
34633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34638 ac_cpp='$CPP $CPPFLAGS'
34639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34645 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34646 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34647 if test "$ac_cv_func_mmap_file" = yes; then
34649 cat >>confdefs.h <<\_ACEOF
34650 #define HAVE_MMAP_FILE
34657 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34658 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34659 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34660 echo $ECHO_N "(cached) $ECHO_C" >&6
34662 if test "$llvm_cv_os_type" = "Interix" ; then
34663 ac_cv_need_dev_zero_for_mmap=yes
34665 ac_cv_need_dev_zero_for_mmap=no
34669 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34670 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34671 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34673 cat >>confdefs.h <<\_ACEOF
34674 #define NEED_DEV_ZERO_FOR_MMAP 1
34679 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34681 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34682 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34684 if test "$ac_cv_func_mmap_file" = "no"
34686 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34687 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34691 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34692 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34693 cat >conftest.$ac_ext <<_ACEOF
34696 cat confdefs.h >>conftest.$ac_ext
34697 cat >>conftest.$ac_ext <<_ACEOF
34698 /* end confdefs.h. */
34700 volatile unsigned long val = 1;
34701 __sync_synchronize();
34702 __sync_val_compare_and_swap(&val, 1, 0);
34703 __sync_add_and_fetch(&val, 1);
34704 __sync_sub_and_fetch(&val, 1);
34709 rm -f conftest.$ac_objext conftest$ac_exeext
34710 if { (ac_try="$ac_link"
34711 case "(($ac_try" in
34712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34713 *) ac_try_echo=$ac_try;;
34715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34716 (eval "$ac_link") 2>conftest.er1
34718 grep -v '^ *+' conftest.er1 >conftest.err
34720 cat conftest.err >&5
34721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722 (exit $ac_status); } &&
34723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34724 { (case "(($ac_try" in
34725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34726 *) ac_try_echo=$ac_try;;
34728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34729 (eval "$ac_try") 2>&5
34731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); }; } &&
34733 { ac_try='test -s conftest$ac_exeext'
34734 { (case "(($ac_try" in
34735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34736 *) ac_try_echo=$ac_try;;
34738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34739 (eval "$ac_try") 2>&5
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); }; }; then
34743 { echo "$as_me:$LINENO: result: yes" >&5
34744 echo "${ECHO_T}yes" >&6; }
34746 cat >>confdefs.h <<\_ACEOF
34747 #define LLVM_MULTITHREADED 1
34751 echo "$as_me: failed program was:" >&5
34752 sed 's/^/| /' conftest.$ac_ext >&5
34754 { echo "$as_me:$LINENO: result: no" >&5
34755 echo "${ECHO_T}no" >&6; }
34757 cat >>confdefs.h <<\_ACEOF
34758 #define LLVM_MULTITHREADED 0
34761 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34762 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34765 rm -f core conftest.err conftest.$ac_objext \
34766 conftest$ac_exeext conftest.$ac_ext
34770 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34771 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34772 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34773 if test "${llvm_cv_linux_mixed+set}" = set; then
34774 echo $ECHO_N "(cached) $ECHO_C" >&6
34777 ac_cpp='$CPP $CPPFLAGS'
34778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34782 cat >conftest.$ac_ext <<_ACEOF
34785 cat confdefs.h >>conftest.$ac_ext
34786 cat >>conftest.$ac_ext <<_ACEOF
34787 /* end confdefs.h. */
34789 error: Not x86-64 even if uname says so!
34800 rm -f conftest.$ac_objext
34801 if { (ac_try="$ac_compile"
34802 case "(($ac_try" in
34803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34804 *) ac_try_echo=$ac_try;;
34806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34807 (eval "$ac_compile") 2>conftest.er1
34809 grep -v '^ *+' conftest.er1 >conftest.err
34811 cat conftest.err >&5
34812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813 (exit $ac_status); } &&
34814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34815 { (case "(($ac_try" in
34816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34817 *) ac_try_echo=$ac_try;;
34819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34820 (eval "$ac_try") 2>&5
34822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823 (exit $ac_status); }; } &&
34824 { ac_try='test -s conftest.$ac_objext'
34825 { (case "(($ac_try" in
34826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34827 *) ac_try_echo=$ac_try;;
34829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34830 (eval "$ac_try") 2>&5
34832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833 (exit $ac_status); }; }; then
34834 llvm_cv_linux_mixed=no
34836 echo "$as_me: failed program was:" >&5
34837 sed 's/^/| /' conftest.$ac_ext >&5
34839 llvm_cv_linux_mixed=yes
34842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34844 ac_cpp='$CPP $CPPFLAGS'
34845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34851 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34852 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34854 if test "$llvm_cv_linux_mixed" = "yes"; then
34855 llvm_cv_target_arch="x86"
34861 for ac_func in __dso_handle
34863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34867 echo $ECHO_N "(cached) $ECHO_C" >&6
34869 cat >conftest.$ac_ext <<_ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h. */
34875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34877 #define $ac_func innocuous_$ac_func
34879 /* System header to define __stub macros and hopefully few prototypes,
34880 which can conflict with char $ac_func (); below.
34881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34882 <limits.h> exists even on freestanding compilers. */
34885 # include <limits.h>
34887 # include <assert.h>
34892 /* Override any GCC internal prototype to avoid an error.
34893 Use char because int might match the return type of a GCC
34894 builtin and then its argument prototype would still apply. */
34899 /* The GNU C library defines this for functions which it implements
34900 to always fail with ENOSYS. Some functions are actually named
34901 something starting with __ and the normal name is an alias. */
34902 #if defined __stub_$ac_func || defined __stub___$ac_func
34909 return $ac_func ();
34914 rm -f conftest.$ac_objext conftest$ac_exeext
34915 if { (ac_try="$ac_link"
34916 case "(($ac_try" in
34917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34918 *) ac_try_echo=$ac_try;;
34920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34921 (eval "$ac_link") 2>conftest.er1
34923 grep -v '^ *+' conftest.er1 >conftest.err
34925 cat conftest.err >&5
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); } &&
34928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34929 { (case "(($ac_try" in
34930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34931 *) ac_try_echo=$ac_try;;
34933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34934 (eval "$ac_try") 2>&5
34936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 (exit $ac_status); }; } &&
34938 { ac_try='test -s conftest$ac_exeext'
34939 { (case "(($ac_try" in
34940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34941 *) ac_try_echo=$ac_try;;
34943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34944 (eval "$ac_try") 2>&5
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); }; }; then
34948 eval "$as_ac_var=yes"
34950 echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34953 eval "$as_ac_var=no"
34956 rm -f core conftest.err conftest.$ac_objext \
34957 conftest$ac_exeext conftest.$ac_ext
34959 ac_res=`eval echo '${'$as_ac_var'}'`
34960 { echo "$as_me:$LINENO: result: $ac_res" >&5
34961 echo "${ECHO_T}$ac_res" >&6; }
34962 if test `eval echo '${'$as_ac_var'}'` = yes; then
34963 cat >>confdefs.h <<_ACEOF
34964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34971 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34972 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34973 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34974 echo $ECHO_N "(cached) $ECHO_C" >&6
34976 llvm_cv_llvmgcc_sanity="no"
34977 if test -x "$LLVMGCC" ; then
34978 cp /dev/null conftest.c
34979 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34980 grep 'target datalayout =' > /dev/null 2>&1
34981 if test $? -eq 0 ; then
34982 llvm_cv_llvmgcc_sanity="yes"
34987 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34988 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34990 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34991 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34992 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34993 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34994 LLVMCC1=$llvmcc1path
34996 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34997 LLVMCC1PLUS=$llvmcc1pluspath
34999 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35000 LLVMGCCDIR=$llvmgccdir
35002 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35003 LLVMGCCLIBEXEC=$llvmgcclibexec
35005 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35006 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35007 LLVMGCC_VERSION=$llvmgccversion
35009 LLVMGCC_MAJVERS=$llvmgccmajvers
35011 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35012 LLVMGCC_LANGS=$llvmgcclangs
35014 { echo "$as_me:$LINENO: result: ok" >&5
35015 echo "${ECHO_T}ok" >&6; }
35018 SHLIBEXT=$libltdl_cv_shlibext
35021 # Translate the various configuration directories and other basic
35022 # information into substitutions that will end up in Makefile.config.in
35023 # that these configured values can be used by the makefiles
35024 if test "${prefix}" = "NONE" ; then
35025 prefix="/usr/local"
35027 eval LLVM_PREFIX="${prefix}";
35028 eval LLVM_BINDIR="${prefix}/bin";
35029 eval LLVM_LIBDIR="${prefix}/lib";
35030 eval LLVM_DATADIR="${prefix}/share/llvm";
35031 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35032 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35033 eval LLVM_INCLUDEDIR="${prefix}/include";
35034 eval LLVM_INFODIR="${prefix}/info";
35035 eval LLVM_MANDIR="${prefix}/man";
35036 LLVM_CONFIGTIME=`date`
35048 # Place the various directores into the config.h file as #defines so that we
35049 # can know about the installation paths within LLVM.
35051 cat >>confdefs.h <<_ACEOF
35052 #define LLVM_PREFIX "$LLVM_PREFIX"
35056 cat >>confdefs.h <<_ACEOF
35057 #define LLVM_BINDIR "$LLVM_BINDIR"
35061 cat >>confdefs.h <<_ACEOF
35062 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35066 cat >>confdefs.h <<_ACEOF
35067 #define LLVM_DATADIR "$LLVM_DATADIR"
35071 cat >>confdefs.h <<_ACEOF
35072 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35076 cat >>confdefs.h <<_ACEOF
35077 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35081 cat >>confdefs.h <<_ACEOF
35082 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35086 cat >>confdefs.h <<_ACEOF
35087 #define LLVM_INFODIR "$LLVM_INFODIR"
35091 cat >>confdefs.h <<_ACEOF
35092 #define LLVM_MANDIR "$LLVM_MANDIR"
35096 cat >>confdefs.h <<_ACEOF
35097 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35101 cat >>confdefs.h <<_ACEOF
35102 #define LLVM_HOSTTRIPLE "$host"
35106 # Determine which bindings to build.
35107 if test "$BINDINGS_TO_BUILD" = auto ; then
35108 BINDINGS_TO_BUILD=""
35109 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35110 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35113 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35116 # This isn't really configurey, but it avoids having to repeat the list in
35121 # Do any work necessary to ensure that bindings have what they need.
35122 binding_prereqs_failed=0
35123 for a_binding in $BINDINGS_TO_BUILD ; do
35124 case "$a_binding" in
35126 if test "x$OCAMLC" = x ; then
35127 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35128 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35129 binding_prereqs_failed=1
35131 if test "x$OCAMLDEP" = x ; then
35132 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35133 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35134 binding_prereqs_failed=1
35136 if test "x$OCAMLOPT" = x ; then
35137 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35138 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35140 if test "x$with_ocaml_libdir" != xauto ; then
35141 OCAML_LIBDIR=$with_ocaml_libdir
35144 ocaml_stdlib="`"$OCAMLC" -where`"
35145 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35147 # ocaml stdlib is beneath our prefix; use stdlib
35148 OCAML_LIBDIR=$ocaml_stdlib
35151 # ocaml stdlib is outside our prefix; use libdir/ocaml
35152 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35159 if test "$binding_prereqs_failed" = 1 ; then
35160 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35161 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35162 { (exit 1); exit 1; }; }
35165 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35166 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35167 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35168 echo $ECHO_N "(cached) $ECHO_C" >&6
35171 ac_cpp='$CXXCPP $CPPFLAGS'
35172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35176 oldcxxflags="$CXXFLAGS"
35177 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35178 cat >conftest.$ac_ext <<_ACEOF
35181 cat confdefs.h >>conftest.$ac_ext
35182 cat >>conftest.$ac_ext <<_ACEOF
35183 /* end confdefs.h. */
35193 rm -f conftest.$ac_objext
35194 if { (ac_try="$ac_compile"
35195 case "(($ac_try" in
35196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35197 *) ac_try_echo=$ac_try;;
35199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35200 (eval "$ac_compile") 2>conftest.er1
35202 grep -v '^ *+' conftest.er1 >conftest.err
35204 cat conftest.err >&5
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); } &&
35207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35208 { (case "(($ac_try" in
35209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35210 *) ac_try_echo=$ac_try;;
35212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35213 (eval "$ac_try") 2>&5
35215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216 (exit $ac_status); }; } &&
35217 { ac_try='test -s conftest.$ac_objext'
35218 { (case "(($ac_try" in
35219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35220 *) ac_try_echo=$ac_try;;
35222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35223 (eval "$ac_try") 2>&5
35225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226 (exit $ac_status); }; }; then
35227 llvm_cv_cxx_visibility_inlines_hidden=yes
35229 echo "$as_me: failed program was:" >&5
35230 sed 's/^/| /' conftest.$ac_ext >&5
35232 llvm_cv_cxx_visibility_inlines_hidden=no
35235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35236 CXXFLAGS="$oldcxxflags"
35238 ac_cpp='$CPP $CPPFLAGS'
35239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35245 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35246 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35247 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35248 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35251 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35256 if test "$llvm_cv_link_use_r" = "yes" ; then
35263 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35264 RDYNAMIC="-Wl,-export-dynamic"
35271 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35273 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35275 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35277 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35279 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35282 ac_config_files="$ac_config_files Makefile.config"
35285 ac_config_files="$ac_config_files llvm.spec"
35288 ac_config_files="$ac_config_files docs/doxygen.cfg"
35291 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35294 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35297 ac_config_commands="$ac_config_commands setup"
35299 ac_config_commands="$ac_config_commands Makefile"
35302 ac_config_commands="$ac_config_commands Makefile.common"
35305 ac_config_commands="$ac_config_commands examples/Makefile"
35308 ac_config_commands="$ac_config_commands lib/Makefile"
35311 ac_config_commands="$ac_config_commands runtime/Makefile"
35314 ac_config_commands="$ac_config_commands test/Makefile"
35317 ac_config_commands="$ac_config_commands test/Makefile.tests"
35320 ac_config_commands="$ac_config_commands unittests/Makefile"
35323 ac_config_commands="$ac_config_commands tools/Makefile"
35326 ac_config_commands="$ac_config_commands utils/Makefile"
35329 ac_config_commands="$ac_config_commands projects/Makefile"
35332 ac_config_commands="$ac_config_commands bindings/Makefile"
35335 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35339 cat >confcache <<\_ACEOF
35340 # This file is a shell script that caches the results of configure
35341 # tests run on this system so they can be shared between configure
35342 # scripts and configure runs, see configure's option --config-cache.
35343 # It is not useful on other systems. If it contains results you don't
35344 # want to keep, you may remove or edit it.
35346 # config.status only pays attention to the cache file if you give it
35347 # the --recheck option to rerun configure.
35349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35351 # following values.
35355 # The following way of writing the cache mishandles newlines in values,
35356 # but we know of no workaround that is simple, portable, and efficient.
35357 # So, we kill variables containing newlines.
35358 # Ultrix sh set writes to stderr and can't be redirected directly,
35359 # and sets the high bit in the cache file unless we assign to the vars.
35361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35362 eval ac_val=\$$ac_var
35366 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35367 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35370 _ | IFS | as_nl) ;; #(
35371 *) $as_unset $ac_var ;;
35377 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35378 *${as_nl}ac_space=\ *)
35379 # `set' does not quote correctly, so add quotes (double-quote
35380 # substitution turns \\\\ into \\, and sed turns \\ into \).
35383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35386 # `set' quotes correctly as required by POSIX, so do not add quotes.
35387 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35396 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35398 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35400 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35401 if test -w "$cache_file"; then
35402 test "x$cache_file" != "x/dev/null" &&
35403 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35404 echo "$as_me: updating cache $cache_file" >&6;}
35405 cat confcache >$cache_file
35407 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35408 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35413 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35414 # Let make expand exec_prefix.
35415 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35417 DEFS=-DHAVE_CONFIG_H
35421 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35422 # 1. Remove the extension, and $U if already installed.
35423 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35424 ac_i=`echo "$ac_i" | sed "$ac_script"`
35425 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35426 # will be set to the directory where LIBOBJS objects are built.
35427 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35428 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35430 LIBOBJS=$ac_libobjs
35432 LTLIBOBJS=$ac_ltlibobjs
35435 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35436 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35437 Usually this means the macro was only invoked conditionally." >&5
35438 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35439 Usually this means the macro was only invoked conditionally." >&2;}
35440 { (exit 1); exit 1; }; }
35442 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35443 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35444 Usually this means the macro was only invoked conditionally." >&5
35445 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35446 Usually this means the macro was only invoked conditionally." >&2;}
35447 { (exit 1); exit 1; }; }
35450 : ${CONFIG_STATUS=./config.status}
35451 ac_clean_files_save=$ac_clean_files
35452 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35453 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35454 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35455 cat >$CONFIG_STATUS <<_ACEOF
35457 # Generated by $as_me.
35458 # Run this file to recreate the current configuration.
35459 # Compiler output produced by configure, useful for debugging
35460 # configure, is in config.log if it exists.
35463 ac_cs_recheck=false
35465 SHELL=\${CONFIG_SHELL-$SHELL}
35468 cat >>$CONFIG_STATUS <<\_ACEOF
35469 ## --------------------- ##
35470 ## M4sh Initialization. ##
35471 ## --------------------- ##
35473 # Be Bourne compatible
35474 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35477 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35478 # is contrary to our usage. Disable this feature.
35479 alias -g '${1+"$@"}'='"$@"'
35480 setopt NO_GLOB_SUBST
35482 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35484 BIN_SH=xpg4; export BIN_SH # for Tru64
35485 DUALCASE=1; export DUALCASE # for MKS sh
35489 # Avoid depending upon Character Ranges.
35490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35493 as_cr_digits='0123456789'
35494 as_cr_alnum=$as_cr_Letters$as_cr_digits
35496 # The user is always right.
35497 if test "${PATH_SEPARATOR+set}" != set; then
35498 echo "#! /bin/sh" >conf$$.sh
35499 echo "exit 0" >>conf$$.sh
35501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35509 # Support unset when possible.
35510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35518 # We need space, tab and new line, in precisely that order. Quoting is
35519 # there to prevent editors from complaining about space-tab.
35520 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35521 # splitting by setting IFS to empty value.)
35526 # Find who we are. Look in the path if we contain no directory separator.
35528 *[\\/]* ) as_myself=$0 ;;
35529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35530 for as_dir in $PATH
35533 test -z "$as_dir" && as_dir=.
35534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35540 # We did not find ourselves, most probably we were run as `sh COMMAND'
35541 # in which case we are not to be found in the path.
35542 if test "x$as_myself" = x; then
35545 if test ! -f "$as_myself"; then
35546 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35547 { (exit 1); exit 1; }
35550 # Work around bugs in pre-3.0 UWIN ksh.
35551 for as_var in ENV MAIL MAILPATH
35552 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35560 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35561 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35562 LC_TELEPHONE LC_TIME
35564 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35565 eval $as_var=C; export $as_var
35567 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35571 # Required to use basename.
35572 if expr a : '\(a\)' >/dev/null 2>&1 &&
35573 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35579 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35580 as_basename=basename
35586 # Name of the executable.
35587 as_me=`$as_basename -- "$0" ||
35588 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35589 X"$0" : 'X\(//\)$' \| \
35590 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35592 sed '/^.*\/\([^/][^/]*\)\/*$/{
35611 as_lineno_1=$LINENO
35612 as_lineno_2=$LINENO
35613 test "x$as_lineno_1" != "x$as_lineno_2" &&
35614 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35616 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35617 # uniformly replaced by the line number. The first 'sed' inserts a
35618 # line-number line after each line using $LINENO; the second 'sed'
35619 # does the real work. The second script uses 'N' to pair each
35620 # line-number line with the line containing $LINENO, and appends
35621 # trailing '-' during substitution so that $LINENO is not a special
35622 # case at line end.
35623 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35624 # scripts with optimization help from Paolo Bonzini. Blame Lee
35625 # E. McMahon (1931-1989) for sed's syntax. :-)
35637 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35640 ' >$as_me.lineno &&
35641 chmod +x "$as_me.lineno" ||
35642 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35643 { (exit 1); exit 1; }; }
35645 # Don't try to exec as it changes $[0], causing all sort of problems
35646 # (the dirname of $[0] is not the place where we might find the
35647 # original and so on. Autoconf is especially sensitive to this).
35648 . "./$as_me.lineno"
35649 # Exit status is that of the last command.
35654 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35660 ECHO_C= ECHO_N= ECHO_T=
35661 case `echo -n x` in
35663 case `echo 'x\c'` in
35664 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35671 if expr a : '\(a\)' >/dev/null 2>&1 &&
35672 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35678 rm -f conf$$ conf$$.exe conf$$.file
35679 if test -d conf$$.dir; then
35680 rm -f conf$$.dir/conf$$.file
35686 if ln -s conf$$.file conf$$ 2>/dev/null; then
35688 # ... but there are two gotchas:
35689 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35690 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35691 # In both cases, we have to default to `cp -p'.
35692 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35694 elif ln conf$$.file conf$$ 2>/dev/null; then
35699 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35700 rmdir conf$$.dir 2>/dev/null
35702 if mkdir -p . 2>/dev/null; then
35705 test -d ./-p && rmdir ./-p
35709 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35710 # systems may use methods other than mode bits to determine executability.
35711 cat >conf$$.file <<_ASEOF
35715 chmod +x conf$$.file
35716 if test -x conf$$.file >/dev/null 2>&1; then
35717 as_executable_p="test -x"
35723 # Sed expression to map a string onto a valid CPP name.
35724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35726 # Sed expression to map a string onto a valid variable name.
35727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35732 # Save the log message, to keep $[0] and so on meaningful, and to
35733 # report actual input values of CONFIG_FILES etc. instead of their
35734 # values after options handling.
35736 This file was extended by llvm $as_me 2.7svn, which was
35737 generated by GNU Autoconf 2.60. Invocation command line was
35739 CONFIG_FILES = $CONFIG_FILES
35740 CONFIG_HEADERS = $CONFIG_HEADERS
35741 CONFIG_LINKS = $CONFIG_LINKS
35742 CONFIG_COMMANDS = $CONFIG_COMMANDS
35745 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35750 cat >>$CONFIG_STATUS <<_ACEOF
35751 # Files that config.status was made for.
35752 config_files="$ac_config_files"
35753 config_headers="$ac_config_headers"
35754 config_commands="$ac_config_commands"
35758 cat >>$CONFIG_STATUS <<\_ACEOF
35760 \`$as_me' instantiates files from templates according to the
35761 current configuration.
35763 Usage: $0 [OPTIONS] [FILE]...
35765 -h, --help print this help, then exit
35766 -V, --version print version number, then exit
35767 -q, --quiet do not print progress messages
35768 -d, --debug don't remove temporary files
35769 --recheck update $as_me by reconfiguring in the same conditions
35770 --file=FILE[:TEMPLATE]
35771 instantiate the configuration file FILE
35772 --header=FILE[:TEMPLATE]
35773 instantiate the configuration header FILE
35775 Configuration files:
35778 Configuration headers:
35781 Configuration commands:
35784 Report bugs to <bug-autoconf@gnu.org>."
35787 cat >>$CONFIG_STATUS <<_ACEOF
35789 llvm config.status 2.7svn
35790 configured by $0, generated by GNU Autoconf 2.60,
35791 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35793 Copyright (C) 2006 Free Software Foundation, Inc.
35794 This config.status script is free software; the Free Software Foundation
35795 gives unlimited permission to copy, distribute and modify it."
35802 cat >>$CONFIG_STATUS <<\_ACEOF
35803 # If no file are specified by the user, then we need to provide default
35804 # value. By we need to know if files were specified by the user.
35810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35822 # Handling of the options.
35823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35826 echo "$ac_cs_version"; exit ;;
35827 --debug | --debu | --deb | --de | --d | -d )
35829 --file | --fil | --fi | --f )
35831 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35832 ac_need_defaults=false;;
35833 --header | --heade | --head | --hea )
35835 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35836 ac_need_defaults=false;;
35838 # Conflict between --help and --header
35839 { echo "$as_me: error: ambiguous option: $1
35840 Try \`$0 --help' for more information." >&2
35841 { (exit 1); exit 1; }; };;
35842 --help | --hel | -h )
35843 echo "$ac_cs_usage"; exit ;;
35844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35845 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35848 # This is an error.
35849 -*) { echo "$as_me: error: unrecognized option: $1
35850 Try \`$0 --help' for more information." >&2
35851 { (exit 1); exit 1; }; } ;;
35853 *) ac_config_targets="$ac_config_targets $1"
35854 ac_need_defaults=false ;;
35860 ac_configure_extra_args=
35862 if $ac_cs_silent; then
35864 ac_configure_extra_args="$ac_configure_extra_args --silent"
35868 cat >>$CONFIG_STATUS <<_ACEOF
35869 if \$ac_cs_recheck; then
35870 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35871 CONFIG_SHELL=$SHELL
35872 export CONFIG_SHELL
35873 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35877 cat >>$CONFIG_STATUS <<\_ACEOF
35881 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35882 ## Running $as_me. ##
35888 cat >>$CONFIG_STATUS <<_ACEOF
35892 llvm_src="${srcdir}"
35896 cat >>$CONFIG_STATUS <<\_ACEOF
35898 # Handling of arguments.
35899 for ac_config_target in $ac_config_targets
35901 case $ac_config_target in
35902 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35903 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35904 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35905 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35906 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35907 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35908 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35909 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35910 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35911 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35912 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35913 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35914 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35915 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35916 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35917 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35918 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35919 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35920 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35921 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35922 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35923 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35924 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35925 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35927 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35928 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35929 { (exit 1); exit 1; }; };;
35934 # If the user did not use the arguments to specify the items to instantiate,
35935 # then the envvar interface is used. Set only those that are not.
35936 # We use the long form for the default assignment because of an extremely
35937 # bizarre bug on SunOS 4.1.3.
35938 if $ac_need_defaults; then
35939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35944 # Have a temporary directory for convenience. Make it in the build tree
35945 # simply because there is no reason against having it here, and in addition,
35946 # creating and moving files from /tmp can sometimes cause problems.
35947 # Hook for its removal unless debugging.
35948 # Note that there is a small window in which the directory will not be cleaned:
35949 # after its creation but before its name has been assigned to `$tmp'.
35953 trap 'exit_status=$?
35954 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35956 trap '{ (exit 1); exit 1; }' 1 2 13 15
35958 # Create a (secure) tmp directory for tmp files.
35961 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35962 test -n "$tmp" && test -d "$tmp"
35965 tmp=./conf$$-$RANDOM
35966 (umask 077 && mkdir "$tmp")
35969 echo "$me: cannot create a temporary directory in ." >&2
35970 { (exit 1); exit 1; }
35974 # Set up the sed scripts for CONFIG_FILES section.
35977 # No need to generate the scripts if there are no CONFIG_FILES.
35978 # This happens for instance when ./config.status config.h
35979 if test -n "$CONFIG_FILES"; then
35986 for ac_last_try in false false false false false :; do
35987 cat >conf$$subs.sed <<_ACEOF
35988 SHELL!$SHELL$ac_delim
35989 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35990 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35991 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35992 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35993 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35994 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35995 exec_prefix!$exec_prefix$ac_delim
35996 prefix!$prefix$ac_delim
35997 program_transform_name!$program_transform_name$ac_delim
35998 bindir!$bindir$ac_delim
35999 sbindir!$sbindir$ac_delim
36000 libexecdir!$libexecdir$ac_delim
36001 datarootdir!$datarootdir$ac_delim
36002 datadir!$datadir$ac_delim
36003 sysconfdir!$sysconfdir$ac_delim
36004 sharedstatedir!$sharedstatedir$ac_delim
36005 localstatedir!$localstatedir$ac_delim
36006 includedir!$includedir$ac_delim
36007 oldincludedir!$oldincludedir$ac_delim
36008 docdir!$docdir$ac_delim
36009 infodir!$infodir$ac_delim
36010 htmldir!$htmldir$ac_delim
36011 dvidir!$dvidir$ac_delim
36012 pdfdir!$pdfdir$ac_delim
36013 psdir!$psdir$ac_delim
36014 libdir!$libdir$ac_delim
36015 localedir!$localedir$ac_delim
36016 mandir!$mandir$ac_delim
36017 DEFS!$DEFS$ac_delim
36018 ECHO_C!$ECHO_C$ac_delim
36019 ECHO_N!$ECHO_N$ac_delim
36020 ECHO_T!$ECHO_T$ac_delim
36021 LIBS!$LIBS$ac_delim
36022 build_alias!$build_alias$ac_delim
36023 host_alias!$host_alias$ac_delim
36024 target_alias!$target_alias$ac_delim
36025 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36026 subdirs!$subdirs$ac_delim
36027 build!$build$ac_delim
36028 build_cpu!$build_cpu$ac_delim
36029 build_vendor!$build_vendor$ac_delim
36030 build_os!$build_os$ac_delim
36031 host!$host$ac_delim
36032 host_cpu!$host_cpu$ac_delim
36033 host_vendor!$host_vendor$ac_delim
36034 host_os!$host_os$ac_delim
36035 target!$target$ac_delim
36036 target_cpu!$target_cpu$ac_delim
36037 target_vendor!$target_vendor$ac_delim
36038 target_os!$target_os$ac_delim
36040 HOST_OS!$HOST_OS$ac_delim
36041 TARGET_OS!$TARGET_OS$ac_delim
36042 LINKALL!$LINKALL$ac_delim
36043 NOLINKALL!$NOLINKALL$ac_delim
36044 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36045 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36046 ARCH!$ARCH$ac_delim
36047 ENDIAN!$ENDIAN$ac_delim
36049 CFLAGS!$CFLAGS$ac_delim
36050 LDFLAGS!$LDFLAGS$ac_delim
36051 CPPFLAGS!$CPPFLAGS$ac_delim
36052 ac_ct_CC!$ac_ct_CC$ac_delim
36053 EXEEXT!$EXEEXT$ac_delim
36054 OBJEXT!$OBJEXT$ac_delim
36056 GREP!$GREP$ac_delim
36057 EGREP!$EGREP$ac_delim
36058 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36059 BUILD_CC!$BUILD_CC$ac_delim
36060 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36061 BUILD_CXX!$BUILD_CXX$ac_delim
36062 CVSBUILD!$CVSBUILD$ac_delim
36063 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36064 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36065 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36066 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36067 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36068 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36069 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36071 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36072 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36073 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36074 ENABLE_PIC!$ENABLE_PIC$ac_delim
36075 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36076 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36077 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36078 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36079 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36080 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36081 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36082 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36083 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36087 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36089 elif $ac_last_try; then
36090 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36091 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36092 { (exit 1); exit 1; }; }
36094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36098 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36099 if test -n "$ac_eof"; then
36100 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36101 ac_eof=`expr $ac_eof + 1`
36104 cat >>$CONFIG_STATUS <<_ACEOF
36105 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36109 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36110 s/^/s,@/; s/!/@,|#_!!_#|/
36113 s/'"$ac_delim"'$/,g/; t
36115 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36116 ' >>$CONFIG_STATUS <conf$$subs.sed
36117 rm -f conf$$subs.sed
36118 cat >>$CONFIG_STATUS <<_ACEOF
36124 for ac_last_try in false false false false false :; do
36125 cat >conf$$subs.sed <<_ACEOF
36126 CXXFLAGS!$CXXFLAGS$ac_delim
36127 ac_ct_CXX!$ac_ct_CXX$ac_delim
36129 ifGNUmake!$ifGNUmake$ac_delim
36130 LN_S!$LN_S$ac_delim
36133 DATE!$DATE$ac_delim
36134 FIND!$FIND$ac_delim
36135 MKDIR!$MKDIR$ac_delim
36137 RANLIB!$RANLIB$ac_delim
36141 BINPWD!$BINPWD$ac_delim
36142 GRAPHVIZ!$GRAPHVIZ$ac_delim
36145 NEATO!$NEATO$ac_delim
36146 TWOPI!$TWOPI$ac_delim
36147 CIRCO!$CIRCO$ac_delim
36149 DOTTY!$DOTTY$ac_delim
36150 PERL!$PERL$ac_delim
36151 HAVE_PERL!$HAVE_PERL$ac_delim
36152 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36153 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36154 INSTALL_DATA!$INSTALL_DATA$ac_delim
36155 BZIP2!$BZIP2$ac_delim
36156 DOXYGEN!$DOXYGEN$ac_delim
36157 GROFF!$GROFF$ac_delim
36158 GZIP!$GZIP$ac_delim
36159 POD2HTML!$POD2HTML$ac_delim
36160 POD2MAN!$POD2MAN$ac_delim
36161 RUNTEST!$RUNTEST$ac_delim
36162 TCLSH!$TCLSH$ac_delim
36164 OCAMLC!$OCAMLC$ac_delim
36165 OCAMLOPT!$OCAMLOPT$ac_delim
36166 OCAMLDEP!$OCAMLDEP$ac_delim
36167 OCAMLDOC!$OCAMLDOC$ac_delim
36169 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36170 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36171 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36172 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36173 LIBADD_DL!$LIBADD_DL$ac_delim
36174 ECHO!$ECHO$ac_delim
36176 STRIP!$STRIP$ac_delim
36177 CXXCPP!$CXXCPP$ac_delim
36179 FFLAGS!$FFLAGS$ac_delim
36180 ac_ct_F77!$ac_ct_F77$ac_delim
36181 LIBTOOL!$LIBTOOL$ac_delim
36182 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36183 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36184 LLVMGCC!$LLVMGCC$ac_delim
36185 LLVMGXX!$LLVMGXX$ac_delim
36186 USE_UDIS86!$USE_UDIS86$ac_delim
36187 USE_OPROFILE!$USE_OPROFILE$ac_delim
36188 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36189 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36190 ALLOCA!$ALLOCA$ac_delim
36191 MMAP_FILE!$MMAP_FILE$ac_delim
36192 LLVMCC1!$LLVMCC1$ac_delim
36193 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36194 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36195 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36196 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36197 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36198 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36199 SHLIBEXT!$SHLIBEXT$ac_delim
36200 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36201 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36202 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36203 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36204 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36205 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36206 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36207 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36208 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36209 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36210 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36211 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36212 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36213 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36214 RPATH!$RPATH$ac_delim
36215 RDYNAMIC!$RDYNAMIC$ac_delim
36216 LIBOBJS!$LIBOBJS$ac_delim
36217 LTLIBOBJS!$LTLIBOBJS$ac_delim
36220 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
36222 elif $ac_last_try; then
36223 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36224 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36225 { (exit 1); exit 1; }; }
36227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36231 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36232 if test -n "$ac_eof"; then
36233 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36234 ac_eof=`expr $ac_eof + 1`
36237 cat >>$CONFIG_STATUS <<_ACEOF
36238 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36242 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36243 s/^/s,@/; s/!/@,|#_!!_#|/
36246 s/'"$ac_delim"'$/,g/; t
36248 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36249 ' >>$CONFIG_STATUS <conf$$subs.sed
36250 rm -f conf$$subs.sed
36251 cat >>$CONFIG_STATUS <<_ACEOF
36258 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36259 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36260 # trailing colons and then remove the whole line if VPATH becomes empty
36261 # (actually we leave an empty line to preserve line numbers).
36262 if test "x$srcdir" = x.; then
36263 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36264 s/:*\$(srcdir):*/:/
36265 s/:*\${srcdir}:*/:/
36267 s/^\([^=]*=[ ]*\):*/\1/
36273 cat >>$CONFIG_STATUS <<\_ACEOF
36274 fi # test -n "$CONFIG_FILES"
36277 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36280 :[FHLC]) ac_mode=$ac_tag; continue;;
36282 case $ac_mode$ac_tag in
36284 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36285 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36286 { (exit 1); exit 1; }; };;
36287 :[FH]-) ac_tag=-:-;;
36288 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36305 -) ac_f="$tmp/stdin";;
36306 *) # Look for the file first in the build tree, then in the source tree
36307 # (if the path is not absolute). The absolute path cannot be DOS-style,
36308 # because $ac_f cannot contain `:'.
36312 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36314 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36315 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36316 { (exit 1); exit 1; }; };;
36318 ac_file_inputs="$ac_file_inputs $ac_f"
36321 # Let's still pretend it is `configure' which instantiates (i.e., don't
36322 # use $as_me), people would be surprised to read:
36323 # /* config.h. Generated by config.status. */
36324 configure_input="Generated from "`IFS=:
36325 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36326 if test x"$ac_file" != x-; then
36327 configure_input="$ac_file. $configure_input"
36328 { echo "$as_me:$LINENO: creating $ac_file" >&5
36329 echo "$as_me: creating $ac_file" >&6;}
36333 *:-:* | *:-) cat >"$tmp/stdin";;
36338 ac_dir=`$as_dirname -- "$ac_file" ||
36339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36340 X"$ac_file" : 'X\(//\)[^/]' \| \
36341 X"$ac_file" : 'X\(//\)$' \| \
36342 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36348 /^X\(\/\/\)[^/].*/{
36363 -*) as_dir=./$as_dir;;
36365 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36369 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36370 *) as_qdir=$as_dir;;
36372 as_dirs="'$as_qdir' $as_dirs"
36373 as_dir=`$as_dirname -- "$as_dir" ||
36374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36375 X"$as_dir" : 'X\(//\)[^/]' \| \
36376 X"$as_dir" : 'X\(//\)$' \| \
36377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36383 /^X\(\/\/\)[^/].*/{
36396 test -d "$as_dir" && break
36398 test -z "$as_dirs" || eval "mkdir $as_dirs"
36399 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36400 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36401 { (exit 1); exit 1; }; }; }
36405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36408 # A ".." for each directory in $ac_dir_suffix.
36409 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36410 case $ac_top_builddir_sub in
36411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36415 ac_abs_top_builddir=$ac_pwd
36416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36417 # for backward compatibility:
36418 ac_top_builddir=$ac_top_build_prefix
36421 .) # We are building in place.
36423 ac_top_srcdir=$ac_top_builddir_sub
36424 ac_abs_top_srcdir=$ac_pwd ;;
36425 [\\/]* | ?:[\\/]* ) # Absolute name.
36426 ac_srcdir=$srcdir$ac_dir_suffix;
36427 ac_top_srcdir=$srcdir
36428 ac_abs_top_srcdir=$srcdir ;;
36429 *) # Relative name.
36430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36431 ac_top_srcdir=$ac_top_build_prefix$srcdir
36432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36444 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36445 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36449 cat >>$CONFIG_STATUS <<\_ACEOF
36450 # If the template does not know about datarootdir, expand it.
36451 # FIXME: This hack should be removed a few years after 2.60.
36452 ac_datarootdir_hack=; ac_datarootdir_seen=
36454 case `sed -n '/datarootdir/ {
36463 ' $ac_file_inputs` in
36464 *datarootdir*) ac_datarootdir_seen=yes;;
36465 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36466 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36467 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36469 cat >>$CONFIG_STATUS <<_ACEOF
36470 ac_datarootdir_hack='
36471 s&@datadir@&$datadir&g
36472 s&@docdir@&$docdir&g
36473 s&@infodir@&$infodir&g
36474 s&@localedir@&$localedir&g
36475 s&@mandir@&$mandir&g
36476 s&\\\${datarootdir}&$datarootdir&g' ;;
36480 # Neutralize VPATH when `$srcdir' = `.'.
36481 # Shell code in configure.ac might set extrasub.
36482 # FIXME: do we really want to maintain this feature?
36483 cat >>$CONFIG_STATUS <<_ACEOF
36487 cat >>$CONFIG_STATUS <<\_ACEOF
36489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36490 s&@configure_input@&$configure_input&;t t
36491 s&@top_builddir@&$ac_top_builddir_sub&;t t
36492 s&@srcdir@&$ac_srcdir&;t t
36493 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36494 s&@top_srcdir@&$ac_top_srcdir&;t t
36495 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36496 s&@builddir@&$ac_builddir&;t t
36497 s&@abs_builddir@&$ac_abs_builddir&;t t
36498 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36499 s&@INSTALL@&$ac_INSTALL&;t t
36500 $ac_datarootdir_hack
36501 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36503 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36504 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36505 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36506 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36507 which seems to be undefined. Please make sure it is defined." >&5
36508 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36509 which seems to be undefined. Please make sure it is defined." >&2;}
36513 -) cat "$tmp/out"; rm -f "$tmp/out";;
36514 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36523 # Transform confdefs.h into a sed script `conftest.defines', that
36524 # substitutes the proper values into config.h.in to produce config.h.
36525 rm -f conftest.defines conftest.tail
36526 # First, append a space to every undef/define line, to ease matching.
36527 echo 's/$/ /' >conftest.defines
36528 # Then, protect against being on the right side of a sed subst, or in
36529 # an unquoted here document, in config.status. If some macros were
36530 # called several times there might be several #defines for the same
36531 # symbol, which is useless. But do not sort them, since the last
36532 # AC_DEFINE must be honored.
36533 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36534 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36535 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36536 # PARAMS is the parameter list in the macro definition--in most cases, it's
36537 # just an empty string.
36538 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36539 ac_dB='\\)[ (].*,\\1define\\2'
36547 s/^[ ]*#[ ]*define[ ][ ]*//
36552 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36553 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36554 ' >>conftest.defines
36556 # Remove the space that was appended to ease matching.
36557 # Then replace #undef with comments. This is necessary, for
36558 # example, in the case of _POSIX_SOURCE, which is predefined and required
36559 # on some systems where configure will not decide to define it.
36560 # (The regexp can be short, since the line contains either #define or #undef.)
36562 s,^[ #]*u.*,/* & */,' >>conftest.defines
36564 # Break up conftest.defines:
36565 ac_max_sed_lines=50
36567 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36568 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36569 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36571 ac_in='$ac_file_inputs'
36572 ac_out='"$tmp/out1"'
36573 ac_nxt='"$tmp/out2"'
36577 # Write a here document:
36578 cat >>$CONFIG_STATUS <<_ACEOF
36579 # First, check the format of the line:
36580 cat >"\$tmp/defines.sed" <<\\CEOF
36581 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36582 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36586 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36588 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36589 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36590 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36591 grep . conftest.tail >/dev/null || break
36592 rm -f conftest.defines
36593 mv conftest.tail conftest.defines
36595 rm -f conftest.defines conftest.tail
36597 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36598 cat >>$CONFIG_STATUS <<\_ACEOF
36599 if test x"$ac_file" != x-; then
36600 echo "/* $configure_input */" >"$tmp/config.h"
36601 cat "$ac_result" >>"$tmp/config.h"
36602 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36603 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36604 echo "$as_me: $ac_file is unchanged" >&6;}
36607 mv "$tmp/config.h" $ac_file
36610 echo "/* $configure_input */"
36616 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36617 echo "$as_me: executing $ac_file commands" >&6;}
36622 case $ac_file$ac_mode in
36623 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36624 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36625 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36626 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36627 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36628 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36629 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36630 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36631 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36632 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36633 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36634 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36635 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36636 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36637 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36638 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36639 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36640 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36641 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36642 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36643 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36644 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36645 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36646 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36647 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36648 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36654 { (exit 0); exit 0; }
36656 chmod +x $CONFIG_STATUS
36657 ac_clean_files=$ac_clean_files_save
36660 # configure is writing to config.log, and then calls config.status.
36661 # config.status does its own redirection, appending to config.log.
36662 # Unfortunately, on DOS this fails, as config.log is still kept open
36663 # by configure, so config.status won't be able to write to it; its
36664 # output is simply discarded. So we exec the FD to /dev/null,
36665 # effectively closing config.log, so it can be properly (re)opened and
36666 # appended to by config.status. When coming back to configure, we
36667 # need to make the FD available again.
36668 if test "$no_create" != yes; then
36670 ac_config_status_args=
36671 test "$silent" = yes &&
36672 ac_config_status_args="$ac_config_status_args --quiet"
36674 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36677 # would make configure fail if this is the last instruction.
36678 $ac_cs_success || { (exit 1); exit 1; }
36682 # CONFIG_SUBDIRS section.
36684 if test "$no_recursion" != yes; then
36686 # Remove --cache-file and --srcdir arguments so they do not pile up.
36687 ac_sub_configure_args=
36689 eval "set x $ac_configure_args"
36693 if test -n "$ac_prev"; then
36698 -cache-file | --cache-file | --cache-fil | --cache-fi \
36699 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36700 ac_prev=cache_file ;;
36701 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36702 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36705 --config-cache | -C)
36707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36711 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36713 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36717 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36719 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36723 # Always prepend --prefix to ensure using the same prefix
36724 # in subdir configurations.
36725 ac_arg="--prefix=$prefix"
36727 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36729 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36732 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36734 # Do not complain, so a configure script can configure whichever
36735 # parts of a large source tree are present.
36736 test -d "$srcdir/$ac_dir" || continue
36738 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36739 echo "$as_me:$LINENO: $ac_msg" >&5
36743 -*) as_dir=./$as_dir;;
36745 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36749 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36750 *) as_qdir=$as_dir;;
36752 as_dirs="'$as_qdir' $as_dirs"
36753 as_dir=`$as_dirname -- "$as_dir" ||
36754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36755 X"$as_dir" : 'X\(//\)[^/]' \| \
36756 X"$as_dir" : 'X\(//\)$' \| \
36757 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36763 /^X\(\/\/\)[^/].*/{
36776 test -d "$as_dir" && break
36778 test -z "$as_dirs" || eval "mkdir $as_dirs"
36779 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36780 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36781 { (exit 1); exit 1; }; }; }
36785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36787 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36788 # A ".." for each directory in $ac_dir_suffix.
36789 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36790 case $ac_top_builddir_sub in
36791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36795 ac_abs_top_builddir=$ac_pwd
36796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36797 # for backward compatibility:
36798 ac_top_builddir=$ac_top_build_prefix
36801 .) # We are building in place.
36803 ac_top_srcdir=$ac_top_builddir_sub
36804 ac_abs_top_srcdir=$ac_pwd ;;
36805 [\\/]* | ?:[\\/]* ) # Absolute name.
36806 ac_srcdir=$srcdir$ac_dir_suffix;
36807 ac_top_srcdir=$srcdir
36808 ac_abs_top_srcdir=$srcdir ;;
36809 *) # Relative name.
36810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36811 ac_top_srcdir=$ac_top_build_prefix$srcdir
36812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36819 # Check for guested configure; otherwise get Cygnus style configure.
36820 if test -f "$ac_srcdir/configure.gnu"; then
36821 ac_sub_configure=$ac_srcdir/configure.gnu
36822 elif test -f "$ac_srcdir/configure"; then
36823 ac_sub_configure=$ac_srcdir/configure
36824 elif test -f "$ac_srcdir/configure.in"; then
36825 # This should be Cygnus configure.
36826 ac_sub_configure=$ac_aux_dir/configure
36828 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36829 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36833 # The recursion is here.
36834 if test -n "$ac_sub_configure"; then
36835 # Make the cache file name correct relative to the subdirectory.
36836 case $cache_file in
36837 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36838 *) # Relative name.
36839 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36842 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36843 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36844 # The eval makes quoting arguments work.
36845 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36846 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36847 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36848 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36849 { (exit 1); exit 1; }; }