2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
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-2008 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.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
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
835 ENABLE_EXPENSIVE_CHECKS
845 LLVM_ENUM_ASM_PRINTERS
850 ENABLE_LLVMC_DYNAMIC_PLUGINS
897 CONVENIENCE_LTDL_TRUE
898 CONVENIENCE_LTDL_FALSE
938 ENABLE_VISIBILITY_INLINES_HIDDEN
944 ac_precious_vars='build_alias
958 ac_subdirs_all='projects/sample
960 projects/llvm-stacker
967 projects/llvm-poolalloc
969 projects/llvm-kernel'
971 # Initialize some variables set by options.
973 ac_init_version=false
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
983 program_transform_name=s,x,x,
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008 infodir='${datarootdir}/info'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1021 # If the previous option needs an argument, assign it.
1022 if test -n "$ac_prev"; then
1023 eval $ac_prev=\$ac_option
1029 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 # Accept the important Cygnus configure options, so we can diagnose typos.
1035 case $ac_dashdash$ac_option in
1039 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042 bindir=$ac_optarg ;;
1044 -build | --build | --buil | --bui | --bu)
1045 ac_prev=build_alias ;;
1046 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047 build_alias=$ac_optarg ;;
1049 -cache-file | --cache-file | --cache-fil | --cache-fi \
1050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051 ac_prev=cache_file ;;
1052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054 cache_file=$ac_optarg ;;
1056 --config-cache | -C)
1057 cache_file=config.cache ;;
1059 -datadir | --datadir | --datadi | --datad)
1061 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062 datadir=$ac_optarg ;;
1064 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065 | --dataroo | --dataro | --datar)
1066 ac_prev=datarootdir ;;
1067 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069 datarootdir=$ac_optarg ;;
1071 -disable-* | --disable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1078 eval enable_$ac_feature=no ;;
1080 -docdir | --docdir | --docdi | --doc | --do)
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
1090 -enable-* | --enable-*)
1091 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1097 eval enable_$ac_feature=\$ac_optarg ;;
1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101 | --exec | --exe | --ex)
1102 ac_prev=exec_prefix ;;
1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105 | --exec=* | --exe=* | --ex=*)
1106 exec_prefix=$ac_optarg ;;
1108 -gas | --gas | --ga | --g)
1109 # Obsolete; use --with-gas.
1112 -help | --help | --hel | --he | -h)
1113 ac_init_help=long ;;
1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115 ac_init_help=recursive ;;
1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117 ac_init_help=short ;;
1119 -host | --host | --hos | --ho)
1120 ac_prev=host_alias ;;
1121 -host=* | --host=* | --hos=* | --ho=*)
1122 host_alias=$ac_optarg ;;
1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 htmldir=$ac_optarg ;;
1130 -includedir | --includedir | --includedi | --included | --include \
1131 | --includ | --inclu | --incl | --inc)
1132 ac_prev=includedir ;;
1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134 | --includ=* | --inclu=* | --incl=* | --inc=*)
1135 includedir=$ac_optarg ;;
1137 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140 infodir=$ac_optarg ;;
1142 -libdir | --libdir | --libdi | --libd)
1144 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145 libdir=$ac_optarg ;;
1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148 | --libexe | --libex | --libe)
1149 ac_prev=libexecdir ;;
1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151 | --libexe=* | --libex=* | --libe=*)
1152 libexecdir=$ac_optarg ;;
1154 -localedir | --localedir | --localedi | --localed | --locale)
1155 ac_prev=localedir ;;
1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157 localedir=$ac_optarg ;;
1159 -localstatedir | --localstatedir | --localstatedi | --localstated \
1160 | --localstate | --localstat | --localsta | --localst | --locals)
1161 ac_prev=localstatedir ;;
1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164 localstatedir=$ac_optarg ;;
1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169 mandir=$ac_optarg ;;
1171 -nfp | --nfp | --nf)
1172 # Obsolete; use --without-fp.
1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176 | --no-cr | --no-c | -n)
1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185 | --oldin | --oldi | --old | --ol | --o)
1186 ac_prev=oldincludedir ;;
1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190 oldincludedir=$ac_optarg ;;
1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195 prefix=$ac_optarg ;;
1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198 | --program-pre | --program-pr | --program-p)
1199 ac_prev=program_prefix ;;
1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202 program_prefix=$ac_optarg ;;
1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205 | --program-suf | --program-su | --program-s)
1206 ac_prev=program_suffix ;;
1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209 program_suffix=$ac_optarg ;;
1211 -program-transform-name | --program-transform-name \
1212 | --program-transform-nam | --program-transform-na \
1213 | --program-transform-n | --program-transform- \
1214 | --program-transform | --program-transfor \
1215 | --program-transfo | --program-transf \
1216 | --program-trans | --program-tran \
1217 | --progr-tra | --program-tr | --program-t)
1218 ac_prev=program_transform_name ;;
1219 -program-transform-name=* | --program-transform-name=* \
1220 | --program-transform-nam=* | --program-transform-na=* \
1221 | --program-transform-n=* | --program-transform-=* \
1222 | --program-transform=* | --program-transfor=* \
1223 | --program-transfo=* | --program-transf=* \
1224 | --program-trans=* | --program-tran=* \
1225 | --progr-tra=* | --program-tr=* | --program-t=*)
1226 program_transform_name=$ac_optarg ;;
1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231 pdfdir=$ac_optarg ;;
1233 -psdir | --psdir | --psdi | --psd | --ps)
1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 sbindir=$ac_optarg ;;
1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250 | --sharedst | --shareds | --shared | --share | --shar \
1252 ac_prev=sharedstatedir ;;
1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 sharedstatedir=$ac_optarg ;;
1259 -site | --site | --sit)
1261 -site=* | --site=* | --sit=*)
1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267 srcdir=$ac_optarg ;;
1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270 | --syscon | --sysco | --sysc | --sys | --sy)
1271 ac_prev=sysconfdir ;;
1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274 sysconfdir=$ac_optarg ;;
1276 -target | --target | --targe | --targ | --tar | --ta | --t)
1277 ac_prev=target_alias ;;
1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279 target_alias=$ac_optarg ;;
1281 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 -version | --version | --versio | --versi | --vers | -V)
1285 ac_init_version=: ;;
1288 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_package=`echo $ac_package| sed 's/-/_/g'`
1294 eval with_$ac_package=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1300 { echo "$as_me: error: invalid package name: $ac_package" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_package=`echo $ac_package | sed 's/-/_/g'`
1303 eval with_$ac_package=no ;;
1306 # Obsolete; use --with-x.
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1323 -*) { echo "$as_me: error: unrecognized option: $ac_option
1324 Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333 { (exit 1); exit 1; }; }
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 { echo "$as_me: error: missing argument to $ac_option" >&2
1351 { (exit 1); exit 1; }; }
1354 # Be sure to have absolute directory names.
1355 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir
1360 eval ac_val=\$$ac_var
1362 [\\/$]* | ?:[\\/]* ) continue;;
1363 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1366 { (exit 1); exit 1; }; }
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1374 target=$target_alias
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378 if test "x$build_alias" = x; then
1379 cross_compiling=maybe
1380 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381 If a cross compiler is detected then cross compile mode will be used." >&2
1382 elif test "x$build_alias" != "x$host_alias"; then
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390 test "$silent" = yes && exec 6>/dev/null
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 { echo "$as_me: error: Working directory cannot be determined" >&2
1397 { (exit 1); exit 1; }; }
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 { echo "$as_me: error: pwd does not report name of working directory" >&2
1400 { (exit 1); exit 1; }; }
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$0" ||
1408 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$0" : 'X\(//\)[^/]' \| \
1410 X"$0" : 'X\(//\)$' \| \
1411 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1435 ac_srcdir_defaulted=no
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1440 { (exit 1); exit 1; }; }
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1445 { (exit 1); exit 1; }; }
1447 # When building in place, set srcdir=.
1448 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 # Remove unnecessary trailing slashes from srcdir.
1452 # Double slashes in file names in object file debugging info
1453 # mess up M-x gdb in Emacs.
1455 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 for ac_var in $ac_precious_vars; do
1458 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_env_${ac_var}_value=\$${ac_var}
1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 # Report the --help message.
1467 if test "$ac_init_help" = "long"; then
1468 # Omit some internal or obsolete options to make the list less imposing.
1469 # This message is too long to be a string in the A/UX 3.1 sh.
1471 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1473 Usage: $0 [OPTION]... [VAR=VALUE]...
1475 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476 VAR=VALUE. See below for descriptions of some of the useful variables.
1478 Defaults for the options are specified in brackets.
1481 -h, --help display this help and exit
1482 --help=short display options specific to this package
1483 --help=recursive display the short help of all the included packages
1484 -V, --version display version information and exit
1485 -q, --quiet, --silent do not print \`checking...' messages
1486 --cache-file=FILE cache test results in FILE [disabled]
1487 -C, --config-cache alias for \`--cache-file=config.cache'
1488 -n, --no-create do not create output files
1489 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1491 Installation directories:
1492 --prefix=PREFIX install architecture-independent files in PREFIX
1493 [$ac_default_prefix]
1494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1497 By default, \`make install' will install all the files in
1498 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1499 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500 for instance \`--prefix=\$HOME'.
1502 For better control, use the options below.
1504 Fine tuning of the installation directories:
1505 --bindir=DIR user executables [EPREFIX/bin]
1506 --sbindir=DIR system admin executables [EPREFIX/sbin]
1507 --libexecdir=DIR program executables [EPREFIX/libexec]
1508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
1529 --build=BUILD configure for building on BUILD [guessed]
1530 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1531 --target=TARGET configure for building compilers for TARGET [HOST]
1535 if test -n "$ac_init_help"; then
1536 case $ac_init_help in
1537 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1542 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1543 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1544 --enable-optimized Compile with optimizations enabled (default is NO)
1545 --enable-profiling Compile with profiling enabled (default is NO)
1546 --enable-assertions Compile with assertion checks enabled (default is
1548 --enable-expensive-checks
1549 Compile with expensive debug checks enabled (default
1551 --enable-debug-runtime Build runtime libs with debug symbols (default is
1553 --enable-jit Enable Just In Time Compiling (default is YES)
1554 --enable-doxygen Build doxygen documentation (default is NO)
1555 --enable-threads Use threads if available (default is YES)
1556 --enable-pic Build LLVM with Position Independent Code (default
1558 --enable-targets Build specific host targets:
1559 all,host-only,{target-name} (default=all)
1560 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1562 --enable-bindings Build specific language bindings:
1563 all,auto,none,{binding-name} (default=auto)
1564 --enable-libffi Check for the presence of libffi (default is YES)
1565 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1567 --enable-llvmc-dynamic-plugins
1568 Enable dynamic LLVMC plugins (default is YES)
1569 --enable-ltdl-install install libltdl
1570 --enable-shared[=PKGS] build shared libraries
1572 --enable-static[=PKGS] build static libraries
1574 --enable-fast-install[=PKGS]
1575 optimize for fast installation
1577 --disable-libtool-lock avoid locking (might break parallel builds)
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1584 --with-llvmgcc Specify location of llvm-gcc driver (default
1586 --with-llvmgxx Specify location of llvm-g++ driver (default
1588 --with-extra-options Specify additional options to compile LLVM with
1589 --with-ocaml-libdir Specify install location for ocaml bindings (default
1591 --with-binutils-include Specify path to binutils/include/ containing
1592 plugin-api.h file for gold plugin.
1593 --with-tclinclude directory where tcl headers are
1594 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595 --with-pic try to use only PIC/non-PIC objects [default=use
1597 --with-tags[=TAGS] include additional configurations [automatic]
1598 --with-udis86=<path> Use udis86 external x86 disassembler library
1600 Some influential environment variables:
1601 CC C compiler command
1602 CFLAGS C compiler flags
1603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1604 nonstandard directory <lib dir>
1605 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
1608 CXX C++ compiler command
1609 CXXFLAGS C++ compiler flags
1610 CXXCPP C++ preprocessor
1611 F77 Fortran 77 compiler command
1612 FFLAGS Fortran 77 compiler flags
1614 Use these variables to override the choices made by `configure' or to help
1615 it to find libraries and programs with nonstandard names/locations.
1617 Report bugs to <llvmbugs@cs.uiuc.edu>.
1622 if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625 test -d "$ac_dir" || continue
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1645 .) # We are building in place.
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1650 ac_srcdir=$srcdir$ac_dir_suffix;
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1669 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1678 llvm configure 2.6svn
1679 generated by GNU Autoconf 2.60
1681 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1682 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1686 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1690 cat >config.log <<_ACEOF
1691 This file contains any messages produced by compilers while
1692 running configure, to aid debugging if configure makes a mistake.
1694 It was created by llvm $as_me 2.6svn, which was
1695 generated by GNU Autoconf 2.60. Invocation command line was
1707 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1708 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1709 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1710 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1711 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1714 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1716 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1717 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1718 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1719 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1720 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1721 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1722 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 test -z "$as_dir" && as_dir=.
1731 echo "PATH: $as_dir"
1747 # Keep a trace of the command line.
1748 # Strip out --no-create and --no-recursion so they do not pile up.
1749 # Strip out --silent because we don't want to record it for future runs.
1750 # Also quote any args containing shell meta-characters.
1751 # Make two passes to allow for proper duplicate-argument suppression.
1755 ac_must_keep_next=false
1761 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1763 | -silent | --silent | --silen | --sile | --sil)
1766 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1769 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1772 if test $ac_must_keep_next = true; then
1773 ac_must_keep_next=false # Got value, back to normal.
1776 *=* | --config-cache | -C | -disable-* | --disable-* \
1777 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1778 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1779 | -with-* | --with-* | -without-* | --without-* | --x)
1780 case "$ac_configure_args0 " in
1781 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1784 -* ) ac_must_keep_next=true ;;
1787 ac_configure_args="$ac_configure_args '$ac_arg'"
1792 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1793 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1795 # When interrupted or exit'd, cleanup temporary files, and complete
1796 # config.log. We remove comments because anyway the quotes in there
1797 # would cause problems or look ugly.
1798 # WARNING: Use '\'' to represent an apostrophe within the trap.
1799 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1800 trap 'exit_status=$?
1801 # Save into config.log some information that might help in debugging.
1806 ## ---------------- ##
1807 ## Cache variables. ##
1808 ## ---------------- ##
1811 # The following way of writing the cache mishandles newlines in values,
1813 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1814 eval ac_val=\$$ac_var
1818 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1819 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1822 _ | IFS | as_nl) ;; #(
1823 *) $as_unset $ac_var ;;
1828 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1829 *${as_nl}ac_space=\ *)
1831 "s/'\''/'\''\\\\'\'''\''/g;
1832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1843 ## ----------------- ##
1844 ## Output variables. ##
1845 ## ----------------- ##
1848 for ac_var in $ac_subst_vars
1850 eval ac_val=\$$ac_var
1852 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 echo "$ac_var='\''$ac_val'\''"
1858 if test -n "$ac_subst_files"; then
1860 ## ------------------- ##
1861 ## File substitutions. ##
1862 ## ------------------- ##
1865 for ac_var in $ac_subst_files
1867 eval ac_val=\$$ac_var
1869 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871 echo "$ac_var='\''$ac_val'\''"
1876 if test -s confdefs.h; then
1886 test "$ac_signal" != 0 &&
1887 echo "$as_me: caught signal $ac_signal"
1888 echo "$as_me: exit $exit_status"
1890 rm -f core *.core core.conftest.* &&
1891 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1894 for ac_signal in 1 2 13 15; do
1895 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1899 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1900 rm -f -r conftest* confdefs.h
1902 # Predefined preprocessor variables.
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_NAME "$PACKAGE_NAME"
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_STRING "$PACKAGE_STRING"
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929 # Let the site file select an alternate cache file if it wants to.
1930 # Prefer explicitly selected file to automatically selected ones.
1931 if test -n "$CONFIG_SITE"; then
1932 set x "$CONFIG_SITE"
1933 elif test "x$prefix" != xNONE; then
1934 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1936 set x "$ac_default_prefix/share/config.site" \
1937 "$ac_default_prefix/etc/config.site"
1942 if test -r "$ac_site_file"; then
1943 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1944 echo "$as_me: loading site script $ac_site_file" >&6;}
1945 sed 's/^/| /' "$ac_site_file" >&5
1950 if test -r "$cache_file"; then
1951 # Some versions of bash will fail to source /dev/null (special
1952 # files actually), so we avoid doing that.
1953 if test -f "$cache_file"; then
1954 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1955 echo "$as_me: loading cache $cache_file" >&6;}
1957 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1958 *) . "./$cache_file";;
1962 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1963 echo "$as_me: creating cache $cache_file" >&6;}
1967 # Check that the precious variables saved in the cache have kept the same
1969 ac_cache_corrupted=false
1970 for ac_var in $ac_precious_vars; do
1971 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1972 eval ac_new_set=\$ac_env_${ac_var}_set
1973 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1974 eval ac_new_val=\$ac_env_${ac_var}_value
1975 case $ac_old_set,$ac_new_set in
1977 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1978 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1979 ac_cache_corrupted=: ;;
1981 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1982 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1986 if test "x$ac_old_val" != "x$ac_new_val"; then
1987 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1988 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1989 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1990 echo "$as_me: former value: $ac_old_val" >&2;}
1991 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1992 echo "$as_me: current value: $ac_new_val" >&2;}
1993 ac_cache_corrupted=:
1996 # Pass precious variables to config.status.
1997 if test "$ac_new_set" = set; then
1999 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2000 *) ac_arg=$ac_var=$ac_new_val ;;
2002 case " $ac_configure_args " in
2003 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2004 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2008 if $ac_cache_corrupted; then
2009 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2010 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2012 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2013 { (exit 1); exit 1; }; }
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2057 for ac_dir in autoconf "$srcdir"/autoconf; do
2058 if test -f "$ac_dir/install-sh"; then
2060 ac_install_sh="$ac_aux_dir/install-sh -c"
2062 elif test -f "$ac_dir/install.sh"; then
2064 ac_install_sh="$ac_aux_dir/install.sh -c"
2066 elif test -f "$ac_dir/shtool"; then
2068 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 if test -z "$ac_aux_dir"; then
2073 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2074 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2075 { (exit 1); exit 1; }; }
2078 # These three variables are undocumented and unsupported,
2079 # and are intended to be withdrawn in a future Autoconf release.
2080 # They can cause serious problems if a builder's source tree is in a directory
2081 # whose full name contains unusual characters.
2082 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2083 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2084 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088 if test ${srcdir} != "." ; then
2089 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2090 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2091 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2092 { (exit 1); exit 1; }; }
2096 for i in `ls ${srcdir}/projects`
2098 if test -d ${srcdir}/projects/${i} ; then
2101 sample) subdirs="$subdirs projects/sample"
2103 privbracket) subdirs="$subdirs projects/privbracket"
2105 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2107 # llvm-test is the old name of the test-suite, kept here for backwards
2109 llvm-test) subdirs="$subdirs projects/llvm-test"
2111 test-suite) subdirs="$subdirs projects/test-suite"
2113 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2115 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2117 llvm-java) subdirs="$subdirs projects/llvm-java"
2119 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2121 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2123 poolalloc) subdirs="$subdirs projects/poolalloc"
2125 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2128 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2129 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2136 # Make sure we can run config.sub.
2137 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2138 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2139 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2140 { (exit 1); exit 1; }; }
2142 { echo "$as_me:$LINENO: checking build system type" >&5
2143 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2144 if test "${ac_cv_build+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 ac_build_alias=$build_alias
2148 test "x$ac_build_alias" = x &&
2149 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2150 test "x$ac_build_alias" = x &&
2151 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2152 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2153 { (exit 1); exit 1; }; }
2154 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2155 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2156 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2157 { (exit 1); exit 1; }; }
2160 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2161 echo "${ECHO_T}$ac_cv_build" >&6; }
2162 case $ac_cv_build in
2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2165 echo "$as_me: error: invalid value of canonical build" >&2;}
2166 { (exit 1); exit 1; }; };;
2169 ac_save_IFS=$IFS; IFS='-'
2175 # Remember, the first character of IFS is used to create $*,
2176 # except with old shells:
2179 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2182 { echo "$as_me:$LINENO: checking host system type" >&5
2183 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2184 if test "${ac_cv_host+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test "x$host_alias" = x; then
2188 ac_cv_host=$ac_cv_build
2190 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2191 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2192 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2193 { (exit 1); exit 1; }; }
2197 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2198 echo "${ECHO_T}$ac_cv_host" >&6; }
2201 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2202 echo "$as_me: error: invalid value of canonical host" >&2;}
2203 { (exit 1); exit 1; }; };;
2206 ac_save_IFS=$IFS; IFS='-'
2212 # Remember, the first character of IFS is used to create $*,
2213 # except with old shells:
2216 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2219 { echo "$as_me:$LINENO: checking target system type" >&5
2220 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2221 if test "${ac_cv_target+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 if test "x$target_alias" = x; then
2225 ac_cv_target=$ac_cv_host
2227 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2228 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2229 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2230 { (exit 1); exit 1; }; }
2234 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2235 echo "${ECHO_T}$ac_cv_target" >&6; }
2236 case $ac_cv_target in
2238 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2239 echo "$as_me: error: invalid value of canonical target" >&2;}
2240 { (exit 1); exit 1; }; };;
2242 target=$ac_cv_target
2243 ac_save_IFS=$IFS; IFS='-'
2249 # Remember, the first character of IFS is used to create $*,
2250 # except with old shells:
2253 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2256 # The aliases save the names the user supplied, while $host etc.
2257 # will get canonicalized.
2258 test -n "$target_alias" &&
2259 test "$program_prefix$program_suffix$program_transform_name" = \
2261 program_prefix=${target_alias}-
2263 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2264 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2265 if test "${llvm_cv_os_type+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="AIX"
2273 llvm_cv_platform_type="Unix" ;;
2275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277 llvm_cv_os_type="IRIX"
2278 llvm_cv_platform_type="Unix" ;;
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="Cygwin"
2283 llvm_cv_platform_type="Unix" ;;
2285 llvm_cv_link_all_option="-Wl,-all_load"
2286 llvm_cv_no_link_all_option="-Wl,-noall_load"
2287 llvm_cv_os_type="Darwin"
2288 llvm_cv_platform_type="Unix" ;;
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="FreeBSD"
2293 llvm_cv_platform_type="Unix" ;;
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="OpenBSD"
2298 llvm_cv_platform_type="Unix" ;;
2300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302 llvm_cv_os_type="NetBSD"
2303 llvm_cv_platform_type="Unix" ;;
2305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307 llvm_cv_os_type="DragonFly"
2308 llvm_cv_platform_type="Unix" ;;
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="HP-UX"
2313 llvm_cv_platform_type="Unix" ;;
2315 llvm_cv_link_all_option="-Wl,--whole-archive"
2316 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2317 llvm_cv_os_type="Interix"
2318 llvm_cv_platform_type="Unix" ;;
2320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2322 llvm_cv_os_type="Linux"
2323 llvm_cv_platform_type="Unix" ;;
2325 llvm_cv_link_all_option="-Wl,-z,allextract"
2326 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2327 llvm_cv_os_type="SunOS"
2328 llvm_cv_platform_type="Unix" ;;
2330 llvm_cv_link_all_option="-Wl,--whole-archive"
2331 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2332 llvm_cv_os_type="Win32"
2333 llvm_cv_platform_type="Win32" ;;
2335 llvm_cv_link_all_option="-Wl,--whole-archive"
2336 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2337 llvm_cv_os_type="MingW"
2338 llvm_cv_platform_type="Win32" ;;
2340 llvm_cv_link_all_option=""
2341 llvm_cv_no_link_all_option=""
2342 llvm_cv_os_type="Unknown"
2343 llvm_cv_platform_type="Unknown" ;;
2346 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2347 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2349 if test "$llvm_cv_os_type" = "Unknown" ; then
2350 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2351 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2352 { (exit 1); exit 1; }; }
2358 LINKALL=$llvm_cv_link_all_option
2360 NOLINKALL=$llvm_cv_no_link_all_option
2363 case $llvm_cv_platform_type in
2366 cat >>confdefs.h <<\_ACEOF
2367 #define LLVM_ON_UNIX 1
2377 cat >>confdefs.h <<\_ACEOF
2378 #define LLVM_ON_WIN32 1
2388 { echo "$as_me:$LINENO: checking target architecture" >&5
2389 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2390 if test "${llvm_cv_target_arch+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 i?86-*) llvm_cv_target_arch="x86" ;;
2395 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2396 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2397 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2398 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2399 ia64-*) llvm_cv_target_arch="IA64" ;;
2400 arm*-*) llvm_cv_target_arch="ARM" ;;
2401 mips-*) llvm_cv_target_arch="Mips" ;;
2402 pic16-*) llvm_cv_target_arch="PIC16" ;;
2403 xcore-*) llvm_cv_target_arch="XCore" ;;
2404 msp430-*) llvm_cv_target_arch="MSP430" ;;
2405 *) llvm_cv_target_arch="Unknown" ;;
2408 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2409 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2411 if test "$llvm_cv_target_arch" = "Unknown" ; then
2412 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2413 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2416 # Determine the LLVM native architecture for the target
2417 case "$llvm_cv_target_arch" in
2418 x86) LLVM_NATIVE_ARCH="X86" ;;
2419 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2420 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2423 ARCH=$llvm_cv_target_arch
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2470 if test -z "$ac_cv_prog_CC"; then
2472 # Extract the first word of "gcc", so it can be a program name with args.
2473 set dummy gcc; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$ac_ct_CC"; then
2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_ac_ct_CC="gcc"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2500 if test -n "$ac_ct_CC"; then
2501 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2502 echo "${ECHO_T}$ac_ct_CC" >&6; }
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2508 if test "x$ac_ct_CC" = x; then
2511 case $cross_compiling:$ac_tool_warned in
2513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet. If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&5
2516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet. If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2519 ac_tool_warned=yes ;;
2527 if test -z "$CC"; then
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_CC="${ac_tool_prefix}cc"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 if test -n "$CC"; then
2558 { echo "$as_me:$LINENO: result: $CC" >&5
2559 echo "${ECHO_T}$CC" >&6; }
2561 { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2568 if test -z "$CC"; then
2569 # Extract the first word of "cc", so it can be a program name with args.
2570 set dummy cc; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_CC+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 if test -n "$CC"; then
2577 ac_cv_prog_CC="$CC" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2588 ac_prog_rejected=yes
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 if test $ac_prog_rejected = yes; then
2600 # We found a bogon in the path, so make sure we never use it.
2601 set dummy $ac_cv_prog_CC
2603 if test $# != 0; then
2604 # We chose a different compiler from the bogus one.
2605 # However, it has the same basename, so the bogon will be chosen
2606 # first if we set CC to just the basename; use the full file name.
2608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2614 if test -n "$CC"; then
2615 { echo "$as_me:$LINENO: result: $CC" >&5
2616 echo "${ECHO_T}$CC" >&6; }
2618 { echo "$as_me:$LINENO: result: no" >&5
2619 echo "${ECHO_T}no" >&6; }
2624 if test -z "$CC"; then
2625 if test -n "$ac_tool_prefix"; then
2626 for ac_prog in cl.exe
2628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_CC+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 if test -n "$CC"; then
2657 { echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6; }
2660 { echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6; }
2665 test -n "$CC" && break
2668 if test -z "$CC"; then
2670 for ac_prog in cl.exe
2672 # Extract the first word of "$ac_prog", so it can be a program name with args.
2673 set dummy $ac_prog; ac_word=$2
2674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 if test -n "$ac_ct_CC"; then
2680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 ac_cv_prog_ac_ct_CC="$ac_prog"
2690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2700 if test -n "$ac_ct_CC"; then
2701 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2702 echo "${ECHO_T}$ac_ct_CC" >&6; }
2704 { echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6; }
2709 test -n "$ac_ct_CC" && break
2712 if test "x$ac_ct_CC" = x; then
2715 case $cross_compiling:$ac_tool_warned in
2717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2718 whose name does not start with the host triplet. If you think this
2719 configuration is useful to you, please write to autoconf@gnu.org." >&5
2720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet. If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2723 ac_tool_warned=yes ;;
2732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: no acceptable C compiler found in \$PATH
2735 See \`config.log' for more details." >&2;}
2736 { (exit 1); exit 1; }; }
2738 # Provide some information about the compiler.
2739 echo "$as_me:$LINENO: checking for C compiler version" >&5
2740 ac_compiler=`set X $ac_compile; echo $2`
2741 { (ac_try="$ac_compiler --version >&5"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler --version >&5") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
2751 { (ac_try="$ac_compiler -v >&5"
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler -v >&5") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2761 { (ac_try="$ac_compiler -V >&5"
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compiler -V >&5") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2772 cat >conftest.$ac_ext <<_ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2787 ac_clean_files_save=$ac_clean_files
2788 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2789 # Try to create an executable without -o first, disregard a.out.
2790 # It will help us diagnose broken compilers, and finding out an intuition
2792 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2793 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2794 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2796 # List of possible output files, starting from the most likely.
2797 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2798 # only as a last resort. b.out is created by i960 compilers.
2799 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2801 # The IRIX 6 linker writes into existing files which may not be
2802 # executable, retaining their permissions. Remove them first so a
2803 # subsequent execution test works.
2805 for ac_file in $ac_files
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814 if { (ac_try="$ac_link_default"
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_link_default") 2>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; then
2824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2827 # so that the user can short-circuit this test for compilers unknown to
2829 for ac_file in $ac_files
2831 test -f "$ac_file" || continue
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2836 # We found the default executable, but exeext='' is most
2840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844 # We set ac_cv_exeext here because the later test for it is not
2845 # safe: cross compilers may not add the suffix if given an `-o'
2846 # argument, so we may need to know it at that point already.
2847 # Even if this section looks crufty: it has the advantage of
2854 test "$ac_cv_exeext" = no && ac_cv_exeext=
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2860 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: C compiler cannot create executables
2863 See \`config.log' for more details." >&2;}
2864 { (exit 77); exit 77; }; }
2867 ac_exeext=$ac_cv_exeext
2868 { echo "$as_me:$LINENO: result: $ac_file" >&5
2869 echo "${ECHO_T}$ac_file" >&6; }
2871 # Check that the compiler produces executables we can run. If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2874 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2875 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2876 # If not cross compiling, check that we can run a simple program.
2877 if test "$cross_compiling" != yes; then
2878 if { ac_try='./$ac_file'
2879 { (case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_try") 2>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2890 if test "$cross_compiling" = maybe; then
2893 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2894 If you meant to cross compile, use \`--host'.
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&2;}
2899 { (exit 1); exit 1; }; }
2903 { echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6; }
2906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2907 ac_clean_files=$ac_clean_files_save
2908 # Check that the compiler produces executables we can run. If not, either
2909 # the compiler is broken, or we cross compile.
2910 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2912 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2913 echo "${ECHO_T}$cross_compiling" >&6; }
2915 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2917 if { (ac_try="$ac_link"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_link") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; then
2927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2928 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2929 # work properly (i.e., refer to `conftest.exe'), while it won't with
2931 for ac_file in conftest.exe conftest conftest.*; do
2932 test -f "$ac_file" || continue
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&2;}
2945 { (exit 1); exit 1; }; }
2948 rm -f conftest$ac_cv_exeext
2949 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2950 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2952 rm -f conftest.$ac_ext
2953 EXEEXT=$ac_cv_exeext
2955 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2957 if test "${ac_cv_objext+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2975 rm -f conftest.o conftest.obj
2976 if { (ac_try="$ac_compile"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; then
2986 for ac_file in conftest.o conftest.obj conftest.*; do
2987 test -f "$ac_file" || continue;
2989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2990 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log' for more details." >&2;}
3002 { (exit 1); exit 1; }; }
3005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3008 echo "${ECHO_T}$ac_cv_objext" >&6; }
3009 OBJEXT=$ac_cv_objext
3011 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3012 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3013 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3080 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3081 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3082 GCC=`test $ac_compiler_gnu = yes && echo yes`
3083 ac_test_CFLAGS=${CFLAGS+set}
3084 ac_save_CFLAGS=$CFLAGS
3085 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3086 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_cc_g+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 ac_save_c_werror_flag=$ac_c_werror_flag
3091 ac_c_werror_flag=yes
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3205 cat >conftest.$ac_ext <<_ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3220 rm -f conftest.$ac_objext
3221 if { (ac_try="$ac_compile"
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compile") 2>conftest.er1
3229 grep -v '^ *+' conftest.er1 >conftest.err
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } &&
3234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3235 { (case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_try") 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try='test -s conftest.$ac_objext'
3245 { (case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_try") 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_c_werror_flag=$ac_save_c_werror_flag
3271 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3272 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3273 if test "$ac_test_CFLAGS" = set; then
3274 CFLAGS=$ac_save_CFLAGS
3275 elif test $ac_cv_prog_cc_g = yes; then
3276 if test "$GCC" = yes; then
3282 if test "$GCC" = yes; then
3288 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3289 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3290 if test "${ac_cv_prog_cc_c89+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 ac_cv_prog_cc_c89=no
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3303 #include <sys/types.h>
3304 #include <sys/stat.h>
3305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3306 struct buf { int x; };
3307 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3308 static char *e (p, i)
3314 static char *f (char * (*g) (char **, int), char **p, ...)
3319 s = g (p, va_arg (v,int));
3324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3325 function prototypes and stuff, but not '\xHH' hex character constants.
3326 These don't provoke an error unfortunately, instead are silently treated
3327 as 'x'. The following induces an error, until -std is added to get
3328 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3329 array size at least. It's necessary to write '\x00'==0 to get something
3330 that's true only with -std. */
3331 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3334 inside strings and character constants. */
3336 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3338 int test (int i, double x);
3339 struct s1 {int (*f) (int a);};
3340 struct s2 {int (*f) (double a);};
3341 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3347 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3352 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3353 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3355 CC="$ac_save_CC $ac_arg"
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
3370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try='test -s conftest.$ac_objext'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 ac_cv_prog_cc_c89=$ac_arg
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3398 rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
3401 rm -f conftest.$ac_ext
3406 case "x$ac_cv_prog_cc_c89" in
3408 { echo "$as_me:$LINENO: result: none needed" >&5
3409 echo "${ECHO_T}none needed" >&6; } ;;
3411 { echo "$as_me:$LINENO: result: unsupported" >&5
3412 echo "${ECHO_T}unsupported" >&6; } ;;
3414 CC="$CC $ac_cv_prog_cc_c89"
3415 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3416 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3434 # On Suns, sometimes $CPP names a directory.
3435 if test -n "$CPP" && test -d "$CPP"; then
3438 if test -z "$CPP"; then
3439 if test "${ac_cv_prog_CPP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 # Double quotes because CPP needs to be expanded
3443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3446 for ac_c_preproc_warn_flag in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3461 # include <limits.h>
3463 # include <assert.h>
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475 grep -v '^ *+' conftest.er1 >conftest.err
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null; then
3480 if test -s conftest.err; then
3481 ac_cpp_err=$ac_c_preproc_warn_flag
3482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3489 if test -z "$ac_cpp_err"; then
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3495 # Broken: fails on valid input.
3499 rm -f conftest.err conftest.$ac_ext
3501 # OK, works on sane cases. Now check whether nonexistent headers
3502 # can be detected and how.
3503 cat >conftest.$ac_ext <<_ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509 #include <ac_nonexistent.h>
3511 if { (ac_try="$ac_cpp conftest.$ac_ext"
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev/null; then
3524 if test -s conftest.err; then
3525 ac_cpp_err=$ac_c_preproc_warn_flag
3526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3533 if test -z "$ac_cpp_err"; then
3534 # Broken: success on invalid input.
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 # Passes both tests.
3545 rm -f conftest.err conftest.$ac_ext
3548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3549 rm -f conftest.err conftest.$ac_ext
3550 if $ac_preproc_ok; then
3562 { echo "$as_me:$LINENO: result: $CPP" >&5
3563 echo "${ECHO_T}$CPP" >&6; }
3565 for ac_c_preproc_warn_flag in '' yes
3567 # Use a header file that comes with gcc, so configuring glibc
3568 # with a fresh cross-compiler works.
3569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570 # <limits.h> exists even on freestanding compilers.
3571 # On the NeXT, cc -E runs the code through the compiler's parser,
3572 # not just through cpp. "Syntax error" is here to catch this case.
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 # include <limits.h>
3582 # include <assert.h>
3586 if { (ac_try="$ac_cpp conftest.$ac_ext"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } >/dev/null; then
3599 if test -s conftest.err; then
3600 ac_cpp_err=$ac_c_preproc_warn_flag
3601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3608 if test -z "$ac_cpp_err"; then
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3614 # Broken: fails on valid input.
3618 rm -f conftest.err conftest.$ac_ext
3620 # OK, works on sane cases. Now check whether nonexistent headers
3621 # can be detected and how.
3622 cat >conftest.$ac_ext <<_ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3628 #include <ac_nonexistent.h>
3630 if { (ac_try="$ac_cpp conftest.$ac_ext"
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3638 grep -v '^ *+' conftest.er1 >conftest.err
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } >/dev/null; then
3643 if test -s conftest.err; then
3644 ac_cpp_err=$ac_c_preproc_warn_flag
3645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3652 if test -z "$ac_cpp_err"; then
3653 # Broken: success on invalid input.
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 # Passes both tests.
3664 rm -f conftest.err conftest.$ac_ext
3667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3668 rm -f conftest.err conftest.$ac_ext
3669 if $ac_preproc_ok; then
3672 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3673 See \`config.log' for more details." >&5
3674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3675 See \`config.log' for more details." >&2;}
3676 { (exit 1); exit 1; }; }
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3687 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3688 if test "${ac_cv_path_GREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 # Extract the first word of "grep ggrep" to use in msg output
3692 if test -z "$GREP"; then
3693 set dummy grep ggrep; ac_prog_name=$2
3694 if test "${ac_cv_path_GREP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 ac_path_GREP_found=false
3698 # Loop through the user's path and test for each of PROGNAME-LIST
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3703 test -z "$as_dir" && as_dir=.
3704 for ac_prog in grep ggrep; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3707 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3708 # Check for GNU ac_path_GREP and select it if it is found.
3709 # Check for GNU $ac_path_GREP
3710 case `"$ac_path_GREP" --version 2>&1` in
3712 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3715 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3718 cat "conftest.in" "conftest.in" >"conftest.tmp"
3719 mv "conftest.tmp" "conftest.in"
3720 cp "conftest.in" "conftest.nl"
3721 echo 'GREP' >> "conftest.nl"
3722 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724 ac_count=`expr $ac_count + 1`
3725 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3726 # Best one so far, save it but keep looking for a better one
3727 ac_cv_path_GREP="$ac_path_GREP"
3728 ac_path_GREP_max=$ac_count
3730 # 10*(2^10) chars as input seems more than enough
3731 test $ac_count -gt 10 && break
3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3737 $ac_path_GREP_found && break 3
3747 GREP="$ac_cv_path_GREP"
3748 if test -z "$GREP"; then
3749 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3750 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3751 { (exit 1); exit 1; }; }
3755 ac_cv_path_GREP=$GREP
3760 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3761 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3762 GREP="$ac_cv_path_GREP"
3765 { echo "$as_me:$LINENO: checking for egrep" >&5
3766 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3767 if test "${ac_cv_path_EGREP+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3771 then ac_cv_path_EGREP="$GREP -E"
3773 # Extract the first word of "egrep" to use in msg output
3774 if test -z "$EGREP"; then
3775 set dummy egrep; ac_prog_name=$2
3776 if test "${ac_cv_path_EGREP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 ac_path_EGREP_found=false
3780 # Loop through the user's path and test for each of PROGNAME-LIST
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3785 test -z "$as_dir" && as_dir=.
3786 for ac_prog in egrep; do
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3789 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3790 # Check for GNU ac_path_EGREP and select it if it is found.
3791 # Check for GNU $ac_path_EGREP
3792 case `"$ac_path_EGREP" --version 2>&1` in
3794 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3797 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3800 cat "conftest.in" "conftest.in" >"conftest.tmp"
3801 mv "conftest.tmp" "conftest.in"
3802 cp "conftest.in" "conftest.nl"
3803 echo 'EGREP' >> "conftest.nl"
3804 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3806 ac_count=`expr $ac_count + 1`
3807 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3808 # Best one so far, save it but keep looking for a better one
3809 ac_cv_path_EGREP="$ac_path_EGREP"
3810 ac_path_EGREP_max=$ac_count
3812 # 10*(2^10) chars as input seems more than enough
3813 test $ac_count -gt 10 && break
3815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3819 $ac_path_EGREP_found && break 3
3829 EGREP="$ac_cv_path_EGREP"
3830 if test -z "$EGREP"; then
3831 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3832 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3833 { (exit 1); exit 1; }; }
3837 ac_cv_path_EGREP=$EGREP
3843 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3844 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3845 EGREP="$ac_cv_path_EGREP"
3848 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3850 if test "${ac_cv_header_stdc+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 cat >conftest.$ac_ext <<_ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3872 rm -f conftest.$ac_objext
3873 if { (ac_try="$ac_compile"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_compile") 2>conftest.er1
3881 grep -v '^ *+' conftest.er1 >conftest.err
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } &&
3886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3887 { (case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_try") 2>&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest.$ac_objext'
3897 { (case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_try") 2>&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_header_stdc=yes
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 ac_cv_header_stdc=no
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 if test $ac_cv_header_stdc = yes; then
3917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 $EGREP "memchr" >/dev/null 2>&1; then
3931 ac_cv_header_stdc=no
3937 if test $ac_cv_header_stdc = yes; then
3938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3939 cat >conftest.$ac_ext <<_ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3949 $EGREP "free" >/dev/null 2>&1; then
3952 ac_cv_header_stdc=no
3958 if test $ac_cv_header_stdc = yes; then
3959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3960 if test "$cross_compiling" = yes; then
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3971 #if ((' ' & 0x0FF) == 0x020)
3972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3975 # define ISLOWER(c) \
3976 (('a' <= (c) && (c) <= 'i') \
3977 || ('j' <= (c) && (c) <= 'r') \
3978 || ('s' <= (c) && (c) <= 'z'))
3979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3987 for (i = 0; i < 256; i++)
3988 if (XOR (islower (i), ISLOWER (i))
3989 || toupper (i) != TOUPPER (i))
3994 rm -f conftest$ac_exeext
3995 if { (ac_try="$ac_link"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_link") 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4005 { (case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_try") 2>&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4016 echo "$as_me: program exited with status $ac_status" >&5
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4021 ac_cv_header_stdc=no
4023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4029 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4030 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4031 if test $ac_cv_header_stdc = yes; then
4033 cat >>confdefs.h <<\_ACEOF
4034 #define STDC_HEADERS 1
4039 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4049 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4050 inttypes.h stdint.h unistd.h
4052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 cat >conftest.$ac_ext <<_ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 $ac_includes_default
4066 #include <$ac_header>
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4077 grep -v '^ *+' conftest.er1 >conftest.err
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 eval "$as_ac_Header=yes"
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 eval "$as_ac_Header=no"
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_res=`eval echo '${'$as_ac_Header'}'`
4113 { echo "$as_me:$LINENO: result: $ac_res" >&5
4114 echo "${ECHO_T}$ac_res" >&6; }
4115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4116 cat >>confdefs.h <<_ACEOF
4117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4125 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4126 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4127 if test "${ac_cv_c_bigendian+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 # See if sys/param.h defines the BYTE_ORDER macro.
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <sys/types.h>
4138 #include <sys/param.h>
4143 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4151 rm -f conftest.$ac_objext
4152 if { (ac_try="$ac_compile"
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_compile") 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_try") 2>&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; }; then
4185 # It does; now see whether it defined to BIG_ENDIAN or not.
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 #include <sys/types.h>
4193 #include <sys/param.h>
4198 #if BYTE_ORDER != BIG_ENDIAN
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4215 grep -v '^ *+' conftest.er1 >conftest.err
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_cv_c_bigendian=yes
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_cv_c_bigendian=no
4248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 # It does not; compile a test program.
4254 if test "$cross_compiling" = yes; then
4255 # try to guess the endianness by grepping values into an object file
4256 ac_cv_c_bigendian=unknown
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4264 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4265 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4266 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4267 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4268 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4272 _ascii (); _ebcdic ();
4277 rm -f conftest.$ac_objext
4278 if { (ac_try="$ac_compile"
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_compile") 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4292 { (case "(($ac_try" in
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_try") 2>&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_try") 2>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4312 ac_cv_c_bigendian=yes
4314 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4315 if test "$ac_cv_c_bigendian" = unknown; then
4316 ac_cv_c_bigendian=no
4318 # finding both strings is unlikely to happen, but who knows?
4319 ac_cv_c_bigendian=unknown
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 $ac_includes_default
4342 /* Are we little or big endian? From Harbison&Steele. */
4346 char c[sizeof (long int)];
4349 return u.c[sizeof (long int) - 1] == 1;
4355 rm -f conftest$ac_exeext
4356 if { (ac_try="$ac_link"
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_link") 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4366 { (case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_try") 2>&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 ac_cv_c_bigendian=no
4377 echo "$as_me: program exited with status $ac_status" >&5
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4382 ac_cv_c_bigendian=yes
4384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4393 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4394 case $ac_cv_c_bigendian in
4402 { { echo "$as_me:$LINENO: error: unknown endianness
4403 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4404 echo "$as_me: error: unknown endianness
4405 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4406 { (exit 1); exit 1; }; } ;;
4410 if test "$cross_compiling" = yes; then
4411 LLVM_CROSS_COMPILING=1
4414 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4415 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4416 if test "${ac_cv_build_exeext+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4420 ac_cv_build_exeext=.exe
4422 ac_build_prefix=${build_alias}-
4424 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4425 set dummy ${ac_build_prefix}gcc; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 if test -n "$BUILD_CC"; then
4432 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4441 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 BUILD_CC=$ac_cv_prog_BUILD_CC
4452 if test -n "$BUILD_CC"; then
4453 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4454 echo "${ECHO_T}$BUILD_CC" >&6; }
4456 { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4461 if test -z "$BUILD_CC"; then
4462 # Extract the first word of "gcc", so it can be a program name with args.
4463 set dummy gcc; ac_word=$2
4464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4466 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 if test -n "$BUILD_CC"; then
4470 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_BUILD_CC="gcc"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 BUILD_CC=$ac_cv_prog_BUILD_CC
4490 if test -n "$BUILD_CC"; then
4491 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4492 echo "${ECHO_T}$BUILD_CC" >&6; }
4494 { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4499 if test -z "$BUILD_CC"; then
4500 # Extract the first word of "cc", so it can be a program name with args.
4501 set dummy cc; ac_word=$2
4502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4504 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 if test -n "$BUILD_CC"; then
4508 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4519 ac_prog_rejected=yes
4522 ac_cv_prog_BUILD_CC="cc"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 if test $ac_prog_rejected = yes; then
4531 # We found a bogon in the path, so make sure we never use it.
4532 set dummy $ac_cv_prog_BUILD_CC
4534 if test $# != 0; then
4535 # We chose a different compiler from the bogus one.
4536 # However, it has the same basename, so the bogon will be chosen
4537 # first if we set BUILD_CC to just the basename; use the full file name.
4539 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4544 BUILD_CC=$ac_cv_prog_BUILD_CC
4545 if test -n "$BUILD_CC"; then
4546 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4547 echo "${ECHO_T}$BUILD_CC" >&6; }
4549 { echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6; }
4556 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4557 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4558 { (exit 1); exit 1; }; }
4559 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4561 echo 'int main () { return 0; }' > conftest.$ac_ext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4564 (eval $ac_build_link) 2>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; then
4568 for file in conftest.*; do
4570 *.c | *.o | *.obj | *.dSYM) ;;
4571 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4575 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4576 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4577 { (exit 1); exit 1; }; }
4580 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4585 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4586 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4587 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4588 ac_build_exeext=$BUILD_EXEEXT
4590 ac_build_prefix=${build_alias}-
4591 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4592 set dummy ${ac_build_prefix}g++; ac_word=$2
4593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 if test -n "$BUILD_CXX"; then
4599 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4619 if test -n "$BUILD_CXX"; then
4620 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4621 echo "${ECHO_T}$BUILD_CXX" >&6; }
4623 { echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6; }
4628 if test -z "$BUILD_CXX"; then
4629 # Extract the first word of "g++", so it can be a program name with args.
4630 set dummy g++; ac_word=$2
4631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 if test -n "$BUILD_CXX"; then
4637 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_BUILD_CXX="g++"
4647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4657 if test -n "$BUILD_CXX"; then
4658 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4659 echo "${ECHO_T}$BUILD_CXX" >&6; }
4661 { echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6; }
4666 if test -z "$BUILD_CXX"; then
4667 # Extract the first word of "c++", so it can be a program name with args.
4668 set dummy c++; ac_word=$2
4669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4671 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 if test -n "$BUILD_CXX"; then
4675 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4686 ac_prog_rejected=yes
4689 ac_cv_prog_BUILD_CXX="c++"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 if test $ac_prog_rejected = yes; then
4698 # We found a bogon in the path, so make sure we never use it.
4699 set dummy $ac_cv_prog_BUILD_CXX
4701 if test $# != 0; then
4702 # We chose a different compiler from the bogus one.
4703 # However, it has the same basename, so the bogon will be chosen
4704 # first if we set BUILD_CXX to just the basename; use the full file name.
4706 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4711 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4712 if test -n "$BUILD_CXX"; then
4713 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4714 echo "${ECHO_T}$BUILD_CXX" >&6; }
4716 { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4724 LLVM_CROSS_COMPILING=0
4728 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4739 # Check whether --enable-optimized was given.
4740 if test "${enable_optimized+set}" = set; then
4741 enableval=$enable_optimized;
4746 if test ${enableval} = "no" ; then
4750 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4754 # Check whether --enable-profiling was given.
4755 if test "${enable_profiling+set}" = set; then
4756 enableval=$enable_profiling;
4761 if test ${enableval} = "no" ; then
4765 ENABLE_PROFILING=ENABLE_PROFILING=1
4769 # Check whether --enable-assertions was given.
4770 if test "${enable_assertions+set}" = set; then
4771 enableval=$enable_assertions;
4776 if test ${enableval} = "yes" ; then
4780 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4784 # Check whether --enable-expensive-checks was given.
4785 if test "${enable_expensive_checks+set}" = set; then
4786 enableval=$enable_expensive_checks;
4791 if test ${enableval} = "yes" ; then
4792 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4794 EXPENSIVE_CHECKS=yes
4797 ENABLE_EXPENSIVE_CHECKS=
4803 # Check whether --enable-debug-runtime was given.
4804 if test "${enable_debug_runtime+set}" = set; then
4805 enableval=$enable_debug_runtime;
4810 if test ${enableval} = "no" ; then
4814 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4818 # Check whether --enable-jit was given.
4819 if test "${enable_jit+set}" = set; then
4820 enableval=$enable_jit;
4825 if test ${enableval} = "no"
4830 case "$llvm_cv_target_arch" in
4831 x86) TARGET_HAS_JIT=1
4833 Sparc) TARGET_HAS_JIT=0
4835 PowerPC) TARGET_HAS_JIT=1
4837 x86_64) TARGET_HAS_JIT=1
4839 Alpha) TARGET_HAS_JIT=1
4841 IA64) TARGET_HAS_JIT=0
4843 ARM) TARGET_HAS_JIT=0
4845 Mips) TARGET_HAS_JIT=0
4847 PIC16) TARGET_HAS_JIT=0
4849 XCore) TARGET_HAS_JIT=0
4851 MSP430) TARGET_HAS_JIT=0
4858 # Check whether --enable-doxygen was given.
4859 if test "${enable_doxygen+set}" = set; then
4860 enableval=$enable_doxygen;
4865 case "$enableval" in
4866 yes) ENABLE_DOXYGEN=1
4868 no) ENABLE_DOXYGEN=0
4870 default) ENABLE_DOXYGEN=0
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4877 # Check whether --enable-threads was given.
4878 if test "${enable_threads+set}" = set; then
4879 enableval=$enable_threads;
4884 case "$enableval" in
4885 yes) ENABLE_THREADS=1
4887 no) ENABLE_THREADS=0
4889 default) ENABLE_THREADS=1
4891 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4892 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4893 { (exit 1); exit 1; }; } ;;
4896 cat >>confdefs.h <<_ACEOF
4897 #define ENABLE_THREADS $ENABLE_THREADS
4901 # Check whether --enable-pic was given.
4902 if test "${enable_pic+set}" = set; then
4903 enableval=$enable_pic;
4908 case "$enableval" in
4913 default) ENABLE_PIC=1
4915 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4916 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4917 { (exit 1); exit 1; }; } ;;
4920 cat >>confdefs.h <<_ACEOF
4921 #define ENABLE_PIC $ENABLE_PIC
4926 # Check whether --enable-targets was given.
4927 if test "${enable_targets+set}" = set; then
4928 enableval=$enable_targets;
4933 case "$enableval" in
4934 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4936 case "$llvm_cv_target_arch" in
4937 x86) TARGETS_TO_BUILD="X86" ;;
4938 x86_64) TARGETS_TO_BUILD="X86" ;;
4939 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4940 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4941 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4942 IA64) TARGETS_TO_BUILD="IA64" ;;
4943 ARM) TARGETS_TO_BUILD="ARM" ;;
4944 Mips) TARGETS_TO_BUILD="Mips" ;;
4945 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4946 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4947 XCore) TARGETS_TO_BUILD="XCore" ;;
4948 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4949 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4950 echo "$as_me: error: Can not set target to build" >&2;}
4951 { (exit 1); exit 1; }; } ;;
4954 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4956 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4957 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4959 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4960 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4961 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4962 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4963 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4964 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4965 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4966 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4967 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4968 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4969 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4970 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4971 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4972 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4978 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4981 # Determine whether we are building LLVM support for the native architecture.
4982 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4983 for a_target in $TARGETS_TO_BUILD; do
4984 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4985 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4987 cat >>confdefs.h <<_ACEOF
4988 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4994 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4995 # Targets.def and AsmPrinters.def.
4996 LLVM_ENUM_TARGETS=""
4997 LLVM_ENUM_ASM_PRINTERS=""
4998 for target_to_build in $TARGETS_TO_BUILD; do
4999 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5000 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5001 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5007 # Check whether --enable-cbe-printf-a was given.
5008 if test "${enable_cbe_printf_a+set}" = set; then
5009 enableval=$enable_cbe_printf_a;
5014 case "$enableval" in
5015 yes) ENABLE_CBE_PRINTF_A=1
5017 no) ENABLE_CBE_PRINTF_A=0
5019 default) ENABLE_CBE_PRINTF_A=1
5021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5022 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5023 { (exit 1); exit 1; }; } ;;
5026 cat >>confdefs.h <<_ACEOF
5027 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5032 # Check whether --with-llvmgccdir was given.
5033 if test "${with_llvmgccdir+set}" = set; then
5034 withval=$with_llvmgccdir;
5040 default) WITH_LLVMGCCDIR=default ;;
5041 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5042 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5043 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5044 { (exit 1); exit 1; }; } ;;
5048 # Check whether --with-llvmgcc was given.
5049 if test "${with_llvmgcc+set}" = set; then
5050 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5056 # Check whether --with-llvmgxx was given.
5057 if test "${with_llvmgxx+set}" = set; then
5058 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5063 if test -n "$LLVMGCC"; then
5064 LLVMGCCCOMMAND="$LLVMGCC"
5067 if test -n "$LLVMGXX"; then
5068 LLVMGXXCOMMAND="$LLVMGXX"
5071 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5072 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5073 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5074 { (exit 1); exit 1; }; };
5077 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5078 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5079 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5080 { (exit 1); exit 1; }; };
5084 # Check whether --with-extra-options was given.
5085 if test "${with_extra_options+set}" = set; then
5086 withval=$with_extra_options;
5092 default) EXTRA_OPTIONS= ;;
5093 *) EXTRA_OPTIONS=$withval ;;
5095 EXTRA_OPTIONS=$EXTRA_OPTIONS
5098 # Check whether --enable-bindings was given.
5099 if test "${enable_bindings+set}" = set; then
5100 enableval=$enable_bindings;
5105 BINDINGS_TO_BUILD=""
5106 case "$enableval" in
5107 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5108 all ) BINDINGS_TO_BUILD="ocaml" ;;
5109 none | no) BINDINGS_TO_BUILD="" ;;
5110 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5111 case "$a_binding" in
5112 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5113 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5114 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5115 { (exit 1); exit 1; }; } ;;
5122 # Check whether --with-ocaml-libdir was given.
5123 if test "${with_ocaml_libdir+set}" = set; then
5124 withval=$with_ocaml_libdir;
5130 auto) with_ocaml_libdir="$withval" ;;
5131 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5132 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5133 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5134 { (exit 1); exit 1; }; } ;;
5138 # Check whether --with-binutils-include was given.
5139 if test "${with_binutils_include+set}" = set; then
5140 withval=$with_binutils_include;
5146 default) WITH_BINUTILS_INCDIR=default ;;
5147 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5148 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5149 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5150 { (exit 1); exit 1; }; } ;;
5152 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5153 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5155 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5156 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5157 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5158 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5159 { (exit 1); exit 1; }; };
5163 # Check whether --enable-libffi was given.
5164 if test "${enable_libffi+set}" = set; then
5165 enableval=$enable_libffi;
5170 case "$enableval" in
5171 yes) llvm_cv_enable_libffi="yes" ;;
5172 no) llvm_cv_enable_libffi="no" ;;
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5178 if test "$llvm_cv_os_type" = "Win32" ; then
5184 # Check whether --enable-llvmc-dynamic was given.
5185 if test "${enable_llvmc_dynamic+set}" = set; then
5186 enableval=$enable_llvmc_dynamic;
5188 enableval=$llvmc_dynamic
5191 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5192 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5195 ENABLE_LLVMC_DYNAMIC=
5199 # Check whether --enable-llvmc-dynamic-plugins was given.
5200 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5201 enableval=$enable_llvmc_dynamic_plugins;
5206 if test ${enableval} = "yes" ; then
5207 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5210 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5221 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5222 # On Suns, sometimes $CPP names a directory.
5223 if test -n "$CPP" && test -d "$CPP"; then
5226 if test -z "$CPP"; then
5227 if test "${ac_cv_prog_CPP+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 # Double quotes because CPP needs to be expanded
5231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5234 for ac_c_preproc_warn_flag in '' yes
5236 # Use a header file that comes with gcc, so configuring glibc
5237 # with a fresh cross-compiler works.
5238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239 # <limits.h> exists even on freestanding compilers.
5240 # On the NeXT, cc -E runs the code through the compiler's parser,
5241 # not just through cpp. "Syntax error" is here to catch this case.
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5249 # include <limits.h>
5251 # include <assert.h>
5255 if { (ac_try="$ac_cpp conftest.$ac_ext"
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5263 grep -v '^ *+' conftest.er1 >conftest.err
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } >/dev/null; then
5268 if test -s conftest.err; then
5269 ac_cpp_err=$ac_c_preproc_warn_flag
5270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5277 if test -z "$ac_cpp_err"; then
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5283 # Broken: fails on valid input.
5287 rm -f conftest.err conftest.$ac_ext
5289 # OK, works on sane cases. Now check whether nonexistent headers
5290 # can be detected and how.
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 #include <ac_nonexistent.h>
5299 if { (ac_try="$ac_cpp conftest.$ac_ext"
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5307 grep -v '^ *+' conftest.er1 >conftest.err
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } >/dev/null; then
5312 if test -s conftest.err; then
5313 ac_cpp_err=$ac_c_preproc_warn_flag
5314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5321 if test -z "$ac_cpp_err"; then
5322 # Broken: success on invalid input.
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 # Passes both tests.
5333 rm -f conftest.err conftest.$ac_ext
5336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337 rm -f conftest.err conftest.$ac_ext
5338 if $ac_preproc_ok; then
5350 { echo "$as_me:$LINENO: result: $CPP" >&5
5351 echo "${ECHO_T}$CPP" >&6; }
5353 for ac_c_preproc_warn_flag in '' yes
5355 # Use a header file that comes with gcc, so configuring glibc
5356 # with a fresh cross-compiler works.
5357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5358 # <limits.h> exists even on freestanding compilers.
5359 # On the NeXT, cc -E runs the code through the compiler's parser,
5360 # not just through cpp. "Syntax error" is here to catch this case.
5361 cat >conftest.$ac_ext <<_ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5368 # include <limits.h>
5370 # include <assert.h>
5374 if { (ac_try="$ac_cpp conftest.$ac_ext"
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } >/dev/null; then
5387 if test -s conftest.err; then
5388 ac_cpp_err=$ac_c_preproc_warn_flag
5389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5396 if test -z "$ac_cpp_err"; then
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5402 # Broken: fails on valid input.
5406 rm -f conftest.err conftest.$ac_ext
5408 # OK, works on sane cases. Now check whether nonexistent headers
5409 # can be detected and how.
5410 cat >conftest.$ac_ext <<_ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #include <ac_nonexistent.h>
5418 if { (ac_try="$ac_cpp conftest.$ac_ext"
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } >/dev/null; then
5431 if test -s conftest.err; then
5432 ac_cpp_err=$ac_c_preproc_warn_flag
5433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5440 if test -z "$ac_cpp_err"; then
5441 # Broken: success on invalid input.
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 # Passes both tests.
5452 rm -f conftest.err conftest.$ac_ext
5455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5456 rm -f conftest.err conftest.$ac_ext
5457 if $ac_preproc_ok; then
5460 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5461 See \`config.log' for more details." >&5
5462 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5463 See \`config.log' for more details." >&2;}
5464 { (exit 1); exit 1; }; }
5468 ac_cpp='$CPP $CPPFLAGS'
5469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474 ac_cpp='$CPP $CPPFLAGS'
5475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478 if test -n "$ac_tool_prefix"; then
5481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5485 if test "${ac_cv_prog_CC+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 if test -n "$CC"; then
5489 ac_cv_prog_CC="$CC" # Let the user override the test.
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 if test -n "$CC"; then
5510 { echo "$as_me:$LINENO: result: $CC" >&5
5511 echo "${ECHO_T}$CC" >&6; }
5513 { echo "$as_me:$LINENO: result: no" >&5
5514 echo "${ECHO_T}no" >&6; }
5518 test -n "$CC" && break
5521 if test -z "$CC"; then
5525 # Extract the first word of "$ac_prog", so it can be a program name with args.
5526 set dummy $ac_prog; ac_word=$2
5527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 if test -n "$ac_ct_CC"; then
5533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5542 ac_cv_prog_ac_ct_CC="$ac_prog"
5543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5553 if test -n "$ac_ct_CC"; then
5554 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5555 echo "${ECHO_T}$ac_ct_CC" >&6; }
5557 { echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6; }
5562 test -n "$ac_ct_CC" && break
5565 if test "x$ac_ct_CC" = x; then
5568 case $cross_compiling:$ac_tool_warned in
5570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5571 whose name does not start with the host triplet. If you think this
5572 configuration is useful to you, please write to autoconf@gnu.org." >&5
5573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5574 whose name does not start with the host triplet. If you think this
5575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5576 ac_tool_warned=yes ;;
5583 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5584 See \`config.log' for more details." >&5
5585 echo "$as_me: error: no acceptable C compiler found in \$PATH
5586 See \`config.log' for more details." >&2;}
5587 { (exit 1); exit 1; }; }
5589 # Provide some information about the compiler.
5590 echo "$as_me:$LINENO: checking for C compiler version" >&5
5591 ac_compiler=`set X $ac_compile; echo $2`
5592 { (ac_try="$ac_compiler --version >&5"
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compiler --version >&5") 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }
5602 { (ac_try="$ac_compiler -v >&5"
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compiler -v >&5") 2>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }
5612 { (ac_try="$ac_compiler -V >&5"
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compiler -V >&5") 2>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }
5623 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 cat >conftest.$ac_ext <<_ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5646 rm -f conftest.$ac_objext
5647 if { (ac_try="$ac_compile"
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_compile") 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5661 { (case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_try") 2>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest.$ac_objext'
5671 { (case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_try") 2>&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5692 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5693 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5694 GCC=`test $ac_compiler_gnu = yes && echo yes`
5695 ac_test_CFLAGS=${CFLAGS+set}
5696 ac_save_CFLAGS=$CFLAGS
5697 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5698 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5699 if test "${ac_cv_prog_cc_g+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 ac_save_c_werror_flag=$ac_c_werror_flag
5703 ac_c_werror_flag=yes
5706 cat >conftest.$ac_ext <<_ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5721 rm -f conftest.$ac_objext
5722 if { (ac_try="$ac_compile"
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5730 grep -v '^ *+' conftest.er1 >conftest.err
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5736 { (case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_try") 2>&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_try") 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5761 cat >conftest.$ac_ext <<_ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5791 { (case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_try") 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_try") 2>&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 ac_c_werror_flag=$ac_save_c_werror_flag
5817 cat >conftest.$ac_ext <<_ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5832 rm -f conftest.$ac_objext
5833 if { (ac_try="$ac_compile"
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_try") 2>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_try") 2>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 ac_c_werror_flag=$ac_save_c_werror_flag
5883 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5884 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5885 if test "$ac_test_CFLAGS" = set; then
5886 CFLAGS=$ac_save_CFLAGS
5887 elif test $ac_cv_prog_cc_g = yes; then
5888 if test "$GCC" = yes; then
5894 if test "$GCC" = yes; then
5900 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5901 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_cc_c89+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 ac_cv_prog_cc_c89=no
5907 cat >conftest.$ac_ext <<_ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5915 #include <sys/types.h>
5916 #include <sys/stat.h>
5917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5918 struct buf { int x; };
5919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5920 static char *e (p, i)
5926 static char *f (char * (*g) (char **, int), char **p, ...)
5931 s = g (p, va_arg (v,int));
5936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5937 function prototypes and stuff, but not '\xHH' hex character constants.
5938 These don't provoke an error unfortunately, instead are silently treated
5939 as 'x'. The following induces an error, until -std is added to get
5940 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5941 array size at least. It's necessary to write '\x00'==0 to get something
5942 that's true only with -std. */
5943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5946 inside strings and character constants. */
5948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5950 int test (int i, double x);
5951 struct s1 {int (*f) (int a);};
5952 struct s2 {int (*f) (double a);};
5953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5959 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5965 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5967 CC="$ac_save_CC $ac_arg"
5968 rm -f conftest.$ac_objext
5969 if { (ac_try="$ac_compile"
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_compile") 2>conftest.er1
5977 grep -v '^ *+' conftest.er1 >conftest.err
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5983 { (case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_try") 2>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; } &&
5992 { ac_try='test -s conftest.$ac_objext'
5993 { (case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_try") 2>&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_cv_prog_cc_c89=$ac_arg
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6010 rm -f core conftest.err conftest.$ac_objext
6011 test "x$ac_cv_prog_cc_c89" != "xno" && break
6013 rm -f conftest.$ac_ext
6018 case "x$ac_cv_prog_cc_c89" in
6020 { echo "$as_me:$LINENO: result: none needed" >&5
6021 echo "${ECHO_T}none needed" >&6; } ;;
6023 { echo "$as_me:$LINENO: result: unsupported" >&5
6024 echo "${ECHO_T}unsupported" >&6; } ;;
6026 CC="$CC $ac_cv_prog_cc_c89"
6027 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6028 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6033 ac_cpp='$CPP $CPPFLAGS'
6034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6039 ac_cpp='$CXXCPP $CPPFLAGS'
6040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6043 if test -z "$CXX"; then
6044 if test -n "$CCC"; then
6047 if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_prog_CXX+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 if test -n "$CXX"; then
6058 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 if test -n "$CXX"; then
6079 { echo "$as_me:$LINENO: result: $CXX" >&5
6080 echo "${ECHO_T}$CXX" >&6; }
6082 { echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6; }
6087 test -n "$CXX" && break
6090 if test -z "$CXX"; then
6094 # Extract the first word of "$ac_prog", so it can be a program name with args.
6095 set dummy $ac_prog; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 if test -n "$ac_ct_CXX"; then
6102 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_ac_ct_CXX="$ac_prog"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6122 if test -n "$ac_ct_CXX"; then
6123 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6124 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6131 test -n "$ac_ct_CXX" && break
6134 if test "x$ac_ct_CXX" = x; then
6137 case $cross_compiling:$ac_tool_warned in
6139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6140 whose name does not start with the host triplet. If you think this
6141 configuration is useful to you, please write to autoconf@gnu.org." >&5
6142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6143 whose name does not start with the host triplet. If you think this
6144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6145 ac_tool_warned=yes ;;
6153 # Provide some information about the compiler.
6154 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6155 ac_compiler=`set X $ac_compile; echo $2`
6156 { (ac_try="$ac_compiler --version >&5"
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_compiler --version >&5") 2>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }
6166 { (ac_try="$ac_compiler -v >&5"
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_compiler -v >&5") 2>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }
6176 { (ac_try="$ac_compiler -V >&5"
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_compiler -V >&5") 2>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }
6187 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6188 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6189 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6210 rm -f conftest.$ac_objext
6211 if { (ac_try="$ac_compile"
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6225 { (case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_try") 2>&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; } &&
6234 { ac_try='test -s conftest.$ac_objext'
6235 { (case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_try") 2>&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; }; then
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6256 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6257 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6258 GXX=`test $ac_compiler_gnu = yes && echo yes`
6259 ac_test_CXXFLAGS=${CXXFLAGS+set}
6260 ac_save_CXXFLAGS=$CXXFLAGS
6261 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6262 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6263 if test "${ac_cv_prog_cxx_g+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6267 ac_cxx_werror_flag=yes
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6285 rm -f conftest.$ac_objext
6286 if { (ac_try="$ac_compile"
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6294 grep -v '^ *+' conftest.er1 >conftest.err
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6300 { (case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_try") 2>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_try") 2>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_cv_prog_cxx_g=yes
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6340 rm -f conftest.$ac_objext
6341 if { (ac_try="$ac_compile"
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_compile") 2>conftest.er1
6349 grep -v '^ *+' conftest.er1 >conftest.err
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6355 { (case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_try") 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest.$ac_objext'
6365 { (case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_try") 2>&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6381 cat >conftest.$ac_ext <<_ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6396 rm -f conftest.$ac_objext
6397 if { (ac_try="$ac_compile"
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_compile") 2>conftest.er1
6405 grep -v '^ *+' conftest.er1 >conftest.err
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6411 { (case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_try") 2>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_try") 2>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_cv_prog_cxx_g=yes
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6447 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6448 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6449 if test "$ac_test_CXXFLAGS" = set; then
6450 CXXFLAGS=$ac_save_CXXFLAGS
6451 elif test $ac_cv_prog_cxx_g = yes; then
6452 if test "$GXX" = yes; then
6458 if test "$GXX" = yes; then
6465 ac_cpp='$CPP $CPPFLAGS'
6466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6471 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6472 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6473 if test "${lt_cv_path_NM+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 if test -n "$NM"; then
6477 # Let the user override the test.
6480 lt_nm_to_check="${ac_tool_prefix}nm"
6481 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6482 lt_nm_to_check="$lt_nm_to_check nm"
6484 for lt_tmp_nm in $lt_nm_to_check; do
6485 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6486 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6488 test -z "$ac_dir" && ac_dir=.
6489 tmp_nm="$ac_dir/$lt_tmp_nm"
6490 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6491 # Check to see if the nm accepts a BSD-compat flag.
6492 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6493 # nm: unknown option "B" ignored
6494 # Tru64's nm complains that /dev/null is an invalid object file
6495 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6496 */dev/null* | *'Invalid file or object type'*)
6497 lt_cv_path_NM="$tmp_nm -B"
6501 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6503 lt_cv_path_NM="$tmp_nm -p"
6507 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6508 continue # so that we can try to find one that supports BSD flags
6517 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6520 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6521 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6526 { echo "$as_me:$LINENO: checking for GNU make" >&5
6527 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6528 if test "${llvm_cv_gnu_make_command+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 llvm_cv_gnu_make_command=''
6532 for a in "$MAKE" make gmake gnumake ; do
6533 if test -z "$a" ; then continue ; fi ;
6534 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6536 llvm_cv_gnu_make_command=$a ;
6541 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6542 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6543 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6547 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6548 echo "${ECHO_T}\"Not found\"" >&6; };
6552 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6555 if test "$LN_S" = "ln -s"; then
6556 { echo "$as_me:$LINENO: result: yes" >&5
6557 echo "${ECHO_T}yes" >&6; }
6559 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6560 echo "${ECHO_T}no, using $LN_S" >&6; }
6563 # Extract the first word of "cmp", so it can be a program name with args.
6564 set dummy cmp; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_CMP+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6595 if test -n "$CMP"; then
6596 { echo "$as_me:$LINENO: result: $CMP" >&5
6597 echo "${ECHO_T}$CMP" >&6; }
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6604 # Extract the first word of "cp", so it can be a program name with args.
6605 set dummy cp; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_CP+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6636 if test -n "$CP"; then
6637 { echo "$as_me:$LINENO: result: $CP" >&5
6638 echo "${ECHO_T}$CP" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6645 # Extract the first word of "date", so it can be a program name with args.
6646 set dummy date; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_DATE+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6676 DATE=$ac_cv_path_DATE
6677 if test -n "$DATE"; then
6678 { echo "$as_me:$LINENO: result: $DATE" >&5
6679 echo "${ECHO_T}$DATE" >&6; }
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6686 # Extract the first word of "find", so it can be a program name with args.
6687 set dummy find; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_FIND+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6717 FIND=$ac_cv_path_FIND
6718 if test -n "$FIND"; then
6719 { echo "$as_me:$LINENO: result: $FIND" >&5
6720 echo "${ECHO_T}$FIND" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6727 # Extract the first word of "grep", so it can be a program name with args.
6728 set dummy grep; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_GREP+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6758 GREP=$ac_cv_path_GREP
6759 if test -n "$GREP"; then
6760 { echo "$as_me:$LINENO: result: $GREP" >&5
6761 echo "${ECHO_T}$GREP" >&6; }
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6768 # Extract the first word of "mkdir", so it can be a program name with args.
6769 set dummy mkdir; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_path_MKDIR+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6799 MKDIR=$ac_cv_path_MKDIR
6800 if test -n "$MKDIR"; then
6801 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6802 echo "${ECHO_T}$MKDIR" >&6; }
6804 { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6809 # Extract the first word of "mv", so it can be a program name with args.
6810 set dummy mv; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_path_MV+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6841 if test -n "$MV"; then
6842 { echo "$as_me:$LINENO: result: $MV" >&5
6843 echo "${ECHO_T}$MV" >&6; }
6845 { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_prog_RANLIB+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 if test -n "$RANLIB"; then
6859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 RANLIB=$ac_cv_prog_RANLIB
6879 if test -n "$RANLIB"; then
6880 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6881 echo "${ECHO_T}$RANLIB" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6889 if test -z "$ac_cv_prog_RANLIB"; then
6890 ac_ct_RANLIB=$RANLIB
6891 # Extract the first word of "ranlib", so it can be a program name with args.
6892 set dummy ranlib; ac_word=$2
6893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 if test -n "$ac_ct_RANLIB"; then
6899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_ac_ct_RANLIB="ranlib"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6919 if test -n "$ac_ct_RANLIB"; then
6920 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6921 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6927 if test "x$ac_ct_RANLIB" = x; then
6930 case $cross_compiling:$ac_tool_warned in
6932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6933 whose name does not start with the host triplet. If you think this
6934 configuration is useful to you, please write to autoconf@gnu.org." >&5
6935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet. If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6938 ac_tool_warned=yes ;;
6940 RANLIB=$ac_ct_RANLIB
6943 RANLIB="$ac_cv_prog_RANLIB"
6946 # Extract the first word of "rm", so it can be a program name with args.
6947 set dummy rm; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_RM+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6978 if test -n "$RM"; then
6979 { echo "$as_me:$LINENO: result: $RM" >&5
6980 echo "${ECHO_T}$RM" >&6; }
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6987 # Extract the first word of "sed", so it can be a program name with args.
6988 set dummy sed; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_path_SED+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7019 if test -n "$SED"; then
7020 { echo "$as_me:$LINENO: result: $SED" >&5
7021 echo "${ECHO_T}$SED" >&6; }
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7028 # Extract the first word of "tar", so it can be a program name with args.
7029 set dummy tar; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_path_TAR+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7047 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7060 if test -n "$TAR"; then
7061 { echo "$as_me:$LINENO: result: $TAR" >&5
7062 echo "${ECHO_T}$TAR" >&6; }
7064 { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7069 # Extract the first word of "pwd", so it can be a program name with args.
7070 set dummy pwd; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_BINPWD+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7100 BINPWD=$ac_cv_path_BINPWD
7101 if test -n "$BINPWD"; then
7102 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7103 echo "${ECHO_T}$BINPWD" >&6; }
7105 { echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6; }
7111 # Extract the first word of "Graphviz", so it can be a program name with args.
7112 set dummy Graphviz; ac_word=$2
7113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7142 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7143 if test -n "$GRAPHVIZ"; then
7144 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7145 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7147 { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7152 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_GRAPHVIZ 1
7158 if test "$llvm_cv_os_type" = "MingW" ; then
7159 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7162 cat >>confdefs.h <<_ACEOF
7163 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7167 # Extract the first word of "dot", so it can be a program name with args.
7168 set dummy dot; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_path_DOT+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7199 if test -n "$DOT"; then
7200 { echo "$as_me:$LINENO: result: $DOT" >&5
7201 echo "${ECHO_T}$DOT" >&6; }
7203 { echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6; }
7208 if test "$DOT" != "echo dot" ; then
7210 cat >>confdefs.h <<\_ACEOF
7214 if test "$llvm_cv_os_type" = "MingW" ; then
7215 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7218 cat >>confdefs.h <<_ACEOF
7219 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7223 # Extract the first word of "fdp", so it can be a program name with args.
7224 set dummy fdp; ac_word=$2
7225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227 if test "${ac_cv_path_FDP+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7255 if test -n "$FDP"; then
7256 { echo "$as_me:$LINENO: result: $FDP" >&5
7257 echo "${ECHO_T}$FDP" >&6; }
7259 { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7264 if test "$FDP" != "echo fdp" ; then
7266 cat >>confdefs.h <<\_ACEOF
7270 if test "$llvm_cv_os_type" = "MingW" ; then
7271 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7274 cat >>confdefs.h <<_ACEOF
7275 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7279 # Extract the first word of "neato", so it can be a program name with args.
7280 set dummy neato; ac_word=$2
7281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7283 if test "${ac_cv_path_NEATO+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7310 NEATO=$ac_cv_path_NEATO
7311 if test -n "$NEATO"; then
7312 { echo "$as_me:$LINENO: result: $NEATO" >&5
7313 echo "${ECHO_T}$NEATO" >&6; }
7315 { echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6; }
7320 if test "$NEATO" != "echo neato" ; then
7322 cat >>confdefs.h <<\_ACEOF
7323 #define HAVE_NEATO 1
7326 if test "$llvm_cv_os_type" = "MingW" ; then
7327 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7330 cat >>confdefs.h <<_ACEOF
7331 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7335 # Extract the first word of "twopi", so it can be a program name with args.
7336 set dummy twopi; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_path_TWOPI+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7366 TWOPI=$ac_cv_path_TWOPI
7367 if test -n "$TWOPI"; then
7368 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7369 echo "${ECHO_T}$TWOPI" >&6; }
7371 { echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6; }
7376 if test "$TWOPI" != "echo twopi" ; then
7378 cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_TWOPI 1
7382 if test "$llvm_cv_os_type" = "MingW" ; then
7383 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7386 cat >>confdefs.h <<_ACEOF
7387 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7391 # Extract the first word of "circo", so it can be a program name with args.
7392 set dummy circo; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_CIRCO+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7422 CIRCO=$ac_cv_path_CIRCO
7423 if test -n "$CIRCO"; then
7424 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7425 echo "${ECHO_T}$CIRCO" >&6; }
7427 { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7432 if test "$CIRCO" != "echo circo" ; then
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE_CIRCO 1
7438 if test "$llvm_cv_os_type" = "MingW" ; then
7439 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7442 cat >>confdefs.h <<_ACEOF
7443 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7447 for ac_prog in gv gsview32
7449 # Extract the first word of "$ac_prog", so it can be a program name with args.
7450 set dummy $ac_prog; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_path_GV+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 if test -n "$GV"; then
7481 { echo "$as_me:$LINENO: result: $GV" >&5
7482 echo "${ECHO_T}$GV" >&6; }
7484 { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7489 test -n "$GV" && break
7491 test -n "$GV" || GV="echo gv"
7493 if test "$GV" != "echo gv" ; then
7495 cat >>confdefs.h <<\_ACEOF
7499 if test "$llvm_cv_os_type" = "MingW" ; then
7500 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7503 cat >>confdefs.h <<_ACEOF
7504 #define LLVM_PATH_GV "$GV${EXEEXT}"
7508 # Extract the first word of "dotty", so it can be a program name with args.
7509 set dummy dotty; ac_word=$2
7510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512 if test "${ac_cv_path_DOTTY+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7539 DOTTY=$ac_cv_path_DOTTY
7540 if test -n "$DOTTY"; then
7541 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7542 echo "${ECHO_T}$DOTTY" >&6; }
7544 { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7549 if test "$DOTTY" != "echo dotty" ; then
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_DOTTY 1
7555 if test "$llvm_cv_os_type" = "MingW" ; then
7556 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7559 cat >>confdefs.h <<_ACEOF
7560 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7566 # Extract the first word of "perl", so it can be a program name with args.
7567 set dummy perl; ac_word=$2
7568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7570 if test "${ac_cv_path_PERL+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7597 PERL=$ac_cv_path_PERL
7598 if test -n "$PERL"; then
7599 { echo "$as_me:$LINENO: result: $PERL" >&5
7600 echo "${ECHO_T}$PERL" >&6; }
7602 { echo "$as_me:$LINENO: result: no" >&5
7603 echo "${ECHO_T}no" >&6; }
7607 if test "$PERL" != "none"; then
7608 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7609 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7610 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7611 { echo "$as_me:$LINENO: result: yes" >&5
7612 echo "${ECHO_T}yes" >&6; }
7615 { echo "$as_me:$LINENO: result: not found" >&5
7616 echo "${ECHO_T}not found" >&6; }
7621 if test x"$PERL" = xnone; then
7624 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7625 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7626 { (exit 1); exit 1; }; }
7632 # Find a good install program. We prefer a C program (faster),
7633 # so one script is as good as another. But avoid the broken or
7634 # incompatible versions:
7635 # SysV /etc/install, /usr/sbin/install
7636 # SunOS /usr/etc/install
7637 # IRIX /sbin/install
7639 # AmigaOS /C/install, which installs bootblocks on floppy discs
7640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7643 # OS/2's system install, which has a completely different semantic
7644 # ./install, which can be erroneously created by make from ./install.sh.
7645 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7647 if test -z "$INSTALL"; then
7648 if test "${ac_cv_path_install+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir=.
7656 # Account for people who put trailing slashes in PATH elements.
7658 ./ | .// | /cC/* | \
7659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7660 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7663 # OSF1 and SCO ODT 3.0 have their own names for install.
7664 # Don't use installbsd from OSF since it installs stuff as root
7666 for ac_prog in ginstall scoinst install; do
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7669 if test $ac_prog = install &&
7670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7671 # AIX install. It has an incompatible calling convention.
7673 elif test $ac_prog = install &&
7674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7675 # program-specific install script used by HP pwplus--don't use.
7678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7691 if test "${ac_cv_path_install+set}" = set; then
7692 INSTALL=$ac_cv_path_install
7694 # As a last resort, use the slow shell script. Don't cache a
7695 # value for INSTALL within a source directory, because that will
7696 # break other packages using the cache if that directory is
7697 # removed, or if the value is a relative name.
7698 INSTALL=$ac_install_sh
7701 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7702 echo "${ECHO_T}$INSTALL" >&6; }
7704 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7705 # It thinks the first close brace ends the variable substitution.
7706 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7710 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7713 # Extract the first word of "bzip2", so it can be a program name with args.
7714 set dummy bzip2; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_path_BZIP2+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 BZIP2=$ac_cv_path_BZIP2
7744 if test -n "$BZIP2"; then
7745 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7746 echo "${ECHO_T}$BZIP2" >&6; }
7748 { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7753 # Extract the first word of "doxygen", so it can be a program name with args.
7754 set dummy doxygen; ac_word=$2
7755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 DOXYGEN=$ac_cv_path_DOXYGEN
7784 if test -n "$DOXYGEN"; then
7785 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7786 echo "${ECHO_T}$DOXYGEN" >&6; }
7788 { echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6; }
7793 # Extract the first word of "groff", so it can be a program name with args.
7794 set dummy groff; ac_word=$2
7795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797 if test "${ac_cv_path_GROFF+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 GROFF=$ac_cv_path_GROFF
7824 if test -n "$GROFF"; then
7825 { echo "$as_me:$LINENO: result: $GROFF" >&5
7826 echo "${ECHO_T}$GROFF" >&6; }
7828 { echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6; }
7833 # Extract the first word of "gzip", so it can be a program name with args.
7834 set dummy gzip; ac_word=$2
7835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837 if test "${ac_cv_path_GZIP+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 GZIP=$ac_cv_path_GZIP
7864 if test -n "$GZIP"; then
7865 { echo "$as_me:$LINENO: result: $GZIP" >&5
7866 echo "${ECHO_T}$GZIP" >&6; }
7868 { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7873 # Extract the first word of "pod2html", so it can be a program name with args.
7874 set dummy pod2html; ac_word=$2
7875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7877 if test "${ac_cv_path_POD2HTML+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 POD2HTML=$ac_cv_path_POD2HTML
7904 if test -n "$POD2HTML"; then
7905 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7906 echo "${ECHO_T}$POD2HTML" >&6; }
7908 { echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6; }
7913 # Extract the first word of "pod2man", so it can be a program name with args.
7914 set dummy pod2man; ac_word=$2
7915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7917 if test "${ac_cv_path_POD2MAN+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7932 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 POD2MAN=$ac_cv_path_POD2MAN
7944 if test -n "$POD2MAN"; then
7945 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7946 echo "${ECHO_T}$POD2MAN" >&6; }
7948 { echo "$as_me:$LINENO: result: no" >&5
7949 echo "${ECHO_T}no" >&6; }
7953 # Extract the first word of "runtest", so it can be a program name with args.
7954 set dummy runtest; ac_word=$2
7955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7957 if test "${ac_cv_path_RUNTEST+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7972 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 RUNTEST=$ac_cv_path_RUNTEST
7984 if test -n "$RUNTEST"; then
7985 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7986 echo "${ECHO_T}$RUNTEST" >&6; }
7988 { echo "$as_me:$LINENO: result: no" >&5
7989 echo "${ECHO_T}no" >&6; }
7995 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7996 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7998 # Check whether --with-tclinclude was given.
7999 if test "${with_tclinclude+set}" = set; then
8000 withval=$with_tclinclude; with_tclinclude=${withval}
8005 if test "${ac_cv_path_tclsh+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 if test x"${with_tclinclude}" != x ; then
8010 if test -f ${with_tclinclude}/tclsh ; then
8011 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8012 elif test -f ${with_tclinclude}/src/tclsh ; then
8013 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8015 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8016 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8017 { (exit 1); exit 1; }; }
8021 if test x"${ac_cv_path_tclsh}" = x ; then
8022 { echo "$as_me:$LINENO: result: none" >&5
8023 echo "${ECHO_T}none" >&6; }
8024 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
8026 # Extract the first word of "$ac_prog", so it can be a program name with args.
8027 set dummy $ac_prog; ac_word=$2
8028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030 if test "${ac_cv_path_TCLSH+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 TCLSH=$ac_cv_path_TCLSH
8057 if test -n "$TCLSH"; then
8058 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8059 echo "${ECHO_T}$TCLSH" >&6; }
8061 { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8066 test -n "$TCLSH" && break
8069 if test x"${TCLSH}" = x ; then
8070 ac_cv_path_tclsh='';
8072 ac_cv_path_tclsh="${TCLSH}";
8075 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8076 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8077 TCLSH="${ac_cv_path_tclsh}"
8083 # Extract the first word of "zip", so it can be a program name with args.
8084 set dummy zip; ac_word=$2
8085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8087 if test "${ac_cv_path_ZIP+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 if test -n "$ZIP"; then
8115 { echo "$as_me:$LINENO: result: $ZIP" >&5
8116 echo "${ECHO_T}$ZIP" >&6; }
8118 { echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6; }
8123 for ac_prog in ocamlc
8125 # Extract the first word of "$ac_prog", so it can be a program name with args.
8126 set dummy $ac_prog; ac_word=$2
8127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8129 if test "${ac_cv_path_OCAMLC+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 OCAMLC=$ac_cv_path_OCAMLC
8156 if test -n "$OCAMLC"; then
8157 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8158 echo "${ECHO_T}$OCAMLC" >&6; }
8160 { echo "$as_me:$LINENO: result: no" >&5
8161 echo "${ECHO_T}no" >&6; }
8165 test -n "$OCAMLC" && break
8168 for ac_prog in ocamlopt
8170 # Extract the first word of "$ac_prog", so it can be a program name with args.
8171 set dummy $ac_prog; ac_word=$2
8172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8174 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 OCAMLOPT=$ac_cv_path_OCAMLOPT
8201 if test -n "$OCAMLOPT"; then
8202 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8203 echo "${ECHO_T}$OCAMLOPT" >&6; }
8205 { echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6; }
8210 test -n "$OCAMLOPT" && break
8213 for ac_prog in ocamldep
8215 # Extract the first word of "$ac_prog", so it can be a program name with args.
8216 set dummy $ac_prog; ac_word=$2
8217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8219 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 OCAMLDEP=$ac_cv_path_OCAMLDEP
8246 if test -n "$OCAMLDEP"; then
8247 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8248 echo "${ECHO_T}$OCAMLDEP" >&6; }
8250 { echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6; }
8255 test -n "$OCAMLDEP" && break
8258 for ac_prog in ocamldoc
8260 # Extract the first word of "$ac_prog", so it can be a program name with args.
8261 set dummy $ac_prog; ac_word=$2
8262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8264 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8279 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 OCAMLDOC=$ac_cv_path_OCAMLDOC
8291 if test -n "$OCAMLDOC"; then
8292 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8293 echo "${ECHO_T}$OCAMLDOC" >&6; }
8295 { echo "$as_me:$LINENO: result: no" >&5
8296 echo "${ECHO_T}no" >&6; }
8300 test -n "$OCAMLDOC" && break
8303 for ac_prog in gas as
8305 # Extract the first word of "$ac_prog", so it can be a program name with args.
8306 set dummy $ac_prog; ac_word=$2
8307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8309 if test "${ac_cv_path_GAS+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 if test -n "$GAS"; then
8337 { echo "$as_me:$LINENO: result: $GAS" >&5
8338 echo "${ECHO_T}$GAS" >&6; }
8340 { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8345 test -n "$GAS" && break
8349 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8350 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8351 if test "${llvm_cv_link_use_r+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 ac_cpp='$CPP $CPPFLAGS'
8356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361 CFLAGS="$CFLAGS -Wl,-R."
8362 cat >conftest.$ac_ext <<_ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8372 int main() { return 0; }
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_link") 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_try") 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest$ac_exeext'
8402 { (case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_try") 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 llvm_cv_link_use_r=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 llvm_cv_link_use_r=no
8419 rm -f core conftest.err conftest.$ac_objext \
8420 conftest$ac_exeext conftest.$ac_ext
8423 ac_cpp='$CPP $CPPFLAGS'
8424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8430 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8431 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8432 if test "$llvm_cv_link_use_r" = yes ; then
8434 cat >>confdefs.h <<\_ACEOF
8435 #define HAVE_LINK_R 1
8441 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8442 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8443 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 ac_cpp='$CPP $CPPFLAGS'
8448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8453 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8454 cat >conftest.$ac_ext <<_ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8464 int main() { return 0; }
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (ac_try="$ac_link"
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_link") 2>conftest.er1
8478 grep -v '^ *+' conftest.er1 >conftest.err
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8484 { (case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_try") 2>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; } &&
8493 { ac_try='test -s conftest$ac_exeext'
8494 { (case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_try") 2>&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 llvm_cv_link_use_export_dynamic=yes
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 llvm_cv_link_use_export_dynamic=no
8511 rm -f core conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8515 ac_cpp='$CPP $CPPFLAGS'
8516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8523 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8524 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_LINK_EXPORT_DYNAMIC 1
8535 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8536 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8537 if test "${ac_cv_c_const+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8550 /* FIXME: Include the comments suggested by Paul. */
8552 /* Ultrix mips cc rejects this. */
8553 typedef int charset[2];
8555 /* SunOS 4.1.1 cc rejects this. */
8556 char const *const *ccp;
8558 /* NEC SVR4.0.2 mips cc rejects this. */
8559 struct point {int x, y;};
8560 static struct point const zero = {0,0};
8561 /* AIX XL C 1.02.0.0 rejects this.
8562 It does not let you subtract one const X* pointer from another in
8563 an arm of an if-expression whose if-part is not a constant
8565 const char *g = "string";
8566 ccp = &g + (g ? g-g : 0);
8567 /* HPUX 7.0 cc rejects these. */
8570 ccp = (char const *const *) p;
8571 { /* SCO 3.2v4 cc rejects this. */
8573 char const *s = 0 ? (char *) 0 : (char const *) 0;
8578 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8580 const int *foo = &x[0];
8583 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8584 typedef const int *iptr;
8588 { /* AIX XL C 1.02.0.0 rejects this saying
8589 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8590 struct s { int j; const int *ap[3]; };
8591 struct s *b; b->j = 5;
8593 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8597 return !x[0] && !zero.x;
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8613 grep -v '^ *+' conftest.er1 >conftest.err
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619 { (case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_try") 2>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8649 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8650 if test $ac_cv_c_const = no; then
8652 cat >>confdefs.h <<\_ACEOF
8664 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8665 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8666 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8667 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 #include <sys/types.h>
8689 rm -f conftest.$ac_objext
8690 if { (ac_try="$ac_compile"
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_compile") 2>conftest.er1
8698 grep -v '^ *+' conftest.er1 >conftest.err
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8704 { (case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_try") 2>&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try='test -s conftest.$ac_objext'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_try") 2>&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 eval "$as_ac_Header=yes"
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 eval "$as_ac_Header=no"
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 ac_res=`eval echo '${'$as_ac_Header'}'`
8734 { echo "$as_me:$LINENO: result: $ac_res" >&5
8735 echo "${ECHO_T}$ac_res" >&6; }
8736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8737 cat >>confdefs.h <<_ACEOF
8738 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8741 ac_header_dirent=$ac_hdr; break
8745 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8746 if test $ac_header_dirent = dirent.h; then
8747 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8748 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8749 if test "${ac_cv_search_opendir+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 ac_func_search_save_LIBS=$LIBS
8753 cat >conftest.$ac_ext <<_ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8760 /* Override any GCC internal prototype to avoid an error.
8761 Use char because int might match the return type of a GCC
8762 builtin and then its argument prototype would still apply. */
8775 for ac_lib in '' dir; do
8776 if test -z "$ac_lib"; then
8777 ac_res="none required"
8780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (ac_try="$ac_link"
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_link") 2>conftest.er1
8791 grep -v '^ *+' conftest.er1 >conftest.err
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8797 { (case "(($ac_try" in
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802 (eval "$ac_try") 2>&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; } &&
8806 { ac_try='test -s conftest$ac_exeext'
8807 { (case "(($ac_try" in
8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8812 (eval "$ac_try") 2>&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 ac_cv_search_opendir=$ac_res
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8824 rm -f core conftest.err conftest.$ac_objext \
8826 if test "${ac_cv_search_opendir+set}" = set; then
8830 if test "${ac_cv_search_opendir+set}" = set; then
8833 ac_cv_search_opendir=no
8836 LIBS=$ac_func_search_save_LIBS
8838 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8839 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8840 ac_res=$ac_cv_search_opendir
8841 if test "$ac_res" != no; then
8842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8847 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8848 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8849 if test "${ac_cv_search_opendir+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 ac_func_search_save_LIBS=$LIBS
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8860 /* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8875 for ac_lib in '' x; do
8876 if test -z "$ac_lib"; then
8877 ac_res="none required"
8880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (ac_try="$ac_link"
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_link") 2>conftest.er1
8891 grep -v '^ *+' conftest.er1 >conftest.err
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } &&
8896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8897 { (case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_try") 2>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; } &&
8906 { ac_try='test -s conftest$ac_exeext'
8907 { (case "(($ac_try" in
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912 (eval "$ac_try") 2>&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_cv_search_opendir=$ac_res
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8924 rm -f core conftest.err conftest.$ac_objext \
8926 if test "${ac_cv_search_opendir+set}" = set; then
8930 if test "${ac_cv_search_opendir+set}" = set; then
8933 ac_cv_search_opendir=no
8936 LIBS=$ac_func_search_save_LIBS
8938 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8939 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8940 ac_res=$ac_cv_search_opendir
8941 if test "$ac_res" != no; then
8942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8949 for ac_header in dlfcn.h
8951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 ac_res=`eval echo '${'$as_ac_Header'}'`
8959 { echo "$as_me:$LINENO: result: $ac_res" >&5
8960 echo "${ECHO_T}$ac_res" >&6; }
8962 # Is the header compilable?
8963 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $ac_includes_default
8972 #include <$ac_header>
8974 rm -f conftest.$ac_objext
8975 if { (ac_try="$ac_compile"
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_compile") 2>conftest.er1
8983 grep -v '^ *+' conftest.er1 >conftest.err
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8989 { (case "(($ac_try" in
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 (eval "$ac_try") 2>&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; } &&
8998 { ac_try='test -s conftest.$ac_objext'
8999 { (case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_try") 2>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_header_compiler=yes
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9013 ac_header_compiler=no
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9018 echo "${ECHO_T}$ac_header_compiler" >&6; }
9020 # Is the header present?
9021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9023 cat >conftest.$ac_ext <<_ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <$ac_header>
9031 if { (ac_try="$ac_cpp conftest.$ac_ext"
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9039 grep -v '^ *+' conftest.er1 >conftest.err
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } >/dev/null; then
9044 if test -s conftest.err; then
9045 ac_cpp_err=$ac_c_preproc_warn_flag
9046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9053 if test -z "$ac_cpp_err"; then
9054 ac_header_preproc=yes
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ac_header_preproc=no
9062 rm -f conftest.err conftest.$ac_ext
9063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9064 echo "${ECHO_T}$ac_header_preproc" >&6; }
9066 # So? What about this header?
9067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9073 ac_header_preproc=yes
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9089 ## ----------------------------------- ##
9090 ## Report this to llvmbugs@cs.uiuc.edu ##
9091 ## ----------------------------------- ##
9093 ) | sed "s/^/$as_me: WARNING: /" >&2
9096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 eval "$as_ac_Header=\$ac_header_preproc"
9103 ac_res=`eval echo '${'$as_ac_Header'}'`
9104 { echo "$as_me:$LINENO: result: $ac_res" >&5
9105 echo "${ECHO_T}$ac_res" >&6; }
9108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9109 cat >>confdefs.h <<_ACEOF
9110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9117 # Check whether --enable-ltdl-install was given.
9118 if test "${enable_ltdl_install+set}" = set; then
9119 enableval=$enable_ltdl_install;
9125 if test x"${enable_ltdl_install-no}" != xno; then
9127 INSTALL_LTDL_FALSE='#'
9129 INSTALL_LTDL_TRUE='#'
9135 if test x"${enable_ltdl_convenience-no}" != xno; then
9136 CONVENIENCE_LTDL_TRUE=
9137 CONVENIENCE_LTDL_FALSE='#'
9139 CONVENIENCE_LTDL_TRUE='#'
9140 CONVENIENCE_LTDL_FALSE=
9144 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9145 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9147 libname_spec='lib$name'
9155 shlibpath_overrides_runpath=unknown
9157 dynamic_linker="$host_os ld.so"
9158 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9159 if test "$GCC" = yes; then
9160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9161 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9162 # if the path contains ";" then we assume it to be the separator
9163 # otherwise default to the standard path separator (i.e. ":") - it is
9164 # assumed that no part of a normal pathname contains ";" but that should
9165 # okay in the real world where ";" in dirpaths is itself problematic.
9166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9171 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9173 need_lib_prefix=unknown
9174 hardcode_into_libs=no
9176 # when you set need_version to no, make sure it does not cause -set_version
9177 # flags to be left without arguments
9178 need_version=unknown
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9184 shlibpath_var=LIBPATH
9186 # AIX 3 has no versioning support, so we append a major version to the name.
9187 soname_spec='${libname}${release}${shared_ext}$major'
9194 hardcode_into_libs=yes
9195 if test "$host_cpu" = ia64; then
9196 # AIX 5 supports IA64
9197 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9198 shlibpath_var=LD_LIBRARY_PATH
9200 # With GCC up to 2.95.x, collect2 would create an import file
9201 # for dependence libraries. The import file would start with
9202 # the line `#! .'. This would cause the generated library to
9203 # depend on `.', always an invalid library. This was fixed in
9204 # development snapshots of GCC prior to 3.0.
9206 aix4 | aix4.[01] | aix4.[01].*)
9207 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9209 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9216 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9217 # soname into executable. Probably we can add versioning support to
9218 # collect2, so additional links can be useful in future.
9219 if test "$aix_use_runtimelinking" = yes; then
9220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9221 # instead of lib<name>.a to let people know that these are not
9222 # typical AIX shared libraries.
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 # We preserve .a as extension for shared libraries through AIX4.2
9226 # and later when we are not doing run time linking.
9227 library_names_spec='${libname}${release}.a $libname.a'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LIBPATH
9235 library_names_spec='$libname.ixlibrary $libname.a'
9236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9237 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'
9241 library_names_spec='${libname}${shared_ext}'
9242 dynamic_linker="$host_os ld.so"
9243 shlibpath_var=LIBRARY_PATH
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9254 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9255 # the default ld.so.conf also contains /usr/contrib/lib and
9256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9257 # libtool to hard-code these into programs
9260 cygwin* | mingw* | pw32*)
9261 version_type=windows
9266 case $GCC,$host_os in
9267 yes,cygwin* | yes,mingw* | yes,pw32*)
9268 library_names_spec='$libname.dll.a'
9269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9270 postinstall_cmds='base_file=`basename \${file}`~
9271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9272 dldir=$destdir/`dirname \$dlpath`~
9273 test -d \$dldir || mkdir -p \$dldir~
9274 $install_prog $dir/$dlname \$dldir/$dlname~
9275 chmod a+x \$dldir/$dlname'
9276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9277 dlpath=$dir/\$dldll~
9279 shlibpath_overrides_runpath=yes
9283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9285 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9288 # MinGW DLLs use traditional 'lib' prefix
9289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9291 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9292 # It is most probably a Windows format PATH printed by
9293 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9294 # path with ; separators, and with drive letters. We can handle the
9295 # drive letters (cygwin fileutils understands them), so leave them,
9296 # especially as we might pass files found there to a mingw objdump,
9297 # which wouldn't understand a cygwinified path. Ahh.
9298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9304 # pw32 DLLs use 'pw' prefix rather than 'lib'
9305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9314 dynamic_linker='Win32 ld.exe'
9315 # FIXME: first we should search . and the directory the executable is in
9319 darwin* | rhapsody*)
9320 dynamic_linker="$host_os dyld"
9324 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9325 soname_spec='${libname}${release}${major}$shared_ext'
9326 shlibpath_overrides_runpath=yes
9327 shlibpath_var=DYLD_LIBRARY_PATH
9328 shrext_cmds='.dylib'
9329 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9330 if test "$GCC" = yes; then
9331 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"`
9333 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 shlibpath_var=LD_LIBRARY_PATH
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 shlibpath_var=LD_LIBRARY_PATH
9358 shlibpath_overrides_runpath=no
9359 hardcode_into_libs=yes
9360 dynamic_linker='GNU ld.so'
9363 freebsd* | dragonfly*)
9364 # DragonFly does not have aout. When/if they implement a new
9365 # versioning mechanism, adjust this.
9366 if test -x /usr/bin/objformat; then
9367 objformat=`/usr/bin/objformat`
9370 freebsd[123]*) objformat=aout ;;
9374 version_type=freebsd-$objformat
9375 case $version_type in
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9386 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes
9391 freebsd3.[01]* | freebsdelf3.[01]*)
9392 shlibpath_overrides_runpath=yes
9393 hardcode_into_libs=yes
9395 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9396 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9397 shlibpath_overrides_runpath=no
9398 hardcode_into_libs=yes
9400 freebsd*) # from 4.6 on
9401 shlibpath_overrides_runpath=yes
9402 hardcode_into_libs=yes
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9412 soname_spec='${libname}${release}${shared_ext}$major'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 hardcode_into_libs=yes
9417 hpux9* | hpux10* | hpux11*)
9418 # Give a soname corresponding to the major version so that dld.sl refuses to
9419 # link against other versions.
9426 hardcode_into_libs=yes
9427 dynamic_linker="$host_os dld.so"
9428 shlibpath_var=LD_LIBRARY_PATH
9429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 if test "X$HPUX_IA64_MODE" = X32; then
9433 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9435 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9441 hardcode_into_libs=yes
9442 dynamic_linker="$host_os dld.sl"
9443 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9452 dynamic_linker="$host_os dld.sl"
9453 shlibpath_var=SHLIB_PATH
9454 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9459 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9460 postinstall_cmds='chmod 555 $lib'
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9468 soname_spec='${libname}${release}${shared_ext}$major'
9469 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9470 shlibpath_var=LD_LIBRARY_PATH
9471 shlibpath_overrides_runpath=no
9472 hardcode_into_libs=yes
9475 irix5* | irix6* | nonstopux*)
9477 nonstopux*) version_type=nonstopux ;;
9479 if test "$lt_cv_prog_gnu_ld" = yes; then
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9490 irix5* | nonstopux*)
9494 case $LD in # libtool.m4 will add one of these switches to LD
9495 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9496 libsuff= shlibsuff= libmagic=32-bit;;
9497 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9498 libsuff=32 shlibsuff=N32 libmagic=N32;;
9499 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9500 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9501 *) libsuff= shlibsuff= libmagic=never-match;;
9505 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9506 shlibpath_overrides_runpath=no
9507 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9508 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9509 hardcode_into_libs=yes
9512 # No shared lib support for Linux oldld, aout, or coff.
9513 linux*oldld* | linux*aout* | linux*coff*)
9517 # This must be Linux ELF.
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9525 shlibpath_var=LD_LIBRARY_PATH
9526 shlibpath_overrides_runpath=no
9527 # This implies no fast_install, which is unacceptable.
9528 # Some rework will be needed to allow for fast_install
9529 # before this can be enabled.
9530 hardcode_into_libs=yes
9532 # Append ld.so.conf contents to the search path
9533 if test -f /etc/ld.so.conf; then
9534 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' ' '`
9535 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9538 # We used to test for /lib/ld.so.1 and disable shared libraries on
9539 # powerpc, because MkLinux only supported shared libraries with the
9540 # GNU dynamic linker. Since this was broken with cross compilers,
9541 # most powerpc-linux boxes support dynamic linking these days and
9542 # people can always --disable-shared, the test was removed, and we
9543 # assume the GNU/Linux dynamic linker is in use.
9544 dynamic_linker='GNU/Linux ld.so'
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 shlibpath_var=LD_LIBRARY_PATH
9554 shlibpath_overrides_runpath=no
9555 hardcode_into_libs=yes
9556 dynamic_linker='GNU ld.so'
9563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9566 dynamic_linker='NetBSD (a.out) ld.so'
9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 dynamic_linker='NetBSD ld.elf_so'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=yes
9574 hardcode_into_libs=yes
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580 shlibpath_var=LD_LIBRARY_PATH
9581 shlibpath_overrides_runpath=yes
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath=yes
9596 sys_lib_dlsearch_path_spec="/usr/lib"
9598 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9600 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9601 *) need_version=no ;;
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9605 shlibpath_var=LD_LIBRARY_PATH
9606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9608 openbsd2.[89] | openbsd2.[89].*)
9609 shlibpath_overrides_runpath=no
9612 shlibpath_overrides_runpath=yes
9616 shlibpath_overrides_runpath=yes
9621 libname_spec='$name'
9624 library_names_spec='$libname${shared_ext} $libname.a'
9625 dynamic_linker='OS/2 ld.exe'
9626 shlibpath_var=LIBPATH
9629 osf3* | osf4* | osf5*)
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 shlibpath_var=LD_LIBRARY_PATH
9647 shlibpath_overrides_runpath=yes
9648 hardcode_into_libs=yes
9649 # ldd complains unless libraries are executable
9650 postinstall_cmds='chmod +x $lib'
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9656 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9657 shlibpath_var=LD_LIBRARY_PATH
9658 shlibpath_overrides_runpath=yes
9659 if test "$with_gnu_ld" = yes; then
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 shlibpath_var=LD_LIBRARY_PATH
9670 case $host_vendor in
9672 shlibpath_overrides_runpath=no
9674 export_dynamic_flag_spec='${wl}-Blargedynsym'
9675 runpath_var=LD_RUN_PATH
9683 shlibpath_overrides_runpath=no
9684 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9690 if test -d /usr/nec ;then
9692 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9693 soname_spec='$libname${shared_ext}.$major'
9694 shlibpath_var=LD_LIBRARY_PATH
9698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9699 version_type=freebsd-elf
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 hardcode_into_libs=yes
9706 if test "$with_gnu_ld" = yes; then
9707 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9708 shlibpath_overrides_runpath=no
9710 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9711 shlibpath_overrides_runpath=yes
9714 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9718 sys_lib_dlsearch_path_spec='/usr/lib'
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LD_LIBRARY_PATH
9732 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9733 echo "${ECHO_T}$dynamic_linker" >&6; }
9734 test "$dynamic_linker" = no && can_build_shared=no
9736 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9737 if test "$GCC" = yes; then
9738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9742 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9743 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9744 if test "${libltdl_cv_shlibext+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 eval libltdl_cv_shlibext=$shrext_cmds
9752 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9753 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9754 if test -n "$libltdl_cv_shlibext"; then
9756 cat >>confdefs.h <<_ACEOF
9757 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9763 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9764 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9765 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 libltdl_cv_shlibpath_var="$shlibpath_var"
9770 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9771 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9772 if test -n "$libltdl_cv_shlibpath_var"; then
9774 cat >>confdefs.h <<_ACEOF
9775 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9781 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9782 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9783 if test "${libltdl_cv_sys_search_path+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9788 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9789 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9790 if test -n "$libltdl_cv_sys_search_path"; then
9792 for dir in $libltdl_cv_sys_search_path; do
9793 if test -z "$sys_search_path"; then
9794 sys_search_path="$dir"
9796 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9800 cat >>confdefs.h <<_ACEOF
9801 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9806 { echo "$as_me:$LINENO: checking for objdir" >&5
9807 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9808 if test "${libltdl_cv_objdir+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 libltdl_cv_objdir="$objdir"
9812 if test -n "$objdir"; then
9815 rm -f .libs 2>/dev/null
9816 mkdir .libs 2>/dev/null
9817 if test -d .libs; then
9818 libltdl_cv_objdir=.libs
9820 # MS-DOS does not allow filenames that begin with a dot.
9821 libltdl_cv_objdir=_libs
9823 rmdir .libs 2>/dev/null
9827 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9828 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9830 cat >>confdefs.h <<_ACEOF
9831 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9839 # Check for command to grab the raw symbol name followed by C symbol from nm.
9840 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9841 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9842 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 # These are sane defaults that work on at least a few old systems.
9847 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9849 # Character class describing NM global symbol codes.
9850 symcode='[BCDEGRST]'
9852 # Regexp to match symbols that can be accessed directly from C.
9853 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9855 # Transform an extracted symbol line into a proper C declaration
9856 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9858 # Transform an extracted symbol line into symbol name and symbol address
9859 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'"
9861 # Define system-specific variables.
9866 cygwin* | mingw* | pw32*)
9867 symcode='[ABCDGISTW]'
9869 hpux*) # Its linker distinguishes data from code symbols
9870 if test "$host_cpu" = ia64; then
9871 symcode='[ABCDEGRST]'
9873 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9874 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'"
9877 if test "$host_cpu" = ia64; then
9878 symcode='[ABCDGIRSTW]'
9879 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9880 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'"
9884 symcode='[BCDEGRST]'
9887 symcode='[BCDEGQRST]'
9898 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9906 # Handle CRLF in mingw tool chain
9910 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9914 # If we're using GNU nm, then use its standard symbol codes.
9915 case `$NM -V 2>&1` in
9916 *GNU* | *'with BFD'*)
9917 symcode='[ABCDGIRSTW]' ;;
9920 # Try without a prefix undercore, then with it.
9921 for ac_symprfx in "" "_"; do
9923 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9924 symxfrm="\\1 $ac_symprfx\\2 \\2"
9926 # Write the raw and C identifiers.
9927 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9929 # Check to see that the pipe works correctly.
9933 cat > conftest.$ac_ext <<EOF
9938 void nm_test_func(){}
9942 int main(){nm_test_var='a';nm_test_func();return(0);}
9945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9946 (eval $ac_compile) 2>&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; then
9950 # Now try to grab the symbols.
9952 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9953 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && test -s "$nlist"; then
9957 # Try sorting and uniquifying the output.
9958 if sort "$nlist" | uniq > "$nlist"T; then
9959 mv -f "$nlist"T "$nlist"
9964 # Make sure that we snagged all the symbols we need.
9965 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9966 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9967 cat <<EOF > conftest.$ac_ext
9973 # Now generate the symbol file.
9974 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9976 cat <<EOF >> conftest.$ac_ext
9977 #if defined (__STDC__) && __STDC__
9978 # define lt_ptr_t void *
9980 # define lt_ptr_t char *
9984 /* The mapping between symbol names and symbols. */
9989 lt_preloaded_symbols[] =
9992 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9993 cat <<\EOF >> conftest.$ac_ext
10001 # Now try linking the two files.
10002 mv conftest.$ac_objext conftstm.$ac_objext
10003 lt_save_LIBS="$LIBS"
10004 lt_save_CFLAGS="$CFLAGS"
10005 LIBS="conftstm.$ac_objext"
10006 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10014 LIBS="$lt_save_LIBS"
10015 CFLAGS="$lt_save_CFLAGS"
10017 echo "cannot find nm_test_func in $nlist" >&5
10020 echo "cannot find nm_test_var in $nlist" >&5
10023 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10026 echo "$progname: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10029 rm -f conftest* conftst*
10031 # Do not use the global_symbol_pipe unless it works.
10032 if test "$pipe_works" = yes; then
10035 lt_cv_sys_global_symbol_pipe=
10041 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10042 lt_cv_sys_global_symbol_to_cdecl=
10044 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10045 { echo "$as_me:$LINENO: result: failed" >&5
10046 echo "${ECHO_T}failed" >&6; }
10048 { echo "$as_me:$LINENO: result: ok" >&5
10049 echo "${ECHO_T}ok" >&6; }
10053 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10054 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10055 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10059 libltdl_cv_preloaded_symbols=yes
10061 libltdl_cv_preloaded_symbols=no
10065 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10066 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10067 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10069 cat >>confdefs.h <<\_ACEOF
10070 #define HAVE_PRELOADED_SYMBOLS 1
10078 ac_cpp='$CPP $CPPFLAGS'
10079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10084 { echo "$as_me:$LINENO: checking for shl_load" >&5
10085 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10086 if test "${ac_cv_func_shl_load+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 cat >conftest.$ac_ext <<_ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10095 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10097 #define shl_load innocuous_shl_load
10099 /* System header to define __stub macros and hopefully few prototypes,
10100 which can conflict with char shl_load (); below.
10101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10102 <limits.h> exists even on freestanding compilers. */
10105 # include <limits.h>
10107 # include <assert.h>
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10119 /* The GNU C library defines this for functions which it implements
10120 to always fail with ENOSYS. Some functions are actually named
10121 something starting with __ and the normal name is an alias. */
10122 #if defined __stub_shl_load || defined __stub___shl_load
10129 return shl_load ();
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_link") 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
10159 { (case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_try") 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_func_shl_load=yes
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10173 ac_cv_func_shl_load=no
10176 rm -f core conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
10179 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10180 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10181 if test $ac_cv_func_shl_load = yes; then
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_SHL_LOAD 1
10188 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10189 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10190 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 ac_check_lib_save_LIBS=$LIBS
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10202 /* Override any GCC internal prototype to avoid an error.
10203 Use char because int might match the return type of a GCC
10204 builtin and then its argument prototype would still apply. */
10212 return shl_load ();
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (ac_try="$ac_link"
10219 case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_link") 2>conftest.er1
10226 grep -v '^ *+' conftest.er1 >conftest.err
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10232 { (case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_try") 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest$ac_exeext'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_lib_dld_shl_load=yes
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ac_cv_lib_dld_shl_load=no
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 LIBS=$ac_check_lib_save_LIBS
10263 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10264 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10265 if test $ac_cv_lib_dld_shl_load = yes; then
10267 cat >>confdefs.h <<\_ACEOF
10268 #define HAVE_SHL_LOAD 1
10271 LIBADD_DL="$LIBADD_DL -ldld"
10273 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10274 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 ac_check_lib_save_LIBS=$LIBS
10280 cat >conftest.$ac_ext <<_ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10287 /* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (ac_try="$ac_link"
10304 case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 (eval "$ac_link") 2>conftest.er1
10311 grep -v '^ *+' conftest.er1 >conftest.err
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10317 { (case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_try") 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest$ac_exeext'
10327 { (case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_try") 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10336 ac_cv_lib_dl_dlopen=yes
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 ac_cv_lib_dl_dlopen=no
10344 rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10348 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10349 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10350 if test $ac_cv_lib_dl_dlopen = yes; then
10352 cat >>confdefs.h <<\_ACEOF
10353 #define HAVE_LIBDL 1
10356 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10358 cat >conftest.$ac_ext <<_ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10365 # include <dlfcn.h>
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_link") 2>conftest.er1
10385 grep -v '^ *+' conftest.er1 >conftest.err
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391 { (case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_try") 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_LIBDL 1
10414 libltdl_cv_func_dlopen="yes"
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10420 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10421 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 ac_check_lib_save_LIBS=$LIBS
10425 LIBS="-lsvld $LIBS"
10426 cat >conftest.$ac_ext <<_ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h. */
10433 /* Override any GCC internal prototype to avoid an error.
10434 Use char because int might match the return type of a GCC
10435 builtin and then its argument prototype would still apply. */
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (ac_try="$ac_link"
10450 case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_link") 2>conftest.er1
10457 grep -v '^ *+' conftest.er1 >conftest.err
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } &&
10462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10463 { (case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_try") 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; } &&
10472 { ac_try='test -s conftest$ac_exeext'
10473 { (case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_try") 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 ac_cv_lib_svld_dlopen=yes
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 ac_cv_lib_svld_dlopen=no
10490 rm -f core conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10492 LIBS=$ac_check_lib_save_LIBS
10494 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10495 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10496 if test $ac_cv_lib_svld_dlopen = yes; then
10498 cat >>confdefs.h <<\_ACEOF
10499 #define HAVE_LIBDL 1
10502 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10504 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10505 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10506 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 ac_check_lib_save_LIBS=$LIBS
10511 cat >conftest.$ac_ext <<_ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10518 /* Override any GCC internal prototype to avoid an error.
10519 Use char because int might match the return type of a GCC
10520 builtin and then its argument prototype would still apply. */
10528 return dld_link ();
10533 rm -f conftest.$ac_objext conftest$ac_exeext
10534 if { (ac_try="$ac_link"
10535 case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_link") 2>conftest.er1
10542 grep -v '^ *+' conftest.er1 >conftest.err
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10548 { (case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_try") 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest$ac_exeext'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_cv_lib_dld_dld_link=yes
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_cv_lib_dld_dld_link=no
10575 rm -f core conftest.err conftest.$ac_objext \
10576 conftest$ac_exeext conftest.$ac_ext
10577 LIBS=$ac_check_lib_save_LIBS
10579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10581 if test $ac_cv_lib_dld_dld_link = yes; then
10583 cat >>confdefs.h <<\_ACEOF
10587 LIBADD_DL="$LIBADD_DL -ldld"
10589 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10590 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10591 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 cat >conftest.$ac_ext <<_ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10600 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10602 #define _dyld_func_lookup innocuous__dyld_func_lookup
10604 /* System header to define __stub macros and hopefully few prototypes,
10605 which can conflict with char _dyld_func_lookup (); below.
10606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10607 <limits.h> exists even on freestanding compilers. */
10610 # include <limits.h>
10612 # include <assert.h>
10615 #undef _dyld_func_lookup
10617 /* Override any GCC internal prototype to avoid an error.
10618 Use char because int might match the return type of a GCC
10619 builtin and then its argument prototype would still apply. */
10623 char _dyld_func_lookup ();
10624 /* The GNU C library defines this for functions which it implements
10625 to always fail with ENOSYS. Some functions are actually named
10626 something starting with __ and the normal name is an alias. */
10627 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10634 return _dyld_func_lookup ();
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (ac_try="$ac_link"
10641 case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_link") 2>conftest.er1
10648 grep -v '^ *+' conftest.er1 >conftest.err
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_try") 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_cv_func__dyld_func_lookup=yes
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 ac_cv_func__dyld_func_lookup=no
10681 rm -f core conftest.err conftest.$ac_objext \
10682 conftest$ac_exeext conftest.$ac_ext
10684 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10685 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10686 if test $ac_cv_func__dyld_func_lookup = yes; then
10688 cat >>confdefs.h <<\_ACEOF
10689 #define HAVE_DYLD 1
10703 rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10715 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10717 lt_save_LIBS="$LIBS"
10718 LIBS="$LIBS $LIBADD_DL"
10720 for ac_func in dlerror
10722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10736 #define $ac_func innocuous_$ac_func
10738 /* System header to define __stub macros and hopefully few prototypes,
10739 which can conflict with char $ac_func (); below.
10740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10741 <limits.h> exists even on freestanding compilers. */
10744 # include <limits.h>
10746 # include <assert.h>
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10758 /* The GNU C library defines this for functions which it implements
10759 to always fail with ENOSYS. Some functions are actually named
10760 something starting with __ and the normal name is an alias. */
10761 #if defined __stub_$ac_func || defined __stub___$ac_func
10768 return $ac_func ();
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_link") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788 { (case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest$ac_exeext'
10798 { (case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_try") 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; }; then
10807 eval "$as_ac_var=yes"
10809 echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10812 eval "$as_ac_var=no"
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10818 ac_res=`eval echo '${'$as_ac_var'}'`
10819 { echo "$as_me:$LINENO: result: $ac_res" >&5
10820 echo "${ECHO_T}$ac_res" >&6; }
10821 if test `eval echo '${'$as_ac_var'}'` = yes; then
10822 cat >>confdefs.h <<_ACEOF
10823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10829 LIBS="$lt_save_LIBS"
10832 ac_cpp='$CPP $CPPFLAGS'
10833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10839 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10840 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10841 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 ac_cv_sys_symbol_underscore=no
10845 cat > conftest.$ac_ext <<EOF
10846 void nm_test_func(){}
10847 int main(){nm_test_func;return 0;}
10849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10850 (eval $ac_compile) 2>&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; then
10854 # Now try to grab the symbols.
10855 ac_nlist=conftest.nm
10856 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10857 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && test -s "$ac_nlist"; then
10861 # See whether the symbols have a leading underscore.
10862 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10863 ac_cv_sys_symbol_underscore=yes
10865 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10868 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10872 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10875 echo "configure: failed program was:" >&5
10881 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10882 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10885 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10886 if test x"$libltdl_cv_func_dlopen" = xyes ||
10887 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10888 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10889 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10890 if test "${libltdl_cv_need_uscore+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 libltdl_cv_need_uscore=unknown
10895 LIBS="$LIBS $LIBADD_DL"
10896 if test "$cross_compiling" = yes; then :
10897 libltdl_cv_need_uscore=cross
10899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10900 lt_status=$lt_dlunknown
10901 cat > conftest.$ac_ext <<EOF
10902 #line 10902 "configure"
10903 #include "confdefs.h"
10912 # define LT_DLGLOBAL RTLD_GLOBAL
10915 # define LT_DLGLOBAL DL_GLOBAL
10917 # define LT_DLGLOBAL 0
10921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10922 find out it does not work in some platform. */
10923 #ifndef LT_DLLAZY_OR_NOW
10925 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10928 # define LT_DLLAZY_OR_NOW DL_LAZY
10931 # define LT_DLLAZY_OR_NOW RTLD_NOW
10934 # define LT_DLLAZY_OR_NOW DL_NOW
10936 # define LT_DLLAZY_OR_NOW 0
10944 extern "C" void exit (int);
10947 void fnord() { int i=42;}
10950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10951 int status = $lt_dlunknown;
10955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10956 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10957 /* dlclose (self); */
10965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966 (eval $ac_link) 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10970 (./conftest; exit; ) >&5 2>/dev/null
10972 case x$lt_status in
10973 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10974 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10975 x$lt_dlunknown|x*) ;;
10978 # compilation failed
10987 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10988 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10992 if test x"$libltdl_cv_need_uscore" = xyes; then
10994 cat >>confdefs.h <<\_ACEOF
10995 #define NEED_USCORE 1
11001 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11002 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11003 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 # PORTME does your system automatically load deplibs for dlopen?
11007 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11008 # For now, we just catch OSes we know something about -- in the
11009 # future, we'll try test this programmatically.
11010 libltdl_cv_sys_dlopen_deplibs=unknown
11012 aix3*|aix4.1.*|aix4.2.*)
11013 # Unknown whether this is true for these versions of AIX, but
11014 # we want this `case' here to explicitly catch those versions.
11015 libltdl_cv_sys_dlopen_deplibs=unknown
11018 libltdl_cv_sys_dlopen_deplibs=yes
11021 # Assuming the user has installed a libdl from somewhere, this is true
11022 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11023 libltdl_cv_sys_dlopen_deplibs=yes
11025 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11026 # GNU and its variants, using gnu ld.so (Glibc)
11027 libltdl_cv_sys_dlopen_deplibs=yes
11030 libltdl_cv_sys_dlopen_deplibs=yes
11033 libltdl_cv_sys_dlopen_deplibs=yes
11035 irix[12345]*|irix6.[01]*)
11036 # Catch all versions of IRIX before 6.2, and indicate that we don't
11037 # know how it worked for any of those versions.
11038 libltdl_cv_sys_dlopen_deplibs=unknown
11041 # The case above catches anything before 6.2, and it's known that
11042 # at 6.2 and later dlopen does load deplibs.
11043 libltdl_cv_sys_dlopen_deplibs=yes
11046 libltdl_cv_sys_dlopen_deplibs=yes
11049 libltdl_cv_sys_dlopen_deplibs=yes
11052 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11053 # it did *not* use an RPATH in a shared library to find objects the
11054 # library depends on, so we explictly say `no'.
11055 libltdl_cv_sys_dlopen_deplibs=no
11057 osf5.0|osf5.0a|osf5.1)
11058 # dlopen *does* load deplibs and with the right loader patch applied
11059 # it even uses RPATH in a shared library to search for shared objects
11060 # that the library depends on, but there's no easy way to know if that
11061 # patch is installed. Since this is the case, all we can really
11062 # say is unknown -- it depends on the patch being installed. If
11063 # it is, this changes to `yes'. Without it, it would be `no'.
11064 libltdl_cv_sys_dlopen_deplibs=unknown
11067 # the two cases above should catch all versions of osf <= 5.1. Read
11068 # the comments above for what we know about them.
11069 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11070 # is used to find them so we can finally say `yes'.
11071 libltdl_cv_sys_dlopen_deplibs=yes
11074 libltdl_cv_sys_dlopen_deplibs=yes
11076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11077 libltdl_cv_sys_dlopen_deplibs=yes
11082 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11083 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11084 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11086 cat >>confdefs.h <<\_ACEOF
11087 #define LTDL_DLOPEN_DEPLIBS 1
11093 for ac_header in argz.h
11095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 ac_res=`eval echo '${'$as_ac_Header'}'`
11103 { echo "$as_me:$LINENO: result: $ac_res" >&5
11104 echo "${ECHO_T}$ac_res" >&6; }
11106 # Is the header compilable?
11107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 $ac_includes_default
11116 #include <$ac_header>
11118 rm -f conftest.$ac_objext
11119 if { (ac_try="$ac_compile"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_compile") 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
11143 { (case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_try") 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_header_compiler=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_header_compiler=no
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11162 echo "${ECHO_T}$ac_header_compiler" >&6; }
11164 # Is the header present?
11165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 #include <$ac_header>
11175 if { (ac_try="$ac_cpp conftest.$ac_ext"
11176 case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11183 grep -v '^ *+' conftest.er1 >conftest.err
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } >/dev/null; then
11188 if test -s conftest.err; then
11189 ac_cpp_err=$ac_c_preproc_warn_flag
11190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11197 if test -z "$ac_cpp_err"; then
11198 ac_header_preproc=yes
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_preproc=no
11206 rm -f conftest.err conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 echo "${ECHO_T}$ac_header_preproc" >&6; }
11210 # So? What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11233 ## ----------------------------------- ##
11234 ## Report this to llvmbugs@cs.uiuc.edu ##
11235 ## ----------------------------------- ##
11237 ) | sed "s/^/$as_me: WARNING: /" >&2
11240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 eval "$as_ac_Header=\$ac_header_preproc"
11247 ac_res=`eval echo '${'$as_ac_Header'}'`
11248 { echo "$as_me:$LINENO: result: $ac_res" >&5
11249 echo "${ECHO_T}$ac_res" >&6; }
11252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11262 { echo "$as_me:$LINENO: checking for error_t" >&5
11263 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11264 if test "${ac_cv_type_error_t+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11277 typedef error_t ac__type_new_;
11281 if ((ac__type_new_ *) 0)
11283 if (sizeof (ac__type_new_))
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_compile") 2>conftest.er1
11298 grep -v '^ *+' conftest.er1 >conftest.err
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } &&
11303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11304 { (case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_try") 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest.$ac_objext'
11314 { (case "(($ac_try" in
11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_try") 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_cv_type_error_t=yes
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11328 ac_cv_type_error_t=no
11331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11334 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11335 if test $ac_cv_type_error_t = yes; then
11337 cat >>confdefs.h <<_ACEOF
11338 #define HAVE_ERROR_T 1
11344 cat >>confdefs.h <<\_ACEOF
11345 #define error_t int
11356 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 cat >conftest.$ac_ext <<_ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11372 #define $ac_func innocuous_$ac_func
11374 /* System header to define __stub macros and hopefully few prototypes,
11375 which can conflict with char $ac_func (); below.
11376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377 <limits.h> exists even on freestanding compilers. */
11380 # include <limits.h>
11382 # include <assert.h>
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11394 /* The GNU C library defines this for functions which it implements
11395 to always fail with ENOSYS. Some functions are actually named
11396 something starting with __ and the normal name is an alias. */
11397 #if defined __stub_$ac_func || defined __stub___$ac_func
11404 return $ac_func ();
11409 rm -f conftest.$ac_objext conftest$ac_exeext
11410 if { (ac_try="$ac_link"
11411 case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_link") 2>conftest.er1
11418 grep -v '^ *+' conftest.er1 >conftest.err
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424 { (case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_try") 2>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; } &&
11433 { ac_try='test -s conftest$ac_exeext'
11434 { (case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_try") 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 eval "$as_ac_var=yes"
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11448 eval "$as_ac_var=no"
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11454 ac_res=`eval echo '${'$as_ac_var'}'`
11455 { echo "$as_me:$LINENO: result: $ac_res" >&5
11456 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_var'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11492 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11506 # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11516 #include <$ac_header>
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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 ac_header_compiler=yes
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 ac_header_compiler=no
11560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11562 echo "${ECHO_T}$ac_header_compiler" >&6; }
11564 # Is the header present?
11565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11567 cat >conftest.$ac_ext <<_ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 #include <$ac_header>
11575 if { (ac_try="$ac_cpp conftest.$ac_ext"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11583 grep -v '^ *+' conftest.er1 >conftest.err
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } >/dev/null; then
11588 if test -s conftest.err; then
11589 ac_cpp_err=$ac_c_preproc_warn_flag
11590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11597 if test -z "$ac_cpp_err"; then
11598 ac_header_preproc=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_header_preproc=no
11606 rm -f conftest.err conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608 echo "${ECHO_T}$ac_header_preproc" >&6; }
11610 # So? What about this header?
11611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11633 ## ----------------------------------- ##
11634 ## Report this to llvmbugs@cs.uiuc.edu ##
11635 ## ----------------------------------- ##
11637 ) | sed "s/^/$as_me: WARNING: /" >&2
11640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 eval "$as_ac_Header=\$ac_header_preproc"
11647 ac_res=`eval echo '${'$as_ac_Header'}'`
11648 { echo "$as_me:$LINENO: result: $ac_res" >&5
11649 echo "${ECHO_T}$ac_res" >&6; }
11652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653 cat >>confdefs.h <<_ACEOF
11654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11665 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 ac_res=`eval echo '${'$as_ac_Header'}'`
11675 { echo "$as_me:$LINENO: result: $ac_res" >&5
11676 echo "${ECHO_T}$ac_res" >&6; }
11678 # Is the header compilable?
11679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11681 cat >conftest.$ac_ext <<_ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 $ac_includes_default
11688 #include <$ac_header>
11690 rm -f conftest.$ac_objext
11691 if { (ac_try="$ac_compile"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_compile") 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11705 { (case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_try") 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest.$ac_objext'
11715 { (case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_try") 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 ac_header_compiler=yes
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 ac_header_compiler=no
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11734 echo "${ECHO_T}$ac_header_compiler" >&6; }
11736 # Is the header present?
11737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11739 cat >conftest.$ac_ext <<_ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 #include <$ac_header>
11747 if { (ac_try="$ac_cpp conftest.$ac_ext"
11748 case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11755 grep -v '^ *+' conftest.er1 >conftest.err
11757 cat conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } >/dev/null; then
11760 if test -s conftest.err; then
11761 ac_cpp_err=$ac_c_preproc_warn_flag
11762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11769 if test -z "$ac_cpp_err"; then
11770 ac_header_preproc=yes
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 ac_header_preproc=no
11778 rm -f conftest.err conftest.$ac_ext
11779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11780 echo "${ECHO_T}$ac_header_preproc" >&6; }
11782 # So? What about this header?
11783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11789 ac_header_preproc=yes
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11805 ## ----------------------------------- ##
11806 ## Report this to llvmbugs@cs.uiuc.edu ##
11807 ## ----------------------------------- ##
11809 ) | sed "s/^/$as_me: WARNING: /" >&2
11812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 eval "$as_ac_Header=\$ac_header_preproc"
11819 ac_res=`eval echo '${'$as_ac_Header'}'`
11820 { echo "$as_me:$LINENO: result: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11825 cat >>confdefs.h <<_ACEOF
11826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11835 for ac_header in string.h strings.h
11837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 ac_res=`eval echo '${'$as_ac_Header'}'`
11845 { echo "$as_me:$LINENO: result: $ac_res" >&5
11846 echo "${ECHO_T}$ac_res" >&6; }
11848 # Is the header compilable?
11849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11851 cat >conftest.$ac_ext <<_ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 $ac_includes_default
11858 #include <$ac_header>
11860 rm -f conftest.$ac_objext
11861 if { (ac_try="$ac_compile"
11862 case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_compile") 2>conftest.er1
11869 grep -v '^ *+' conftest.er1 >conftest.err
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11875 { (case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_try") 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest.$ac_objext'
11885 { (case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_try") 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_header_compiler=yes
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 ac_header_compiler=no
11902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11904 echo "${ECHO_T}$ac_header_compiler" >&6; }
11906 # Is the header present?
11907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11909 cat >conftest.$ac_ext <<_ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915 #include <$ac_header>
11917 if { (ac_try="$ac_cpp conftest.$ac_ext"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11925 grep -v '^ *+' conftest.er1 >conftest.err
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } >/dev/null; then
11930 if test -s conftest.err; then
11931 ac_cpp_err=$ac_c_preproc_warn_flag
11932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11939 if test -z "$ac_cpp_err"; then
11940 ac_header_preproc=yes
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_header_preproc=no
11948 rm -f conftest.err conftest.$ac_ext
11949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11950 echo "${ECHO_T}$ac_header_preproc" >&6; }
11952 # So? What about this header?
11953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11959 ac_header_preproc=yes
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11975 ## ----------------------------------- ##
11976 ## Report this to llvmbugs@cs.uiuc.edu ##
11977 ## ----------------------------------- ##
11979 ) | sed "s/^/$as_me: WARNING: /" >&2
11982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 eval "$as_ac_Header=\$ac_header_preproc"
11989 ac_res=`eval echo '${'$as_ac_Header'}'`
11990 { echo "$as_me:$LINENO: result: $ac_res" >&5
11991 echo "${ECHO_T}$ac_res" >&6; }
11994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11995 cat >>confdefs.h <<_ACEOF
11996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12006 for ac_func in strchr index
12008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 cat >conftest.$ac_ext <<_ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12022 #define $ac_func innocuous_$ac_func
12024 /* System header to define __stub macros and hopefully few prototypes,
12025 which can conflict with char $ac_func (); below.
12026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12027 <limits.h> exists even on freestanding compilers. */
12030 # include <limits.h>
12032 # include <assert.h>
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12044 /* The GNU C library defines this for functions which it implements
12045 to always fail with ENOSYS. Some functions are actually named
12046 something starting with __ and the normal name is an alias. */
12047 #if defined __stub_$ac_func || defined __stub___$ac_func
12054 return $ac_func ();
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (ac_try="$ac_link"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
12068 grep -v '^ *+' conftest.er1 >conftest.err
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12074 { (case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_try") 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest$ac_exeext'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 eval "$as_ac_var=yes"
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 eval "$as_ac_var=no"
12101 rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12104 ac_res=`eval echo '${'$as_ac_var'}'`
12105 { echo "$as_me:$LINENO: result: $ac_res" >&5
12106 echo "${ECHO_T}$ac_res" >&6; }
12107 if test `eval echo '${'$as_ac_var'}'` = yes; then
12108 cat >>confdefs.h <<_ACEOF
12109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12117 for ac_func in strrchr rindex
12119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12133 #define $ac_func innocuous_$ac_func
12135 /* System header to define __stub macros and hopefully few prototypes,
12136 which can conflict with char $ac_func (); below.
12137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12138 <limits.h> exists even on freestanding compilers. */
12141 # include <limits.h>
12143 # include <assert.h>
12148 /* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
12155 /* The GNU C library defines this for functions which it implements
12156 to always fail with ENOSYS. Some functions are actually named
12157 something starting with __ and the normal name is an alias. */
12158 #if defined __stub_$ac_func || defined __stub___$ac_func
12165 return $ac_func ();
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (ac_try="$ac_link"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_link") 2>conftest.er1
12179 grep -v '^ *+' conftest.er1 >conftest.err
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12185 { (case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_try") 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 eval "$as_ac_var=yes"
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 eval "$as_ac_var=no"
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12215 ac_res=`eval echo '${'$as_ac_var'}'`
12216 { echo "$as_me:$LINENO: result: $ac_res" >&5
12217 echo "${ECHO_T}$ac_res" >&6; }
12218 if test `eval echo '${'$as_ac_var'}'` = yes; then
12219 cat >>confdefs.h <<_ACEOF
12220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12228 for ac_func in memcpy bcopy
12230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 cat >conftest.$ac_ext <<_ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12244 #define $ac_func innocuous_$ac_func
12246 /* System header to define __stub macros and hopefully few prototypes,
12247 which can conflict with char $ac_func (); below.
12248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12249 <limits.h> exists even on freestanding compilers. */
12252 # include <limits.h>
12254 # include <assert.h>
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12266 /* The GNU C library defines this for functions which it implements
12267 to always fail with ENOSYS. Some functions are actually named
12268 something starting with __ and the normal name is an alias. */
12269 #if defined __stub_$ac_func || defined __stub___$ac_func
12276 return $ac_func ();
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (ac_try="$ac_link"
12283 case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_link") 2>conftest.er1
12290 grep -v '^ *+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12296 { (case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_try") 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_try") 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 eval "$as_ac_var=yes"
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 eval "$as_ac_var=no"
12323 rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12326 ac_res=`eval echo '${'$as_ac_var'}'`
12327 { echo "$as_me:$LINENO: result: $ac_res" >&5
12328 echo "${ECHO_T}$ac_res" >&6; }
12329 if test `eval echo '${'$as_ac_var'}'` = yes; then
12330 cat >>confdefs.h <<_ACEOF
12331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12339 for ac_func in memmove strcmp
12341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12347 cat >conftest.$ac_ext <<_ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12355 #define $ac_func innocuous_$ac_func
12357 /* System header to define __stub macros and hopefully few prototypes,
12358 which can conflict with char $ac_func (); below.
12359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12360 <limits.h> exists even on freestanding compilers. */
12363 # include <limits.h>
12365 # include <assert.h>
12370 /* Override any GCC internal prototype to avoid an error.
12371 Use char because int might match the return type of a GCC
12372 builtin and then its argument prototype would still apply. */
12377 /* The GNU C library defines this for functions which it implements
12378 to always fail with ENOSYS. Some functions are actually named
12379 something starting with __ and the normal name is an alias. */
12380 #if defined __stub_$ac_func || defined __stub___$ac_func
12387 return $ac_func ();
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (ac_try="$ac_link"
12394 case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_link") 2>conftest.er1
12401 grep -v '^ *+' conftest.er1 >conftest.err
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
12406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12407 { (case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_try") 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest$ac_exeext'
12417 { (case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_try") 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 eval "$as_ac_var=yes"
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12431 eval "$as_ac_var=no"
12434 rm -f core conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12437 ac_res=`eval echo '${'$as_ac_var'}'`
12438 { echo "$as_me:$LINENO: result: $ac_res" >&5
12439 echo "${ECHO_T}$ac_res" >&6; }
12440 if test `eval echo '${'$as_ac_var'}'` = yes; then
12441 cat >>confdefs.h <<_ACEOF
12442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12451 for ac_func in closedir opendir readdir
12453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 cat >conftest.$ac_ext <<_ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12467 #define $ac_func innocuous_$ac_func
12469 /* System header to define __stub macros and hopefully few prototypes,
12470 which can conflict with char $ac_func (); below.
12471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12472 <limits.h> exists even on freestanding compilers. */
12475 # include <limits.h>
12477 # include <assert.h>
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12489 /* The GNU C library defines this for functions which it implements
12490 to always fail with ENOSYS. Some functions are actually named
12491 something starting with __ and the normal name is an alias. */
12492 #if defined __stub_$ac_func || defined __stub___$ac_func
12499 return $ac_func ();
12504 rm -f conftest.$ac_objext conftest$ac_exeext
12505 if { (ac_try="$ac_link"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_link") 2>conftest.er1
12513 grep -v '^ *+' conftest.er1 >conftest.err
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
12518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12519 { (case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_try") 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest$ac_exeext'
12529 { (case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_try") 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12538 eval "$as_ac_var=yes"
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 eval "$as_ac_var=no"
12546 rm -f core conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12549 ac_res=`eval echo '${'$as_ac_var'}'`
12550 { echo "$as_me:$LINENO: result: $ac_res" >&5
12551 echo "${ECHO_T}$ac_res" >&6; }
12552 if test `eval echo '${'$as_ac_var'}'` = yes; then
12553 cat >>confdefs.h <<_ACEOF
12554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12561 # Check whether --enable-shared was given.
12562 if test "${enable_shared+set}" = set; then
12563 enableval=$enable_shared; p=${PACKAGE-default}
12565 yes) enable_shared=yes ;;
12566 no) enable_shared=no ;;
12569 # Look at the argument we got. We use all the common list separators.
12570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12571 for pkg in $enableval; do
12573 if test "X$pkg" = "X$p"; then
12585 # Check whether --enable-static was given.
12586 if test "${enable_static+set}" = set; then
12587 enableval=$enable_static; p=${PACKAGE-default}
12589 yes) enable_static=yes ;;
12590 no) enable_static=no ;;
12593 # Look at the argument we got. We use all the common list separators.
12594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12595 for pkg in $enableval; do
12597 if test "X$pkg" = "X$p"; then
12609 # Check whether --enable-fast-install was given.
12610 if test "${enable_fast_install+set}" = set; then
12611 enableval=$enable_fast_install; p=${PACKAGE-default}
12613 yes) enable_fast_install=yes ;;
12614 no) enable_fast_install=no ;;
12616 enable_fast_install=no
12617 # Look at the argument we got. We use all the common list separators.
12618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12619 for pkg in $enableval; do
12621 if test "X$pkg" = "X$p"; then
12622 enable_fast_install=yes
12629 enable_fast_install=yes
12633 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12634 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12635 if test "${lt_cv_path_SED+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 # Loop through the user's path and test for sed and gsed.
12639 # Then use that list of sed's as ones to test for truncation.
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12644 test -z "$as_dir" && as_dir=.
12645 for lt_ac_prog in sed gsed; do
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12648 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12655 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12656 # along with /bin/sed that truncates output.
12657 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12658 test ! -f $lt_ac_sed && continue
12659 cat /dev/null > conftest.in
12661 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12662 # Check for GNU sed and select it if it is found.
12663 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12664 lt_cv_path_SED=$lt_ac_sed
12668 cat conftest.in conftest.in >conftest.tmp
12669 mv conftest.tmp conftest.in
12670 cp conftest.in conftest.nl
12672 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12673 cmp -s conftest.out conftest.nl || break
12674 # 10000 chars as input seems more than enough
12675 test $lt_ac_count -gt 10 && break
12676 lt_ac_count=`expr $lt_ac_count + 1`
12677 if test $lt_ac_count -gt $lt_ac_max; then
12678 lt_ac_max=$lt_ac_count
12679 lt_cv_path_SED=$lt_ac_sed
12686 SED=$lt_cv_path_SED
12687 { echo "$as_me:$LINENO: result: $SED" >&5
12688 echo "${ECHO_T}$SED" >&6; }
12691 # Check whether --with-gnu-ld was given.
12692 if test "${with_gnu_ld+set}" = set; then
12693 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12699 if test "$GCC" = yes; then
12700 # Check if gcc -print-prog-name=ld gives a path.
12701 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12702 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12705 # gcc leaves a trailing carriage return which upsets mingw
12706 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12708 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12711 # Accept absolute paths.
12713 re_direlt='/[^/][^/]*/\.\./'
12714 # Canonicalize the pathname of ld
12715 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12716 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12717 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12719 test -z "$LD" && LD="$ac_prog"
12722 # If it fails, then pretend we aren't using GCC.
12726 # If it is relative, then search for the first ld in PATH.
12727 with_gnu_ld=unknown
12730 elif test "$with_gnu_ld" = yes; then
12731 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12732 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12734 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12735 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12737 if test "${lt_cv_path_LD+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 if test -z "$LD"; then
12741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12742 for ac_dir in $PATH; do
12744 test -z "$ac_dir" && ac_dir=.
12745 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12746 lt_cv_path_LD="$ac_dir/$ac_prog"
12747 # Check to see if the program is GNU ld. I'd rather use --version,
12748 # but apparently some variants of GNU ld only accept -v.
12749 # Break only if it was the GNU/non-GNU ld that we prefer.
12750 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12751 *GNU* | *'with BFD'*)
12752 test "$with_gnu_ld" != no && break
12755 test "$with_gnu_ld" != yes && break
12762 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12766 LD="$lt_cv_path_LD"
12767 if test -n "$LD"; then
12768 { echo "$as_me:$LINENO: result: $LD" >&5
12769 echo "${ECHO_T}$LD" >&6; }
12771 { echo "$as_me:$LINENO: result: no" >&5
12772 echo "${ECHO_T}no" >&6; }
12774 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12775 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12776 { (exit 1); exit 1; }; }
12777 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12778 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12779 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12783 case `$LD -v 2>&1 </dev/null` in
12784 *GNU* | *'with BFD'*)
12785 lt_cv_prog_gnu_ld=yes
12788 lt_cv_prog_gnu_ld=no
12792 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12793 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12794 with_gnu_ld=$lt_cv_prog_gnu_ld
12797 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12798 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12799 if test "${lt_cv_ld_reload_flag+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 lt_cv_ld_reload_flag='-r'
12804 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12805 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12806 reload_flag=$lt_cv_ld_reload_flag
12807 case $reload_flag in
12809 *) reload_flag=" $reload_flag" ;;
12811 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12814 if test "$GCC" = yes; then
12815 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12817 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12822 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12823 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12824 if test "${lt_cv_deplibs_check_method+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 lt_cv_file_magic_cmd='$MAGIC_CMD'
12828 lt_cv_file_magic_test_file=
12829 lt_cv_deplibs_check_method='unknown'
12830 # Need to set the preceding variable on all platforms that support
12831 # interlibrary dependencies.
12832 # 'none' -- dependencies not supported.
12833 # `unknown' -- same as none, but documents that we really don't know.
12834 # 'pass_all' -- all dependencies passed with no checks.
12835 # 'test_compile' -- check by making test program.
12836 # 'file_magic [[regex]]' -- check by looking for files in library path
12837 # which responds to the $file_magic_cmd with a given extended regex.
12838 # If you have `file' or equivalent on your system and you're not sure
12839 # whether `pass_all' will *always* work, you probably want this one.
12843 lt_cv_deplibs_check_method=pass_all
12847 lt_cv_deplibs_check_method=pass_all
12851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12852 lt_cv_file_magic_cmd='/usr/bin/file -L'
12853 lt_cv_file_magic_test_file=/shlib/libc.so
12857 # func_win32_libid is a shell function defined in ltmain.sh
12858 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12859 lt_cv_file_magic_cmd='func_win32_libid'
12863 # Base MSYS/MinGW do not provide the 'file' command needed by
12864 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12865 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12866 lt_cv_file_magic_cmd='$OBJDUMP -f'
12869 darwin* | rhapsody*)
12870 lt_cv_deplibs_check_method=pass_all
12873 freebsd* | kfreebsd*-gnu | dragonfly*)
12874 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12877 # Not sure whether the presence of OpenBSD here was a mistake.
12878 # Let's accept both of them until this is cleared up.
12879 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12880 lt_cv_file_magic_cmd=/usr/bin/file
12881 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12885 lt_cv_deplibs_check_method=pass_all
12890 lt_cv_deplibs_check_method=pass_all
12893 hpux10.20* | hpux11*)
12894 lt_cv_file_magic_cmd=/usr/bin/file
12897 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12898 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12901 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]'
12902 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12905 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12906 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12912 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12916 irix5* | irix6* | nonstopux*)
12918 *-32|*"-32 ") libmagic=32-bit;;
12919 *-n32|*"-n32 ") libmagic=N32;;
12920 *-64|*"-64 ") libmagic=64-bit;;
12921 *) libmagic=never-match;;
12923 lt_cv_deplibs_check_method=pass_all
12926 # This must be Linux ELF.
12928 lt_cv_deplibs_check_method=pass_all
12932 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12941 lt_cv_file_magic_cmd=/usr/bin/file
12942 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12946 lt_cv_deplibs_check_method=unknown
12950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12957 osf3* | osf4* | osf5*)
12958 lt_cv_deplibs_check_method=pass_all
12962 lt_cv_deplibs_check_method=pass_all
12966 case $host_vendor in
12968 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]'
12969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12972 lt_cv_deplibs_check_method=pass_all
12975 lt_cv_file_magic_cmd='/bin/file'
12976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12979 lt_cv_file_magic_cmd='/bin/file'
12980 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12981 lt_cv_file_magic_test_file=/lib/libc.so
12984 lt_cv_deplibs_check_method=pass_all
12987 lt_cv_deplibs_check_method=pass_all
12992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12993 lt_cv_deplibs_check_method=pass_all
12998 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12999 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13000 file_magic_cmd=$lt_cv_file_magic_cmd
13001 deplibs_check_method=$lt_cv_deplibs_check_method
13002 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13006 # If no C compiler was specified, use CC.
13009 # If no C compiler flags were specified, use CFLAGS.
13010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13012 # Allow CC to be a program name with arguments.
13015 # Check whether --enable-libtool-lock was given.
13016 if test "${enable_libtool_lock+set}" = set; then
13017 enableval=$enable_libtool_lock;
13020 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13022 # Some flags need to be propagated to the compiler or linker for good
13026 # Find out which ABI we are using.
13027 echo 'int i;' > conftest.$ac_ext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029 (eval $ac_compile) 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; then
13033 case `/usr/bin/file conftest.$ac_objext` in
13035 HPUX_IA64_MODE="32"
13038 HPUX_IA64_MODE="64"
13045 # Find out which ABI we are using.
13046 echo '#line 13046 "configure"' > conftest.$ac_ext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; then
13052 if test "$lt_cv_prog_gnu_ld" = yes; then
13053 case `/usr/bin/file conftest.$ac_objext` in
13055 LD="${LD-ld} -melf32bsmip"
13058 LD="${LD-ld} -melf32bmipn32"
13061 LD="${LD-ld} -melf64bmip"
13065 case `/usr/bin/file conftest.$ac_objext` in
13081 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13082 # Find out which ABI we are using.
13083 echo 'int i;' > conftest.$ac_ext
13084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13085 (eval $ac_compile) 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; then
13089 case `/usr/bin/file conftest.o` in
13093 LD="${LD-ld} -m elf_i386"
13095 ppc64-*linux*|powerpc64-*linux*)
13096 LD="${LD-ld} -m elf32ppclinux"
13099 LD="${LD-ld} -m elf_s390"
13102 LD="${LD-ld} -m elf32_sparc"
13109 LD="${LD-ld} -m elf_x86_64"
13111 ppc*-*linux*|powerpc*-*linux*)
13112 LD="${LD-ld} -m elf64ppc"
13115 LD="${LD-ld} -m elf64_s390"
13118 LD="${LD-ld} -m elf64_sparc"
13128 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13129 SAVE_CFLAGS="$CFLAGS"
13130 CFLAGS="$CFLAGS -belf"
13131 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13132 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13133 if test "${lt_cv_cc_needs_belf+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 ac_cpp='$CPP $CPPFLAGS'
13138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13142 cat >conftest.$ac_ext <<_ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13157 rm -f conftest.$ac_objext conftest$ac_exeext
13158 if { (ac_try="$ac_link"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_link") 2>conftest.er1
13166 grep -v '^ *+' conftest.er1 >conftest.err
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13172 { (case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_try") 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest$ac_exeext'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 lt_cv_cc_needs_belf=yes
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 lt_cv_cc_needs_belf=no
13199 rm -f core conftest.err conftest.$ac_objext \
13200 conftest$ac_exeext conftest.$ac_ext
13202 ac_cpp='$CPP $CPPFLAGS'
13203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13208 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13209 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13212 CFLAGS="$SAVE_CFLAGS"
13216 # Find out which ABI we are using.
13217 echo 'int i;' > conftest.$ac_ext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219 (eval $ac_compile) 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; then
13223 case `/usr/bin/file conftest.o` in
13225 case $lt_cv_prog_gnu_ld in
13226 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13227 *) LD="${LD-ld} -64" ;;
13238 need_locks="$enable_libtool_lock"
13243 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13244 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13245 (test "X$CXX" != "Xg++"))) ; then
13247 ac_cpp='$CXXCPP $CPPFLAGS'
13248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13251 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13252 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13253 if test -z "$CXXCPP"; then
13254 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 # Double quotes because CXXCPP needs to be expanded
13258 for CXXCPP in "$CXX -E" "/lib/cpp"
13260 ac_preproc_ok=false
13261 for ac_cxx_preproc_warn_flag in '' yes
13263 # Use a header file that comes with gcc, so configuring glibc
13264 # with a fresh cross-compiler works.
13265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13266 # <limits.h> exists even on freestanding compilers.
13267 # On the NeXT, cc -E runs the code through the compiler's parser,
13268 # not just through cpp. "Syntax error" is here to catch this case.
13269 cat >conftest.$ac_ext <<_ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13276 # include <limits.h>
13278 # include <assert.h>
13282 if { (ac_try="$ac_cpp conftest.$ac_ext"
13283 case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13290 grep -v '^ *+' conftest.er1 >conftest.err
13292 cat conftest.err >&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } >/dev/null; then
13295 if test -s conftest.err; then
13296 ac_cpp_err=$ac_cxx_preproc_warn_flag
13297 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13304 if test -z "$ac_cpp_err"; then
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 # Broken: fails on valid input.
13314 rm -f conftest.err conftest.$ac_ext
13316 # OK, works on sane cases. Now check whether nonexistent headers
13317 # can be detected and how.
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 #include <ac_nonexistent.h>
13326 if { (ac_try="$ac_cpp conftest.$ac_ext"
13327 case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13334 grep -v '^ *+' conftest.er1 >conftest.err
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } >/dev/null; then
13339 if test -s conftest.err; then
13340 ac_cpp_err=$ac_cxx_preproc_warn_flag
13341 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13348 if test -z "$ac_cpp_err"; then
13349 # Broken: success on invalid input.
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13355 # Passes both tests.
13360 rm -f conftest.err conftest.$ac_ext
13363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13364 rm -f conftest.err conftest.$ac_ext
13365 if $ac_preproc_ok; then
13370 ac_cv_prog_CXXCPP=$CXXCPP
13373 CXXCPP=$ac_cv_prog_CXXCPP
13375 ac_cv_prog_CXXCPP=$CXXCPP
13377 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13378 echo "${ECHO_T}$CXXCPP" >&6; }
13379 ac_preproc_ok=false
13380 for ac_cxx_preproc_warn_flag in '' yes
13382 # Use a header file that comes with gcc, so configuring glibc
13383 # with a fresh cross-compiler works.
13384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13385 # <limits.h> exists even on freestanding compilers.
13386 # On the NeXT, cc -E runs the code through the compiler's parser,
13387 # not just through cpp. "Syntax error" is here to catch this case.
13388 cat >conftest.$ac_ext <<_ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13395 # include <limits.h>
13397 # include <assert.h>
13401 if { (ac_try="$ac_cpp conftest.$ac_ext"
13402 case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13409 grep -v '^ *+' conftest.er1 >conftest.err
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } >/dev/null; then
13414 if test -s conftest.err; then
13415 ac_cpp_err=$ac_cxx_preproc_warn_flag
13416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13423 if test -z "$ac_cpp_err"; then
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 # Broken: fails on valid input.
13433 rm -f conftest.err conftest.$ac_ext
13435 # OK, works on sane cases. Now check whether nonexistent headers
13436 # can be detected and how.
13437 cat >conftest.$ac_ext <<_ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13443 #include <ac_nonexistent.h>
13445 if { (ac_try="$ac_cpp conftest.$ac_ext"
13446 case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13453 grep -v '^ *+' conftest.er1 >conftest.err
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } >/dev/null; then
13458 if test -s conftest.err; then
13459 ac_cpp_err=$ac_cxx_preproc_warn_flag
13460 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13467 if test -z "$ac_cpp_err"; then
13468 # Broken: success on invalid input.
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13474 # Passes both tests.
13479 rm -f conftest.err conftest.$ac_ext
13482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13483 rm -f conftest.err conftest.$ac_ext
13484 if $ac_preproc_ok; then
13487 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13488 See \`config.log' for more details." >&5
13489 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13490 See \`config.log' for more details." >&2;}
13491 { (exit 1); exit 1; }; }
13495 ac_cpp='$CXXCPP $CPPFLAGS'
13496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13504 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13505 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13507 if test -n "$ac_tool_prefix"; then
13508 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
13510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13514 if test "${ac_cv_prog_F77+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 if test -n "$F77"; then
13518 ac_cv_prog_F77="$F77" # Let the user override the test.
13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521 for as_dir in $PATH
13524 test -z "$as_dir" && as_dir=.
13525 for ac_exec_ext in '' $ac_executable_extensions; do
13526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13527 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 F77=$ac_cv_prog_F77
13538 if test -n "$F77"; then
13539 { echo "$as_me:$LINENO: result: $F77" >&5
13540 echo "${ECHO_T}$F77" >&6; }
13542 { echo "$as_me:$LINENO: result: no" >&5
13543 echo "${ECHO_T}no" >&6; }
13547 test -n "$F77" && break
13550 if test -z "$F77"; then
13552 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
13554 # Extract the first word of "$ac_prog", so it can be a program name with args.
13555 set dummy $ac_prog; ac_word=$2
13556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13558 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 if test -n "$ac_ct_F77"; then
13562 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
13570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13571 ac_cv_prog_ac_ct_F77="$ac_prog"
13572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13581 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13582 if test -n "$ac_ct_F77"; then
13583 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13584 echo "${ECHO_T}$ac_ct_F77" >&6; }
13586 { echo "$as_me:$LINENO: result: no" >&5
13587 echo "${ECHO_T}no" >&6; }
13591 test -n "$ac_ct_F77" && break
13594 if test "x$ac_ct_F77" = x; then
13597 case $cross_compiling:$ac_tool_warned in
13599 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13600 whose name does not start with the host triplet. If you think this
13601 configuration is useful to you, please write to autoconf@gnu.org." >&5
13602 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13603 whose name does not start with the host triplet. If you think this
13604 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13605 ac_tool_warned=yes ;;
13612 # Provide some information about the compiler.
13613 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13614 ac_compiler=`set X $ac_compile; echo $2`
13615 { (ac_try="$ac_compiler --version >&5"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_compiler --version >&5") 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }
13625 { (ac_try="$ac_compiler -v >&5"
13626 case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_compiler -v >&5") 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }
13635 { (ac_try="$ac_compiler -V >&5"
13636 case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_compiler -V >&5") 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }
13647 # If we don't use `.F' as extension, the preprocessor is not run on the
13648 # input file. (Note that this only needs to work for GNU compilers.)
13649 ac_save_ext=$ac_ext
13651 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13652 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13653 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 cat >conftest.$ac_ext <<_ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (ac_try="$ac_compile"
13666 case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_compile") 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13679 { (case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_try") 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try='test -s conftest.$ac_objext'
13689 { (case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_try") 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
13698 ac_compiler_gnu=yes
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13710 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13711 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13712 ac_ext=$ac_save_ext
13713 ac_test_FFLAGS=${FFLAGS+set}
13714 ac_save_FFLAGS=$FFLAGS
13716 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13717 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13718 if test "${ac_cv_prog_f77_g+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 cat >conftest.$ac_ext <<_ACEOF
13727 rm -f conftest.$ac_objext
13728 if { (ac_try="$ac_compile"
13729 case "(($ac_try" in
13730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731 *) ac_try_echo=$ac_try;;
13733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734 (eval "$ac_compile") 2>conftest.er1
13736 grep -v '^ *+' conftest.er1 >conftest.err
13738 cat conftest.err >&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13742 { (case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_try") 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest.$ac_objext'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_cv_prog_f77_g=yes
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13766 ac_cv_prog_f77_g=no
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13773 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13774 if test "$ac_test_FFLAGS" = set; then
13775 FFLAGS=$ac_save_FFLAGS
13776 elif test $ac_cv_prog_f77_g = yes; then
13777 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13783 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13790 G77=`test $ac_compiler_gnu = yes && echo yes`
13792 ac_cpp='$CPP $CPPFLAGS'
13793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13799 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13801 # find the maximum length of command line arguments
13802 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13803 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13804 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 # On DJGPP, this test can blow up pretty badly due to problems in libc
13813 # (any single argument exceeding 2000 bytes causes a buffer overrun
13814 # during glob expansion). Even if it were fixed, the result of this
13815 # check would be larger than it should be.
13816 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13820 # Under GNU Hurd, this test is not required because there is
13821 # no limit to the length of command line arguments.
13822 # Libtool will interpret -1 as no limit whatsoever
13823 lt_cv_sys_max_cmd_len=-1;
13827 # On Win9x/ME, this test blows up -- it succeeds, but takes
13828 # about 5 minutes as the teststring grows exponentially.
13829 # Worse, since 9x/ME are not pre-emptively multitasking,
13830 # you end up with a "frozen" computer, even though with patience
13831 # the test eventually succeeds (with a max line length of 256k).
13832 # Instead, let's just punt: use the minimum linelength reported by
13833 # all of the supported platforms: 8192 (on NT/2K/XP).
13834 lt_cv_sys_max_cmd_len=8192;
13838 # On AmigaOS with pdksh, this test takes hours, literally.
13839 # So we just punt and use a minimum line length of 8192.
13840 lt_cv_sys_max_cmd_len=8192;
13843 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13844 # This has been around since 386BSD, at least. Likely further.
13845 if test -x /sbin/sysctl; then
13846 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13847 elif test -x /usr/sbin/sysctl; then
13848 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13850 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13852 # And add a safety zone
13853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13858 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13859 lt_cv_sys_max_cmd_len=196608
13863 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13864 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13865 # nice to cause kernel panics so lets avoid the loop below.
13866 # First set a reasonable default.
13867 lt_cv_sys_max_cmd_len=16384
13869 if test -x /sbin/sysconfig; then
13870 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13871 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13876 lt_cv_sys_max_cmd_len=102400
13878 sysv5* | sco5v6* | sysv4.2uw2*)
13879 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13880 if test -n "$kargmax"; then
13881 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13883 lt_cv_sys_max_cmd_len=32768
13887 # If test is not a shell built-in, we'll probably end up computing a
13888 # maximum length that is only half of the actual maximum length, but
13890 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13891 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13892 = "XX$teststring") >/dev/null 2>&1 &&
13893 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13894 lt_cv_sys_max_cmd_len=$new_result &&
13895 test $i != 17 # 1/2 MB should be enough
13898 teststring=$teststring$teststring
13901 # Add a significant safety factor because C++ compilers can tack on massive
13902 # amounts of additional arguments before passing them to the linker.
13903 # It appears as though 1/2 is a usable value.
13904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13910 if test -n $lt_cv_sys_max_cmd_len ; then
13911 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13912 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13914 { echo "$as_me:$LINENO: result: none" >&5
13915 echo "${ECHO_T}none" >&6; }
13921 # Check for command to grab the raw symbol name followed by C symbol from nm.
13922 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13923 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13924 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 # These are sane defaults that work on at least a few old systems.
13929 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13931 # Character class describing NM global symbol codes.
13932 symcode='[BCDEGRST]'
13934 # Regexp to match symbols that can be accessed directly from C.
13935 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13937 # Transform an extracted symbol line into a proper C declaration
13938 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13940 # Transform an extracted symbol line into symbol name and symbol address
13941 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'"
13943 # Define system-specific variables.
13948 cygwin* | mingw* | pw32*)
13949 symcode='[ABCDGISTW]'
13951 hpux*) # Its linker distinguishes data from code symbols
13952 if test "$host_cpu" = ia64; then
13953 symcode='[ABCDEGRST]'
13955 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13956 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'"
13959 if test "$host_cpu" = ia64; then
13960 symcode='[ABCDGIRSTW]'
13961 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13962 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'"
13965 irix* | nonstopux*)
13966 symcode='[BCDEGRST]'
13969 symcode='[BCDEGQRST]'
13980 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13988 # Handle CRLF in mingw tool chain
13992 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13996 # If we're using GNU nm, then use its standard symbol codes.
13997 case `$NM -V 2>&1` in
13998 *GNU* | *'with BFD'*)
13999 symcode='[ABCDGIRSTW]' ;;
14002 # Try without a prefix undercore, then with it.
14003 for ac_symprfx in "" "_"; do
14005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14006 symxfrm="\\1 $ac_symprfx\\2 \\2"
14008 # Write the raw and C identifiers.
14009 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14011 # Check to see that the pipe works correctly.
14015 cat > conftest.$ac_ext <<EOF
14020 void nm_test_func(){}
14024 int main(){nm_test_var='a';nm_test_func();return(0);}
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028 (eval $ac_compile) 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; then
14032 # Now try to grab the symbols.
14034 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14035 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && test -s "$nlist"; then
14039 # Try sorting and uniquifying the output.
14040 if sort "$nlist" | uniq > "$nlist"T; then
14041 mv -f "$nlist"T "$nlist"
14046 # Make sure that we snagged all the symbols we need.
14047 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14048 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14049 cat <<EOF > conftest.$ac_ext
14055 # Now generate the symbol file.
14056 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14058 cat <<EOF >> conftest.$ac_ext
14059 #if defined (__STDC__) && __STDC__
14060 # define lt_ptr_t void *
14062 # define lt_ptr_t char *
14066 /* The mapping between symbol names and symbols. */
14071 lt_preloaded_symbols[] =
14074 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14075 cat <<\EOF >> conftest.$ac_ext
14083 # Now try linking the two files.
14084 mv conftest.$ac_objext conftstm.$ac_objext
14085 lt_save_LIBS="$LIBS"
14086 lt_save_CFLAGS="$CFLAGS"
14087 LIBS="conftstm.$ac_objext"
14088 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090 (eval $ac_link) 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14096 LIBS="$lt_save_LIBS"
14097 CFLAGS="$lt_save_CFLAGS"
14099 echo "cannot find nm_test_func in $nlist" >&5
14102 echo "cannot find nm_test_var in $nlist" >&5
14105 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14108 echo "$progname: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14111 rm -f conftest* conftst*
14113 # Do not use the global_symbol_pipe unless it works.
14114 if test "$pipe_works" = yes; then
14117 lt_cv_sys_global_symbol_pipe=
14123 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14124 lt_cv_sys_global_symbol_to_cdecl=
14126 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14127 { echo "$as_me:$LINENO: result: failed" >&5
14128 echo "${ECHO_T}failed" >&6; }
14130 { echo "$as_me:$LINENO: result: ok" >&5
14131 echo "${ECHO_T}ok" >&6; }
14134 { echo "$as_me:$LINENO: checking for objdir" >&5
14135 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14136 if test "${lt_cv_objdir+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 rm -f .libs 2>/dev/null
14140 mkdir .libs 2>/dev/null
14141 if test -d .libs; then
14144 # MS-DOS does not allow filenames that begin with a dot.
14147 rmdir .libs 2>/dev/null
14149 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14150 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14151 objdir=$lt_cv_objdir
14159 # AIX sometimes has problems with the GCC collect2 program. For some
14160 # reason, if we set the COLLECT_NAMES environment variable, the problems
14161 # vanish in a puff of smoke.
14162 if test "X${COLLECT_NAMES+set}" != Xset; then
14164 export COLLECT_NAMES
14169 # Sed substitution that helps us do robust quoting. It backslashifies
14170 # metacharacters that are still active within double-quoted strings.
14171 Xsed='sed -e 1s/^X//'
14172 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14174 # Same as above, but do not quote variable references.
14175 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14177 # Sed substitution to delay expansion of an escaped shell variable in a
14178 # double_quote_subst'ed string.
14179 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14181 # Sed substitution to avoid accidental globbing in evaled expressions
14182 no_glob_subst='s/\*/\\\*/g'
14187 # Global variables:
14188 default_ofile=mklib
14189 can_build_shared=yes
14191 # All known linkers require a `.a' archive for static linking (except MSVC,
14192 # which needs '.lib').
14194 ltmain="$ac_aux_dir/ltmain.sh"
14195 ofile="$default_ofile"
14196 with_gnu_ld="$lt_cv_prog_gnu_ld"
14198 if test -n "$ac_tool_prefix"; then
14199 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14200 set dummy ${ac_tool_prefix}ar; ac_word=$2
14201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14203 if test "${ac_cv_prog_AR+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 if test -n "$AR"; then
14207 ac_cv_prog_AR="$AR" # Let the user override the test.
14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210 for as_dir in $PATH
14213 test -z "$as_dir" && as_dir=.
14214 for ac_exec_ext in '' $ac_executable_extensions; do
14215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14216 ac_cv_prog_AR="${ac_tool_prefix}ar"
14217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 if test -n "$AR"; then
14228 { echo "$as_me:$LINENO: result: $AR" >&5
14229 echo "${ECHO_T}$AR" >&6; }
14231 { echo "$as_me:$LINENO: result: no" >&5
14232 echo "${ECHO_T}no" >&6; }
14237 if test -z "$ac_cv_prog_AR"; then
14239 # Extract the first word of "ar", so it can be a program name with args.
14240 set dummy ar; ac_word=$2
14241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14243 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 if test -n "$ac_ct_AR"; then
14247 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14256 ac_cv_prog_ac_ct_AR="ar"
14257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14267 if test -n "$ac_ct_AR"; then
14268 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14269 echo "${ECHO_T}$ac_ct_AR" >&6; }
14271 { echo "$as_me:$LINENO: result: no" >&5
14272 echo "${ECHO_T}no" >&6; }
14275 if test "x$ac_ct_AR" = x; then
14278 case $cross_compiling:$ac_tool_warned in
14280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14281 whose name does not start with the host triplet. If you think this
14282 configuration is useful to you, please write to autoconf@gnu.org." >&5
14283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14284 whose name does not start with the host triplet. If you think this
14285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14286 ac_tool_warned=yes ;;
14291 AR="$ac_cv_prog_AR"
14294 if test -n "$ac_tool_prefix"; then
14295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14299 if test "${ac_cv_prog_RANLIB+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 if test -n "$RANLIB"; then
14303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306 for as_dir in $PATH
14309 test -z "$as_dir" && as_dir=.
14310 for ac_exec_ext in '' $ac_executable_extensions; do
14311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14322 RANLIB=$ac_cv_prog_RANLIB
14323 if test -n "$RANLIB"; then
14324 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14325 echo "${ECHO_T}$RANLIB" >&6; }
14327 { echo "$as_me:$LINENO: result: no" >&5
14328 echo "${ECHO_T}no" >&6; }
14333 if test -z "$ac_cv_prog_RANLIB"; then
14334 ac_ct_RANLIB=$RANLIB
14335 # Extract the first word of "ranlib", so it can be a program name with args.
14336 set dummy ranlib; ac_word=$2
14337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14339 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 if test -n "$ac_ct_RANLIB"; then
14343 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14349 test -z "$as_dir" && as_dir=.
14350 for ac_exec_ext in '' $ac_executable_extensions; do
14351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14352 ac_cv_prog_ac_ct_RANLIB="ranlib"
14353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14363 if test -n "$ac_ct_RANLIB"; then
14364 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14365 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14367 { echo "$as_me:$LINENO: result: no" >&5
14368 echo "${ECHO_T}no" >&6; }
14371 if test "x$ac_ct_RANLIB" = x; then
14374 case $cross_compiling:$ac_tool_warned in
14376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14377 whose name does not start with the host triplet. If you think this
14378 configuration is useful to you, please write to autoconf@gnu.org." >&5
14379 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14380 whose name does not start with the host triplet. If you think this
14381 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14382 ac_tool_warned=yes ;;
14384 RANLIB=$ac_ct_RANLIB
14387 RANLIB="$ac_cv_prog_RANLIB"
14390 if test -n "$ac_tool_prefix"; then
14391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14392 set dummy ${ac_tool_prefix}strip; ac_word=$2
14393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14395 if test "${ac_cv_prog_STRIP+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 if test -n "$STRIP"; then
14399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402 for as_dir in $PATH
14405 test -z "$as_dir" && as_dir=.
14406 for ac_exec_ext in '' $ac_executable_extensions; do
14407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14408 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14418 STRIP=$ac_cv_prog_STRIP
14419 if test -n "$STRIP"; then
14420 { echo "$as_me:$LINENO: result: $STRIP" >&5
14421 echo "${ECHO_T}$STRIP" >&6; }
14423 { echo "$as_me:$LINENO: result: no" >&5
14424 echo "${ECHO_T}no" >&6; }
14429 if test -z "$ac_cv_prog_STRIP"; then
14431 # Extract the first word of "strip", so it can be a program name with args.
14432 set dummy strip; ac_word=$2
14433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14435 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 if test -n "$ac_ct_STRIP"; then
14439 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14448 ac_cv_prog_ac_ct_STRIP="strip"
14449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14458 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14459 if test -n "$ac_ct_STRIP"; then
14460 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14461 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14463 { echo "$as_me:$LINENO: result: no" >&5
14464 echo "${ECHO_T}no" >&6; }
14467 if test "x$ac_ct_STRIP" = x; then
14470 case $cross_compiling:$ac_tool_warned in
14472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14473 whose name does not start with the host triplet. If you think this
14474 configuration is useful to you, please write to autoconf@gnu.org." >&5
14475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14476 whose name does not start with the host triplet. If you think this
14477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14478 ac_tool_warned=yes ;;
14483 STRIP="$ac_cv_prog_STRIP"
14488 old_CFLAGS="$CFLAGS"
14490 # Set sane defaults for various variables
14491 test -z "$AR" && AR=ar
14492 test -z "$AR_FLAGS" && AR_FLAGS=cru
14493 test -z "$AS" && AS=as
14494 test -z "$CC" && CC=cc
14495 test -z "$LTCC" && LTCC=$CC
14496 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14497 test -z "$DLLTOOL" && DLLTOOL=dlltool
14498 test -z "$LD" && LD=ld
14499 test -z "$LN_S" && LN_S="ln -s"
14500 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14501 test -z "$NM" && NM=nm
14502 test -z "$SED" && SED=sed
14503 test -z "$OBJDUMP" && OBJDUMP=objdump
14504 test -z "$RANLIB" && RANLIB=:
14505 test -z "$STRIP" && STRIP=:
14506 test -z "$ac_objext" && ac_objext=o
14508 # Determine commands to create old-style static archives.
14509 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14510 old_postinstall_cmds='chmod 644 $oldlib'
14511 old_postuninstall_cmds=
14513 if test -n "$RANLIB"; then
14516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14522 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14525 for cc_temp in $compiler""; do
14527 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14528 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14533 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14536 # Only perform the check for file, if the check method requires it
14537 case $deplibs_check_method in
14539 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14540 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14541 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14542 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14550 lt_save_MAGIC_CMD="$MAGIC_CMD"
14551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14552 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14553 for ac_dir in $ac_dummy; do
14555 test -z "$ac_dir" && ac_dir=.
14556 if test -f $ac_dir/${ac_tool_prefix}file; then
14557 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14558 if test -n "$file_magic_test_file"; then
14559 case $deplibs_check_method in
14561 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14563 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14564 $EGREP "$file_magic_regex" > /dev/null; then
14569 *** Warning: the command libtool uses to detect shared libraries,
14570 *** $file_magic_cmd, produces output that libtool cannot recognize.
14571 *** The result is that libtool may fail to recognize shared libraries
14572 *** as such. This will affect the creation of libtool libraries that
14573 *** depend on shared libraries, but programs linked with such libtool
14574 *** libraries will work regardless of this problem. Nevertheless, you
14575 *** may want to report the problem to your system manager and/or to
14576 *** bug-libtool@gnu.org
14586 MAGIC_CMD="$lt_save_MAGIC_CMD"
14591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14592 if test -n "$MAGIC_CMD"; then
14593 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14594 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14596 { echo "$as_me:$LINENO: result: no" >&5
14597 echo "${ECHO_T}no" >&6; }
14600 if test -z "$lt_cv_path_MAGIC_CMD"; then
14601 if test -n "$ac_tool_prefix"; then
14602 { echo "$as_me:$LINENO: checking for file" >&5
14603 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14604 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14612 lt_save_MAGIC_CMD="$MAGIC_CMD"
14613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14615 for ac_dir in $ac_dummy; do
14617 test -z "$ac_dir" && ac_dir=.
14618 if test -f $ac_dir/file; then
14619 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14620 if test -n "$file_magic_test_file"; then
14621 case $deplibs_check_method in
14623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14626 $EGREP "$file_magic_regex" > /dev/null; then
14631 *** Warning: the command libtool uses to detect shared libraries,
14632 *** $file_magic_cmd, produces output that libtool cannot recognize.
14633 *** The result is that libtool may fail to recognize shared libraries
14634 *** as such. This will affect the creation of libtool libraries that
14635 *** depend on shared libraries, but programs linked with such libtool
14636 *** libraries will work regardless of this problem. Nevertheless, you
14637 *** may want to report the problem to your system manager and/or to
14638 *** bug-libtool@gnu.org
14648 MAGIC_CMD="$lt_save_MAGIC_CMD"
14653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14654 if test -n "$MAGIC_CMD"; then
14655 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14656 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14658 { echo "$as_me:$LINENO: result: no" >&5
14659 echo "${ECHO_T}no" >&6; }
14672 enable_win32_dll=no
14674 # Check whether --enable-libtool-lock was given.
14675 if test "${enable_libtool_lock+set}" = set; then
14676 enableval=$enable_libtool_lock;
14679 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14682 # Check whether --with-pic was given.
14683 if test "${with_pic+set}" = set; then
14684 withval=$with_pic; pic_mode="$withval"
14689 test -z "$pic_mode" && pic_mode=default
14691 # Use C for the default configuration in the libtool script
14695 ac_cpp='$CPP $CPPFLAGS'
14696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14701 # Source file extension for C test sources.
14704 # Object file extension for compiled C test sources.
14708 # Code to be used in simple compile tests
14709 lt_simple_compile_test_code="int some_variable = 0;\n"
14711 # Code to be used in simple link tests
14712 lt_simple_link_test_code='int main(){return(0);}\n'
14715 # If no C compiler was specified, use CC.
14718 # If no C compiler flags were specified, use CFLAGS.
14719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14721 # Allow CC to be a program name with arguments.
14725 # save warnings/boilerplate of simple test code
14726 ac_outfile=conftest.$ac_objext
14727 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14728 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14729 _lt_compiler_boilerplate=`cat conftest.err`
14732 ac_outfile=conftest.$ac_objext
14733 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14734 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14735 _lt_linker_boilerplate=`cat conftest.err`
14740 lt_prog_compiler_no_builtin_flag=
14742 if test "$GCC" = yes; then
14743 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14746 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14747 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14748 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 lt_cv_prog_compiler_rtti_exceptions=no
14752 ac_outfile=conftest.$ac_objext
14753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14754 lt_compiler_flag="-fno-rtti -fno-exceptions"
14755 # Insert the option either (1) after the last *FLAGS variable, or
14756 # (2) before a word containing "conftest.", or (3) at the end.
14757 # Note that $ac_compile itself does not contain backslashes and begins
14758 # with a dollar sign (not a hyphen), so the echo should work correctly.
14759 # The option is referenced via a variable to avoid confusing sed.
14760 lt_compile=`echo "$ac_compile" | $SED \
14761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14763 -e 's:$: $lt_compiler_flag:'`
14764 (eval echo "\"\$as_me:14764: $lt_compile\"" >&5)
14765 (eval "$lt_compile" 2>conftest.err)
14767 cat conftest.err >&5
14768 echo "$as_me:14768: \$? = $ac_status" >&5
14769 if (exit $ac_status) && test -s "$ac_outfile"; then
14770 # The compiler can only warn and ignore the option if not recognized
14771 # So say no if there are warnings other than the usual output.
14772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14775 lt_cv_prog_compiler_rtti_exceptions=yes
14781 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14782 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14784 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14785 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14792 lt_prog_compiler_wl=
14793 lt_prog_compiler_pic=
14794 lt_prog_compiler_static=
14796 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14797 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14799 if test "$GCC" = yes; then
14800 lt_prog_compiler_wl='-Wl,'
14801 lt_prog_compiler_static='-static'
14805 # All AIX code is PIC.
14806 if test "$host_cpu" = ia64; then
14807 # AIX 5 now supports IA64 processor
14808 lt_prog_compiler_static='-Bstatic'
14813 # FIXME: we need at least 68020 code to build shared libraries, but
14814 # adding the `-m68020' flag to GCC prevents building anything better,
14816 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14819 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14820 # PIC is the default for these OSes.
14823 mingw* | pw32* | os2*)
14824 # This hack is so that the source file can tell whether it is being
14825 # built for inclusion in a dll (and should export symbols for example).
14826 lt_prog_compiler_pic='-DDLL_EXPORT'
14829 darwin* | rhapsody*)
14830 # PIC is the default on this platform
14831 # Common symbols not allowed in MH_DYLIB files
14832 lt_prog_compiler_pic='-fno-common'
14836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14837 # Instead, we relocate shared libraries at runtime.
14841 # Just because we use GCC doesn't mean we suddenly get shared libraries
14842 # on systems that don't support them.
14843 lt_prog_compiler_can_build_shared=no
14848 if test -d /usr/nec; then
14849 lt_prog_compiler_pic=-Kconform_pic
14854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14855 # not for PA HP-UX.
14861 lt_prog_compiler_pic='-fPIC'
14867 lt_prog_compiler_pic='-fPIC'
14871 # PORTME Check for flag to pass linker flags through the system compiler.
14874 lt_prog_compiler_wl='-Wl,'
14875 if test "$host_cpu" = ia64; then
14876 # AIX 5 now supports IA64 processor
14877 lt_prog_compiler_static='-Bstatic'
14879 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14883 # PIC is the default on this platform
14884 # Common symbols not allowed in MH_DYLIB files
14885 case $cc_basename in
14887 lt_prog_compiler_pic='-qnocommon'
14888 lt_prog_compiler_wl='-Wl,'
14893 mingw* | pw32* | os2*)
14894 # This hack is so that the source file can tell whether it is being
14895 # built for inclusion in a dll (and should export symbols for example).
14896 lt_prog_compiler_pic='-DDLL_EXPORT'
14899 hpux9* | hpux10* | hpux11*)
14900 lt_prog_compiler_wl='-Wl,'
14901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14902 # not for PA HP-UX.
14908 lt_prog_compiler_pic='+Z'
14911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14912 lt_prog_compiler_static='${wl}-a ${wl}archive'
14915 irix5* | irix6* | nonstopux*)
14916 lt_prog_compiler_wl='-Wl,'
14917 # PIC (with -KPIC) is the default.
14918 lt_prog_compiler_static='-non_shared'
14922 lt_prog_compiler_pic='-KPIC'
14923 lt_prog_compiler_static='-Bstatic'
14927 case $cc_basename in
14929 lt_prog_compiler_wl='-Wl,'
14930 lt_prog_compiler_pic='-KPIC'
14931 lt_prog_compiler_static='-static'
14933 pgcc* | pgf77* | pgf90* | pgf95*)
14934 # Portland Group compilers (*not* the Pentium gcc compiler,
14935 # which looks to be a dead project)
14936 lt_prog_compiler_wl='-Wl,'
14937 lt_prog_compiler_pic='-fpic'
14938 lt_prog_compiler_static='-Bstatic'
14941 lt_prog_compiler_wl='-Wl,'
14942 # All Alpha code is PIC.
14943 lt_prog_compiler_static='-non_shared'
14948 osf3* | osf4* | osf5*)
14949 lt_prog_compiler_wl='-Wl,'
14950 # All OSF/1 code is PIC.
14951 lt_prog_compiler_static='-non_shared'
14955 lt_prog_compiler_pic='-KPIC'
14956 lt_prog_compiler_static='-Bstatic'
14957 case $cc_basename in
14958 f77* | f90* | f95*)
14959 lt_prog_compiler_wl='-Qoption ld ';;
14961 lt_prog_compiler_wl='-Wl,';;
14966 lt_prog_compiler_wl='-Qoption ld '
14967 lt_prog_compiler_pic='-PIC'
14968 lt_prog_compiler_static='-Bstatic'
14971 sysv4 | sysv4.2uw2* | sysv4.3*)
14972 lt_prog_compiler_wl='-Wl,'
14973 lt_prog_compiler_pic='-KPIC'
14974 lt_prog_compiler_static='-Bstatic'
14978 if test -d /usr/nec ;then
14979 lt_prog_compiler_pic='-Kconform_pic'
14980 lt_prog_compiler_static='-Bstatic'
14984 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14985 lt_prog_compiler_wl='-Wl,'
14986 lt_prog_compiler_pic='-KPIC'
14987 lt_prog_compiler_static='-Bstatic'
14991 lt_prog_compiler_wl='-Wl,'
14992 lt_prog_compiler_can_build_shared=no
14996 lt_prog_compiler_pic='-pic'
14997 lt_prog_compiler_static='-Bstatic'
15001 lt_prog_compiler_can_build_shared=no
15006 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15007 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15010 # Check to make sure the PIC flag actually works.
15012 if test -n "$lt_prog_compiler_pic"; then
15014 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15015 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15016 if test "${lt_prog_compiler_pic_works+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 lt_prog_compiler_pic_works=no
15020 ac_outfile=conftest.$ac_objext
15021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15022 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15023 # Insert the option either (1) after the last *FLAGS variable, or
15024 # (2) before a word containing "conftest.", or (3) at the end.
15025 # Note that $ac_compile itself does not contain backslashes and begins
15026 # with a dollar sign (not a hyphen), so the echo should work correctly.
15027 # The option is referenced via a variable to avoid confusing sed.
15028 lt_compile=`echo "$ac_compile" | $SED \
15029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15031 -e 's:$: $lt_compiler_flag:'`
15032 (eval echo "\"\$as_me:15032: $lt_compile\"" >&5)
15033 (eval "$lt_compile" 2>conftest.err)
15035 cat conftest.err >&5
15036 echo "$as_me:15036: \$? = $ac_status" >&5
15037 if (exit $ac_status) && test -s "$ac_outfile"; then
15038 # The compiler can only warn and ignore the option if not recognized
15039 # So say no if there are warnings other than the usual output.
15040 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15043 lt_prog_compiler_pic_works=yes
15049 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15050 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15052 if test x"$lt_prog_compiler_pic_works" = xyes; then
15053 case $lt_prog_compiler_pic in
15055 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15058 lt_prog_compiler_pic=
15059 lt_prog_compiler_can_build_shared=no
15064 # For platforms which do not support PIC, -DPIC is meaningless:
15066 lt_prog_compiler_pic=
15069 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15074 # Check to make sure the static flag actually works.
15076 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15077 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15078 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15079 if test "${lt_prog_compiler_static_works+set}" = set; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 lt_prog_compiler_static_works=no
15083 save_LDFLAGS="$LDFLAGS"
15084 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15085 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15086 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15087 # The linker can only warn and ignore the option if not recognized
15088 # So say no if there are warnings
15089 if test -s conftest.err; then
15090 # Append any errors to the config.log.
15091 cat conftest.err 1>&5
15092 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15094 if diff conftest.exp conftest.er2 >/dev/null; then
15095 lt_prog_compiler_static_works=yes
15098 lt_prog_compiler_static_works=yes
15102 LDFLAGS="$save_LDFLAGS"
15105 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15106 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15108 if test x"$lt_prog_compiler_static_works" = xyes; then
15111 lt_prog_compiler_static=
15115 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15116 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15117 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 lt_cv_prog_compiler_c_o=no
15121 $rm -r conftest 2>/dev/null
15125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15127 lt_compiler_flag="-o out/conftest2.$ac_objext"
15128 # Insert the option either (1) after the last *FLAGS variable, or
15129 # (2) before a word containing "conftest.", or (3) at the end.
15130 # Note that $ac_compile itself does not contain backslashes and begins
15131 # with a dollar sign (not a hyphen), so the echo should work correctly.
15132 lt_compile=`echo "$ac_compile" | $SED \
15133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15135 -e 's:$: $lt_compiler_flag:'`
15136 (eval echo "\"\$as_me:15136: $lt_compile\"" >&5)
15137 (eval "$lt_compile" 2>out/conftest.err)
15139 cat out/conftest.err >&5
15140 echo "$as_me:15140: \$? = $ac_status" >&5
15141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15143 # The compiler can only warn and ignore the option if not recognized
15144 # So say no if there are warnings
15145 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15148 lt_cv_prog_compiler_c_o=yes
15153 # SGI C++ compiler will create directory out/ii_files/ for
15154 # template instantiation
15155 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15156 $rm out/* && rmdir out
15162 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15163 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15166 hard_links="nottested"
15167 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15168 # do not overwrite the value of need_locks provided by the user
15169 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15170 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15175 ln conftest.a conftest.b 2>&5 || hard_links=no
15176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15177 { echo "$as_me:$LINENO: result: $hard_links" >&5
15178 echo "${ECHO_T}$hard_links" >&6; }
15179 if test "$hard_links" = no; then
15180 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15181 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15188 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15189 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15192 allow_undefined_flag=
15193 enable_shared_with_static_runtimes=no
15195 archive_expsym_cmds=
15196 old_archive_From_new_cmds=
15197 old_archive_from_expsyms_cmds=
15198 export_dynamic_flag_spec=
15199 whole_archive_flag_spec=
15200 thread_safe_flag_spec=
15201 hardcode_libdir_flag_spec=
15202 hardcode_libdir_flag_spec_ld=
15203 hardcode_libdir_separator=
15205 hardcode_minus_L=no
15206 hardcode_shlibpath_var=unsupported
15207 link_all_deplibs=unknown
15208 hardcode_automatic=no
15210 module_expsym_cmds=
15211 always_export_symbols=no
15212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15213 # include_expsyms should be a list of space-separated symbols to be *always*
15214 # included in the symbol list
15216 # exclude_expsyms can be an extended regexp of symbols to exclude
15217 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15218 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15219 # as well as any symbol that contains `d'.
15220 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15221 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15222 # platforms (ab)use it in PIC code, but their linkers get confused if
15223 # the symbol is explicitly referenced. Since portable code cannot
15224 # rely on this symbol name, it's probably fine to never include it in
15225 # preloaded symbol tables.
15226 extract_expsyms_cmds=
15227 # Just being paranoid about ensuring that cc_basename is set.
15228 for cc_temp in $compiler""; do
15230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15236 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15239 cygwin* | mingw* | pw32*)
15240 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15241 # When not using gcc, we currently assume that we are using
15242 # Microsoft Visual C++.
15243 if test "$GCC" != yes; then
15248 # we just hope/assume this is gcc and not c89 (= MSVC++)
15257 if test "$with_gnu_ld" = yes; then
15258 # If archive_cmds runs LD, not CC, wlarc should be empty
15261 # Set some defaults for GNU ld with shared library support. These
15262 # are reset later if shared libraries are not supported. Putting them
15263 # here allows them to be overridden if necessary.
15264 runpath_var=LD_RUN_PATH
15265 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15266 export_dynamic_flag_spec='${wl}--export-dynamic'
15267 # ancient GNU ld didn't support --whole-archive et. al.
15268 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15269 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15271 whole_archive_flag_spec=
15273 supports_anon_versioning=no
15274 case `$LD -v 2>/dev/null` in
15275 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15278 *\ 2.11.*) ;; # other 2.11 versions
15279 *) supports_anon_versioning=yes ;;
15282 # See if GNU ld supports shared libraries.
15284 aix3* | aix4* | aix5*)
15285 # On AIX/PPC, the GNU linker is very broken
15286 if test "$host_cpu" != ia64; then
15290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15291 *** to be unable to reliably create shared libraries on AIX.
15292 *** Therefore, libtool is disabling shared libraries support. If you
15293 *** really care for shared libraries, you may want to modify your PATH
15294 *** so that a non-GNU linker is found, and then restart.
15301 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)'
15302 hardcode_libdir_flag_spec='-L$libdir'
15303 hardcode_minus_L=yes
15305 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15306 # that the semantics of dynamic libraries on AmigaOS, at least up
15307 # to version 4, is to share data among multiple programs linked
15308 # with the same dynamic library. Since this doesn't match the
15309 # behavior of shared libraries on other platforms, we can't use
15315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15316 allow_undefined_flag=unsupported
15317 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15318 # support --undefined. This deserves some investigation. FIXME
15319 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15325 cygwin* | mingw* | pw32*)
15326 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15327 # as there is no search path for DLLs.
15328 hardcode_libdir_flag_spec='-L$libdir'
15329 allow_undefined_flag=unsupported
15330 always_export_symbols=no
15331 enable_shared_with_static_runtimes=yes
15332 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15334 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15336 # If the export-symbols file already is a .def file (1st line
15337 # is EXPORTS), use it as is; otherwise, prepend...
15338 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15339 cp $export_symbols $output_objdir/$soname.def;
15341 echo EXPORTS > $output_objdir/$soname.def;
15342 cat $export_symbols >> $output_objdir/$soname.def;
15344 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15352 hardcode_shlibpath_var=no
15353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15354 export_dynamic_flag_spec='${wl}-E'
15355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15356 # Instead, shared libraries are loaded at an image base (0x10000000 by
15357 # default) and relocated if they conflict, which is a slow very memory
15358 # consuming and fragmenting process. To avoid this, we pick a random,
15359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15360 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15361 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15362 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'
15366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15368 case $cc_basename,$host_cpu in
15369 pgcc*) # Portland Group C compiler
15370 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'
15371 tmp_addflag=' $pic_flag'
15373 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15374 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'
15375 tmp_addflag=' $pic_flag -Mnomain' ;;
15376 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15377 tmp_addflag=' -i_dynamic' ;;
15378 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15379 tmp_addflag=' -i_dynamic -nofor_main' ;;
15380 ifc* | ifort*) # Intel Fortran compiler
15381 tmp_addflag=' -nofor_main' ;;
15383 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15385 if test $supports_anon_versioning = yes; then
15386 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15388 $echo "local: *; };" >> $output_objdir/$libname.ver~
15389 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15398 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15407 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15412 *** create shared libraries on Solaris systems. Therefore, libtool
15413 *** is disabling shared libraries support. We urge you to upgrade GNU
15414 *** binutils to release 2.9.1 or newer. Another option is to modify
15415 *** your PATH or compiler configuration so that the native linker is
15416 *** used, and then restart.
15419 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15428 case `$LD -v 2>&1` in
15429 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15434 *** reliably create shared libraries on SCO systems. Therefore, libtool
15435 *** is disabling shared libraries support. We urge you to upgrade GNU
15436 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15437 *** your PATH or compiler configuration so that the native linker is
15438 *** used, and then restart.
15443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15444 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15455 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15457 hardcode_direct=yes
15458 hardcode_shlibpath_var=no
15462 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15471 if test "$ld_shlibs" = no; then
15473 hardcode_libdir_flag_spec=
15474 export_dynamic_flag_spec=
15475 whole_archive_flag_spec=
15478 # PORTME fill in a description of your system's linker (not GNU ld)
15481 allow_undefined_flag=unsupported
15482 always_export_symbols=yes
15483 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'
15484 # Note: this linker hardcodes the directories in LIBPATH if there
15485 # are no directories specified by -L.
15486 hardcode_minus_L=yes
15487 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15488 # Neither direct hardcoding nor static linking is supported with a
15490 hardcode_direct=unsupported
15495 if test "$host_cpu" = ia64; then
15496 # On IA64, the linker does run time linking by default, so we don't
15497 # have to do anything special.
15498 aix_use_runtimelinking=no
15499 exp_sym_flag='-Bexport'
15502 # If we're using GNU nm, then we don't want the "-C" option.
15503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15504 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15505 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'
15507 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'
15509 aix_use_runtimelinking=no
15511 # Test if we are trying to use run time linking or normal
15512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15513 # need to do runtime linking.
15514 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15515 for ld_flag in $LDFLAGS; do
15516 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15517 aix_use_runtimelinking=yes
15524 exp_sym_flag='-bexport'
15525 no_entry_flag='-bnoentry'
15528 # When large executables or shared objects are built, AIX ld can
15529 # have problems creating the table of contents. If linking a library
15530 # or program results in "error TOC overflow" add -mminimal-toc to
15531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15535 hardcode_direct=yes
15536 hardcode_libdir_separator=':'
15537 link_all_deplibs=yes
15539 if test "$GCC" = yes; then
15540 case $host_os in aix4.[012]|aix4.[012].*)
15541 # We only want to do this on AIX 4.2 and lower, the check
15542 # below for broken collect2 doesn't work under 4.3+
15543 collect2name=`${CC} -print-prog-name=collect2`
15544 if test -f "$collect2name" && \
15545 strings "$collect2name" | grep resolve_lib_name >/dev/null
15547 # We have reworked collect2
15548 hardcode_direct=yes
15550 # We have old collect2
15551 hardcode_direct=unsupported
15552 # It fails to find uninstalled libraries when the uninstalled
15553 # path is not listed in the libpath. Setting hardcode_minus_L
15554 # to unsupported forces relinking
15555 hardcode_minus_L=yes
15556 hardcode_libdir_flag_spec='-L$libdir'
15557 hardcode_libdir_separator=
15561 shared_flag='-shared'
15562 if test "$aix_use_runtimelinking" = yes; then
15563 shared_flag="$shared_flag "'${wl}-G'
15567 if test "$host_cpu" = ia64; then
15568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15569 # chokes on -Wl,-G. The following line is correct:
15572 if test "$aix_use_runtimelinking" = yes; then
15573 shared_flag='${wl}-G'
15575 shared_flag='${wl}-bM:SRE'
15580 # It seems that -bexpall does not export symbols beginning with
15581 # underscore (_), so it is better to generate a list of symbols to export.
15582 always_export_symbols=yes
15583 if test "$aix_use_runtimelinking" = yes; then
15584 # Warning - without using the other runtime loading flags (-brtl),
15585 # -berok will link without error, but may produce a broken library.
15586 allow_undefined_flag='-berok'
15587 # Determine the default libpath from the value encoded in an empty executable.
15588 cat >conftest.$ac_ext <<_ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15603 rm -f conftest.$ac_objext conftest$ac_exeext
15604 if { (ac_try="$ac_link"
15605 case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_link") 2>conftest.er1
15612 grep -v '^ *+' conftest.er1 >conftest.err
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } &&
15617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15618 { (case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_try") 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try='test -s conftest$ac_exeext'
15628 { (case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_try") 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15640 # Check for a 64-bit object if we didn't find anything.
15641 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; }
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15650 rm -f core conftest.err conftest.$ac_objext \
15651 conftest$ac_exeext conftest.$ac_ext
15652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15654 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15655 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"
15657 if test "$host_cpu" = ia64; then
15658 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15659 allow_undefined_flag="-z nodefs"
15660 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"
15662 # Determine the default libpath from the value encoded in an empty executable.
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (ac_try="$ac_link"
15680 case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685 (eval "$ac_link") 2>conftest.er1
15687 grep -v '^ *+' conftest.er1 >conftest.err
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15693 { (case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_try") 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; } &&
15702 { ac_try='test -s conftest$ac_exeext'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }; then
15713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15715 # Check for a 64-bit object if we didn't find anything.
15716 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; }
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15725 rm -f core conftest.err conftest.$ac_objext \
15726 conftest$ac_exeext conftest.$ac_ext
15727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15729 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15730 # Warning - without using the other run time loading flags,
15731 # -berok will link without error, but may produce a broken library.
15732 no_undefined_flag=' ${wl}-bernotok'
15733 allow_undefined_flag=' ${wl}-berok'
15734 # Exported symbols can be pulled into shared objects from archives
15735 whole_archive_flag_spec='$convenience'
15736 archive_cmds_need_lc=yes
15737 # This is similar to how AIX traditionally builds its shared libraries.
15738 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'
15744 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)'
15745 hardcode_libdir_flag_spec='-L$libdir'
15746 hardcode_minus_L=yes
15747 # see comment about different semantics on the GNU ld section
15752 export_dynamic_flag_spec=-rdynamic
15755 cygwin* | mingw* | pw32*)
15756 # When not using gcc, we currently assume that we are using
15757 # Microsoft Visual C++.
15758 # hardcode_libdir_flag_spec is actually meaningless, as there is
15759 # no search path for DLLs.
15760 hardcode_libdir_flag_spec=' '
15761 allow_undefined_flag=unsupported
15762 # Tell ltmain to make .lib files, not .a files.
15764 # Tell ltmain to make .dll files, not .so files.
15766 # FIXME: Setting linknames here is a bad hack.
15767 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15768 # The linker will automatically build a .lib file if we build a DLL.
15769 old_archive_From_new_cmds='true'
15770 # FIXME: Should let the user specify the lib program.
15771 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15772 fix_srcfile_path='`cygpath -w "$srcfile"`'
15773 enable_shared_with_static_runtimes=yes
15776 darwin* | rhapsody*)
15778 rhapsody* | darwin1.[012])
15779 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15782 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15783 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15785 case ${MACOSX_DEPLOYMENT_TARGET} in
15787 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15790 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15796 archive_cmds_need_lc=no
15798 hardcode_automatic=yes
15799 hardcode_shlibpath_var=unsupported
15800 whole_archive_flag_spec=''
15801 link_all_deplibs=yes
15802 if test "$GCC" = yes ; then
15803 output_verbose_link_cmd='echo'
15804 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15805 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15806 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15807 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}'
15808 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}'
15810 case $cc_basename in
15812 output_verbose_link_cmd='echo'
15813 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15814 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15816 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}'
15817 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}'
15827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15828 hardcode_libdir_flag_spec='-L$libdir'
15829 hardcode_shlibpath_var=no
15836 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15837 # support. Future versions do this automatically, but an explicit c++rt0.o
15838 # does not break anything, and helps significantly (at the cost of a little
15841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15842 hardcode_libdir_flag_spec='-R$libdir'
15843 hardcode_direct=yes
15844 hardcode_shlibpath_var=no
15847 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15850 hardcode_direct=yes
15851 hardcode_minus_L=yes
15852 hardcode_shlibpath_var=no
15855 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15856 freebsd* | kfreebsd*-gnu | dragonfly*)
15857 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15858 hardcode_libdir_flag_spec='-R$libdir'
15859 hardcode_direct=yes
15860 hardcode_shlibpath_var=no
15864 if test "$GCC" = yes; then
15865 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'
15867 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'
15869 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15870 hardcode_libdir_separator=:
15871 hardcode_direct=yes
15873 # hardcode_minus_L: Not really in the search PATH,
15874 # but as the default location of the library.
15875 hardcode_minus_L=yes
15876 export_dynamic_flag_spec='${wl}-E'
15880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15881 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15885 if test "$with_gnu_ld" = no; then
15886 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15887 hardcode_libdir_separator=:
15889 hardcode_direct=yes
15890 export_dynamic_flag_spec='${wl}-E'
15892 # hardcode_minus_L: Not really in the search PATH,
15893 # but as the default location of the library.
15894 hardcode_minus_L=yes
15899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15902 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15905 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15908 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15914 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15920 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15924 if test "$with_gnu_ld" = no; then
15925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15926 hardcode_libdir_separator=:
15930 hardcode_libdir_flag_spec_ld='+b $libdir'
15932 hardcode_shlibpath_var=no
15935 hardcode_direct=yes
15936 export_dynamic_flag_spec='${wl}-E'
15938 # hardcode_minus_L: Not really in the search PATH,
15939 # but as the default location of the library.
15940 hardcode_minus_L=yes
15946 irix5* | irix6* | nonstopux*)
15947 if test "$GCC" = yes; then
15948 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'
15950 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'
15951 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15954 hardcode_libdir_separator=:
15955 link_all_deplibs=yes
15959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15962 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15964 hardcode_libdir_flag_spec='-R$libdir'
15965 hardcode_direct=yes
15966 hardcode_shlibpath_var=no
15970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15971 hardcode_direct=yes
15972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15973 hardcode_libdir_separator=:
15974 hardcode_shlibpath_var=no
15978 hardcode_direct=yes
15979 hardcode_shlibpath_var=no
15980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15981 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15982 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15984 export_dynamic_flag_spec='${wl}-E'
15987 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15989 hardcode_libdir_flag_spec='-R$libdir'
15992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16000 hardcode_libdir_flag_spec='-L$libdir'
16001 hardcode_minus_L=yes
16002 allow_undefined_flag=unsupported
16003 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'
16004 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16008 if test "$GCC" = yes; then
16009 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16010 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'
16012 allow_undefined_flag=' -expect_unresolved \*'
16013 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'
16015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16016 hardcode_libdir_separator=:
16019 osf4* | osf5*) # as osf3* with the addition of -msym flag
16020 if test "$GCC" = yes; then
16021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16022 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'
16023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16025 allow_undefined_flag=' -expect_unresolved \*'
16026 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'
16027 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16028 $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'
16030 # Both c and cxx compiler support -rpath directly
16031 hardcode_libdir_flag_spec='-rpath $libdir'
16033 hardcode_libdir_separator=:
16037 no_undefined_flag=' -z text'
16038 if test "$GCC" = yes; then
16040 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16041 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16042 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16045 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16047 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16049 hardcode_libdir_flag_spec='-R$libdir'
16050 hardcode_shlibpath_var=no
16052 solaris2.[0-5] | solaris2.[0-5].*) ;;
16054 # The compiler driver will combine linker options so we
16055 # cannot just pass the convience library names through
16056 # without $wl, iff we do not link with $LD.
16057 # Luckily, gcc supports the same syntax we need for Sun Studio.
16058 # Supported since Solaris 2.6 (maybe 2.5.1?)
16061 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16063 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' ;;
16066 link_all_deplibs=yes
16070 if test "x$host_vendor" = xsequent; then
16071 # Use $CC to link under sequent, because it throws in some extra .o
16072 # files that make .init and .fini sections work.
16073 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16075 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16077 hardcode_libdir_flag_spec='-L$libdir'
16078 hardcode_direct=yes
16079 hardcode_minus_L=yes
16080 hardcode_shlibpath_var=no
16084 case $host_vendor in
16086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087 hardcode_direct=yes # is this really true???
16090 ## LD is ld it makes a PLAMLIB
16091 ## CC just makes a GrossModule.
16092 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16093 reload_cmds='$CC -r -o $output$reload_objs'
16097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16098 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16101 runpath_var='LD_RUN_PATH'
16102 hardcode_shlibpath_var=no
16106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16107 hardcode_shlibpath_var=no
16108 export_dynamic_flag_spec='-Bexport'
16112 if test -d /usr/nec; then
16113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114 hardcode_shlibpath_var=no
16115 runpath_var=LD_RUN_PATH
16116 hardcode_runpath_var=yes
16121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16122 no_undefined_flag='${wl}-z,text'
16123 archive_cmds_need_lc=no
16124 hardcode_shlibpath_var=no
16125 runpath_var='LD_RUN_PATH'
16127 if test "$GCC" = yes; then
16128 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16129 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16131 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 sysv5* | sco3.2v5* | sco5v6*)
16137 # Note: We can NOT use -z defs as we might desire, because we do not
16138 # link with -lc, and that would cause any symbols used from libc to
16139 # always be unresolved, which means just about no library would
16140 # ever link correctly. If we're not using GNU ld we use -z text
16141 # though, which does catch some bad symbols but isn't as heavy-handed
16143 no_undefined_flag='${wl}-z,text'
16144 allow_undefined_flag='${wl}-z,nodefs'
16145 archive_cmds_need_lc=no
16146 hardcode_shlibpath_var=no
16147 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16148 hardcode_libdir_separator=':'
16149 link_all_deplibs=yes
16150 export_dynamic_flag_spec='${wl}-Bexport'
16151 runpath_var='LD_RUN_PATH'
16153 if test "$GCC" = yes; then
16154 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16155 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16157 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164 hardcode_libdir_flag_spec='-L$libdir'
16165 hardcode_shlibpath_var=no
16174 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16175 echo "${ECHO_T}$ld_shlibs" >&6; }
16176 test "$ld_shlibs" = no && can_build_shared=no
16179 # Do we need to explicitly link libc?
16181 case "x$archive_cmds_need_lc" in
16183 # Assume -lc should be added
16184 archive_cmds_need_lc=yes
16186 if test "$enable_shared" = yes && test "$GCC" = yes; then
16187 case $archive_cmds in
16189 # FIXME: we may have to deal with multi-command sequences.
16192 # Test whether the compiler implicitly links with -lc since on some
16193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16194 # to ld, don't add -lc before -lgcc.
16195 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201 (eval $ac_compile) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } 2>conftest.err; then
16207 libobjs=conftest.$ac_objext
16209 wl=$lt_prog_compiler_wl
16210 pic_flag=$lt_prog_compiler_pic
16216 lt_save_allow_undefined_flag=$allow_undefined_flag
16217 allow_undefined_flag=
16218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16219 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }
16224 archive_cmds_need_lc=no
16226 archive_cmds_need_lc=yes
16228 allow_undefined_flag=$lt_save_allow_undefined_flag
16230 cat conftest.err 1>&5
16233 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16234 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16241 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16243 library_names_spec=
16244 libname_spec='lib$name'
16248 postuninstall_cmds=
16252 shlibpath_overrides_runpath=unknown
16254 dynamic_linker="$host_os ld.so"
16255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16256 if test "$GCC" = yes; then
16257 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16258 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16259 # if the path contains ";" then we assume it to be the separator
16260 # otherwise default to the standard path separator (i.e. ":") - it is
16261 # assumed that no part of a normal pathname contains ";" but that should
16262 # okay in the real world where ";" in dirpaths is itself problematic.
16263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16270 need_lib_prefix=unknown
16271 hardcode_into_libs=no
16273 # when you set need_version to no, make sure it does not cause -set_version
16274 # flags to be left without arguments
16275 need_version=unknown
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16281 shlibpath_var=LIBPATH
16283 # AIX 3 has no versioning support, so we append a major version to the name.
16284 soname_spec='${libname}${release}${shared_ext}$major'
16291 hardcode_into_libs=yes
16292 if test "$host_cpu" = ia64; then
16293 # AIX 5 supports IA64
16294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16295 shlibpath_var=LD_LIBRARY_PATH
16297 # With GCC up to 2.95.x, collect2 would create an import file
16298 # for dependence libraries. The import file would start with
16299 # the line `#! .'. This would cause the generated library to
16300 # depend on `.', always an invalid library. This was fixed in
16301 # development snapshots of GCC prior to 3.0.
16303 aix4 | aix4.[01] | aix4.[01].*)
16304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16306 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16309 can_build_shared=no
16313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16314 # soname into executable. Probably we can add versioning support to
16315 # collect2, so additional links can be useful in future.
16316 if test "$aix_use_runtimelinking" = yes; then
16317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16318 # instead of lib<name>.a to let people know that these are not
16319 # typical AIX shared libraries.
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 # We preserve .a as extension for shared libraries through AIX4.2
16323 # and later when we are not doing run time linking.
16324 library_names_spec='${libname}${release}.a $libname.a'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16327 shlibpath_var=LIBPATH
16332 library_names_spec='$libname.ixlibrary $libname.a'
16333 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16334 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'
16338 library_names_spec='${libname}${shared_ext}'
16339 dynamic_linker="$host_os ld.so"
16340 shlibpath_var=LIBRARY_PATH
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16349 shlibpath_var=LD_LIBRARY_PATH
16350 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16351 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16352 # the default ld.so.conf also contains /usr/contrib/lib and
16353 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16354 # libtool to hard-code these into programs
16357 cygwin* | mingw* | pw32*)
16358 version_type=windows
16363 case $GCC,$host_os in
16364 yes,cygwin* | yes,mingw* | yes,pw32*)
16365 library_names_spec='$libname.dll.a'
16366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16367 postinstall_cmds='base_file=`basename \${file}`~
16368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16369 dldir=$destdir/`dirname \$dlpath`~
16370 test -d \$dldir || mkdir -p \$dldir~
16371 $install_prog $dir/$dlname \$dldir/$dlname~
16372 chmod a+x \$dldir/$dlname'
16373 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16374 dlpath=$dir/\$dldll~
16376 shlibpath_overrides_runpath=yes
16380 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16381 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16382 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16385 # MinGW DLLs use traditional 'lib' prefix
16386 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16388 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16389 # It is most probably a Windows format PATH printed by
16390 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16391 # path with ; separators, and with drive letters. We can handle the
16392 # drive letters (cygwin fileutils understands them), so leave them,
16393 # especially as we might pass files found there to a mingw objdump,
16394 # which wouldn't understand a cygwinified path. Ahh.
16395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16401 # pw32 DLLs use 'pw' prefix rather than 'lib'
16402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16408 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16411 dynamic_linker='Win32 ld.exe'
16412 # FIXME: first we should search . and the directory the executable is in
16416 darwin* | rhapsody*)
16417 dynamic_linker="$host_os dyld"
16418 version_type=darwin
16421 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16422 soname_spec='${libname}${release}${major}$shared_ext'
16423 shlibpath_overrides_runpath=yes
16424 shlibpath_var=DYLD_LIBRARY_PATH
16425 shrext_cmds='.dylib'
16426 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16427 if test "$GCC" = yes; then
16428 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"`
16430 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16440 soname_spec='${libname}${release}${shared_ext}$major'
16441 shlibpath_var=LD_LIBRARY_PATH
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16453 soname_spec='${libname}${release}${shared_ext}$major'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 shlibpath_overrides_runpath=no
16456 hardcode_into_libs=yes
16457 dynamic_linker='GNU ld.so'
16460 freebsd* | dragonfly*)
16461 # DragonFly does not have aout. When/if they implement a new
16462 # versioning mechanism, adjust this.
16463 if test -x /usr/bin/objformat; then
16464 objformat=`/usr/bin/objformat`
16467 freebsd[123]*) objformat=aout ;;
16468 *) objformat=elf ;;
16471 version_type=freebsd-$objformat
16472 case $version_type in
16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16483 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=yes
16488 freebsd3.[01]* | freebsdelf3.[01]*)
16489 shlibpath_overrides_runpath=yes
16490 hardcode_into_libs=yes
16492 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16493 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16494 shlibpath_overrides_runpath=no
16495 hardcode_into_libs=yes
16497 freebsd*) # from 4.6 on
16498 shlibpath_overrides_runpath=yes
16499 hardcode_into_libs=yes
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 hardcode_into_libs=yes
16514 hpux9* | hpux10* | hpux11*)
16515 # Give a soname corresponding to the major version so that dld.sl refuses to
16516 # link against other versions.
16523 hardcode_into_libs=yes
16524 dynamic_linker="$host_os dld.so"
16525 shlibpath_var=LD_LIBRARY_PATH
16526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16529 if test "X$HPUX_IA64_MODE" = X32; then
16530 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16532 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16538 hardcode_into_libs=yes
16539 dynamic_linker="$host_os dld.sl"
16540 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543 soname_spec='${libname}${release}${shared_ext}$major'
16544 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16549 dynamic_linker="$host_os dld.sl"
16550 shlibpath_var=SHLIB_PATH
16551 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16556 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16557 postinstall_cmds='chmod 555 $lib'
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16567 shlibpath_var=LD_LIBRARY_PATH
16568 shlibpath_overrides_runpath=no
16569 hardcode_into_libs=yes
16572 irix5* | irix6* | nonstopux*)
16574 nonstopux*) version_type=nonstopux ;;
16576 if test "$lt_cv_prog_gnu_ld" = yes; then
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16587 irix5* | nonstopux*)
16588 libsuff= shlibsuff=
16591 case $LD in # libtool.m4 will add one of these switches to LD
16592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16593 libsuff= shlibsuff= libmagic=32-bit;;
16594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16595 libsuff=32 shlibsuff=N32 libmagic=N32;;
16596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16598 *) libsuff= shlibsuff= libmagic=never-match;;
16602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16603 shlibpath_overrides_runpath=no
16604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16606 hardcode_into_libs=yes
16609 # No shared lib support for Linux oldld, aout, or coff.
16610 linux*oldld* | linux*aout* | linux*coff*)
16614 # This must be Linux ELF.
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=no
16624 # This implies no fast_install, which is unacceptable.
16625 # Some rework will be needed to allow for fast_install
16626 # before this can be enabled.
16627 hardcode_into_libs=yes
16629 # Append ld.so.conf contents to the search path
16630 if test -f /etc/ld.so.conf; then
16631 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' ' '`
16632 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16635 # We used to test for /lib/ld.so.1 and disable shared libraries on
16636 # powerpc, because MkLinux only supported shared libraries with the
16637 # GNU dynamic linker. Since this was broken with cross compilers,
16638 # most powerpc-linux boxes support dynamic linking these days and
16639 # people can always --disable-shared, the test was removed, and we
16640 # assume the GNU/Linux dynamic linker is in use.
16641 dynamic_linker='GNU/Linux ld.so'
16648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16649 soname_spec='${libname}${release}${shared_ext}$major'
16650 shlibpath_var=LD_LIBRARY_PATH
16651 shlibpath_overrides_runpath=no
16652 hardcode_into_libs=yes
16653 dynamic_linker='GNU ld.so'
16660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16663 dynamic_linker='NetBSD (a.out) ld.so'
16665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16666 soname_spec='${libname}${release}${shared_ext}$major'
16667 dynamic_linker='NetBSD ld.elf_so'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=yes
16671 hardcode_into_libs=yes
16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677 shlibpath_var=LD_LIBRARY_PATH
16678 shlibpath_overrides_runpath=yes
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686 soname_spec='${libname}${release}${shared_ext}$major'
16687 shlibpath_var=LD_LIBRARY_PATH
16688 shlibpath_overrides_runpath=yes
16693 sys_lib_dlsearch_path_spec="/usr/lib"
16695 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16697 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16698 *) need_version=no ;;
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16702 shlibpath_var=LD_LIBRARY_PATH
16703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16705 openbsd2.[89] | openbsd2.[89].*)
16706 shlibpath_overrides_runpath=no
16709 shlibpath_overrides_runpath=yes
16713 shlibpath_overrides_runpath=yes
16718 libname_spec='$name'
16721 library_names_spec='$libname${shared_ext} $libname.a'
16722 dynamic_linker='OS/2 ld.exe'
16723 shlibpath_var=LIBPATH
16726 osf3* | osf4* | osf5*)
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16734 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 soname_spec='${libname}${release}${shared_ext}$major'
16743 shlibpath_var=LD_LIBRARY_PATH
16744 shlibpath_overrides_runpath=yes
16745 hardcode_into_libs=yes
16746 # ldd complains unless libraries are executable
16747 postinstall_cmds='chmod +x $lib'
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16753 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16756 if test "$with_gnu_ld" = yes; then
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765 soname_spec='${libname}${release}${shared_ext}$major'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 case $host_vendor in
16769 shlibpath_overrides_runpath=no
16771 export_dynamic_flag_spec='${wl}-Blargedynsym'
16772 runpath_var=LD_RUN_PATH
16780 shlibpath_overrides_runpath=no
16781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16787 if test -d /usr/nec ;then
16789 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16790 soname_spec='$libname${shared_ext}.$major'
16791 shlibpath_var=LD_LIBRARY_PATH
16795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16796 version_type=freebsd-elf
16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16800 soname_spec='${libname}${release}${shared_ext}$major'
16801 shlibpath_var=LD_LIBRARY_PATH
16802 hardcode_into_libs=yes
16803 if test "$with_gnu_ld" = yes; then
16804 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16805 shlibpath_overrides_runpath=no
16807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16808 shlibpath_overrides_runpath=yes
16811 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16815 sys_lib_dlsearch_path_spec='/usr/lib'
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16829 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16830 echo "${ECHO_T}$dynamic_linker" >&6; }
16831 test "$dynamic_linker" = no && can_build_shared=no
16833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16834 if test "$GCC" = yes; then
16835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16838 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16839 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16841 if test -n "$hardcode_libdir_flag_spec" || \
16842 test -n "$runpath_var" || \
16843 test "X$hardcode_automatic" = "Xyes" ; then
16845 # We can hardcode non-existant directories.
16846 if test "$hardcode_direct" != no &&
16847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16848 # have to relink, otherwise we might link with an installed library
16849 # when we should be linking with a yet-to-be-installed one
16850 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16851 test "$hardcode_minus_L" != no; then
16852 # Linking always hardcodes the temporary library directory.
16853 hardcode_action=relink
16855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16856 hardcode_action=immediate
16859 # We cannot hardcode anything, or else we can only hardcode existing
16861 hardcode_action=unsupported
16863 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16864 echo "${ECHO_T}$hardcode_action" >&6; }
16866 if test "$hardcode_action" = relink; then
16867 # Fast installation is not supported
16868 enable_fast_install=no
16869 elif test "$shlibpath_overrides_runpath" = yes ||
16870 test "$enable_shared" = no; then
16871 # Fast installation is not necessary
16872 enable_fast_install=needless
16877 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16878 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16879 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16880 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16881 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16882 { echo "$as_me:$LINENO: result: yes" >&5
16883 echo "${ECHO_T}yes" >&6; }
16885 # FIXME - insert some real tests, host_os isn't really good enough
16888 if test -n "$STRIP" ; then
16889 striplib="$STRIP -x"
16890 { echo "$as_me:$LINENO: result: yes" >&5
16891 echo "${ECHO_T}yes" >&6; }
16893 { echo "$as_me:$LINENO: result: no" >&5
16894 echo "${ECHO_T}no" >&6; }
16898 { echo "$as_me:$LINENO: result: no" >&5
16899 echo "${ECHO_T}no" >&6; }
16904 if test "x$enable_dlopen" != xyes; then
16905 enable_dlopen=unknown
16906 enable_dlopen_self=unknown
16907 enable_dlopen_self_static=unknown
16914 lt_cv_dlopen="load_add_on"
16916 lt_cv_dlopen_self=yes
16920 lt_cv_dlopen="LoadLibrary"
16925 lt_cv_dlopen="dlopen"
16930 # if libdl is installed we need to link against it
16931 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16932 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16933 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 ac_check_lib_save_LIBS=$LIBS
16938 cat >conftest.$ac_ext <<_ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16945 /* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
16960 rm -f conftest.$ac_objext conftest$ac_exeext
16961 if { (ac_try="$ac_link"
16962 case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_link") 2>conftest.er1
16969 grep -v '^ *+' conftest.er1 >conftest.err
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } &&
16974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16975 { (case "(($ac_try" in
16976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977 *) ac_try_echo=$ac_try;;
16979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980 (eval "$ac_try") 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest$ac_exeext'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_lib_dl_dlopen=yes
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16999 ac_cv_lib_dl_dlopen=no
17002 rm -f core conftest.err conftest.$ac_objext \
17003 conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17006 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17007 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17008 if test $ac_cv_lib_dl_dlopen = yes; then
17009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17012 lt_cv_dlopen="dyld"
17014 lt_cv_dlopen_self=yes
17021 { echo "$as_me:$LINENO: checking for shl_load" >&5
17022 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17023 if test "${ac_cv_func_shl_load+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 cat >conftest.$ac_ext <<_ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17034 #define shl_load innocuous_shl_load
17036 /* System header to define __stub macros and hopefully few prototypes,
17037 which can conflict with char shl_load (); below.
17038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17039 <limits.h> exists even on freestanding compilers. */
17042 # include <limits.h>
17044 # include <assert.h>
17049 /* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
17056 /* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
17059 #if defined __stub_shl_load || defined __stub___shl_load
17066 return shl_load ();
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
17080 grep -v '^ *+' conftest.er1 >conftest.err
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_func_shl_load=yes
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 ac_cv_func_shl_load=no
17113 rm -f core conftest.err conftest.$ac_objext \
17114 conftest$ac_exeext conftest.$ac_ext
17116 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17117 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17118 if test $ac_cv_func_shl_load = yes; then
17119 lt_cv_dlopen="shl_load"
17121 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17122 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17123 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 ac_check_lib_save_LIBS=$LIBS
17128 cat >conftest.$ac_ext <<_ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17135 /* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17145 return shl_load ();
17150 rm -f conftest.$ac_objext conftest$ac_exeext
17151 if { (ac_try="$ac_link"
17152 case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_link") 2>conftest.er1
17159 grep -v '^ *+' conftest.er1 >conftest.err
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest$ac_exeext'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 ac_cv_lib_dld_shl_load=yes
17186 echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17189 ac_cv_lib_dld_shl_load=no
17192 rm -f core conftest.err conftest.$ac_objext \
17193 conftest$ac_exeext conftest.$ac_ext
17194 LIBS=$ac_check_lib_save_LIBS
17196 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17197 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17198 if test $ac_cv_lib_dld_shl_load = yes; then
17199 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17201 { echo "$as_me:$LINENO: checking for dlopen" >&5
17202 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17203 if test "${ac_cv_func_dlopen+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17206 cat >conftest.$ac_ext <<_ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17214 #define dlopen innocuous_dlopen
17216 /* System header to define __stub macros and hopefully few prototypes,
17217 which can conflict with char dlopen (); below.
17218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17219 <limits.h> exists even on freestanding compilers. */
17222 # include <limits.h>
17224 # include <assert.h>
17229 /* Override any GCC internal prototype to avoid an error.
17230 Use char because int might match the return type of a GCC
17231 builtin and then its argument prototype would still apply. */
17236 /* The GNU C library defines this for functions which it implements
17237 to always fail with ENOSYS. Some functions are actually named
17238 something starting with __ and the normal name is an alias. */
17239 #if defined __stub_dlopen || defined __stub___dlopen
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (ac_try="$ac_link"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_link") 2>conftest.er1
17260 grep -v '^ *+' conftest.er1 >conftest.err
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
17265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17266 { (case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_try") 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_try") 2>&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
17285 ac_cv_func_dlopen=yes
17287 echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17290 ac_cv_func_dlopen=no
17293 rm -f core conftest.err conftest.$ac_objext \
17294 conftest$ac_exeext conftest.$ac_ext
17296 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17297 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17298 if test $ac_cv_func_dlopen = yes; then
17299 lt_cv_dlopen="dlopen"
17301 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17302 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17303 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 ac_check_lib_save_LIBS=$LIBS
17308 cat >conftest.$ac_ext <<_ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17315 /* Override any GCC internal prototype to avoid an error.
17316 Use char because int might match the return type of a GCC
17317 builtin and then its argument prototype would still apply. */
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (ac_try="$ac_link"
17332 case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_link") 2>conftest.er1
17339 grep -v '^ *+' conftest.er1 >conftest.err
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17345 { (case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_try") 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest$ac_exeext'
17355 { (case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_try") 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
17364 ac_cv_lib_dl_dlopen=yes
17366 echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17369 ac_cv_lib_dl_dlopen=no
17372 rm -f core conftest.err conftest.$ac_objext \
17373 conftest$ac_exeext conftest.$ac_ext
17374 LIBS=$ac_check_lib_save_LIBS
17376 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17377 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17378 if test $ac_cv_lib_dl_dlopen = yes; then
17379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17381 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17382 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17384 echo $ECHO_N "(cached) $ECHO_C" >&6
17386 ac_check_lib_save_LIBS=$LIBS
17387 LIBS="-lsvld $LIBS"
17388 cat >conftest.$ac_ext <<_ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h. */
17395 /* Override any GCC internal prototype to avoid an error.
17396 Use char because int might match the return type of a GCC
17397 builtin and then its argument prototype would still apply. */
17410 rm -f conftest.$ac_objext conftest$ac_exeext
17411 if { (ac_try="$ac_link"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_link") 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17425 { (case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_try") 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try='test -s conftest$ac_exeext'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
17444 ac_cv_lib_svld_dlopen=yes
17446 echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17449 ac_cv_lib_svld_dlopen=no
17452 rm -f core conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
17454 LIBS=$ac_check_lib_save_LIBS
17456 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17457 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17458 if test $ac_cv_lib_svld_dlopen = yes; then
17459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17461 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17462 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17463 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 ac_check_lib_save_LIBS=$LIBS
17468 cat >conftest.$ac_ext <<_ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17475 /* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
17485 return dld_link ();
17490 rm -f conftest.$ac_objext conftest$ac_exeext
17491 if { (ac_try="$ac_link"
17492 case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_link") 2>conftest.er1
17499 grep -v '^ *+' conftest.er1 >conftest.err
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest$ac_exeext'
17515 { (case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_try") 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_cv_lib_dld_dld_link=yes
17526 echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17529 ac_cv_lib_dld_dld_link=no
17532 rm -f core conftest.err conftest.$ac_objext \
17533 conftest$ac_exeext conftest.$ac_ext
17534 LIBS=$ac_check_lib_save_LIBS
17536 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17537 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17538 if test $ac_cv_lib_dld_dld_link = yes; then
17539 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17560 if test "x$lt_cv_dlopen" != xno; then
17566 case $lt_cv_dlopen in
17568 save_CPPFLAGS="$CPPFLAGS"
17569 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17571 save_LDFLAGS="$LDFLAGS"
17572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17575 LIBS="$lt_cv_dlopen_libs $LIBS"
17577 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17578 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17579 if test "${lt_cv_dlopen_self+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 if test "$cross_compiling" = yes; then :
17583 lt_cv_dlopen_self=cross
17585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17586 lt_status=$lt_dlunknown
17587 cat > conftest.$ac_ext <<EOF
17588 #line 17588 "configure"
17589 #include "confdefs.h"
17598 # define LT_DLGLOBAL RTLD_GLOBAL
17601 # define LT_DLGLOBAL DL_GLOBAL
17603 # define LT_DLGLOBAL 0
17607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17608 find out it does not work in some platform. */
17609 #ifndef LT_DLLAZY_OR_NOW
17611 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17614 # define LT_DLLAZY_OR_NOW DL_LAZY
17617 # define LT_DLLAZY_OR_NOW RTLD_NOW
17620 # define LT_DLLAZY_OR_NOW DL_NOW
17622 # define LT_DLLAZY_OR_NOW 0
17630 extern "C" void exit (int);
17633 void fnord() { int i=42;}
17636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17637 int status = $lt_dlunknown;
17641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17642 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17643 /* dlclose (self); */
17651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652 (eval $ac_link) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17656 (./conftest; exit; ) >&5 2>/dev/null
17658 case x$lt_status in
17659 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17660 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17661 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17664 # compilation failed
17665 lt_cv_dlopen_self=no
17672 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17673 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17675 if test "x$lt_cv_dlopen_self" = xyes; then
17676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17677 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17678 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17679 if test "${lt_cv_dlopen_self_static+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 if test "$cross_compiling" = yes; then :
17683 lt_cv_dlopen_self_static=cross
17685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17686 lt_status=$lt_dlunknown
17687 cat > conftest.$ac_ext <<EOF
17688 #line 17688 "configure"
17689 #include "confdefs.h"
17698 # define LT_DLGLOBAL RTLD_GLOBAL
17701 # define LT_DLGLOBAL DL_GLOBAL
17703 # define LT_DLGLOBAL 0
17707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17708 find out it does not work in some platform. */
17709 #ifndef LT_DLLAZY_OR_NOW
17711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17714 # define LT_DLLAZY_OR_NOW DL_LAZY
17717 # define LT_DLLAZY_OR_NOW RTLD_NOW
17720 # define LT_DLLAZY_OR_NOW DL_NOW
17722 # define LT_DLLAZY_OR_NOW 0
17730 extern "C" void exit (int);
17733 void fnord() { int i=42;}
17736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17737 int status = $lt_dlunknown;
17741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17743 /* dlclose (self); */
17751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752 (eval $ac_link) 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17756 (./conftest; exit; ) >&5 2>/dev/null
17758 case x$lt_status in
17759 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17760 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17761 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17764 # compilation failed
17765 lt_cv_dlopen_self_static=no
17772 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17773 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17776 CPPFLAGS="$save_CPPFLAGS"
17777 LDFLAGS="$save_LDFLAGS"
17782 case $lt_cv_dlopen_self in
17783 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17784 *) enable_dlopen_self=unknown ;;
17787 case $lt_cv_dlopen_self_static in
17788 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17789 *) enable_dlopen_self_static=unknown ;;
17794 # Report which library types will actually be built
17795 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17796 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17797 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17798 echo "${ECHO_T}$can_build_shared" >&6; }
17800 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17801 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17802 test "$can_build_shared" = "no" && enable_shared=no
17804 # On AIX, shared libraries and static libraries use the same namespace, and
17805 # are all built from PIC.
17808 test "$enable_shared" = yes && enable_static=no
17809 if test -n "$RANLIB"; then
17810 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17811 postinstall_cmds='$RANLIB $lib'
17816 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17817 test "$enable_shared" = yes && enable_static=no
17821 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17822 echo "${ECHO_T}$enable_shared" >&6; }
17824 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17825 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17826 # Make sure either enable_shared or enable_static is yes.
17827 test "$enable_shared" = yes || enable_static=yes
17828 { echo "$as_me:$LINENO: result: $enable_static" >&5
17829 echo "${ECHO_T}$enable_static" >&6; }
17831 # The else clause should only fire when bootstrapping the
17832 # libtool distribution, otherwise you forgot to ship ltmain.sh
17833 # with your package, and you will get complaints that there are
17834 # no rules to generate ltmain.sh.
17835 if test -f "$ltmain"; then
17836 # See if we are running on zsh, and set the options which allow our commands through
17837 # without removal of \ escapes.
17838 if test -n "${ZSH_VERSION+set}" ; then
17839 setopt NO_GLOB_SUBST
17841 # Now quote all the things that may contain metacharacters while being
17842 # careful not to overquote the AC_SUBSTed values. We take copies of the
17843 # variables and quote the copies for generation of the libtool script.
17844 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17846 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17847 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17848 deplibs_check_method reload_flag reload_cmds need_locks \
17849 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17850 lt_cv_sys_global_symbol_to_c_name_address \
17851 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17852 old_postinstall_cmds old_postuninstall_cmds \
17856 lt_prog_compiler_wl \
17857 lt_prog_compiler_pic \
17858 lt_prog_compiler_static \
17859 lt_prog_compiler_no_builtin_flag \
17860 export_dynamic_flag_spec \
17861 thread_safe_flag_spec \
17862 whole_archive_flag_spec \
17863 enable_shared_with_static_runtimes \
17865 old_archive_from_new_cmds \
17870 compiler_lib_search_path \
17872 archive_expsym_cmds \
17874 postuninstall_cmds \
17875 old_archive_from_expsyms_cmds \
17876 allow_undefined_flag \
17877 no_undefined_flag \
17878 export_symbols_cmds \
17879 hardcode_libdir_flag_spec \
17880 hardcode_libdir_flag_spec_ld \
17881 hardcode_libdir_separator \
17882 hardcode_automatic \
17884 module_expsym_cmds \
17885 lt_cv_prog_compiler_c_o \
17887 include_expsyms; do
17890 old_archive_cmds | \
17891 old_archive_from_new_cmds | \
17893 archive_expsym_cmds | \
17895 module_expsym_cmds | \
17896 old_archive_from_expsyms_cmds | \
17897 export_symbols_cmds | \
17898 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17899 postinstall_cmds | postuninstall_cmds | \
17900 old_postinstall_cmds | old_postuninstall_cmds | \
17901 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17902 # Double-quote double-evaled strings.
17903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17912 *'\$0 --fallback-echo"')
17913 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17917 cfgfile="${ofile}T"
17918 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17920 { echo "$as_me:$LINENO: creating $ofile" >&5
17921 echo "$as_me: creating $ofile" >&6;}
17923 cat <<__EOF__ >> "$cfgfile"
17926 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17927 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17928 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17930 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17931 # Free Software Foundation, Inc.
17933 # This file is part of GNU Libtool:
17934 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17936 # This program is free software; you can redistribute it and/or modify
17937 # it under the terms of the GNU General Public License as published by
17938 # the Free Software Foundation; either version 2 of the License, or
17939 # (at your option) any later version.
17941 # This program is distributed in the hope that it will be useful, but
17942 # WITHOUT ANY WARRANTY; without even the implied warranty of
17943 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17944 # General Public License for more details.
17946 # You should have received a copy of the GNU General Public License
17947 # along with this program; if not, write to the Free Software
17948 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17950 # As a special exception to the GNU General Public License, if you
17951 # distribute this file as part of a program that contains a
17952 # configuration script generated by Autoconf, you may include it under
17953 # the same distribution terms that you use for the rest of that program.
17955 # A sed program that does not truncate output.
17958 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17959 Xsed="$SED -e 1s/^X//"
17961 # The HP-UX ksh and POSIX shell print the target directory to stdout
17962 # if CDPATH is set.
17963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17965 # The names of the tagged configurations supported by this script.
17968 # ### BEGIN LIBTOOL CONFIG
17970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17972 # Shell to use when invoking shell scripts.
17975 # Whether or not to build shared libraries.
17976 build_libtool_libs=$enable_shared
17978 # Whether or not to build static libraries.
17979 build_old_libs=$enable_static
17981 # Whether or not to add -lc for building shared libraries.
17982 build_libtool_need_lc=$archive_cmds_need_lc
17984 # Whether or not to disallow shared libs when runtime libs are static
17985 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17987 # Whether or not to optimize for fast installation.
17988 fast_install=$enable_fast_install
17991 host_alias=$host_alias
17995 # The build system.
17996 build_alias=$build_alias
18000 # An echo program that does not interpret backslashes.
18005 AR_FLAGS=$lt_AR_FLAGS
18010 # LTCC compiler flags.
18011 LTCFLAGS=$lt_LTCFLAGS
18013 # A language-specific compiler.
18016 # Is the compiler the GNU C compiler?
18022 # The linker used to build libraries.
18025 # Whether we need hard or soft links.
18028 # A BSD-compatible nm program.
18031 # A symbol stripping program
18034 # Used to examine libraries when file_magic_cmd begins "file"
18035 MAGIC_CMD=$MAGIC_CMD
18037 # Used on cygwin: DLL creation program.
18040 # Used on cygwin: object dumper.
18043 # Used on cygwin: assembler.
18046 # The name of the directory that contains temporary libtool files.
18049 # How to create reloadable object files.
18050 reload_flag=$lt_reload_flag
18051 reload_cmds=$lt_reload_cmds
18053 # How to pass a linker flag through the compiler.
18054 wl=$lt_lt_prog_compiler_wl
18056 # Object file suffix (normally "o").
18057 objext="$ac_objext"
18059 # Old archive suffix (normally "a").
18062 # Shared library suffix (normally ".so").
18063 shrext_cmds='$shrext_cmds'
18065 # Executable file suffix (normally "").
18068 # Additional compiler flags for building library objects.
18069 pic_flag=$lt_lt_prog_compiler_pic
18072 # What is the maximum length of a command?
18073 max_cmd_len=$lt_cv_sys_max_cmd_len
18075 # Does compiler simultaneously support -c and -o options?
18076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18078 # Must we lock files when doing compilation?
18079 need_locks=$lt_need_locks
18081 # Do we need the lib prefix for modules?
18082 need_lib_prefix=$need_lib_prefix
18084 # Do we need a version for libraries?
18085 need_version=$need_version
18087 # Whether dlopen is supported.
18088 dlopen_support=$enable_dlopen
18090 # Whether dlopen of programs is supported.
18091 dlopen_self=$enable_dlopen_self
18093 # Whether dlopen of statically linked programs is supported.
18094 dlopen_self_static=$enable_dlopen_self_static
18096 # Compiler flag to prevent dynamic linking.
18097 link_static_flag=$lt_lt_prog_compiler_static
18099 # Compiler flag to turn off builtin functions.
18100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18102 # Compiler flag to allow reflexive dlopens.
18103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18105 # Compiler flag to generate shared objects directly from archives.
18106 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18108 # Compiler flag to generate thread-safe objects.
18109 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18111 # Library versioning type.
18112 version_type=$version_type
18114 # Format of library name prefix.
18115 libname_spec=$lt_libname_spec
18117 # List of archive names. First name is the real one, the rest are links.
18118 # The last name is the one that the linker finds with -lNAME.
18119 library_names_spec=$lt_library_names_spec
18121 # The coded name of the library, if different from the real name.
18122 soname_spec=$lt_soname_spec
18124 # Commands used to build and install an old-style archive.
18126 old_archive_cmds=$lt_old_archive_cmds
18127 old_postinstall_cmds=$lt_old_postinstall_cmds
18128 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18130 # Create an old-style archive from a shared archive.
18131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18133 # Create a temporary old-style archive to link instead of a shared archive.
18134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18136 # Commands used to build and install a shared archive.
18137 archive_cmds=$lt_archive_cmds
18138 archive_expsym_cmds=$lt_archive_expsym_cmds
18139 postinstall_cmds=$lt_postinstall_cmds
18140 postuninstall_cmds=$lt_postuninstall_cmds
18142 # Commands used to build a loadable module (assumed same as above if empty)
18143 module_cmds=$lt_module_cmds
18144 module_expsym_cmds=$lt_module_expsym_cmds
18146 # Commands to strip libraries.
18147 old_striplib=$lt_old_striplib
18148 striplib=$lt_striplib
18150 # Dependencies to place before the objects being linked to create a
18152 predep_objects=$lt_predep_objects
18154 # Dependencies to place after the objects being linked to create a
18156 postdep_objects=$lt_postdep_objects
18158 # Dependencies to place before the objects being linked to create a
18160 predeps=$lt_predeps
18162 # Dependencies to place after the objects being linked to create a
18164 postdeps=$lt_postdeps
18166 # The library search path used internally by the compiler when linking
18167 # a shared library.
18168 compiler_lib_search_path=$lt_compiler_lib_search_path
18170 # Method to check whether dependent libraries are shared objects.
18171 deplibs_check_method=$lt_deplibs_check_method
18173 # Command to use when deplibs_check_method == file_magic.
18174 file_magic_cmd=$lt_file_magic_cmd
18176 # Flag that allows shared libraries with undefined symbols to be built.
18177 allow_undefined_flag=$lt_allow_undefined_flag
18179 # Flag that forces no undefined symbols.
18180 no_undefined_flag=$lt_no_undefined_flag
18182 # Commands used to finish a libtool library installation in a directory.
18183 finish_cmds=$lt_finish_cmds
18185 # Same as above, but a single script fragment to be evaled but not shown.
18186 finish_eval=$lt_finish_eval
18188 # Take the output of nm and produce a listing of raw symbols and C names.
18189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18191 # Transform the output of nm in a proper C declaration
18192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18194 # Transform the output of nm in a C name address pair
18195 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18197 # This is the shared library runtime path variable.
18198 runpath_var=$runpath_var
18200 # This is the shared library path variable.
18201 shlibpath_var=$shlibpath_var
18203 # Is shlibpath searched before the hard-coded library search path?
18204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18206 # How to hardcode a shared library path into an executable.
18207 hardcode_action=$hardcode_action
18209 # Whether we should hardcode library paths into libraries.
18210 hardcode_into_libs=$hardcode_into_libs
18212 # Flag to hardcode \$libdir into a binary during linking.
18213 # This must work even if \$libdir does not exist.
18214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18216 # If ld is used when linking, flag to hardcode \$libdir into
18217 # a binary during linking. This must work even if \$libdir does
18219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18221 # Whether we need a single -rpath flag with a separated argument.
18222 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18224 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18225 # resulting binary.
18226 hardcode_direct=$hardcode_direct
18228 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18229 # resulting binary.
18230 hardcode_minus_L=$hardcode_minus_L
18232 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18233 # the resulting binary.
18234 hardcode_shlibpath_var=$hardcode_shlibpath_var
18236 # Set to yes if building a shared library automatically hardcodes DIR into the library
18237 # and all subsequent libraries and executables linked against it.
18238 hardcode_automatic=$hardcode_automatic
18240 # Variables whose values should be saved in libtool wrapper scripts and
18241 # restored at relink time.
18242 variables_saved_for_relink="$variables_saved_for_relink"
18244 # Whether libtool must link a program against all its dependency libraries.
18245 link_all_deplibs=$link_all_deplibs
18247 # Compile-time system search path for libraries
18248 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18250 # Run-time system search path for libraries
18251 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18253 # Fix the shell variable \$srcfile for the compiler.
18254 fix_srcfile_path="$fix_srcfile_path"
18256 # Set to yes if exported symbols are required.
18257 always_export_symbols=$always_export_symbols
18259 # The commands to list exported symbols.
18260 export_symbols_cmds=$lt_export_symbols_cmds
18262 # The commands to extract the exported symbol list from a shared archive.
18263 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18265 # Symbols that should not be listed in the preloaded symbols.
18266 exclude_expsyms=$lt_exclude_expsyms
18268 # Symbols that must always be exported.
18269 include_expsyms=$lt_include_expsyms
18271 # ### END LIBTOOL CONFIG
18278 cat <<\EOF >> "$cfgfile"
18280 # AIX sometimes has problems with the GCC collect2 program. For some
18281 # reason, if we set the COLLECT_NAMES environment variable, the problems
18282 # vanish in a puff of smoke.
18283 if test "X${COLLECT_NAMES+set}" != Xset; then
18285 export COLLECT_NAMES
18291 # We use sed instead of cat because bash on DJGPP gets confused if
18292 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18293 # text mode, it properly converts lines to CR/LF. This bash problem
18294 # is reportedly fixed, but why not run on old versions too?
18295 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18297 mv -f "$cfgfile" "$ofile" || \
18298 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18302 # If there is no Makefile yet, we rely on a make rule to execute
18303 # `config.status --recheck' to rerun these tests and create the
18304 # libtool script then.
18305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18306 if test -f "$ltmain_in"; then
18307 test -f Makefile && make "$ltmain"
18313 ac_cpp='$CPP $CPPFLAGS'
18314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18321 # Check whether --with-tags was given.
18322 if test "${with_tags+set}" = set; then
18323 withval=$with_tags; tagnames="$withval"
18327 if test -f "$ltmain" && test -n "$tagnames"; then
18328 if test ! -f "${ofile}"; then
18329 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18330 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18333 if test -z "$LTCC"; then
18334 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18335 if test -z "$LTCC"; then
18336 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18337 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18339 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18340 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18343 if test -z "$LTCFLAGS"; then
18344 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18347 # Extract list of available tagged configurations in $ofile.
18348 # Note that this assumes the entire list is on one line.
18349 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18352 for tagname in $tagnames; do
18354 # Check whether tagname contains only valid characters
18355 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18357 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18358 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18359 { (exit 1); exit 1; }; }
18363 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18365 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18366 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18367 { (exit 1); exit 1; }; }
18370 # Update the list of available tags.
18371 if test -n "$tagname"; then
18372 echo appending configuration tag \"$tagname\" to $ofile
18376 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18377 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18378 (test "X$CXX" != "Xg++"))) ; then
18380 ac_cpp='$CXXCPP $CPPFLAGS'
18381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18388 archive_cmds_need_lc_CXX=no
18389 allow_undefined_flag_CXX=
18390 always_export_symbols_CXX=no
18391 archive_expsym_cmds_CXX=
18392 export_dynamic_flag_spec_CXX=
18393 hardcode_direct_CXX=no
18394 hardcode_libdir_flag_spec_CXX=
18395 hardcode_libdir_flag_spec_ld_CXX=
18396 hardcode_libdir_separator_CXX=
18397 hardcode_minus_L_CXX=no
18398 hardcode_shlibpath_var_CXX=unsupported
18399 hardcode_automatic_CXX=no
18401 module_expsym_cmds_CXX=
18402 link_all_deplibs_CXX=unknown
18403 old_archive_cmds_CXX=$old_archive_cmds
18404 no_undefined_flag_CXX=
18405 whole_archive_flag_spec_CXX=
18406 enable_shared_with_static_runtimes_CXX=no
18408 # Dependencies to place before and after the object being linked:
18409 predep_objects_CXX=
18410 postdep_objects_CXX=
18413 compiler_lib_search_path_CXX=
18415 # Source file extension for C++ test sources.
18418 # Object file extension for compiled C++ test sources.
18422 # Code to be used in simple compile tests
18423 lt_simple_compile_test_code="int some_variable = 0;\n"
18425 # Code to be used in simple link tests
18426 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18430 # If no C compiler was specified, use CC.
18433 # If no C compiler flags were specified, use CFLAGS.
18434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18436 # Allow CC to be a program name with arguments.
18440 # save warnings/boilerplate of simple test code
18441 ac_outfile=conftest.$ac_objext
18442 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18443 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18444 _lt_compiler_boilerplate=`cat conftest.err`
18447 ac_outfile=conftest.$ac_objext
18448 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18449 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18450 _lt_linker_boilerplate=`cat conftest.err`
18454 # Allow CC to be a program name with arguments.
18459 lt_save_with_gnu_ld=$with_gnu_ld
18460 lt_save_path_LD=$lt_cv_path_LD
18461 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18462 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18464 $as_unset lt_cv_prog_gnu_ld
18466 if test -n "${lt_cv_path_LDCXX+set}"; then
18467 lt_cv_path_LD=$lt_cv_path_LDCXX
18469 $as_unset lt_cv_path_LD
18471 test -z "${LDCXX+set}" || LD=$LDCXX
18475 for cc_temp in $compiler""; do
18477 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18478 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18483 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18486 # We don't want -fno-exception wen compiling C++ code, so set the
18487 # no_builtin_flag separately
18488 if test "$GXX" = yes; then
18489 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18491 lt_prog_compiler_no_builtin_flag_CXX=
18494 if test "$GXX" = yes; then
18495 # Set up default GNU C++ configuration
18498 # Check whether --with-gnu-ld was given.
18499 if test "${with_gnu_ld+set}" = set; then
18500 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18506 if test "$GCC" = yes; then
18507 # Check if gcc -print-prog-name=ld gives a path.
18508 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18509 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18512 # gcc leaves a trailing carriage return which upsets mingw
18513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18518 # Accept absolute paths.
18520 re_direlt='/[^/][^/]*/\.\./'
18521 # Canonicalize the pathname of ld
18522 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18523 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18524 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18526 test -z "$LD" && LD="$ac_prog"
18529 # If it fails, then pretend we aren't using GCC.
18533 # If it is relative, then search for the first ld in PATH.
18534 with_gnu_ld=unknown
18537 elif test "$with_gnu_ld" = yes; then
18538 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18539 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18541 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18542 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18544 if test "${lt_cv_path_LD+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 if test -z "$LD"; then
18548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18549 for ac_dir in $PATH; do
18551 test -z "$ac_dir" && ac_dir=.
18552 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18553 lt_cv_path_LD="$ac_dir/$ac_prog"
18554 # Check to see if the program is GNU ld. I'd rather use --version,
18555 # but apparently some variants of GNU ld only accept -v.
18556 # Break only if it was the GNU/non-GNU ld that we prefer.
18557 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18558 *GNU* | *'with BFD'*)
18559 test "$with_gnu_ld" != no && break
18562 test "$with_gnu_ld" != yes && break
18569 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18573 LD="$lt_cv_path_LD"
18574 if test -n "$LD"; then
18575 { echo "$as_me:$LINENO: result: $LD" >&5
18576 echo "${ECHO_T}$LD" >&6; }
18578 { echo "$as_me:$LINENO: result: no" >&5
18579 echo "${ECHO_T}no" >&6; }
18581 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18582 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18583 { (exit 1); exit 1; }; }
18584 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18585 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18586 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18590 case `$LD -v 2>&1 </dev/null` in
18591 *GNU* | *'with BFD'*)
18592 lt_cv_prog_gnu_ld=yes
18595 lt_cv_prog_gnu_ld=no
18599 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18600 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18601 with_gnu_ld=$lt_cv_prog_gnu_ld
18605 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18606 # archiving commands below assume that GNU ld is being used.
18607 if test "$with_gnu_ld" = yes; then
18608 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18609 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'
18611 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18614 # If archive_cmds runs LD, not CC, wlarc should be empty
18615 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18616 # investigate it a little bit more. (MM)
18619 # ancient GNU ld didn't support --whole-archive et. al.
18620 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18621 grep 'no-whole-archive' > /dev/null; then
18622 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18624 whole_archive_flag_spec_CXX=
18630 # A generic and very simple default shared library creation
18631 # command for GNU C++ for the case where it uses the native
18632 # linker, instead of GNU ld. If possible, this setting should
18633 # overridden to take advantage of the native linker features on
18634 # the platform it is being used on.
18635 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18638 # Commands to make compiler produce verbose output that lists
18639 # what "hidden" libraries, object files and flags are used when
18640 # linking a shared library.
18641 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18649 # PORTME: fill in a description of your system's C++ link characteristics
18650 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18651 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18655 # FIXME: insert proper C++ library support
18659 if test "$host_cpu" = ia64; then
18660 # On IA64, the linker does run time linking by default, so we don't
18661 # have to do anything special.
18662 aix_use_runtimelinking=no
18663 exp_sym_flag='-Bexport'
18666 aix_use_runtimelinking=no
18668 # Test if we are trying to use run time linking or normal
18669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18670 # need to do runtime linking.
18671 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18672 for ld_flag in $LDFLAGS; do
18675 aix_use_runtimelinking=yes
18683 exp_sym_flag='-bexport'
18684 no_entry_flag='-bnoentry'
18687 # When large executables or shared objects are built, AIX ld can
18688 # have problems creating the table of contents. If linking a library
18689 # or program results in "error TOC overflow" add -mminimal-toc to
18690 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18691 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18693 archive_cmds_CXX=''
18694 hardcode_direct_CXX=yes
18695 hardcode_libdir_separator_CXX=':'
18696 link_all_deplibs_CXX=yes
18698 if test "$GXX" = yes; then
18699 case $host_os in aix4.[012]|aix4.[012].*)
18700 # We only want to do this on AIX 4.2 and lower, the check
18701 # below for broken collect2 doesn't work under 4.3+
18702 collect2name=`${CC} -print-prog-name=collect2`
18703 if test -f "$collect2name" && \
18704 strings "$collect2name" | grep resolve_lib_name >/dev/null
18706 # We have reworked collect2
18707 hardcode_direct_CXX=yes
18709 # We have old collect2
18710 hardcode_direct_CXX=unsupported
18711 # It fails to find uninstalled libraries when the uninstalled
18712 # path is not listed in the libpath. Setting hardcode_minus_L
18713 # to unsupported forces relinking
18714 hardcode_minus_L_CXX=yes
18715 hardcode_libdir_flag_spec_CXX='-L$libdir'
18716 hardcode_libdir_separator_CXX=
18720 shared_flag='-shared'
18721 if test "$aix_use_runtimelinking" = yes; then
18722 shared_flag="$shared_flag "'${wl}-G'
18726 if test "$host_cpu" = ia64; then
18727 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18728 # chokes on -Wl,-G. The following line is correct:
18731 if test "$aix_use_runtimelinking" = yes; then
18732 shared_flag='${wl}-G'
18734 shared_flag='${wl}-bM:SRE'
18739 # It seems that -bexpall does not export symbols beginning with
18740 # underscore (_), so it is better to generate a list of symbols to export.
18741 always_export_symbols_CXX=yes
18742 if test "$aix_use_runtimelinking" = yes; then
18743 # Warning - without using the other runtime loading flags (-brtl),
18744 # -berok will link without error, but may produce a broken library.
18745 allow_undefined_flag_CXX='-berok'
18746 # Determine the default libpath from the value encoded in an empty executable.
18747 cat >conftest.$ac_ext <<_ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_link") 2>conftest.er1
18771 grep -v '^ *+' conftest.er1 >conftest.err
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18797 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18799 # Check for a 64-bit object if we didn't find anything.
18800 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; }
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18809 rm -f core conftest.err conftest.$ac_objext \
18810 conftest$ac_exeext conftest.$ac_ext
18811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18813 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18815 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"
18817 if test "$host_cpu" = ia64; then
18818 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18819 allow_undefined_flag_CXX="-z nodefs"
18820 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"
18822 # Determine the default libpath from the value encoded in an empty executable.
18823 cat >conftest.$ac_ext <<_ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_link") 2>conftest.er1
18847 grep -v '^ *+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } &&
18852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18853 { (case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_try") 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest$ac_exeext'
18863 { (case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18875 # Check for a 64-bit object if we didn't find anything.
18876 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; }
18879 echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18885 rm -f core conftest.err conftest.$ac_objext \
18886 conftest$ac_exeext conftest.$ac_ext
18887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18889 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18890 # Warning - without using the other run time loading flags,
18891 # -berok will link without error, but may produce a broken library.
18892 no_undefined_flag_CXX=' ${wl}-bernotok'
18893 allow_undefined_flag_CXX=' ${wl}-berok'
18894 # Exported symbols can be pulled into shared objects from archives
18895 whole_archive_flag_spec_CXX='$convenience'
18896 archive_cmds_need_lc_CXX=yes
18897 # This is similar to how AIX traditionally builds its shared libraries.
18898 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'
18904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18905 allow_undefined_flag_CXX=unsupported
18906 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18907 # support --undefined. This deserves some investigation. FIXME
18908 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18915 case $cc_basename in
18917 # FIXME: insert proper C++ library support
18923 cygwin* | mingw* | pw32*)
18924 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18925 # as there is no search path for DLLs.
18926 hardcode_libdir_flag_spec_CXX='-L$libdir'
18927 allow_undefined_flag_CXX=unsupported
18928 always_export_symbols_CXX=no
18929 enable_shared_with_static_runtimes_CXX=yes
18931 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18932 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'
18933 # If the export-symbols file already is a .def file (1st line
18934 # is EXPORTS), use it as is; otherwise, prepend...
18935 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18936 cp $export_symbols $output_objdir/$soname.def;
18938 echo EXPORTS > $output_objdir/$soname.def;
18939 cat $export_symbols >> $output_objdir/$soname.def;
18941 $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'
18946 darwin* | rhapsody*)
18948 rhapsody* | darwin1.[012])
18949 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18952 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18953 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18955 case ${MACOSX_DEPLOYMENT_TARGET} in
18957 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18960 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18966 archive_cmds_need_lc_CXX=no
18967 hardcode_direct_CXX=no
18968 hardcode_automatic_CXX=yes
18969 hardcode_shlibpath_var_CXX=unsupported
18970 whole_archive_flag_spec_CXX=''
18971 link_all_deplibs_CXX=yes
18973 if test "$GXX" = yes ; then
18974 lt_int_apple_cc_single_mod=no
18975 output_verbose_link_cmd='echo'
18976 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18977 lt_int_apple_cc_single_mod=yes
18979 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18980 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18982 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'
18984 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18985 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18986 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18987 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}'
18989 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}'
18991 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}'
18993 case $cc_basename in
18995 output_verbose_link_cmd='echo'
18996 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'
18997 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18999 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}'
19000 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}'
19010 case $cc_basename in
19012 # FIXME: insert proper C++ library support
19016 # Green Hills C++ Compiler
19017 # FIXME: insert proper C++ library support
19021 # FIXME: insert proper C++ library support
19027 # C++ shared libraries reported to be fairly broken before switch to ELF
19031 archive_cmds_need_lc_CXX=no
19033 freebsd* | kfreebsd*-gnu | dragonfly*)
19034 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19041 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19042 hardcode_libdir_separator_CXX=:
19043 export_dynamic_flag_spec_CXX='${wl}-E'
19044 hardcode_direct_CXX=yes
19045 hardcode_minus_L_CXX=yes # Not in the search PATH,
19046 # but as the default
19047 # location of the library.
19049 case $cc_basename in
19051 # FIXME: insert proper C++ library support
19055 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'
19056 # Commands to make compiler produce verbose output that lists
19057 # what "hidden" libraries, object files and flags are used when
19058 # linking a shared library.
19060 # There doesn't appear to be a way to prevent this compiler from
19061 # explicitly linking system object files so we need to strip them
19062 # from the output so that they don't get included in the library
19064 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'
19067 if test "$GXX" = yes; then
19068 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'
19070 # FIXME: insert proper C++ library support
19077 if test $with_gnu_ld = no; then
19078 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19079 hardcode_libdir_separator_CXX=:
19083 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19086 export_dynamic_flag_spec_CXX='${wl}-E'
19092 hardcode_direct_CXX=no
19093 hardcode_shlibpath_var_CXX=no
19096 hardcode_direct_CXX=yes
19097 hardcode_minus_L_CXX=yes # Not in the search PATH,
19098 # but as the default
19099 # location of the library.
19103 case $cc_basename in
19105 # FIXME: insert proper C++ library support
19111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19114 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19117 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19120 # Commands to make compiler produce verbose output that lists
19121 # what "hidden" libraries, object files and flags are used when
19122 # linking a shared library.
19124 # There doesn't appear to be a way to prevent this compiler from
19125 # explicitly linking system object files so we need to strip them
19126 # from the output so that they don't get included in the library
19128 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'
19131 if test "$GXX" = yes; then
19132 if test $with_gnu_ld = no; then
19135 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19138 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19141 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'
19146 # FIXME: insert proper C++ library support
19153 hardcode_direct_CXX=no
19154 hardcode_shlibpath_var_CXX=no
19155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19156 export_dynamic_flag_spec_CXX='${wl}-E'
19157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19158 # Instead, shared libraries are loaded at an image base (0x10000000 by
19159 # default) and relocated if they conflict, which is a slow very memory
19160 # consuming and fragmenting process. To avoid this, we pick a random,
19161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19163 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'
19164 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'
19167 case $cc_basename in
19170 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'
19172 # Archives containing C++ object files must be created using
19173 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19174 # necessary to make sure instantiated templates are included
19176 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19179 if test "$GXX" = yes; then
19180 if test "$with_gnu_ld" = no; then
19181 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'
19183 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'
19186 link_all_deplibs_CXX=yes
19189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19190 hardcode_libdir_separator_CXX=:
19193 case $cc_basename in
19195 # Kuck and Associates, Inc. (KAI) C++ Compiler
19197 # KCC will only create a shared library if the output file
19198 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19199 # to its proper name (with version) after linking.
19200 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'
19201 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'
19202 # Commands to make compiler produce verbose output that lists
19203 # what "hidden" libraries, object files and flags are used when
19204 # linking a shared library.
19206 # There doesn't appear to be a way to prevent this compiler from
19207 # explicitly linking system object files so we need to strip them
19208 # from the output so that they don't get included in the library
19210 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'
19212 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19213 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19215 # Archives containing C++ object files must be created using
19216 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19217 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19222 # version 8.0 and above of icpc choke on multiply defined symbols
19223 # if we add $predep_objects and $postdep_objects, however 7.1 and
19224 # earlier do not add the objects themselves.
19225 case `$CC -V 2>&1` in
19227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19228 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'
19230 *) # Version 8.0 or newer
19233 ia64*) tmp_idyn=' -i_dynamic';;
19235 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236 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'
19239 archive_cmds_need_lc_CXX=no
19240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19241 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19242 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19245 # Portland Group C++ compiler
19246 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19247 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'
19249 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19250 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19251 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'
19255 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19256 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'
19258 runpath_var=LD_RUN_PATH
19259 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19260 hardcode_libdir_separator_CXX=:
19262 # Commands to make compiler produce verbose output that lists
19263 # what "hidden" libraries, object files and flags are used when
19264 # linking a shared library.
19266 # There doesn't appear to be a way to prevent this compiler from
19267 # explicitly linking system object files so we need to strip them
19268 # from the output so that they don't get included in the library
19270 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'
19275 # FIXME: insert proper C++ library support
19279 # FIXME: insert proper C++ library support
19283 case $cc_basename in
19285 # FIXME: insert proper C++ library support
19289 # FIXME: insert proper C++ library support
19295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19296 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19298 hardcode_libdir_flag_spec_CXX='-R$libdir'
19299 hardcode_direct_CXX=yes
19300 hardcode_shlibpath_var_CXX=no
19302 # Workaround some broken pre-1.5 toolchains
19303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19306 # C++ shared libraries are fairly broken
19310 hardcode_direct_CXX=yes
19311 hardcode_shlibpath_var_CXX=no
19312 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19315 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19316 export_dynamic_flag_spec_CXX='${wl}-E'
19317 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19319 output_verbose_link_cmd='echo'
19322 case $cc_basename in
19324 # Kuck and Associates, Inc. (KAI) C++ Compiler
19326 # KCC will only create a shared library if the output file
19327 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19328 # to its proper name (with version) after linking.
19329 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'
19331 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19332 hardcode_libdir_separator_CXX=:
19334 # Archives containing C++ object files must be created using
19335 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19336 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19340 # Rational C++ 2.4.1
19341 # FIXME: insert proper C++ library support
19345 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19346 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'
19348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19349 hardcode_libdir_separator_CXX=:
19351 # Commands to make compiler produce verbose output that lists
19352 # what "hidden" libraries, object files and flags are used when
19353 # linking a shared library.
19355 # There doesn't appear to be a way to prevent this compiler from
19356 # explicitly linking system object files so we need to strip them
19357 # from the output so that they don't get included in the library
19359 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'
19362 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19364 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'
19366 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19367 hardcode_libdir_separator_CXX=:
19369 # Commands to make compiler produce verbose output that lists
19370 # what "hidden" libraries, object files and flags are used when
19371 # linking a shared library.
19372 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19375 # FIXME: insert proper C++ library support
19382 case $cc_basename in
19384 # Kuck and Associates, Inc. (KAI) C++ Compiler
19386 # KCC will only create a shared library if the output file
19387 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19388 # to its proper name (with version) after linking.
19389 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'
19391 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19392 hardcode_libdir_separator_CXX=:
19394 # Archives containing C++ object files must be created using
19395 # the KAI C++ compiler.
19396 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19399 # Rational C++ 2.4.1
19400 # FIXME: insert proper C++ library support
19404 allow_undefined_flag_CXX=' -expect_unresolved \*'
19405 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'
19406 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19407 echo "-hidden">> $lib.exp~
19408 $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~
19411 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19412 hardcode_libdir_separator_CXX=:
19414 # Commands to make compiler produce verbose output that lists
19415 # what "hidden" libraries, object files and flags are used when
19416 # linking a shared library.
19418 # There doesn't appear to be a way to prevent this compiler from
19419 # explicitly linking system object files so we need to strip them
19420 # from the output so that they don't get included in the library
19422 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'
19425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19426 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19427 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'
19429 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19430 hardcode_libdir_separator_CXX=:
19432 # Commands to make compiler produce verbose output that lists
19433 # what "hidden" libraries, object files and flags are used when
19434 # linking a shared library.
19435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19438 # FIXME: insert proper C++ library support
19445 # FIXME: insert proper C++ library support
19449 case $cc_basename in
19452 # FIXME: insert proper C++ library support
19457 # FIXME: insert proper C++ library support
19461 # FIXME: insert proper C++ library support
19467 case $cc_basename in
19469 # Sun C++ 4.2, 5.x and Centerline C++
19470 archive_cmds_need_lc_CXX=yes
19471 no_undefined_flag_CXX=' -zdefs'
19472 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19473 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19474 $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'
19476 hardcode_libdir_flag_spec_CXX='-R$libdir'
19477 hardcode_shlibpath_var_CXX=no
19479 solaris2.[0-5] | solaris2.[0-5].*) ;;
19481 # The C++ compiler is used as linker so we must use $wl
19482 # flag to pass the commands to the underlying system
19483 # linker. We must also pass each convience library through
19484 # to the system linker between allextract/defaultextract.
19485 # The C++ compiler will combine linker options so we
19486 # cannot just pass the convience library names through
19488 # Supported since Solaris 2.6 (maybe 2.5.1?)
19489 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'
19492 link_all_deplibs_CXX=yes
19494 output_verbose_link_cmd='echo'
19496 # Archives containing C++ object files must be created using
19497 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19498 # necessary to make sure instantiated templates are included
19500 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19503 # Green Hills C++ Compiler
19504 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19506 # The C++ compiler must be used to create the archive.
19507 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19510 # GNU C++ compiler with Solaris linker
19511 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19512 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19513 if $CC --version | grep -v '^2\.7' > /dev/null; then
19514 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19515 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19516 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19518 # Commands to make compiler produce verbose output that lists
19519 # what "hidden" libraries, object files and flags are used when
19520 # linking a shared library.
19521 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19523 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19525 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19526 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19527 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19529 # Commands to make compiler produce verbose output that lists
19530 # what "hidden" libraries, object files and flags are used when
19531 # linking a shared library.
19532 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19535 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19541 no_undefined_flag_CXX='${wl}-z,text'
19542 archive_cmds_need_lc_CXX=no
19543 hardcode_shlibpath_var_CXX=no
19544 runpath_var='LD_RUN_PATH'
19546 case $cc_basename in
19548 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19549 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19552 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557 sysv5* | sco3.2v5* | sco5v6*)
19558 # Note: We can NOT use -z defs as we might desire, because we do not
19559 # link with -lc, and that would cause any symbols used from libc to
19560 # always be unresolved, which means just about no library would
19561 # ever link correctly. If we're not using GNU ld we use -z text
19562 # though, which does catch some bad symbols but isn't as heavy-handed
19564 # For security reasons, it is highly recommended that you always
19565 # use absolute paths for naming shared libraries, and exclude the
19566 # DT_RUNPATH tag from executables and libraries. But doing so
19567 # requires that you compile everything twice, which is a pain.
19568 # So that behaviour is only enabled if SCOABSPATH is set to a
19569 # non-empty value in the environment. Most likely only useful for
19570 # creating official distributions of packages.
19571 # This is a hack until libtool officially supports absolute path
19572 # names for shared libraries.
19573 no_undefined_flag_CXX='${wl}-z,text'
19574 allow_undefined_flag_CXX='${wl}-z,nodefs'
19575 archive_cmds_need_lc_CXX=no
19576 hardcode_shlibpath_var_CXX=no
19577 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19578 hardcode_libdir_separator_CXX=':'
19579 link_all_deplibs_CXX=yes
19580 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19581 runpath_var='LD_RUN_PATH'
19583 case $cc_basename in
19585 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19586 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19595 case $cc_basename in
19597 # NonStop-UX NCC 3.20
19598 # FIXME: insert proper C++ library support
19602 # FIXME: insert proper C++ library support
19608 # FIXME: insert proper C++ library support
19612 # FIXME: insert proper C++ library support
19616 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19617 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19618 test "$ld_shlibs_CXX" = no && can_build_shared=no
19624 cat > conftest.$ac_ext <<EOF
19628 Foo (void) { a = 0; }
19634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19635 (eval $ac_compile) 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; then
19639 # Parse the compiler output and extract the necessary
19640 # objects, libraries and library flags.
19642 # Sentinel used to keep track of whether or not we are before
19643 # the conftest object file.
19644 pre_test_object_deps_done=no
19646 # The `*' in the case matches for architectures that use `case' in
19647 # $output_verbose_cmd can trigger glob expansion during the loop
19648 # eval without this substitution.
19649 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19651 for p in `eval $output_verbose_link_cmd`; do
19655 # Some compilers place space between "-{L,R}" and the path.
19656 # Remove the space.
19657 if test $p = "-L" \
19658 || test $p = "-R"; then
19665 if test "$pre_test_object_deps_done" = no; then
19668 # Internal compiler library paths should come after those
19669 # provided the user. The postdeps already come after the
19670 # user supplied libs so there is no need to process them.
19671 if test -z "$compiler_lib_search_path_CXX"; then
19672 compiler_lib_search_path_CXX="${prev}${p}"
19674 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19677 # The "-l" case would never come before the object being
19678 # linked, so don't bother handling this case.
19681 if test -z "$postdeps_CXX"; then
19682 postdeps_CXX="${prev}${p}"
19684 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19690 # This assumes that the test object file only shows up
19691 # once in the compiler output.
19692 if test "$p" = "conftest.$objext"; then
19693 pre_test_object_deps_done=yes
19697 if test "$pre_test_object_deps_done" = no; then
19698 if test -z "$predep_objects_CXX"; then
19699 predep_objects_CXX="$p"
19701 predep_objects_CXX="$predep_objects_CXX $p"
19704 if test -z "$postdep_objects_CXX"; then
19705 postdep_objects_CXX="$p"
19707 postdep_objects_CXX="$postdep_objects_CXX $p"
19712 *) ;; # Ignore the rest.
19720 echo "libtool.m4: error: problem compiling CXX test program"
19723 $rm -f confest.$objext
19725 # PORTME: override above test on systems where it is broken
19728 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19729 # hack all around it, let's just trust "g++" to DTRT.
19730 predep_objects_CXX=
19731 postdep_objects_CXX=
19736 case $cc_basename in
19738 # Adding this requires a known-good setup of shared libraries for
19739 # Sun compiler versions before 5.6, else PIC objects from an old
19740 # archive will be linked into the output, leading to subtle bugs.
19741 postdeps_CXX='-lCstd -lCrun'
19748 case " $postdeps_CXX " in
19749 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19752 lt_prog_compiler_wl_CXX=
19753 lt_prog_compiler_pic_CXX=
19754 lt_prog_compiler_static_CXX=
19756 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19757 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19759 # C++ specific cases for pic, static, wl, etc.
19760 if test "$GXX" = yes; then
19761 lt_prog_compiler_wl_CXX='-Wl,'
19762 lt_prog_compiler_static_CXX='-static'
19766 # All AIX code is PIC.
19767 if test "$host_cpu" = ia64; then
19768 # AIX 5 now supports IA64 processor
19769 lt_prog_compiler_static_CXX='-Bstatic'
19773 # FIXME: we need at least 68020 code to build shared libraries, but
19774 # adding the `-m68020' flag to GCC prevents building anything better,
19776 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19778 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19779 # PIC is the default for these OSes.
19781 mingw* | os2* | pw32*)
19782 # This hack is so that the source file can tell whether it is being
19783 # built for inclusion in a dll (and should export symbols for example).
19784 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19786 darwin* | rhapsody*)
19787 # PIC is the default on this platform
19788 # Common symbols not allowed in MH_DYLIB files
19789 lt_prog_compiler_pic_CXX='-fno-common'
19792 # DJGPP does not support shared libraries at all
19793 lt_prog_compiler_pic_CXX=
19796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19797 # Instead, we relocate shared libraries at runtime.
19800 if test -d /usr/nec; then
19801 lt_prog_compiler_pic_CXX=-Kconform_pic
19805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19806 # not for PA HP-UX.
19811 lt_prog_compiler_pic_CXX='-fPIC'
19816 lt_prog_compiler_pic_CXX='-fPIC'
19822 # All AIX code is PIC.
19823 if test "$host_cpu" = ia64; then
19824 # AIX 5 now supports IA64 processor
19825 lt_prog_compiler_static_CXX='-Bstatic'
19827 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19831 case $cc_basename in
19833 # Green Hills C++ Compiler
19834 # _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"
19839 # PIC is the default on this platform
19840 # Common symbols not allowed in MH_DYLIB files
19841 case $cc_basename in
19843 lt_prog_compiler_pic_CXX='-qnocommon'
19844 lt_prog_compiler_wl_CXX='-Wl,'
19849 case $cc_basename in
19851 lt_prog_compiler_pic_CXX='-KPIC'
19854 # Green Hills C++ Compiler
19855 lt_prog_compiler_pic_CXX='-pic'
19861 freebsd* | kfreebsd*-gnu | dragonfly*)
19862 # FreeBSD uses GNU C++
19864 hpux9* | hpux10* | hpux11*)
19865 case $cc_basename in
19867 lt_prog_compiler_wl_CXX='-Wl,'
19868 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19869 if test "$host_cpu" != ia64; then
19870 lt_prog_compiler_pic_CXX='+Z'
19874 lt_prog_compiler_wl_CXX='-Wl,'
19875 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19881 lt_prog_compiler_pic_CXX='+Z'
19890 # This is c89, which is MS Visual C++ (no shared libs)
19891 # Anyone wants to do a port?
19893 irix5* | irix6* | nonstopux*)
19894 case $cc_basename in
19896 lt_prog_compiler_wl_CXX='-Wl,'
19897 lt_prog_compiler_static_CXX='-non_shared'
19898 # CC pic flag -KPIC is the default.
19905 case $cc_basename in
19908 lt_prog_compiler_wl_CXX='--backend -Wl,'
19909 lt_prog_compiler_pic_CXX='-fPIC'
19913 lt_prog_compiler_wl_CXX='-Wl,'
19914 lt_prog_compiler_pic_CXX='-KPIC'
19915 lt_prog_compiler_static_CXX='-static'
19918 # Portland Group C++ compiler.
19919 lt_prog_compiler_wl_CXX='-Wl,'
19920 lt_prog_compiler_pic_CXX='-fpic'
19921 lt_prog_compiler_static_CXX='-Bstatic'
19925 # Make sure the PIC flag is empty. It appears that all Alpha
19926 # Linux and Compaq Tru64 Unix objects are PIC.
19927 lt_prog_compiler_pic_CXX=
19928 lt_prog_compiler_static_CXX='-non_shared'
19939 case $cc_basename in
19941 lt_prog_compiler_pic_CXX='-W c,exportall'
19949 osf3* | osf4* | osf5*)
19950 case $cc_basename in
19952 lt_prog_compiler_wl_CXX='--backend -Wl,'
19955 # Rational C++ 2.4.1
19956 lt_prog_compiler_pic_CXX='-pic'
19959 # Digital/Compaq C++
19960 lt_prog_compiler_wl_CXX='-Wl,'
19961 # Make sure the PIC flag is empty. It appears that all Alpha
19962 # Linux and Compaq Tru64 Unix objects are PIC.
19963 lt_prog_compiler_pic_CXX=
19964 lt_prog_compiler_static_CXX='-non_shared'
19973 case $cc_basename in
19975 # Sun C++ 4.2, 5.x and Centerline C++
19976 lt_prog_compiler_pic_CXX='-KPIC'
19977 lt_prog_compiler_static_CXX='-Bstatic'
19978 lt_prog_compiler_wl_CXX='-Qoption ld '
19981 # Green Hills C++ Compiler
19982 lt_prog_compiler_pic_CXX='-PIC'
19989 case $cc_basename in
19992 lt_prog_compiler_pic_CXX='-pic'
19993 lt_prog_compiler_static_CXX='-Bstatic'
19997 lt_prog_compiler_pic_CXX='-pic'
20004 case $cc_basename in
20006 # NonStop-UX NCC 3.20
20007 lt_prog_compiler_pic_CXX='-KPIC'
20013 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20014 case $cc_basename in
20016 lt_prog_compiler_wl_CXX='-Wl,'
20017 lt_prog_compiler_pic_CXX='-KPIC'
20018 lt_prog_compiler_static_CXX='-Bstatic'
20025 lt_prog_compiler_can_build_shared_CXX=no
20030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20031 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20034 # Check to make sure the PIC flag actually works.
20036 if test -n "$lt_prog_compiler_pic_CXX"; then
20038 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20039 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20040 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 lt_prog_compiler_pic_works_CXX=no
20044 ac_outfile=conftest.$ac_objext
20045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20046 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20047 # Insert the option either (1) after the last *FLAGS variable, or
20048 # (2) before a word containing "conftest.", or (3) at the end.
20049 # Note that $ac_compile itself does not contain backslashes and begins
20050 # with a dollar sign (not a hyphen), so the echo should work correctly.
20051 # The option is referenced via a variable to avoid confusing sed.
20052 lt_compile=`echo "$ac_compile" | $SED \
20053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20055 -e 's:$: $lt_compiler_flag:'`
20056 (eval echo "\"\$as_me:20056: $lt_compile\"" >&5)
20057 (eval "$lt_compile" 2>conftest.err)
20059 cat conftest.err >&5
20060 echo "$as_me:20060: \$? = $ac_status" >&5
20061 if (exit $ac_status) && test -s "$ac_outfile"; then
20062 # The compiler can only warn and ignore the option if not recognized
20063 # So say no if there are warnings other than the usual output.
20064 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20067 lt_prog_compiler_pic_works_CXX=yes
20073 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20074 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20076 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20077 case $lt_prog_compiler_pic_CXX in
20079 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20082 lt_prog_compiler_pic_CXX=
20083 lt_prog_compiler_can_build_shared_CXX=no
20088 # For platforms which do not support PIC, -DPIC is meaningless:
20090 lt_prog_compiler_pic_CXX=
20093 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20098 # Check to make sure the static flag actually works.
20100 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20101 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20102 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20103 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 lt_prog_compiler_static_works_CXX=no
20107 save_LDFLAGS="$LDFLAGS"
20108 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20109 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20110 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20111 # The linker can only warn and ignore the option if not recognized
20112 # So say no if there are warnings
20113 if test -s conftest.err; then
20114 # Append any errors to the config.log.
20115 cat conftest.err 1>&5
20116 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20118 if diff conftest.exp conftest.er2 >/dev/null; then
20119 lt_prog_compiler_static_works_CXX=yes
20122 lt_prog_compiler_static_works_CXX=yes
20126 LDFLAGS="$save_LDFLAGS"
20129 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20130 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20132 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20135 lt_prog_compiler_static_CXX=
20139 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20140 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20141 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 lt_cv_prog_compiler_c_o_CXX=no
20145 $rm -r conftest 2>/dev/null
20149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20151 lt_compiler_flag="-o out/conftest2.$ac_objext"
20152 # Insert the option either (1) after the last *FLAGS variable, or
20153 # (2) before a word containing "conftest.", or (3) at the end.
20154 # Note that $ac_compile itself does not contain backslashes and begins
20155 # with a dollar sign (not a hyphen), so the echo should work correctly.
20156 lt_compile=`echo "$ac_compile" | $SED \
20157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20159 -e 's:$: $lt_compiler_flag:'`
20160 (eval echo "\"\$as_me:20160: $lt_compile\"" >&5)
20161 (eval "$lt_compile" 2>out/conftest.err)
20163 cat out/conftest.err >&5
20164 echo "$as_me:20164: \$? = $ac_status" >&5
20165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20167 # The compiler can only warn and ignore the option if not recognized
20168 # So say no if there are warnings
20169 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20172 lt_cv_prog_compiler_c_o_CXX=yes
20177 # SGI C++ compiler will create directory out/ii_files/ for
20178 # template instantiation
20179 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20180 $rm out/* && rmdir out
20186 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20187 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20190 hard_links="nottested"
20191 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20192 # do not overwrite the value of need_locks provided by the user
20193 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20194 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20199 ln conftest.a conftest.b 2>&5 || hard_links=no
20200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20201 { echo "$as_me:$LINENO: result: $hard_links" >&5
20202 echo "${ECHO_T}$hard_links" >&6; }
20203 if test "$hard_links" = no; then
20204 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20205 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20212 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20213 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20215 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20218 # If we're using GNU nm, then we don't want the "-C" option.
20219 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20220 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20221 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'
20223 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'
20227 export_symbols_cmds_CXX="$ltdll_cmds"
20230 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'
20233 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20237 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20238 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20239 test "$ld_shlibs_CXX" = no && can_build_shared=no
20242 # Do we need to explicitly link libc?
20244 case "x$archive_cmds_need_lc_CXX" in
20246 # Assume -lc should be added
20247 archive_cmds_need_lc_CXX=yes
20249 if test "$enable_shared" = yes && test "$GCC" = yes; then
20250 case $archive_cmds_CXX in
20252 # FIXME: we may have to deal with multi-command sequences.
20255 # Test whether the compiler implicitly links with -lc since on some
20256 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20257 # to ld, don't add -lc before -lgcc.
20258 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20259 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20261 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264 (eval $ac_compile) 2>&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } 2>conftest.err; then
20270 libobjs=conftest.$ac_objext
20272 wl=$lt_prog_compiler_wl_CXX
20273 pic_flag=$lt_prog_compiler_pic_CXX
20279 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20280 allow_undefined_flag_CXX=
20281 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20282 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }
20287 archive_cmds_need_lc_CXX=no
20289 archive_cmds_need_lc_CXX=yes
20291 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20293 cat conftest.err 1>&5
20296 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20297 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20304 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20305 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20306 library_names_spec=
20307 libname_spec='lib$name'
20311 postuninstall_cmds=
20315 shlibpath_overrides_runpath=unknown
20317 dynamic_linker="$host_os ld.so"
20318 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20319 if test "$GCC" = yes; then
20320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20321 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20322 # if the path contains ";" then we assume it to be the separator
20323 # otherwise default to the standard path separator (i.e. ":") - it is
20324 # assumed that no part of a normal pathname contains ";" but that should
20325 # okay in the real world where ";" in dirpaths is itself problematic.
20326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20331 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20333 need_lib_prefix=unknown
20334 hardcode_into_libs=no
20336 # when you set need_version to no, make sure it does not cause -set_version
20337 # flags to be left without arguments
20338 need_version=unknown
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20344 shlibpath_var=LIBPATH
20346 # AIX 3 has no versioning support, so we append a major version to the name.
20347 soname_spec='${libname}${release}${shared_ext}$major'
20354 hardcode_into_libs=yes
20355 if test "$host_cpu" = ia64; then
20356 # AIX 5 supports IA64
20357 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20358 shlibpath_var=LD_LIBRARY_PATH
20360 # With GCC up to 2.95.x, collect2 would create an import file
20361 # for dependence libraries. The import file would start with
20362 # the line `#! .'. This would cause the generated library to
20363 # depend on `.', always an invalid library. This was fixed in
20364 # development snapshots of GCC prior to 3.0.
20366 aix4 | aix4.[01] | aix4.[01].*)
20367 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20369 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20372 can_build_shared=no
20376 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20377 # soname into executable. Probably we can add versioning support to
20378 # collect2, so additional links can be useful in future.
20379 if test "$aix_use_runtimelinking" = yes; then
20380 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20381 # instead of lib<name>.a to let people know that these are not
20382 # typical AIX shared libraries.
20383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20385 # We preserve .a as extension for shared libraries through AIX4.2
20386 # and later when we are not doing run time linking.
20387 library_names_spec='${libname}${release}.a $libname.a'
20388 soname_spec='${libname}${release}${shared_ext}$major'
20390 shlibpath_var=LIBPATH
20395 library_names_spec='$libname.ixlibrary $libname.a'
20396 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20397 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'
20401 library_names_spec='${libname}${shared_ext}'
20402 dynamic_linker="$host_os ld.so"
20403 shlibpath_var=LIBRARY_PATH
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410 soname_spec='${libname}${release}${shared_ext}$major'
20411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20412 shlibpath_var=LD_LIBRARY_PATH
20413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20415 # the default ld.so.conf also contains /usr/contrib/lib and
20416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20417 # libtool to hard-code these into programs
20420 cygwin* | mingw* | pw32*)
20421 version_type=windows
20426 case $GCC,$host_os in
20427 yes,cygwin* | yes,mingw* | yes,pw32*)
20428 library_names_spec='$libname.dll.a'
20429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20430 postinstall_cmds='base_file=`basename \${file}`~
20431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20432 dldir=$destdir/`dirname \$dlpath`~
20433 test -d \$dldir || mkdir -p \$dldir~
20434 $install_prog $dir/$dlname \$dldir/$dlname~
20435 chmod a+x \$dldir/$dlname'
20436 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20437 dlpath=$dir/\$dldll~
20439 shlibpath_overrides_runpath=yes
20443 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20444 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20445 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20448 # MinGW DLLs use traditional 'lib' prefix
20449 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20450 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20451 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20452 # It is most probably a Windows format PATH printed by
20453 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20454 # path with ; separators, and with drive letters. We can handle the
20455 # drive letters (cygwin fileutils understands them), so leave them,
20456 # especially as we might pass files found there to a mingw objdump,
20457 # which wouldn't understand a cygwinified path. Ahh.
20458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20460 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20464 # pw32 DLLs use 'pw' prefix rather than 'lib'
20465 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20471 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20474 dynamic_linker='Win32 ld.exe'
20475 # FIXME: first we should search . and the directory the executable is in
20479 darwin* | rhapsody*)
20480 dynamic_linker="$host_os dyld"
20481 version_type=darwin
20484 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20485 soname_spec='${libname}${release}${major}$shared_ext'
20486 shlibpath_overrides_runpath=yes
20487 shlibpath_var=DYLD_LIBRARY_PATH
20488 shrext_cmds='.dylib'
20489 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20490 if test "$GCC" = yes; then
20491 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"`
20493 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20495 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20503 soname_spec='${libname}${release}${shared_ext}$major'
20504 shlibpath_var=LD_LIBRARY_PATH
20515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20516 soname_spec='${libname}${release}${shared_ext}$major'
20517 shlibpath_var=LD_LIBRARY_PATH
20518 shlibpath_overrides_runpath=no
20519 hardcode_into_libs=yes
20520 dynamic_linker='GNU ld.so'
20523 freebsd* | dragonfly*)
20524 # DragonFly does not have aout. When/if they implement a new
20525 # versioning mechanism, adjust this.
20526 if test -x /usr/bin/objformat; then
20527 objformat=`/usr/bin/objformat`
20530 freebsd[123]*) objformat=aout ;;
20531 *) objformat=elf ;;
20534 version_type=freebsd-$objformat
20535 case $version_type in
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20546 shlibpath_var=LD_LIBRARY_PATH
20549 shlibpath_overrides_runpath=yes
20551 freebsd3.[01]* | freebsdelf3.[01]*)
20552 shlibpath_overrides_runpath=yes
20553 hardcode_into_libs=yes
20555 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20556 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20557 shlibpath_overrides_runpath=no
20558 hardcode_into_libs=yes
20560 freebsd*) # from 4.6 on
20561 shlibpath_overrides_runpath=yes
20562 hardcode_into_libs=yes
20571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20572 soname_spec='${libname}${release}${shared_ext}$major'
20573 shlibpath_var=LD_LIBRARY_PATH
20574 hardcode_into_libs=yes
20577 hpux9* | hpux10* | hpux11*)
20578 # Give a soname corresponding to the major version so that dld.sl refuses to
20579 # link against other versions.
20586 hardcode_into_libs=yes
20587 dynamic_linker="$host_os dld.so"
20588 shlibpath_var=LD_LIBRARY_PATH
20589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20591 soname_spec='${libname}${release}${shared_ext}$major'
20592 if test "X$HPUX_IA64_MODE" = X32; then
20593 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20595 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20601 hardcode_into_libs=yes
20602 dynamic_linker="$host_os dld.sl"
20603 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606 soname_spec='${libname}${release}${shared_ext}$major'
20607 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20612 dynamic_linker="$host_os dld.sl"
20613 shlibpath_var=SHLIB_PATH
20614 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 soname_spec='${libname}${release}${shared_ext}$major'
20619 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20620 postinstall_cmds='chmod 555 $lib'
20627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20628 soname_spec='${libname}${release}${shared_ext}$major'
20629 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20630 shlibpath_var=LD_LIBRARY_PATH
20631 shlibpath_overrides_runpath=no
20632 hardcode_into_libs=yes
20635 irix5* | irix6* | nonstopux*)
20637 nonstopux*) version_type=nonstopux ;;
20639 if test "$lt_cv_prog_gnu_ld" = yes; then
20647 soname_spec='${libname}${release}${shared_ext}$major'
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20650 irix5* | nonstopux*)
20651 libsuff= shlibsuff=
20654 case $LD in # libtool.m4 will add one of these switches to LD
20655 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20656 libsuff= shlibsuff= libmagic=32-bit;;
20657 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20658 libsuff=32 shlibsuff=N32 libmagic=N32;;
20659 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20660 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20661 *) libsuff= shlibsuff= libmagic=never-match;;
20665 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20666 shlibpath_overrides_runpath=no
20667 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20668 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20669 hardcode_into_libs=yes
20672 # No shared lib support for Linux oldld, aout, or coff.
20673 linux*oldld* | linux*aout* | linux*coff*)
20677 # This must be Linux ELF.
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20685 shlibpath_var=LD_LIBRARY_PATH
20686 shlibpath_overrides_runpath=no
20687 # This implies no fast_install, which is unacceptable.
20688 # Some rework will be needed to allow for fast_install
20689 # before this can be enabled.
20690 hardcode_into_libs=yes
20692 # Append ld.so.conf contents to the search path
20693 if test -f /etc/ld.so.conf; then
20694 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' ' '`
20695 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20698 # We used to test for /lib/ld.so.1 and disable shared libraries on
20699 # powerpc, because MkLinux only supported shared libraries with the
20700 # GNU dynamic linker. Since this was broken with cross compilers,
20701 # most powerpc-linux boxes support dynamic linking these days and
20702 # people can always --disable-shared, the test was removed, and we
20703 # assume the GNU/Linux dynamic linker is in use.
20704 dynamic_linker='GNU/Linux ld.so'
20711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20712 soname_spec='${libname}${release}${shared_ext}$major'
20713 shlibpath_var=LD_LIBRARY_PATH
20714 shlibpath_overrides_runpath=no
20715 hardcode_into_libs=yes
20716 dynamic_linker='GNU ld.so'
20723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20726 dynamic_linker='NetBSD (a.out) ld.so'
20728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20729 soname_spec='${libname}${release}${shared_ext}$major'
20730 dynamic_linker='NetBSD ld.elf_so'
20732 shlibpath_var=LD_LIBRARY_PATH
20733 shlibpath_overrides_runpath=yes
20734 hardcode_into_libs=yes
20739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20740 shlibpath_var=LD_LIBRARY_PATH
20741 shlibpath_overrides_runpath=yes
20748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20749 soname_spec='${libname}${release}${shared_ext}$major'
20750 shlibpath_var=LD_LIBRARY_PATH
20751 shlibpath_overrides_runpath=yes
20756 sys_lib_dlsearch_path_spec="/usr/lib"
20758 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20760 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20761 *) need_version=no ;;
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20765 shlibpath_var=LD_LIBRARY_PATH
20766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20768 openbsd2.[89] | openbsd2.[89].*)
20769 shlibpath_overrides_runpath=no
20772 shlibpath_overrides_runpath=yes
20776 shlibpath_overrides_runpath=yes
20781 libname_spec='$name'
20784 library_names_spec='$libname${shared_ext} $libname.a'
20785 dynamic_linker='OS/2 ld.exe'
20786 shlibpath_var=LIBPATH
20789 osf3* | osf4* | osf5*)
20793 soname_spec='${libname}${release}${shared_ext}$major'
20794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20795 shlibpath_var=LD_LIBRARY_PATH
20796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20805 soname_spec='${libname}${release}${shared_ext}$major'
20806 shlibpath_var=LD_LIBRARY_PATH
20807 shlibpath_overrides_runpath=yes
20808 hardcode_into_libs=yes
20809 # ldd complains unless libraries are executable
20810 postinstall_cmds='chmod +x $lib'
20815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20816 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20817 shlibpath_var=LD_LIBRARY_PATH
20818 shlibpath_overrides_runpath=yes
20819 if test "$with_gnu_ld" = yes; then
20827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20828 soname_spec='${libname}${release}${shared_ext}$major'
20829 shlibpath_var=LD_LIBRARY_PATH
20830 case $host_vendor in
20832 shlibpath_overrides_runpath=no
20834 export_dynamic_flag_spec='${wl}-Blargedynsym'
20835 runpath_var=LD_RUN_PATH
20843 shlibpath_overrides_runpath=no
20844 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20850 if test -d /usr/nec ;then
20852 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20853 soname_spec='$libname${shared_ext}.$major'
20854 shlibpath_var=LD_LIBRARY_PATH
20858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20859 version_type=freebsd-elf
20862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20863 soname_spec='${libname}${release}${shared_ext}$major'
20864 shlibpath_var=LD_LIBRARY_PATH
20865 hardcode_into_libs=yes
20866 if test "$with_gnu_ld" = yes; then
20867 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20868 shlibpath_overrides_runpath=no
20870 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20871 shlibpath_overrides_runpath=yes
20874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20878 sys_lib_dlsearch_path_spec='/usr/lib'
20883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 soname_spec='${libname}${release}${shared_ext}$major'
20885 shlibpath_var=LD_LIBRARY_PATH
20892 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20893 echo "${ECHO_T}$dynamic_linker" >&6; }
20894 test "$dynamic_linker" = no && can_build_shared=no
20896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20897 if test "$GCC" = yes; then
20898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20901 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20902 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20903 hardcode_action_CXX=
20904 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20905 test -n "$runpath_var_CXX" || \
20906 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20908 # We can hardcode non-existant directories.
20909 if test "$hardcode_direct_CXX" != no &&
20910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20911 # have to relink, otherwise we might link with an installed library
20912 # when we should be linking with a yet-to-be-installed one
20913 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20914 test "$hardcode_minus_L_CXX" != no; then
20915 # Linking always hardcodes the temporary library directory.
20916 hardcode_action_CXX=relink
20918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20919 hardcode_action_CXX=immediate
20922 # We cannot hardcode anything, or else we can only hardcode existing
20924 hardcode_action_CXX=unsupported
20926 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20927 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20929 if test "$hardcode_action_CXX" = relink; then
20930 # Fast installation is not supported
20931 enable_fast_install=no
20932 elif test "$shlibpath_overrides_runpath" = yes ||
20933 test "$enable_shared" = no; then
20934 # Fast installation is not necessary
20935 enable_fast_install=needless
20939 # The else clause should only fire when bootstrapping the
20940 # libtool distribution, otherwise you forgot to ship ltmain.sh
20941 # with your package, and you will get complaints that there are
20942 # no rules to generate ltmain.sh.
20943 if test -f "$ltmain"; then
20944 # See if we are running on zsh, and set the options which allow our commands through
20945 # without removal of \ escapes.
20946 if test -n "${ZSH_VERSION+set}" ; then
20947 setopt NO_GLOB_SUBST
20949 # Now quote all the things that may contain metacharacters while being
20950 # careful not to overquote the AC_SUBSTed values. We take copies of the
20951 # variables and quote the copies for generation of the libtool script.
20952 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20954 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20955 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20956 deplibs_check_method reload_flag reload_cmds need_locks \
20957 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20958 lt_cv_sys_global_symbol_to_c_name_address \
20959 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20960 old_postinstall_cmds old_postuninstall_cmds \
20964 lt_prog_compiler_wl_CXX \
20965 lt_prog_compiler_pic_CXX \
20966 lt_prog_compiler_static_CXX \
20967 lt_prog_compiler_no_builtin_flag_CXX \
20968 export_dynamic_flag_spec_CXX \
20969 thread_safe_flag_spec_CXX \
20970 whole_archive_flag_spec_CXX \
20971 enable_shared_with_static_runtimes_CXX \
20972 old_archive_cmds_CXX \
20973 old_archive_from_new_cmds_CXX \
20974 predep_objects_CXX \
20975 postdep_objects_CXX \
20978 compiler_lib_search_path_CXX \
20980 archive_expsym_cmds_CXX \
20981 postinstall_cmds_CXX \
20982 postuninstall_cmds_CXX \
20983 old_archive_from_expsyms_cmds_CXX \
20984 allow_undefined_flag_CXX \
20985 no_undefined_flag_CXX \
20986 export_symbols_cmds_CXX \
20987 hardcode_libdir_flag_spec_CXX \
20988 hardcode_libdir_flag_spec_ld_CXX \
20989 hardcode_libdir_separator_CXX \
20990 hardcode_automatic_CXX \
20992 module_expsym_cmds_CXX \
20993 lt_cv_prog_compiler_c_o_CXX \
20994 exclude_expsyms_CXX \
20995 include_expsyms_CXX; do
20998 old_archive_cmds_CXX | \
20999 old_archive_from_new_cmds_CXX | \
21000 archive_cmds_CXX | \
21001 archive_expsym_cmds_CXX | \
21002 module_cmds_CXX | \
21003 module_expsym_cmds_CXX | \
21004 old_archive_from_expsyms_cmds_CXX | \
21005 export_symbols_cmds_CXX | \
21006 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21007 postinstall_cmds | postuninstall_cmds | \
21008 old_postinstall_cmds | old_postuninstall_cmds | \
21009 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21010 # Double-quote double-evaled strings.
21011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21020 *'\$0 --fallback-echo"')
21021 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21027 cat <<__EOF__ >> "$cfgfile"
21028 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21030 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21032 # Shell to use when invoking shell scripts.
21035 # Whether or not to build shared libraries.
21036 build_libtool_libs=$enable_shared
21038 # Whether or not to build static libraries.
21039 build_old_libs=$enable_static
21041 # Whether or not to add -lc for building shared libraries.
21042 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21044 # Whether or not to disallow shared libs when runtime libs are static
21045 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21047 # Whether or not to optimize for fast installation.
21048 fast_install=$enable_fast_install
21051 host_alias=$host_alias
21055 # The build system.
21056 build_alias=$build_alias
21060 # An echo program that does not interpret backslashes.
21065 AR_FLAGS=$lt_AR_FLAGS
21070 # LTCC compiler flags.
21071 LTCFLAGS=$lt_LTCFLAGS
21073 # A language-specific compiler.
21074 CC=$lt_compiler_CXX
21076 # Is the compiler the GNU C compiler?
21082 # The linker used to build libraries.
21085 # Whether we need hard or soft links.
21088 # A BSD-compatible nm program.
21091 # A symbol stripping program
21094 # Used to examine libraries when file_magic_cmd begins "file"
21095 MAGIC_CMD=$MAGIC_CMD
21097 # Used on cygwin: DLL creation program.
21100 # Used on cygwin: object dumper.
21103 # Used on cygwin: assembler.
21106 # The name of the directory that contains temporary libtool files.
21109 # How to create reloadable object files.
21110 reload_flag=$lt_reload_flag
21111 reload_cmds=$lt_reload_cmds
21113 # How to pass a linker flag through the compiler.
21114 wl=$lt_lt_prog_compiler_wl_CXX
21116 # Object file suffix (normally "o").
21117 objext="$ac_objext"
21119 # Old archive suffix (normally "a").
21122 # Shared library suffix (normally ".so").
21123 shrext_cmds='$shrext_cmds'
21125 # Executable file suffix (normally "").
21128 # Additional compiler flags for building library objects.
21129 pic_flag=$lt_lt_prog_compiler_pic_CXX
21132 # What is the maximum length of a command?
21133 max_cmd_len=$lt_cv_sys_max_cmd_len
21135 # Does compiler simultaneously support -c and -o options?
21136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21138 # Must we lock files when doing compilation?
21139 need_locks=$lt_need_locks
21141 # Do we need the lib prefix for modules?
21142 need_lib_prefix=$need_lib_prefix
21144 # Do we need a version for libraries?
21145 need_version=$need_version
21147 # Whether dlopen is supported.
21148 dlopen_support=$enable_dlopen
21150 # Whether dlopen of programs is supported.
21151 dlopen_self=$enable_dlopen_self
21153 # Whether dlopen of statically linked programs is supported.
21154 dlopen_self_static=$enable_dlopen_self_static
21156 # Compiler flag to prevent dynamic linking.
21157 link_static_flag=$lt_lt_prog_compiler_static_CXX
21159 # Compiler flag to turn off builtin functions.
21160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21162 # Compiler flag to allow reflexive dlopens.
21163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21165 # Compiler flag to generate shared objects directly from archives.
21166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21168 # Compiler flag to generate thread-safe objects.
21169 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21171 # Library versioning type.
21172 version_type=$version_type
21174 # Format of library name prefix.
21175 libname_spec=$lt_libname_spec
21177 # List of archive names. First name is the real one, the rest are links.
21178 # The last name is the one that the linker finds with -lNAME.
21179 library_names_spec=$lt_library_names_spec
21181 # The coded name of the library, if different from the real name.
21182 soname_spec=$lt_soname_spec
21184 # Commands used to build and install an old-style archive.
21186 old_archive_cmds=$lt_old_archive_cmds_CXX
21187 old_postinstall_cmds=$lt_old_postinstall_cmds
21188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21190 # Create an old-style archive from a shared archive.
21191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21193 # Create a temporary old-style archive to link instead of a shared archive.
21194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21196 # Commands used to build and install a shared archive.
21197 archive_cmds=$lt_archive_cmds_CXX
21198 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21199 postinstall_cmds=$lt_postinstall_cmds
21200 postuninstall_cmds=$lt_postuninstall_cmds
21202 # Commands used to build a loadable module (assumed same as above if empty)
21203 module_cmds=$lt_module_cmds_CXX
21204 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21206 # Commands to strip libraries.
21207 old_striplib=$lt_old_striplib
21208 striplib=$lt_striplib
21210 # Dependencies to place before the objects being linked to create a
21212 predep_objects=$lt_predep_objects_CXX
21214 # Dependencies to place after the objects being linked to create a
21216 postdep_objects=$lt_postdep_objects_CXX
21218 # Dependencies to place before the objects being linked to create a
21220 predeps=$lt_predeps_CXX
21222 # Dependencies to place after the objects being linked to create a
21224 postdeps=$lt_postdeps_CXX
21226 # The library search path used internally by the compiler when linking
21227 # a shared library.
21228 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21230 # Method to check whether dependent libraries are shared objects.
21231 deplibs_check_method=$lt_deplibs_check_method
21233 # Command to use when deplibs_check_method == file_magic.
21234 file_magic_cmd=$lt_file_magic_cmd
21236 # Flag that allows shared libraries with undefined symbols to be built.
21237 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21239 # Flag that forces no undefined symbols.
21240 no_undefined_flag=$lt_no_undefined_flag_CXX
21242 # Commands used to finish a libtool library installation in a directory.
21243 finish_cmds=$lt_finish_cmds
21245 # Same as above, but a single script fragment to be evaled but not shown.
21246 finish_eval=$lt_finish_eval
21248 # Take the output of nm and produce a listing of raw symbols and C names.
21249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21251 # Transform the output of nm in a proper C declaration
21252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21254 # Transform the output of nm in a C name address pair
21255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21257 # This is the shared library runtime path variable.
21258 runpath_var=$runpath_var
21260 # This is the shared library path variable.
21261 shlibpath_var=$shlibpath_var
21263 # Is shlibpath searched before the hard-coded library search path?
21264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21266 # How to hardcode a shared library path into an executable.
21267 hardcode_action=$hardcode_action_CXX
21269 # Whether we should hardcode library paths into libraries.
21270 hardcode_into_libs=$hardcode_into_libs
21272 # Flag to hardcode \$libdir into a binary during linking.
21273 # This must work even if \$libdir does not exist.
21274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21276 # If ld is used when linking, flag to hardcode \$libdir into
21277 # a binary during linking. This must work even if \$libdir does
21279 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21281 # Whether we need a single -rpath flag with a separated argument.
21282 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21284 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21285 # resulting binary.
21286 hardcode_direct=$hardcode_direct_CXX
21288 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21289 # resulting binary.
21290 hardcode_minus_L=$hardcode_minus_L_CXX
21292 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21293 # the resulting binary.
21294 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21296 # Set to yes if building a shared library automatically hardcodes DIR into the library
21297 # and all subsequent libraries and executables linked against it.
21298 hardcode_automatic=$hardcode_automatic_CXX
21300 # Variables whose values should be saved in libtool wrapper scripts and
21301 # restored at relink time.
21302 variables_saved_for_relink="$variables_saved_for_relink"
21304 # Whether libtool must link a program against all its dependency libraries.
21305 link_all_deplibs=$link_all_deplibs_CXX
21307 # Compile-time system search path for libraries
21308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21310 # Run-time system search path for libraries
21311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21313 # Fix the shell variable \$srcfile for the compiler.
21314 fix_srcfile_path="$fix_srcfile_path_CXX"
21316 # Set to yes if exported symbols are required.
21317 always_export_symbols=$always_export_symbols_CXX
21319 # The commands to list exported symbols.
21320 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21322 # The commands to extract the exported symbol list from a shared archive.
21323 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21325 # Symbols that should not be listed in the preloaded symbols.
21326 exclude_expsyms=$lt_exclude_expsyms_CXX
21328 # Symbols that must always be exported.
21329 include_expsyms=$lt_include_expsyms_CXX
21331 # ### END LIBTOOL TAG CONFIG: $tagname
21337 # If there is no Makefile yet, we rely on a make rule to execute
21338 # `config.status --recheck' to rerun these tests and create the
21339 # libtool script then.
21340 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21341 if test -f "$ltmain_in"; then
21342 test -f Makefile && make "$ltmain"
21348 ac_cpp='$CPP $CPPFLAGS'
21349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21357 with_gnu_ldcxx=$with_gnu_ld
21358 with_gnu_ld=$lt_save_with_gnu_ld
21359 lt_cv_path_LDCXX=$lt_cv_path_LD
21360 lt_cv_path_LD=$lt_save_path_LD
21361 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21362 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21370 if test -n "$F77" && test "X$F77" != "Xno"; then
21373 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21374 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21378 archive_cmds_need_lc_F77=no
21379 allow_undefined_flag_F77=
21380 always_export_symbols_F77=no
21381 archive_expsym_cmds_F77=
21382 export_dynamic_flag_spec_F77=
21383 hardcode_direct_F77=no
21384 hardcode_libdir_flag_spec_F77=
21385 hardcode_libdir_flag_spec_ld_F77=
21386 hardcode_libdir_separator_F77=
21387 hardcode_minus_L_F77=no
21388 hardcode_automatic_F77=no
21390 module_expsym_cmds_F77=
21391 link_all_deplibs_F77=unknown
21392 old_archive_cmds_F77=$old_archive_cmds
21393 no_undefined_flag_F77=
21394 whole_archive_flag_spec_F77=
21395 enable_shared_with_static_runtimes_F77=no
21397 # Source file extension for f77 test sources.
21400 # Object file extension for compiled f77 test sources.
21404 # Code to be used in simple compile tests
21405 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21407 # Code to be used in simple link tests
21408 lt_simple_link_test_code=" program t\n end\n"
21410 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21412 # If no C compiler was specified, use CC.
21415 # If no C compiler flags were specified, use CFLAGS.
21416 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21418 # Allow CC to be a program name with arguments.
21422 # save warnings/boilerplate of simple test code
21423 ac_outfile=conftest.$ac_objext
21424 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21425 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21426 _lt_compiler_boilerplate=`cat conftest.err`
21429 ac_outfile=conftest.$ac_objext
21430 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21431 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21432 _lt_linker_boilerplate=`cat conftest.err`
21436 # Allow CC to be a program name with arguments.
21441 for cc_temp in $compiler""; do
21443 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21444 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21449 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21452 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21453 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21454 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21455 echo "${ECHO_T}$can_build_shared" >&6; }
21457 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21458 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21459 test "$can_build_shared" = "no" && enable_shared=no
21461 # On AIX, shared libraries and static libraries use the same namespace, and
21462 # are all built from PIC.
21465 test "$enable_shared" = yes && enable_static=no
21466 if test -n "$RANLIB"; then
21467 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21468 postinstall_cmds='$RANLIB $lib'
21472 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21473 test "$enable_shared" = yes && enable_static=no
21477 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21478 echo "${ECHO_T}$enable_shared" >&6; }
21480 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21481 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21482 # Make sure either enable_shared or enable_static is yes.
21483 test "$enable_shared" = yes || enable_static=yes
21484 { echo "$as_me:$LINENO: result: $enable_static" >&5
21485 echo "${ECHO_T}$enable_static" >&6; }
21490 lt_prog_compiler_wl_F77=
21491 lt_prog_compiler_pic_F77=
21492 lt_prog_compiler_static_F77=
21494 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21495 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21497 if test "$GCC" = yes; then
21498 lt_prog_compiler_wl_F77='-Wl,'
21499 lt_prog_compiler_static_F77='-static'
21503 # All AIX code is PIC.
21504 if test "$host_cpu" = ia64; then
21505 # AIX 5 now supports IA64 processor
21506 lt_prog_compiler_static_F77='-Bstatic'
21511 # FIXME: we need at least 68020 code to build shared libraries, but
21512 # adding the `-m68020' flag to GCC prevents building anything better,
21514 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21517 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21518 # PIC is the default for these OSes.
21521 mingw* | pw32* | os2*)
21522 # This hack is so that the source file can tell whether it is being
21523 # built for inclusion in a dll (and should export symbols for example).
21524 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21527 darwin* | rhapsody*)
21528 # PIC is the default on this platform
21529 # Common symbols not allowed in MH_DYLIB files
21530 lt_prog_compiler_pic_F77='-fno-common'
21534 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21535 # Instead, we relocate shared libraries at runtime.
21539 # Just because we use GCC doesn't mean we suddenly get shared libraries
21540 # on systems that don't support them.
21541 lt_prog_compiler_can_build_shared_F77=no
21546 if test -d /usr/nec; then
21547 lt_prog_compiler_pic_F77=-Kconform_pic
21552 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21553 # not for PA HP-UX.
21559 lt_prog_compiler_pic_F77='-fPIC'
21565 lt_prog_compiler_pic_F77='-fPIC'
21569 # PORTME Check for flag to pass linker flags through the system compiler.
21572 lt_prog_compiler_wl_F77='-Wl,'
21573 if test "$host_cpu" = ia64; then
21574 # AIX 5 now supports IA64 processor
21575 lt_prog_compiler_static_F77='-Bstatic'
21577 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21581 # PIC is the default on this platform
21582 # Common symbols not allowed in MH_DYLIB files
21583 case $cc_basename in
21585 lt_prog_compiler_pic_F77='-qnocommon'
21586 lt_prog_compiler_wl_F77='-Wl,'
21591 mingw* | pw32* | os2*)
21592 # This hack is so that the source file can tell whether it is being
21593 # built for inclusion in a dll (and should export symbols for example).
21594 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21597 hpux9* | hpux10* | hpux11*)
21598 lt_prog_compiler_wl_F77='-Wl,'
21599 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21600 # not for PA HP-UX.
21606 lt_prog_compiler_pic_F77='+Z'
21609 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21610 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21613 irix5* | irix6* | nonstopux*)
21614 lt_prog_compiler_wl_F77='-Wl,'
21615 # PIC (with -KPIC) is the default.
21616 lt_prog_compiler_static_F77='-non_shared'
21620 lt_prog_compiler_pic_F77='-KPIC'
21621 lt_prog_compiler_static_F77='-Bstatic'
21625 case $cc_basename in
21627 lt_prog_compiler_wl_F77='-Wl,'
21628 lt_prog_compiler_pic_F77='-KPIC'
21629 lt_prog_compiler_static_F77='-static'
21631 pgcc* | pgf77* | pgf90* | pgf95*)
21632 # Portland Group compilers (*not* the Pentium gcc compiler,
21633 # which looks to be a dead project)
21634 lt_prog_compiler_wl_F77='-Wl,'
21635 lt_prog_compiler_pic_F77='-fpic'
21636 lt_prog_compiler_static_F77='-Bstatic'
21639 lt_prog_compiler_wl_F77='-Wl,'
21640 # All Alpha code is PIC.
21641 lt_prog_compiler_static_F77='-non_shared'
21646 osf3* | osf4* | osf5*)
21647 lt_prog_compiler_wl_F77='-Wl,'
21648 # All OSF/1 code is PIC.
21649 lt_prog_compiler_static_F77='-non_shared'
21653 lt_prog_compiler_pic_F77='-KPIC'
21654 lt_prog_compiler_static_F77='-Bstatic'
21655 case $cc_basename in
21656 f77* | f90* | f95*)
21657 lt_prog_compiler_wl_F77='-Qoption ld ';;
21659 lt_prog_compiler_wl_F77='-Wl,';;
21664 lt_prog_compiler_wl_F77='-Qoption ld '
21665 lt_prog_compiler_pic_F77='-PIC'
21666 lt_prog_compiler_static_F77='-Bstatic'
21669 sysv4 | sysv4.2uw2* | sysv4.3*)
21670 lt_prog_compiler_wl_F77='-Wl,'
21671 lt_prog_compiler_pic_F77='-KPIC'
21672 lt_prog_compiler_static_F77='-Bstatic'
21676 if test -d /usr/nec ;then
21677 lt_prog_compiler_pic_F77='-Kconform_pic'
21678 lt_prog_compiler_static_F77='-Bstatic'
21682 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21683 lt_prog_compiler_wl_F77='-Wl,'
21684 lt_prog_compiler_pic_F77='-KPIC'
21685 lt_prog_compiler_static_F77='-Bstatic'
21689 lt_prog_compiler_wl_F77='-Wl,'
21690 lt_prog_compiler_can_build_shared_F77=no
21694 lt_prog_compiler_pic_F77='-pic'
21695 lt_prog_compiler_static_F77='-Bstatic'
21699 lt_prog_compiler_can_build_shared_F77=no
21704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21705 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21708 # Check to make sure the PIC flag actually works.
21710 if test -n "$lt_prog_compiler_pic_F77"; then
21712 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21714 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 lt_prog_compiler_pic_works_F77=no
21718 ac_outfile=conftest.$ac_objext
21719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21720 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21721 # Insert the option either (1) after the last *FLAGS variable, or
21722 # (2) before a word containing "conftest.", or (3) at the end.
21723 # Note that $ac_compile itself does not contain backslashes and begins
21724 # with a dollar sign (not a hyphen), so the echo should work correctly.
21725 # The option is referenced via a variable to avoid confusing sed.
21726 lt_compile=`echo "$ac_compile" | $SED \
21727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21729 -e 's:$: $lt_compiler_flag:'`
21730 (eval echo "\"\$as_me:21730: $lt_compile\"" >&5)
21731 (eval "$lt_compile" 2>conftest.err)
21733 cat conftest.err >&5
21734 echo "$as_me:21734: \$? = $ac_status" >&5
21735 if (exit $ac_status) && test -s "$ac_outfile"; then
21736 # The compiler can only warn and ignore the option if not recognized
21737 # So say no if there are warnings other than the usual output.
21738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21741 lt_prog_compiler_pic_works_F77=yes
21747 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21748 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21750 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21751 case $lt_prog_compiler_pic_F77 in
21753 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21756 lt_prog_compiler_pic_F77=
21757 lt_prog_compiler_can_build_shared_F77=no
21762 # For platforms which do not support PIC, -DPIC is meaningless:
21764 lt_prog_compiler_pic_F77=
21767 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21772 # Check to make sure the static flag actually works.
21774 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21775 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21776 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21777 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 lt_prog_compiler_static_works_F77=no
21781 save_LDFLAGS="$LDFLAGS"
21782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21783 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21785 # The linker can only warn and ignore the option if not recognized
21786 # So say no if there are warnings
21787 if test -s conftest.err; then
21788 # Append any errors to the config.log.
21789 cat conftest.err 1>&5
21790 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21792 if diff conftest.exp conftest.er2 >/dev/null; then
21793 lt_prog_compiler_static_works_F77=yes
21796 lt_prog_compiler_static_works_F77=yes
21800 LDFLAGS="$save_LDFLAGS"
21803 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21804 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21806 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21809 lt_prog_compiler_static_F77=
21813 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21814 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21815 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21818 lt_cv_prog_compiler_c_o_F77=no
21819 $rm -r conftest 2>/dev/null
21823 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21825 lt_compiler_flag="-o out/conftest2.$ac_objext"
21826 # Insert the option either (1) after the last *FLAGS variable, or
21827 # (2) before a word containing "conftest.", or (3) at the end.
21828 # Note that $ac_compile itself does not contain backslashes and begins
21829 # with a dollar sign (not a hyphen), so the echo should work correctly.
21830 lt_compile=`echo "$ac_compile" | $SED \
21831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21833 -e 's:$: $lt_compiler_flag:'`
21834 (eval echo "\"\$as_me:21834: $lt_compile\"" >&5)
21835 (eval "$lt_compile" 2>out/conftest.err)
21837 cat out/conftest.err >&5
21838 echo "$as_me:21838: \$? = $ac_status" >&5
21839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21841 # The compiler can only warn and ignore the option if not recognized
21842 # So say no if there are warnings
21843 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21846 lt_cv_prog_compiler_c_o_F77=yes
21851 # SGI C++ compiler will create directory out/ii_files/ for
21852 # template instantiation
21853 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21854 $rm out/* && rmdir out
21860 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21861 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21864 hard_links="nottested"
21865 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21866 # do not overwrite the value of need_locks provided by the user
21867 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21868 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21873 ln conftest.a conftest.b 2>&5 || hard_links=no
21874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21875 { echo "$as_me:$LINENO: result: $hard_links" >&5
21876 echo "${ECHO_T}$hard_links" >&6; }
21877 if test "$hard_links" = no; then
21878 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21879 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21886 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21887 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21890 allow_undefined_flag_F77=
21891 enable_shared_with_static_runtimes_F77=no
21893 archive_expsym_cmds_F77=
21894 old_archive_From_new_cmds_F77=
21895 old_archive_from_expsyms_cmds_F77=
21896 export_dynamic_flag_spec_F77=
21897 whole_archive_flag_spec_F77=
21898 thread_safe_flag_spec_F77=
21899 hardcode_libdir_flag_spec_F77=
21900 hardcode_libdir_flag_spec_ld_F77=
21901 hardcode_libdir_separator_F77=
21902 hardcode_direct_F77=no
21903 hardcode_minus_L_F77=no
21904 hardcode_shlibpath_var_F77=unsupported
21905 link_all_deplibs_F77=unknown
21906 hardcode_automatic_F77=no
21908 module_expsym_cmds_F77=
21909 always_export_symbols_F77=no
21910 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21911 # include_expsyms should be a list of space-separated symbols to be *always*
21912 # included in the symbol list
21913 include_expsyms_F77=
21914 # exclude_expsyms can be an extended regexp of symbols to exclude
21915 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21916 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21917 # as well as any symbol that contains `d'.
21918 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21919 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21920 # platforms (ab)use it in PIC code, but their linkers get confused if
21921 # the symbol is explicitly referenced. Since portable code cannot
21922 # rely on this symbol name, it's probably fine to never include it in
21923 # preloaded symbol tables.
21924 extract_expsyms_cmds=
21925 # Just being paranoid about ensuring that cc_basename is set.
21926 for cc_temp in $compiler""; do
21928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21934 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21937 cygwin* | mingw* | pw32*)
21938 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21939 # When not using gcc, we currently assume that we are using
21940 # Microsoft Visual C++.
21941 if test "$GCC" != yes; then
21946 # we just hope/assume this is gcc and not c89 (= MSVC++)
21955 if test "$with_gnu_ld" = yes; then
21956 # If archive_cmds runs LD, not CC, wlarc should be empty
21959 # Set some defaults for GNU ld with shared library support. These
21960 # are reset later if shared libraries are not supported. Putting them
21961 # here allows them to be overridden if necessary.
21962 runpath_var=LD_RUN_PATH
21963 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21964 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21965 # ancient GNU ld didn't support --whole-archive et. al.
21966 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21967 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21969 whole_archive_flag_spec_F77=
21971 supports_anon_versioning=no
21972 case `$LD -v 2>/dev/null` in
21973 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21974 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21975 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21976 *\ 2.11.*) ;; # other 2.11 versions
21977 *) supports_anon_versioning=yes ;;
21980 # See if GNU ld supports shared libraries.
21982 aix3* | aix4* | aix5*)
21983 # On AIX/PPC, the GNU linker is very broken
21984 if test "$host_cpu" != ia64; then
21988 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21989 *** to be unable to reliably create shared libraries on AIX.
21990 *** Therefore, libtool is disabling shared libraries support. If you
21991 *** really care for shared libraries, you may want to modify your PATH
21992 *** so that a non-GNU linker is found, and then restart.
21999 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)'
22000 hardcode_libdir_flag_spec_F77='-L$libdir'
22001 hardcode_minus_L_F77=yes
22003 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22004 # that the semantics of dynamic libraries on AmigaOS, at least up
22005 # to version 4, is to share data among multiple programs linked
22006 # with the same dynamic library. Since this doesn't match the
22007 # behavior of shared libraries on other platforms, we can't use
22013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22014 allow_undefined_flag_F77=unsupported
22015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22016 # support --undefined. This deserves some investigation. FIXME
22017 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22023 cygwin* | mingw* | pw32*)
22024 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22025 # as there is no search path for DLLs.
22026 hardcode_libdir_flag_spec_F77='-L$libdir'
22027 allow_undefined_flag_F77=unsupported
22028 always_export_symbols_F77=no
22029 enable_shared_with_static_runtimes_F77=yes
22030 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22032 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22033 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22034 # If the export-symbols file already is a .def file (1st line
22035 # is EXPORTS), use it as is; otherwise, prepend...
22036 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22037 cp $export_symbols $output_objdir/$soname.def;
22039 echo EXPORTS > $output_objdir/$soname.def;
22040 cat $export_symbols >> $output_objdir/$soname.def;
22042 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22049 hardcode_direct_F77=no
22050 hardcode_shlibpath_var_F77=no
22051 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22052 export_dynamic_flag_spec_F77='${wl}-E'
22053 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22054 # Instead, shared libraries are loaded at an image base (0x10000000 by
22055 # default) and relocated if they conflict, which is a slow very memory
22056 # consuming and fragmenting process. To avoid this, we pick a random,
22057 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22058 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22059 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'
22060 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'
22064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22066 case $cc_basename,$host_cpu in
22067 pgcc*) # Portland Group C compiler
22068 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'
22069 tmp_addflag=' $pic_flag'
22071 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22072 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'
22073 tmp_addflag=' $pic_flag -Mnomain' ;;
22074 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22075 tmp_addflag=' -i_dynamic' ;;
22076 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22077 tmp_addflag=' -i_dynamic -nofor_main' ;;
22078 ifc* | ifort*) # Intel Fortran compiler
22079 tmp_addflag=' -nofor_main' ;;
22081 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22083 if test $supports_anon_versioning = yes; then
22084 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22086 $echo "local: *; };" >> $output_objdir/$libname.ver~
22087 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22096 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22099 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22100 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22105 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22109 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22110 *** create shared libraries on Solaris systems. Therefore, libtool
22111 *** is disabling shared libraries support. We urge you to upgrade GNU
22112 *** binutils to release 2.9.1 or newer. Another option is to modify
22113 *** your PATH or compiler configuration so that the native linker is
22114 *** used, and then restart.
22117 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22118 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22119 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22126 case `$LD -v 2>&1` in
22127 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22131 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22132 *** reliably create shared libraries on SCO systems. Therefore, libtool
22133 *** is disabling shared libraries support. We urge you to upgrade GNU
22134 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22135 *** your PATH or compiler configuration so that the native linker is
22136 *** used, and then restart.
22141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22142 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22143 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22144 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22153 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22155 hardcode_direct_F77=yes
22156 hardcode_shlibpath_var_F77=no
22160 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22161 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22162 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22169 if test "$ld_shlibs_F77" = no; then
22171 hardcode_libdir_flag_spec_F77=
22172 export_dynamic_flag_spec_F77=
22173 whole_archive_flag_spec_F77=
22176 # PORTME fill in a description of your system's linker (not GNU ld)
22179 allow_undefined_flag_F77=unsupported
22180 always_export_symbols_F77=yes
22181 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'
22182 # Note: this linker hardcodes the directories in LIBPATH if there
22183 # are no directories specified by -L.
22184 hardcode_minus_L_F77=yes
22185 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22186 # Neither direct hardcoding nor static linking is supported with a
22188 hardcode_direct_F77=unsupported
22193 if test "$host_cpu" = ia64; then
22194 # On IA64, the linker does run time linking by default, so we don't
22195 # have to do anything special.
22196 aix_use_runtimelinking=no
22197 exp_sym_flag='-Bexport'
22200 # If we're using GNU nm, then we don't want the "-C" option.
22201 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22202 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22203 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'
22205 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'
22207 aix_use_runtimelinking=no
22209 # Test if we are trying to use run time linking or normal
22210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22211 # need to do runtime linking.
22212 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22213 for ld_flag in $LDFLAGS; do
22214 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22215 aix_use_runtimelinking=yes
22222 exp_sym_flag='-bexport'
22223 no_entry_flag='-bnoentry'
22226 # When large executables or shared objects are built, AIX ld can
22227 # have problems creating the table of contents. If linking a library
22228 # or program results in "error TOC overflow" add -mminimal-toc to
22229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22232 archive_cmds_F77=''
22233 hardcode_direct_F77=yes
22234 hardcode_libdir_separator_F77=':'
22235 link_all_deplibs_F77=yes
22237 if test "$GCC" = yes; then
22238 case $host_os in aix4.[012]|aix4.[012].*)
22239 # We only want to do this on AIX 4.2 and lower, the check
22240 # below for broken collect2 doesn't work under 4.3+
22241 collect2name=`${CC} -print-prog-name=collect2`
22242 if test -f "$collect2name" && \
22243 strings "$collect2name" | grep resolve_lib_name >/dev/null
22245 # We have reworked collect2
22246 hardcode_direct_F77=yes
22248 # We have old collect2
22249 hardcode_direct_F77=unsupported
22250 # It fails to find uninstalled libraries when the uninstalled
22251 # path is not listed in the libpath. Setting hardcode_minus_L
22252 # to unsupported forces relinking
22253 hardcode_minus_L_F77=yes
22254 hardcode_libdir_flag_spec_F77='-L$libdir'
22255 hardcode_libdir_separator_F77=
22259 shared_flag='-shared'
22260 if test "$aix_use_runtimelinking" = yes; then
22261 shared_flag="$shared_flag "'${wl}-G'
22265 if test "$host_cpu" = ia64; then
22266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22267 # chokes on -Wl,-G. The following line is correct:
22270 if test "$aix_use_runtimelinking" = yes; then
22271 shared_flag='${wl}-G'
22273 shared_flag='${wl}-bM:SRE'
22278 # It seems that -bexpall does not export symbols beginning with
22279 # underscore (_), so it is better to generate a list of symbols to export.
22280 always_export_symbols_F77=yes
22281 if test "$aix_use_runtimelinking" = yes; then
22282 # Warning - without using the other runtime loading flags (-brtl),
22283 # -berok will link without error, but may produce a broken library.
22284 allow_undefined_flag_F77='-berok'
22285 # Determine the default libpath from the value encoded in an empty executable.
22286 cat >conftest.$ac_ext <<_ACEOF
22291 rm -f conftest.$ac_objext conftest$ac_exeext
22292 if { (ac_try="$ac_link"
22293 case "(($ac_try" in
22294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295 *) ac_try_echo=$ac_try;;
22297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22298 (eval "$ac_link") 2>conftest.er1
22300 grep -v '^ *+' conftest.er1 >conftest.err
22302 cat conftest.err >&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } &&
22305 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22306 { (case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311 (eval "$ac_try") 2>&5
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); }; } &&
22315 { ac_try='test -s conftest$ac_exeext'
22316 { (case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_try") 2>&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); }; }; then
22326 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22328 # Check for a 64-bit object if we didn't find anything.
22329 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; }
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22338 rm -f core conftest.err conftest.$ac_objext \
22339 conftest$ac_exeext conftest.$ac_ext
22340 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22342 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22343 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"
22345 if test "$host_cpu" = ia64; then
22346 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22347 allow_undefined_flag_F77="-z nodefs"
22348 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"
22350 # Determine the default libpath from the value encoded in an empty executable.
22351 cat >conftest.$ac_ext <<_ACEOF
22356 rm -f conftest.$ac_objext conftest$ac_exeext
22357 if { (ac_try="$ac_link"
22358 case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_link") 2>conftest.er1
22365 grep -v '^ *+' conftest.er1 >conftest.err
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } &&
22370 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22371 { (case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_try") 2>&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; } &&
22380 { ac_try='test -s conftest$ac_exeext'
22381 { (case "(($ac_try" in
22382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383 *) ac_try_echo=$ac_try;;
22385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22386 (eval "$ac_try") 2>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }; then
22391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22393 # Check for a 64-bit object if we didn't find anything.
22394 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; }
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22403 rm -f core conftest.err conftest.$ac_objext \
22404 conftest$ac_exeext conftest.$ac_ext
22405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22407 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22408 # Warning - without using the other run time loading flags,
22409 # -berok will link without error, but may produce a broken library.
22410 no_undefined_flag_F77=' ${wl}-bernotok'
22411 allow_undefined_flag_F77=' ${wl}-berok'
22412 # Exported symbols can be pulled into shared objects from archives
22413 whole_archive_flag_spec_F77='$convenience'
22414 archive_cmds_need_lc_F77=yes
22415 # This is similar to how AIX traditionally builds its shared libraries.
22416 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'
22422 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)'
22423 hardcode_libdir_flag_spec_F77='-L$libdir'
22424 hardcode_minus_L_F77=yes
22425 # see comment about different semantics on the GNU ld section
22430 export_dynamic_flag_spec_F77=-rdynamic
22433 cygwin* | mingw* | pw32*)
22434 # When not using gcc, we currently assume that we are using
22435 # Microsoft Visual C++.
22436 # hardcode_libdir_flag_spec is actually meaningless, as there is
22437 # no search path for DLLs.
22438 hardcode_libdir_flag_spec_F77=' '
22439 allow_undefined_flag_F77=unsupported
22440 # Tell ltmain to make .lib files, not .a files.
22442 # Tell ltmain to make .dll files, not .so files.
22444 # FIXME: Setting linknames here is a bad hack.
22445 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22446 # The linker will automatically build a .lib file if we build a DLL.
22447 old_archive_From_new_cmds_F77='true'
22448 # FIXME: Should let the user specify the lib program.
22449 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22450 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22451 enable_shared_with_static_runtimes_F77=yes
22454 darwin* | rhapsody*)
22456 rhapsody* | darwin1.[012])
22457 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22460 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22461 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22463 case ${MACOSX_DEPLOYMENT_TARGET} in
22465 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22468 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22474 archive_cmds_need_lc_F77=no
22475 hardcode_direct_F77=no
22476 hardcode_automatic_F77=yes
22477 hardcode_shlibpath_var_F77=unsupported
22478 whole_archive_flag_spec_F77=''
22479 link_all_deplibs_F77=yes
22480 if test "$GCC" = yes ; then
22481 output_verbose_link_cmd='echo'
22482 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22483 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22484 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22485 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}'
22486 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}'
22488 case $cc_basename in
22490 output_verbose_link_cmd='echo'
22491 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22492 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22493 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22494 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}'
22495 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}'
22505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22506 hardcode_libdir_flag_spec_F77='-L$libdir'
22507 hardcode_shlibpath_var_F77=no
22514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22515 # support. Future versions do this automatically, but an explicit c++rt0.o
22516 # does not break anything, and helps significantly (at the cost of a little
22519 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22520 hardcode_libdir_flag_spec_F77='-R$libdir'
22521 hardcode_direct_F77=yes
22522 hardcode_shlibpath_var_F77=no
22525 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22527 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22528 hardcode_direct_F77=yes
22529 hardcode_minus_L_F77=yes
22530 hardcode_shlibpath_var_F77=no
22533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22534 freebsd* | kfreebsd*-gnu | dragonfly*)
22535 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22536 hardcode_libdir_flag_spec_F77='-R$libdir'
22537 hardcode_direct_F77=yes
22538 hardcode_shlibpath_var_F77=no
22542 if test "$GCC" = yes; then
22543 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'
22545 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'
22547 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22548 hardcode_libdir_separator_F77=:
22549 hardcode_direct_F77=yes
22551 # hardcode_minus_L: Not really in the search PATH,
22552 # but as the default location of the library.
22553 hardcode_minus_L_F77=yes
22554 export_dynamic_flag_spec_F77='${wl}-E'
22558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22559 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22561 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22563 if test "$with_gnu_ld" = no; then
22564 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22565 hardcode_libdir_separator_F77=:
22567 hardcode_direct_F77=yes
22568 export_dynamic_flag_spec_F77='${wl}-E'
22570 # hardcode_minus_L: Not really in the search PATH,
22571 # but as the default location of the library.
22572 hardcode_minus_L_F77=yes
22577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22580 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22583 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22586 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22592 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22595 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22598 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22602 if test "$with_gnu_ld" = no; then
22603 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22604 hardcode_libdir_separator_F77=:
22608 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22609 hardcode_direct_F77=no
22610 hardcode_shlibpath_var_F77=no
22613 hardcode_direct_F77=yes
22614 export_dynamic_flag_spec_F77='${wl}-E'
22616 # hardcode_minus_L: Not really in the search PATH,
22617 # but as the default location of the library.
22618 hardcode_minus_L_F77=yes
22624 irix5* | irix6* | nonstopux*)
22625 if test "$GCC" = yes; then
22626 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'
22628 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'
22629 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22631 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22632 hardcode_libdir_separator_F77=:
22633 link_all_deplibs_F77=yes
22637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22640 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22642 hardcode_libdir_flag_spec_F77='-R$libdir'
22643 hardcode_direct_F77=yes
22644 hardcode_shlibpath_var_F77=no
22648 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22649 hardcode_direct_F77=yes
22650 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22651 hardcode_libdir_separator_F77=:
22652 hardcode_shlibpath_var_F77=no
22656 hardcode_direct_F77=yes
22657 hardcode_shlibpath_var_F77=no
22658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22659 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22660 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22661 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22662 export_dynamic_flag_spec_F77='${wl}-E'
22665 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22666 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22667 hardcode_libdir_flag_spec_F77='-R$libdir'
22670 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22671 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22678 hardcode_libdir_flag_spec_F77='-L$libdir'
22679 hardcode_minus_L_F77=yes
22680 allow_undefined_flag_F77=unsupported
22681 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'
22682 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22686 if test "$GCC" = yes; then
22687 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22688 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'
22690 allow_undefined_flag_F77=' -expect_unresolved \*'
22691 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'
22693 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22694 hardcode_libdir_separator_F77=:
22697 osf4* | osf5*) # as osf3* with the addition of -msym flag
22698 if test "$GCC" = yes; then
22699 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22700 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'
22701 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22703 allow_undefined_flag_F77=' -expect_unresolved \*'
22704 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'
22705 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~
22706 $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'
22708 # Both c and cxx compiler support -rpath directly
22709 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22711 hardcode_libdir_separator_F77=:
22715 no_undefined_flag_F77=' -z text'
22716 if test "$GCC" = yes; then
22718 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22719 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22720 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22723 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22724 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22725 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22727 hardcode_libdir_flag_spec_F77='-R$libdir'
22728 hardcode_shlibpath_var_F77=no
22730 solaris2.[0-5] | solaris2.[0-5].*) ;;
22732 # The compiler driver will combine linker options so we
22733 # cannot just pass the convience library names through
22734 # without $wl, iff we do not link with $LD.
22735 # Luckily, gcc supports the same syntax we need for Sun Studio.
22736 # Supported since Solaris 2.6 (maybe 2.5.1?)
22739 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22741 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' ;;
22744 link_all_deplibs_F77=yes
22748 if test "x$host_vendor" = xsequent; then
22749 # Use $CC to link under sequent, because it throws in some extra .o
22750 # files that make .init and .fini sections work.
22751 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22753 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22755 hardcode_libdir_flag_spec_F77='-L$libdir'
22756 hardcode_direct_F77=yes
22757 hardcode_minus_L_F77=yes
22758 hardcode_shlibpath_var_F77=no
22762 case $host_vendor in
22764 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22765 hardcode_direct_F77=yes # is this really true???
22768 ## LD is ld it makes a PLAMLIB
22769 ## CC just makes a GrossModule.
22770 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22771 reload_cmds_F77='$CC -r -o $output$reload_objs'
22772 hardcode_direct_F77=no
22775 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22776 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22779 runpath_var='LD_RUN_PATH'
22780 hardcode_shlibpath_var_F77=no
22784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22785 hardcode_shlibpath_var_F77=no
22786 export_dynamic_flag_spec_F77='-Bexport'
22790 if test -d /usr/nec; then
22791 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22792 hardcode_shlibpath_var_F77=no
22793 runpath_var=LD_RUN_PATH
22794 hardcode_runpath_var=yes
22799 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22800 no_undefined_flag_F77='${wl}-z,text'
22801 archive_cmds_need_lc_F77=no
22802 hardcode_shlibpath_var_F77=no
22803 runpath_var='LD_RUN_PATH'
22805 if test "$GCC" = yes; then
22806 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22807 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22809 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22810 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22814 sysv5* | sco3.2v5* | sco5v6*)
22815 # Note: We can NOT use -z defs as we might desire, because we do not
22816 # link with -lc, and that would cause any symbols used from libc to
22817 # always be unresolved, which means just about no library would
22818 # ever link correctly. If we're not using GNU ld we use -z text
22819 # though, which does catch some bad symbols but isn't as heavy-handed
22821 no_undefined_flag_F77='${wl}-z,text'
22822 allow_undefined_flag_F77='${wl}-z,nodefs'
22823 archive_cmds_need_lc_F77=no
22824 hardcode_shlibpath_var_F77=no
22825 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22826 hardcode_libdir_separator_F77=':'
22827 link_all_deplibs_F77=yes
22828 export_dynamic_flag_spec_F77='${wl}-Bexport'
22829 runpath_var='LD_RUN_PATH'
22831 if test "$GCC" = yes; then
22832 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22833 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22835 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22836 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22842 hardcode_libdir_flag_spec_F77='-L$libdir'
22843 hardcode_shlibpath_var_F77=no
22852 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22853 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22854 test "$ld_shlibs_F77" = no && can_build_shared=no
22857 # Do we need to explicitly link libc?
22859 case "x$archive_cmds_need_lc_F77" in
22861 # Assume -lc should be added
22862 archive_cmds_need_lc_F77=yes
22864 if test "$enable_shared" = yes && test "$GCC" = yes; then
22865 case $archive_cmds_F77 in
22867 # FIXME: we may have to deal with multi-command sequences.
22870 # Test whether the compiler implicitly links with -lc since on some
22871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22872 # to ld, don't add -lc before -lgcc.
22873 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22879 (eval $ac_compile) 2>&5
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); } 2>conftest.err; then
22885 libobjs=conftest.$ac_objext
22887 wl=$lt_prog_compiler_wl_F77
22888 pic_flag=$lt_prog_compiler_pic_F77
22894 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22895 allow_undefined_flag_F77=
22896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22897 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); }
22902 archive_cmds_need_lc_F77=no
22904 archive_cmds_need_lc_F77=yes
22906 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22908 cat conftest.err 1>&5
22911 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22912 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22919 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22920 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22921 library_names_spec=
22922 libname_spec='lib$name'
22926 postuninstall_cmds=
22930 shlibpath_overrides_runpath=unknown
22932 dynamic_linker="$host_os ld.so"
22933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22934 if test "$GCC" = yes; then
22935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22937 # if the path contains ";" then we assume it to be the separator
22938 # otherwise default to the standard path separator (i.e. ":") - it is
22939 # assumed that no part of a normal pathname contains ";" but that should
22940 # okay in the real world where ";" in dirpaths is itself problematic.
22941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22948 need_lib_prefix=unknown
22949 hardcode_into_libs=no
22951 # when you set need_version to no, make sure it does not cause -set_version
22952 # flags to be left without arguments
22953 need_version=unknown
22958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22959 shlibpath_var=LIBPATH
22961 # AIX 3 has no versioning support, so we append a major version to the name.
22962 soname_spec='${libname}${release}${shared_ext}$major'
22969 hardcode_into_libs=yes
22970 if test "$host_cpu" = ia64; then
22971 # AIX 5 supports IA64
22972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22973 shlibpath_var=LD_LIBRARY_PATH
22975 # With GCC up to 2.95.x, collect2 would create an import file
22976 # for dependence libraries. The import file would start with
22977 # the line `#! .'. This would cause the generated library to
22978 # depend on `.', always an invalid library. This was fixed in
22979 # development snapshots of GCC prior to 3.0.
22981 aix4 | aix4.[01] | aix4.[01].*)
22982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22987 can_build_shared=no
22991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22992 # soname into executable. Probably we can add versioning support to
22993 # collect2, so additional links can be useful in future.
22994 if test "$aix_use_runtimelinking" = yes; then
22995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22996 # instead of lib<name>.a to let people know that these are not
22997 # typical AIX shared libraries.
22998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23000 # We preserve .a as extension for shared libraries through AIX4.2
23001 # and later when we are not doing run time linking.
23002 library_names_spec='${libname}${release}.a $libname.a'
23003 soname_spec='${libname}${release}${shared_ext}$major'
23005 shlibpath_var=LIBPATH
23010 library_names_spec='$libname.ixlibrary $libname.a'
23011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23012 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'
23016 library_names_spec='${libname}${shared_ext}'
23017 dynamic_linker="$host_os ld.so"
23018 shlibpath_var=LIBRARY_PATH
23024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23025 soname_spec='${libname}${release}${shared_ext}$major'
23026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23027 shlibpath_var=LD_LIBRARY_PATH
23028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23030 # the default ld.so.conf also contains /usr/contrib/lib and
23031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23032 # libtool to hard-code these into programs
23035 cygwin* | mingw* | pw32*)
23036 version_type=windows
23041 case $GCC,$host_os in
23042 yes,cygwin* | yes,mingw* | yes,pw32*)
23043 library_names_spec='$libname.dll.a'
23044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23045 postinstall_cmds='base_file=`basename \${file}`~
23046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23047 dldir=$destdir/`dirname \$dlpath`~
23048 test -d \$dldir || mkdir -p \$dldir~
23049 $install_prog $dir/$dlname \$dldir/$dlname~
23050 chmod a+x \$dldir/$dlname'
23051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23052 dlpath=$dir/\$dldll~
23054 shlibpath_overrides_runpath=yes
23058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23059 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23060 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23063 # MinGW DLLs use traditional 'lib' prefix
23064 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23065 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23066 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23067 # It is most probably a Windows format PATH printed by
23068 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23069 # path with ; separators, and with drive letters. We can handle the
23070 # drive letters (cygwin fileutils understands them), so leave them,
23071 # especially as we might pass files found there to a mingw objdump,
23072 # which wouldn't understand a cygwinified path. Ahh.
23073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23079 # pw32 DLLs use 'pw' prefix rather than 'lib'
23080 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23086 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23089 dynamic_linker='Win32 ld.exe'
23090 # FIXME: first we should search . and the directory the executable is in
23094 darwin* | rhapsody*)
23095 dynamic_linker="$host_os dyld"
23096 version_type=darwin
23099 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23100 soname_spec='${libname}${release}${major}$shared_ext'
23101 shlibpath_overrides_runpath=yes
23102 shlibpath_var=DYLD_LIBRARY_PATH
23103 shrext_cmds='.dylib'
23104 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23105 if test "$GCC" = yes; then
23106 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"`
23108 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23118 soname_spec='${libname}${release}${shared_ext}$major'
23119 shlibpath_var=LD_LIBRARY_PATH
23130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23131 soname_spec='${libname}${release}${shared_ext}$major'
23132 shlibpath_var=LD_LIBRARY_PATH
23133 shlibpath_overrides_runpath=no
23134 hardcode_into_libs=yes
23135 dynamic_linker='GNU ld.so'
23138 freebsd* | dragonfly*)
23139 # DragonFly does not have aout. When/if they implement a new
23140 # versioning mechanism, adjust this.
23141 if test -x /usr/bin/objformat; then
23142 objformat=`/usr/bin/objformat`
23145 freebsd[123]*) objformat=aout ;;
23146 *) objformat=elf ;;
23149 version_type=freebsd-$objformat
23150 case $version_type in
23152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23161 shlibpath_var=LD_LIBRARY_PATH
23164 shlibpath_overrides_runpath=yes
23166 freebsd3.[01]* | freebsdelf3.[01]*)
23167 shlibpath_overrides_runpath=yes
23168 hardcode_into_libs=yes
23170 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23171 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23172 shlibpath_overrides_runpath=no
23173 hardcode_into_libs=yes
23175 freebsd*) # from 4.6 on
23176 shlibpath_overrides_runpath=yes
23177 hardcode_into_libs=yes
23186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23187 soname_spec='${libname}${release}${shared_ext}$major'
23188 shlibpath_var=LD_LIBRARY_PATH
23189 hardcode_into_libs=yes
23192 hpux9* | hpux10* | hpux11*)
23193 # Give a soname corresponding to the major version so that dld.sl refuses to
23194 # link against other versions.
23201 hardcode_into_libs=yes
23202 dynamic_linker="$host_os dld.so"
23203 shlibpath_var=LD_LIBRARY_PATH
23204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23206 soname_spec='${libname}${release}${shared_ext}$major'
23207 if test "X$HPUX_IA64_MODE" = X32; then
23208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23216 hardcode_into_libs=yes
23217 dynamic_linker="$host_os dld.sl"
23218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23221 soname_spec='${libname}${release}${shared_ext}$major'
23222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23227 dynamic_linker="$host_os dld.sl"
23228 shlibpath_var=SHLIB_PATH
23229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23231 soname_spec='${libname}${release}${shared_ext}$major'
23234 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23235 postinstall_cmds='chmod 555 $lib'
23242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23243 soname_spec='${libname}${release}${shared_ext}$major'
23244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23245 shlibpath_var=LD_LIBRARY_PATH
23246 shlibpath_overrides_runpath=no
23247 hardcode_into_libs=yes
23250 irix5* | irix6* | nonstopux*)
23252 nonstopux*) version_type=nonstopux ;;
23254 if test "$lt_cv_prog_gnu_ld" = yes; then
23262 soname_spec='${libname}${release}${shared_ext}$major'
23263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23265 irix5* | nonstopux*)
23266 libsuff= shlibsuff=
23269 case $LD in # libtool.m4 will add one of these switches to LD
23270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23271 libsuff= shlibsuff= libmagic=32-bit;;
23272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23273 libsuff=32 shlibsuff=N32 libmagic=N32;;
23274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23275 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23276 *) libsuff= shlibsuff= libmagic=never-match;;
23280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23281 shlibpath_overrides_runpath=no
23282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23284 hardcode_into_libs=yes
23287 # No shared lib support for Linux oldld, aout, or coff.
23288 linux*oldld* | linux*aout* | linux*coff*)
23292 # This must be Linux ELF.
23297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23298 soname_spec='${libname}${release}${shared_ext}$major'
23299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23300 shlibpath_var=LD_LIBRARY_PATH
23301 shlibpath_overrides_runpath=no
23302 # This implies no fast_install, which is unacceptable.
23303 # Some rework will be needed to allow for fast_install
23304 # before this can be enabled.
23305 hardcode_into_libs=yes
23307 # Append ld.so.conf contents to the search path
23308 if test -f /etc/ld.so.conf; then
23309 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' ' '`
23310 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23313 # We used to test for /lib/ld.so.1 and disable shared libraries on
23314 # powerpc, because MkLinux only supported shared libraries with the
23315 # GNU dynamic linker. Since this was broken with cross compilers,
23316 # most powerpc-linux boxes support dynamic linking these days and
23317 # people can always --disable-shared, the test was removed, and we
23318 # assume the GNU/Linux dynamic linker is in use.
23319 dynamic_linker='GNU/Linux ld.so'
23326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23327 soname_spec='${libname}${release}${shared_ext}$major'
23328 shlibpath_var=LD_LIBRARY_PATH
23329 shlibpath_overrides_runpath=no
23330 hardcode_into_libs=yes
23331 dynamic_linker='GNU ld.so'
23338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23341 dynamic_linker='NetBSD (a.out) ld.so'
23343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23344 soname_spec='${libname}${release}${shared_ext}$major'
23345 dynamic_linker='NetBSD ld.elf_so'
23347 shlibpath_var=LD_LIBRARY_PATH
23348 shlibpath_overrides_runpath=yes
23349 hardcode_into_libs=yes
23354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23355 shlibpath_var=LD_LIBRARY_PATH
23356 shlibpath_overrides_runpath=yes
23363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23364 soname_spec='${libname}${release}${shared_ext}$major'
23365 shlibpath_var=LD_LIBRARY_PATH
23366 shlibpath_overrides_runpath=yes
23371 sys_lib_dlsearch_path_spec="/usr/lib"
23373 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23375 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23376 *) need_version=no ;;
23378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23380 shlibpath_var=LD_LIBRARY_PATH
23381 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23383 openbsd2.[89] | openbsd2.[89].*)
23384 shlibpath_overrides_runpath=no
23387 shlibpath_overrides_runpath=yes
23391 shlibpath_overrides_runpath=yes
23396 libname_spec='$name'
23399 library_names_spec='$libname${shared_ext} $libname.a'
23400 dynamic_linker='OS/2 ld.exe'
23401 shlibpath_var=LIBPATH
23404 osf3* | osf4* | osf5*)
23408 soname_spec='${libname}${release}${shared_ext}$major'
23409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23410 shlibpath_var=LD_LIBRARY_PATH
23411 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23412 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23420 soname_spec='${libname}${release}${shared_ext}$major'
23421 shlibpath_var=LD_LIBRARY_PATH
23422 shlibpath_overrides_runpath=yes
23423 hardcode_into_libs=yes
23424 # ldd complains unless libraries are executable
23425 postinstall_cmds='chmod +x $lib'
23430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23432 shlibpath_var=LD_LIBRARY_PATH
23433 shlibpath_overrides_runpath=yes
23434 if test "$with_gnu_ld" = yes; then
23442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23443 soname_spec='${libname}${release}${shared_ext}$major'
23444 shlibpath_var=LD_LIBRARY_PATH
23445 case $host_vendor in
23447 shlibpath_overrides_runpath=no
23449 export_dynamic_flag_spec='${wl}-Blargedynsym'
23450 runpath_var=LD_RUN_PATH
23458 shlibpath_overrides_runpath=no
23459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23465 if test -d /usr/nec ;then
23467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23468 soname_spec='$libname${shared_ext}.$major'
23469 shlibpath_var=LD_LIBRARY_PATH
23473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23474 version_type=freebsd-elf
23477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23478 soname_spec='${libname}${release}${shared_ext}$major'
23479 shlibpath_var=LD_LIBRARY_PATH
23480 hardcode_into_libs=yes
23481 if test "$with_gnu_ld" = yes; then
23482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23483 shlibpath_overrides_runpath=no
23485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23486 shlibpath_overrides_runpath=yes
23489 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23493 sys_lib_dlsearch_path_spec='/usr/lib'
23498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23499 soname_spec='${libname}${release}${shared_ext}$major'
23500 shlibpath_var=LD_LIBRARY_PATH
23507 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23508 echo "${ECHO_T}$dynamic_linker" >&6; }
23509 test "$dynamic_linker" = no && can_build_shared=no
23511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23512 if test "$GCC" = yes; then
23513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23516 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23517 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23518 hardcode_action_F77=
23519 if test -n "$hardcode_libdir_flag_spec_F77" || \
23520 test -n "$runpath_var_F77" || \
23521 test "X$hardcode_automatic_F77" = "Xyes" ; then
23523 # We can hardcode non-existant directories.
23524 if test "$hardcode_direct_F77" != no &&
23525 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23526 # have to relink, otherwise we might link with an installed library
23527 # when we should be linking with a yet-to-be-installed one
23528 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23529 test "$hardcode_minus_L_F77" != no; then
23530 # Linking always hardcodes the temporary library directory.
23531 hardcode_action_F77=relink
23533 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23534 hardcode_action_F77=immediate
23537 # We cannot hardcode anything, or else we can only hardcode existing
23539 hardcode_action_F77=unsupported
23541 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23542 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23544 if test "$hardcode_action_F77" = relink; then
23545 # Fast installation is not supported
23546 enable_fast_install=no
23547 elif test "$shlibpath_overrides_runpath" = yes ||
23548 test "$enable_shared" = no; then
23549 # Fast installation is not necessary
23550 enable_fast_install=needless
23554 # The else clause should only fire when bootstrapping the
23555 # libtool distribution, otherwise you forgot to ship ltmain.sh
23556 # with your package, and you will get complaints that there are
23557 # no rules to generate ltmain.sh.
23558 if test -f "$ltmain"; then
23559 # See if we are running on zsh, and set the options which allow our commands through
23560 # without removal of \ escapes.
23561 if test -n "${ZSH_VERSION+set}" ; then
23562 setopt NO_GLOB_SUBST
23564 # Now quote all the things that may contain metacharacters while being
23565 # careful not to overquote the AC_SUBSTed values. We take copies of the
23566 # variables and quote the copies for generation of the libtool script.
23567 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23569 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23570 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23571 deplibs_check_method reload_flag reload_cmds need_locks \
23572 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23573 lt_cv_sys_global_symbol_to_c_name_address \
23574 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23575 old_postinstall_cmds old_postuninstall_cmds \
23579 lt_prog_compiler_wl_F77 \
23580 lt_prog_compiler_pic_F77 \
23581 lt_prog_compiler_static_F77 \
23582 lt_prog_compiler_no_builtin_flag_F77 \
23583 export_dynamic_flag_spec_F77 \
23584 thread_safe_flag_spec_F77 \
23585 whole_archive_flag_spec_F77 \
23586 enable_shared_with_static_runtimes_F77 \
23587 old_archive_cmds_F77 \
23588 old_archive_from_new_cmds_F77 \
23589 predep_objects_F77 \
23590 postdep_objects_F77 \
23593 compiler_lib_search_path_F77 \
23595 archive_expsym_cmds_F77 \
23596 postinstall_cmds_F77 \
23597 postuninstall_cmds_F77 \
23598 old_archive_from_expsyms_cmds_F77 \
23599 allow_undefined_flag_F77 \
23600 no_undefined_flag_F77 \
23601 export_symbols_cmds_F77 \
23602 hardcode_libdir_flag_spec_F77 \
23603 hardcode_libdir_flag_spec_ld_F77 \
23604 hardcode_libdir_separator_F77 \
23605 hardcode_automatic_F77 \
23607 module_expsym_cmds_F77 \
23608 lt_cv_prog_compiler_c_o_F77 \
23609 exclude_expsyms_F77 \
23610 include_expsyms_F77; do
23613 old_archive_cmds_F77 | \
23614 old_archive_from_new_cmds_F77 | \
23615 archive_cmds_F77 | \
23616 archive_expsym_cmds_F77 | \
23617 module_cmds_F77 | \
23618 module_expsym_cmds_F77 | \
23619 old_archive_from_expsyms_cmds_F77 | \
23620 export_symbols_cmds_F77 | \
23621 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23622 postinstall_cmds | postuninstall_cmds | \
23623 old_postinstall_cmds | old_postuninstall_cmds | \
23624 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23625 # Double-quote double-evaled strings.
23626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23635 *'\$0 --fallback-echo"')
23636 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23642 cat <<__EOF__ >> "$cfgfile"
23643 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23647 # Shell to use when invoking shell scripts.
23650 # Whether or not to build shared libraries.
23651 build_libtool_libs=$enable_shared
23653 # Whether or not to build static libraries.
23654 build_old_libs=$enable_static
23656 # Whether or not to add -lc for building shared libraries.
23657 build_libtool_need_lc=$archive_cmds_need_lc_F77
23659 # Whether or not to disallow shared libs when runtime libs are static
23660 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23662 # Whether or not to optimize for fast installation.
23663 fast_install=$enable_fast_install
23666 host_alias=$host_alias
23670 # The build system.
23671 build_alias=$build_alias
23675 # An echo program that does not interpret backslashes.
23680 AR_FLAGS=$lt_AR_FLAGS
23685 # LTCC compiler flags.
23686 LTCFLAGS=$lt_LTCFLAGS
23688 # A language-specific compiler.
23689 CC=$lt_compiler_F77
23691 # Is the compiler the GNU C compiler?
23697 # The linker used to build libraries.
23700 # Whether we need hard or soft links.
23703 # A BSD-compatible nm program.
23706 # A symbol stripping program
23709 # Used to examine libraries when file_magic_cmd begins "file"
23710 MAGIC_CMD=$MAGIC_CMD
23712 # Used on cygwin: DLL creation program.
23715 # Used on cygwin: object dumper.
23718 # Used on cygwin: assembler.
23721 # The name of the directory that contains temporary libtool files.
23724 # How to create reloadable object files.
23725 reload_flag=$lt_reload_flag
23726 reload_cmds=$lt_reload_cmds
23728 # How to pass a linker flag through the compiler.
23729 wl=$lt_lt_prog_compiler_wl_F77
23731 # Object file suffix (normally "o").
23732 objext="$ac_objext"
23734 # Old archive suffix (normally "a").
23737 # Shared library suffix (normally ".so").
23738 shrext_cmds='$shrext_cmds'
23740 # Executable file suffix (normally "").
23743 # Additional compiler flags for building library objects.
23744 pic_flag=$lt_lt_prog_compiler_pic_F77
23747 # What is the maximum length of a command?
23748 max_cmd_len=$lt_cv_sys_max_cmd_len
23750 # Does compiler simultaneously support -c and -o options?
23751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23753 # Must we lock files when doing compilation?
23754 need_locks=$lt_need_locks
23756 # Do we need the lib prefix for modules?
23757 need_lib_prefix=$need_lib_prefix
23759 # Do we need a version for libraries?
23760 need_version=$need_version
23762 # Whether dlopen is supported.
23763 dlopen_support=$enable_dlopen
23765 # Whether dlopen of programs is supported.
23766 dlopen_self=$enable_dlopen_self
23768 # Whether dlopen of statically linked programs is supported.
23769 dlopen_self_static=$enable_dlopen_self_static
23771 # Compiler flag to prevent dynamic linking.
23772 link_static_flag=$lt_lt_prog_compiler_static_F77
23774 # Compiler flag to turn off builtin functions.
23775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23777 # Compiler flag to allow reflexive dlopens.
23778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23780 # Compiler flag to generate shared objects directly from archives.
23781 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23783 # Compiler flag to generate thread-safe objects.
23784 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23786 # Library versioning type.
23787 version_type=$version_type
23789 # Format of library name prefix.
23790 libname_spec=$lt_libname_spec
23792 # List of archive names. First name is the real one, the rest are links.
23793 # The last name is the one that the linker finds with -lNAME.
23794 library_names_spec=$lt_library_names_spec
23796 # The coded name of the library, if different from the real name.
23797 soname_spec=$lt_soname_spec
23799 # Commands used to build and install an old-style archive.
23801 old_archive_cmds=$lt_old_archive_cmds_F77
23802 old_postinstall_cmds=$lt_old_postinstall_cmds
23803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23805 # Create an old-style archive from a shared archive.
23806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23808 # Create a temporary old-style archive to link instead of a shared archive.
23809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23811 # Commands used to build and install a shared archive.
23812 archive_cmds=$lt_archive_cmds_F77
23813 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23814 postinstall_cmds=$lt_postinstall_cmds
23815 postuninstall_cmds=$lt_postuninstall_cmds
23817 # Commands used to build a loadable module (assumed same as above if empty)
23818 module_cmds=$lt_module_cmds_F77
23819 module_expsym_cmds=$lt_module_expsym_cmds_F77
23821 # Commands to strip libraries.
23822 old_striplib=$lt_old_striplib
23823 striplib=$lt_striplib
23825 # Dependencies to place before the objects being linked to create a
23827 predep_objects=$lt_predep_objects_F77
23829 # Dependencies to place after the objects being linked to create a
23831 postdep_objects=$lt_postdep_objects_F77
23833 # Dependencies to place before the objects being linked to create a
23835 predeps=$lt_predeps_F77
23837 # Dependencies to place after the objects being linked to create a
23839 postdeps=$lt_postdeps_F77
23841 # The library search path used internally by the compiler when linking
23842 # a shared library.
23843 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23845 # Method to check whether dependent libraries are shared objects.
23846 deplibs_check_method=$lt_deplibs_check_method
23848 # Command to use when deplibs_check_method == file_magic.
23849 file_magic_cmd=$lt_file_magic_cmd
23851 # Flag that allows shared libraries with undefined symbols to be built.
23852 allow_undefined_flag=$lt_allow_undefined_flag_F77
23854 # Flag that forces no undefined symbols.
23855 no_undefined_flag=$lt_no_undefined_flag_F77
23857 # Commands used to finish a libtool library installation in a directory.
23858 finish_cmds=$lt_finish_cmds
23860 # Same as above, but a single script fragment to be evaled but not shown.
23861 finish_eval=$lt_finish_eval
23863 # Take the output of nm and produce a listing of raw symbols and C names.
23864 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23866 # Transform the output of nm in a proper C declaration
23867 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23869 # Transform the output of nm in a C name address pair
23870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23872 # This is the shared library runtime path variable.
23873 runpath_var=$runpath_var
23875 # This is the shared library path variable.
23876 shlibpath_var=$shlibpath_var
23878 # Is shlibpath searched before the hard-coded library search path?
23879 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23881 # How to hardcode a shared library path into an executable.
23882 hardcode_action=$hardcode_action_F77
23884 # Whether we should hardcode library paths into libraries.
23885 hardcode_into_libs=$hardcode_into_libs
23887 # Flag to hardcode \$libdir into a binary during linking.
23888 # This must work even if \$libdir does not exist.
23889 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23891 # If ld is used when linking, flag to hardcode \$libdir into
23892 # a binary during linking. This must work even if \$libdir does
23894 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23896 # Whether we need a single -rpath flag with a separated argument.
23897 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23899 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23900 # resulting binary.
23901 hardcode_direct=$hardcode_direct_F77
23903 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23904 # resulting binary.
23905 hardcode_minus_L=$hardcode_minus_L_F77
23907 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23908 # the resulting binary.
23909 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23911 # Set to yes if building a shared library automatically hardcodes DIR into the library
23912 # and all subsequent libraries and executables linked against it.
23913 hardcode_automatic=$hardcode_automatic_F77
23915 # Variables whose values should be saved in libtool wrapper scripts and
23916 # restored at relink time.
23917 variables_saved_for_relink="$variables_saved_for_relink"
23919 # Whether libtool must link a program against all its dependency libraries.
23920 link_all_deplibs=$link_all_deplibs_F77
23922 # Compile-time system search path for libraries
23923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23925 # Run-time system search path for libraries
23926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23928 # Fix the shell variable \$srcfile for the compiler.
23929 fix_srcfile_path="$fix_srcfile_path_F77"
23931 # Set to yes if exported symbols are required.
23932 always_export_symbols=$always_export_symbols_F77
23934 # The commands to list exported symbols.
23935 export_symbols_cmds=$lt_export_symbols_cmds_F77
23937 # The commands to extract the exported symbol list from a shared archive.
23938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23940 # Symbols that should not be listed in the preloaded symbols.
23941 exclude_expsyms=$lt_exclude_expsyms_F77
23943 # Symbols that must always be exported.
23944 include_expsyms=$lt_include_expsyms_F77
23946 # ### END LIBTOOL TAG CONFIG: $tagname
23952 # If there is no Makefile yet, we rely on a make rule to execute
23953 # `config.status --recheck' to rerun these tests and create the
23954 # libtool script then.
23955 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23956 if test -f "$ltmain_in"; then
23957 test -f Makefile && make "$ltmain"
23963 ac_cpp='$CPP $CPPFLAGS'
23964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23976 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23978 ac_cpp='$CPP $CPPFLAGS'
23979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23984 # Source file extension for Java test sources.
23987 # Object file extension for compiled Java test sources.
23991 # Code to be used in simple compile tests
23992 lt_simple_compile_test_code="class foo {}\n"
23994 # Code to be used in simple link tests
23995 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23997 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23999 # If no C compiler was specified, use CC.
24002 # If no C compiler flags were specified, use CFLAGS.
24003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24005 # Allow CC to be a program name with arguments.
24009 # save warnings/boilerplate of simple test code
24010 ac_outfile=conftest.$ac_objext
24011 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24013 _lt_compiler_boilerplate=`cat conftest.err`
24016 ac_outfile=conftest.$ac_objext
24017 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24019 _lt_linker_boilerplate=`cat conftest.err`
24023 # Allow CC to be a program name with arguments.
24028 for cc_temp in $compiler""; do
24030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24039 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24040 archive_cmds_need_lc_GCJ=no
24042 old_archive_cmds_GCJ=$old_archive_cmds
24045 lt_prog_compiler_no_builtin_flag_GCJ=
24047 if test "$GCC" = yes; then
24048 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24051 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24052 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24053 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24054 echo $ECHO_N "(cached) $ECHO_C" >&6
24056 lt_cv_prog_compiler_rtti_exceptions=no
24057 ac_outfile=conftest.$ac_objext
24058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24059 lt_compiler_flag="-fno-rtti -fno-exceptions"
24060 # Insert the option either (1) after the last *FLAGS variable, or
24061 # (2) before a word containing "conftest.", or (3) at the end.
24062 # Note that $ac_compile itself does not contain backslashes and begins
24063 # with a dollar sign (not a hyphen), so the echo should work correctly.
24064 # The option is referenced via a variable to avoid confusing sed.
24065 lt_compile=`echo "$ac_compile" | $SED \
24066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24068 -e 's:$: $lt_compiler_flag:'`
24069 (eval echo "\"\$as_me:24069: $lt_compile\"" >&5)
24070 (eval "$lt_compile" 2>conftest.err)
24072 cat conftest.err >&5
24073 echo "$as_me:24073: \$? = $ac_status" >&5
24074 if (exit $ac_status) && test -s "$ac_outfile"; then
24075 # The compiler can only warn and ignore the option if not recognized
24076 # So say no if there are warnings other than the usual output.
24077 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24080 lt_cv_prog_compiler_rtti_exceptions=yes
24086 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24087 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24089 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24090 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24097 lt_prog_compiler_wl_GCJ=
24098 lt_prog_compiler_pic_GCJ=
24099 lt_prog_compiler_static_GCJ=
24101 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24102 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24104 if test "$GCC" = yes; then
24105 lt_prog_compiler_wl_GCJ='-Wl,'
24106 lt_prog_compiler_static_GCJ='-static'
24110 # All AIX code is PIC.
24111 if test "$host_cpu" = ia64; then
24112 # AIX 5 now supports IA64 processor
24113 lt_prog_compiler_static_GCJ='-Bstatic'
24118 # FIXME: we need at least 68020 code to build shared libraries, but
24119 # adding the `-m68020' flag to GCC prevents building anything better,
24121 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24124 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24125 # PIC is the default for these OSes.
24128 mingw* | pw32* | os2*)
24129 # This hack is so that the source file can tell whether it is being
24130 # built for inclusion in a dll (and should export symbols for example).
24131 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24134 darwin* | rhapsody*)
24135 # PIC is the default on this platform
24136 # Common symbols not allowed in MH_DYLIB files
24137 lt_prog_compiler_pic_GCJ='-fno-common'
24141 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24142 # Instead, we relocate shared libraries at runtime.
24146 # Just because we use GCC doesn't mean we suddenly get shared libraries
24147 # on systems that don't support them.
24148 lt_prog_compiler_can_build_shared_GCJ=no
24153 if test -d /usr/nec; then
24154 lt_prog_compiler_pic_GCJ=-Kconform_pic
24159 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24160 # not for PA HP-UX.
24166 lt_prog_compiler_pic_GCJ='-fPIC'
24172 lt_prog_compiler_pic_GCJ='-fPIC'
24176 # PORTME Check for flag to pass linker flags through the system compiler.
24179 lt_prog_compiler_wl_GCJ='-Wl,'
24180 if test "$host_cpu" = ia64; then
24181 # AIX 5 now supports IA64 processor
24182 lt_prog_compiler_static_GCJ='-Bstatic'
24184 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24188 # PIC is the default on this platform
24189 # Common symbols not allowed in MH_DYLIB files
24190 case $cc_basename in
24192 lt_prog_compiler_pic_GCJ='-qnocommon'
24193 lt_prog_compiler_wl_GCJ='-Wl,'
24198 mingw* | pw32* | os2*)
24199 # This hack is so that the source file can tell whether it is being
24200 # built for inclusion in a dll (and should export symbols for example).
24201 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24204 hpux9* | hpux10* | hpux11*)
24205 lt_prog_compiler_wl_GCJ='-Wl,'
24206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24207 # not for PA HP-UX.
24213 lt_prog_compiler_pic_GCJ='+Z'
24216 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24217 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24220 irix5* | irix6* | nonstopux*)
24221 lt_prog_compiler_wl_GCJ='-Wl,'
24222 # PIC (with -KPIC) is the default.
24223 lt_prog_compiler_static_GCJ='-non_shared'
24227 lt_prog_compiler_pic_GCJ='-KPIC'
24228 lt_prog_compiler_static_GCJ='-Bstatic'
24232 case $cc_basename in
24234 lt_prog_compiler_wl_GCJ='-Wl,'
24235 lt_prog_compiler_pic_GCJ='-KPIC'
24236 lt_prog_compiler_static_GCJ='-static'
24238 pgcc* | pgf77* | pgf90* | pgf95*)
24239 # Portland Group compilers (*not* the Pentium gcc compiler,
24240 # which looks to be a dead project)
24241 lt_prog_compiler_wl_GCJ='-Wl,'
24242 lt_prog_compiler_pic_GCJ='-fpic'
24243 lt_prog_compiler_static_GCJ='-Bstatic'
24246 lt_prog_compiler_wl_GCJ='-Wl,'
24247 # All Alpha code is PIC.
24248 lt_prog_compiler_static_GCJ='-non_shared'
24253 osf3* | osf4* | osf5*)
24254 lt_prog_compiler_wl_GCJ='-Wl,'
24255 # All OSF/1 code is PIC.
24256 lt_prog_compiler_static_GCJ='-non_shared'
24260 lt_prog_compiler_pic_GCJ='-KPIC'
24261 lt_prog_compiler_static_GCJ='-Bstatic'
24262 case $cc_basename in
24263 f77* | f90* | f95*)
24264 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24266 lt_prog_compiler_wl_GCJ='-Wl,';;
24271 lt_prog_compiler_wl_GCJ='-Qoption ld '
24272 lt_prog_compiler_pic_GCJ='-PIC'
24273 lt_prog_compiler_static_GCJ='-Bstatic'
24276 sysv4 | sysv4.2uw2* | sysv4.3*)
24277 lt_prog_compiler_wl_GCJ='-Wl,'
24278 lt_prog_compiler_pic_GCJ='-KPIC'
24279 lt_prog_compiler_static_GCJ='-Bstatic'
24283 if test -d /usr/nec ;then
24284 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24285 lt_prog_compiler_static_GCJ='-Bstatic'
24289 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24290 lt_prog_compiler_wl_GCJ='-Wl,'
24291 lt_prog_compiler_pic_GCJ='-KPIC'
24292 lt_prog_compiler_static_GCJ='-Bstatic'
24296 lt_prog_compiler_wl_GCJ='-Wl,'
24297 lt_prog_compiler_can_build_shared_GCJ=no
24301 lt_prog_compiler_pic_GCJ='-pic'
24302 lt_prog_compiler_static_GCJ='-Bstatic'
24306 lt_prog_compiler_can_build_shared_GCJ=no
24311 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24312 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24315 # Check to make sure the PIC flag actually works.
24317 if test -n "$lt_prog_compiler_pic_GCJ"; then
24319 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24320 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24321 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24324 lt_prog_compiler_pic_works_GCJ=no
24325 ac_outfile=conftest.$ac_objext
24326 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24327 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24328 # Insert the option either (1) after the last *FLAGS variable, or
24329 # (2) before a word containing "conftest.", or (3) at the end.
24330 # Note that $ac_compile itself does not contain backslashes and begins
24331 # with a dollar sign (not a hyphen), so the echo should work correctly.
24332 # The option is referenced via a variable to avoid confusing sed.
24333 lt_compile=`echo "$ac_compile" | $SED \
24334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24336 -e 's:$: $lt_compiler_flag:'`
24337 (eval echo "\"\$as_me:24337: $lt_compile\"" >&5)
24338 (eval "$lt_compile" 2>conftest.err)
24340 cat conftest.err >&5
24341 echo "$as_me:24341: \$? = $ac_status" >&5
24342 if (exit $ac_status) && test -s "$ac_outfile"; then
24343 # The compiler can only warn and ignore the option if not recognized
24344 # So say no if there are warnings other than the usual output.
24345 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24348 lt_prog_compiler_pic_works_GCJ=yes
24354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24355 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24357 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24358 case $lt_prog_compiler_pic_GCJ in
24360 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24363 lt_prog_compiler_pic_GCJ=
24364 lt_prog_compiler_can_build_shared_GCJ=no
24369 # For platforms which do not support PIC, -DPIC is meaningless:
24371 lt_prog_compiler_pic_GCJ=
24374 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24379 # Check to make sure the static flag actually works.
24381 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24382 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24383 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24384 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24385 echo $ECHO_N "(cached) $ECHO_C" >&6
24387 lt_prog_compiler_static_works_GCJ=no
24388 save_LDFLAGS="$LDFLAGS"
24389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24390 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24392 # The linker can only warn and ignore the option if not recognized
24393 # So say no if there are warnings
24394 if test -s conftest.err; then
24395 # Append any errors to the config.log.
24396 cat conftest.err 1>&5
24397 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24399 if diff conftest.exp conftest.er2 >/dev/null; then
24400 lt_prog_compiler_static_works_GCJ=yes
24403 lt_prog_compiler_static_works_GCJ=yes
24407 LDFLAGS="$save_LDFLAGS"
24410 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24411 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24413 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24416 lt_prog_compiler_static_GCJ=
24420 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24421 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24422 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24423 echo $ECHO_N "(cached) $ECHO_C" >&6
24425 lt_cv_prog_compiler_c_o_GCJ=no
24426 $rm -r conftest 2>/dev/null
24430 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24432 lt_compiler_flag="-o out/conftest2.$ac_objext"
24433 # Insert the option either (1) after the last *FLAGS variable, or
24434 # (2) before a word containing "conftest.", or (3) at the end.
24435 # Note that $ac_compile itself does not contain backslashes and begins
24436 # with a dollar sign (not a hyphen), so the echo should work correctly.
24437 lt_compile=`echo "$ac_compile" | $SED \
24438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24440 -e 's:$: $lt_compiler_flag:'`
24441 (eval echo "\"\$as_me:24441: $lt_compile\"" >&5)
24442 (eval "$lt_compile" 2>out/conftest.err)
24444 cat out/conftest.err >&5
24445 echo "$as_me:24445: \$? = $ac_status" >&5
24446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24448 # The compiler can only warn and ignore the option if not recognized
24449 # So say no if there are warnings
24450 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24453 lt_cv_prog_compiler_c_o_GCJ=yes
24458 # SGI C++ compiler will create directory out/ii_files/ for
24459 # template instantiation
24460 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24461 $rm out/* && rmdir out
24467 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24468 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24471 hard_links="nottested"
24472 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24473 # do not overwrite the value of need_locks provided by the user
24474 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24480 ln conftest.a conftest.b 2>&5 || hard_links=no
24481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24482 { echo "$as_me:$LINENO: result: $hard_links" >&5
24483 echo "${ECHO_T}$hard_links" >&6; }
24484 if test "$hard_links" = no; then
24485 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24493 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24494 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24497 allow_undefined_flag_GCJ=
24498 enable_shared_with_static_runtimes_GCJ=no
24500 archive_expsym_cmds_GCJ=
24501 old_archive_From_new_cmds_GCJ=
24502 old_archive_from_expsyms_cmds_GCJ=
24503 export_dynamic_flag_spec_GCJ=
24504 whole_archive_flag_spec_GCJ=
24505 thread_safe_flag_spec_GCJ=
24506 hardcode_libdir_flag_spec_GCJ=
24507 hardcode_libdir_flag_spec_ld_GCJ=
24508 hardcode_libdir_separator_GCJ=
24509 hardcode_direct_GCJ=no
24510 hardcode_minus_L_GCJ=no
24511 hardcode_shlibpath_var_GCJ=unsupported
24512 link_all_deplibs_GCJ=unknown
24513 hardcode_automatic_GCJ=no
24515 module_expsym_cmds_GCJ=
24516 always_export_symbols_GCJ=no
24517 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24518 # include_expsyms should be a list of space-separated symbols to be *always*
24519 # included in the symbol list
24520 include_expsyms_GCJ=
24521 # exclude_expsyms can be an extended regexp of symbols to exclude
24522 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24523 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24524 # as well as any symbol that contains `d'.
24525 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24526 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24527 # platforms (ab)use it in PIC code, but their linkers get confused if
24528 # the symbol is explicitly referenced. Since portable code cannot
24529 # rely on this symbol name, it's probably fine to never include it in
24530 # preloaded symbol tables.
24531 extract_expsyms_cmds=
24532 # Just being paranoid about ensuring that cc_basename is set.
24533 for cc_temp in $compiler""; do
24535 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24536 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24541 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24544 cygwin* | mingw* | pw32*)
24545 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24546 # When not using gcc, we currently assume that we are using
24547 # Microsoft Visual C++.
24548 if test "$GCC" != yes; then
24553 # we just hope/assume this is gcc and not c89 (= MSVC++)
24562 if test "$with_gnu_ld" = yes; then
24563 # If archive_cmds runs LD, not CC, wlarc should be empty
24566 # Set some defaults for GNU ld with shared library support. These
24567 # are reset later if shared libraries are not supported. Putting them
24568 # here allows them to be overridden if necessary.
24569 runpath_var=LD_RUN_PATH
24570 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24571 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24572 # ancient GNU ld didn't support --whole-archive et. al.
24573 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24574 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24576 whole_archive_flag_spec_GCJ=
24578 supports_anon_versioning=no
24579 case `$LD -v 2>/dev/null` in
24580 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24581 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24582 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24583 *\ 2.11.*) ;; # other 2.11 versions
24584 *) supports_anon_versioning=yes ;;
24587 # See if GNU ld supports shared libraries.
24589 aix3* | aix4* | aix5*)
24590 # On AIX/PPC, the GNU linker is very broken
24591 if test "$host_cpu" != ia64; then
24595 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24596 *** to be unable to reliably create shared libraries on AIX.
24597 *** Therefore, libtool is disabling shared libraries support. If you
24598 *** really care for shared libraries, you may want to modify your PATH
24599 *** so that a non-GNU linker is found, and then restart.
24606 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)'
24607 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24608 hardcode_minus_L_GCJ=yes
24610 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24611 # that the semantics of dynamic libraries on AmigaOS, at least up
24612 # to version 4, is to share data among multiple programs linked
24613 # with the same dynamic library. Since this doesn't match the
24614 # behavior of shared libraries on other platforms, we can't use
24620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24621 allow_undefined_flag_GCJ=unsupported
24622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24623 # support --undefined. This deserves some investigation. FIXME
24624 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24630 cygwin* | mingw* | pw32*)
24631 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24632 # as there is no search path for DLLs.
24633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24634 allow_undefined_flag_GCJ=unsupported
24635 always_export_symbols_GCJ=no
24636 enable_shared_with_static_runtimes_GCJ=yes
24637 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24639 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24640 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24641 # If the export-symbols file already is a .def file (1st line
24642 # is EXPORTS), use it as is; otherwise, prepend...
24643 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24644 cp $export_symbols $output_objdir/$soname.def;
24646 echo EXPORTS > $output_objdir/$soname.def;
24647 cat $export_symbols >> $output_objdir/$soname.def;
24649 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24656 hardcode_direct_GCJ=no
24657 hardcode_shlibpath_var_GCJ=no
24658 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24659 export_dynamic_flag_spec_GCJ='${wl}-E'
24660 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24661 # Instead, shared libraries are loaded at an image base (0x10000000 by
24662 # default) and relocated if they conflict, which is a slow very memory
24663 # consuming and fragmenting process. To avoid this, we pick a random,
24664 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24665 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24666 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'
24667 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'
24671 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24673 case $cc_basename,$host_cpu in
24674 pgcc*) # Portland Group C compiler
24675 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'
24676 tmp_addflag=' $pic_flag'
24678 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24679 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'
24680 tmp_addflag=' $pic_flag -Mnomain' ;;
24681 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24682 tmp_addflag=' -i_dynamic' ;;
24683 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24684 tmp_addflag=' -i_dynamic -nofor_main' ;;
24685 ifc* | ifort*) # Intel Fortran compiler
24686 tmp_addflag=' -nofor_main' ;;
24688 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24690 if test $supports_anon_versioning = yes; then
24691 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24693 $echo "local: *; };" >> $output_objdir/$libname.ver~
24694 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24703 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24706 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24707 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24712 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24716 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24717 *** create shared libraries on Solaris systems. Therefore, libtool
24718 *** is disabling shared libraries support. We urge you to upgrade GNU
24719 *** binutils to release 2.9.1 or newer. Another option is to modify
24720 *** your PATH or compiler configuration so that the native linker is
24721 *** used, and then restart.
24724 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24725 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24726 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24733 case `$LD -v 2>&1` in
24734 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24738 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24739 *** reliably create shared libraries on SCO systems. Therefore, libtool
24740 *** is disabling shared libraries support. We urge you to upgrade GNU
24741 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24742 *** your PATH or compiler configuration so that the native linker is
24743 *** used, and then restart.
24748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24749 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24750 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24751 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24760 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24762 hardcode_direct_GCJ=yes
24763 hardcode_shlibpath_var_GCJ=no
24767 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24768 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24769 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24776 if test "$ld_shlibs_GCJ" = no; then
24778 hardcode_libdir_flag_spec_GCJ=
24779 export_dynamic_flag_spec_GCJ=
24780 whole_archive_flag_spec_GCJ=
24783 # PORTME fill in a description of your system's linker (not GNU ld)
24786 allow_undefined_flag_GCJ=unsupported
24787 always_export_symbols_GCJ=yes
24788 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'
24789 # Note: this linker hardcodes the directories in LIBPATH if there
24790 # are no directories specified by -L.
24791 hardcode_minus_L_GCJ=yes
24792 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24793 # Neither direct hardcoding nor static linking is supported with a
24795 hardcode_direct_GCJ=unsupported
24800 if test "$host_cpu" = ia64; then
24801 # On IA64, the linker does run time linking by default, so we don't
24802 # have to do anything special.
24803 aix_use_runtimelinking=no
24804 exp_sym_flag='-Bexport'
24807 # If we're using GNU nm, then we don't want the "-C" option.
24808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24809 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24810 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'
24812 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'
24814 aix_use_runtimelinking=no
24816 # Test if we are trying to use run time linking or normal
24817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24818 # need to do runtime linking.
24819 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24820 for ld_flag in $LDFLAGS; do
24821 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24822 aix_use_runtimelinking=yes
24829 exp_sym_flag='-bexport'
24830 no_entry_flag='-bnoentry'
24833 # When large executables or shared objects are built, AIX ld can
24834 # have problems creating the table of contents. If linking a library
24835 # or program results in "error TOC overflow" add -mminimal-toc to
24836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24839 archive_cmds_GCJ=''
24840 hardcode_direct_GCJ=yes
24841 hardcode_libdir_separator_GCJ=':'
24842 link_all_deplibs_GCJ=yes
24844 if test "$GCC" = yes; then
24845 case $host_os in aix4.[012]|aix4.[012].*)
24846 # We only want to do this on AIX 4.2 and lower, the check
24847 # below for broken collect2 doesn't work under 4.3+
24848 collect2name=`${CC} -print-prog-name=collect2`
24849 if test -f "$collect2name" && \
24850 strings "$collect2name" | grep resolve_lib_name >/dev/null
24852 # We have reworked collect2
24853 hardcode_direct_GCJ=yes
24855 # We have old collect2
24856 hardcode_direct_GCJ=unsupported
24857 # It fails to find uninstalled libraries when the uninstalled
24858 # path is not listed in the libpath. Setting hardcode_minus_L
24859 # to unsupported forces relinking
24860 hardcode_minus_L_GCJ=yes
24861 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24862 hardcode_libdir_separator_GCJ=
24866 shared_flag='-shared'
24867 if test "$aix_use_runtimelinking" = yes; then
24868 shared_flag="$shared_flag "'${wl}-G'
24872 if test "$host_cpu" = ia64; then
24873 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24874 # chokes on -Wl,-G. The following line is correct:
24877 if test "$aix_use_runtimelinking" = yes; then
24878 shared_flag='${wl}-G'
24880 shared_flag='${wl}-bM:SRE'
24885 # It seems that -bexpall does not export symbols beginning with
24886 # underscore (_), so it is better to generate a list of symbols to export.
24887 always_export_symbols_GCJ=yes
24888 if test "$aix_use_runtimelinking" = yes; then
24889 # Warning - without using the other runtime loading flags (-brtl),
24890 # -berok will link without error, but may produce a broken library.
24891 allow_undefined_flag_GCJ='-berok'
24892 # Determine the default libpath from the value encoded in an empty executable.
24893 cat >conftest.$ac_ext <<_ACEOF
24896 cat confdefs.h >>conftest.$ac_ext
24897 cat >>conftest.$ac_ext <<_ACEOF
24898 /* end confdefs.h. */
24908 rm -f conftest.$ac_objext conftest$ac_exeext
24909 if { (ac_try="$ac_link"
24910 case "(($ac_try" in
24911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24912 *) ac_try_echo=$ac_try;;
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915 (eval "$ac_link") 2>conftest.er1
24917 grep -v '^ *+' conftest.er1 >conftest.err
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } &&
24922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24923 { (case "(($ac_try" in
24924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925 *) ac_try_echo=$ac_try;;
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928 (eval "$ac_try") 2>&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest$ac_exeext'
24933 { (case "(($ac_try" in
24934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935 *) ac_try_echo=$ac_try;;
24937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24938 (eval "$ac_try") 2>&5
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; }; then
24943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24945 # Check for a 64-bit object if we didn't find anything.
24946 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; }
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24955 rm -f core conftest.err conftest.$ac_objext \
24956 conftest$ac_exeext conftest.$ac_ext
24957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24959 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24960 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"
24962 if test "$host_cpu" = ia64; then
24963 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24964 allow_undefined_flag_GCJ="-z nodefs"
24965 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"
24967 # Determine the default libpath from the value encoded in an empty executable.
24968 cat >conftest.$ac_ext <<_ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h. */
24983 rm -f conftest.$ac_objext conftest$ac_exeext
24984 if { (ac_try="$ac_link"
24985 case "(($ac_try" in
24986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24987 *) ac_try_echo=$ac_try;;
24989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24990 (eval "$ac_link") 2>conftest.er1
24992 grep -v '^ *+' conftest.er1 >conftest.err
24994 cat conftest.err >&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } &&
24997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24998 { (case "(($ac_try" in
24999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25000 *) ac_try_echo=$ac_try;;
25002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25003 (eval "$ac_try") 2>&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; } &&
25007 { ac_try='test -s conftest$ac_exeext'
25008 { (case "(($ac_try" in
25009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010 *) ac_try_echo=$ac_try;;
25012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25013 (eval "$ac_try") 2>&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; }; then
25018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25020 # Check for a 64-bit object if we didn't find anything.
25021 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; }
25024 echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25030 rm -f core conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
25032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25034 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25035 # Warning - without using the other run time loading flags,
25036 # -berok will link without error, but may produce a broken library.
25037 no_undefined_flag_GCJ=' ${wl}-bernotok'
25038 allow_undefined_flag_GCJ=' ${wl}-berok'
25039 # Exported symbols can be pulled into shared objects from archives
25040 whole_archive_flag_spec_GCJ='$convenience'
25041 archive_cmds_need_lc_GCJ=yes
25042 # This is similar to how AIX traditionally builds its shared libraries.
25043 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'
25049 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)'
25050 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25051 hardcode_minus_L_GCJ=yes
25052 # see comment about different semantics on the GNU ld section
25057 export_dynamic_flag_spec_GCJ=-rdynamic
25060 cygwin* | mingw* | pw32*)
25061 # When not using gcc, we currently assume that we are using
25062 # Microsoft Visual C++.
25063 # hardcode_libdir_flag_spec is actually meaningless, as there is
25064 # no search path for DLLs.
25065 hardcode_libdir_flag_spec_GCJ=' '
25066 allow_undefined_flag_GCJ=unsupported
25067 # Tell ltmain to make .lib files, not .a files.
25069 # Tell ltmain to make .dll files, not .so files.
25071 # FIXME: Setting linknames here is a bad hack.
25072 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25073 # The linker will automatically build a .lib file if we build a DLL.
25074 old_archive_From_new_cmds_GCJ='true'
25075 # FIXME: Should let the user specify the lib program.
25076 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25077 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25078 enable_shared_with_static_runtimes_GCJ=yes
25081 darwin* | rhapsody*)
25083 rhapsody* | darwin1.[012])
25084 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25087 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25088 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25090 case ${MACOSX_DEPLOYMENT_TARGET} in
25092 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25095 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25101 archive_cmds_need_lc_GCJ=no
25102 hardcode_direct_GCJ=no
25103 hardcode_automatic_GCJ=yes
25104 hardcode_shlibpath_var_GCJ=unsupported
25105 whole_archive_flag_spec_GCJ=''
25106 link_all_deplibs_GCJ=yes
25107 if test "$GCC" = yes ; then
25108 output_verbose_link_cmd='echo'
25109 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25110 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25111 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25112 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}'
25113 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}'
25115 case $cc_basename in
25117 output_verbose_link_cmd='echo'
25118 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25119 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25121 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}'
25122 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}'
25132 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25133 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25134 hardcode_shlibpath_var_GCJ=no
25141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25142 # support. Future versions do this automatically, but an explicit c++rt0.o
25143 # does not break anything, and helps significantly (at the cost of a little
25146 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25147 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25148 hardcode_direct_GCJ=yes
25149 hardcode_shlibpath_var_GCJ=no
25152 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25154 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25155 hardcode_direct_GCJ=yes
25156 hardcode_minus_L_GCJ=yes
25157 hardcode_shlibpath_var_GCJ=no
25160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25161 freebsd* | kfreebsd*-gnu | dragonfly*)
25162 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25163 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25164 hardcode_direct_GCJ=yes
25165 hardcode_shlibpath_var_GCJ=no
25169 if test "$GCC" = yes; then
25170 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'
25172 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'
25174 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25175 hardcode_libdir_separator_GCJ=:
25176 hardcode_direct_GCJ=yes
25178 # hardcode_minus_L: Not really in the search PATH,
25179 # but as the default location of the library.
25180 hardcode_minus_L_GCJ=yes
25181 export_dynamic_flag_spec_GCJ='${wl}-E'
25185 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25186 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25188 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25190 if test "$with_gnu_ld" = no; then
25191 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25192 hardcode_libdir_separator_GCJ=:
25194 hardcode_direct_GCJ=yes
25195 export_dynamic_flag_spec_GCJ='${wl}-E'
25197 # hardcode_minus_L: Not really in the search PATH,
25198 # but as the default location of the library.
25199 hardcode_minus_L_GCJ=yes
25204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25207 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25210 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25213 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25219 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25222 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25225 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25229 if test "$with_gnu_ld" = no; then
25230 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25231 hardcode_libdir_separator_GCJ=:
25235 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25236 hardcode_direct_GCJ=no
25237 hardcode_shlibpath_var_GCJ=no
25240 hardcode_direct_GCJ=yes
25241 export_dynamic_flag_spec_GCJ='${wl}-E'
25243 # hardcode_minus_L: Not really in the search PATH,
25244 # but as the default location of the library.
25245 hardcode_minus_L_GCJ=yes
25251 irix5* | irix6* | nonstopux*)
25252 if test "$GCC" = yes; then
25253 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'
25255 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'
25256 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25258 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25259 hardcode_libdir_separator_GCJ=:
25260 link_all_deplibs_GCJ=yes
25264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25265 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25267 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25269 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25270 hardcode_direct_GCJ=yes
25271 hardcode_shlibpath_var_GCJ=no
25275 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25276 hardcode_direct_GCJ=yes
25277 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25278 hardcode_libdir_separator_GCJ=:
25279 hardcode_shlibpath_var_GCJ=no
25283 hardcode_direct_GCJ=yes
25284 hardcode_shlibpath_var_GCJ=no
25285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25286 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25287 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25288 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25289 export_dynamic_flag_spec_GCJ='${wl}-E'
25292 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25293 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25294 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25297 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25298 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25305 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25306 hardcode_minus_L_GCJ=yes
25307 allow_undefined_flag_GCJ=unsupported
25308 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'
25309 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25313 if test "$GCC" = yes; then
25314 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25315 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'
25317 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25318 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'
25320 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25321 hardcode_libdir_separator_GCJ=:
25324 osf4* | osf5*) # as osf3* with the addition of -msym flag
25325 if test "$GCC" = yes; then
25326 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25327 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'
25328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25330 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25331 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'
25332 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~
25333 $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'
25335 # Both c and cxx compiler support -rpath directly
25336 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25338 hardcode_libdir_separator_GCJ=:
25342 no_undefined_flag_GCJ=' -z text'
25343 if test "$GCC" = yes; then
25345 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25346 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25347 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25350 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25351 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25352 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25354 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25355 hardcode_shlibpath_var_GCJ=no
25357 solaris2.[0-5] | solaris2.[0-5].*) ;;
25359 # The compiler driver will combine linker options so we
25360 # cannot just pass the convience library names through
25361 # without $wl, iff we do not link with $LD.
25362 # Luckily, gcc supports the same syntax we need for Sun Studio.
25363 # Supported since Solaris 2.6 (maybe 2.5.1?)
25366 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25368 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' ;;
25371 link_all_deplibs_GCJ=yes
25375 if test "x$host_vendor" = xsequent; then
25376 # Use $CC to link under sequent, because it throws in some extra .o
25377 # files that make .init and .fini sections work.
25378 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25380 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25382 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25383 hardcode_direct_GCJ=yes
25384 hardcode_minus_L_GCJ=yes
25385 hardcode_shlibpath_var_GCJ=no
25389 case $host_vendor in
25391 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25392 hardcode_direct_GCJ=yes # is this really true???
25395 ## LD is ld it makes a PLAMLIB
25396 ## CC just makes a GrossModule.
25397 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25398 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25399 hardcode_direct_GCJ=no
25402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25403 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25406 runpath_var='LD_RUN_PATH'
25407 hardcode_shlibpath_var_GCJ=no
25411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25412 hardcode_shlibpath_var_GCJ=no
25413 export_dynamic_flag_spec_GCJ='-Bexport'
25417 if test -d /usr/nec; then
25418 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25419 hardcode_shlibpath_var_GCJ=no
25420 runpath_var=LD_RUN_PATH
25421 hardcode_runpath_var=yes
25426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25427 no_undefined_flag_GCJ='${wl}-z,text'
25428 archive_cmds_need_lc_GCJ=no
25429 hardcode_shlibpath_var_GCJ=no
25430 runpath_var='LD_RUN_PATH'
25432 if test "$GCC" = yes; then
25433 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25434 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25436 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25437 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25441 sysv5* | sco3.2v5* | sco5v6*)
25442 # Note: We can NOT use -z defs as we might desire, because we do not
25443 # link with -lc, and that would cause any symbols used from libc to
25444 # always be unresolved, which means just about no library would
25445 # ever link correctly. If we're not using GNU ld we use -z text
25446 # though, which does catch some bad symbols but isn't as heavy-handed
25448 no_undefined_flag_GCJ='${wl}-z,text'
25449 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25450 archive_cmds_need_lc_GCJ=no
25451 hardcode_shlibpath_var_GCJ=no
25452 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25453 hardcode_libdir_separator_GCJ=':'
25454 link_all_deplibs_GCJ=yes
25455 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25456 runpath_var='LD_RUN_PATH'
25458 if test "$GCC" = yes; then
25459 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25460 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25462 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25463 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25470 hardcode_shlibpath_var_GCJ=no
25479 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25480 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25481 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25484 # Do we need to explicitly link libc?
25486 case "x$archive_cmds_need_lc_GCJ" in
25488 # Assume -lc should be added
25489 archive_cmds_need_lc_GCJ=yes
25491 if test "$enable_shared" = yes && test "$GCC" = yes; then
25492 case $archive_cmds_GCJ in
25494 # FIXME: we may have to deal with multi-command sequences.
25497 # Test whether the compiler implicitly links with -lc since on some
25498 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25499 # to ld, don't add -lc before -lgcc.
25500 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25501 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25506 (eval $ac_compile) 2>&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } 2>conftest.err; then
25512 libobjs=conftest.$ac_objext
25514 wl=$lt_prog_compiler_wl_GCJ
25515 pic_flag=$lt_prog_compiler_pic_GCJ
25521 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25522 allow_undefined_flag_GCJ=
25523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25524 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }
25529 archive_cmds_need_lc_GCJ=no
25531 archive_cmds_need_lc_GCJ=yes
25533 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25535 cat conftest.err 1>&5
25538 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25539 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25546 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25548 library_names_spec=
25549 libname_spec='lib$name'
25553 postuninstall_cmds=
25557 shlibpath_overrides_runpath=unknown
25559 dynamic_linker="$host_os ld.so"
25560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25561 if test "$GCC" = yes; then
25562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25564 # if the path contains ";" then we assume it to be the separator
25565 # otherwise default to the standard path separator (i.e. ":") - it is
25566 # assumed that no part of a normal pathname contains ";" but that should
25567 # okay in the real world where ";" in dirpaths is itself problematic.
25568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25575 need_lib_prefix=unknown
25576 hardcode_into_libs=no
25578 # when you set need_version to no, make sure it does not cause -set_version
25579 # flags to be left without arguments
25580 need_version=unknown
25585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25586 shlibpath_var=LIBPATH
25588 # AIX 3 has no versioning support, so we append a major version to the name.
25589 soname_spec='${libname}${release}${shared_ext}$major'
25596 hardcode_into_libs=yes
25597 if test "$host_cpu" = ia64; then
25598 # AIX 5 supports IA64
25599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25600 shlibpath_var=LD_LIBRARY_PATH
25602 # With GCC up to 2.95.x, collect2 would create an import file
25603 # for dependence libraries. The import file would start with
25604 # the line `#! .'. This would cause the generated library to
25605 # depend on `.', always an invalid library. This was fixed in
25606 # development snapshots of GCC prior to 3.0.
25608 aix4 | aix4.[01] | aix4.[01].*)
25609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25614 can_build_shared=no
25618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25619 # soname into executable. Probably we can add versioning support to
25620 # collect2, so additional links can be useful in future.
25621 if test "$aix_use_runtimelinking" = yes; then
25622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25623 # instead of lib<name>.a to let people know that these are not
25624 # typical AIX shared libraries.
25625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25627 # We preserve .a as extension for shared libraries through AIX4.2
25628 # and later when we are not doing run time linking.
25629 library_names_spec='${libname}${release}.a $libname.a'
25630 soname_spec='${libname}${release}${shared_ext}$major'
25632 shlibpath_var=LIBPATH
25637 library_names_spec='$libname.ixlibrary $libname.a'
25638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25639 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'
25643 library_names_spec='${libname}${shared_ext}'
25644 dynamic_linker="$host_os ld.so"
25645 shlibpath_var=LIBRARY_PATH
25651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25652 soname_spec='${libname}${release}${shared_ext}$major'
25653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25654 shlibpath_var=LD_LIBRARY_PATH
25655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25657 # the default ld.so.conf also contains /usr/contrib/lib and
25658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25659 # libtool to hard-code these into programs
25662 cygwin* | mingw* | pw32*)
25663 version_type=windows
25668 case $GCC,$host_os in
25669 yes,cygwin* | yes,mingw* | yes,pw32*)
25670 library_names_spec='$libname.dll.a'
25671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25672 postinstall_cmds='base_file=`basename \${file}`~
25673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25674 dldir=$destdir/`dirname \$dlpath`~
25675 test -d \$dldir || mkdir -p \$dldir~
25676 $install_prog $dir/$dlname \$dldir/$dlname~
25677 chmod a+x \$dldir/$dlname'
25678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25679 dlpath=$dir/\$dldll~
25681 shlibpath_overrides_runpath=yes
25685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25686 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25687 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25690 # MinGW DLLs use traditional 'lib' prefix
25691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25693 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25694 # It is most probably a Windows format PATH printed by
25695 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25696 # path with ; separators, and with drive letters. We can handle the
25697 # drive letters (cygwin fileutils understands them), so leave them,
25698 # especially as we might pass files found there to a mingw objdump,
25699 # which wouldn't understand a cygwinified path. Ahh.
25700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25706 # pw32 DLLs use 'pw' prefix rather than 'lib'
25707 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25716 dynamic_linker='Win32 ld.exe'
25717 # FIXME: first we should search . and the directory the executable is in
25721 darwin* | rhapsody*)
25722 dynamic_linker="$host_os dyld"
25723 version_type=darwin
25726 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25727 soname_spec='${libname}${release}${major}$shared_ext'
25728 shlibpath_overrides_runpath=yes
25729 shlibpath_var=DYLD_LIBRARY_PATH
25730 shrext_cmds='.dylib'
25731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25732 if test "$GCC" = yes; then
25733 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"`
25735 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25745 soname_spec='${libname}${release}${shared_ext}$major'
25746 shlibpath_var=LD_LIBRARY_PATH
25757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25758 soname_spec='${libname}${release}${shared_ext}$major'
25759 shlibpath_var=LD_LIBRARY_PATH
25760 shlibpath_overrides_runpath=no
25761 hardcode_into_libs=yes
25762 dynamic_linker='GNU ld.so'
25765 freebsd* | dragonfly*)
25766 # DragonFly does not have aout. When/if they implement a new
25767 # versioning mechanism, adjust this.
25768 if test -x /usr/bin/objformat; then
25769 objformat=`/usr/bin/objformat`
25772 freebsd[123]*) objformat=aout ;;
25773 *) objformat=elf ;;
25776 version_type=freebsd-$objformat
25777 case $version_type in
25779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25788 shlibpath_var=LD_LIBRARY_PATH
25791 shlibpath_overrides_runpath=yes
25793 freebsd3.[01]* | freebsdelf3.[01]*)
25794 shlibpath_overrides_runpath=yes
25795 hardcode_into_libs=yes
25797 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25798 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25799 shlibpath_overrides_runpath=no
25800 hardcode_into_libs=yes
25802 freebsd*) # from 4.6 on
25803 shlibpath_overrides_runpath=yes
25804 hardcode_into_libs=yes
25813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25814 soname_spec='${libname}${release}${shared_ext}$major'
25815 shlibpath_var=LD_LIBRARY_PATH
25816 hardcode_into_libs=yes
25819 hpux9* | hpux10* | hpux11*)
25820 # Give a soname corresponding to the major version so that dld.sl refuses to
25821 # link against other versions.
25828 hardcode_into_libs=yes
25829 dynamic_linker="$host_os dld.so"
25830 shlibpath_var=LD_LIBRARY_PATH
25831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25833 soname_spec='${libname}${release}${shared_ext}$major'
25834 if test "X$HPUX_IA64_MODE" = X32; then
25835 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25843 hardcode_into_libs=yes
25844 dynamic_linker="$host_os dld.sl"
25845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25848 soname_spec='${libname}${release}${shared_ext}$major'
25849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25854 dynamic_linker="$host_os dld.sl"
25855 shlibpath_var=SHLIB_PATH
25856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25858 soname_spec='${libname}${release}${shared_ext}$major'
25861 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25862 postinstall_cmds='chmod 555 $lib'
25869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25870 soname_spec='${libname}${release}${shared_ext}$major'
25871 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25872 shlibpath_var=LD_LIBRARY_PATH
25873 shlibpath_overrides_runpath=no
25874 hardcode_into_libs=yes
25877 irix5* | irix6* | nonstopux*)
25879 nonstopux*) version_type=nonstopux ;;
25881 if test "$lt_cv_prog_gnu_ld" = yes; then
25889 soname_spec='${libname}${release}${shared_ext}$major'
25890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25892 irix5* | nonstopux*)
25893 libsuff= shlibsuff=
25896 case $LD in # libtool.m4 will add one of these switches to LD
25897 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25898 libsuff= shlibsuff= libmagic=32-bit;;
25899 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25900 libsuff=32 shlibsuff=N32 libmagic=N32;;
25901 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25902 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25903 *) libsuff= shlibsuff= libmagic=never-match;;
25907 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25908 shlibpath_overrides_runpath=no
25909 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25910 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25911 hardcode_into_libs=yes
25914 # No shared lib support for Linux oldld, aout, or coff.
25915 linux*oldld* | linux*aout* | linux*coff*)
25919 # This must be Linux ELF.
25924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25925 soname_spec='${libname}${release}${shared_ext}$major'
25926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25927 shlibpath_var=LD_LIBRARY_PATH
25928 shlibpath_overrides_runpath=no
25929 # This implies no fast_install, which is unacceptable.
25930 # Some rework will be needed to allow for fast_install
25931 # before this can be enabled.
25932 hardcode_into_libs=yes
25934 # Append ld.so.conf contents to the search path
25935 if test -f /etc/ld.so.conf; then
25936 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' ' '`
25937 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25940 # We used to test for /lib/ld.so.1 and disable shared libraries on
25941 # powerpc, because MkLinux only supported shared libraries with the
25942 # GNU dynamic linker. Since this was broken with cross compilers,
25943 # most powerpc-linux boxes support dynamic linking these days and
25944 # people can always --disable-shared, the test was removed, and we
25945 # assume the GNU/Linux dynamic linker is in use.
25946 dynamic_linker='GNU/Linux ld.so'
25953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25954 soname_spec='${libname}${release}${shared_ext}$major'
25955 shlibpath_var=LD_LIBRARY_PATH
25956 shlibpath_overrides_runpath=no
25957 hardcode_into_libs=yes
25958 dynamic_linker='GNU ld.so'
25965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25968 dynamic_linker='NetBSD (a.out) ld.so'
25970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25971 soname_spec='${libname}${release}${shared_ext}$major'
25972 dynamic_linker='NetBSD ld.elf_so'
25974 shlibpath_var=LD_LIBRARY_PATH
25975 shlibpath_overrides_runpath=yes
25976 hardcode_into_libs=yes
25981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25982 shlibpath_var=LD_LIBRARY_PATH
25983 shlibpath_overrides_runpath=yes
25990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25991 soname_spec='${libname}${release}${shared_ext}$major'
25992 shlibpath_var=LD_LIBRARY_PATH
25993 shlibpath_overrides_runpath=yes
25998 sys_lib_dlsearch_path_spec="/usr/lib"
26000 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26002 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26003 *) need_version=no ;;
26005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26007 shlibpath_var=LD_LIBRARY_PATH
26008 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26010 openbsd2.[89] | openbsd2.[89].*)
26011 shlibpath_overrides_runpath=no
26014 shlibpath_overrides_runpath=yes
26018 shlibpath_overrides_runpath=yes
26023 libname_spec='$name'
26026 library_names_spec='$libname${shared_ext} $libname.a'
26027 dynamic_linker='OS/2 ld.exe'
26028 shlibpath_var=LIBPATH
26031 osf3* | osf4* | osf5*)
26035 soname_spec='${libname}${release}${shared_ext}$major'
26036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26037 shlibpath_var=LD_LIBRARY_PATH
26038 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26039 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26047 soname_spec='${libname}${release}${shared_ext}$major'
26048 shlibpath_var=LD_LIBRARY_PATH
26049 shlibpath_overrides_runpath=yes
26050 hardcode_into_libs=yes
26051 # ldd complains unless libraries are executable
26052 postinstall_cmds='chmod +x $lib'
26057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26059 shlibpath_var=LD_LIBRARY_PATH
26060 shlibpath_overrides_runpath=yes
26061 if test "$with_gnu_ld" = yes; then
26069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26070 soname_spec='${libname}${release}${shared_ext}$major'
26071 shlibpath_var=LD_LIBRARY_PATH
26072 case $host_vendor in
26074 shlibpath_overrides_runpath=no
26076 export_dynamic_flag_spec='${wl}-Blargedynsym'
26077 runpath_var=LD_RUN_PATH
26085 shlibpath_overrides_runpath=no
26086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26092 if test -d /usr/nec ;then
26094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26095 soname_spec='$libname${shared_ext}.$major'
26096 shlibpath_var=LD_LIBRARY_PATH
26100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26101 version_type=freebsd-elf
26104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26105 soname_spec='${libname}${release}${shared_ext}$major'
26106 shlibpath_var=LD_LIBRARY_PATH
26107 hardcode_into_libs=yes
26108 if test "$with_gnu_ld" = yes; then
26109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26110 shlibpath_overrides_runpath=no
26112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26113 shlibpath_overrides_runpath=yes
26116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26120 sys_lib_dlsearch_path_spec='/usr/lib'
26125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26126 soname_spec='${libname}${release}${shared_ext}$major'
26127 shlibpath_var=LD_LIBRARY_PATH
26134 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26135 echo "${ECHO_T}$dynamic_linker" >&6; }
26136 test "$dynamic_linker" = no && can_build_shared=no
26138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26139 if test "$GCC" = yes; then
26140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26143 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26144 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26145 hardcode_action_GCJ=
26146 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26147 test -n "$runpath_var_GCJ" || \
26148 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26150 # We can hardcode non-existant directories.
26151 if test "$hardcode_direct_GCJ" != no &&
26152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26153 # have to relink, otherwise we might link with an installed library
26154 # when we should be linking with a yet-to-be-installed one
26155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26156 test "$hardcode_minus_L_GCJ" != no; then
26157 # Linking always hardcodes the temporary library directory.
26158 hardcode_action_GCJ=relink
26160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26161 hardcode_action_GCJ=immediate
26164 # We cannot hardcode anything, or else we can only hardcode existing
26166 hardcode_action_GCJ=unsupported
26168 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26169 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26171 if test "$hardcode_action_GCJ" = relink; then
26172 # Fast installation is not supported
26173 enable_fast_install=no
26174 elif test "$shlibpath_overrides_runpath" = yes ||
26175 test "$enable_shared" = no; then
26176 # Fast installation is not necessary
26177 enable_fast_install=needless
26181 # The else clause should only fire when bootstrapping the
26182 # libtool distribution, otherwise you forgot to ship ltmain.sh
26183 # with your package, and you will get complaints that there are
26184 # no rules to generate ltmain.sh.
26185 if test -f "$ltmain"; then
26186 # See if we are running on zsh, and set the options which allow our commands through
26187 # without removal of \ escapes.
26188 if test -n "${ZSH_VERSION+set}" ; then
26189 setopt NO_GLOB_SUBST
26191 # Now quote all the things that may contain metacharacters while being
26192 # careful not to overquote the AC_SUBSTed values. We take copies of the
26193 # variables and quote the copies for generation of the libtool script.
26194 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26196 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26197 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26198 deplibs_check_method reload_flag reload_cmds need_locks \
26199 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26200 lt_cv_sys_global_symbol_to_c_name_address \
26201 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26202 old_postinstall_cmds old_postuninstall_cmds \
26206 lt_prog_compiler_wl_GCJ \
26207 lt_prog_compiler_pic_GCJ \
26208 lt_prog_compiler_static_GCJ \
26209 lt_prog_compiler_no_builtin_flag_GCJ \
26210 export_dynamic_flag_spec_GCJ \
26211 thread_safe_flag_spec_GCJ \
26212 whole_archive_flag_spec_GCJ \
26213 enable_shared_with_static_runtimes_GCJ \
26214 old_archive_cmds_GCJ \
26215 old_archive_from_new_cmds_GCJ \
26216 predep_objects_GCJ \
26217 postdep_objects_GCJ \
26220 compiler_lib_search_path_GCJ \
26222 archive_expsym_cmds_GCJ \
26223 postinstall_cmds_GCJ \
26224 postuninstall_cmds_GCJ \
26225 old_archive_from_expsyms_cmds_GCJ \
26226 allow_undefined_flag_GCJ \
26227 no_undefined_flag_GCJ \
26228 export_symbols_cmds_GCJ \
26229 hardcode_libdir_flag_spec_GCJ \
26230 hardcode_libdir_flag_spec_ld_GCJ \
26231 hardcode_libdir_separator_GCJ \
26232 hardcode_automatic_GCJ \
26234 module_expsym_cmds_GCJ \
26235 lt_cv_prog_compiler_c_o_GCJ \
26236 exclude_expsyms_GCJ \
26237 include_expsyms_GCJ; do
26240 old_archive_cmds_GCJ | \
26241 old_archive_from_new_cmds_GCJ | \
26242 archive_cmds_GCJ | \
26243 archive_expsym_cmds_GCJ | \
26244 module_cmds_GCJ | \
26245 module_expsym_cmds_GCJ | \
26246 old_archive_from_expsyms_cmds_GCJ | \
26247 export_symbols_cmds_GCJ | \
26248 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26249 postinstall_cmds | postuninstall_cmds | \
26250 old_postinstall_cmds | old_postuninstall_cmds | \
26251 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26252 # Double-quote double-evaled strings.
26253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26262 *'\$0 --fallback-echo"')
26263 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26269 cat <<__EOF__ >> "$cfgfile"
26270 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26272 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26274 # Shell to use when invoking shell scripts.
26277 # Whether or not to build shared libraries.
26278 build_libtool_libs=$enable_shared
26280 # Whether or not to build static libraries.
26281 build_old_libs=$enable_static
26283 # Whether or not to add -lc for building shared libraries.
26284 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26286 # Whether or not to disallow shared libs when runtime libs are static
26287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26289 # Whether or not to optimize for fast installation.
26290 fast_install=$enable_fast_install
26293 host_alias=$host_alias
26297 # The build system.
26298 build_alias=$build_alias
26302 # An echo program that does not interpret backslashes.
26307 AR_FLAGS=$lt_AR_FLAGS
26312 # LTCC compiler flags.
26313 LTCFLAGS=$lt_LTCFLAGS
26315 # A language-specific compiler.
26316 CC=$lt_compiler_GCJ
26318 # Is the compiler the GNU C compiler?
26324 # The linker used to build libraries.
26327 # Whether we need hard or soft links.
26330 # A BSD-compatible nm program.
26333 # A symbol stripping program
26336 # Used to examine libraries when file_magic_cmd begins "file"
26337 MAGIC_CMD=$MAGIC_CMD
26339 # Used on cygwin: DLL creation program.
26342 # Used on cygwin: object dumper.
26345 # Used on cygwin: assembler.
26348 # The name of the directory that contains temporary libtool files.
26351 # How to create reloadable object files.
26352 reload_flag=$lt_reload_flag
26353 reload_cmds=$lt_reload_cmds
26355 # How to pass a linker flag through the compiler.
26356 wl=$lt_lt_prog_compiler_wl_GCJ
26358 # Object file suffix (normally "o").
26359 objext="$ac_objext"
26361 # Old archive suffix (normally "a").
26364 # Shared library suffix (normally ".so").
26365 shrext_cmds='$shrext_cmds'
26367 # Executable file suffix (normally "").
26370 # Additional compiler flags for building library objects.
26371 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26374 # What is the maximum length of a command?
26375 max_cmd_len=$lt_cv_sys_max_cmd_len
26377 # Does compiler simultaneously support -c and -o options?
26378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26380 # Must we lock files when doing compilation?
26381 need_locks=$lt_need_locks
26383 # Do we need the lib prefix for modules?
26384 need_lib_prefix=$need_lib_prefix
26386 # Do we need a version for libraries?
26387 need_version=$need_version
26389 # Whether dlopen is supported.
26390 dlopen_support=$enable_dlopen
26392 # Whether dlopen of programs is supported.
26393 dlopen_self=$enable_dlopen_self
26395 # Whether dlopen of statically linked programs is supported.
26396 dlopen_self_static=$enable_dlopen_self_static
26398 # Compiler flag to prevent dynamic linking.
26399 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26401 # Compiler flag to turn off builtin functions.
26402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26404 # Compiler flag to allow reflexive dlopens.
26405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26407 # Compiler flag to generate shared objects directly from archives.
26408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26410 # Compiler flag to generate thread-safe objects.
26411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26413 # Library versioning type.
26414 version_type=$version_type
26416 # Format of library name prefix.
26417 libname_spec=$lt_libname_spec
26419 # List of archive names. First name is the real one, the rest are links.
26420 # The last name is the one that the linker finds with -lNAME.
26421 library_names_spec=$lt_library_names_spec
26423 # The coded name of the library, if different from the real name.
26424 soname_spec=$lt_soname_spec
26426 # Commands used to build and install an old-style archive.
26428 old_archive_cmds=$lt_old_archive_cmds_GCJ
26429 old_postinstall_cmds=$lt_old_postinstall_cmds
26430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26432 # Create an old-style archive from a shared archive.
26433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26435 # Create a temporary old-style archive to link instead of a shared archive.
26436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26438 # Commands used to build and install a shared archive.
26439 archive_cmds=$lt_archive_cmds_GCJ
26440 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26441 postinstall_cmds=$lt_postinstall_cmds
26442 postuninstall_cmds=$lt_postuninstall_cmds
26444 # Commands used to build a loadable module (assumed same as above if empty)
26445 module_cmds=$lt_module_cmds_GCJ
26446 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26448 # Commands to strip libraries.
26449 old_striplib=$lt_old_striplib
26450 striplib=$lt_striplib
26452 # Dependencies to place before the objects being linked to create a
26454 predep_objects=$lt_predep_objects_GCJ
26456 # Dependencies to place after the objects being linked to create a
26458 postdep_objects=$lt_postdep_objects_GCJ
26460 # Dependencies to place before the objects being linked to create a
26462 predeps=$lt_predeps_GCJ
26464 # Dependencies to place after the objects being linked to create a
26466 postdeps=$lt_postdeps_GCJ
26468 # The library search path used internally by the compiler when linking
26469 # a shared library.
26470 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26472 # Method to check whether dependent libraries are shared objects.
26473 deplibs_check_method=$lt_deplibs_check_method
26475 # Command to use when deplibs_check_method == file_magic.
26476 file_magic_cmd=$lt_file_magic_cmd
26478 # Flag that allows shared libraries with undefined symbols to be built.
26479 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26481 # Flag that forces no undefined symbols.
26482 no_undefined_flag=$lt_no_undefined_flag_GCJ
26484 # Commands used to finish a libtool library installation in a directory.
26485 finish_cmds=$lt_finish_cmds
26487 # Same as above, but a single script fragment to be evaled but not shown.
26488 finish_eval=$lt_finish_eval
26490 # Take the output of nm and produce a listing of raw symbols and C names.
26491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26493 # Transform the output of nm in a proper C declaration
26494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26496 # Transform the output of nm in a C name address pair
26497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26499 # This is the shared library runtime path variable.
26500 runpath_var=$runpath_var
26502 # This is the shared library path variable.
26503 shlibpath_var=$shlibpath_var
26505 # Is shlibpath searched before the hard-coded library search path?
26506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26508 # How to hardcode a shared library path into an executable.
26509 hardcode_action=$hardcode_action_GCJ
26511 # Whether we should hardcode library paths into libraries.
26512 hardcode_into_libs=$hardcode_into_libs
26514 # Flag to hardcode \$libdir into a binary during linking.
26515 # This must work even if \$libdir does not exist.
26516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26518 # If ld is used when linking, flag to hardcode \$libdir into
26519 # a binary during linking. This must work even if \$libdir does
26521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26523 # Whether we need a single -rpath flag with a separated argument.
26524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26527 # resulting binary.
26528 hardcode_direct=$hardcode_direct_GCJ
26530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26531 # resulting binary.
26532 hardcode_minus_L=$hardcode_minus_L_GCJ
26534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26535 # the resulting binary.
26536 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26538 # Set to yes if building a shared library automatically hardcodes DIR into the library
26539 # and all subsequent libraries and executables linked against it.
26540 hardcode_automatic=$hardcode_automatic_GCJ
26542 # Variables whose values should be saved in libtool wrapper scripts and
26543 # restored at relink time.
26544 variables_saved_for_relink="$variables_saved_for_relink"
26546 # Whether libtool must link a program against all its dependency libraries.
26547 link_all_deplibs=$link_all_deplibs_GCJ
26549 # Compile-time system search path for libraries
26550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26552 # Run-time system search path for libraries
26553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26555 # Fix the shell variable \$srcfile for the compiler.
26556 fix_srcfile_path="$fix_srcfile_path_GCJ"
26558 # Set to yes if exported symbols are required.
26559 always_export_symbols=$always_export_symbols_GCJ
26561 # The commands to list exported symbols.
26562 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26564 # The commands to extract the exported symbol list from a shared archive.
26565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26567 # Symbols that should not be listed in the preloaded symbols.
26568 exclude_expsyms=$lt_exclude_expsyms_GCJ
26570 # Symbols that must always be exported.
26571 include_expsyms=$lt_include_expsyms_GCJ
26573 # ### END LIBTOOL TAG CONFIG: $tagname
26579 # If there is no Makefile yet, we rely on a make rule to execute
26580 # `config.status --recheck' to rerun these tests and create the
26581 # libtool script then.
26582 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26583 if test -f "$ltmain_in"; then
26584 test -f Makefile && make "$ltmain"
26590 ac_cpp='$CPP $CPPFLAGS'
26591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26604 ac_cpp='$CPP $CPPFLAGS'
26605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26610 # Source file extension for RC test sources.
26613 # Object file extension for compiled RC test sources.
26617 # Code to be used in simple compile tests
26618 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26620 # Code to be used in simple link tests
26621 lt_simple_link_test_code="$lt_simple_compile_test_code"
26623 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26625 # If no C compiler was specified, use CC.
26628 # If no C compiler flags were specified, use CFLAGS.
26629 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26631 # Allow CC to be a program name with arguments.
26635 # save warnings/boilerplate of simple test code
26636 ac_outfile=conftest.$ac_objext
26637 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26638 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26639 _lt_compiler_boilerplate=`cat conftest.err`
26642 ac_outfile=conftest.$ac_objext
26643 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26644 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26645 _lt_linker_boilerplate=`cat conftest.err`
26649 # Allow CC to be a program name with arguments.
26654 for cc_temp in $compiler""; do
26656 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26657 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26662 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26664 lt_cv_prog_compiler_c_o_RC=yes
26666 # The else clause should only fire when bootstrapping the
26667 # libtool distribution, otherwise you forgot to ship ltmain.sh
26668 # with your package, and you will get complaints that there are
26669 # no rules to generate ltmain.sh.
26670 if test -f "$ltmain"; then
26671 # See if we are running on zsh, and set the options which allow our commands through
26672 # without removal of \ escapes.
26673 if test -n "${ZSH_VERSION+set}" ; then
26674 setopt NO_GLOB_SUBST
26676 # Now quote all the things that may contain metacharacters while being
26677 # careful not to overquote the AC_SUBSTed values. We take copies of the
26678 # variables and quote the copies for generation of the libtool script.
26679 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26681 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26682 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26683 deplibs_check_method reload_flag reload_cmds need_locks \
26684 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26685 lt_cv_sys_global_symbol_to_c_name_address \
26686 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26687 old_postinstall_cmds old_postuninstall_cmds \
26691 lt_prog_compiler_wl_RC \
26692 lt_prog_compiler_pic_RC \
26693 lt_prog_compiler_static_RC \
26694 lt_prog_compiler_no_builtin_flag_RC \
26695 export_dynamic_flag_spec_RC \
26696 thread_safe_flag_spec_RC \
26697 whole_archive_flag_spec_RC \
26698 enable_shared_with_static_runtimes_RC \
26699 old_archive_cmds_RC \
26700 old_archive_from_new_cmds_RC \
26701 predep_objects_RC \
26702 postdep_objects_RC \
26705 compiler_lib_search_path_RC \
26707 archive_expsym_cmds_RC \
26708 postinstall_cmds_RC \
26709 postuninstall_cmds_RC \
26710 old_archive_from_expsyms_cmds_RC \
26711 allow_undefined_flag_RC \
26712 no_undefined_flag_RC \
26713 export_symbols_cmds_RC \
26714 hardcode_libdir_flag_spec_RC \
26715 hardcode_libdir_flag_spec_ld_RC \
26716 hardcode_libdir_separator_RC \
26717 hardcode_automatic_RC \
26719 module_expsym_cmds_RC \
26720 lt_cv_prog_compiler_c_o_RC \
26721 exclude_expsyms_RC \
26722 include_expsyms_RC; do
26725 old_archive_cmds_RC | \
26726 old_archive_from_new_cmds_RC | \
26727 archive_cmds_RC | \
26728 archive_expsym_cmds_RC | \
26730 module_expsym_cmds_RC | \
26731 old_archive_from_expsyms_cmds_RC | \
26732 export_symbols_cmds_RC | \
26733 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26734 postinstall_cmds | postuninstall_cmds | \
26735 old_postinstall_cmds | old_postuninstall_cmds | \
26736 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26737 # Double-quote double-evaled strings.
26738 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26747 *'\$0 --fallback-echo"')
26748 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26754 cat <<__EOF__ >> "$cfgfile"
26755 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26759 # Shell to use when invoking shell scripts.
26762 # Whether or not to build shared libraries.
26763 build_libtool_libs=$enable_shared
26765 # Whether or not to build static libraries.
26766 build_old_libs=$enable_static
26768 # Whether or not to add -lc for building shared libraries.
26769 build_libtool_need_lc=$archive_cmds_need_lc_RC
26771 # Whether or not to disallow shared libs when runtime libs are static
26772 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26774 # Whether or not to optimize for fast installation.
26775 fast_install=$enable_fast_install
26778 host_alias=$host_alias
26782 # The build system.
26783 build_alias=$build_alias
26787 # An echo program that does not interpret backslashes.
26792 AR_FLAGS=$lt_AR_FLAGS
26797 # LTCC compiler flags.
26798 LTCFLAGS=$lt_LTCFLAGS
26800 # A language-specific compiler.
26803 # Is the compiler the GNU C compiler?
26809 # The linker used to build libraries.
26812 # Whether we need hard or soft links.
26815 # A BSD-compatible nm program.
26818 # A symbol stripping program
26821 # Used to examine libraries when file_magic_cmd begins "file"
26822 MAGIC_CMD=$MAGIC_CMD
26824 # Used on cygwin: DLL creation program.
26827 # Used on cygwin: object dumper.
26830 # Used on cygwin: assembler.
26833 # The name of the directory that contains temporary libtool files.
26836 # How to create reloadable object files.
26837 reload_flag=$lt_reload_flag
26838 reload_cmds=$lt_reload_cmds
26840 # How to pass a linker flag through the compiler.
26841 wl=$lt_lt_prog_compiler_wl_RC
26843 # Object file suffix (normally "o").
26844 objext="$ac_objext"
26846 # Old archive suffix (normally "a").
26849 # Shared library suffix (normally ".so").
26850 shrext_cmds='$shrext_cmds'
26852 # Executable file suffix (normally "").
26855 # Additional compiler flags for building library objects.
26856 pic_flag=$lt_lt_prog_compiler_pic_RC
26859 # What is the maximum length of a command?
26860 max_cmd_len=$lt_cv_sys_max_cmd_len
26862 # Does compiler simultaneously support -c and -o options?
26863 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26865 # Must we lock files when doing compilation?
26866 need_locks=$lt_need_locks
26868 # Do we need the lib prefix for modules?
26869 need_lib_prefix=$need_lib_prefix
26871 # Do we need a version for libraries?
26872 need_version=$need_version
26874 # Whether dlopen is supported.
26875 dlopen_support=$enable_dlopen
26877 # Whether dlopen of programs is supported.
26878 dlopen_self=$enable_dlopen_self
26880 # Whether dlopen of statically linked programs is supported.
26881 dlopen_self_static=$enable_dlopen_self_static
26883 # Compiler flag to prevent dynamic linking.
26884 link_static_flag=$lt_lt_prog_compiler_static_RC
26886 # Compiler flag to turn off builtin functions.
26887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26889 # Compiler flag to allow reflexive dlopens.
26890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26892 # Compiler flag to generate shared objects directly from archives.
26893 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26895 # Compiler flag to generate thread-safe objects.
26896 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26898 # Library versioning type.
26899 version_type=$version_type
26901 # Format of library name prefix.
26902 libname_spec=$lt_libname_spec
26904 # List of archive names. First name is the real one, the rest are links.
26905 # The last name is the one that the linker finds with -lNAME.
26906 library_names_spec=$lt_library_names_spec
26908 # The coded name of the library, if different from the real name.
26909 soname_spec=$lt_soname_spec
26911 # Commands used to build and install an old-style archive.
26913 old_archive_cmds=$lt_old_archive_cmds_RC
26914 old_postinstall_cmds=$lt_old_postinstall_cmds
26915 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26917 # Create an old-style archive from a shared archive.
26918 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26920 # Create a temporary old-style archive to link instead of a shared archive.
26921 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26923 # Commands used to build and install a shared archive.
26924 archive_cmds=$lt_archive_cmds_RC
26925 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26926 postinstall_cmds=$lt_postinstall_cmds
26927 postuninstall_cmds=$lt_postuninstall_cmds
26929 # Commands used to build a loadable module (assumed same as above if empty)
26930 module_cmds=$lt_module_cmds_RC
26931 module_expsym_cmds=$lt_module_expsym_cmds_RC
26933 # Commands to strip libraries.
26934 old_striplib=$lt_old_striplib
26935 striplib=$lt_striplib
26937 # Dependencies to place before the objects being linked to create a
26939 predep_objects=$lt_predep_objects_RC
26941 # Dependencies to place after the objects being linked to create a
26943 postdep_objects=$lt_postdep_objects_RC
26945 # Dependencies to place before the objects being linked to create a
26947 predeps=$lt_predeps_RC
26949 # Dependencies to place after the objects being linked to create a
26951 postdeps=$lt_postdeps_RC
26953 # The library search path used internally by the compiler when linking
26954 # a shared library.
26955 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26957 # Method to check whether dependent libraries are shared objects.
26958 deplibs_check_method=$lt_deplibs_check_method
26960 # Command to use when deplibs_check_method == file_magic.
26961 file_magic_cmd=$lt_file_magic_cmd
26963 # Flag that allows shared libraries with undefined symbols to be built.
26964 allow_undefined_flag=$lt_allow_undefined_flag_RC
26966 # Flag that forces no undefined symbols.
26967 no_undefined_flag=$lt_no_undefined_flag_RC
26969 # Commands used to finish a libtool library installation in a directory.
26970 finish_cmds=$lt_finish_cmds
26972 # Same as above, but a single script fragment to be evaled but not shown.
26973 finish_eval=$lt_finish_eval
26975 # Take the output of nm and produce a listing of raw symbols and C names.
26976 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26978 # Transform the output of nm in a proper C declaration
26979 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26981 # Transform the output of nm in a C name address pair
26982 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26984 # This is the shared library runtime path variable.
26985 runpath_var=$runpath_var
26987 # This is the shared library path variable.
26988 shlibpath_var=$shlibpath_var
26990 # Is shlibpath searched before the hard-coded library search path?
26991 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26993 # How to hardcode a shared library path into an executable.
26994 hardcode_action=$hardcode_action_RC
26996 # Whether we should hardcode library paths into libraries.
26997 hardcode_into_libs=$hardcode_into_libs
26999 # Flag to hardcode \$libdir into a binary during linking.
27000 # This must work even if \$libdir does not exist.
27001 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27003 # If ld is used when linking, flag to hardcode \$libdir into
27004 # a binary during linking. This must work even if \$libdir does
27006 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27008 # Whether we need a single -rpath flag with a separated argument.
27009 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27011 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27012 # resulting binary.
27013 hardcode_direct=$hardcode_direct_RC
27015 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27016 # resulting binary.
27017 hardcode_minus_L=$hardcode_minus_L_RC
27019 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27020 # the resulting binary.
27021 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27023 # Set to yes if building a shared library automatically hardcodes DIR into the library
27024 # and all subsequent libraries and executables linked against it.
27025 hardcode_automatic=$hardcode_automatic_RC
27027 # Variables whose values should be saved in libtool wrapper scripts and
27028 # restored at relink time.
27029 variables_saved_for_relink="$variables_saved_for_relink"
27031 # Whether libtool must link a program against all its dependency libraries.
27032 link_all_deplibs=$link_all_deplibs_RC
27034 # Compile-time system search path for libraries
27035 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27037 # Run-time system search path for libraries
27038 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27040 # Fix the shell variable \$srcfile for the compiler.
27041 fix_srcfile_path="$fix_srcfile_path_RC"
27043 # Set to yes if exported symbols are required.
27044 always_export_symbols=$always_export_symbols_RC
27046 # The commands to list exported symbols.
27047 export_symbols_cmds=$lt_export_symbols_cmds_RC
27049 # The commands to extract the exported symbol list from a shared archive.
27050 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27052 # Symbols that should not be listed in the preloaded symbols.
27053 exclude_expsyms=$lt_exclude_expsyms_RC
27055 # Symbols that must always be exported.
27056 include_expsyms=$lt_include_expsyms_RC
27058 # ### END LIBTOOL TAG CONFIG: $tagname
27064 # If there is no Makefile yet, we rely on a make rule to execute
27065 # `config.status --recheck' to rerun these tests and create the
27066 # libtool script then.
27067 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27068 if test -f "$ltmain_in"; then
27069 test -f Makefile && make "$ltmain"
27075 ac_cpp='$CPP $CPPFLAGS'
27076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27085 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27086 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27087 { (exit 1); exit 1; }; }
27091 # Append the new tag name to the list of available tags.
27092 if test -n "$tagname" ; then
27093 available_tags="$available_tags $tagname"
27099 # Now substitute the updated list of available tags.
27100 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27101 mv "${ofile}T" "$ofile"
27105 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27106 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27107 { (exit 1); exit 1; }; }
27113 # This can be used to rebuild libtool when needed
27114 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27116 # Always use our own libtool.
27117 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27119 # Prevent multiple expansion
27141 if test "$lt_cv_dlopen_self" = "yes" ; then
27143 cat >>confdefs.h <<\_ACEOF
27144 #define CAN_DLOPEN_SELF 1
27150 if test "$WITH_LLVMGCCDIR" = "default" ; then
27151 LLVMGCC="llvm-gcc${EXEEXT}"
27152 LLVMGXX="llvm-g++${EXEEXT}"
27153 LLVMGCCCOMMAND="$LLVMGCC"
27154 LLVMGXXCOMMAND="$LLVMGXX"
27155 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27157 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27159 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27160 set dummy $LLVMGCC; ac_word=$2
27161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27163 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27164 echo $ECHO_N "(cached) $ECHO_C" >&6
27168 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27172 for as_dir in $PATH
27175 test -z "$as_dir" && as_dir=.
27176 for ac_exec_ext in '' $ac_executable_extensions; do
27177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27178 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27189 LLVMGCC=$ac_cv_path_LLVMGCC
27190 if test -n "$LLVMGCC"; then
27191 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27192 echo "${ECHO_T}$LLVMGCC" >&6; }
27194 { echo "$as_me:$LINENO: result: no" >&5
27195 echo "${ECHO_T}no" >&6; }
27199 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27200 set dummy $LLVMGXX; ac_word=$2
27201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27203 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27208 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27212 for as_dir in $PATH
27215 test -z "$as_dir" && as_dir=.
27216 for ac_exec_ext in '' $ac_executable_extensions; do
27217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27218 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27229 LLVMGXX=$ac_cv_path_LLVMGXX
27230 if test -n "$LLVMGXX"; then
27231 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27232 echo "${ECHO_T}$LLVMGXX" >&6; }
27234 { echo "$as_me:$LINENO: result: no" >&5
27235 echo "${ECHO_T}no" >&6; }
27240 if test -z "$LLVMGCC"; then
27241 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27242 LLVMGCCCOMMAND="$LLVMGCC"
27244 if test -z "$LLVMGXX"; then
27245 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27246 LLVMGXXCOMMAND="$LLVMGXX"
27253 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27255 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27260 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27261 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27274 if test "$GCC" != "yes" && test "$ICC" != "yes"
27276 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27277 echo "$as_me: error: gcc|icc required but not found" >&2;}
27278 { (exit 1); exit 1; }; }
27281 if test "$GXX" != "yes" && test "$IXX" != "yes"
27283 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27284 echo "$as_me: error: g++|icc required but not found" >&2;}
27285 { (exit 1); exit 1; }; }
27288 if test "$GCC" = "yes"
27290 cat >conftest.$ac_ext <<_ACEOF
27291 #if !defined(__GNUC__) || __GNUC__ < 3
27292 #error Unsupported GCC version
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
27298 case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27303 (eval "$ac_compile") 2>conftest.er1
27305 grep -v '^ *+' conftest.er1 >conftest.err
27307 cat conftest.err >&5
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); } &&
27310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27311 { (case "(($ac_try" in
27312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313 *) ac_try_echo=$ac_try;;
27315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316 (eval "$ac_try") 2>&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; } &&
27320 { ac_try='test -s conftest.$ac_objext'
27321 { (case "(($ac_try" in
27322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323 *) ac_try_echo=$ac_try;;
27325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326 (eval "$ac_try") 2>&5
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; }; then
27332 echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27335 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27336 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27337 { (exit 1); exit 1; }; }
27340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27343 if test -z "$llvm_cv_gnu_make_command"
27345 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27346 echo "$as_me: error: GNU Make required but not found" >&2;}
27347 { (exit 1); exit 1; }; }
27350 { echo "$as_me:$LINENO: result: ok" >&5
27351 echo "${ECHO_T}ok" >&6; }
27355 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27356 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27357 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27358 echo $ECHO_N "(cached) $ECHO_C" >&6
27360 ac_check_lib_save_LIBS=$LIBS
27362 cat >conftest.$ac_ext <<_ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h. */
27369 /* Override any GCC internal prototype to avoid an error.
27370 Use char because int might match the return type of a GCC
27371 builtin and then its argument prototype would still apply. */
27379 return elf_begin ();
27384 rm -f conftest.$ac_objext conftest$ac_exeext
27385 if { (ac_try="$ac_link"
27386 case "(($ac_try" in
27387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388 *) ac_try_echo=$ac_try;;
27390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391 (eval "$ac_link") 2>conftest.er1
27393 grep -v '^ *+' conftest.er1 >conftest.err
27395 cat conftest.err >&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); } &&
27398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27399 { (case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404 (eval "$ac_try") 2>&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; } &&
27408 { ac_try='test -s conftest$ac_exeext'
27409 { (case "(($ac_try" in
27410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411 *) ac_try_echo=$ac_try;;
27413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414 (eval "$ac_try") 2>&5
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; }; then
27418 ac_cv_lib_elf_elf_begin=yes
27420 echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27423 ac_cv_lib_elf_elf_begin=no
27426 rm -f core conftest.err conftest.$ac_objext \
27427 conftest$ac_exeext conftest.$ac_ext
27428 LIBS=$ac_check_lib_save_LIBS
27430 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27431 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27432 if test $ac_cv_lib_elf_elf_begin = yes; then
27433 cat >>confdefs.h <<_ACEOF
27434 #define HAVE_LIBELF 1
27442 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27443 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27444 if test "${ac_cv_lib_m_sin+set}" = set; then
27445 echo $ECHO_N "(cached) $ECHO_C" >&6
27447 ac_check_lib_save_LIBS=$LIBS
27449 cat >conftest.$ac_ext <<_ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h. */
27456 /* Override any GCC internal prototype to avoid an error.
27457 Use char because int might match the return type of a GCC
27458 builtin and then its argument prototype would still apply. */
27471 rm -f conftest.$ac_objext conftest$ac_exeext
27472 if { (ac_try="$ac_link"
27473 case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_link") 2>conftest.er1
27480 grep -v '^ *+' conftest.er1 >conftest.err
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } &&
27485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27486 { (case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; } &&
27495 { ac_try='test -s conftest$ac_exeext'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27505 ac_cv_lib_m_sin=yes
27507 echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27513 rm -f core conftest.err conftest.$ac_objext \
27514 conftest$ac_exeext conftest.$ac_ext
27515 LIBS=$ac_check_lib_save_LIBS
27517 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27518 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27519 if test $ac_cv_lib_m_sin = yes; then
27520 cat >>confdefs.h <<_ACEOF
27521 #define HAVE_LIBM 1
27528 if test "$llvm_cv_os_type" = "MingW" ; then
27530 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27531 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27532 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27533 echo $ECHO_N "(cached) $ECHO_C" >&6
27535 ac_check_lib_save_LIBS=$LIBS
27536 LIBS="-limagehlp $LIBS"
27537 cat >conftest.$ac_ext <<_ACEOF
27540 cat confdefs.h >>conftest.$ac_ext
27541 cat >>conftest.$ac_ext <<_ACEOF
27542 /* end confdefs.h. */
27553 rm -f conftest.$ac_objext conftest$ac_exeext
27554 if { (ac_try="$ac_link"
27555 case "(($ac_try" in
27556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557 *) ac_try_echo=$ac_try;;
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_link") 2>conftest.er1
27562 grep -v '^ *+' conftest.er1 >conftest.err
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } &&
27567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27568 { (case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_try") 2>&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; } &&
27577 { ac_try='test -s conftest$ac_exeext'
27578 { (case "(($ac_try" in
27579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580 *) ac_try_echo=$ac_try;;
27582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583 (eval "$ac_try") 2>&5
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; }; then
27587 ac_cv_lib_imagehlp_main=yes
27589 echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27592 ac_cv_lib_imagehlp_main=no
27595 rm -f core conftest.err conftest.$ac_objext \
27596 conftest$ac_exeext conftest.$ac_ext
27597 LIBS=$ac_check_lib_save_LIBS
27599 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27600 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27601 if test $ac_cv_lib_imagehlp_main = yes; then
27602 cat >>confdefs.h <<_ACEOF
27603 #define HAVE_LIBIMAGEHLP 1
27606 LIBS="-limagehlp $LIBS"
27611 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27612 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27613 if test "${ac_cv_lib_psapi_main+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
27616 ac_check_lib_save_LIBS=$LIBS
27617 LIBS="-lpsapi $LIBS"
27618 cat >conftest.$ac_ext <<_ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27634 rm -f conftest.$ac_objext conftest$ac_exeext
27635 if { (ac_try="$ac_link"
27636 case "(($ac_try" in
27637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27638 *) ac_try_echo=$ac_try;;
27640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27641 (eval "$ac_link") 2>conftest.er1
27643 grep -v '^ *+' conftest.er1 >conftest.err
27645 cat conftest.err >&5
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); } &&
27648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27649 { (case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_try") 2>&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; } &&
27658 { ac_try='test -s conftest$ac_exeext'
27659 { (case "(($ac_try" in
27660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661 *) ac_try_echo=$ac_try;;
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664 (eval "$ac_try") 2>&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; }; then
27668 ac_cv_lib_psapi_main=yes
27670 echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27673 ac_cv_lib_psapi_main=no
27676 rm -f core conftest.err conftest.$ac_objext \
27677 conftest$ac_exeext conftest.$ac_ext
27678 LIBS=$ac_check_lib_save_LIBS
27680 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27681 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27682 if test $ac_cv_lib_psapi_main = yes; then
27683 cat >>confdefs.h <<_ACEOF
27684 #define HAVE_LIBPSAPI 1
27687 LIBS="-lpsapi $LIBS"
27693 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27694 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27695 if test "${ac_cv_search_dlopen+set}" = set; then
27696 echo $ECHO_N "(cached) $ECHO_C" >&6
27698 ac_func_search_save_LIBS=$LIBS
27699 cat >conftest.$ac_ext <<_ACEOF
27702 cat confdefs.h >>conftest.$ac_ext
27703 cat >>conftest.$ac_ext <<_ACEOF
27704 /* end confdefs.h. */
27706 /* Override any GCC internal prototype to avoid an error.
27707 Use char because int might match the return type of a GCC
27708 builtin and then its argument prototype would still apply. */
27721 for ac_lib in '' dl; do
27722 if test -z "$ac_lib"; then
27723 ac_res="none required"
27726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27728 rm -f conftest.$ac_objext conftest$ac_exeext
27729 if { (ac_try="$ac_link"
27730 case "(($ac_try" in
27731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732 *) ac_try_echo=$ac_try;;
27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735 (eval "$ac_link") 2>conftest.er1
27737 grep -v '^ *+' conftest.er1 >conftest.err
27739 cat conftest.err >&5
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); } &&
27742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27743 { (case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_try") 2>&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; } &&
27752 { ac_try='test -s conftest$ac_exeext'
27753 { (case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758 (eval "$ac_try") 2>&5
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; }; then
27762 ac_cv_search_dlopen=$ac_res
27764 echo "$as_me: failed program was:" >&5
27765 sed 's/^/| /' conftest.$ac_ext >&5
27770 rm -f core conftest.err conftest.$ac_objext \
27772 if test "${ac_cv_search_dlopen+set}" = set; then
27776 if test "${ac_cv_search_dlopen+set}" = set; then
27779 ac_cv_search_dlopen=no
27781 rm conftest.$ac_ext
27782 LIBS=$ac_func_search_save_LIBS
27784 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27785 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27786 ac_res=$ac_cv_search_dlopen
27787 if test "$ac_res" != no; then
27788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27790 cat >>confdefs.h <<\_ACEOF
27791 #define HAVE_DLOPEN 1
27795 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27796 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27800 if test "$llvm_cv_enable_libffi" = "yes" ; then
27801 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27802 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27803 if test "${ac_cv_search_ffi_call+set}" = set; then
27804 echo $ECHO_N "(cached) $ECHO_C" >&6
27806 ac_func_search_save_LIBS=$LIBS
27807 cat >conftest.$ac_ext <<_ACEOF
27810 cat confdefs.h >>conftest.$ac_ext
27811 cat >>conftest.$ac_ext <<_ACEOF
27812 /* end confdefs.h. */
27814 /* Override any GCC internal prototype to avoid an error.
27815 Use char because int might match the return type of a GCC
27816 builtin and then its argument prototype would still apply. */
27824 return ffi_call ();
27829 for ac_lib in '' ffi; do
27830 if test -z "$ac_lib"; then
27831 ac_res="none required"
27834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27836 rm -f conftest.$ac_objext conftest$ac_exeext
27837 if { (ac_try="$ac_link"
27838 case "(($ac_try" in
27839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840 *) ac_try_echo=$ac_try;;
27842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27843 (eval "$ac_link") 2>conftest.er1
27845 grep -v '^ *+' conftest.er1 >conftest.err
27847 cat conftest.err >&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); } &&
27850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27851 { (case "(($ac_try" in
27852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853 *) ac_try_echo=$ac_try;;
27855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856 (eval "$ac_try") 2>&5
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; } &&
27860 { ac_try='test -s conftest$ac_exeext'
27861 { (case "(($ac_try" in
27862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863 *) ac_try_echo=$ac_try;;
27865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866 (eval "$ac_try") 2>&5
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); }; }; then
27870 ac_cv_search_ffi_call=$ac_res
27872 echo "$as_me: failed program was:" >&5
27873 sed 's/^/| /' conftest.$ac_ext >&5
27878 rm -f core conftest.err conftest.$ac_objext \
27880 if test "${ac_cv_search_ffi_call+set}" = set; then
27884 if test "${ac_cv_search_ffi_call+set}" = set; then
27887 ac_cv_search_ffi_call=no
27889 rm conftest.$ac_ext
27890 LIBS=$ac_func_search_save_LIBS
27892 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27893 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27894 ac_res=$ac_cv_search_ffi_call
27895 if test "$ac_res" != no; then
27896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27898 cat >>confdefs.h <<\_ACEOF
27899 #define HAVE_FFI_CALL 1
27903 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27904 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27909 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27910 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27911 if test "${ac_cv_search_mallinfo+set}" = set; then
27912 echo $ECHO_N "(cached) $ECHO_C" >&6
27914 ac_func_search_save_LIBS=$LIBS
27915 cat >conftest.$ac_ext <<_ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h. */
27922 /* Override any GCC internal prototype to avoid an error.
27923 Use char because int might match the return type of a GCC
27924 builtin and then its argument prototype would still apply. */
27932 return mallinfo ();
27937 for ac_lib in '' malloc; do
27938 if test -z "$ac_lib"; then
27939 ac_res="none required"
27942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27944 rm -f conftest.$ac_objext conftest$ac_exeext
27945 if { (ac_try="$ac_link"
27946 case "(($ac_try" in
27947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948 *) ac_try_echo=$ac_try;;
27950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951 (eval "$ac_link") 2>conftest.er1
27953 grep -v '^ *+' conftest.er1 >conftest.err
27955 cat conftest.err >&5
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); } &&
27958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27959 { (case "(($ac_try" in
27960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961 *) ac_try_echo=$ac_try;;
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964 (eval "$ac_try") 2>&5
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; } &&
27968 { ac_try='test -s conftest$ac_exeext'
27969 { (case "(($ac_try" in
27970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27971 *) ac_try_echo=$ac_try;;
27973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27974 (eval "$ac_try") 2>&5
27976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977 (exit $ac_status); }; }; then
27978 ac_cv_search_mallinfo=$ac_res
27980 echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27986 rm -f core conftest.err conftest.$ac_objext \
27988 if test "${ac_cv_search_mallinfo+set}" = set; then
27992 if test "${ac_cv_search_mallinfo+set}" = set; then
27995 ac_cv_search_mallinfo=no
27997 rm conftest.$ac_ext
27998 LIBS=$ac_func_search_save_LIBS
28000 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28001 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28002 ac_res=$ac_cv_search_mallinfo
28003 if test "$ac_res" != no; then
28004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28006 cat >>confdefs.h <<\_ACEOF
28007 #define HAVE_MALLINFO 1
28013 if test "$ENABLE_THREADS" -eq 1 ; then
28015 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28016 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28017 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28020 ac_check_lib_save_LIBS=$LIBS
28021 LIBS="-lpthread $LIBS"
28022 cat >conftest.$ac_ext <<_ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h. */
28029 /* Override any GCC internal prototype to avoid an error.
28030 Use char because int might match the return type of a GCC
28031 builtin and then its argument prototype would still apply. */
28035 char pthread_mutex_init ();
28039 return pthread_mutex_init ();
28044 rm -f conftest.$ac_objext conftest$ac_exeext
28045 if { (ac_try="$ac_link"
28046 case "(($ac_try" in
28047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048 *) ac_try_echo=$ac_try;;
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051 (eval "$ac_link") 2>conftest.er1
28053 grep -v '^ *+' conftest.er1 >conftest.err
28055 cat conftest.err >&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } &&
28058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28059 { (case "(($ac_try" in
28060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061 *) ac_try_echo=$ac_try;;
28063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064 (eval "$ac_try") 2>&5
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }; } &&
28068 { ac_try='test -s conftest$ac_exeext'
28069 { (case "(($ac_try" in
28070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071 *) ac_try_echo=$ac_try;;
28073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28074 (eval "$ac_try") 2>&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); }; }; then
28078 ac_cv_lib_pthread_pthread_mutex_init=yes
28080 echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28083 ac_cv_lib_pthread_pthread_mutex_init=no
28086 rm -f core conftest.err conftest.$ac_objext \
28087 conftest$ac_exeext conftest.$ac_ext
28088 LIBS=$ac_check_lib_save_LIBS
28090 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28091 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28092 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28093 cat >>confdefs.h <<_ACEOF
28094 #define HAVE_LIBPTHREAD 1
28097 LIBS="-lpthread $LIBS"
28101 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28102 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28103 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28104 echo $ECHO_N "(cached) $ECHO_C" >&6
28106 ac_func_search_save_LIBS=$LIBS
28107 cat >conftest.$ac_ext <<_ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h. */
28114 /* Override any GCC internal prototype to avoid an error.
28115 Use char because int might match the return type of a GCC
28116 builtin and then its argument prototype would still apply. */
28120 char pthread_mutex_lock ();
28124 return pthread_mutex_lock ();
28129 for ac_lib in '' pthread; do
28130 if test -z "$ac_lib"; then
28131 ac_res="none required"
28134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28136 rm -f conftest.$ac_objext conftest$ac_exeext
28137 if { (ac_try="$ac_link"
28138 case "(($ac_try" in
28139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140 *) ac_try_echo=$ac_try;;
28142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28143 (eval "$ac_link") 2>conftest.er1
28145 grep -v '^ *+' conftest.er1 >conftest.err
28147 cat conftest.err >&5
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); } &&
28150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28151 { (case "(($ac_try" in
28152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28153 *) ac_try_echo=$ac_try;;
28155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28156 (eval "$ac_try") 2>&5
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); }; } &&
28160 { ac_try='test -s conftest$ac_exeext'
28161 { (case "(($ac_try" in
28162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163 *) ac_try_echo=$ac_try;;
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166 (eval "$ac_try") 2>&5
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); }; }; then
28170 ac_cv_search_pthread_mutex_lock=$ac_res
28172 echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28178 rm -f core conftest.err conftest.$ac_objext \
28180 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28184 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28187 ac_cv_search_pthread_mutex_lock=no
28189 rm conftest.$ac_ext
28190 LIBS=$ac_func_search_save_LIBS
28192 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28193 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28194 ac_res=$ac_cv_search_pthread_mutex_lock
28195 if test "$ac_res" != no; then
28196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28198 cat >>confdefs.h <<\_ACEOF
28199 #define HAVE_PTHREAD_MUTEX_LOCK 1
28204 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28205 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28206 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28207 echo $ECHO_N "(cached) $ECHO_C" >&6
28209 ac_func_search_save_LIBS=$LIBS
28210 cat >conftest.$ac_ext <<_ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h. */
28217 /* Override any GCC internal prototype to avoid an error.
28218 Use char because int might match the return type of a GCC
28219 builtin and then its argument prototype would still apply. */
28223 char pthread_rwlock_init ();
28227 return pthread_rwlock_init ();
28232 for ac_lib in '' pthread; do
28233 if test -z "$ac_lib"; then
28234 ac_res="none required"
28237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28239 rm -f conftest.$ac_objext conftest$ac_exeext
28240 if { (ac_try="$ac_link"
28241 case "(($ac_try" in
28242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243 *) ac_try_echo=$ac_try;;
28245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246 (eval "$ac_link") 2>conftest.er1
28248 grep -v '^ *+' conftest.er1 >conftest.err
28250 cat conftest.err >&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } &&
28253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28254 { (case "(($ac_try" in
28255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259 (eval "$ac_try") 2>&5
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; } &&
28263 { ac_try='test -s conftest$ac_exeext'
28264 { (case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269 (eval "$ac_try") 2>&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; }; then
28273 ac_cv_search_pthread_rwlock_init=$ac_res
28275 echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28281 rm -f core conftest.err conftest.$ac_objext \
28283 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28287 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28290 ac_cv_search_pthread_rwlock_init=no
28292 rm conftest.$ac_ext
28293 LIBS=$ac_func_search_save_LIBS
28295 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28296 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28297 ac_res=$ac_cv_search_pthread_rwlock_init
28298 if test "$ac_res" != no; then
28299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28301 cat >>confdefs.h <<\_ACEOF
28302 #define HAVE_PTHREAD_RWLOCK_INIT 1
28307 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28308 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28309 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28310 echo $ECHO_N "(cached) $ECHO_C" >&6
28312 ac_func_search_save_LIBS=$LIBS
28313 cat >conftest.$ac_ext <<_ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h. */
28320 /* Override any GCC internal prototype to avoid an error.
28321 Use char because int might match the return type of a GCC
28322 builtin and then its argument prototype would still apply. */
28326 char pthread_getspecific ();
28330 return pthread_getspecific ();
28335 for ac_lib in '' pthread; do
28336 if test -z "$ac_lib"; then
28337 ac_res="none required"
28340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28342 rm -f conftest.$ac_objext conftest$ac_exeext
28343 if { (ac_try="$ac_link"
28344 case "(($ac_try" in
28345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346 *) ac_try_echo=$ac_try;;
28348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349 (eval "$ac_link") 2>conftest.er1
28351 grep -v '^ *+' conftest.er1 >conftest.err
28353 cat conftest.err >&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } &&
28356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28357 { (case "(($ac_try" in
28358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359 *) ac_try_echo=$ac_try;;
28361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362 (eval "$ac_try") 2>&5
28364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); }; } &&
28366 { ac_try='test -s conftest$ac_exeext'
28367 { (case "(($ac_try" in
28368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28369 *) ac_try_echo=$ac_try;;
28371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28372 (eval "$ac_try") 2>&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; }; then
28376 ac_cv_search_pthread_getspecific=$ac_res
28378 echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28384 rm -f core conftest.err conftest.$ac_objext \
28386 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28390 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28393 ac_cv_search_pthread_getspecific=no
28395 rm conftest.$ac_ext
28396 LIBS=$ac_func_search_save_LIBS
28398 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28399 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28400 ac_res=$ac_cv_search_pthread_getspecific
28401 if test "$ac_res" != no; then
28402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28404 cat >>confdefs.h <<\_ACEOF
28405 #define HAVE_PTHREAD_GETSPECIFIC 1
28413 # Check whether --with-udis86 was given.
28414 if test "${with_udis86+set}" = set; then
28415 withval=$with_udis86;
28420 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28423 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28424 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28425 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28426 echo $ECHO_N "(cached) $ECHO_C" >&6
28428 ac_check_lib_save_LIBS=$LIBS
28429 LIBS="-ludis86 $LIBS"
28430 cat >conftest.$ac_ext <<_ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h. */
28437 /* Override any GCC internal prototype to avoid an error.
28438 Use char because int might match the return type of a GCC
28439 builtin and then its argument prototype would still apply. */
28452 rm -f conftest.$ac_objext conftest$ac_exeext
28453 if { (ac_try="$ac_link"
28454 case "(($ac_try" in
28455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28456 *) ac_try_echo=$ac_try;;
28458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28459 (eval "$ac_link") 2>conftest.er1
28461 grep -v '^ *+' conftest.er1 >conftest.err
28463 cat conftest.err >&5
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); } &&
28466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28467 { (case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_try") 2>&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); }; } &&
28476 { ac_try='test -s conftest$ac_exeext'
28477 { (case "(($ac_try" in
28478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28479 *) ac_try_echo=$ac_try;;
28481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28482 (eval "$ac_try") 2>&5
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); }; }; then
28486 ac_cv_lib_udis86_ud_init=yes
28488 echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28491 ac_cv_lib_udis86_ud_init=no
28494 rm -f core conftest.err conftest.$ac_objext \
28495 conftest$ac_exeext conftest.$ac_ext
28496 LIBS=$ac_check_lib_save_LIBS
28498 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28499 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28500 if test $ac_cv_lib_udis86_ud_init = yes; then
28501 cat >>confdefs.h <<_ACEOF
28502 #define HAVE_LIBUDIS86 1
28505 LIBS="-ludis86 $LIBS"
28509 echo "Error! You need to have libudis86 around."
28521 cat >>confdefs.h <<_ACEOF
28522 #define USE_UDIS86 $USE_UDIS86
28532 ac_header_dirent=no
28533 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28534 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28535 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28536 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28538 echo $ECHO_N "(cached) $ECHO_C" >&6
28540 cat >conftest.$ac_ext <<_ACEOF
28543 cat confdefs.h >>conftest.$ac_ext
28544 cat >>conftest.$ac_ext <<_ACEOF
28545 /* end confdefs.h. */
28546 #include <sys/types.h>
28558 rm -f conftest.$ac_objext
28559 if { (ac_try="$ac_compile"
28560 case "(($ac_try" in
28561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562 *) ac_try_echo=$ac_try;;
28564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565 (eval "$ac_compile") 2>conftest.er1
28567 grep -v '^ *+' conftest.er1 >conftest.err
28569 cat conftest.err >&5
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); } &&
28572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28573 { (case "(($ac_try" in
28574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578 (eval "$ac_try") 2>&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; } &&
28582 { ac_try='test -s conftest.$ac_objext'
28583 { (case "(($ac_try" in
28584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28585 *) ac_try_echo=$ac_try;;
28587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28588 (eval "$ac_try") 2>&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; }; then
28592 eval "$as_ac_Header=yes"
28594 echo "$as_me: failed program was:" >&5
28595 sed 's/^/| /' conftest.$ac_ext >&5
28597 eval "$as_ac_Header=no"
28600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28602 ac_res=`eval echo '${'$as_ac_Header'}'`
28603 { echo "$as_me:$LINENO: result: $ac_res" >&5
28604 echo "${ECHO_T}$ac_res" >&6; }
28605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28606 cat >>confdefs.h <<_ACEOF
28607 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28610 ac_header_dirent=$ac_hdr; break
28614 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28615 if test $ac_header_dirent = dirent.h; then
28616 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28617 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28618 if test "${ac_cv_search_opendir+set}" = set; then
28619 echo $ECHO_N "(cached) $ECHO_C" >&6
28621 ac_func_search_save_LIBS=$LIBS
28622 cat >conftest.$ac_ext <<_ACEOF
28625 cat confdefs.h >>conftest.$ac_ext
28626 cat >>conftest.$ac_ext <<_ACEOF
28627 /* end confdefs.h. */
28629 /* Override any GCC internal prototype to avoid an error.
28630 Use char because int might match the return type of a GCC
28631 builtin and then its argument prototype would still apply. */
28644 for ac_lib in '' dir; do
28645 if test -z "$ac_lib"; then
28646 ac_res="none required"
28649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28651 rm -f conftest.$ac_objext conftest$ac_exeext
28652 if { (ac_try="$ac_link"
28653 case "(($ac_try" in
28654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28655 *) ac_try_echo=$ac_try;;
28657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28658 (eval "$ac_link") 2>conftest.er1
28660 grep -v '^ *+' conftest.er1 >conftest.err
28662 cat conftest.err >&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); } &&
28665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28666 { (case "(($ac_try" in
28667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28668 *) ac_try_echo=$ac_try;;
28670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28671 (eval "$ac_try") 2>&5
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); }; } &&
28675 { ac_try='test -s conftest$ac_exeext'
28676 { (case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681 (eval "$ac_try") 2>&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; }; then
28685 ac_cv_search_opendir=$ac_res
28687 echo "$as_me: failed program was:" >&5
28688 sed 's/^/| /' conftest.$ac_ext >&5
28693 rm -f core conftest.err conftest.$ac_objext \
28695 if test "${ac_cv_search_opendir+set}" = set; then
28699 if test "${ac_cv_search_opendir+set}" = set; then
28702 ac_cv_search_opendir=no
28704 rm conftest.$ac_ext
28705 LIBS=$ac_func_search_save_LIBS
28707 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28708 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28709 ac_res=$ac_cv_search_opendir
28710 if test "$ac_res" != no; then
28711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28716 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28717 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28718 if test "${ac_cv_search_opendir+set}" = set; then
28719 echo $ECHO_N "(cached) $ECHO_C" >&6
28721 ac_func_search_save_LIBS=$LIBS
28722 cat >conftest.$ac_ext <<_ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h. */
28729 /* Override any GCC internal prototype to avoid an error.
28730 Use char because int might match the return type of a GCC
28731 builtin and then its argument prototype would still apply. */
28744 for ac_lib in '' x; do
28745 if test -z "$ac_lib"; then
28746 ac_res="none required"
28749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28751 rm -f conftest.$ac_objext conftest$ac_exeext
28752 if { (ac_try="$ac_link"
28753 case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_link") 2>conftest.er1
28760 grep -v '^ *+' conftest.er1 >conftest.err
28762 cat conftest.err >&5
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); } &&
28765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28766 { (case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_try") 2>&5
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; } &&
28775 { ac_try='test -s conftest$ac_exeext'
28776 { (case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_try") 2>&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; }; then
28785 ac_cv_search_opendir=$ac_res
28787 echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28793 rm -f core conftest.err conftest.$ac_objext \
28795 if test "${ac_cv_search_opendir+set}" = set; then
28799 if test "${ac_cv_search_opendir+set}" = set; then
28802 ac_cv_search_opendir=no
28804 rm conftest.$ac_ext
28805 LIBS=$ac_func_search_save_LIBS
28807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28809 ac_res=$ac_cv_search_opendir
28810 if test "$ac_res" != no; then
28811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28817 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28818 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28819 if test "${ac_cv_header_mmap_anon+set}" = set; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28823 ac_cpp='$CPP $CPPFLAGS'
28824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28828 cat >conftest.$ac_ext <<_ACEOF
28831 cat confdefs.h >>conftest.$ac_ext
28832 cat >>conftest.$ac_ext <<_ACEOF
28833 /* end confdefs.h. */
28834 #include <sys/mman.h>
28835 #include <unistd.h>
28840 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28845 rm -f conftest.$ac_objext
28846 if { (ac_try="$ac_compile"
28847 case "(($ac_try" in
28848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849 *) ac_try_echo=$ac_try;;
28851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852 (eval "$ac_compile") 2>conftest.er1
28854 grep -v '^ *+' conftest.er1 >conftest.err
28856 cat conftest.err >&5
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); } &&
28859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28860 { (case "(($ac_try" in
28861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28862 *) ac_try_echo=$ac_try;;
28864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28865 (eval "$ac_try") 2>&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; } &&
28869 { ac_try='test -s conftest.$ac_objext'
28870 { (case "(($ac_try" in
28871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872 *) ac_try_echo=$ac_try;;
28874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875 (eval "$ac_try") 2>&5
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; }; then
28879 ac_cv_header_mmap_anon=yes
28881 echo "$as_me: failed program was:" >&5
28882 sed 's/^/| /' conftest.$ac_ext >&5
28884 ac_cv_header_mmap_anon=no
28887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28889 ac_cpp='$CPP $CPPFLAGS'
28890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28896 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28897 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28898 if test "$ac_cv_header_mmap_anon" = yes; then
28900 cat >>confdefs.h <<\_ACEOF
28901 #define HAVE_MMAP_ANONYMOUS 1
28906 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28907 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28908 if test "${ac_cv_header_stat_broken+set}" = set; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28911 cat >conftest.$ac_ext <<_ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h. */
28917 #include <sys/types.h>
28918 #include <sys/stat.h>
28920 #if defined S_ISBLK && defined S_IFDIR
28921 # if S_ISBLK (S_IFDIR)
28926 #if defined S_ISBLK && defined S_IFCHR
28927 # if S_ISBLK (S_IFCHR)
28932 #if defined S_ISLNK && defined S_IFREG
28933 # if S_ISLNK (S_IFREG)
28938 #if defined S_ISSOCK && defined S_IFREG
28939 # if S_ISSOCK (S_IFREG)
28945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28946 $EGREP "You lose" >/dev/null 2>&1; then
28947 ac_cv_header_stat_broken=yes
28949 ac_cv_header_stat_broken=no
28954 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28955 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28956 if test $ac_cv_header_stat_broken = yes; then
28958 cat >>confdefs.h <<\_ACEOF
28959 #define STAT_MACROS_BROKEN 1
28964 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28965 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28966 if test "${ac_cv_header_stdc+set}" = set; then
28967 echo $ECHO_N "(cached) $ECHO_C" >&6
28969 cat >conftest.$ac_ext <<_ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h. */
28975 #include <stdlib.h>
28976 #include <stdarg.h>
28977 #include <string.h>
28988 rm -f conftest.$ac_objext
28989 if { (ac_try="$ac_compile"
28990 case "(($ac_try" in
28991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992 *) ac_try_echo=$ac_try;;
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995 (eval "$ac_compile") 2>conftest.er1
28997 grep -v '^ *+' conftest.er1 >conftest.err
28999 cat conftest.err >&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } &&
29002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29003 { (case "(($ac_try" in
29004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005 *) ac_try_echo=$ac_try;;
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008 (eval "$ac_try") 2>&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); }; } &&
29012 { ac_try='test -s conftest.$ac_objext'
29013 { (case "(($ac_try" in
29014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015 *) ac_try_echo=$ac_try;;
29017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018 (eval "$ac_try") 2>&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); }; }; then
29022 ac_cv_header_stdc=yes
29024 echo "$as_me: failed program was:" >&5
29025 sed 's/^/| /' conftest.$ac_ext >&5
29027 ac_cv_header_stdc=no
29030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29032 if test $ac_cv_header_stdc = yes; then
29033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29034 cat >conftest.$ac_ext <<_ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h. */
29040 #include <string.h>
29043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29044 $EGREP "memchr" >/dev/null 2>&1; then
29047 ac_cv_header_stdc=no
29053 if test $ac_cv_header_stdc = yes; then
29054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29055 cat >conftest.$ac_ext <<_ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h. */
29061 #include <stdlib.h>
29064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29065 $EGREP "free" >/dev/null 2>&1; then
29068 ac_cv_header_stdc=no
29074 if test $ac_cv_header_stdc = yes; then
29075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29076 if test "$cross_compiling" = yes; then
29079 cat >conftest.$ac_ext <<_ACEOF
29082 cat confdefs.h >>conftest.$ac_ext
29083 cat >>conftest.$ac_ext <<_ACEOF
29084 /* end confdefs.h. */
29086 #include <stdlib.h>
29087 #if ((' ' & 0x0FF) == 0x020)
29088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29091 # define ISLOWER(c) \
29092 (('a' <= (c) && (c) <= 'i') \
29093 || ('j' <= (c) && (c) <= 'r') \
29094 || ('s' <= (c) && (c) <= 'z'))
29095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29103 for (i = 0; i < 256; i++)
29104 if (XOR (islower (i), ISLOWER (i))
29105 || toupper (i) != TOUPPER (i))
29110 rm -f conftest$ac_exeext
29111 if { (ac_try="$ac_link"
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_link") 2>&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29121 { (case "(($ac_try" in
29122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29123 *) ac_try_echo=$ac_try;;
29125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29126 (eval "$ac_try") 2>&5
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); }; }; then
29132 echo "$as_me: program exited with status $ac_status" >&5
29133 echo "$as_me: failed program was:" >&5
29134 sed 's/^/| /' conftest.$ac_ext >&5
29136 ( exit $ac_status )
29137 ac_cv_header_stdc=no
29139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29147 if test $ac_cv_header_stdc = yes; then
29149 cat >>confdefs.h <<\_ACEOF
29150 #define STDC_HEADERS 1
29155 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29156 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29157 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29160 cat >conftest.$ac_ext <<_ACEOF
29163 cat confdefs.h >>conftest.$ac_ext
29164 cat >>conftest.$ac_ext <<_ACEOF
29165 /* end confdefs.h. */
29166 #include <sys/types.h>
29167 #include <sys/wait.h>
29168 #ifndef WEXITSTATUS
29169 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29172 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29180 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29185 rm -f conftest.$ac_objext
29186 if { (ac_try="$ac_compile"
29187 case "(($ac_try" in
29188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29189 *) ac_try_echo=$ac_try;;
29191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29192 (eval "$ac_compile") 2>conftest.er1
29194 grep -v '^ *+' conftest.er1 >conftest.err
29196 cat conftest.err >&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); } &&
29199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29200 { (case "(($ac_try" in
29201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29202 *) ac_try_echo=$ac_try;;
29204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29205 (eval "$ac_try") 2>&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); }; } &&
29209 { ac_try='test -s conftest.$ac_objext'
29210 { (case "(($ac_try" in
29211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212 *) ac_try_echo=$ac_try;;
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215 (eval "$ac_try") 2>&5
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); }; }; then
29219 ac_cv_header_sys_wait_h=yes
29221 echo "$as_me: failed program was:" >&5
29222 sed 's/^/| /' conftest.$ac_ext >&5
29224 ac_cv_header_sys_wait_h=no
29227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29229 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29230 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29231 if test $ac_cv_header_sys_wait_h = yes; then
29233 cat >>confdefs.h <<\_ACEOF
29234 #define HAVE_SYS_WAIT_H 1
29239 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29240 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29241 if test "${ac_cv_header_time+set}" = set; then
29242 echo $ECHO_N "(cached) $ECHO_C" >&6
29244 cat >conftest.$ac_ext <<_ACEOF
29247 cat confdefs.h >>conftest.$ac_ext
29248 cat >>conftest.$ac_ext <<_ACEOF
29249 /* end confdefs.h. */
29250 #include <sys/types.h>
29251 #include <sys/time.h>
29257 if ((struct tm *) 0)
29263 rm -f conftest.$ac_objext
29264 if { (ac_try="$ac_compile"
29265 case "(($ac_try" in
29266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29267 *) ac_try_echo=$ac_try;;
29269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29270 (eval "$ac_compile") 2>conftest.er1
29272 grep -v '^ *+' conftest.er1 >conftest.err
29274 cat conftest.err >&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } &&
29277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29278 { (case "(($ac_try" in
29279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280 *) ac_try_echo=$ac_try;;
29282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29283 (eval "$ac_try") 2>&5
29285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286 (exit $ac_status); }; } &&
29287 { ac_try='test -s conftest.$ac_objext'
29288 { (case "(($ac_try" in
29289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290 *) ac_try_echo=$ac_try;;
29292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29293 (eval "$ac_try") 2>&5
29295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296 (exit $ac_status); }; }; then
29297 ac_cv_header_time=yes
29299 echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29302 ac_cv_header_time=no
29305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29307 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29308 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29309 if test $ac_cv_header_time = yes; then
29311 cat >>confdefs.h <<\_ACEOF
29312 #define TIME_WITH_SYS_TIME 1
29324 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29333 ac_res=`eval echo '${'$as_ac_Header'}'`
29334 { echo "$as_me:$LINENO: result: $ac_res" >&5
29335 echo "${ECHO_T}$ac_res" >&6; }
29337 # Is the header compilable?
29338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29340 cat >conftest.$ac_ext <<_ACEOF
29343 cat confdefs.h >>conftest.$ac_ext
29344 cat >>conftest.$ac_ext <<_ACEOF
29345 /* end confdefs.h. */
29346 $ac_includes_default
29347 #include <$ac_header>
29349 rm -f conftest.$ac_objext
29350 if { (ac_try="$ac_compile"
29351 case "(($ac_try" in
29352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353 *) ac_try_echo=$ac_try;;
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356 (eval "$ac_compile") 2>conftest.er1
29358 grep -v '^ *+' conftest.er1 >conftest.err
29360 cat conftest.err >&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); } &&
29363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29364 { (case "(($ac_try" in
29365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29366 *) ac_try_echo=$ac_try;;
29368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29369 (eval "$ac_try") 2>&5
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); }; } &&
29373 { ac_try='test -s conftest.$ac_objext'
29374 { (case "(($ac_try" in
29375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29376 *) ac_try_echo=$ac_try;;
29378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29379 (eval "$ac_try") 2>&5
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); }; }; then
29383 ac_header_compiler=yes
29385 echo "$as_me: failed program was:" >&5
29386 sed 's/^/| /' conftest.$ac_ext >&5
29388 ac_header_compiler=no
29391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29393 echo "${ECHO_T}$ac_header_compiler" >&6; }
29395 # Is the header present?
29396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29398 cat >conftest.$ac_ext <<_ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h. */
29404 #include <$ac_header>
29406 if { (ac_try="$ac_cpp conftest.$ac_ext"
29407 case "(($ac_try" in
29408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29409 *) ac_try_echo=$ac_try;;
29411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29414 grep -v '^ *+' conftest.er1 >conftest.err
29416 cat conftest.err >&5
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); } >/dev/null; then
29419 if test -s conftest.err; then
29420 ac_cpp_err=$ac_c_preproc_warn_flag
29421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29428 if test -z "$ac_cpp_err"; then
29429 ac_header_preproc=yes
29431 echo "$as_me: failed program was:" >&5
29432 sed 's/^/| /' conftest.$ac_ext >&5
29434 ac_header_preproc=no
29437 rm -f conftest.err conftest.$ac_ext
29438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29439 echo "${ECHO_T}$ac_header_preproc" >&6; }
29441 # So? What about this header?
29442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29448 ac_header_preproc=yes
29451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29464 ## ----------------------------------- ##
29465 ## Report this to llvmbugs@cs.uiuc.edu ##
29466 ## ----------------------------------- ##
29468 ) | sed "s/^/$as_me: WARNING: /" >&2
29471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29474 echo $ECHO_N "(cached) $ECHO_C" >&6
29476 eval "$as_ac_Header=\$ac_header_preproc"
29478 ac_res=`eval echo '${'$as_ac_Header'}'`
29479 { echo "$as_me:$LINENO: result: $ac_res" >&5
29480 echo "${ECHO_T}$ac_res" >&6; }
29483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29484 cat >>confdefs.h <<_ACEOF
29485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29498 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29505 echo $ECHO_N "(cached) $ECHO_C" >&6
29507 ac_res=`eval echo '${'$as_ac_Header'}'`
29508 { echo "$as_me:$LINENO: result: $ac_res" >&5
29509 echo "${ECHO_T}$ac_res" >&6; }
29511 # Is the header compilable?
29512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29514 cat >conftest.$ac_ext <<_ACEOF
29517 cat confdefs.h >>conftest.$ac_ext
29518 cat >>conftest.$ac_ext <<_ACEOF
29519 /* end confdefs.h. */
29520 $ac_includes_default
29521 #include <$ac_header>
29523 rm -f conftest.$ac_objext
29524 if { (ac_try="$ac_compile"
29525 case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_compile") 2>conftest.er1
29532 grep -v '^ *+' conftest.er1 >conftest.err
29534 cat conftest.err >&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } &&
29537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29538 { (case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_try") 2>&5
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); }; } &&
29547 { ac_try='test -s conftest.$ac_objext'
29548 { (case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_try") 2>&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); }; }; then
29557 ac_header_compiler=yes
29559 echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29562 ac_header_compiler=no
29565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29567 echo "${ECHO_T}$ac_header_compiler" >&6; }
29569 # Is the header present?
29570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29572 cat >conftest.$ac_ext <<_ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h. */
29578 #include <$ac_header>
29580 if { (ac_try="$ac_cpp conftest.$ac_ext"
29581 case "(($ac_try" in
29582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29583 *) ac_try_echo=$ac_try;;
29585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29588 grep -v '^ *+' conftest.er1 >conftest.err
29590 cat conftest.err >&5
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); } >/dev/null; then
29593 if test -s conftest.err; then
29594 ac_cpp_err=$ac_c_preproc_warn_flag
29595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29602 if test -z "$ac_cpp_err"; then
29603 ac_header_preproc=yes
29605 echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29608 ac_header_preproc=no
29611 rm -f conftest.err conftest.$ac_ext
29612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29613 echo "${ECHO_T}$ac_header_preproc" >&6; }
29615 # So? What about this header?
29616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29622 ac_header_preproc=yes
29625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29638 ## ----------------------------------- ##
29639 ## Report this to llvmbugs@cs.uiuc.edu ##
29640 ## ----------------------------------- ##
29642 ) | sed "s/^/$as_me: WARNING: /" >&2
29645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 eval "$as_ac_Header=\$ac_header_preproc"
29652 ac_res=`eval echo '${'$as_ac_Header'}'`
29653 { echo "$as_me:$LINENO: result: $ac_res" >&5
29654 echo "${ECHO_T}$ac_res" >&6; }
29657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29658 cat >>confdefs.h <<_ACEOF
29659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29668 for ac_header in utime.h windows.h
29670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29675 echo $ECHO_N "(cached) $ECHO_C" >&6
29677 ac_res=`eval echo '${'$as_ac_Header'}'`
29678 { echo "$as_me:$LINENO: result: $ac_res" >&5
29679 echo "${ECHO_T}$ac_res" >&6; }
29681 # Is the header compilable?
29682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29684 cat >conftest.$ac_ext <<_ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h. */
29690 $ac_includes_default
29691 #include <$ac_header>
29693 rm -f conftest.$ac_objext
29694 if { (ac_try="$ac_compile"
29695 case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_compile") 2>conftest.er1
29702 grep -v '^ *+' conftest.er1 >conftest.err
29704 cat conftest.err >&5
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); } &&
29707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29708 { (case "(($ac_try" in
29709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29710 *) ac_try_echo=$ac_try;;
29712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29713 (eval "$ac_try") 2>&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; } &&
29717 { ac_try='test -s conftest.$ac_objext'
29718 { (case "(($ac_try" in
29719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720 *) ac_try_echo=$ac_try;;
29722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723 (eval "$ac_try") 2>&5
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); }; }; then
29727 ac_header_compiler=yes
29729 echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29732 ac_header_compiler=no
29735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29737 echo "${ECHO_T}$ac_header_compiler" >&6; }
29739 # Is the header present?
29740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29742 cat >conftest.$ac_ext <<_ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h. */
29748 #include <$ac_header>
29750 if { (ac_try="$ac_cpp conftest.$ac_ext"
29751 case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29758 grep -v '^ *+' conftest.er1 >conftest.err
29760 cat conftest.err >&5
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); } >/dev/null; then
29763 if test -s conftest.err; then
29764 ac_cpp_err=$ac_c_preproc_warn_flag
29765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29772 if test -z "$ac_cpp_err"; then
29773 ac_header_preproc=yes
29775 echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29778 ac_header_preproc=no
29781 rm -f conftest.err conftest.$ac_ext
29782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29783 echo "${ECHO_T}$ac_header_preproc" >&6; }
29785 # So? What about this header?
29786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29792 ac_header_preproc=yes
29795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29808 ## ----------------------------------- ##
29809 ## Report this to llvmbugs@cs.uiuc.edu ##
29810 ## ----------------------------------- ##
29812 ) | sed "s/^/$as_me: WARNING: /" >&2
29815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29818 echo $ECHO_N "(cached) $ECHO_C" >&6
29820 eval "$as_ac_Header=\$ac_header_preproc"
29822 ac_res=`eval echo '${'$as_ac_Header'}'`
29823 { echo "$as_me:$LINENO: result: $ac_res" >&5
29824 echo "${ECHO_T}$ac_res" >&6; }
29827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29828 cat >>confdefs.h <<_ACEOF
29829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29840 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29847 echo $ECHO_N "(cached) $ECHO_C" >&6
29849 ac_res=`eval echo '${'$as_ac_Header'}'`
29850 { echo "$as_me:$LINENO: result: $ac_res" >&5
29851 echo "${ECHO_T}$ac_res" >&6; }
29853 # Is the header compilable?
29854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29856 cat >conftest.$ac_ext <<_ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h. */
29862 $ac_includes_default
29863 #include <$ac_header>
29865 rm -f conftest.$ac_objext
29866 if { (ac_try="$ac_compile"
29867 case "(($ac_try" in
29868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869 *) ac_try_echo=$ac_try;;
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872 (eval "$ac_compile") 2>conftest.er1
29874 grep -v '^ *+' conftest.er1 >conftest.err
29876 cat conftest.err >&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); } &&
29879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29880 { (case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_try") 2>&5
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; } &&
29889 { ac_try='test -s conftest.$ac_objext'
29890 { (case "(($ac_try" in
29891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29892 *) ac_try_echo=$ac_try;;
29894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29895 (eval "$ac_try") 2>&5
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; }; then
29899 ac_header_compiler=yes
29901 echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29904 ac_header_compiler=no
29907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29909 echo "${ECHO_T}$ac_header_compiler" >&6; }
29911 # Is the header present?
29912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29914 cat >conftest.$ac_ext <<_ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h. */
29920 #include <$ac_header>
29922 if { (ac_try="$ac_cpp conftest.$ac_ext"
29923 case "(($ac_try" in
29924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925 *) ac_try_echo=$ac_try;;
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29930 grep -v '^ *+' conftest.er1 >conftest.err
29932 cat conftest.err >&5
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); } >/dev/null; then
29935 if test -s conftest.err; then
29936 ac_cpp_err=$ac_c_preproc_warn_flag
29937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29944 if test -z "$ac_cpp_err"; then
29945 ac_header_preproc=yes
29947 echo "$as_me: failed program was:" >&5
29948 sed 's/^/| /' conftest.$ac_ext >&5
29950 ac_header_preproc=no
29953 rm -f conftest.err conftest.$ac_ext
29954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29955 echo "${ECHO_T}$ac_header_preproc" >&6; }
29957 # So? What about this header?
29958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29964 ac_header_preproc=yes
29967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29980 ## ----------------------------------- ##
29981 ## Report this to llvmbugs@cs.uiuc.edu ##
29982 ## ----------------------------------- ##
29984 ) | sed "s/^/$as_me: WARNING: /" >&2
29987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29990 echo $ECHO_N "(cached) $ECHO_C" >&6
29992 eval "$as_ac_Header=\$ac_header_preproc"
29994 ac_res=`eval echo '${'$as_ac_Header'}'`
29995 { echo "$as_me:$LINENO: result: $ac_res" >&5
29996 echo "${ECHO_T}$ac_res" >&6; }
29999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30000 cat >>confdefs.h <<_ACEOF
30001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30012 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30019 echo $ECHO_N "(cached) $ECHO_C" >&6
30021 ac_res=`eval echo '${'$as_ac_Header'}'`
30022 { echo "$as_me:$LINENO: result: $ac_res" >&5
30023 echo "${ECHO_T}$ac_res" >&6; }
30025 # Is the header compilable?
30026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30028 cat >conftest.$ac_ext <<_ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h. */
30034 $ac_includes_default
30035 #include <$ac_header>
30037 rm -f conftest.$ac_objext
30038 if { (ac_try="$ac_compile"
30039 case "(($ac_try" in
30040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30041 *) ac_try_echo=$ac_try;;
30043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30044 (eval "$ac_compile") 2>conftest.er1
30046 grep -v '^ *+' conftest.er1 >conftest.err
30048 cat conftest.err >&5
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); } &&
30051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30052 { (case "(($ac_try" in
30053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054 *) ac_try_echo=$ac_try;;
30056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057 (eval "$ac_try") 2>&5
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; } &&
30061 { ac_try='test -s conftest.$ac_objext'
30062 { (case "(($ac_try" in
30063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30064 *) ac_try_echo=$ac_try;;
30066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30067 (eval "$ac_try") 2>&5
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; }; then
30071 ac_header_compiler=yes
30073 echo "$as_me: failed program was:" >&5
30074 sed 's/^/| /' conftest.$ac_ext >&5
30076 ac_header_compiler=no
30079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30081 echo "${ECHO_T}$ac_header_compiler" >&6; }
30083 # Is the header present?
30084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30086 cat >conftest.$ac_ext <<_ACEOF
30089 cat confdefs.h >>conftest.$ac_ext
30090 cat >>conftest.$ac_ext <<_ACEOF
30091 /* end confdefs.h. */
30092 #include <$ac_header>
30094 if { (ac_try="$ac_cpp conftest.$ac_ext"
30095 case "(($ac_try" in
30096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097 *) ac_try_echo=$ac_try;;
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30102 grep -v '^ *+' conftest.er1 >conftest.err
30104 cat conftest.err >&5
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); } >/dev/null; then
30107 if test -s conftest.err; then
30108 ac_cpp_err=$ac_c_preproc_warn_flag
30109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30116 if test -z "$ac_cpp_err"; then
30117 ac_header_preproc=yes
30119 echo "$as_me: failed program was:" >&5
30120 sed 's/^/| /' conftest.$ac_ext >&5
30122 ac_header_preproc=no
30125 rm -f conftest.err conftest.$ac_ext
30126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30127 echo "${ECHO_T}$ac_header_preproc" >&6; }
30129 # So? What about this header?
30130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30136 ac_header_preproc=yes
30139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30152 ## ----------------------------------- ##
30153 ## Report this to llvmbugs@cs.uiuc.edu ##
30154 ## ----------------------------------- ##
30156 ) | sed "s/^/$as_me: WARNING: /" >&2
30159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30162 echo $ECHO_N "(cached) $ECHO_C" >&6
30164 eval "$as_ac_Header=\$ac_header_preproc"
30166 ac_res=`eval echo '${'$as_ac_Header'}'`
30167 { echo "$as_me:$LINENO: result: $ac_res" >&5
30168 echo "${ECHO_T}$ac_res" >&6; }
30171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30172 cat >>confdefs.h <<_ACEOF
30173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30180 if test "$ENABLE_THREADS" -eq 1 ; then
30182 for ac_header in pthread.h
30184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30189 echo $ECHO_N "(cached) $ECHO_C" >&6
30191 ac_res=`eval echo '${'$as_ac_Header'}'`
30192 { echo "$as_me:$LINENO: result: $ac_res" >&5
30193 echo "${ECHO_T}$ac_res" >&6; }
30195 # Is the header compilable?
30196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30198 cat >conftest.$ac_ext <<_ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h. */
30204 $ac_includes_default
30205 #include <$ac_header>
30207 rm -f conftest.$ac_objext
30208 if { (ac_try="$ac_compile"
30209 case "(($ac_try" in
30210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30211 *) ac_try_echo=$ac_try;;
30213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30214 (eval "$ac_compile") 2>conftest.er1
30216 grep -v '^ *+' conftest.er1 >conftest.err
30218 cat conftest.err >&5
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); } &&
30221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30222 { (case "(($ac_try" in
30223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224 *) ac_try_echo=$ac_try;;
30226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30227 (eval "$ac_try") 2>&5
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); }; } &&
30231 { ac_try='test -s conftest.$ac_objext'
30232 { (case "(($ac_try" in
30233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234 *) ac_try_echo=$ac_try;;
30236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237 (eval "$ac_try") 2>&5
30239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240 (exit $ac_status); }; }; then
30241 ac_header_compiler=yes
30243 echo "$as_me: failed program was:" >&5
30244 sed 's/^/| /' conftest.$ac_ext >&5
30246 ac_header_compiler=no
30249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30251 echo "${ECHO_T}$ac_header_compiler" >&6; }
30253 # Is the header present?
30254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30256 cat >conftest.$ac_ext <<_ACEOF
30259 cat confdefs.h >>conftest.$ac_ext
30260 cat >>conftest.$ac_ext <<_ACEOF
30261 /* end confdefs.h. */
30262 #include <$ac_header>
30264 if { (ac_try="$ac_cpp conftest.$ac_ext"
30265 case "(($ac_try" in
30266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30272 grep -v '^ *+' conftest.er1 >conftest.err
30274 cat conftest.err >&5
30275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276 (exit $ac_status); } >/dev/null; then
30277 if test -s conftest.err; then
30278 ac_cpp_err=$ac_c_preproc_warn_flag
30279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30286 if test -z "$ac_cpp_err"; then
30287 ac_header_preproc=yes
30289 echo "$as_me: failed program was:" >&5
30290 sed 's/^/| /' conftest.$ac_ext >&5
30292 ac_header_preproc=no
30295 rm -f conftest.err conftest.$ac_ext
30296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30297 echo "${ECHO_T}$ac_header_preproc" >&6; }
30299 # So? What about this header?
30300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30306 ac_header_preproc=yes
30309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30322 ## ----------------------------------- ##
30323 ## Report this to llvmbugs@cs.uiuc.edu ##
30324 ## ----------------------------------- ##
30326 ) | sed "s/^/$as_me: WARNING: /" >&2
30329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30332 echo $ECHO_N "(cached) $ECHO_C" >&6
30334 eval "$as_ac_Header=\$ac_header_preproc"
30336 ac_res=`eval echo '${'$as_ac_Header'}'`
30337 { echo "$as_me:$LINENO: result: $ac_res" >&5
30338 echo "${ECHO_T}$ac_res" >&6; }
30341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30342 cat >>confdefs.h <<_ACEOF
30343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30359 if test "$llvm_cv_enable_libffi" = "yes" ; then
30362 for ac_header in ffi.h ffi/ffi.h
30364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30369 echo $ECHO_N "(cached) $ECHO_C" >&6
30371 ac_res=`eval echo '${'$as_ac_Header'}'`
30372 { echo "$as_me:$LINENO: result: $ac_res" >&5
30373 echo "${ECHO_T}$ac_res" >&6; }
30375 # Is the header compilable?
30376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30378 cat >conftest.$ac_ext <<_ACEOF
30381 cat confdefs.h >>conftest.$ac_ext
30382 cat >>conftest.$ac_ext <<_ACEOF
30383 /* end confdefs.h. */
30384 $ac_includes_default
30385 #include <$ac_header>
30387 rm -f conftest.$ac_objext
30388 if { (ac_try="$ac_compile"
30389 case "(($ac_try" in
30390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391 *) ac_try_echo=$ac_try;;
30393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394 (eval "$ac_compile") 2>conftest.er1
30396 grep -v '^ *+' conftest.er1 >conftest.err
30398 cat conftest.err >&5
30399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400 (exit $ac_status); } &&
30401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30402 { (case "(($ac_try" in
30403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404 *) ac_try_echo=$ac_try;;
30406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407 (eval "$ac_try") 2>&5
30409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); }; } &&
30411 { ac_try='test -s conftest.$ac_objext'
30412 { (case "(($ac_try" in
30413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414 *) ac_try_echo=$ac_try;;
30416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417 (eval "$ac_try") 2>&5
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); }; }; then
30421 ac_header_compiler=yes
30423 echo "$as_me: failed program was:" >&5
30424 sed 's/^/| /' conftest.$ac_ext >&5
30426 ac_header_compiler=no
30429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30431 echo "${ECHO_T}$ac_header_compiler" >&6; }
30433 # Is the header present?
30434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30436 cat >conftest.$ac_ext <<_ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h. */
30442 #include <$ac_header>
30444 if { (ac_try="$ac_cpp conftest.$ac_ext"
30445 case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30452 grep -v '^ *+' conftest.er1 >conftest.err
30454 cat conftest.err >&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); } >/dev/null; then
30457 if test -s conftest.err; then
30458 ac_cpp_err=$ac_c_preproc_warn_flag
30459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30466 if test -z "$ac_cpp_err"; then
30467 ac_header_preproc=yes
30469 echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30472 ac_header_preproc=no
30475 rm -f conftest.err conftest.$ac_ext
30476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30477 echo "${ECHO_T}$ac_header_preproc" >&6; }
30479 # So? What about this header?
30480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30486 ac_header_preproc=yes
30489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30502 ## ----------------------------------- ##
30503 ## Report this to llvmbugs@cs.uiuc.edu ##
30504 ## ----------------------------------- ##
30506 ) | sed "s/^/$as_me: WARNING: /" >&2
30509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30512 echo $ECHO_N "(cached) $ECHO_C" >&6
30514 eval "$as_ac_Header=\$ac_header_preproc"
30516 ac_res=`eval echo '${'$as_ac_Header'}'`
30517 { echo "$as_me:$LINENO: result: $ac_res" >&5
30518 echo "${ECHO_T}$ac_res" >&6; }
30521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30522 cat >>confdefs.h <<_ACEOF
30523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30534 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30535 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30536 if test "${ac_cv_huge_val_sanity+set}" = set; then
30537 echo $ECHO_N "(cached) $ECHO_C" >&6
30541 ac_cpp='$CXXCPP $CPPFLAGS'
30542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30547 if test "$cross_compiling" = yes; then
30548 ac_cv_huge_val_sanity=yes
30550 cat >conftest.$ac_ext <<_ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h. */
30560 double x = HUGE_VAL; return x != x;
30565 rm -f conftest$ac_exeext
30566 if { (ac_try="$ac_link"
30567 case "(($ac_try" in
30568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30569 *) ac_try_echo=$ac_try;;
30571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30572 (eval "$ac_link") 2>&5
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30576 { (case "(($ac_try" in
30577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578 *) ac_try_echo=$ac_try;;
30580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581 (eval "$ac_try") 2>&5
30583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584 (exit $ac_status); }; }; then
30585 ac_cv_huge_val_sanity=yes
30587 echo "$as_me: program exited with status $ac_status" >&5
30588 echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30591 ( exit $ac_status )
30592 ac_cv_huge_val_sanity=no
30594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30599 ac_cpp='$CPP $CPPFLAGS'
30600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30606 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30607 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30608 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30611 { echo "$as_me:$LINENO: checking for pid_t" >&5
30612 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30613 if test "${ac_cv_type_pid_t+set}" = set; then
30614 echo $ECHO_N "(cached) $ECHO_C" >&6
30616 cat >conftest.$ac_ext <<_ACEOF
30619 cat confdefs.h >>conftest.$ac_ext
30620 cat >>conftest.$ac_ext <<_ACEOF
30621 /* end confdefs.h. */
30622 $ac_includes_default
30623 typedef pid_t ac__type_new_;
30627 if ((ac__type_new_ *) 0)
30629 if (sizeof (ac__type_new_))
30635 rm -f conftest.$ac_objext
30636 if { (ac_try="$ac_compile"
30637 case "(($ac_try" in
30638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639 *) ac_try_echo=$ac_try;;
30641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642 (eval "$ac_compile") 2>conftest.er1
30644 grep -v '^ *+' conftest.er1 >conftest.err
30646 cat conftest.err >&5
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); } &&
30649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30650 { (case "(($ac_try" in
30651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652 *) ac_try_echo=$ac_try;;
30654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655 (eval "$ac_try") 2>&5
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; } &&
30659 { ac_try='test -s conftest.$ac_objext'
30660 { (case "(($ac_try" in
30661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_try") 2>&5
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; }; then
30669 ac_cv_type_pid_t=yes
30671 echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30674 ac_cv_type_pid_t=no
30677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30679 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30680 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30681 if test $ac_cv_type_pid_t = yes; then
30685 cat >>confdefs.h <<_ACEOF
30691 { echo "$as_me:$LINENO: checking for size_t" >&5
30692 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30693 if test "${ac_cv_type_size_t+set}" = set; then
30694 echo $ECHO_N "(cached) $ECHO_C" >&6
30696 cat >conftest.$ac_ext <<_ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h. */
30702 $ac_includes_default
30703 typedef size_t ac__type_new_;
30707 if ((ac__type_new_ *) 0)
30709 if (sizeof (ac__type_new_))
30715 rm -f conftest.$ac_objext
30716 if { (ac_try="$ac_compile"
30717 case "(($ac_try" in
30718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719 *) ac_try_echo=$ac_try;;
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722 (eval "$ac_compile") 2>conftest.er1
30724 grep -v '^ *+' conftest.er1 >conftest.err
30726 cat conftest.err >&5
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); } &&
30729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30730 { (case "(($ac_try" in
30731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732 *) ac_try_echo=$ac_try;;
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735 (eval "$ac_try") 2>&5
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); }; } &&
30739 { ac_try='test -s conftest.$ac_objext'
30740 { (case "(($ac_try" in
30741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30742 *) ac_try_echo=$ac_try;;
30744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30745 (eval "$ac_try") 2>&5
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; }; then
30749 ac_cv_type_size_t=yes
30751 echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30754 ac_cv_type_size_t=no
30757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30759 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30760 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30761 if test $ac_cv_type_size_t = yes; then
30765 cat >>confdefs.h <<_ACEOF
30766 #define size_t unsigned int
30771 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30772 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30773 if test "${ac_cv_type_signal+set}" = set; then
30774 echo $ECHO_N "(cached) $ECHO_C" >&6
30776 cat >conftest.$ac_ext <<_ACEOF
30779 cat confdefs.h >>conftest.$ac_ext
30780 cat >>conftest.$ac_ext <<_ACEOF
30781 /* end confdefs.h. */
30782 #include <sys/types.h>
30783 #include <signal.h>
30788 return *(signal (0, 0)) (0) == 1;
30793 rm -f conftest.$ac_objext
30794 if { (ac_try="$ac_compile"
30795 case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_compile") 2>conftest.er1
30802 grep -v '^ *+' conftest.er1 >conftest.err
30804 cat conftest.err >&5
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); } &&
30807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30808 { (case "(($ac_try" in
30809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810 *) ac_try_echo=$ac_try;;
30812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813 (eval "$ac_try") 2>&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; } &&
30817 { ac_try='test -s conftest.$ac_objext'
30818 { (case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_try") 2>&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; }; then
30827 ac_cv_type_signal=int
30829 echo "$as_me: failed program was:" >&5
30830 sed 's/^/| /' conftest.$ac_ext >&5
30832 ac_cv_type_signal=void
30835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30837 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30838 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30840 cat >>confdefs.h <<_ACEOF
30841 #define RETSIGTYPE $ac_cv_type_signal
30845 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30846 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30847 if test "${ac_cv_struct_tm+set}" = set; then
30848 echo $ECHO_N "(cached) $ECHO_C" >&6
30850 cat >conftest.$ac_ext <<_ACEOF
30853 cat confdefs.h >>conftest.$ac_ext
30854 cat >>conftest.$ac_ext <<_ACEOF
30855 /* end confdefs.h. */
30856 #include <sys/types.h>
30862 struct tm *tp; tp->tm_sec;
30867 rm -f conftest.$ac_objext
30868 if { (ac_try="$ac_compile"
30869 case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874 (eval "$ac_compile") 2>conftest.er1
30876 grep -v '^ *+' conftest.er1 >conftest.err
30878 cat conftest.err >&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); } &&
30881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30882 { (case "(($ac_try" in
30883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884 *) ac_try_echo=$ac_try;;
30886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30887 (eval "$ac_try") 2>&5
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; } &&
30891 { ac_try='test -s conftest.$ac_objext'
30892 { (case "(($ac_try" in
30893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894 *) ac_try_echo=$ac_try;;
30896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897 (eval "$ac_try") 2>&5
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; }; then
30901 ac_cv_struct_tm=time.h
30903 echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.$ac_ext >&5
30906 ac_cv_struct_tm=sys/time.h
30909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30911 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30912 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30913 if test $ac_cv_struct_tm = sys/time.h; then
30915 cat >>confdefs.h <<\_ACEOF
30916 #define TM_IN_SYS_TIME 1
30921 { echo "$as_me:$LINENO: checking for int64_t" >&5
30922 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30923 if test "${ac_cv_type_int64_t+set}" = set; then
30924 echo $ECHO_N "(cached) $ECHO_C" >&6
30926 cat >conftest.$ac_ext <<_ACEOF
30929 cat confdefs.h >>conftest.$ac_ext
30930 cat >>conftest.$ac_ext <<_ACEOF
30931 /* end confdefs.h. */
30932 $ac_includes_default
30933 typedef int64_t ac__type_new_;
30937 if ((ac__type_new_ *) 0)
30939 if (sizeof (ac__type_new_))
30945 rm -f conftest.$ac_objext
30946 if { (ac_try="$ac_compile"
30947 case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_compile") 2>conftest.er1
30954 grep -v '^ *+' conftest.er1 >conftest.err
30956 cat conftest.err >&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } &&
30959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30960 { (case "(($ac_try" in
30961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962 *) ac_try_echo=$ac_try;;
30964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965 (eval "$ac_try") 2>&5
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); }; } &&
30969 { ac_try='test -s conftest.$ac_objext'
30970 { (case "(($ac_try" in
30971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972 *) ac_try_echo=$ac_try;;
30974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30975 (eval "$ac_try") 2>&5
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; }; then
30979 ac_cv_type_int64_t=yes
30981 echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30984 ac_cv_type_int64_t=no
30987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30989 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30990 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30991 if test $ac_cv_type_int64_t = yes; then
30993 cat >>confdefs.h <<_ACEOF
30994 #define HAVE_INT64_T 1
30999 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31000 echo "$as_me: error: Type int64_t required but not found" >&2;}
31001 { (exit 1); exit 1; }; }
31004 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31005 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31006 if test "${ac_cv_type_uint64_t+set}" = set; then
31007 echo $ECHO_N "(cached) $ECHO_C" >&6
31009 cat >conftest.$ac_ext <<_ACEOF
31012 cat confdefs.h >>conftest.$ac_ext
31013 cat >>conftest.$ac_ext <<_ACEOF
31014 /* end confdefs.h. */
31015 $ac_includes_default
31016 typedef uint64_t ac__type_new_;
31020 if ((ac__type_new_ *) 0)
31022 if (sizeof (ac__type_new_))
31028 rm -f conftest.$ac_objext
31029 if { (ac_try="$ac_compile"
31030 case "(($ac_try" in
31031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31032 *) ac_try_echo=$ac_try;;
31034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31035 (eval "$ac_compile") 2>conftest.er1
31037 grep -v '^ *+' conftest.er1 >conftest.err
31039 cat conftest.err >&5
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); } &&
31042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31043 { (case "(($ac_try" in
31044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045 *) ac_try_echo=$ac_try;;
31047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048 (eval "$ac_try") 2>&5
31050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051 (exit $ac_status); }; } &&
31052 { ac_try='test -s conftest.$ac_objext'
31053 { (case "(($ac_try" in
31054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31055 *) ac_try_echo=$ac_try;;
31057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31058 (eval "$ac_try") 2>&5
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); }; }; then
31062 ac_cv_type_uint64_t=yes
31064 echo "$as_me: failed program was:" >&5
31065 sed 's/^/| /' conftest.$ac_ext >&5
31067 ac_cv_type_uint64_t=no
31070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31072 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31073 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31074 if test $ac_cv_type_uint64_t = yes; then
31076 cat >>confdefs.h <<_ACEOF
31077 #define HAVE_UINT64_T 1
31082 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31083 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31084 if test "${ac_cv_type_u_int64_t+set}" = set; then
31085 echo $ECHO_N "(cached) $ECHO_C" >&6
31087 cat >conftest.$ac_ext <<_ACEOF
31090 cat confdefs.h >>conftest.$ac_ext
31091 cat >>conftest.$ac_ext <<_ACEOF
31092 /* end confdefs.h. */
31093 $ac_includes_default
31094 typedef u_int64_t ac__type_new_;
31098 if ((ac__type_new_ *) 0)
31100 if (sizeof (ac__type_new_))
31106 rm -f conftest.$ac_objext
31107 if { (ac_try="$ac_compile"
31108 case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113 (eval "$ac_compile") 2>conftest.er1
31115 grep -v '^ *+' conftest.er1 >conftest.err
31117 cat conftest.err >&5
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); } &&
31120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31121 { (case "(($ac_try" in
31122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31123 *) ac_try_echo=$ac_try;;
31125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31126 (eval "$ac_try") 2>&5
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); }; } &&
31130 { ac_try='test -s conftest.$ac_objext'
31131 { (case "(($ac_try" in
31132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31133 *) ac_try_echo=$ac_try;;
31135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31136 (eval "$ac_try") 2>&5
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); }; }; then
31140 ac_cv_type_u_int64_t=yes
31142 echo "$as_me: failed program was:" >&5
31143 sed 's/^/| /' conftest.$ac_ext >&5
31145 ac_cv_type_u_int64_t=no
31148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31150 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31151 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31152 if test $ac_cv_type_u_int64_t = yes; then
31154 cat >>confdefs.h <<_ACEOF
31155 #define HAVE_U_INT64_T 1
31160 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31161 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31162 { (exit 1); exit 1; }; }
31176 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31182 echo $ECHO_N "(cached) $ECHO_C" >&6
31184 cat >conftest.$ac_ext <<_ACEOF
31187 cat confdefs.h >>conftest.$ac_ext
31188 cat >>conftest.$ac_ext <<_ACEOF
31189 /* end confdefs.h. */
31190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31192 #define $ac_func innocuous_$ac_func
31194 /* System header to define __stub macros and hopefully few prototypes,
31195 which can conflict with char $ac_func (); below.
31196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31197 <limits.h> exists even on freestanding compilers. */
31200 # include <limits.h>
31202 # include <assert.h>
31207 /* Override any GCC internal prototype to avoid an error.
31208 Use char because int might match the return type of a GCC
31209 builtin and then its argument prototype would still apply. */
31214 /* The GNU C library defines this for functions which it implements
31215 to always fail with ENOSYS. Some functions are actually named
31216 something starting with __ and the normal name is an alias. */
31217 #if defined __stub_$ac_func || defined __stub___$ac_func
31224 return $ac_func ();
31229 rm -f conftest.$ac_objext conftest$ac_exeext
31230 if { (ac_try="$ac_link"
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_link") 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_exeext'
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 eval "$as_ac_var=yes"
31265 echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31268 eval "$as_ac_var=no"
31271 rm -f core conftest.err conftest.$ac_objext \
31272 conftest$ac_exeext conftest.$ac_ext
31274 ac_res=`eval echo '${'$as_ac_var'}'`
31275 { echo "$as_me:$LINENO: result: $ac_res" >&5
31276 echo "${ECHO_T}$ac_res" >&6; }
31277 if test `eval echo '${'$as_ac_var'}'` = yes; then
31278 cat >>confdefs.h <<_ACEOF
31279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31289 for ac_func in powf fmodf strtof round
31291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31295 echo $ECHO_N "(cached) $ECHO_C" >&6
31297 cat >conftest.$ac_ext <<_ACEOF
31300 cat confdefs.h >>conftest.$ac_ext
31301 cat >>conftest.$ac_ext <<_ACEOF
31302 /* end confdefs.h. */
31303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31305 #define $ac_func innocuous_$ac_func
31307 /* System header to define __stub macros and hopefully few prototypes,
31308 which can conflict with char $ac_func (); below.
31309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31310 <limits.h> exists even on freestanding compilers. */
31313 # include <limits.h>
31315 # include <assert.h>
31320 /* Override any GCC internal prototype to avoid an error.
31321 Use char because int might match the return type of a GCC
31322 builtin and then its argument prototype would still apply. */
31327 /* The GNU C library defines this for functions which it implements
31328 to always fail with ENOSYS. Some functions are actually named
31329 something starting with __ and the normal name is an alias. */
31330 #if defined __stub_$ac_func || defined __stub___$ac_func
31337 return $ac_func ();
31342 rm -f conftest.$ac_objext conftest$ac_exeext
31343 if { (ac_try="$ac_link"
31344 case "(($ac_try" in
31345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31346 *) ac_try_echo=$ac_try;;
31348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349 (eval "$ac_link") 2>conftest.er1
31351 grep -v '^ *+' conftest.er1 >conftest.err
31353 cat conftest.err >&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); } &&
31356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31357 { (case "(($ac_try" in
31358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359 *) ac_try_echo=$ac_try;;
31361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362 (eval "$ac_try") 2>&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; } &&
31366 { ac_try='test -s conftest$ac_exeext'
31367 { (case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; }; then
31376 eval "$as_ac_var=yes"
31378 echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31381 eval "$as_ac_var=no"
31384 rm -f core conftest.err conftest.$ac_objext \
31385 conftest$ac_exeext conftest.$ac_ext
31387 ac_res=`eval echo '${'$as_ac_var'}'`
31388 { echo "$as_me:$LINENO: result: $ac_res" >&5
31389 echo "${ECHO_T}$ac_res" >&6; }
31390 if test `eval echo '${'$as_ac_var'}'` = yes; then
31391 cat >>confdefs.h <<_ACEOF
31392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31403 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31409 echo $ECHO_N "(cached) $ECHO_C" >&6
31411 cat >conftest.$ac_ext <<_ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h. */
31417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31419 #define $ac_func innocuous_$ac_func
31421 /* System header to define __stub macros and hopefully few prototypes,
31422 which can conflict with char $ac_func (); below.
31423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31424 <limits.h> exists even on freestanding compilers. */
31427 # include <limits.h>
31429 # include <assert.h>
31434 /* Override any GCC internal prototype to avoid an error.
31435 Use char because int might match the return type of a GCC
31436 builtin and then its argument prototype would still apply. */
31441 /* The GNU C library defines this for functions which it implements
31442 to always fail with ENOSYS. Some functions are actually named
31443 something starting with __ and the normal name is an alias. */
31444 #if defined __stub_$ac_func || defined __stub___$ac_func
31451 return $ac_func ();
31456 rm -f conftest.$ac_objext conftest$ac_exeext
31457 if { (ac_try="$ac_link"
31458 case "(($ac_try" in
31459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31460 *) ac_try_echo=$ac_try;;
31462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31463 (eval "$ac_link") 2>conftest.er1
31465 grep -v '^ *+' conftest.er1 >conftest.err
31467 cat conftest.err >&5
31468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469 (exit $ac_status); } &&
31470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31471 { (case "(($ac_try" in
31472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473 *) ac_try_echo=$ac_try;;
31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476 (eval "$ac_try") 2>&5
31478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479 (exit $ac_status); }; } &&
31480 { ac_try='test -s conftest$ac_exeext'
31481 { (case "(($ac_try" in
31482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31483 *) ac_try_echo=$ac_try;;
31485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31486 (eval "$ac_try") 2>&5
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; }; then
31490 eval "$as_ac_var=yes"
31492 echo "$as_me: failed program was:" >&5
31493 sed 's/^/| /' conftest.$ac_ext >&5
31495 eval "$as_ac_var=no"
31498 rm -f core conftest.err conftest.$ac_objext \
31499 conftest$ac_exeext conftest.$ac_ext
31501 ac_res=`eval echo '${'$as_ac_var'}'`
31502 { echo "$as_me:$LINENO: result: $ac_res" >&5
31503 echo "${ECHO_T}$ac_res" >&6; }
31504 if test `eval echo '${'$as_ac_var'}'` = yes; then
31505 cat >>confdefs.h <<_ACEOF
31506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31515 for ac_func in isatty mkdtemp mkstemp
31517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31520 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31531 #define $ac_func innocuous_$ac_func
31533 /* System header to define __stub macros and hopefully few prototypes,
31534 which can conflict with char $ac_func (); below.
31535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31536 <limits.h> exists even on freestanding compilers. */
31539 # include <limits.h>
31541 # include <assert.h>
31546 /* Override any GCC internal prototype to avoid an error.
31547 Use char because int might match the return type of a GCC
31548 builtin and then its argument prototype would still apply. */
31553 /* The GNU C library defines this for functions which it implements
31554 to always fail with ENOSYS. Some functions are actually named
31555 something starting with __ and the normal name is an alias. */
31556 #if defined __stub_$ac_func || defined __stub___$ac_func
31563 return $ac_func ();
31568 rm -f conftest.$ac_objext conftest$ac_exeext
31569 if { (ac_try="$ac_link"
31570 case "(($ac_try" in
31571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572 *) ac_try_echo=$ac_try;;
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 (eval "$ac_link") 2>conftest.er1
31577 grep -v '^ *+' conftest.er1 >conftest.err
31579 cat conftest.err >&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); } &&
31582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31583 { (case "(($ac_try" in
31584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585 *) ac_try_echo=$ac_try;;
31587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588 (eval "$ac_try") 2>&5
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); }; } &&
31592 { ac_try='test -s conftest$ac_exeext'
31593 { (case "(($ac_try" in
31594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595 *) ac_try_echo=$ac_try;;
31597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598 (eval "$ac_try") 2>&5
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); }; }; then
31602 eval "$as_ac_var=yes"
31604 echo "$as_me: failed program was:" >&5
31605 sed 's/^/| /' conftest.$ac_ext >&5
31607 eval "$as_ac_var=no"
31610 rm -f core conftest.err conftest.$ac_objext \
31611 conftest$ac_exeext conftest.$ac_ext
31613 ac_res=`eval echo '${'$as_ac_var'}'`
31614 { echo "$as_me:$LINENO: result: $ac_res" >&5
31615 echo "${ECHO_T}$ac_res" >&6; }
31616 if test `eval echo '${'$as_ac_var'}'` = yes; then
31617 cat >>confdefs.h <<_ACEOF
31618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31629 for ac_func in mktemp realpath sbrk setrlimit strdup
31631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31635 echo $ECHO_N "(cached) $ECHO_C" >&6
31637 cat >conftest.$ac_ext <<_ACEOF
31640 cat confdefs.h >>conftest.$ac_ext
31641 cat >>conftest.$ac_ext <<_ACEOF
31642 /* end confdefs.h. */
31643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31645 #define $ac_func innocuous_$ac_func
31647 /* System header to define __stub macros and hopefully few prototypes,
31648 which can conflict with char $ac_func (); below.
31649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31650 <limits.h> exists even on freestanding compilers. */
31653 # include <limits.h>
31655 # include <assert.h>
31660 /* Override any GCC internal prototype to avoid an error.
31661 Use char because int might match the return type of a GCC
31662 builtin and then its argument prototype would still apply. */
31667 /* The GNU C library defines this for functions which it implements
31668 to always fail with ENOSYS. Some functions are actually named
31669 something starting with __ and the normal name is an alias. */
31670 #if defined __stub_$ac_func || defined __stub___$ac_func
31677 return $ac_func ();
31682 rm -f conftest.$ac_objext conftest$ac_exeext
31683 if { (ac_try="$ac_link"
31684 case "(($ac_try" in
31685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686 *) ac_try_echo=$ac_try;;
31688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689 (eval "$ac_link") 2>conftest.er1
31691 grep -v '^ *+' conftest.er1 >conftest.err
31693 cat conftest.err >&5
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); } &&
31696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31697 { (case "(($ac_try" in
31698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699 *) ac_try_echo=$ac_try;;
31701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702 (eval "$ac_try") 2>&5
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; } &&
31706 { ac_try='test -s conftest$ac_exeext'
31707 { (case "(($ac_try" in
31708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31709 *) ac_try_echo=$ac_try;;
31711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31712 (eval "$ac_try") 2>&5
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); }; }; then
31716 eval "$as_ac_var=yes"
31718 echo "$as_me: failed program was:" >&5
31719 sed 's/^/| /' conftest.$ac_ext >&5
31721 eval "$as_ac_var=no"
31724 rm -f core conftest.err conftest.$ac_objext \
31725 conftest$ac_exeext conftest.$ac_ext
31727 ac_res=`eval echo '${'$as_ac_var'}'`
31728 { echo "$as_me:$LINENO: result: $ac_res" >&5
31729 echo "${ECHO_T}$ac_res" >&6; }
31730 if test `eval echo '${'$as_ac_var'}'` = yes; then
31731 cat >>confdefs.h <<_ACEOF
31732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31741 for ac_func in strerror strerror_r strerror_s
31743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31747 echo $ECHO_N "(cached) $ECHO_C" >&6
31749 cat >conftest.$ac_ext <<_ACEOF
31752 cat confdefs.h >>conftest.$ac_ext
31753 cat >>conftest.$ac_ext <<_ACEOF
31754 /* end confdefs.h. */
31755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31757 #define $ac_func innocuous_$ac_func
31759 /* System header to define __stub macros and hopefully few prototypes,
31760 which can conflict with char $ac_func (); below.
31761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31762 <limits.h> exists even on freestanding compilers. */
31765 # include <limits.h>
31767 # include <assert.h>
31772 /* Override any GCC internal prototype to avoid an error.
31773 Use char because int might match the return type of a GCC
31774 builtin and then its argument prototype would still apply. */
31779 /* The GNU C library defines this for functions which it implements
31780 to always fail with ENOSYS. Some functions are actually named
31781 something starting with __ and the normal name is an alias. */
31782 #if defined __stub_$ac_func || defined __stub___$ac_func
31789 return $ac_func ();
31794 rm -f conftest.$ac_objext conftest$ac_exeext
31795 if { (ac_try="$ac_link"
31796 case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_link") 2>conftest.er1
31803 grep -v '^ *+' conftest.er1 >conftest.err
31805 cat conftest.err >&5
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); } &&
31808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31809 { (case "(($ac_try" in
31810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811 *) ac_try_echo=$ac_try;;
31813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814 (eval "$ac_try") 2>&5
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; } &&
31818 { ac_try='test -s conftest$ac_exeext'
31819 { (case "(($ac_try" in
31820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_try") 2>&5
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; }; then
31828 eval "$as_ac_var=yes"
31830 echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31833 eval "$as_ac_var=no"
31836 rm -f core conftest.err conftest.$ac_objext \
31837 conftest$ac_exeext conftest.$ac_ext
31839 ac_res=`eval echo '${'$as_ac_var'}'`
31840 { echo "$as_me:$LINENO: result: $ac_res" >&5
31841 echo "${ECHO_T}$ac_res" >&6; }
31842 if test `eval echo '${'$as_ac_var'}'` = yes; then
31843 cat >>confdefs.h <<_ACEOF
31844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31854 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31860 echo $ECHO_N "(cached) $ECHO_C" >&6
31862 cat >conftest.$ac_ext <<_ACEOF
31865 cat confdefs.h >>conftest.$ac_ext
31866 cat >>conftest.$ac_ext <<_ACEOF
31867 /* end confdefs.h. */
31868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31870 #define $ac_func innocuous_$ac_func
31872 /* System header to define __stub macros and hopefully few prototypes,
31873 which can conflict with char $ac_func (); below.
31874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31875 <limits.h> exists even on freestanding compilers. */
31878 # include <limits.h>
31880 # include <assert.h>
31885 /* Override any GCC internal prototype to avoid an error.
31886 Use char because int might match the return type of a GCC
31887 builtin and then its argument prototype would still apply. */
31892 /* The GNU C library defines this for functions which it implements
31893 to always fail with ENOSYS. Some functions are actually named
31894 something starting with __ and the normal name is an alias. */
31895 #if defined __stub_$ac_func || defined __stub___$ac_func
31902 return $ac_func ();
31907 rm -f conftest.$ac_objext conftest$ac_exeext
31908 if { (ac_try="$ac_link"
31909 case "(($ac_try" in
31910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911 *) ac_try_echo=$ac_try;;
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914 (eval "$ac_link") 2>conftest.er1
31916 grep -v '^ *+' conftest.er1 >conftest.err
31918 cat conftest.err >&5
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); } &&
31921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31922 { (case "(($ac_try" in
31923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924 *) ac_try_echo=$ac_try;;
31926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927 (eval "$ac_try") 2>&5
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; } &&
31931 { ac_try='test -s conftest$ac_exeext'
31932 { (case "(($ac_try" in
31933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934 *) ac_try_echo=$ac_try;;
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937 (eval "$ac_try") 2>&5
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; }; then
31941 eval "$as_ac_var=yes"
31943 echo "$as_me: failed program was:" >&5
31944 sed 's/^/| /' conftest.$ac_ext >&5
31946 eval "$as_ac_var=no"
31949 rm -f core conftest.err conftest.$ac_objext \
31950 conftest$ac_exeext conftest.$ac_ext
31952 ac_res=`eval echo '${'$as_ac_var'}'`
31953 { echo "$as_me:$LINENO: result: $ac_res" >&5
31954 echo "${ECHO_T}$ac_res" >&6; }
31955 if test `eval echo '${'$as_ac_var'}'` = yes; then
31956 cat >>confdefs.h <<_ACEOF
31957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31967 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31973 echo $ECHO_N "(cached) $ECHO_C" >&6
31975 cat >conftest.$ac_ext <<_ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h. */
31981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31983 #define $ac_func innocuous_$ac_func
31985 /* System header to define __stub macros and hopefully few prototypes,
31986 which can conflict with char $ac_func (); below.
31987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31988 <limits.h> exists even on freestanding compilers. */
31991 # include <limits.h>
31993 # include <assert.h>
31998 /* Override any GCC internal prototype to avoid an error.
31999 Use char because int might match the return type of a GCC
32000 builtin and then its argument prototype would still apply. */
32005 /* The GNU C library defines this for functions which it implements
32006 to always fail with ENOSYS. Some functions are actually named
32007 something starting with __ and the normal name is an alias. */
32008 #if defined __stub_$ac_func || defined __stub___$ac_func
32015 return $ac_func ();
32020 rm -f conftest.$ac_objext conftest$ac_exeext
32021 if { (ac_try="$ac_link"
32022 case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_link") 2>conftest.er1
32029 grep -v '^ *+' conftest.er1 >conftest.err
32031 cat conftest.err >&5
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); } &&
32034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32035 { (case "(($ac_try" in
32036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037 *) ac_try_echo=$ac_try;;
32039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040 (eval "$ac_try") 2>&5
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; } &&
32044 { ac_try='test -s conftest$ac_exeext'
32045 { (case "(($ac_try" in
32046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047 *) ac_try_echo=$ac_try;;
32049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050 (eval "$ac_try") 2>&5
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; }; then
32054 eval "$as_ac_var=yes"
32056 echo "$as_me: failed program was:" >&5
32057 sed 's/^/| /' conftest.$ac_ext >&5
32059 eval "$as_ac_var=no"
32062 rm -f core conftest.err conftest.$ac_objext \
32063 conftest$ac_exeext conftest.$ac_ext
32065 ac_res=`eval echo '${'$as_ac_var'}'`
32066 { echo "$as_me:$LINENO: result: $ac_res" >&5
32067 echo "${ECHO_T}$ac_res" >&6; }
32068 if test `eval echo '${'$as_ac_var'}'` = yes; then
32069 cat >>confdefs.h <<_ACEOF
32070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32076 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32077 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32078 if test "${llvm_cv_c_printf_a+set}" = set; then
32079 echo $ECHO_N "(cached) $ECHO_C" >&6
32082 ac_cpp='$CPP $CPPFLAGS'
32083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32087 if test "$cross_compiling" = yes; then
32088 llvmac_cv_c_printf_a=no
32090 cat >conftest.$ac_ext <<_ACEOF
32094 cat confdefs.h >>conftest.$ac_ext
32095 cat >>conftest.$ac_ext <<_ACEOF
32096 /* end confdefs.h. */
32099 #include <stdlib.h>
32105 volatile double A, B;
32109 sprintf(Buffer, "%a", A);
32113 if (A != 0x1.999999999999ap-4)
32120 rm -f conftest$ac_exeext
32121 if { (ac_try="$ac_link"
32122 case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_link") 2>&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32131 { (case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_try") 2>&5
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; }; then
32140 llvm_cv_c_printf_a=yes
32142 echo "$as_me: program exited with status $ac_status" >&5
32143 echo "$as_me: failed program was:" >&5
32144 sed 's/^/| /' conftest.$ac_ext >&5
32146 ( exit $ac_status )
32147 llvmac_cv_c_printf_a=no
32149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32154 ac_cpp='$CPP $CPPFLAGS'
32155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32160 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32161 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32162 if test "$llvm_cv_c_printf_a" = "yes"; then
32164 cat >>confdefs.h <<\_ACEOF
32165 #define HAVE_PRINTF_A 1
32170 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32171 # for constant arguments. Useless!
32172 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32173 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32174 if test "${ac_cv_working_alloca_h+set}" = set; then
32175 echo $ECHO_N "(cached) $ECHO_C" >&6
32177 cat >conftest.$ac_ext <<_ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h. */
32183 #include <alloca.h>
32187 char *p = (char *) alloca (2 * sizeof (int));
32193 rm -f conftest.$ac_objext conftest$ac_exeext
32194 if { (ac_try="$ac_link"
32195 case "(($ac_try" in
32196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197 *) ac_try_echo=$ac_try;;
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200 (eval "$ac_link") 2>conftest.er1
32202 grep -v '^ *+' conftest.er1 >conftest.err
32204 cat conftest.err >&5
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); } &&
32207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32208 { (case "(($ac_try" in
32209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210 *) ac_try_echo=$ac_try;;
32212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213 (eval "$ac_try") 2>&5
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; } &&
32217 { ac_try='test -s conftest$ac_exeext'
32218 { (case "(($ac_try" in
32219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220 *) ac_try_echo=$ac_try;;
32222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223 (eval "$ac_try") 2>&5
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; }; then
32227 ac_cv_working_alloca_h=yes
32229 echo "$as_me: failed program was:" >&5
32230 sed 's/^/| /' conftest.$ac_ext >&5
32232 ac_cv_working_alloca_h=no
32235 rm -f core conftest.err conftest.$ac_objext \
32236 conftest$ac_exeext conftest.$ac_ext
32238 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32239 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32240 if test $ac_cv_working_alloca_h = yes; then
32242 cat >>confdefs.h <<\_ACEOF
32243 #define HAVE_ALLOCA_H 1
32248 { echo "$as_me:$LINENO: checking for alloca" >&5
32249 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32250 if test "${ac_cv_func_alloca_works+set}" = set; then
32251 echo $ECHO_N "(cached) $ECHO_C" >&6
32253 cat >conftest.$ac_ext <<_ACEOF
32256 cat confdefs.h >>conftest.$ac_ext
32257 cat >>conftest.$ac_ext <<_ACEOF
32258 /* end confdefs.h. */
32260 # define alloca __builtin_alloca
32263 # include <malloc.h>
32264 # define alloca _alloca
32267 # include <alloca.h>
32272 # ifndef alloca /* predefined by HP cc +Olibcalls */
32283 char *p = (char *) alloca (1);
32289 rm -f conftest.$ac_objext conftest$ac_exeext
32290 if { (ac_try="$ac_link"
32291 case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_link") 2>conftest.er1
32298 grep -v '^ *+' conftest.er1 >conftest.err
32300 cat conftest.err >&5
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); } &&
32303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32304 { (case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_try") 2>&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; } &&
32313 { ac_try='test -s conftest$ac_exeext'
32314 { (case "(($ac_try" in
32315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316 *) ac_try_echo=$ac_try;;
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319 (eval "$ac_try") 2>&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; }; then
32323 ac_cv_func_alloca_works=yes
32325 echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32328 ac_cv_func_alloca_works=no
32331 rm -f core conftest.err conftest.$ac_objext \
32332 conftest$ac_exeext conftest.$ac_ext
32334 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32335 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32337 if test $ac_cv_func_alloca_works = yes; then
32339 cat >>confdefs.h <<\_ACEOF
32340 #define HAVE_ALLOCA 1
32344 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32345 # that cause trouble. Some versions do not even contain alloca or
32346 # contain a buggy version. If you still want to use their alloca,
32347 # use ar to extract alloca.o from them instead of compiling alloca.c.
32349 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32351 cat >>confdefs.h <<\_ACEOF
32356 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32357 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32358 if test "${ac_cv_os_cray+set}" = set; then
32359 echo $ECHO_N "(cached) $ECHO_C" >&6
32361 cat >conftest.$ac_ext <<_ACEOF
32364 cat confdefs.h >>conftest.$ac_ext
32365 cat >>conftest.$ac_ext <<_ACEOF
32366 /* end confdefs.h. */
32367 #if defined CRAY && ! defined CRAY2
32374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32375 $EGREP "webecray" >/dev/null 2>&1; then
32383 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32384 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32385 if test $ac_cv_os_cray = yes; then
32386 for ac_func in _getb67 GETB67 getb67; do
32387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32391 echo $ECHO_N "(cached) $ECHO_C" >&6
32393 cat >conftest.$ac_ext <<_ACEOF
32396 cat confdefs.h >>conftest.$ac_ext
32397 cat >>conftest.$ac_ext <<_ACEOF
32398 /* end confdefs.h. */
32399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32401 #define $ac_func innocuous_$ac_func
32403 /* System header to define __stub macros and hopefully few prototypes,
32404 which can conflict with char $ac_func (); below.
32405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32406 <limits.h> exists even on freestanding compilers. */
32409 # include <limits.h>
32411 # include <assert.h>
32416 /* Override any GCC internal prototype to avoid an error.
32417 Use char because int might match the return type of a GCC
32418 builtin and then its argument prototype would still apply. */
32423 /* The GNU C library defines this for functions which it implements
32424 to always fail with ENOSYS. Some functions are actually named
32425 something starting with __ and the normal name is an alias. */
32426 #if defined __stub_$ac_func || defined __stub___$ac_func
32433 return $ac_func ();
32438 rm -f conftest.$ac_objext conftest$ac_exeext
32439 if { (ac_try="$ac_link"
32440 case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_link") 2>conftest.er1
32447 grep -v '^ *+' conftest.er1 >conftest.err
32449 cat conftest.err >&5
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); } &&
32452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32453 { (case "(($ac_try" in
32454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458 (eval "$ac_try") 2>&5
32460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461 (exit $ac_status); }; } &&
32462 { ac_try='test -s conftest$ac_exeext'
32463 { (case "(($ac_try" in
32464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32465 *) ac_try_echo=$ac_try;;
32467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32468 (eval "$ac_try") 2>&5
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; }; then
32472 eval "$as_ac_var=yes"
32474 echo "$as_me: failed program was:" >&5
32475 sed 's/^/| /' conftest.$ac_ext >&5
32477 eval "$as_ac_var=no"
32480 rm -f core conftest.err conftest.$ac_objext \
32481 conftest$ac_exeext conftest.$ac_ext
32483 ac_res=`eval echo '${'$as_ac_var'}'`
32484 { echo "$as_me:$LINENO: result: $ac_res" >&5
32485 echo "${ECHO_T}$ac_res" >&6; }
32486 if test `eval echo '${'$as_ac_var'}'` = yes; then
32488 cat >>confdefs.h <<_ACEOF
32489 #define CRAY_STACKSEG_END $ac_func
32498 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32499 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32500 if test "${ac_cv_c_stack_direction+set}" = set; then
32501 echo $ECHO_N "(cached) $ECHO_C" >&6
32503 if test "$cross_compiling" = yes; then
32504 ac_cv_c_stack_direction=0
32506 cat >conftest.$ac_ext <<_ACEOF
32509 cat confdefs.h >>conftest.$ac_ext
32510 cat >>conftest.$ac_ext <<_ACEOF
32511 /* end confdefs.h. */
32512 $ac_includes_default
32514 find_stack_direction ()
32516 static char *addr = 0;
32521 return find_stack_direction ();
32524 return (&dummy > addr) ? 1 : -1;
32530 return find_stack_direction () < 0;
32533 rm -f conftest$ac_exeext
32534 if { (ac_try="$ac_link"
32535 case "(($ac_try" in
32536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32537 *) ac_try_echo=$ac_try;;
32539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32540 (eval "$ac_link") 2>&5
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32544 { (case "(($ac_try" in
32545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32546 *) ac_try_echo=$ac_try;;
32548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32549 (eval "$ac_try") 2>&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; }; then
32553 ac_cv_c_stack_direction=1
32555 echo "$as_me: program exited with status $ac_status" >&5
32556 echo "$as_me: failed program was:" >&5
32557 sed 's/^/| /' conftest.$ac_ext >&5
32559 ( exit $ac_status )
32560 ac_cv_c_stack_direction=-1
32562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32567 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32568 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32570 cat >>confdefs.h <<_ACEOF
32571 #define STACK_DIRECTION $ac_cv_c_stack_direction
32578 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32579 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32580 if test "${ac_cv_func_rand48+set}" = set; then
32581 echo $ECHO_N "(cached) $ECHO_C" >&6
32584 ac_cpp='$CXXCPP $CPPFLAGS'
32585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32589 cat >conftest.$ac_ext <<_ACEOF
32592 cat confdefs.h >>conftest.$ac_ext
32593 cat >>conftest.$ac_ext <<_ACEOF
32594 /* end confdefs.h. */
32595 #include <stdlib.h>
32599 srand48(0);lrand48();drand48();
32604 rm -f conftest.$ac_objext
32605 if { (ac_try="$ac_compile"
32606 case "(($ac_try" in
32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_compile") 2>conftest.er1
32613 grep -v '^ *+' conftest.er1 >conftest.err
32615 cat conftest.err >&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } &&
32618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32619 { (case "(($ac_try" in
32620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32621 *) ac_try_echo=$ac_try;;
32623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32624 (eval "$ac_try") 2>&5
32626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); }; } &&
32628 { ac_try='test -s conftest.$ac_objext'
32629 { (case "(($ac_try" in
32630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631 *) ac_try_echo=$ac_try;;
32633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634 (eval "$ac_try") 2>&5
32636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637 (exit $ac_status); }; }; then
32638 ac_cv_func_rand48=yes
32640 echo "$as_me: failed program was:" >&5
32641 sed 's/^/| /' conftest.$ac_ext >&5
32643 ac_cv_func_rand48=no
32646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32648 ac_cpp='$CPP $CPPFLAGS'
32649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32654 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32655 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32657 if test "$ac_cv_func_rand48" = "yes" ; then
32659 cat >>confdefs.h <<\_ACEOF
32660 #define HAVE_RAND48 1
32666 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32667 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32668 if test "${ac_cv_cxx_namespaces+set}" = set; then
32669 echo $ECHO_N "(cached) $ECHO_C" >&6
32672 ac_cpp='$CXXCPP $CPPFLAGS'
32673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32677 cat >conftest.$ac_ext <<_ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h. */
32683 namespace Outer { namespace Inner { int i = 0; }}
32687 using namespace Outer::Inner; return i;
32692 rm -f conftest.$ac_objext
32693 if { (ac_try="$ac_compile"
32694 case "(($ac_try" in
32695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696 *) ac_try_echo=$ac_try;;
32698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699 (eval "$ac_compile") 2>conftest.er1
32701 grep -v '^ *+' conftest.er1 >conftest.err
32703 cat conftest.err >&5
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); } &&
32706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32707 { (case "(($ac_try" in
32708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709 *) ac_try_echo=$ac_try;;
32711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712 (eval "$ac_try") 2>&5
32714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715 (exit $ac_status); }; } &&
32716 { ac_try='test -s conftest.$ac_objext'
32717 { (case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722 (eval "$ac_try") 2>&5
32724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725 (exit $ac_status); }; }; then
32726 ac_cv_cxx_namespaces=yes
32728 echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32731 ac_cv_cxx_namespaces=no
32734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32736 ac_cpp='$CPP $CPPFLAGS'
32737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32743 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32744 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32745 if test "$ac_cv_cxx_namespaces" = yes; then
32747 cat >>confdefs.h <<\_ACEOF
32748 #define HAVE_NAMESPACES
32753 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32754 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32755 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32756 echo $ECHO_N "(cached) $ECHO_C" >&6
32760 ac_cpp='$CXXCPP $CPPFLAGS'
32761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32765 cat >conftest.$ac_ext <<_ACEOF
32768 cat confdefs.h >>conftest.$ac_ext
32769 cat >>conftest.$ac_ext <<_ACEOF
32770 /* end confdefs.h. */
32771 #include <iterator>
32772 #ifdef HAVE_NAMESPACES
32773 using namespace std;
32778 iterator<int,int,int> t; return 0;
32783 rm -f conftest.$ac_objext
32784 if { (ac_try="$ac_compile"
32785 case "(($ac_try" in
32786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787 *) ac_try_echo=$ac_try;;
32789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32790 (eval "$ac_compile") 2>conftest.er1
32792 grep -v '^ *+' conftest.er1 >conftest.err
32794 cat conftest.err >&5
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); } &&
32797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32798 { (case "(($ac_try" in
32799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32800 *) ac_try_echo=$ac_try;;
32802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32803 (eval "$ac_try") 2>&5
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); }; } &&
32807 { ac_try='test -s conftest.$ac_objext'
32808 { (case "(($ac_try" in
32809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32810 *) ac_try_echo=$ac_try;;
32812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32813 (eval "$ac_try") 2>&5
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); }; }; then
32817 ac_cv_cxx_have_std_iterator=yes
32819 echo "$as_me: failed program was:" >&5
32820 sed 's/^/| /' conftest.$ac_ext >&5
32822 ac_cv_cxx_have_std_iterator=no
32825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32827 ac_cpp='$CPP $CPPFLAGS'
32828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32834 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32835 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32836 if test "$ac_cv_cxx_have_std_iterator" = yes
32839 cat >>confdefs.h <<\_ACEOF
32840 #define HAVE_STD_ITERATOR 1
32845 cat >>confdefs.h <<\_ACEOF
32846 #define HAVE_STD_ITERATOR 0
32851 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32852 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32853 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32854 echo $ECHO_N "(cached) $ECHO_C" >&6
32858 ac_cpp='$CXXCPP $CPPFLAGS'
32859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32863 cat >conftest.$ac_ext <<_ACEOF
32866 cat confdefs.h >>conftest.$ac_ext
32867 cat >>conftest.$ac_ext <<_ACEOF
32868 /* end confdefs.h. */
32869 #include <iterator>
32870 #ifdef HAVE_NAMESPACES
32871 using namespace std;
32876 bidirectional_iterator<int,int> t; return 0;
32881 rm -f conftest.$ac_objext
32882 if { (ac_try="$ac_compile"
32883 case "(($ac_try" in
32884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_compile") 2>conftest.er1
32890 grep -v '^ *+' conftest.er1 >conftest.err
32892 cat conftest.err >&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); } &&
32895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32896 { (case "(($ac_try" in
32897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898 *) ac_try_echo=$ac_try;;
32900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32901 (eval "$ac_try") 2>&5
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; } &&
32905 { ac_try='test -s conftest.$ac_objext'
32906 { (case "(($ac_try" in
32907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908 *) ac_try_echo=$ac_try;;
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911 (eval "$ac_try") 2>&5
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; }; then
32915 ac_cv_cxx_have_bi_iterator=yes
32917 echo "$as_me: failed program was:" >&5
32918 sed 's/^/| /' conftest.$ac_ext >&5
32920 ac_cv_cxx_have_bi_iterator=no
32923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32925 ac_cpp='$CPP $CPPFLAGS'
32926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32932 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32933 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32934 if test "$ac_cv_cxx_have_bi_iterator" = yes
32937 cat >>confdefs.h <<\_ACEOF
32938 #define HAVE_BI_ITERATOR 1
32943 cat >>confdefs.h <<\_ACEOF
32944 #define HAVE_BI_ITERATOR 0
32949 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32950 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32951 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32952 echo $ECHO_N "(cached) $ECHO_C" >&6
32956 ac_cpp='$CXXCPP $CPPFLAGS'
32957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32961 cat >conftest.$ac_ext <<_ACEOF
32964 cat confdefs.h >>conftest.$ac_ext
32965 cat >>conftest.$ac_ext <<_ACEOF
32966 /* end confdefs.h. */
32967 #include <iterator>
32968 #ifdef HAVE_NAMESPACES
32969 using namespace std;
32974 forward_iterator<int,int> t; return 0;
32979 rm -f conftest.$ac_objext
32980 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32988 grep -v '^ *+' conftest.er1 >conftest.err
32990 cat conftest.err >&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); } &&
32993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32994 { (case "(($ac_try" in
32995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996 *) ac_try_echo=$ac_try;;
32998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999 (eval "$ac_try") 2>&5
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; } &&
33003 { ac_try='test -s conftest.$ac_objext'
33004 { (case "(($ac_try" in
33005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006 *) ac_try_echo=$ac_try;;
33008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33009 (eval "$ac_try") 2>&5
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); }; }; then
33013 ac_cv_cxx_have_fwd_iterator=yes
33015 echo "$as_me: failed program was:" >&5
33016 sed 's/^/| /' conftest.$ac_ext >&5
33018 ac_cv_cxx_have_fwd_iterator=no
33021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33023 ac_cpp='$CPP $CPPFLAGS'
33024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33030 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33031 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33032 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33035 cat >>confdefs.h <<\_ACEOF
33036 #define HAVE_FWD_ITERATOR 1
33041 cat >>confdefs.h <<\_ACEOF
33042 #define HAVE_FWD_ITERATOR 0
33048 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33049 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33050 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33051 echo $ECHO_N "(cached) $ECHO_C" >&6
33054 ac_cpp='$CXXCPP $CPPFLAGS'
33055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33059 cat >conftest.$ac_ext <<_ACEOF
33062 cat confdefs.h >>conftest.$ac_ext
33063 cat >>conftest.$ac_ext <<_ACEOF
33064 /* end confdefs.h. */
33074 rm -f conftest.$ac_objext
33075 if { (ac_try="$ac_compile"
33076 case "(($ac_try" in
33077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33078 *) ac_try_echo=$ac_try;;
33080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33081 (eval "$ac_compile") 2>conftest.er1
33083 grep -v '^ *+' conftest.er1 >conftest.err
33085 cat conftest.err >&5
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); } &&
33088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33089 { (case "(($ac_try" in
33090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33091 *) ac_try_echo=$ac_try;;
33093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33094 (eval "$ac_try") 2>&5
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); }; } &&
33098 { ac_try='test -s conftest.$ac_objext'
33099 { (case "(($ac_try" in
33100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33101 *) ac_try_echo=$ac_try;;
33103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33104 (eval "$ac_try") 2>&5
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); }; }; then
33108 ac_cv_func_isnan_in_math_h=yes
33110 echo "$as_me: failed program was:" >&5
33111 sed 's/^/| /' conftest.$ac_ext >&5
33113 ac_cv_func_isnan_in_math_h=no
33116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33118 ac_cpp='$CPP $CPPFLAGS'
33119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33124 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33125 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33128 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33130 cat >>confdefs.h <<\_ACEOF
33131 #define HAVE_ISNAN_IN_MATH_H 1
33136 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33137 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33138 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33139 echo $ECHO_N "(cached) $ECHO_C" >&6
33142 ac_cpp='$CXXCPP $CPPFLAGS'
33143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33147 cat >conftest.$ac_ext <<_ACEOF
33150 cat confdefs.h >>conftest.$ac_ext
33151 cat >>conftest.$ac_ext <<_ACEOF
33152 /* end confdefs.h. */
33162 rm -f conftest.$ac_objext
33163 if { (ac_try="$ac_compile"
33164 case "(($ac_try" in
33165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33166 *) ac_try_echo=$ac_try;;
33168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33169 (eval "$ac_compile") 2>conftest.er1
33171 grep -v '^ *+' conftest.er1 >conftest.err
33173 cat conftest.err >&5
33174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175 (exit $ac_status); } &&
33176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33177 { (case "(($ac_try" in
33178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179 *) ac_try_echo=$ac_try;;
33181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182 (eval "$ac_try") 2>&5
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; } &&
33186 { ac_try='test -s conftest.$ac_objext'
33187 { (case "(($ac_try" in
33188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189 *) ac_try_echo=$ac_try;;
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_try") 2>&5
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; }; then
33196 ac_cv_func_isnan_in_cmath=yes
33198 echo "$as_me: failed program was:" >&5
33199 sed 's/^/| /' conftest.$ac_ext >&5
33201 ac_cv_func_isnan_in_cmath=no
33204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33206 ac_cpp='$CPP $CPPFLAGS'
33207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33212 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33213 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33215 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33217 cat >>confdefs.h <<\_ACEOF
33218 #define HAVE_ISNAN_IN_CMATH 1
33223 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33224 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33225 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33226 echo $ECHO_N "(cached) $ECHO_C" >&6
33229 ac_cpp='$CXXCPP $CPPFLAGS'
33230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33234 cat >conftest.$ac_ext <<_ACEOF
33237 cat confdefs.h >>conftest.$ac_ext
33238 cat >>conftest.$ac_ext <<_ACEOF
33239 /* end confdefs.h. */
33244 float f; std::isnan(f);
33249 rm -f conftest.$ac_objext
33250 if { (ac_try="$ac_compile"
33251 case "(($ac_try" in
33252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33253 *) ac_try_echo=$ac_try;;
33255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33256 (eval "$ac_compile") 2>conftest.er1
33258 grep -v '^ *+' conftest.er1 >conftest.err
33260 cat conftest.err >&5
33261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); } &&
33263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33264 { (case "(($ac_try" in
33265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33266 *) ac_try_echo=$ac_try;;
33268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33269 (eval "$ac_try") 2>&5
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); }; } &&
33273 { ac_try='test -s conftest.$ac_objext'
33274 { (case "(($ac_try" in
33275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33276 *) ac_try_echo=$ac_try;;
33278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33279 (eval "$ac_try") 2>&5
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); }; }; then
33283 ac_cv_func_std_isnan_in_cmath=yes
33285 echo "$as_me: failed program was:" >&5
33286 sed 's/^/| /' conftest.$ac_ext >&5
33288 ac_cv_func_std_isnan_in_cmath=no
33291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33293 ac_cpp='$CPP $CPPFLAGS'
33294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33299 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33300 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33302 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33304 cat >>confdefs.h <<\_ACEOF
33305 #define HAVE_STD_ISNAN_IN_CMATH 1
33311 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33312 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33313 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33314 echo $ECHO_N "(cached) $ECHO_C" >&6
33317 ac_cpp='$CXXCPP $CPPFLAGS'
33318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33322 cat >conftest.$ac_ext <<_ACEOF
33325 cat confdefs.h >>conftest.$ac_ext
33326 cat >>conftest.$ac_ext <<_ACEOF
33327 /* end confdefs.h. */
33337 rm -f conftest.$ac_objext
33338 if { (ac_try="$ac_compile"
33339 case "(($ac_try" in
33340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33341 *) ac_try_echo=$ac_try;;
33343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33344 (eval "$ac_compile") 2>conftest.er1
33346 grep -v '^ *+' conftest.er1 >conftest.err
33348 cat conftest.err >&5
33349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350 (exit $ac_status); } &&
33351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33352 { (case "(($ac_try" in
33353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33354 *) ac_try_echo=$ac_try;;
33356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33357 (eval "$ac_try") 2>&5
33359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33360 (exit $ac_status); }; } &&
33361 { ac_try='test -s conftest.$ac_objext'
33362 { (case "(($ac_try" in
33363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33364 *) ac_try_echo=$ac_try;;
33366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33367 (eval "$ac_try") 2>&5
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); }; }; then
33371 ac_cv_func_isinf_in_math_h=yes
33373 echo "$as_me: failed program was:" >&5
33374 sed 's/^/| /' conftest.$ac_ext >&5
33376 ac_cv_func_isinf_in_math_h=no
33379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33381 ac_cpp='$CPP $CPPFLAGS'
33382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33387 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33388 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33390 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33392 cat >>confdefs.h <<\_ACEOF
33393 #define HAVE_ISINF_IN_MATH_H 1
33398 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33399 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33400 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33401 echo $ECHO_N "(cached) $ECHO_C" >&6
33404 ac_cpp='$CXXCPP $CPPFLAGS'
33405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33409 cat >conftest.$ac_ext <<_ACEOF
33412 cat confdefs.h >>conftest.$ac_ext
33413 cat >>conftest.$ac_ext <<_ACEOF
33414 /* end confdefs.h. */
33424 rm -f conftest.$ac_objext
33425 if { (ac_try="$ac_compile"
33426 case "(($ac_try" in
33427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33428 *) ac_try_echo=$ac_try;;
33430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33431 (eval "$ac_compile") 2>conftest.er1
33433 grep -v '^ *+' conftest.er1 >conftest.err
33435 cat conftest.err >&5
33436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437 (exit $ac_status); } &&
33438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33439 { (case "(($ac_try" in
33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441 *) ac_try_echo=$ac_try;;
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_try") 2>&5
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); }; } &&
33448 { ac_try='test -s conftest.$ac_objext'
33449 { (case "(($ac_try" in
33450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451 *) ac_try_echo=$ac_try;;
33453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454 (eval "$ac_try") 2>&5
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); }; }; then
33458 ac_cv_func_isinf_in_cmath=yes
33460 echo "$as_me: failed program was:" >&5
33461 sed 's/^/| /' conftest.$ac_ext >&5
33463 ac_cv_func_isinf_in_cmath=no
33466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33468 ac_cpp='$CPP $CPPFLAGS'
33469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33474 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33475 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33477 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33479 cat >>confdefs.h <<\_ACEOF
33480 #define HAVE_ISINF_IN_CMATH 1
33485 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33486 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33487 if test "${ac_cv_func_std_isinf_in_cmath+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. */
33506 float f; std::isinf(f)}
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_std_isinf_in_cmath=yes
33547 echo "$as_me: failed program was:" >&5
33548 sed 's/^/| /' conftest.$ac_ext >&5
33550 ac_cv_func_std_isinf_in_cmath=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_std_isinf_in_cmath" >&5
33562 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33564 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33566 cat >>confdefs.h <<\_ACEOF
33567 #define HAVE_STD_ISINF_IN_CMATH 1
33572 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33573 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33574 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33575 echo $ECHO_N "(cached) $ECHO_C" >&6
33578 ac_cpp='$CXXCPP $CPPFLAGS'
33579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33583 cat >conftest.$ac_ext <<_ACEOF
33586 cat confdefs.h >>conftest.$ac_ext
33587 cat >>conftest.$ac_ext <<_ACEOF
33588 /* end confdefs.h. */
33589 #include <ieeefp.h>
33593 float f; finite(f);
33598 rm -f conftest.$ac_objext
33599 if { (ac_try="$ac_compile"
33600 case "(($ac_try" in
33601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602 *) ac_try_echo=$ac_try;;
33604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605 (eval "$ac_compile") 2>conftest.er1
33607 grep -v '^ *+' conftest.er1 >conftest.err
33609 cat conftest.err >&5
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); } &&
33612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33613 { (case "(($ac_try" in
33614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33615 *) ac_try_echo=$ac_try;;
33617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33618 (eval "$ac_try") 2>&5
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; } &&
33622 { ac_try='test -s conftest.$ac_objext'
33623 { (case "(($ac_try" in
33624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625 *) ac_try_echo=$ac_try;;
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628 (eval "$ac_try") 2>&5
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; }; then
33632 ac_cv_func_finite_in_ieeefp_h=yes
33634 echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33637 ac_cv_func_finite_in_ieeefp_h=no
33640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33642 ac_cpp='$CPP $CPPFLAGS'
33643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33648 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33649 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33651 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33653 cat >>confdefs.h <<\_ACEOF
33654 #define HAVE_FINITE_IN_IEEEFP_H 1
33661 if test "$llvm_cv_platform_type" = "Unix" ; then
33664 for ac_header in stdlib.h unistd.h
33666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33671 echo $ECHO_N "(cached) $ECHO_C" >&6
33673 ac_res=`eval echo '${'$as_ac_Header'}'`
33674 { echo "$as_me:$LINENO: result: $ac_res" >&5
33675 echo "${ECHO_T}$ac_res" >&6; }
33677 # Is the header compilable?
33678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33680 cat >conftest.$ac_ext <<_ACEOF
33683 cat confdefs.h >>conftest.$ac_ext
33684 cat >>conftest.$ac_ext <<_ACEOF
33685 /* end confdefs.h. */
33686 $ac_includes_default
33687 #include <$ac_header>
33689 rm -f conftest.$ac_objext
33690 if { (ac_try="$ac_compile"
33691 case "(($ac_try" in
33692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33693 *) ac_try_echo=$ac_try;;
33695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33696 (eval "$ac_compile") 2>conftest.er1
33698 grep -v '^ *+' conftest.er1 >conftest.err
33700 cat conftest.err >&5
33701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702 (exit $ac_status); } &&
33703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33704 { (case "(($ac_try" in
33705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706 *) ac_try_echo=$ac_try;;
33708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709 (eval "$ac_try") 2>&5
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); }; } &&
33713 { ac_try='test -s conftest.$ac_objext'
33714 { (case "(($ac_try" in
33715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33716 *) ac_try_echo=$ac_try;;
33718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33719 (eval "$ac_try") 2>&5
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); }; }; then
33723 ac_header_compiler=yes
33725 echo "$as_me: failed program was:" >&5
33726 sed 's/^/| /' conftest.$ac_ext >&5
33728 ac_header_compiler=no
33731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33733 echo "${ECHO_T}$ac_header_compiler" >&6; }
33735 # Is the header present?
33736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33738 cat >conftest.$ac_ext <<_ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h. */
33744 #include <$ac_header>
33746 if { (ac_try="$ac_cpp conftest.$ac_ext"
33747 case "(($ac_try" in
33748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33749 *) ac_try_echo=$ac_try;;
33751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33754 grep -v '^ *+' conftest.er1 >conftest.err
33756 cat conftest.err >&5
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); } >/dev/null; then
33759 if test -s conftest.err; then
33760 ac_cpp_err=$ac_c_preproc_warn_flag
33761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33768 if test -z "$ac_cpp_err"; then
33769 ac_header_preproc=yes
33771 echo "$as_me: failed program was:" >&5
33772 sed 's/^/| /' conftest.$ac_ext >&5
33774 ac_header_preproc=no
33777 rm -f conftest.err conftest.$ac_ext
33778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33779 echo "${ECHO_T}$ac_header_preproc" >&6; }
33781 # So? What about this header?
33782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33788 ac_header_preproc=yes
33791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33804 ## ----------------------------------- ##
33805 ## Report this to llvmbugs@cs.uiuc.edu ##
33806 ## ----------------------------------- ##
33808 ) | sed "s/^/$as_me: WARNING: /" >&2
33811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33814 echo $ECHO_N "(cached) $ECHO_C" >&6
33816 eval "$as_ac_Header=\$ac_header_preproc"
33818 ac_res=`eval echo '${'$as_ac_Header'}'`
33819 { echo "$as_me:$LINENO: result: $ac_res" >&5
33820 echo "${ECHO_T}$ac_res" >&6; }
33823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33824 cat >>confdefs.h <<_ACEOF
33825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33833 for ac_func in getpagesize
33835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33839 echo $ECHO_N "(cached) $ECHO_C" >&6
33841 cat >conftest.$ac_ext <<_ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h. */
33847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33849 #define $ac_func innocuous_$ac_func
33851 /* System header to define __stub macros and hopefully few prototypes,
33852 which can conflict with char $ac_func (); below.
33853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33854 <limits.h> exists even on freestanding compilers. */
33857 # include <limits.h>
33859 # include <assert.h>
33864 /* Override any GCC internal prototype to avoid an error.
33865 Use char because int might match the return type of a GCC
33866 builtin and then its argument prototype would still apply. */
33871 /* The GNU C library defines this for functions which it implements
33872 to always fail with ENOSYS. Some functions are actually named
33873 something starting with __ and the normal name is an alias. */
33874 #if defined __stub_$ac_func || defined __stub___$ac_func
33881 return $ac_func ();
33886 rm -f conftest.$ac_objext conftest$ac_exeext
33887 if { (ac_try="$ac_link"
33888 case "(($ac_try" in
33889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890 *) ac_try_echo=$ac_try;;
33892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33893 (eval "$ac_link") 2>conftest.er1
33895 grep -v '^ *+' conftest.er1 >conftest.err
33897 cat conftest.err >&5
33898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899 (exit $ac_status); } &&
33900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33901 { (case "(($ac_try" in
33902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903 *) ac_try_echo=$ac_try;;
33905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906 (eval "$ac_try") 2>&5
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); }; } &&
33910 { ac_try='test -s conftest$ac_exeext'
33911 { (case "(($ac_try" in
33912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_try") 2>&5
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); }; }; then
33920 eval "$as_ac_var=yes"
33922 echo "$as_me: failed program was:" >&5
33923 sed 's/^/| /' conftest.$ac_ext >&5
33925 eval "$as_ac_var=no"
33928 rm -f core conftest.err conftest.$ac_objext \
33929 conftest$ac_exeext conftest.$ac_ext
33931 ac_res=`eval echo '${'$as_ac_var'}'`
33932 { echo "$as_me:$LINENO: result: $ac_res" >&5
33933 echo "${ECHO_T}$ac_res" >&6; }
33934 if test `eval echo '${'$as_ac_var'}'` = yes; then
33935 cat >>confdefs.h <<_ACEOF
33936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33942 { echo "$as_me:$LINENO: checking for working mmap" >&5
33943 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33944 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33945 echo $ECHO_N "(cached) $ECHO_C" >&6
33947 if test "$cross_compiling" = yes; then
33948 ac_cv_func_mmap_fixed_mapped=no
33950 cat >conftest.$ac_ext <<_ACEOF
33953 cat confdefs.h >>conftest.$ac_ext
33954 cat >>conftest.$ac_ext <<_ACEOF
33955 /* end confdefs.h. */
33956 $ac_includes_default
33957 /* malloc might have been renamed as rpl_malloc. */
33960 /* Thanks to Mike Haertel and Jim Avera for this test.
33961 Here is a matrix of mmap possibilities:
33962 mmap private not fixed
33963 mmap private fixed at somewhere currently unmapped
33964 mmap private fixed at somewhere already mapped
33965 mmap shared not fixed
33966 mmap shared fixed at somewhere currently unmapped
33967 mmap shared fixed at somewhere already mapped
33968 For private mappings, we should verify that changes cannot be read()
33969 back from the file, nor mmap's back from the file at a different
33970 address. (There have been systems where private was not correctly
33971 implemented like the infamous i386 svr4.0, and systems where the
33972 VM page cache was not coherent with the file system buffer cache
33973 like early versions of FreeBSD and possibly contemporary NetBSD.)
33974 For shared mappings, we should conversely verify that changes get
33975 propagated back to all the places they're supposed to be.
33977 Grep wants private fixed already mapped.
33978 The main things grep needs to know about mmap are:
33979 * does it exist and is it safe to write into the mmap'd area
33980 * how to use it (BSD variants) */
33983 #include <sys/mman.h>
33985 #if !STDC_HEADERS && !HAVE_STDLIB_H
33989 /* This mess was copied from the GNU getpagesize.h. */
33990 #if !HAVE_GETPAGESIZE
33991 /* Assume that all systems that can run configure have sys/param.h. */
33992 # if !HAVE_SYS_PARAM_H
33993 # define HAVE_SYS_PARAM_H 1
33996 # ifdef _SC_PAGESIZE
33997 # define getpagesize() sysconf(_SC_PAGESIZE)
33998 # else /* no _SC_PAGESIZE */
33999 # if HAVE_SYS_PARAM_H
34000 # include <sys/param.h>
34001 # ifdef EXEC_PAGESIZE
34002 # define getpagesize() EXEC_PAGESIZE
34003 # else /* no EXEC_PAGESIZE */
34005 # define getpagesize() NBPG * CLSIZE
34008 # endif /* no CLSIZE */
34009 # else /* no NBPG */
34011 # define getpagesize() NBPC
34012 # else /* no NBPC */
34014 # define getpagesize() PAGESIZE
34015 # endif /* PAGESIZE */
34016 # endif /* no NBPC */
34017 # endif /* no NBPG */
34018 # endif /* no EXEC_PAGESIZE */
34019 # else /* no HAVE_SYS_PARAM_H */
34020 # define getpagesize() 8192 /* punt totally */
34021 # endif /* no HAVE_SYS_PARAM_H */
34022 # endif /* no _SC_PAGESIZE */
34024 #endif /* no HAVE_GETPAGESIZE */
34029 char *data, *data2, *data3;
34033 pagesize = getpagesize ();
34035 /* First, make a file with some known garbage in it. */
34036 data = (char *) malloc (pagesize);
34039 for (i = 0; i < pagesize; ++i)
34040 *(data + i) = rand ();
34042 fd = creat ("conftest.mmap", 0600);
34045 if (write (fd, data, pagesize) != pagesize)
34049 /* Next, try to mmap the file at a fixed address which already has
34050 something else allocated at it. If we can, also make sure that
34051 we see the same garbage. */
34052 fd = open ("conftest.mmap", O_RDWR);
34055 data2 = (char *) malloc (2 * pagesize);
34058 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34059 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34060 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34062 for (i = 0; i < pagesize; ++i)
34063 if (*(data + i) != *(data2 + i))
34066 /* Finally, make sure that changes to the mapped area do not
34067 percolate back to the file as seen by read(). (This is a bug on
34068 some variants of i386 svr4.0.) */
34069 for (i = 0; i < pagesize; ++i)
34070 *(data2 + i) = *(data2 + i) + 1;
34071 data3 = (char *) malloc (pagesize);
34074 if (read (fd, data3, pagesize) != pagesize)
34076 for (i = 0; i < pagesize; ++i)
34077 if (*(data + i) != *(data3 + i))
34083 rm -f conftest$ac_exeext
34084 if { (ac_try="$ac_link"
34085 case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_link") 2>&5
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34094 { (case "(($ac_try" in
34095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34096 *) ac_try_echo=$ac_try;;
34098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34099 (eval "$ac_try") 2>&5
34101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102 (exit $ac_status); }; }; then
34103 ac_cv_func_mmap_fixed_mapped=yes
34105 echo "$as_me: program exited with status $ac_status" >&5
34106 echo "$as_me: failed program was:" >&5
34107 sed 's/^/| /' conftest.$ac_ext >&5
34109 ( exit $ac_status )
34110 ac_cv_func_mmap_fixed_mapped=no
34112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34117 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34118 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34119 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34121 cat >>confdefs.h <<\_ACEOF
34122 #define HAVE_MMAP 1
34126 rm -f conftest.mmap
34128 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34129 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34130 if test "${ac_cv_func_mmap_file+set}" = set; then
34131 echo $ECHO_N "(cached) $ECHO_C" >&6
34134 ac_cpp='$CPP $CPPFLAGS'
34135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34139 if test "$cross_compiling" = yes; then
34140 ac_cv_func_mmap_file=no
34142 cat >conftest.$ac_ext <<_ACEOF
34146 cat confdefs.h >>conftest.$ac_ext
34147 cat >>conftest.$ac_ext <<_ACEOF
34148 /* end confdefs.h. */
34150 #include <sys/types.h>
34151 #include <sys/mman.h>
34159 fd = creat ("foo",0777);
34160 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34162 return (fd != (int) MAP_FAILED);
34167 rm -f conftest$ac_exeext
34168 if { (ac_try="$ac_link"
34169 case "(($ac_try" in
34170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34171 *) ac_try_echo=$ac_try;;
34173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34174 (eval "$ac_link") 2>&5
34176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34178 { (case "(($ac_try" in
34179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34180 *) ac_try_echo=$ac_try;;
34182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34183 (eval "$ac_try") 2>&5
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; }; then
34187 ac_cv_func_mmap_file=yes
34189 echo "$as_me: program exited with status $ac_status" >&5
34190 echo "$as_me: failed program was:" >&5
34191 sed 's/^/| /' conftest.$ac_ext >&5
34193 ( exit $ac_status )
34194 ac_cv_func_mmap_file=no
34196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34201 ac_cpp='$CPP $CPPFLAGS'
34202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34208 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34209 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34210 if test "$ac_cv_func_mmap_file" = yes; then
34212 cat >>confdefs.h <<\_ACEOF
34213 #define HAVE_MMAP_FILE
34220 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34221 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34222 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34223 echo $ECHO_N "(cached) $ECHO_C" >&6
34225 if test "$llvm_cv_os_type" = "Interix" ; then
34226 ac_cv_need_dev_zero_for_mmap=yes
34228 ac_cv_need_dev_zero_for_mmap=no
34232 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34233 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34234 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34236 cat >>confdefs.h <<\_ACEOF
34237 #define NEED_DEV_ZERO_FOR_MMAP 1
34242 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34244 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34245 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34247 if test "$ac_cv_func_mmap_file" = "no"
34249 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34250 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34254 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34255 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34256 cat >conftest.$ac_ext <<_ACEOF
34259 cat confdefs.h >>conftest.$ac_ext
34260 cat >>conftest.$ac_ext <<_ACEOF
34261 /* end confdefs.h. */
34263 volatile unsigned long val = 1;
34264 __sync_synchronize();
34265 __sync_val_compare_and_swap(&val, 1, 0);
34266 __sync_add_and_fetch(&val, 1);
34267 __sync_sub_and_fetch(&val, 1);
34272 rm -f conftest.$ac_objext conftest$ac_exeext
34273 if { (ac_try="$ac_link"
34274 case "(($ac_try" in
34275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34276 *) ac_try_echo=$ac_try;;
34278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34279 (eval "$ac_link") 2>conftest.er1
34281 grep -v '^ *+' conftest.er1 >conftest.err
34283 cat conftest.err >&5
34284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285 (exit $ac_status); } &&
34286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34287 { (case "(($ac_try" in
34288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34289 *) ac_try_echo=$ac_try;;
34291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34292 (eval "$ac_try") 2>&5
34294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295 (exit $ac_status); }; } &&
34296 { ac_try='test -s conftest$ac_exeext'
34297 { (case "(($ac_try" in
34298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34299 *) ac_try_echo=$ac_try;;
34301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34302 (eval "$ac_try") 2>&5
34304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305 (exit $ac_status); }; }; then
34306 { echo "$as_me:$LINENO: result: yes" >&5
34307 echo "${ECHO_T}yes" >&6; }
34309 cat >>confdefs.h <<\_ACEOF
34310 #define LLVM_MULTITHREADED 1
34314 echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.$ac_ext >&5
34317 { echo "$as_me:$LINENO: result: no" >&5
34318 echo "${ECHO_T}no" >&6; }
34320 cat >>confdefs.h <<\_ACEOF
34321 #define LLVM_MULTITHREADED 0
34324 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34325 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34328 rm -f core conftest.err conftest.$ac_objext \
34329 conftest$ac_exeext conftest.$ac_ext
34334 for ac_func in __dso_handle
34336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34340 echo $ECHO_N "(cached) $ECHO_C" >&6
34342 cat >conftest.$ac_ext <<_ACEOF
34345 cat confdefs.h >>conftest.$ac_ext
34346 cat >>conftest.$ac_ext <<_ACEOF
34347 /* end confdefs.h. */
34348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34350 #define $ac_func innocuous_$ac_func
34352 /* System header to define __stub macros and hopefully few prototypes,
34353 which can conflict with char $ac_func (); below.
34354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34355 <limits.h> exists even on freestanding compilers. */
34358 # include <limits.h>
34360 # include <assert.h>
34365 /* Override any GCC internal prototype to avoid an error.
34366 Use char because int might match the return type of a GCC
34367 builtin and then its argument prototype would still apply. */
34372 /* The GNU C library defines this for functions which it implements
34373 to always fail with ENOSYS. Some functions are actually named
34374 something starting with __ and the normal name is an alias. */
34375 #if defined __stub_$ac_func || defined __stub___$ac_func
34382 return $ac_func ();
34387 rm -f conftest.$ac_objext conftest$ac_exeext
34388 if { (ac_try="$ac_link"
34389 case "(($ac_try" in
34390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34391 *) ac_try_echo=$ac_try;;
34393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34394 (eval "$ac_link") 2>conftest.er1
34396 grep -v '^ *+' conftest.er1 >conftest.err
34398 cat conftest.err >&5
34399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400 (exit $ac_status); } &&
34401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34402 { (case "(($ac_try" in
34403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34404 *) ac_try_echo=$ac_try;;
34406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34407 (eval "$ac_try") 2>&5
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); }; } &&
34411 { ac_try='test -s conftest$ac_exeext'
34412 { (case "(($ac_try" in
34413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34414 *) ac_try_echo=$ac_try;;
34416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34417 (eval "$ac_try") 2>&5
34419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34420 (exit $ac_status); }; }; then
34421 eval "$as_ac_var=yes"
34423 echo "$as_me: failed program was:" >&5
34424 sed 's/^/| /' conftest.$ac_ext >&5
34426 eval "$as_ac_var=no"
34429 rm -f core conftest.err conftest.$ac_objext \
34430 conftest$ac_exeext conftest.$ac_ext
34432 ac_res=`eval echo '${'$as_ac_var'}'`
34433 { echo "$as_me:$LINENO: result: $ac_res" >&5
34434 echo "${ECHO_T}$ac_res" >&6; }
34435 if test `eval echo '${'$as_ac_var'}'` = yes; then
34436 cat >>confdefs.h <<_ACEOF
34437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34444 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34445 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34446 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34447 echo $ECHO_N "(cached) $ECHO_C" >&6
34449 llvm_cv_llvmgcc_sanity="no"
34450 if test -x "$LLVMGCC" ; then
34451 cp /dev/null conftest.c
34452 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34453 grep 'target datalayout =' > /dev/null 2>&1
34454 if test $? -eq 0 ; then
34455 llvm_cv_llvmgcc_sanity="yes"
34460 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34461 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34463 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34464 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34465 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34466 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34467 LLVMCC1=$llvmcc1path
34469 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34470 LLVMCC1PLUS=$llvmcc1pluspath
34472 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34473 LLVMGCCDIR=$llvmgccdir
34475 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34476 LLVMGCCLIBEXEC=$llvmgcclibexec
34478 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34479 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34480 LLVMGCC_VERSION=$llvmgccversion
34482 LLVMGCC_MAJVERS=$llvmgccmajvers
34484 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34485 LLVMGCC_LANGS=$llvmgcclangs
34487 { echo "$as_me:$LINENO: result: ok" >&5
34488 echo "${ECHO_T}ok" >&6; }
34491 SHLIBEXT=$libltdl_cv_shlibext
34494 # Translate the various configuration directories and other basic
34495 # information into substitutions that will end up in Makefile.config.in
34496 # that these configured values can be used by the makefiles
34497 if test "${prefix}" = "NONE" ; then
34498 prefix="/usr/local"
34500 eval LLVM_PREFIX="${prefix}";
34501 eval LLVM_BINDIR="${prefix}/bin";
34502 eval LLVM_LIBDIR="${prefix}/lib";
34503 eval LLVM_DATADIR="${prefix}/share/llvm";
34504 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34505 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34506 eval LLVM_INCLUDEDIR="${prefix}/include";
34507 eval LLVM_INFODIR="${prefix}/info";
34508 eval LLVM_MANDIR="${prefix}/man";
34509 LLVM_CONFIGTIME=`date`
34521 # Place the various directores into the config.h file as #defines so that we
34522 # can know about the installation paths within LLVM.
34524 cat >>confdefs.h <<_ACEOF
34525 #define LLVM_PREFIX "$LLVM_PREFIX"
34529 cat >>confdefs.h <<_ACEOF
34530 #define LLVM_BINDIR "$LLVM_BINDIR"
34534 cat >>confdefs.h <<_ACEOF
34535 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34539 cat >>confdefs.h <<_ACEOF
34540 #define LLVM_DATADIR "$LLVM_DATADIR"
34544 cat >>confdefs.h <<_ACEOF
34545 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34549 cat >>confdefs.h <<_ACEOF
34550 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34554 cat >>confdefs.h <<_ACEOF
34555 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34559 cat >>confdefs.h <<_ACEOF
34560 #define LLVM_INFODIR "$LLVM_INFODIR"
34564 cat >>confdefs.h <<_ACEOF
34565 #define LLVM_MANDIR "$LLVM_MANDIR"
34569 cat >>confdefs.h <<_ACEOF
34570 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34574 cat >>confdefs.h <<_ACEOF
34575 #define LLVM_HOSTTRIPLE "$host"
34579 # Determine which bindings to build.
34580 if test "$BINDINGS_TO_BUILD" = auto ; then
34581 BINDINGS_TO_BUILD=""
34582 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34583 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34586 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34589 # This isn't really configurey, but it avoids having to repeat the list in
34594 # Do any work necessary to ensure that bindings have what they need.
34595 binding_prereqs_failed=0
34596 for a_binding in $BINDINGS_TO_BUILD ; do
34597 case "$a_binding" in
34599 if test "x$OCAMLC" = x ; then
34600 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34601 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34602 binding_prereqs_failed=1
34604 if test "x$OCAMLDEP" = x ; then
34605 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34606 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34607 binding_prereqs_failed=1
34609 if test "x$OCAMLOPT" = x ; then
34610 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34611 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34613 if test "x$with_ocaml_libdir" != xauto ; then
34614 OCAML_LIBDIR=$with_ocaml_libdir
34617 ocaml_stdlib="`"$OCAMLC" -where`"
34618 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34620 # ocaml stdlib is beneath our prefix; use stdlib
34621 OCAML_LIBDIR=$ocaml_stdlib
34624 # ocaml stdlib is outside our prefix; use libdir/ocaml
34625 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34632 if test "$binding_prereqs_failed" = 1 ; then
34633 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34634 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34635 { (exit 1); exit 1; }; }
34638 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34639 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34640 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34641 echo $ECHO_N "(cached) $ECHO_C" >&6
34644 ac_cpp='$CXXCPP $CPPFLAGS'
34645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34649 oldcxxflags="$CXXFLAGS"
34650 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34651 cat >conftest.$ac_ext <<_ACEOF
34654 cat confdefs.h >>conftest.$ac_ext
34655 cat >>conftest.$ac_ext <<_ACEOF
34656 /* end confdefs.h. */
34666 rm -f conftest.$ac_objext
34667 if { (ac_try="$ac_compile"
34668 case "(($ac_try" in
34669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34670 *) ac_try_echo=$ac_try;;
34672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34673 (eval "$ac_compile") 2>conftest.er1
34675 grep -v '^ *+' conftest.er1 >conftest.err
34677 cat conftest.err >&5
34678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679 (exit $ac_status); } &&
34680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34681 { (case "(($ac_try" in
34682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34683 *) ac_try_echo=$ac_try;;
34685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34686 (eval "$ac_try") 2>&5
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; } &&
34690 { ac_try='test -s conftest.$ac_objext'
34691 { (case "(($ac_try" in
34692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34693 *) ac_try_echo=$ac_try;;
34695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34696 (eval "$ac_try") 2>&5
34698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699 (exit $ac_status); }; }; then
34700 llvm_cv_cxx_visibility_inlines_hidden=yes
34702 echo "$as_me: failed program was:" >&5
34703 sed 's/^/| /' conftest.$ac_ext >&5
34705 llvm_cv_cxx_visibility_inlines_hidden=no
34708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34709 CXXFLAGS="$oldcxxflags"
34711 ac_cpp='$CPP $CPPFLAGS'
34712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34718 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34719 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34720 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34721 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34724 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34729 if test "$llvm_cv_link_use_r" = "yes" ; then
34736 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34737 RDYNAMIC="-Wl,-export-dynamic"
34744 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34746 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34748 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34750 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34752 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34755 ac_config_files="$ac_config_files Makefile.config"
34758 ac_config_files="$ac_config_files llvm.spec"
34761 ac_config_files="$ac_config_files docs/doxygen.cfg"
34764 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34767 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34770 ac_config_commands="$ac_config_commands setup"
34772 ac_config_commands="$ac_config_commands Makefile"
34775 ac_config_commands="$ac_config_commands Makefile.common"
34778 ac_config_commands="$ac_config_commands examples/Makefile"
34781 ac_config_commands="$ac_config_commands lib/Makefile"
34784 ac_config_commands="$ac_config_commands runtime/Makefile"
34787 ac_config_commands="$ac_config_commands test/Makefile"
34790 ac_config_commands="$ac_config_commands test/Makefile.tests"
34793 ac_config_commands="$ac_config_commands unittests/Makefile"
34796 ac_config_commands="$ac_config_commands tools/Makefile"
34799 ac_config_commands="$ac_config_commands utils/Makefile"
34802 ac_config_commands="$ac_config_commands projects/Makefile"
34805 ac_config_commands="$ac_config_commands bindings/Makefile"
34808 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34812 cat >confcache <<\_ACEOF
34813 # This file is a shell script that caches the results of configure
34814 # tests run on this system so they can be shared between configure
34815 # scripts and configure runs, see configure's option --config-cache.
34816 # It is not useful on other systems. If it contains results you don't
34817 # want to keep, you may remove or edit it.
34819 # config.status only pays attention to the cache file if you give it
34820 # the --recheck option to rerun configure.
34822 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34823 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34824 # following values.
34828 # The following way of writing the cache mishandles newlines in values,
34829 # but we know of no workaround that is simple, portable, and efficient.
34830 # So, we kill variables containing newlines.
34831 # Ultrix sh set writes to stderr and can't be redirected directly,
34832 # and sets the high bit in the cache file unless we assign to the vars.
34834 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34835 eval ac_val=\$$ac_var
34839 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34840 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34843 _ | IFS | as_nl) ;; #(
34844 *) $as_unset $ac_var ;;
34850 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34851 *${as_nl}ac_space=\ *)
34852 # `set' does not quote correctly, so add quotes (double-quote
34853 # substitution turns \\\\ into \\, and sed turns \\ into \).
34856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34859 # `set' quotes correctly as required by POSIX, so do not add quotes.
34860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34871 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34873 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34874 if test -w "$cache_file"; then
34875 test "x$cache_file" != "x/dev/null" &&
34876 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34877 echo "$as_me: updating cache $cache_file" >&6;}
34878 cat confcache >$cache_file
34880 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34881 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34887 # Let make expand exec_prefix.
34888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34890 DEFS=-DHAVE_CONFIG_H
34894 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34895 # 1. Remove the extension, and $U if already installed.
34896 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34897 ac_i=`echo "$ac_i" | sed "$ac_script"`
34898 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34899 # will be set to the directory where LIBOBJS objects are built.
34900 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34901 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34903 LIBOBJS=$ac_libobjs
34905 LTLIBOBJS=$ac_ltlibobjs
34908 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34909 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34910 Usually this means the macro was only invoked conditionally." >&5
34911 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34912 Usually this means the macro was only invoked conditionally." >&2;}
34913 { (exit 1); exit 1; }; }
34915 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34916 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34917 Usually this means the macro was only invoked conditionally." >&5
34918 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34919 Usually this means the macro was only invoked conditionally." >&2;}
34920 { (exit 1); exit 1; }; }
34923 : ${CONFIG_STATUS=./config.status}
34924 ac_clean_files_save=$ac_clean_files
34925 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34926 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34927 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34928 cat >$CONFIG_STATUS <<_ACEOF
34930 # Generated by $as_me.
34931 # Run this file to recreate the current configuration.
34932 # Compiler output produced by configure, useful for debugging
34933 # configure, is in config.log if it exists.
34936 ac_cs_recheck=false
34938 SHELL=\${CONFIG_SHELL-$SHELL}
34941 cat >>$CONFIG_STATUS <<\_ACEOF
34942 ## --------------------- ##
34943 ## M4sh Initialization. ##
34944 ## --------------------- ##
34946 # Be Bourne compatible
34947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34950 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34951 # is contrary to our usage. Disable this feature.
34952 alias -g '${1+"$@"}'='"$@"'
34953 setopt NO_GLOB_SUBST
34955 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34957 BIN_SH=xpg4; export BIN_SH # for Tru64
34958 DUALCASE=1; export DUALCASE # for MKS sh
34962 # Avoid depending upon Character Ranges.
34963 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34964 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34965 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34966 as_cr_digits='0123456789'
34967 as_cr_alnum=$as_cr_Letters$as_cr_digits
34969 # The user is always right.
34970 if test "${PATH_SEPARATOR+set}" != set; then
34971 echo "#! /bin/sh" >conf$$.sh
34972 echo "exit 0" >>conf$$.sh
34974 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34982 # Support unset when possible.
34983 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34991 # We need space, tab and new line, in precisely that order. Quoting is
34992 # there to prevent editors from complaining about space-tab.
34993 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34994 # splitting by setting IFS to empty value.)
34999 # Find who we are. Look in the path if we contain no directory separator.
35001 *[\\/]* ) as_myself=$0 ;;
35002 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35003 for as_dir in $PATH
35006 test -z "$as_dir" && as_dir=.
35007 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35013 # We did not find ourselves, most probably we were run as `sh COMMAND'
35014 # in which case we are not to be found in the path.
35015 if test "x$as_myself" = x; then
35018 if test ! -f "$as_myself"; then
35019 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35020 { (exit 1); exit 1; }
35023 # Work around bugs in pre-3.0 UWIN ksh.
35024 for as_var in ENV MAIL MAILPATH
35025 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35033 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35034 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35035 LC_TELEPHONE LC_TIME
35037 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35038 eval $as_var=C; export $as_var
35040 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35044 # Required to use basename.
35045 if expr a : '\(a\)' >/dev/null 2>&1 &&
35046 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35053 as_basename=basename
35059 # Name of the executable.
35060 as_me=`$as_basename -- "$0" ||
35061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35062 X"$0" : 'X\(//\)$' \| \
35063 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35065 sed '/^.*\/\([^/][^/]*\)\/*$/{
35084 as_lineno_1=$LINENO
35085 as_lineno_2=$LINENO
35086 test "x$as_lineno_1" != "x$as_lineno_2" &&
35087 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35089 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35090 # uniformly replaced by the line number. The first 'sed' inserts a
35091 # line-number line after each line using $LINENO; the second 'sed'
35092 # does the real work. The second script uses 'N' to pair each
35093 # line-number line with the line containing $LINENO, and appends
35094 # trailing '-' during substitution so that $LINENO is not a special
35095 # case at line end.
35096 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35097 # scripts with optimization help from Paolo Bonzini. Blame Lee
35098 # E. McMahon (1931-1989) for sed's syntax. :-)
35110 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35113 ' >$as_me.lineno &&
35114 chmod +x "$as_me.lineno" ||
35115 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35116 { (exit 1); exit 1; }; }
35118 # Don't try to exec as it changes $[0], causing all sort of problems
35119 # (the dirname of $[0] is not the place where we might find the
35120 # original and so on. Autoconf is especially sensitive to this).
35121 . "./$as_me.lineno"
35122 # Exit status is that of the last command.
35127 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35133 ECHO_C= ECHO_N= ECHO_T=
35134 case `echo -n x` in
35136 case `echo 'x\c'` in
35137 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35144 if expr a : '\(a\)' >/dev/null 2>&1 &&
35145 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35151 rm -f conf$$ conf$$.exe conf$$.file
35152 if test -d conf$$.dir; then
35153 rm -f conf$$.dir/conf$$.file
35159 if ln -s conf$$.file conf$$ 2>/dev/null; then
35161 # ... but there are two gotchas:
35162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35164 # In both cases, we have to default to `cp -p'.
35165 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35167 elif ln conf$$.file conf$$ 2>/dev/null; then
35172 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35173 rmdir conf$$.dir 2>/dev/null
35175 if mkdir -p . 2>/dev/null; then
35178 test -d ./-p && rmdir ./-p
35182 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35183 # systems may use methods other than mode bits to determine executability.
35184 cat >conf$$.file <<_ASEOF
35188 chmod +x conf$$.file
35189 if test -x conf$$.file >/dev/null 2>&1; then
35190 as_executable_p="test -x"
35196 # Sed expression to map a string onto a valid CPP name.
35197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35199 # Sed expression to map a string onto a valid variable name.
35200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35205 # Save the log message, to keep $[0] and so on meaningful, and to
35206 # report actual input values of CONFIG_FILES etc. instead of their
35207 # values after options handling.
35209 This file was extended by llvm $as_me 2.6svn, which was
35210 generated by GNU Autoconf 2.60. Invocation command line was
35212 CONFIG_FILES = $CONFIG_FILES
35213 CONFIG_HEADERS = $CONFIG_HEADERS
35214 CONFIG_LINKS = $CONFIG_LINKS
35215 CONFIG_COMMANDS = $CONFIG_COMMANDS
35218 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35223 cat >>$CONFIG_STATUS <<_ACEOF
35224 # Files that config.status was made for.
35225 config_files="$ac_config_files"
35226 config_headers="$ac_config_headers"
35227 config_commands="$ac_config_commands"
35231 cat >>$CONFIG_STATUS <<\_ACEOF
35233 \`$as_me' instantiates files from templates according to the
35234 current configuration.
35236 Usage: $0 [OPTIONS] [FILE]...
35238 -h, --help print this help, then exit
35239 -V, --version print version number, then exit
35240 -q, --quiet do not print progress messages
35241 -d, --debug don't remove temporary files
35242 --recheck update $as_me by reconfiguring in the same conditions
35243 --file=FILE[:TEMPLATE]
35244 instantiate the configuration file FILE
35245 --header=FILE[:TEMPLATE]
35246 instantiate the configuration header FILE
35248 Configuration files:
35251 Configuration headers:
35254 Configuration commands:
35257 Report bugs to <bug-autoconf@gnu.org>."
35260 cat >>$CONFIG_STATUS <<_ACEOF
35262 llvm config.status 2.6svn
35263 configured by $0, generated by GNU Autoconf 2.60,
35264 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35266 Copyright (C) 2006 Free Software Foundation, Inc.
35267 This config.status script is free software; the Free Software Foundation
35268 gives unlimited permission to copy, distribute and modify it."
35275 cat >>$CONFIG_STATUS <<\_ACEOF
35276 # If no file are specified by the user, then we need to provide default
35277 # value. By we need to know if files were specified by the user.
35283 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35284 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35295 # Handling of the options.
35296 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35298 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35299 echo "$ac_cs_version"; exit ;;
35300 --debug | --debu | --deb | --de | --d | -d )
35302 --file | --fil | --fi | --f )
35304 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35305 ac_need_defaults=false;;
35306 --header | --heade | --head | --hea )
35308 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35309 ac_need_defaults=false;;
35311 # Conflict between --help and --header
35312 { echo "$as_me: error: ambiguous option: $1
35313 Try \`$0 --help' for more information." >&2
35314 { (exit 1); exit 1; }; };;
35315 --help | --hel | -h )
35316 echo "$ac_cs_usage"; exit ;;
35317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35318 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35321 # This is an error.
35322 -*) { echo "$as_me: error: unrecognized option: $1
35323 Try \`$0 --help' for more information." >&2
35324 { (exit 1); exit 1; }; } ;;
35326 *) ac_config_targets="$ac_config_targets $1"
35327 ac_need_defaults=false ;;
35333 ac_configure_extra_args=
35335 if $ac_cs_silent; then
35337 ac_configure_extra_args="$ac_configure_extra_args --silent"
35341 cat >>$CONFIG_STATUS <<_ACEOF
35342 if \$ac_cs_recheck; then
35343 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35344 CONFIG_SHELL=$SHELL
35345 export CONFIG_SHELL
35346 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35350 cat >>$CONFIG_STATUS <<\_ACEOF
35354 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35355 ## Running $as_me. ##
35361 cat >>$CONFIG_STATUS <<_ACEOF
35365 llvm_src="${srcdir}"
35369 cat >>$CONFIG_STATUS <<\_ACEOF
35371 # Handling of arguments.
35372 for ac_config_target in $ac_config_targets
35374 case $ac_config_target in
35375 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35376 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35377 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35378 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35379 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35380 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35381 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35382 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35383 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35384 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35385 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35386 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35387 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35388 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35389 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35390 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35391 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35392 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35393 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35394 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35395 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35396 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35397 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35398 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35400 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35401 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35402 { (exit 1); exit 1; }; };;
35407 # If the user did not use the arguments to specify the items to instantiate,
35408 # then the envvar interface is used. Set only those that are not.
35409 # We use the long form for the default assignment because of an extremely
35410 # bizarre bug on SunOS 4.1.3.
35411 if $ac_need_defaults; then
35412 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35413 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35414 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35417 # Have a temporary directory for convenience. Make it in the build tree
35418 # simply because there is no reason against having it here, and in addition,
35419 # creating and moving files from /tmp can sometimes cause problems.
35420 # Hook for its removal unless debugging.
35421 # Note that there is a small window in which the directory will not be cleaned:
35422 # after its creation but before its name has been assigned to `$tmp'.
35426 trap 'exit_status=$?
35427 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35429 trap '{ (exit 1); exit 1; }' 1 2 13 15
35431 # Create a (secure) tmp directory for tmp files.
35434 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35435 test -n "$tmp" && test -d "$tmp"
35438 tmp=./conf$$-$RANDOM
35439 (umask 077 && mkdir "$tmp")
35442 echo "$me: cannot create a temporary directory in ." >&2
35443 { (exit 1); exit 1; }
35447 # Set up the sed scripts for CONFIG_FILES section.
35450 # No need to generate the scripts if there are no CONFIG_FILES.
35451 # This happens for instance when ./config.status config.h
35452 if test -n "$CONFIG_FILES"; then
35459 for ac_last_try in false false false false false :; do
35460 cat >conf$$subs.sed <<_ACEOF
35461 SHELL!$SHELL$ac_delim
35462 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35463 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35464 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35465 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35466 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35467 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35468 exec_prefix!$exec_prefix$ac_delim
35469 prefix!$prefix$ac_delim
35470 program_transform_name!$program_transform_name$ac_delim
35471 bindir!$bindir$ac_delim
35472 sbindir!$sbindir$ac_delim
35473 libexecdir!$libexecdir$ac_delim
35474 datarootdir!$datarootdir$ac_delim
35475 datadir!$datadir$ac_delim
35476 sysconfdir!$sysconfdir$ac_delim
35477 sharedstatedir!$sharedstatedir$ac_delim
35478 localstatedir!$localstatedir$ac_delim
35479 includedir!$includedir$ac_delim
35480 oldincludedir!$oldincludedir$ac_delim
35481 docdir!$docdir$ac_delim
35482 infodir!$infodir$ac_delim
35483 htmldir!$htmldir$ac_delim
35484 dvidir!$dvidir$ac_delim
35485 pdfdir!$pdfdir$ac_delim
35486 psdir!$psdir$ac_delim
35487 libdir!$libdir$ac_delim
35488 localedir!$localedir$ac_delim
35489 mandir!$mandir$ac_delim
35490 DEFS!$DEFS$ac_delim
35491 ECHO_C!$ECHO_C$ac_delim
35492 ECHO_N!$ECHO_N$ac_delim
35493 ECHO_T!$ECHO_T$ac_delim
35494 LIBS!$LIBS$ac_delim
35495 build_alias!$build_alias$ac_delim
35496 host_alias!$host_alias$ac_delim
35497 target_alias!$target_alias$ac_delim
35498 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35499 subdirs!$subdirs$ac_delim
35500 build!$build$ac_delim
35501 build_cpu!$build_cpu$ac_delim
35502 build_vendor!$build_vendor$ac_delim
35503 build_os!$build_os$ac_delim
35504 host!$host$ac_delim
35505 host_cpu!$host_cpu$ac_delim
35506 host_vendor!$host_vendor$ac_delim
35507 host_os!$host_os$ac_delim
35508 target!$target$ac_delim
35509 target_cpu!$target_cpu$ac_delim
35510 target_vendor!$target_vendor$ac_delim
35511 target_os!$target_os$ac_delim
35513 LINKALL!$LINKALL$ac_delim
35514 NOLINKALL!$NOLINKALL$ac_delim
35515 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35516 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35517 ARCH!$ARCH$ac_delim
35518 ENDIAN!$ENDIAN$ac_delim
35520 CFLAGS!$CFLAGS$ac_delim
35521 LDFLAGS!$LDFLAGS$ac_delim
35522 CPPFLAGS!$CPPFLAGS$ac_delim
35523 ac_ct_CC!$ac_ct_CC$ac_delim
35524 EXEEXT!$EXEEXT$ac_delim
35525 OBJEXT!$OBJEXT$ac_delim
35527 GREP!$GREP$ac_delim
35528 EGREP!$EGREP$ac_delim
35529 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35530 BUILD_CC!$BUILD_CC$ac_delim
35531 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35532 BUILD_CXX!$BUILD_CXX$ac_delim
35533 CVSBUILD!$CVSBUILD$ac_delim
35534 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35535 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35536 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35537 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35538 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35539 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35541 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35542 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35543 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35544 ENABLE_PIC!$ENABLE_PIC$ac_delim
35545 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35546 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35547 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
35548 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35549 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35550 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35551 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
35552 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
35554 CXXFLAGS!$CXXFLAGS$ac_delim
35555 ac_ct_CXX!$ac_ct_CXX$ac_delim
35557 ifGNUmake!$ifGNUmake$ac_delim
35560 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35562 elif $ac_last_try; then
35563 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35564 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35565 { (exit 1); exit 1; }; }
35567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35571 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35572 if test -n "$ac_eof"; then
35573 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35574 ac_eof=`expr $ac_eof + 1`
35577 cat >>$CONFIG_STATUS <<_ACEOF
35578 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35582 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35583 s/^/s,@/; s/!/@,|#_!!_#|/
35586 s/'"$ac_delim"'$/,g/; t
35588 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35589 ' >>$CONFIG_STATUS <conf$$subs.sed
35590 rm -f conf$$subs.sed
35591 cat >>$CONFIG_STATUS <<_ACEOF
35597 for ac_last_try in false false false false false :; do
35598 cat >conf$$subs.sed <<_ACEOF
35599 LN_S!$LN_S$ac_delim
35602 DATE!$DATE$ac_delim
35603 FIND!$FIND$ac_delim
35604 MKDIR!$MKDIR$ac_delim
35606 RANLIB!$RANLIB$ac_delim
35610 BINPWD!$BINPWD$ac_delim
35611 GRAPHVIZ!$GRAPHVIZ$ac_delim
35614 NEATO!$NEATO$ac_delim
35615 TWOPI!$TWOPI$ac_delim
35616 CIRCO!$CIRCO$ac_delim
35618 DOTTY!$DOTTY$ac_delim
35619 PERL!$PERL$ac_delim
35620 HAVE_PERL!$HAVE_PERL$ac_delim
35621 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35622 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35623 INSTALL_DATA!$INSTALL_DATA$ac_delim
35624 BZIP2!$BZIP2$ac_delim
35625 DOXYGEN!$DOXYGEN$ac_delim
35626 GROFF!$GROFF$ac_delim
35627 GZIP!$GZIP$ac_delim
35628 POD2HTML!$POD2HTML$ac_delim
35629 POD2MAN!$POD2MAN$ac_delim
35630 RUNTEST!$RUNTEST$ac_delim
35631 TCLSH!$TCLSH$ac_delim
35633 OCAMLC!$OCAMLC$ac_delim
35634 OCAMLOPT!$OCAMLOPT$ac_delim
35635 OCAMLDEP!$OCAMLDEP$ac_delim
35636 OCAMLDOC!$OCAMLDOC$ac_delim
35638 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35639 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35640 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35641 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35642 LIBADD_DL!$LIBADD_DL$ac_delim
35643 ECHO!$ECHO$ac_delim
35645 STRIP!$STRIP$ac_delim
35646 CXXCPP!$CXXCPP$ac_delim
35648 FFLAGS!$FFLAGS$ac_delim
35649 ac_ct_F77!$ac_ct_F77$ac_delim
35650 LIBTOOL!$LIBTOOL$ac_delim
35651 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35652 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35653 LLVMGCC!$LLVMGCC$ac_delim
35654 LLVMGXX!$LLVMGXX$ac_delim
35655 USE_UDIS86!$USE_UDIS86$ac_delim
35656 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35657 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35658 ALLOCA!$ALLOCA$ac_delim
35659 MMAP_FILE!$MMAP_FILE$ac_delim
35660 LLVMCC1!$LLVMCC1$ac_delim
35661 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35662 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35663 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35664 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35665 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35666 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35667 SHLIBEXT!$SHLIBEXT$ac_delim
35668 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35669 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35670 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35671 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35672 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35673 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35674 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35675 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35676 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35677 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35678 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35679 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35680 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35681 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35682 RPATH!$RPATH$ac_delim
35683 RDYNAMIC!$RDYNAMIC$ac_delim
35684 LIBOBJS!$LIBOBJS$ac_delim
35685 LTLIBOBJS!$LTLIBOBJS$ac_delim
35688 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
35690 elif $ac_last_try; then
35691 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35692 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35693 { (exit 1); exit 1; }; }
35695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35699 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35700 if test -n "$ac_eof"; then
35701 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35702 ac_eof=`expr $ac_eof + 1`
35705 cat >>$CONFIG_STATUS <<_ACEOF
35706 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35710 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35711 s/^/s,@/; s/!/@,|#_!!_#|/
35714 s/'"$ac_delim"'$/,g/; t
35716 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35717 ' >>$CONFIG_STATUS <conf$$subs.sed
35718 rm -f conf$$subs.sed
35719 cat >>$CONFIG_STATUS <<_ACEOF
35726 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35727 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35728 # trailing colons and then remove the whole line if VPATH becomes empty
35729 # (actually we leave an empty line to preserve line numbers).
35730 if test "x$srcdir" = x.; then
35731 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35732 s/:*\$(srcdir):*/:/
35733 s/:*\${srcdir}:*/:/
35735 s/^\([^=]*=[ ]*\):*/\1/
35741 cat >>$CONFIG_STATUS <<\_ACEOF
35742 fi # test -n "$CONFIG_FILES"
35745 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35748 :[FHLC]) ac_mode=$ac_tag; continue;;
35750 case $ac_mode$ac_tag in
35752 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35753 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35754 { (exit 1); exit 1; }; };;
35755 :[FH]-) ac_tag=-:-;;
35756 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35773 -) ac_f="$tmp/stdin";;
35774 *) # Look for the file first in the build tree, then in the source tree
35775 # (if the path is not absolute). The absolute path cannot be DOS-style,
35776 # because $ac_f cannot contain `:'.
35780 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35782 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35783 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35784 { (exit 1); exit 1; }; };;
35786 ac_file_inputs="$ac_file_inputs $ac_f"
35789 # Let's still pretend it is `configure' which instantiates (i.e., don't
35790 # use $as_me), people would be surprised to read:
35791 # /* config.h. Generated by config.status. */
35792 configure_input="Generated from "`IFS=:
35793 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35794 if test x"$ac_file" != x-; then
35795 configure_input="$ac_file. $configure_input"
35796 { echo "$as_me:$LINENO: creating $ac_file" >&5
35797 echo "$as_me: creating $ac_file" >&6;}
35801 *:-:* | *:-) cat >"$tmp/stdin";;
35806 ac_dir=`$as_dirname -- "$ac_file" ||
35807 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35808 X"$ac_file" : 'X\(//\)[^/]' \| \
35809 X"$ac_file" : 'X\(//\)$' \| \
35810 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35816 /^X\(\/\/\)[^/].*/{
35831 -*) as_dir=./$as_dir;;
35833 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35837 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35838 *) as_qdir=$as_dir;;
35840 as_dirs="'$as_qdir' $as_dirs"
35841 as_dir=`$as_dirname -- "$as_dir" ||
35842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35843 X"$as_dir" : 'X\(//\)[^/]' \| \
35844 X"$as_dir" : 'X\(//\)$' \| \
35845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35851 /^X\(\/\/\)[^/].*/{
35864 test -d "$as_dir" && break
35866 test -z "$as_dirs" || eval "mkdir $as_dirs"
35867 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35868 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35869 { (exit 1); exit 1; }; }; }
35873 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35876 # A ".." for each directory in $ac_dir_suffix.
35877 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35878 case $ac_top_builddir_sub in
35879 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35880 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35883 ac_abs_top_builddir=$ac_pwd
35884 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35885 # for backward compatibility:
35886 ac_top_builddir=$ac_top_build_prefix
35889 .) # We are building in place.
35891 ac_top_srcdir=$ac_top_builddir_sub
35892 ac_abs_top_srcdir=$ac_pwd ;;
35893 [\\/]* | ?:[\\/]* ) # Absolute name.
35894 ac_srcdir=$srcdir$ac_dir_suffix;
35895 ac_top_srcdir=$srcdir
35896 ac_abs_top_srcdir=$srcdir ;;
35897 *) # Relative name.
35898 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35899 ac_top_srcdir=$ac_top_build_prefix$srcdir
35900 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35902 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35912 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35913 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35917 cat >>$CONFIG_STATUS <<\_ACEOF
35918 # If the template does not know about datarootdir, expand it.
35919 # FIXME: This hack should be removed a few years after 2.60.
35920 ac_datarootdir_hack=; ac_datarootdir_seen=
35922 case `sed -n '/datarootdir/ {
35931 ' $ac_file_inputs` in
35932 *datarootdir*) ac_datarootdir_seen=yes;;
35933 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35934 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35935 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35937 cat >>$CONFIG_STATUS <<_ACEOF
35938 ac_datarootdir_hack='
35939 s&@datadir@&$datadir&g
35940 s&@docdir@&$docdir&g
35941 s&@infodir@&$infodir&g
35942 s&@localedir@&$localedir&g
35943 s&@mandir@&$mandir&g
35944 s&\\\${datarootdir}&$datarootdir&g' ;;
35948 # Neutralize VPATH when `$srcdir' = `.'.
35949 # Shell code in configure.ac might set extrasub.
35950 # FIXME: do we really want to maintain this feature?
35951 cat >>$CONFIG_STATUS <<_ACEOF
35955 cat >>$CONFIG_STATUS <<\_ACEOF
35957 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35958 s&@configure_input@&$configure_input&;t t
35959 s&@top_builddir@&$ac_top_builddir_sub&;t t
35960 s&@srcdir@&$ac_srcdir&;t t
35961 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35962 s&@top_srcdir@&$ac_top_srcdir&;t t
35963 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35964 s&@builddir@&$ac_builddir&;t t
35965 s&@abs_builddir@&$ac_abs_builddir&;t t
35966 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35967 s&@INSTALL@&$ac_INSTALL&;t t
35968 $ac_datarootdir_hack
35969 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35972 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35974 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35975 which seems to be undefined. Please make sure it is defined." >&5
35976 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35977 which seems to be undefined. Please make sure it is defined." >&2;}
35981 -) cat "$tmp/out"; rm -f "$tmp/out";;
35982 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35991 # Transform confdefs.h into a sed script `conftest.defines', that
35992 # substitutes the proper values into config.h.in to produce config.h.
35993 rm -f conftest.defines conftest.tail
35994 # First, append a space to every undef/define line, to ease matching.
35995 echo 's/$/ /' >conftest.defines
35996 # Then, protect against being on the right side of a sed subst, or in
35997 # an unquoted here document, in config.status. If some macros were
35998 # called several times there might be several #defines for the same
35999 # symbol, which is useless. But do not sort them, since the last
36000 # AC_DEFINE must be honored.
36001 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36002 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36003 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36004 # PARAMS is the parameter list in the macro definition--in most cases, it's
36005 # just an empty string.
36006 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36007 ac_dB='\\)[ (].*,\\1define\\2'
36015 s/^[ ]*#[ ]*define[ ][ ]*//
36020 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36021 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36022 ' >>conftest.defines
36024 # Remove the space that was appended to ease matching.
36025 # Then replace #undef with comments. This is necessary, for
36026 # example, in the case of _POSIX_SOURCE, which is predefined and required
36027 # on some systems where configure will not decide to define it.
36028 # (The regexp can be short, since the line contains either #define or #undef.)
36030 s,^[ #]*u.*,/* & */,' >>conftest.defines
36032 # Break up conftest.defines:
36033 ac_max_sed_lines=50
36035 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36036 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36037 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36039 ac_in='$ac_file_inputs'
36040 ac_out='"$tmp/out1"'
36041 ac_nxt='"$tmp/out2"'
36045 # Write a here document:
36046 cat >>$CONFIG_STATUS <<_ACEOF
36047 # First, check the format of the line:
36048 cat >"\$tmp/defines.sed" <<\\CEOF
36049 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36050 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36054 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36056 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36057 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36058 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36059 grep . conftest.tail >/dev/null || break
36060 rm -f conftest.defines
36061 mv conftest.tail conftest.defines
36063 rm -f conftest.defines conftest.tail
36065 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36066 cat >>$CONFIG_STATUS <<\_ACEOF
36067 if test x"$ac_file" != x-; then
36068 echo "/* $configure_input */" >"$tmp/config.h"
36069 cat "$ac_result" >>"$tmp/config.h"
36070 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36071 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36072 echo "$as_me: $ac_file is unchanged" >&6;}
36075 mv "$tmp/config.h" $ac_file
36078 echo "/* $configure_input */"
36084 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36085 echo "$as_me: executing $ac_file commands" >&6;}
36090 case $ac_file$ac_mode in
36091 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36092 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36093 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36094 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36095 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36096 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36097 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36098 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36099 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36100 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36101 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36102 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36103 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36104 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36105 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36106 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36107 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36108 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36109 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36110 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36111 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36112 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36113 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36114 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36115 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36116 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36122 { (exit 0); exit 0; }
36124 chmod +x $CONFIG_STATUS
36125 ac_clean_files=$ac_clean_files_save
36128 # configure is writing to config.log, and then calls config.status.
36129 # config.status does its own redirection, appending to config.log.
36130 # Unfortunately, on DOS this fails, as config.log is still kept open
36131 # by configure, so config.status won't be able to write to it; its
36132 # output is simply discarded. So we exec the FD to /dev/null,
36133 # effectively closing config.log, so it can be properly (re)opened and
36134 # appended to by config.status. When coming back to configure, we
36135 # need to make the FD available again.
36136 if test "$no_create" != yes; then
36138 ac_config_status_args=
36139 test "$silent" = yes &&
36140 ac_config_status_args="$ac_config_status_args --quiet"
36142 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36144 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36145 # would make configure fail if this is the last instruction.
36146 $ac_cs_success || { (exit 1); exit 1; }
36150 # CONFIG_SUBDIRS section.
36152 if test "$no_recursion" != yes; then
36154 # Remove --cache-file and --srcdir arguments so they do not pile up.
36155 ac_sub_configure_args=
36157 eval "set x $ac_configure_args"
36161 if test -n "$ac_prev"; then
36166 -cache-file | --cache-file | --cache-fil | --cache-fi \
36167 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36168 ac_prev=cache_file ;;
36169 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36170 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36173 --config-cache | -C)
36175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36185 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36187 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36191 # Always prepend --prefix to ensure using the same prefix
36192 # in subdir configurations.
36193 ac_arg="--prefix=$prefix"
36195 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36197 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36200 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36202 # Do not complain, so a configure script can configure whichever
36203 # parts of a large source tree are present.
36204 test -d "$srcdir/$ac_dir" || continue
36206 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36207 echo "$as_me:$LINENO: $ac_msg" >&5
36211 -*) as_dir=./$as_dir;;
36213 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36217 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36218 *) as_qdir=$as_dir;;
36220 as_dirs="'$as_qdir' $as_dirs"
36221 as_dir=`$as_dirname -- "$as_dir" ||
36222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36223 X"$as_dir" : 'X\(//\)[^/]' \| \
36224 X"$as_dir" : 'X\(//\)$' \| \
36225 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36231 /^X\(\/\/\)[^/].*/{
36244 test -d "$as_dir" && break
36246 test -z "$as_dirs" || eval "mkdir $as_dirs"
36247 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36248 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36249 { (exit 1); exit 1; }; }; }
36253 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36255 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36256 # A ".." for each directory in $ac_dir_suffix.
36257 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36258 case $ac_top_builddir_sub in
36259 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36260 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36263 ac_abs_top_builddir=$ac_pwd
36264 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36265 # for backward compatibility:
36266 ac_top_builddir=$ac_top_build_prefix
36269 .) # We are building in place.
36271 ac_top_srcdir=$ac_top_builddir_sub
36272 ac_abs_top_srcdir=$ac_pwd ;;
36273 [\\/]* | ?:[\\/]* ) # Absolute name.
36274 ac_srcdir=$srcdir$ac_dir_suffix;
36275 ac_top_srcdir=$srcdir
36276 ac_abs_top_srcdir=$srcdir ;;
36277 *) # Relative name.
36278 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36279 ac_top_srcdir=$ac_top_build_prefix$srcdir
36280 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36282 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36287 # Check for guested configure; otherwise get Cygnus style configure.
36288 if test -f "$ac_srcdir/configure.gnu"; then
36289 ac_sub_configure=$ac_srcdir/configure.gnu
36290 elif test -f "$ac_srcdir/configure"; then
36291 ac_sub_configure=$ac_srcdir/configure
36292 elif test -f "$ac_srcdir/configure.in"; then
36293 # This should be Cygnus configure.
36294 ac_sub_configure=$ac_aux_dir/configure
36296 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36297 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36301 # The recursion is here.
36302 if test -n "$ac_sub_configure"; then
36303 # Make the cache file name correct relative to the subdirectory.
36304 case $cache_file in
36305 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36306 *) # Relative name.
36307 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36310 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36311 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36312 # The eval makes quoting arguments work.
36313 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36314 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36315 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36316 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36317 { (exit 1); exit 1; }; }