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
939 ENABLE_VISIBILITY_INLINES_HIDDEN
945 ac_precious_vars='build_alias
959 ac_subdirs_all='projects/sample
961 projects/llvm-stacker
968 projects/llvm-poolalloc
970 projects/llvm-kernel'
972 # Initialize some variables set by options.
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
984 program_transform_name=s,x,x,
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009 infodir='${datarootdir}/info'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\$ac_option
1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043 bindir=$ac_optarg ;;
1045 -build | --build | --buil | --bui | --bu)
1046 ac_prev=build_alias ;;
1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048 build_alias=$ac_optarg ;;
1050 -cache-file | --cache-file | --cache-fil | --cache-fi \
1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052 ac_prev=cache_file ;;
1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055 cache_file=$ac_optarg ;;
1057 --config-cache | -C)
1058 cache_file=config.cache ;;
1060 -datadir | --datadir | --datadi | --datad)
1062 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063 datadir=$ac_optarg ;;
1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066 | --dataroo | --dataro | --datar)
1067 ac_prev=datarootdir ;;
1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070 datarootdir=$ac_optarg ;;
1072 -disable-* | --disable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1079 eval enable_$ac_feature=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1098 eval enable_$ac_feature=\$ac_optarg ;;
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 htmldir=$ac_optarg ;;
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1143 -libdir | --libdir | --libdi | --libd)
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1234 -psdir | --psdir | --psdi | --psd | --ps)
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 sbindir=$ac_optarg ;;
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 sharedstatedir=$ac_optarg ;;
1260 -site | --site | --sit)
1262 -site=* | --site=* | --sit=*)
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1289 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package=`echo $ac_package| sed 's/-/_/g'`
1295 eval with_$ac_package=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_package=`echo $ac_package | sed 's/-/_/g'`
1304 eval with_$ac_package=no ;;
1307 # Obsolete; use --with-x.
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1355 # Be sure to have absolute directory names.
1356 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1361 eval ac_val=\$$ac_var
1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1375 target=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391 test "$silent" = yes && exec 6>/dev/null
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
1412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1436 ac_srcdir_defaulted=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441 { (exit 1); exit 1; }; }
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1472 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1530 --build=BUILD configure for building on BUILD [guessed]
1531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1532 --target=TARGET configure for building compilers for TARGET [HOST]
1536 if test -n "$ac_init_help"; then
1537 case $ac_init_help in
1538 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1545 --enable-optimized Compile with optimizations enabled (default is NO)
1546 --enable-profiling Compile with profiling enabled (default is NO)
1547 --enable-assertions Compile with assertion checks enabled (default is
1549 --enable-expensive-checks
1550 Compile with expensive debug checks enabled (default
1552 --enable-debug-runtime Build runtime libs with debug symbols (default is
1554 --enable-jit Enable Just In Time Compiling (default is YES)
1555 --enable-doxygen Build doxygen documentation (default is NO)
1556 --enable-threads Use threads if available (default is YES)
1557 --enable-pic Build LLVM with Position Independent Code (default
1559 --enable-targets Build specific host targets:
1560 all,host-only,{target-name} (default=all)
1561 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1563 --enable-bindings Build specific language bindings:
1564 all,auto,none,{binding-name} (default=auto)
1565 --enable-libffi Check for the presence of libffi (default is YES)
1566 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1568 --enable-llvmc-dynamic-plugins
1569 Enable dynamic LLVMC plugins (default is YES)
1570 --enable-ltdl-install install libltdl
1571 --enable-shared[=PKGS] build shared libraries
1573 --enable-static[=PKGS] build static libraries
1575 --enable-fast-install[=PKGS]
1576 optimize for fast installation
1578 --disable-libtool-lock avoid locking (might break parallel builds)
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1585 --with-llvmgcc Specify location of llvm-gcc driver (default
1587 --with-llvmgxx Specify location of llvm-g++ driver (default
1589 --with-extra-options Specify additional options to compile LLVM with
1590 --with-ocaml-libdir Specify install location for ocaml bindings (default
1592 --with-binutils-include Specify path to binutils/include/ containing
1593 plugin-api.h file for gold plugin.
1594 --with-tclinclude directory where tcl headers are
1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-pic try to use only PIC/non-PIC objects [default=use
1598 --with-tags[=TAGS] include additional configurations [automatic]
1599 --with-udis86=<path> Use udis86 external x86 disassembler library
1600 --with-oprofile=<prefix>
1601 Tell OProfile >= 0.9.4 how to symbolize JIT output
1603 Some influential environment variables:
1604 CC C compiler command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1607 nonstandard directory <lib dir>
1608 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1609 you have headers in a nonstandard directory <include dir>
1611 CXX C++ compiler command
1612 CXXFLAGS C++ compiler flags
1613 CXXCPP C++ preprocessor
1614 F77 Fortran 77 compiler command
1615 FFLAGS Fortran 77 compiler flags
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to <llvmbugs@cs.uiuc.edu>.
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" || continue
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1648 .) # We are building in place.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1681 llvm configure 2.6svn
1682 generated by GNU Autoconf 2.60
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1689 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1693 cat >config.log <<_ACEOF
1694 This file contains any messages produced by compilers while
1695 running configure, to aid debugging if configure makes a mistake.
1697 It was created by llvm $as_me 2.6svn, which was
1698 generated by GNU Autoconf 2.60. Invocation command line was
1710 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1711 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1712 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1713 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1714 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1716 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1717 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1719 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1720 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1721 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1722 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1723 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1724 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1725 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 test -z "$as_dir" && as_dir=.
1734 echo "PATH: $as_dir"
1750 # Keep a trace of the command line.
1751 # Strip out --no-create and --no-recursion so they do not pile up.
1752 # Strip out --silent because we don't want to record it for future runs.
1753 # Also quote any args containing shell meta-characters.
1754 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_must_keep_next=false
1764 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766 | -silent | --silent | --silen | --sile | --sil)
1769 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1774 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1775 if test $ac_must_keep_next = true; then
1776 ac_must_keep_next=false # Got value, back to normal.
1779 *=* | --config-cache | -C | -disable-* | --disable-* \
1780 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782 | -with-* | --with-* | -without-* | --without-* | --x)
1783 case "$ac_configure_args0 " in
1784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787 -* ) ac_must_keep_next=true ;;
1790 ac_configure_args="$ac_configure_args '$ac_arg'"
1795 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1796 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1798 # When interrupted or exit'd, cleanup temporary files, and complete
1799 # config.log. We remove comments because anyway the quotes in there
1800 # would cause problems or look ugly.
1801 # WARNING: Use '\'' to represent an apostrophe within the trap.
1802 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1803 trap 'exit_status=$?
1804 # Save into config.log some information that might help in debugging.
1809 ## ---------------- ##
1810 ## Cache variables. ##
1811 ## ---------------- ##
1814 # The following way of writing the cache mishandles newlines in values,
1816 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1817 eval ac_val=\$$ac_var
1821 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1822 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1825 _ | IFS | as_nl) ;; #(
1826 *) $as_unset $ac_var ;;
1831 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1832 *${as_nl}ac_space=\ *)
1834 "s/'\''/'\''\\\\'\'''\''/g;
1835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1846 ## ----------------- ##
1847 ## Output variables. ##
1848 ## ----------------- ##
1851 for ac_var in $ac_subst_vars
1853 eval ac_val=\$$ac_var
1855 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 echo "$ac_var='\''$ac_val'\''"
1861 if test -n "$ac_subst_files"; then
1863 ## ------------------- ##
1864 ## File substitutions. ##
1865 ## ------------------- ##
1868 for ac_var in $ac_subst_files
1870 eval ac_val=\$$ac_var
1872 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874 echo "$ac_var='\''$ac_val'\''"
1879 if test -s confdefs.h; then
1889 test "$ac_signal" != 0 &&
1890 echo "$as_me: caught signal $ac_signal"
1891 echo "$as_me: exit $exit_status"
1893 rm -f core *.core core.conftest.* &&
1894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1897 for ac_signal in 1 2 13 15; do
1898 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1903 rm -f -r conftest* confdefs.h
1905 # Predefined preprocessor variables.
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 # Let the site file select an alternate cache file if it wants to.
1933 # Prefer explicitly selected file to automatically selected ones.
1934 if test -n "$CONFIG_SITE"; then
1935 set x "$CONFIG_SITE"
1936 elif test "x$prefix" != xNONE; then
1937 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1939 set x "$ac_default_prefix/share/config.site" \
1940 "$ac_default_prefix/etc/config.site"
1945 if test -r "$ac_site_file"; then
1946 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947 echo "$as_me: loading site script $ac_site_file" >&6;}
1948 sed 's/^/| /' "$ac_site_file" >&5
1953 if test -r "$cache_file"; then
1954 # Some versions of bash will fail to source /dev/null (special
1955 # files actually), so we avoid doing that.
1956 if test -f "$cache_file"; then
1957 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958 echo "$as_me: loading cache $cache_file" >&6;}
1960 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961 *) . "./$cache_file";;
1965 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966 echo "$as_me: creating cache $cache_file" >&6;}
1970 # Check that the precious variables saved in the cache have kept the same
1972 ac_cache_corrupted=false
1973 for ac_var in $ac_precious_vars; do
1974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1975 eval ac_new_set=\$ac_env_${ac_var}_set
1976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1977 eval ac_new_val=\$ac_env_${ac_var}_value
1978 case $ac_old_set,$ac_new_set in
1980 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1981 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1985 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1989 if test "x$ac_old_val" != "x$ac_new_val"; then
1990 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1991 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1992 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1993 echo "$as_me: former value: $ac_old_val" >&2;}
1994 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1995 echo "$as_me: current value: $ac_new_val" >&2;}
1996 ac_cache_corrupted=:
1999 # Pass precious variables to config.status.
2000 if test "$ac_new_set" = set; then
2002 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2003 *) ac_arg=$ac_var=$ac_new_val ;;
2005 case " $ac_configure_args " in
2006 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2007 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011 if $ac_cache_corrupted; then
2012 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2013 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2014 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2015 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2016 { (exit 1); exit 1; }; }
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2060 for ac_dir in autoconf "$srcdir"/autoconf; do
2061 if test -f "$ac_dir/install-sh"; then
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2065 elif test -f "$ac_dir/install.sh"; then
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2069 elif test -f "$ac_dir/shtool"; then
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2075 if test -z "$ac_aux_dir"; then
2076 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2077 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2078 { (exit 1); exit 1; }; }
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2091 if test ${srcdir} != "." ; then
2092 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2093 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2094 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2095 { (exit 1); exit 1; }; }
2099 for i in `ls ${srcdir}/projects`
2101 if test -d ${srcdir}/projects/${i} ; then
2104 sample) subdirs="$subdirs projects/sample"
2106 privbracket) subdirs="$subdirs projects/privbracket"
2108 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2110 # llvm-test is the old name of the test-suite, kept here for backwards
2112 llvm-test) subdirs="$subdirs projects/llvm-test"
2114 test-suite) subdirs="$subdirs projects/test-suite"
2116 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2118 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2120 llvm-java) subdirs="$subdirs projects/llvm-java"
2122 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2124 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2126 poolalloc) subdirs="$subdirs projects/poolalloc"
2128 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2131 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2132 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2139 # Make sure we can run config.sub.
2140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2142 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2143 { (exit 1); exit 1; }; }
2145 { echo "$as_me:$LINENO: checking build system type" >&5
2146 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_build+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 ac_build_alias=$build_alias
2151 test "x$ac_build_alias" = x &&
2152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153 test "x$ac_build_alias" = x &&
2154 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2155 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2156 { (exit 1); exit 1; }; }
2157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2160 { (exit 1); exit 1; }; }
2163 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2164 echo "${ECHO_T}$ac_cv_build" >&6; }
2165 case $ac_cv_build in
2167 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2168 echo "$as_me: error: invalid value of canonical build" >&2;}
2169 { (exit 1); exit 1; }; };;
2172 ac_save_IFS=$IFS; IFS='-'
2178 # Remember, the first character of IFS is used to create $*,
2179 # except with old shells:
2182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2185 { echo "$as_me:$LINENO: checking host system type" >&5
2186 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2187 if test "${ac_cv_host+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test "x$host_alias" = x; then
2191 ac_cv_host=$ac_cv_build
2193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2194 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2195 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2196 { (exit 1); exit 1; }; }
2200 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2201 echo "${ECHO_T}$ac_cv_host" >&6; }
2204 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2205 echo "$as_me: error: invalid value of canonical host" >&2;}
2206 { (exit 1); exit 1; }; };;
2209 ac_save_IFS=$IFS; IFS='-'
2215 # Remember, the first character of IFS is used to create $*,
2216 # except with old shells:
2219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2222 { echo "$as_me:$LINENO: checking target system type" >&5
2223 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2224 if test "${ac_cv_target+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 if test "x$target_alias" = x; then
2228 ac_cv_target=$ac_cv_host
2230 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2232 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2233 { (exit 1); exit 1; }; }
2237 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2238 echo "${ECHO_T}$ac_cv_target" >&6; }
2239 case $ac_cv_target in
2241 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2242 echo "$as_me: error: invalid value of canonical target" >&2;}
2243 { (exit 1); exit 1; }; };;
2245 target=$ac_cv_target
2246 ac_save_IFS=$IFS; IFS='-'
2252 # Remember, the first character of IFS is used to create $*,
2253 # except with old shells:
2256 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2259 # The aliases save the names the user supplied, while $host etc.
2260 # will get canonicalized.
2261 test -n "$target_alias" &&
2262 test "$program_prefix$program_suffix$program_transform_name" = \
2264 program_prefix=${target_alias}-
2266 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2267 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2268 if test "${llvm_cv_os_type+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="AIX"
2276 llvm_cv_platform_type="Unix" ;;
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="IRIX"
2281 llvm_cv_platform_type="Unix" ;;
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Cygwin"
2286 llvm_cv_platform_type="Unix" ;;
2288 llvm_cv_link_all_option="-Wl,-all_load"
2289 llvm_cv_no_link_all_option="-Wl,-noall_load"
2290 llvm_cv_os_type="Darwin"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="FreeBSD"
2296 llvm_cv_platform_type="Unix" ;;
2298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300 llvm_cv_os_type="OpenBSD"
2301 llvm_cv_platform_type="Unix" ;;
2303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305 llvm_cv_os_type="NetBSD"
2306 llvm_cv_platform_type="Unix" ;;
2308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310 llvm_cv_os_type="DragonFly"
2311 llvm_cv_platform_type="Unix" ;;
2313 llvm_cv_link_all_option="-Wl,--whole-archive"
2314 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2315 llvm_cv_os_type="HP-UX"
2316 llvm_cv_platform_type="Unix" ;;
2318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2320 llvm_cv_os_type="Interix"
2321 llvm_cv_platform_type="Unix" ;;
2323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325 llvm_cv_os_type="Linux"
2326 llvm_cv_platform_type="Unix" ;;
2328 llvm_cv_link_all_option="-Wl,-z,allextract"
2329 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2330 llvm_cv_os_type="SunOS"
2331 llvm_cv_platform_type="Unix" ;;
2333 llvm_cv_link_all_option="-Wl,--whole-archive"
2334 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2335 llvm_cv_os_type="Win32"
2336 llvm_cv_platform_type="Win32" ;;
2338 llvm_cv_link_all_option="-Wl,--whole-archive"
2339 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2340 llvm_cv_os_type="MingW"
2341 llvm_cv_platform_type="Win32" ;;
2343 llvm_cv_link_all_option=""
2344 llvm_cv_no_link_all_option=""
2345 llvm_cv_os_type="Unknown"
2346 llvm_cv_platform_type="Unknown" ;;
2349 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2350 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2352 if test "$llvm_cv_os_type" = "Unknown" ; then
2353 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2354 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2355 { (exit 1); exit 1; }; }
2361 LINKALL=$llvm_cv_link_all_option
2363 NOLINKALL=$llvm_cv_no_link_all_option
2366 case $llvm_cv_platform_type in
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_UNIX 1
2380 cat >>confdefs.h <<\_ACEOF
2381 #define LLVM_ON_WIN32 1
2391 { echo "$as_me:$LINENO: checking target architecture" >&5
2392 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2393 if test "${llvm_cv_target_arch+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 i?86-*) llvm_cv_target_arch="x86" ;;
2398 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2399 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2400 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2401 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2402 ia64-*) llvm_cv_target_arch="IA64" ;;
2403 arm*-*) llvm_cv_target_arch="ARM" ;;
2404 mips-*) llvm_cv_target_arch="Mips" ;;
2405 pic16-*) llvm_cv_target_arch="PIC16" ;;
2406 xcore-*) llvm_cv_target_arch="XCore" ;;
2407 msp430-*) llvm_cv_target_arch="MSP430" ;;
2408 *) llvm_cv_target_arch="Unknown" ;;
2411 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2412 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2414 if test "$llvm_cv_target_arch" = "Unknown" ; then
2415 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2416 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2419 # Determine the LLVM native architecture for the target
2420 case "$llvm_cv_target_arch" in
2421 x86) LLVM_NATIVE_ARCH="X86" ;;
2422 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2423 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2426 ARCH=$llvm_cv_target_arch
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 if test -n "$CC"; then
2464 { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2473 if test -z "$ac_cv_prog_CC"; then
2475 # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_CC="gcc"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2511 if test "x$ac_ct_CC" = x; then
2514 case $cross_compiling:$ac_tool_warned in
2516 { echo "$as_me:$LINENO: 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." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2530 if test -z "$CC"; then
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_CC="${ac_tool_prefix}cc"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test -n "$CC"; then
2561 { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2564 { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2571 if test -z "$CC"; then
2572 # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591 ac_prog_rejected=yes
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2606 if test $# != 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2627 if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$CC" && break
2671 if test -z "$CC"; then
2673 for ac_prog in cl.exe
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_ac_ct_CC="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2712 test -n "$ac_ct_CC" && break
2715 if test "x$ac_ct_CC" = x; then
2718 case $cross_compiling:$ac_tool_warned in
2720 { echo "$as_me:$LINENO: 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." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet. If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&2;}
2739 { (exit 1); exit 1; }; }
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking for C compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compiler --version >&5") 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compiler -v >&5") 2>&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_compiler -V >&5") 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2795 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort. b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions. Remove them first so a
2806 # subsequent execution test works.
2808 for ac_file in $ac_files
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817 if { (ac_try="$ac_link_default"
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_link_default") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; then
2827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2832 for ac_file in $ac_files
2834 test -f "$ac_file" || continue
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2839 # We found the default executable, but exeext='' is most
2843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847 # We set ac_cv_exeext here because the later test for it is not
2848 # safe: cross compilers may not add the suffix if given an `-o'
2849 # argument, so we may need to know it at that point already.
2850 # Even if this section looks crufty: it has the advantage of
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2864 See \`config.log' for more details." >&5
2865 echo "$as_me: error: C compiler cannot create executables
2866 See \`config.log' for more details." >&2;}
2867 { (exit 77); exit 77; }; }
2870 ac_exeext=$ac_cv_exeext
2871 { echo "$as_me:$LINENO: result: $ac_file" >&5
2872 echo "${ECHO_T}$ac_file" >&6; }
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2877 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2878 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2879 # If not cross compiling, check that we can run a simple program.
2880 if test "$cross_compiling" != yes; then
2881 if { ac_try='./$ac_file'
2882 { (case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_try") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2893 if test "$cross_compiling" = maybe; then
2896 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&5
2899 echo "$as_me: error: cannot run C compiled programs.
2900 If you meant to cross compile, use \`--host'.
2901 See \`config.log' for more details." >&2;}
2902 { (exit 1); exit 1; }; }
2906 { echo "$as_me:$LINENO: result: yes" >&5
2907 echo "${ECHO_T}yes" >&6; }
2909 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2910 ac_clean_files=$ac_clean_files_save
2911 # Check that the compiler produces executables we can run. If not, either
2912 # the compiler is broken, or we cross compile.
2913 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2914 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2915 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2916 echo "${ECHO_T}$cross_compiling" >&6; }
2918 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2919 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2920 if { (ac_try="$ac_link"
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_link") 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2931 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2932 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 for ac_file in conftest.exe conftest conftest.*; do
2935 test -f "$ac_file" || continue
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2951 rm -f conftest$ac_cv_exeext
2952 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2953 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2955 rm -f conftest.$ac_ext
2956 EXEEXT=$ac_cv_exeext
2958 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2959 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2960 if test "${ac_cv_objext+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2978 rm -f conftest.o conftest.obj
2979 if { (ac_try="$ac_compile"
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
2989 for ac_file in conftest.o conftest.obj conftest.*; do
2990 test -f "$ac_file" || continue;
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2993 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3004 See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3008 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3011 echo "${ECHO_T}$ac_cv_objext" >&6; }
3012 OBJEXT=$ac_cv_objext
3014 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3015 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3016 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3083 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3084 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3085 GCC=`test $ac_compiler_gnu = yes && echo yes`
3086 ac_test_CFLAGS=${CFLAGS+set}
3087 ac_save_CFLAGS=$CFLAGS
3088 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3089 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3090 if test "${ac_cv_prog_cc_g+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 ac_save_c_werror_flag=$ac_c_werror_flag
3094 ac_c_werror_flag=yes
3097 cat >conftest.$ac_ext <<_ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3208 cat >conftest.$ac_ext <<_ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3238 { (case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_try") 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_try") 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 ac_c_werror_flag=$ac_save_c_werror_flag
3274 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3275 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3276 if test "$ac_test_CFLAGS" = set; then
3277 CFLAGS=$ac_save_CFLAGS
3278 elif test $ac_cv_prog_cc_g = yes; then
3279 if test "$GCC" = yes; then
3285 if test "$GCC" = yes; then
3291 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3292 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3293 if test "${ac_cv_prog_cc_c89+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 ac_cv_prog_cc_c89=no
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3306 #include <sys/types.h>
3307 #include <sys/stat.h>
3308 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3309 struct buf { int x; };
3310 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3311 static char *e (p, i)
3317 static char *f (char * (*g) (char **, int), char **p, ...)
3322 s = g (p, va_arg (v,int));
3327 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3328 function prototypes and stuff, but not '\xHH' hex character constants.
3329 These don't provoke an error unfortunately, instead are silently treated
3330 as 'x'. The following induces an error, until -std is added to get
3331 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3332 array size at least. It's necessary to write '\x00'==0 to get something
3333 that's true only with -std. */
3334 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3336 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3337 inside strings and character constants. */
3339 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3355 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3356 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3358 CC="$ac_save_CC $ac_arg"
3359 rm -f conftest.$ac_objext
3360 if { (ac_try="$ac_compile"
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_compile") 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3374 { (case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_try") 2>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_try") 2>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 ac_cv_prog_cc_c89=$ac_arg
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3401 rm -f core conftest.err conftest.$ac_objext
3402 test "x$ac_cv_prog_cc_c89" != "xno" && break
3404 rm -f conftest.$ac_ext
3409 case "x$ac_cv_prog_cc_c89" in
3411 { echo "$as_me:$LINENO: result: none needed" >&5
3412 echo "${ECHO_T}none needed" >&6; } ;;
3414 { echo "$as_me:$LINENO: result: unsupported" >&5
3415 echo "${ECHO_T}unsupported" >&6; } ;;
3417 CC="$CC $ac_cv_prog_cc_c89"
3418 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3419 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3436 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3437 # On Suns, sometimes $CPP names a directory.
3438 if test -n "$CPP" && test -d "$CPP"; then
3441 if test -z "$CPP"; then
3442 if test "${ac_cv_prog_CPP+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 # Double quotes because CPP needs to be expanded
3446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449 for ac_c_preproc_warn_flag in '' yes
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 # <limits.h> exists even on freestanding compilers.
3455 # On the NeXT, cc -E runs the code through the compiler's parser,
3456 # not just through cpp. "Syntax error" is here to catch this case.
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3464 # include <limits.h>
3466 # include <assert.h>
3470 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 if test -z "$ac_cpp_err"; then
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 # Broken: fails on valid input.
3502 rm -f conftest.err conftest.$ac_ext
3504 # OK, works on sane cases. Now check whether nonexistent headers
3505 # can be detected and how.
3506 cat >conftest.$ac_ext <<_ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3512 #include <ac_nonexistent.h>
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev/null; then
3527 if test -s conftest.err; then
3528 ac_cpp_err=$ac_c_preproc_warn_flag
3529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536 if test -z "$ac_cpp_err"; then
3537 # Broken: success on invalid input.
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3543 # Passes both tests.
3548 rm -f conftest.err conftest.$ac_ext
3551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552 rm -f conftest.err conftest.$ac_ext
3553 if $ac_preproc_ok; then
3565 { echo "$as_me:$LINENO: result: $CPP" >&5
3566 echo "${ECHO_T}$CPP" >&6; }
3568 for ac_c_preproc_warn_flag in '' yes
3570 # Use a header file that comes with gcc, so configuring glibc
3571 # with a fresh cross-compiler works.
3572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573 # <limits.h> exists even on freestanding compilers.
3574 # On the NeXT, cc -E runs the code through the compiler's parser,
3575 # not just through cpp. "Syntax error" is here to catch this case.
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3583 # include <limits.h>
3585 # include <assert.h>
3589 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 if test -z "$ac_cpp_err"; then
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 # Broken: fails on valid input.
3621 rm -f conftest.err conftest.$ac_ext
3623 # OK, works on sane cases. Now check whether nonexistent headers
3624 # can be detected and how.
3625 cat >conftest.$ac_ext <<_ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 #include <ac_nonexistent.h>
3633 if { (ac_try="$ac_cpp conftest.$ac_ext"
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641 grep -v '^ *+' conftest.er1 >conftest.err
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } >/dev/null; then
3646 if test -s conftest.err; then
3647 ac_cpp_err=$ac_c_preproc_warn_flag
3648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3655 if test -z "$ac_cpp_err"; then
3656 # Broken: success on invalid input.
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 # Passes both tests.
3667 rm -f conftest.err conftest.$ac_ext
3670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 rm -f conftest.err conftest.$ac_ext
3672 if $ac_preproc_ok; then
3675 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3676 See \`config.log' for more details." >&5
3677 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details." >&2;}
3679 { (exit 1); exit 1; }; }
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3690 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3691 if test "${ac_cv_path_GREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 # Extract the first word of "grep ggrep" to use in msg output
3695 if test -z "$GREP"; then
3696 set dummy grep ggrep; ac_prog_name=$2
3697 if test "${ac_cv_path_GREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 ac_path_GREP_found=false
3701 # Loop through the user's path and test for each of PROGNAME-LIST
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3706 test -z "$as_dir" && as_dir=.
3707 for ac_prog in grep ggrep; do
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3710 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3711 # Check for GNU ac_path_GREP and select it if it is found.
3712 # Check for GNU $ac_path_GREP
3713 case `"$ac_path_GREP" --version 2>&1` in
3715 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3718 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3721 cat "conftest.in" "conftest.in" >"conftest.tmp"
3722 mv "conftest.tmp" "conftest.in"
3723 cp "conftest.in" "conftest.nl"
3724 echo 'GREP' >> "conftest.nl"
3725 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727 ac_count=`expr $ac_count + 1`
3728 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3729 # Best one so far, save it but keep looking for a better one
3730 ac_cv_path_GREP="$ac_path_GREP"
3731 ac_path_GREP_max=$ac_count
3733 # 10*(2^10) chars as input seems more than enough
3734 test $ac_count -gt 10 && break
3736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740 $ac_path_GREP_found && break 3
3750 GREP="$ac_cv_path_GREP"
3751 if test -z "$GREP"; then
3752 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3753 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3754 { (exit 1); exit 1; }; }
3758 ac_cv_path_GREP=$GREP
3763 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3764 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3765 GREP="$ac_cv_path_GREP"
3768 { echo "$as_me:$LINENO: checking for egrep" >&5
3769 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3770 if test "${ac_cv_path_EGREP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774 then ac_cv_path_EGREP="$GREP -E"
3776 # Extract the first word of "egrep" to use in msg output
3777 if test -z "$EGREP"; then
3778 set dummy egrep; ac_prog_name=$2
3779 if test "${ac_cv_path_EGREP+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 ac_path_EGREP_found=false
3783 # Loop through the user's path and test for each of PROGNAME-LIST
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3788 test -z "$as_dir" && as_dir=.
3789 for ac_prog in egrep; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3792 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3793 # Check for GNU ac_path_EGREP and select it if it is found.
3794 # Check for GNU $ac_path_EGREP
3795 case `"$ac_path_EGREP" --version 2>&1` in
3797 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3800 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3803 cat "conftest.in" "conftest.in" >"conftest.tmp"
3804 mv "conftest.tmp" "conftest.in"
3805 cp "conftest.in" "conftest.nl"
3806 echo 'EGREP' >> "conftest.nl"
3807 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3809 ac_count=`expr $ac_count + 1`
3810 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3811 # Best one so far, save it but keep looking for a better one
3812 ac_cv_path_EGREP="$ac_path_EGREP"
3813 ac_path_EGREP_max=$ac_count
3815 # 10*(2^10) chars as input seems more than enough
3816 test $ac_count -gt 10 && break
3818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822 $ac_path_EGREP_found && break 3
3832 EGREP="$ac_cv_path_EGREP"
3833 if test -z "$EGREP"; then
3834 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3835 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3836 { (exit 1); exit 1; }; }
3840 ac_cv_path_EGREP=$EGREP
3846 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3847 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3848 EGREP="$ac_cv_path_EGREP"
3851 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3852 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3853 if test "${ac_cv_header_stdc+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 cat >conftest.$ac_ext <<_ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3875 rm -f conftest.$ac_objext
3876 if { (ac_try="$ac_compile"
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3884 grep -v '^ *+' conftest.er1 >conftest.err
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3890 { (case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_try") 2>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_try") 2>&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_header_stdc=yes
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 ac_cv_header_stdc=no
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 if test $ac_cv_header_stdc = yes; then
3920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3931 $EGREP "memchr" >/dev/null 2>&1; then
3934 ac_cv_header_stdc=no
3940 if test $ac_cv_header_stdc = yes; then
3941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "free" >/dev/null 2>&1; then
3955 ac_cv_header_stdc=no
3961 if test $ac_cv_header_stdc = yes; then
3962 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3963 if test "$cross_compiling" = yes; then
3966 cat >conftest.$ac_ext <<_ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3974 #if ((' ' & 0x0FF) == 0x020)
3975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978 # define ISLOWER(c) \
3979 (('a' <= (c) && (c) <= 'i') \
3980 || ('j' <= (c) && (c) <= 'r') \
3981 || ('s' <= (c) && (c) <= 'z'))
3982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3990 for (i = 0; i < 256; i++)
3991 if (XOR (islower (i), ISLOWER (i))
3992 || toupper (i) != TOUPPER (i))
3997 rm -f conftest$ac_exeext
3998 if { (ac_try="$ac_link"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_link") 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4008 { (case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_try") 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4019 echo "$as_me: program exited with status $ac_status" >&5
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4024 ac_cv_header_stdc=no
4026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4032 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4033 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4034 if test $ac_cv_header_stdc = yes; then
4036 cat >>confdefs.h <<\_ACEOF
4037 #define STDC_HEADERS 1
4042 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4052 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4053 inttypes.h stdint.h unistd.h
4055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 cat >conftest.$ac_ext <<_ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 $ac_includes_default
4069 #include <$ac_header>
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_compile") 2>conftest.er1
4080 grep -v '^ *+' conftest.er1 >conftest.err
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4086 { (case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_try") 2>&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 eval "$as_ac_Header=yes"
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4110 eval "$as_ac_Header=no"
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 ac_res=`eval echo '${'$as_ac_Header'}'`
4116 { echo "$as_me:$LINENO: result: $ac_res" >&5
4117 echo "${ECHO_T}$ac_res" >&6; }
4118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4119 cat >>confdefs.h <<_ACEOF
4120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4128 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4129 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4130 if test "${ac_cv_c_bigendian+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 # See if sys/param.h defines the BYTE_ORDER macro.
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <sys/types.h>
4141 #include <sys/param.h>
4146 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4163 grep -v '^ *+' conftest.er1 >conftest.err
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 # It does; now see whether it defined to BIG_ENDIAN or not.
4189 cat >conftest.$ac_ext <<_ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4195 #include <sys/types.h>
4196 #include <sys/param.h>
4201 #if BYTE_ORDER != BIG_ENDIAN
4209 rm -f conftest.$ac_objext
4210 if { (ac_try="$ac_compile"
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_compile") 2>conftest.er1
4218 grep -v '^ *+' conftest.er1 >conftest.err
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4224 { (case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_try") 2>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_try") 2>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_cv_c_bigendian=yes
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_cv_c_bigendian=no
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4256 # It does not; compile a test program.
4257 if test "$cross_compiling" = yes; then
4258 # try to guess the endianness by grepping values into an object file
4259 ac_cv_c_bigendian=unknown
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4267 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4268 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4269 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4270 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4271 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4275 _ascii (); _ebcdic ();
4280 rm -f conftest.$ac_objext
4281 if { (ac_try="$ac_compile"
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_compile") 2>conftest.er1
4289 grep -v '^ *+' conftest.er1 >conftest.err
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest.$ac_objext'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4315 ac_cv_c_bigendian=yes
4317 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4318 if test "$ac_cv_c_bigendian" = unknown; then
4319 ac_cv_c_bigendian=no
4321 # finding both strings is unlikely to happen, but who knows?
4322 ac_cv_c_bigendian=unknown
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4345 /* Are we little or big endian? From Harbison&Steele. */
4349 char c[sizeof (long int)];
4352 return u.c[sizeof (long int) - 1] == 1;
4358 rm -f conftest$ac_exeext
4359 if { (ac_try="$ac_link"
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_link") 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_cv_c_bigendian=no
4380 echo "$as_me: program exited with status $ac_status" >&5
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4385 ac_cv_c_bigendian=yes
4387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4396 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4397 case $ac_cv_c_bigendian in
4405 { { echo "$as_me:$LINENO: error: unknown endianness
4406 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4407 echo "$as_me: error: unknown endianness
4408 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4409 { (exit 1); exit 1; }; } ;;
4413 if test "$cross_compiling" = yes; then
4414 LLVM_CROSS_COMPILING=1
4417 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4418 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4419 if test "${ac_cv_build_exeext+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4423 ac_cv_build_exeext=.exe
4425 ac_build_prefix=${build_alias}-
4427 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4428 set dummy ${ac_build_prefix}gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 BUILD_CC=$ac_cv_prog_BUILD_CC
4455 if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "gcc", so it can be a program name with args.
4466 set dummy gcc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_BUILD_CC="gcc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 BUILD_CC=$ac_cv_prog_BUILD_CC
4493 if test -n "$BUILD_CC"; then
4494 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495 echo "${ECHO_T}$BUILD_CC" >&6; }
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4502 if test -z "$BUILD_CC"; then
4503 # Extract the first word of "cc", so it can be a program name with args.
4504 set dummy cc; ac_word=$2
4505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4507 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 if test -n "$BUILD_CC"; then
4511 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4522 ac_prog_rejected=yes
4525 ac_cv_prog_BUILD_CC="cc"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 if test $ac_prog_rejected = yes; then
4534 # We found a bogon in the path, so make sure we never use it.
4535 set dummy $ac_cv_prog_BUILD_CC
4537 if test $# != 0; then
4538 # We chose a different compiler from the bogus one.
4539 # However, it has the same basename, so the bogon will be chosen
4540 # first if we set BUILD_CC to just the basename; use the full file name.
4542 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4547 BUILD_CC=$ac_cv_prog_BUILD_CC
4548 if test -n "$BUILD_CC"; then
4549 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4550 echo "${ECHO_T}$BUILD_CC" >&6; }
4552 { echo "$as_me:$LINENO: result: no" >&5
4553 echo "${ECHO_T}no" >&6; }
4559 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4560 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4561 { (exit 1); exit 1; }; }
4562 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564 echo 'int main () { return 0; }' > conftest.$ac_ext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4567 (eval $ac_build_link) 2>&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; then
4571 for file in conftest.*; do
4573 *.c | *.o | *.obj | *.dSYM) ;;
4574 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4578 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4579 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4580 { (exit 1); exit 1; }; }
4583 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4588 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4589 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4590 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4591 ac_build_exeext=$BUILD_EXEEXT
4593 ac_build_prefix=${build_alias}-
4594 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4595 set dummy ${ac_build_prefix}g++; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if test -n "$BUILD_CXX"; then
4602 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4622 if test -n "$BUILD_CXX"; then
4623 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4624 echo "${ECHO_T}$BUILD_CXX" >&6; }
4626 { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4631 if test -z "$BUILD_CXX"; then
4632 # Extract the first word of "g++", so it can be a program name with args.
4633 set dummy g++; ac_word=$2
4634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 if test -n "$BUILD_CXX"; then
4640 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_BUILD_CXX="g++"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4660 if test -n "$BUILD_CXX"; then
4661 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4662 echo "${ECHO_T}$BUILD_CXX" >&6; }
4664 { echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6; }
4669 if test -z "$BUILD_CXX"; then
4670 # Extract the first word of "c++", so it can be a program name with args.
4671 set dummy c++; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 if test -n "$BUILD_CXX"; then
4678 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4689 ac_prog_rejected=yes
4692 ac_cv_prog_BUILD_CXX="c++"
4693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 if test $ac_prog_rejected = yes; then
4701 # We found a bogon in the path, so make sure we never use it.
4702 set dummy $ac_cv_prog_BUILD_CXX
4704 if test $# != 0; then
4705 # We chose a different compiler from the bogus one.
4706 # However, it has the same basename, so the bogon will be chosen
4707 # first if we set BUILD_CXX to just the basename; use the full file name.
4709 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4714 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4715 if test -n "$BUILD_CXX"; then
4716 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4717 echo "${ECHO_T}$BUILD_CXX" >&6; }
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4727 LLVM_CROSS_COMPILING=0
4731 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4742 # Check whether --enable-optimized was given.
4743 if test "${enable_optimized+set}" = set; then
4744 enableval=$enable_optimized;
4749 if test ${enableval} = "no" ; then
4753 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4757 # Check whether --enable-profiling was given.
4758 if test "${enable_profiling+set}" = set; then
4759 enableval=$enable_profiling;
4764 if test ${enableval} = "no" ; then
4768 ENABLE_PROFILING=ENABLE_PROFILING=1
4772 # Check whether --enable-assertions was given.
4773 if test "${enable_assertions+set}" = set; then
4774 enableval=$enable_assertions;
4779 if test ${enableval} = "yes" ; then
4783 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4787 # Check whether --enable-expensive-checks was given.
4788 if test "${enable_expensive_checks+set}" = set; then
4789 enableval=$enable_expensive_checks;
4794 if test ${enableval} = "yes" ; then
4795 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4797 EXPENSIVE_CHECKS=yes
4800 ENABLE_EXPENSIVE_CHECKS=
4806 # Check whether --enable-debug-runtime was given.
4807 if test "${enable_debug_runtime+set}" = set; then
4808 enableval=$enable_debug_runtime;
4813 if test ${enableval} = "no" ; then
4817 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4821 # Check whether --enable-jit was given.
4822 if test "${enable_jit+set}" = set; then
4823 enableval=$enable_jit;
4828 if test ${enableval} = "no"
4833 case "$llvm_cv_target_arch" in
4834 x86) TARGET_HAS_JIT=1
4836 Sparc) TARGET_HAS_JIT=0
4838 PowerPC) TARGET_HAS_JIT=1
4840 x86_64) TARGET_HAS_JIT=1
4842 Alpha) TARGET_HAS_JIT=1
4844 IA64) TARGET_HAS_JIT=0
4846 ARM) TARGET_HAS_JIT=0
4848 Mips) TARGET_HAS_JIT=0
4850 PIC16) TARGET_HAS_JIT=0
4852 XCore) TARGET_HAS_JIT=0
4854 MSP430) TARGET_HAS_JIT=0
4861 # Check whether --enable-doxygen was given.
4862 if test "${enable_doxygen+set}" = set; then
4863 enableval=$enable_doxygen;
4868 case "$enableval" in
4869 yes) ENABLE_DOXYGEN=1
4871 no) ENABLE_DOXYGEN=0
4873 default) ENABLE_DOXYGEN=0
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4880 # Check whether --enable-threads was given.
4881 if test "${enable_threads+set}" = set; then
4882 enableval=$enable_threads;
4887 case "$enableval" in
4888 yes) ENABLE_THREADS=1
4890 no) ENABLE_THREADS=0
4892 default) ENABLE_THREADS=1
4894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
4899 cat >>confdefs.h <<_ACEOF
4900 #define ENABLE_THREADS $ENABLE_THREADS
4904 # Check whether --enable-pic was given.
4905 if test "${enable_pic+set}" = set; then
4906 enableval=$enable_pic;
4911 case "$enableval" in
4916 default) ENABLE_PIC=1
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 cat >>confdefs.h <<_ACEOF
4924 #define ENABLE_PIC $ENABLE_PIC
4929 # Check whether --enable-targets was given.
4930 if test "${enable_targets+set}" = set; then
4931 enableval=$enable_targets;
4936 case "$enableval" in
4937 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4939 case "$llvm_cv_target_arch" in
4940 x86) TARGETS_TO_BUILD="X86" ;;
4941 x86_64) TARGETS_TO_BUILD="X86" ;;
4942 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4943 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4944 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4945 IA64) TARGETS_TO_BUILD="IA64" ;;
4946 ARM) TARGETS_TO_BUILD="ARM" ;;
4947 Mips) TARGETS_TO_BUILD="Mips" ;;
4948 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4949 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4950 XCore) TARGETS_TO_BUILD="XCore" ;;
4951 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4952 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4953 echo "$as_me: error: Can not set target to build" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4957 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4959 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4960 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4962 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4963 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4964 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4965 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4966 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4967 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4968 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4969 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4970 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4971 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4972 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4973 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4974 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4975 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4976 { (exit 1); exit 1; }; } ;;
4981 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4984 # Determine whether we are building LLVM support for the native architecture.
4985 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4986 for a_target in $TARGETS_TO_BUILD; do
4987 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4988 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4990 cat >>confdefs.h <<_ACEOF
4991 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4997 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4998 # Targets.def and AsmPrinters.def.
4999 LLVM_ENUM_TARGETS=""
5000 LLVM_ENUM_ASM_PRINTERS=""
5001 for target_to_build in $TARGETS_TO_BUILD; do
5002 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5003 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5004 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5010 # Check whether --enable-cbe-printf-a was given.
5011 if test "${enable_cbe_printf_a+set}" = set; then
5012 enableval=$enable_cbe_printf_a;
5017 case "$enableval" in
5018 yes) ENABLE_CBE_PRINTF_A=1
5020 no) ENABLE_CBE_PRINTF_A=0
5022 default) ENABLE_CBE_PRINTF_A=1
5024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5025 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5026 { (exit 1); exit 1; }; } ;;
5029 cat >>confdefs.h <<_ACEOF
5030 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5035 # Check whether --with-llvmgccdir was given.
5036 if test "${with_llvmgccdir+set}" = set; then
5037 withval=$with_llvmgccdir;
5043 default) WITH_LLVMGCCDIR=default ;;
5044 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5045 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5046 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5051 # Check whether --with-llvmgcc was given.
5052 if test "${with_llvmgcc+set}" = set; then
5053 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5059 # Check whether --with-llvmgxx was given.
5060 if test "${with_llvmgxx+set}" = set; then
5061 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5066 if test -n "$LLVMGCC"; then
5067 LLVMGCCCOMMAND="$LLVMGCC"
5070 if test -n "$LLVMGXX"; then
5071 LLVMGXXCOMMAND="$LLVMGXX"
5074 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5075 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5076 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5077 { (exit 1); exit 1; }; };
5080 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5081 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5082 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5083 { (exit 1); exit 1; }; };
5087 # Check whether --with-extra-options was given.
5088 if test "${with_extra_options+set}" = set; then
5089 withval=$with_extra_options;
5095 default) EXTRA_OPTIONS= ;;
5096 *) EXTRA_OPTIONS=$withval ;;
5098 EXTRA_OPTIONS=$EXTRA_OPTIONS
5101 # Check whether --enable-bindings was given.
5102 if test "${enable_bindings+set}" = set; then
5103 enableval=$enable_bindings;
5108 BINDINGS_TO_BUILD=""
5109 case "$enableval" in
5110 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5111 all ) BINDINGS_TO_BUILD="ocaml" ;;
5112 none | no) BINDINGS_TO_BUILD="" ;;
5113 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5114 case "$a_binding" in
5115 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5116 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5117 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5118 { (exit 1); exit 1; }; } ;;
5125 # Check whether --with-ocaml-libdir was given.
5126 if test "${with_ocaml_libdir+set}" = set; then
5127 withval=$with_ocaml_libdir;
5133 auto) with_ocaml_libdir="$withval" ;;
5134 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5135 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5136 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5141 # Check whether --with-binutils-include was given.
5142 if test "${with_binutils_include+set}" = set; then
5143 withval=$with_binutils_include;
5149 default) WITH_BINUTILS_INCDIR=default ;;
5150 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5151 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5152 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5155 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5156 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5158 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5159 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5160 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5161 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5162 { (exit 1); exit 1; }; };
5166 # Check whether --enable-libffi was given.
5167 if test "${enable_libffi+set}" = set; then
5168 enableval=$enable_libffi;
5173 case "$enableval" in
5174 yes) llvm_cv_enable_libffi="yes" ;;
5175 no) llvm_cv_enable_libffi="no" ;;
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5181 if test "$llvm_cv_os_type" = "Win32" ; then
5187 # Check whether --enable-llvmc-dynamic was given.
5188 if test "${enable_llvmc_dynamic+set}" = set; then
5189 enableval=$enable_llvmc_dynamic;
5191 enableval=$llvmc_dynamic
5194 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5195 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5198 ENABLE_LLVMC_DYNAMIC=
5202 # Check whether --enable-llvmc-dynamic-plugins was given.
5203 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5204 enableval=$enable_llvmc_dynamic_plugins;
5209 if test ${enableval} = "yes" ; then
5210 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5213 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5224 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5225 # On Suns, sometimes $CPP names a directory.
5226 if test -n "$CPP" && test -d "$CPP"; then
5229 if test -z "$CPP"; then
5230 if test "${ac_cv_prog_CPP+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 # Double quotes because CPP needs to be expanded
5234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5237 for ac_c_preproc_warn_flag in '' yes
5239 # Use a header file that comes with gcc, so configuring glibc
5240 # with a fresh cross-compiler works.
5241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 # <limits.h> exists even on freestanding compilers.
5243 # On the NeXT, cc -E runs the code through the compiler's parser,
5244 # not just through cpp. "Syntax error" is here to catch this case.
5245 cat >conftest.$ac_ext <<_ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5252 # include <limits.h>
5254 # include <assert.h>
5258 if { (ac_try="$ac_cpp conftest.$ac_ext"
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5266 grep -v '^ *+' conftest.er1 >conftest.err
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } >/dev/null; then
5271 if test -s conftest.err; then
5272 ac_cpp_err=$ac_c_preproc_warn_flag
5273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5280 if test -z "$ac_cpp_err"; then
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 # Broken: fails on valid input.
5290 rm -f conftest.err conftest.$ac_ext
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat >conftest.$ac_ext <<_ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ac_nonexistent.h>
5302 if { (ac_try="$ac_cpp conftest.$ac_ext"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5310 grep -v '^ *+' conftest.er1 >conftest.err
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } >/dev/null; then
5315 if test -s conftest.err; then
5316 ac_cpp_err=$ac_c_preproc_warn_flag
5317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5324 if test -z "$ac_cpp_err"; then
5325 # Broken: success on invalid input.
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 # Passes both tests.
5336 rm -f conftest.err conftest.$ac_ext
5339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5340 rm -f conftest.err conftest.$ac_ext
5341 if $ac_preproc_ok; then
5353 { echo "$as_me:$LINENO: result: $CPP" >&5
5354 echo "${ECHO_T}$CPP" >&6; }
5356 for ac_c_preproc_warn_flag in '' yes
5358 # Use a header file that comes with gcc, so configuring glibc
5359 # with a fresh cross-compiler works.
5360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361 # <limits.h> exists even on freestanding compilers.
5362 # On the NeXT, cc -E runs the code through the compiler's parser,
5363 # not just through cpp. "Syntax error" is here to catch this case.
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5371 # include <limits.h>
5373 # include <assert.h>
5377 if { (ac_try="$ac_cpp conftest.$ac_ext"
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5385 grep -v '^ *+' conftest.er1 >conftest.err
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } >/dev/null; then
5390 if test -s conftest.err; then
5391 ac_cpp_err=$ac_c_preproc_warn_flag
5392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5399 if test -z "$ac_cpp_err"; then
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 # Broken: fails on valid input.
5409 rm -f conftest.err conftest.$ac_ext
5411 # OK, works on sane cases. Now check whether nonexistent headers
5412 # can be detected and how.
5413 cat >conftest.$ac_ext <<_ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419 #include <ac_nonexistent.h>
5421 if { (ac_try="$ac_cpp conftest.$ac_ext"
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5429 grep -v '^ *+' conftest.er1 >conftest.err
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } >/dev/null; then
5434 if test -s conftest.err; then
5435 ac_cpp_err=$ac_c_preproc_warn_flag
5436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5443 if test -z "$ac_cpp_err"; then
5444 # Broken: success on invalid input.
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 # Passes both tests.
5455 rm -f conftest.err conftest.$ac_ext
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.$ac_ext
5460 if $ac_preproc_ok; then
5463 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." >&2;}
5467 { (exit 1); exit 1; }; }
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477 ac_cpp='$CPP $CPPFLAGS'
5478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481 if test -n "$ac_tool_prefix"; then
5484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5488 if test "${ac_cv_prog_CC+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 if test -n "$CC"; then
5492 ac_cv_prog_CC="$CC" # Let the user override the test.
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 if test -n "$CC"; then
5513 { echo "$as_me:$LINENO: result: $CC" >&5
5514 echo "${ECHO_T}$CC" >&6; }
5516 { echo "$as_me:$LINENO: result: no" >&5
5517 echo "${ECHO_T}no" >&6; }
5521 test -n "$CC" && break
5524 if test -z "$CC"; then
5528 # Extract the first word of "$ac_prog", so it can be a program name with args.
5529 set dummy $ac_prog; ac_word=$2
5530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 if test -n "$ac_ct_CC"; then
5536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 ac_cv_prog_ac_ct_CC="$ac_prog"
5546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5556 if test -n "$ac_ct_CC"; then
5557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5558 echo "${ECHO_T}$ac_ct_CC" >&6; }
5560 { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5565 test -n "$ac_ct_CC" && break
5568 if test "x$ac_ct_CC" = x; then
5571 case $cross_compiling:$ac_tool_warned in
5573 { echo "$as_me:$LINENO: 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." >&5
5576 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5577 whose name does not start with the host triplet. If you think this
5578 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5579 ac_tool_warned=yes ;;
5586 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5587 See \`config.log' for more details." >&5
5588 echo "$as_me: error: no acceptable C compiler found in \$PATH
5589 See \`config.log' for more details." >&2;}
5590 { (exit 1); exit 1; }; }
5592 # Provide some information about the compiler.
5593 echo "$as_me:$LINENO: checking for C compiler version" >&5
5594 ac_compiler=`set X $ac_compile; echo $2`
5595 { (ac_try="$ac_compiler --version >&5"
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_compiler --version >&5") 2>&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }
5605 { (ac_try="$ac_compiler -v >&5"
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compiler -v >&5") 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }
5615 { (ac_try="$ac_compiler -V >&5"
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compiler -V >&5") 2>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }
5626 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5627 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5628 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5649 rm -f conftest.$ac_objext
5650 if { (ac_try="$ac_compile"
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5658 grep -v '^ *+' conftest.er1 >conftest.err
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5664 { (case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_try") 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_try") 2>&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5695 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5696 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5697 GCC=`test $ac_compiler_gnu = yes && echo yes`
5698 ac_test_CFLAGS=${CFLAGS+set}
5699 ac_save_CFLAGS=$CFLAGS
5700 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5701 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5702 if test "${ac_cv_prog_cc_g+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 ac_save_c_werror_flag=$ac_c_werror_flag
5706 ac_c_werror_flag=yes
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5724 rm -f conftest.$ac_objext
5725 if { (ac_try="$ac_compile"
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_compile") 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5739 { (case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; } &&
5748 { ac_try='test -s conftest.$ac_objext'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_try") 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5764 cat >conftest.$ac_ext <<_ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5779 rm -f conftest.$ac_objext
5780 if { (ac_try="$ac_compile"
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compile") 2>conftest.er1
5788 grep -v '^ *+' conftest.er1 >conftest.err
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5794 { (case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_try") 2>&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_try") 2>&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ac_c_werror_flag=$ac_save_c_werror_flag
5820 cat >conftest.$ac_ext <<_ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5835 rm -f conftest.$ac_objext
5836 if { (ac_try="$ac_compile"
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_try") 2>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest.$ac_objext'
5860 { (case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 ac_c_werror_flag=$ac_save_c_werror_flag
5886 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5887 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5888 if test "$ac_test_CFLAGS" = set; then
5889 CFLAGS=$ac_save_CFLAGS
5890 elif test $ac_cv_prog_cc_g = yes; then
5891 if test "$GCC" = yes; then
5897 if test "$GCC" = yes; then
5903 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5904 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_cc_c89+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_cv_prog_cc_c89=no
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5918 #include <sys/types.h>
5919 #include <sys/stat.h>
5920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5921 struct buf { int x; };
5922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5923 static char *e (p, i)
5929 static char *f (char * (*g) (char **, int), char **p, ...)
5934 s = g (p, va_arg (v,int));
5939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5940 function prototypes and stuff, but not '\xHH' hex character constants.
5941 These don't provoke an error unfortunately, instead are silently treated
5942 as 'x'. The following induces an error, until -std is added to get
5943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5944 array size at least. It's necessary to write '\x00'==0 to get something
5945 that's true only with -std. */
5946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5948 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5949 inside strings and character constants. */
5951 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5953 int test (int i, double x);
5954 struct s1 {int (*f) (int a);};
5955 struct s2 {int (*f) (double a);};
5956 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5962 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5967 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5970 CC="$ac_save_CC $ac_arg"
5971 rm -f conftest.$ac_objext
5972 if { (ac_try="$ac_compile"
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_try") 2>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_prog_cc_c89=$ac_arg
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6013 rm -f core conftest.err conftest.$ac_objext
6014 test "x$ac_cv_prog_cc_c89" != "xno" && break
6016 rm -f conftest.$ac_ext
6021 case "x$ac_cv_prog_cc_c89" in
6023 { echo "$as_me:$LINENO: result: none needed" >&5
6024 echo "${ECHO_T}none needed" >&6; } ;;
6026 { echo "$as_me:$LINENO: result: unsupported" >&5
6027 echo "${ECHO_T}unsupported" >&6; } ;;
6029 CC="$CC $ac_cv_prog_cc_c89"
6030 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6031 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6036 ac_cpp='$CPP $CPPFLAGS'
6037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6042 ac_cpp='$CXXCPP $CPPFLAGS'
6043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6046 if test -z "$CXX"; then
6047 if test -n "$CCC"; then
6050 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_prog_CXX+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 if test -n "$CXX"; then
6061 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 if test -n "$CXX"; then
6082 { echo "$as_me:$LINENO: result: $CXX" >&5
6083 echo "${ECHO_T}$CXX" >&6; }
6085 { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6090 test -n "$CXX" && break
6093 if test -z "$CXX"; then
6097 # Extract the first word of "$ac_prog", so it can be a program name with args.
6098 set dummy $ac_prog; ac_word=$2
6099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 if test -n "$ac_ct_CXX"; then
6105 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_ac_ct_CXX="$ac_prog"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6125 if test -n "$ac_ct_CXX"; then
6126 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6127 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6129 { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6134 test -n "$ac_ct_CXX" && break
6137 if test "x$ac_ct_CXX" = x; then
6140 case $cross_compiling:$ac_tool_warned in
6142 { echo "$as_me:$LINENO: 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." >&5
6145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6146 whose name does not start with the host triplet. If you think this
6147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6148 ac_tool_warned=yes ;;
6156 # Provide some information about the compiler.
6157 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6158 ac_compiler=`set X $ac_compile; echo $2`
6159 { (ac_try="$ac_compiler --version >&5"
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_compiler --version >&5") 2>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }
6169 { (ac_try="$ac_compiler -v >&5"
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compiler -v >&5") 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }
6179 { (ac_try="$ac_compiler -V >&5"
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_compiler -V >&5") 2>&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }
6190 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6191 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6192 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 cat >conftest.$ac_ext <<_ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6213 rm -f conftest.$ac_objext
6214 if { (ac_try="$ac_compile"
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } &&
6227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6228 { (case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_try") 2>&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6259 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6260 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6261 GXX=`test $ac_compiler_gnu = yes && echo yes`
6262 ac_test_CXXFLAGS=${CXXFLAGS+set}
6263 ac_save_CXXFLAGS=$CXXFLAGS
6264 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6265 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6266 if test "${ac_cv_prog_cxx_g+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6270 ac_cxx_werror_flag=yes
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6288 rm -f conftest.$ac_objext
6289 if { (ac_try="$ac_compile"
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295 (eval "$ac_compile") 2>conftest.er1
6297 grep -v '^ *+' conftest.er1 >conftest.err
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6303 { (case "(($ac_try" in
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_try") 2>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_try") 2>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_prog_cxx_g=yes
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6343 rm -f conftest.$ac_objext
6344 if { (ac_try="$ac_compile"
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1 >conftest.err
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6358 { (case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_try") 2>&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_try") 2>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6399 rm -f conftest.$ac_objext
6400 if { (ac_try="$ac_compile"
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_compile") 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6414 { (case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_try") 2>&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_try") 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_cv_prog_cxx_g=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6450 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6451 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6452 if test "$ac_test_CXXFLAGS" = set; then
6453 CXXFLAGS=$ac_save_CXXFLAGS
6454 elif test $ac_cv_prog_cxx_g = yes; then
6455 if test "$GXX" = yes; then
6461 if test "$GXX" = yes; then
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6474 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6475 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6476 if test "${lt_cv_path_NM+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 if test -n "$NM"; then
6480 # Let the user override the test.
6483 lt_nm_to_check="${ac_tool_prefix}nm"
6484 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6485 lt_nm_to_check="$lt_nm_to_check nm"
6487 for lt_tmp_nm in $lt_nm_to_check; do
6488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6489 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6491 test -z "$ac_dir" && ac_dir=.
6492 tmp_nm="$ac_dir/$lt_tmp_nm"
6493 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6494 # Check to see if the nm accepts a BSD-compat flag.
6495 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6496 # nm: unknown option "B" ignored
6497 # Tru64's nm complains that /dev/null is an invalid object file
6498 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6499 */dev/null* | *'Invalid file or object type'*)
6500 lt_cv_path_NM="$tmp_nm -B"
6504 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6506 lt_cv_path_NM="$tmp_nm -p"
6510 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6511 continue # so that we can try to find one that supports BSD flags
6520 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6523 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6524 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6529 { echo "$as_me:$LINENO: checking for GNU make" >&5
6530 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6531 if test "${llvm_cv_gnu_make_command+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 llvm_cv_gnu_make_command=''
6535 for a in "$MAKE" make gmake gnumake ; do
6536 if test -z "$a" ; then continue ; fi ;
6537 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6539 llvm_cv_gnu_make_command=$a ;
6544 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6545 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6546 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6550 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6551 echo "${ECHO_T}\"Not found\"" >&6; };
6555 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6556 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6558 if test "$LN_S" = "ln -s"; then
6559 { echo "$as_me:$LINENO: result: yes" >&5
6560 echo "${ECHO_T}yes" >&6; }
6562 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6563 echo "${ECHO_T}no, using $LN_S" >&6; }
6566 # Extract the first word of "cmp", so it can be a program name with args.
6567 set dummy cmp; ac_word=$2
6568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570 if test "${ac_cv_path_CMP+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6598 if test -n "$CMP"; then
6599 { echo "$as_me:$LINENO: result: $CMP" >&5
6600 echo "${ECHO_T}$CMP" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6607 # Extract the first word of "cp", so it can be a program name with args.
6608 set dummy cp; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_path_CP+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6639 if test -n "$CP"; then
6640 { echo "$as_me:$LINENO: result: $CP" >&5
6641 echo "${ECHO_T}$CP" >&6; }
6643 { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6648 # Extract the first word of "date", so it can be a program name with args.
6649 set dummy date; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_path_DATE+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6679 DATE=$ac_cv_path_DATE
6680 if test -n "$DATE"; then
6681 { echo "$as_me:$LINENO: result: $DATE" >&5
6682 echo "${ECHO_T}$DATE" >&6; }
6684 { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6689 # Extract the first word of "find", so it can be a program name with args.
6690 set dummy find; ac_word=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_FIND+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6720 FIND=$ac_cv_path_FIND
6721 if test -n "$FIND"; then
6722 { echo "$as_me:$LINENO: result: $FIND" >&5
6723 echo "${ECHO_T}$FIND" >&6; }
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6730 # Extract the first word of "grep", so it can be a program name with args.
6731 set dummy grep; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GREP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6761 GREP=$ac_cv_path_GREP
6762 if test -n "$GREP"; then
6763 { echo "$as_me:$LINENO: result: $GREP" >&5
6764 echo "${ECHO_T}$GREP" >&6; }
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6771 # Extract the first word of "mkdir", so it can be a program name with args.
6772 set dummy mkdir; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_MKDIR+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6802 MKDIR=$ac_cv_path_MKDIR
6803 if test -n "$MKDIR"; then
6804 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6805 echo "${ECHO_T}$MKDIR" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 # Extract the first word of "mv", so it can be a program name with args.
6813 set dummy mv; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_MV+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6844 if test -n "$MV"; then
6845 { echo "$as_me:$LINENO: result: $MV" >&5
6846 echo "${ECHO_T}$MV" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 RANLIB=$ac_cv_prog_RANLIB
6882 if test -n "$RANLIB"; then
6883 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884 echo "${ECHO_T}$RANLIB" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6892 if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895 set dummy ranlib; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_prog_ac_ct_RANLIB="ranlib"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922 if test -n "$ac_ct_RANLIB"; then
6923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6930 if test "x$ac_ct_RANLIB" = x; then
6933 case $cross_compiling:$ac_tool_warned in
6935 { echo "$as_me:$LINENO: 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." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet. If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned=yes ;;
6943 RANLIB=$ac_ct_RANLIB
6946 RANLIB="$ac_cv_prog_RANLIB"
6949 # Extract the first word of "rm", so it can be a program name with args.
6950 set dummy rm; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_RM+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6981 if test -n "$RM"; then
6982 { echo "$as_me:$LINENO: result: $RM" >&5
6983 echo "${ECHO_T}$RM" >&6; }
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6990 # Extract the first word of "sed", so it can be a program name with args.
6991 set dummy sed; ac_word=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_path_SED+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7022 if test -n "$SED"; then
7023 { echo "$as_me:$LINENO: result: $SED" >&5
7024 echo "${ECHO_T}$SED" >&6; }
7026 { echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6; }
7031 # Extract the first word of "tar", so it can be a program name with args.
7032 set dummy tar; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_path_TAR+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7063 if test -n "$TAR"; then
7064 { echo "$as_me:$LINENO: result: $TAR" >&5
7065 echo "${ECHO_T}$TAR" >&6; }
7067 { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7072 # Extract the first word of "pwd", so it can be a program name with args.
7073 set dummy pwd; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_BINPWD+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7103 BINPWD=$ac_cv_path_BINPWD
7104 if test -n "$BINPWD"; then
7105 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7106 echo "${ECHO_T}$BINPWD" >&6; }
7108 { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7114 # Extract the first word of "Graphviz", so it can be a program name with args.
7115 set dummy Graphviz; ac_word=$2
7116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7145 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7146 if test -n "$GRAPHVIZ"; then
7147 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7148 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7150 { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7155 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7157 cat >>confdefs.h <<\_ACEOF
7158 #define HAVE_GRAPHVIZ 1
7161 if test "$llvm_cv_os_type" = "MingW" ; then
7162 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7165 cat >>confdefs.h <<_ACEOF
7166 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7170 # Extract the first word of "dot", so it can be a program name with args.
7171 set dummy dot; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_path_DOT+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7202 if test -n "$DOT"; then
7203 { echo "$as_me:$LINENO: result: $DOT" >&5
7204 echo "${ECHO_T}$DOT" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7211 if test "$DOT" != "echo dot" ; then
7213 cat >>confdefs.h <<\_ACEOF
7217 if test "$llvm_cv_os_type" = "MingW" ; then
7218 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7221 cat >>confdefs.h <<_ACEOF
7222 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7226 # Extract the first word of "fdp", so it can be a program name with args.
7227 set dummy fdp; ac_word=$2
7228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230 if test "${ac_cv_path_FDP+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7258 if test -n "$FDP"; then
7259 { echo "$as_me:$LINENO: result: $FDP" >&5
7260 echo "${ECHO_T}$FDP" >&6; }
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7267 if test "$FDP" != "echo fdp" ; then
7269 cat >>confdefs.h <<\_ACEOF
7273 if test "$llvm_cv_os_type" = "MingW" ; then
7274 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7277 cat >>confdefs.h <<_ACEOF
7278 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7282 # Extract the first word of "neato", so it can be a program name with args.
7283 set dummy neato; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_NEATO+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7313 NEATO=$ac_cv_path_NEATO
7314 if test -n "$NEATO"; then
7315 { echo "$as_me:$LINENO: result: $NEATO" >&5
7316 echo "${ECHO_T}$NEATO" >&6; }
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7323 if test "$NEATO" != "echo neato" ; then
7325 cat >>confdefs.h <<\_ACEOF
7326 #define HAVE_NEATO 1
7329 if test "$llvm_cv_os_type" = "MingW" ; then
7330 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7333 cat >>confdefs.h <<_ACEOF
7334 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7338 # Extract the first word of "twopi", so it can be a program name with args.
7339 set dummy twopi; ac_word=$2
7340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342 if test "${ac_cv_path_TWOPI+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7369 TWOPI=$ac_cv_path_TWOPI
7370 if test -n "$TWOPI"; then
7371 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7372 echo "${ECHO_T}$TWOPI" >&6; }
7374 { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7379 if test "$TWOPI" != "echo twopi" ; then
7381 cat >>confdefs.h <<\_ACEOF
7382 #define HAVE_TWOPI 1
7385 if test "$llvm_cv_os_type" = "MingW" ; then
7386 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7389 cat >>confdefs.h <<_ACEOF
7390 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7394 # Extract the first word of "circo", so it can be a program name with args.
7395 set dummy circo; ac_word=$2
7396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398 if test "${ac_cv_path_CIRCO+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7425 CIRCO=$ac_cv_path_CIRCO
7426 if test -n "$CIRCO"; then
7427 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7428 echo "${ECHO_T}$CIRCO" >&6; }
7430 { echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6; }
7435 if test "$CIRCO" != "echo circo" ; then
7437 cat >>confdefs.h <<\_ACEOF
7438 #define HAVE_CIRCO 1
7441 if test "$llvm_cv_os_type" = "MingW" ; then
7442 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7445 cat >>confdefs.h <<_ACEOF
7446 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7450 for ac_prog in gv gsview32
7452 # Extract the first word of "$ac_prog", so it can be a program name with args.
7453 set dummy $ac_prog; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_GV+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 if test -n "$GV"; then
7484 { echo "$as_me:$LINENO: result: $GV" >&5
7485 echo "${ECHO_T}$GV" >&6; }
7487 { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7492 test -n "$GV" && break
7494 test -n "$GV" || GV="echo gv"
7496 if test "$GV" != "echo gv" ; then
7498 cat >>confdefs.h <<\_ACEOF
7502 if test "$llvm_cv_os_type" = "MingW" ; then
7503 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7506 cat >>confdefs.h <<_ACEOF
7507 #define LLVM_PATH_GV "$GV${EXEEXT}"
7511 # Extract the first word of "dotty", so it can be a program name with args.
7512 set dummy dotty; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_path_DOTTY+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7542 DOTTY=$ac_cv_path_DOTTY
7543 if test -n "$DOTTY"; then
7544 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7545 echo "${ECHO_T}$DOTTY" >&6; }
7547 { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7552 if test "$DOTTY" != "echo dotty" ; then
7554 cat >>confdefs.h <<\_ACEOF
7555 #define HAVE_DOTTY 1
7558 if test "$llvm_cv_os_type" = "MingW" ; then
7559 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7562 cat >>confdefs.h <<_ACEOF
7563 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7569 # Extract the first word of "perl", so it can be a program name with args.
7570 set dummy perl; ac_word=$2
7571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573 if test "${ac_cv_path_PERL+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7600 PERL=$ac_cv_path_PERL
7601 if test -n "$PERL"; then
7602 { echo "$as_me:$LINENO: result: $PERL" >&5
7603 echo "${ECHO_T}$PERL" >&6; }
7605 { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7610 if test "$PERL" != "none"; then
7611 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7612 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7613 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7614 { echo "$as_me:$LINENO: result: yes" >&5
7615 echo "${ECHO_T}yes" >&6; }
7618 { echo "$as_me:$LINENO: result: not found" >&5
7619 echo "${ECHO_T}not found" >&6; }
7624 if test x"$PERL" = xnone; then
7627 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7628 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7629 { (exit 1); exit 1; }; }
7635 # Find a good install program. We prefer a C program (faster),
7636 # so one script is as good as another. But avoid the broken or
7637 # incompatible versions:
7638 # SysV /etc/install, /usr/sbin/install
7639 # SunOS /usr/etc/install
7640 # IRIX /sbin/install
7642 # AmigaOS /C/install, which installs bootblocks on floppy discs
7643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7646 # OS/2's system install, which has a completely different semantic
7647 # ./install, which can be erroneously created by make from ./install.sh.
7648 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7649 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7650 if test -z "$INSTALL"; then
7651 if test "${ac_cv_path_install+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 # Account for people who put trailing slashes in PATH elements.
7661 ./ | .// | /cC/* | \
7662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7663 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7666 # OSF1 and SCO ODT 3.0 have their own names for install.
7667 # Don't use installbsd from OSF since it installs stuff as root
7669 for ac_prog in ginstall scoinst install; do
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7672 if test $ac_prog = install &&
7673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7674 # AIX install. It has an incompatible calling convention.
7676 elif test $ac_prog = install &&
7677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7678 # program-specific install script used by HP pwplus--don't use.
7681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7694 if test "${ac_cv_path_install+set}" = set; then
7695 INSTALL=$ac_cv_path_install
7697 # As a last resort, use the slow shell script. Don't cache a
7698 # value for INSTALL within a source directory, because that will
7699 # break other packages using the cache if that directory is
7700 # removed, or if the value is a relative name.
7701 INSTALL=$ac_install_sh
7704 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7705 echo "${ECHO_T}$INSTALL" >&6; }
7707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708 # It thinks the first close brace ends the variable substitution.
7709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7716 # Extract the first word of "bzip2", so it can be a program name with args.
7717 set dummy bzip2; ac_word=$2
7718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720 if test "${ac_cv_path_BZIP2+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 BZIP2=$ac_cv_path_BZIP2
7747 if test -n "$BZIP2"; then
7748 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7749 echo "${ECHO_T}$BZIP2" >&6; }
7751 { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7756 # Extract the first word of "doxygen", so it can be a program name with args.
7757 set dummy doxygen; ac_word=$2
7758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7760 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 DOXYGEN=$ac_cv_path_DOXYGEN
7787 if test -n "$DOXYGEN"; then
7788 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7789 echo "${ECHO_T}$DOXYGEN" >&6; }
7791 { echo "$as_me:$LINENO: result: no" >&5
7792 echo "${ECHO_T}no" >&6; }
7796 # Extract the first word of "groff", so it can be a program name with args.
7797 set dummy groff; ac_word=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_path_GROFF+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 GROFF=$ac_cv_path_GROFF
7827 if test -n "$GROFF"; then
7828 { echo "$as_me:$LINENO: result: $GROFF" >&5
7829 echo "${ECHO_T}$GROFF" >&6; }
7831 { echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6; }
7836 # Extract the first word of "gzip", so it can be a program name with args.
7837 set dummy gzip; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_path_GZIP+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 GZIP=$ac_cv_path_GZIP
7867 if test -n "$GZIP"; then
7868 { echo "$as_me:$LINENO: result: $GZIP" >&5
7869 echo "${ECHO_T}$GZIP" >&6; }
7871 { echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6; }
7876 # Extract the first word of "pod2html", so it can be a program name with args.
7877 set dummy pod2html; ac_word=$2
7878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880 if test "${ac_cv_path_POD2HTML+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 POD2HTML=$ac_cv_path_POD2HTML
7907 if test -n "$POD2HTML"; then
7908 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7909 echo "${ECHO_T}$POD2HTML" >&6; }
7911 { echo "$as_me:$LINENO: result: no" >&5
7912 echo "${ECHO_T}no" >&6; }
7916 # Extract the first word of "pod2man", so it can be a program name with args.
7917 set dummy pod2man; ac_word=$2
7918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7920 if test "${ac_cv_path_POD2MAN+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 POD2MAN=$ac_cv_path_POD2MAN
7947 if test -n "$POD2MAN"; then
7948 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7949 echo "${ECHO_T}$POD2MAN" >&6; }
7951 { echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6; }
7956 # Extract the first word of "runtest", so it can be a program name with args.
7957 set dummy runtest; ac_word=$2
7958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7960 if test "${ac_cv_path_RUNTEST+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 RUNTEST=$ac_cv_path_RUNTEST
7987 if test -n "$RUNTEST"; then
7988 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7989 echo "${ECHO_T}$RUNTEST" >&6; }
7991 { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
7998 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7999 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8001 # Check whether --with-tclinclude was given.
8002 if test "${with_tclinclude+set}" = set; then
8003 withval=$with_tclinclude; with_tclinclude=${withval}
8008 if test "${ac_cv_path_tclsh+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 if test x"${with_tclinclude}" != x ; then
8013 if test -f ${with_tclinclude}/tclsh ; then
8014 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8015 elif test -f ${with_tclinclude}/src/tclsh ; then
8016 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8018 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8019 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8020 { (exit 1); exit 1; }; }
8024 if test x"${ac_cv_path_tclsh}" = x ; then
8025 { echo "$as_me:$LINENO: result: none" >&5
8026 echo "${ECHO_T}none" >&6; }
8027 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
8029 # Extract the first word of "$ac_prog", so it can be a program name with args.
8030 set dummy $ac_prog; ac_word=$2
8031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8033 if test "${ac_cv_path_TCLSH+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 TCLSH=$ac_cv_path_TCLSH
8060 if test -n "$TCLSH"; then
8061 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8062 echo "${ECHO_T}$TCLSH" >&6; }
8064 { echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6; }
8069 test -n "$TCLSH" && break
8072 if test x"${TCLSH}" = x ; then
8073 ac_cv_path_tclsh='';
8075 ac_cv_path_tclsh="${TCLSH}";
8078 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8079 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8080 TCLSH="${ac_cv_path_tclsh}"
8086 # Extract the first word of "zip", so it can be a program name with args.
8087 set dummy zip; ac_word=$2
8088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090 if test "${ac_cv_path_ZIP+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 if test -n "$ZIP"; then
8118 { echo "$as_me:$LINENO: result: $ZIP" >&5
8119 echo "${ECHO_T}$ZIP" >&6; }
8121 { echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6; }
8126 for ac_prog in ocamlc
8128 # Extract the first word of "$ac_prog", so it can be a program name with args.
8129 set dummy $ac_prog; ac_word=$2
8130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132 if test "${ac_cv_path_OCAMLC+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 OCAMLC=$ac_cv_path_OCAMLC
8159 if test -n "$OCAMLC"; then
8160 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8161 echo "${ECHO_T}$OCAMLC" >&6; }
8163 { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8168 test -n "$OCAMLC" && break
8171 for ac_prog in ocamlopt
8173 # Extract the first word of "$ac_prog", so it can be a program name with args.
8174 set dummy $ac_prog; ac_word=$2
8175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8177 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8192 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 OCAMLOPT=$ac_cv_path_OCAMLOPT
8204 if test -n "$OCAMLOPT"; then
8205 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8206 echo "${ECHO_T}$OCAMLOPT" >&6; }
8208 { echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6; }
8213 test -n "$OCAMLOPT" && break
8216 for ac_prog in ocamldep
8218 # Extract the first word of "$ac_prog", so it can be a program name with args.
8219 set dummy $ac_prog; ac_word=$2
8220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8237 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 OCAMLDEP=$ac_cv_path_OCAMLDEP
8249 if test -n "$OCAMLDEP"; then
8250 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8251 echo "${ECHO_T}$OCAMLDEP" >&6; }
8253 { echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6; }
8258 test -n "$OCAMLDEP" && break
8261 for ac_prog in ocamldoc
8263 # Extract the first word of "$ac_prog", so it can be a program name with args.
8264 set dummy $ac_prog; ac_word=$2
8265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8267 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 OCAMLDOC=$ac_cv_path_OCAMLDOC
8294 if test -n "$OCAMLDOC"; then
8295 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8296 echo "${ECHO_T}$OCAMLDOC" >&6; }
8298 { echo "$as_me:$LINENO: result: no" >&5
8299 echo "${ECHO_T}no" >&6; }
8303 test -n "$OCAMLDOC" && break
8306 for ac_prog in gas as
8308 # Extract the first word of "$ac_prog", so it can be a program name with args.
8309 set dummy $ac_prog; ac_word=$2
8310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8312 if test "${ac_cv_path_GAS+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 if test -n "$GAS"; then
8340 { echo "$as_me:$LINENO: result: $GAS" >&5
8341 echo "${ECHO_T}$GAS" >&6; }
8343 { echo "$as_me:$LINENO: result: no" >&5
8344 echo "${ECHO_T}no" >&6; }
8348 test -n "$GAS" && break
8352 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8353 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8354 if test "${llvm_cv_link_use_r+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_cpp='$CPP $CPPFLAGS'
8359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8364 CFLAGS="$CFLAGS -Wl,-R."
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8375 int main() { return 0; }
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
8389 grep -v '^ *+' conftest.er1 >conftest.err
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 llvm_cv_link_use_r=yes
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 llvm_cv_link_use_r=no
8422 rm -f core conftest.err conftest.$ac_objext \
8423 conftest$ac_exeext conftest.$ac_ext
8426 ac_cpp='$CPP $CPPFLAGS'
8427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8433 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8434 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8435 if test "$llvm_cv_link_use_r" = yes ; then
8437 cat >>confdefs.h <<\_ACEOF
8438 #define HAVE_LINK_R 1
8444 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8445 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8446 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 ac_cpp='$CPP $CPPFLAGS'
8451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8456 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8467 int main() { return 0; }
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 llvm_cv_link_use_export_dynamic=yes
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 llvm_cv_link_use_export_dynamic=no
8514 rm -f core conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
8518 ac_cpp='$CPP $CPPFLAGS'
8519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8525 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8526 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8527 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8529 cat >>confdefs.h <<\_ACEOF
8530 #define HAVE_LINK_EXPORT_DYNAMIC 1
8538 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8539 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8540 if test "${ac_cv_c_const+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 cat >conftest.$ac_ext <<_ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8553 /* FIXME: Include the comments suggested by Paul. */
8555 /* Ultrix mips cc rejects this. */
8556 typedef int charset[2];
8558 /* SunOS 4.1.1 cc rejects this. */
8559 char const *const *ccp;
8561 /* NEC SVR4.0.2 mips cc rejects this. */
8562 struct point {int x, y;};
8563 static struct point const zero = {0,0};
8564 /* AIX XL C 1.02.0.0 rejects this.
8565 It does not let you subtract one const X* pointer from another in
8566 an arm of an if-expression whose if-part is not a constant
8568 const char *g = "string";
8569 ccp = &g + (g ? g-g : 0);
8570 /* HPUX 7.0 cc rejects these. */
8573 ccp = (char const *const *) p;
8574 { /* SCO 3.2v4 cc rejects this. */
8576 char const *s = 0 ? (char *) 0 : (char const *) 0;
8581 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8583 const int *foo = &x[0];
8586 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8587 typedef const int *iptr;
8591 { /* AIX XL C 1.02.0.0 rejects this saying
8592 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8593 struct s { int j; const int *ap[3]; };
8594 struct s *b; b->j = 5;
8596 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8600 return !x[0] && !zero.x;
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8622 { (case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_try") 2>&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest.$ac_objext'
8632 { (case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_try") 2>&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8652 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8653 if test $ac_cv_c_const = no; then
8655 cat >>confdefs.h <<\_ACEOF
8667 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8668 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8669 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8670 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 cat >conftest.$ac_ext <<_ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 #include <sys/types.h>
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8701 grep -v '^ *+' conftest.er1 >conftest.err
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8707 { (case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_try") 2>&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest.$ac_objext'
8717 { (case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_try") 2>&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 eval "$as_ac_Header=yes"
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8731 eval "$as_ac_Header=no"
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 ac_res=`eval echo '${'$as_ac_Header'}'`
8737 { echo "$as_me:$LINENO: result: $ac_res" >&5
8738 echo "${ECHO_T}$ac_res" >&6; }
8739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8740 cat >>confdefs.h <<_ACEOF
8741 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8744 ac_header_dirent=$ac_hdr; break
8748 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8749 if test $ac_header_dirent = dirent.h; then
8750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8752 if test "${ac_cv_search_opendir+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 ac_func_search_save_LIBS=$LIBS
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8763 /* Override any GCC internal prototype to avoid an error.
8764 Use char because int might match the return type of a GCC
8765 builtin and then its argument prototype would still apply. */
8778 for ac_lib in '' dir; do
8779 if test -z "$ac_lib"; then
8780 ac_res="none required"
8783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8785 rm -f conftest.$ac_objext conftest$ac_exeext
8786 if { (ac_try="$ac_link"
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_link") 2>conftest.er1
8794 grep -v '^ *+' conftest.er1 >conftest.err
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } &&
8799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8800 { (case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_try") 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_try") 2>&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 ac_cv_search_opendir=$ac_res
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8827 rm -f core conftest.err conftest.$ac_objext \
8829 if test "${ac_cv_search_opendir+set}" = set; then
8833 if test "${ac_cv_search_opendir+set}" = set; then
8836 ac_cv_search_opendir=no
8839 LIBS=$ac_func_search_save_LIBS
8841 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8843 ac_res=$ac_cv_search_opendir
8844 if test "$ac_res" != no; then
8845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8850 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8852 if test "${ac_cv_search_opendir+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 ac_func_search_save_LIBS=$LIBS
8856 cat >conftest.$ac_ext <<_ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8863 /* Override any GCC internal prototype to avoid an error.
8864 Use char because int might match the return type of a GCC
8865 builtin and then its argument prototype would still apply. */
8878 for ac_lib in '' x; do
8879 if test -z "$ac_lib"; then
8880 ac_res="none required"
8883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8885 rm -f conftest.$ac_objext conftest$ac_exeext
8886 if { (ac_try="$ac_link"
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_link") 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8900 { (case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_try") 2>&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 ac_cv_search_opendir=$ac_res
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8927 rm -f core conftest.err conftest.$ac_objext \
8929 if test "${ac_cv_search_opendir+set}" = set; then
8933 if test "${ac_cv_search_opendir+set}" = set; then
8936 ac_cv_search_opendir=no
8939 LIBS=$ac_func_search_save_LIBS
8941 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8942 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8943 ac_res=$ac_cv_search_opendir
8944 if test "$ac_res" != no; then
8945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8952 for ac_header in dlfcn.h
8954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_res=`eval echo '${'$as_ac_Header'}'`
8962 { echo "$as_me:$LINENO: result: $ac_res" >&5
8963 echo "${ECHO_T}$ac_res" >&6; }
8965 # Is the header compilable?
8966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8968 cat >conftest.$ac_ext <<_ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8974 $ac_includes_default
8975 #include <$ac_header>
8977 rm -f conftest.$ac_objext
8978 if { (ac_try="$ac_compile"
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_compile") 2>conftest.er1
8986 grep -v '^ *+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 ac_header_compiler=yes
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ac_header_compiler=no
9019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9021 echo "${ECHO_T}$ac_header_compiler" >&6; }
9023 # Is the header present?
9024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 #include <$ac_header>
9034 if { (ac_try="$ac_cpp conftest.$ac_ext"
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9042 grep -v '^ *+' conftest.er1 >conftest.err
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } >/dev/null; then
9047 if test -s conftest.err; then
9048 ac_cpp_err=$ac_c_preproc_warn_flag
9049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9056 if test -z "$ac_cpp_err"; then
9057 ac_header_preproc=yes
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9062 ac_header_preproc=no
9065 rm -f conftest.err conftest.$ac_ext
9066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9067 echo "${ECHO_T}$ac_header_preproc" >&6; }
9069 # So? What about this header?
9070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9076 ac_header_preproc=yes
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9092 ## ----------------------------------- ##
9093 ## Report this to llvmbugs@cs.uiuc.edu ##
9094 ## ----------------------------------- ##
9096 ) | sed "s/^/$as_me: WARNING: /" >&2
9099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 eval "$as_ac_Header=\$ac_header_preproc"
9106 ac_res=`eval echo '${'$as_ac_Header'}'`
9107 { echo "$as_me:$LINENO: result: $ac_res" >&5
9108 echo "${ECHO_T}$ac_res" >&6; }
9111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112 cat >>confdefs.h <<_ACEOF
9113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9120 # Check whether --enable-ltdl-install was given.
9121 if test "${enable_ltdl_install+set}" = set; then
9122 enableval=$enable_ltdl_install;
9128 if test x"${enable_ltdl_install-no}" != xno; then
9130 INSTALL_LTDL_FALSE='#'
9132 INSTALL_LTDL_TRUE='#'
9138 if test x"${enable_ltdl_convenience-no}" != xno; then
9139 CONVENIENCE_LTDL_TRUE=
9140 CONVENIENCE_LTDL_FALSE='#'
9142 CONVENIENCE_LTDL_TRUE='#'
9143 CONVENIENCE_LTDL_FALSE=
9147 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9148 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9150 libname_spec='lib$name'
9158 shlibpath_overrides_runpath=unknown
9160 dynamic_linker="$host_os ld.so"
9161 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9162 if test "$GCC" = yes; then
9163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9164 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9165 # if the path contains ";" then we assume it to be the separator
9166 # otherwise default to the standard path separator (i.e. ":") - it is
9167 # assumed that no part of a normal pathname contains ";" but that should
9168 # okay in the real world where ";" in dirpaths is itself problematic.
9169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9176 need_lib_prefix=unknown
9177 hardcode_into_libs=no
9179 # when you set need_version to no, make sure it does not cause -set_version
9180 # flags to be left without arguments
9181 need_version=unknown
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9187 shlibpath_var=LIBPATH
9189 # AIX 3 has no versioning support, so we append a major version to the name.
9190 soname_spec='${libname}${release}${shared_ext}$major'
9197 hardcode_into_libs=yes
9198 if test "$host_cpu" = ia64; then
9199 # AIX 5 supports IA64
9200 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9201 shlibpath_var=LD_LIBRARY_PATH
9203 # With GCC up to 2.95.x, collect2 would create an import file
9204 # for dependence libraries. The import file would start with
9205 # the line `#! .'. This would cause the generated library to
9206 # depend on `.', always an invalid library. This was fixed in
9207 # development snapshots of GCC prior to 3.0.
9209 aix4 | aix4.[01] | aix4.[01].*)
9210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9212 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9220 # soname into executable. Probably we can add versioning support to
9221 # collect2, so additional links can be useful in future.
9222 if test "$aix_use_runtimelinking" = yes; then
9223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9224 # instead of lib<name>.a to let people know that these are not
9225 # typical AIX shared libraries.
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 # We preserve .a as extension for shared libraries through AIX4.2
9229 # and later when we are not doing run time linking.
9230 library_names_spec='${libname}${release}.a $libname.a'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9233 shlibpath_var=LIBPATH
9238 library_names_spec='$libname.ixlibrary $libname.a'
9239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9240 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'
9244 library_names_spec='${libname}${shared_ext}'
9245 dynamic_linker="$host_os ld.so"
9246 shlibpath_var=LIBRARY_PATH
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9257 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9258 # the default ld.so.conf also contains /usr/contrib/lib and
9259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9260 # libtool to hard-code these into programs
9263 cygwin* | mingw* | pw32*)
9264 version_type=windows
9269 case $GCC,$host_os in
9270 yes,cygwin* | yes,mingw* | yes,pw32*)
9271 library_names_spec='$libname.dll.a'
9272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9273 postinstall_cmds='base_file=`basename \${file}`~
9274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9275 dldir=$destdir/`dirname \$dlpath`~
9276 test -d \$dldir || mkdir -p \$dldir~
9277 $install_prog $dir/$dlname \$dldir/$dlname~
9278 chmod a+x \$dldir/$dlname'
9279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9280 dlpath=$dir/\$dldll~
9282 shlibpath_overrides_runpath=yes
9286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9291 # MinGW DLLs use traditional 'lib' prefix
9292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9295 # It is most probably a Windows format PATH printed by
9296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9297 # path with ; separators, and with drive letters. We can handle the
9298 # drive letters (cygwin fileutils understands them), so leave them,
9299 # especially as we might pass files found there to a mingw objdump,
9300 # which wouldn't understand a cygwinified path. Ahh.
9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9307 # pw32 DLLs use 'pw' prefix rather than 'lib'
9308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9317 dynamic_linker='Win32 ld.exe'
9318 # FIXME: first we should search . and the directory the executable is in
9322 darwin* | rhapsody*)
9323 dynamic_linker="$host_os dyld"
9327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9328 soname_spec='${libname}${release}${major}$shared_ext'
9329 shlibpath_overrides_runpath=yes
9330 shlibpath_var=DYLD_LIBRARY_PATH
9331 shrext_cmds='.dylib'
9332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9333 if test "$GCC" = yes; then
9334 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"`
9336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 shlibpath_var=LD_LIBRARY_PATH
9361 shlibpath_overrides_runpath=no
9362 hardcode_into_libs=yes
9363 dynamic_linker='GNU ld.so'
9366 freebsd* | dragonfly*)
9367 # DragonFly does not have aout. When/if they implement a new
9368 # versioning mechanism, adjust this.
9369 if test -x /usr/bin/objformat; then
9370 objformat=`/usr/bin/objformat`
9373 freebsd[123]*) objformat=aout ;;
9377 version_type=freebsd-$objformat
9378 case $version_type in
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9389 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes
9394 freebsd3.[01]* | freebsdelf3.[01]*)
9395 shlibpath_overrides_runpath=yes
9396 hardcode_into_libs=yes
9398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9400 shlibpath_overrides_runpath=no
9401 hardcode_into_libs=yes
9403 freebsd*) # from 4.6 on
9404 shlibpath_overrides_runpath=yes
9405 hardcode_into_libs=yes
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 hardcode_into_libs=yes
9420 hpux9* | hpux10* | hpux11*)
9421 # Give a soname corresponding to the major version so that dld.sl refuses to
9422 # link against other versions.
9429 hardcode_into_libs=yes
9430 dynamic_linker="$host_os dld.so"
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 if test "X$HPUX_IA64_MODE" = X32; then
9436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9444 hardcode_into_libs=yes
9445 dynamic_linker="$host_os dld.sl"
9446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455 dynamic_linker="$host_os dld.sl"
9456 shlibpath_var=SHLIB_PATH
9457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459 soname_spec='${libname}${release}${shared_ext}$major'
9462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463 postinstall_cmds='chmod 555 $lib'
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=no
9475 hardcode_into_libs=yes
9478 irix5* | irix6* | nonstopux*)
9480 nonstopux*) version_type=nonstopux ;;
9482 if test "$lt_cv_prog_gnu_ld" = yes; then
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9493 irix5* | nonstopux*)
9497 case $LD in # libtool.m4 will add one of these switches to LD
9498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499 libsuff= shlibsuff= libmagic=32-bit;;
9500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501 libsuff=32 shlibsuff=N32 libmagic=N32;;
9502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504 *) libsuff= shlibsuff= libmagic=never-match;;
9508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509 shlibpath_overrides_runpath=no
9510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9512 hardcode_into_libs=yes
9515 # No shared lib support for Linux oldld, aout, or coff.
9516 linux*oldld* | linux*aout* | linux*coff*)
9520 # This must be Linux ELF.
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=no
9530 # This implies no fast_install, which is unacceptable.
9531 # Some rework will be needed to allow for fast_install
9532 # before this can be enabled.
9533 hardcode_into_libs=yes
9535 # Append ld.so.conf contents to the search path
9536 if test -f /etc/ld.so.conf; then
9537 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' ' '`
9538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9541 # We used to test for /lib/ld.so.1 and disable shared libraries on
9542 # powerpc, because MkLinux only supported shared libraries with the
9543 # GNU dynamic linker. Since this was broken with cross compilers,
9544 # most powerpc-linux boxes support dynamic linking these days and
9545 # people can always --disable-shared, the test was removed, and we
9546 # assume the GNU/Linux dynamic linker is in use.
9547 dynamic_linker='GNU/Linux ld.so'
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 shlibpath_overrides_runpath=no
9558 hardcode_into_libs=yes
9559 dynamic_linker='GNU ld.so'
9566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569 dynamic_linker='NetBSD (a.out) ld.so'
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 dynamic_linker='NetBSD ld.elf_so'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 shlibpath_overrides_runpath=yes
9577 hardcode_into_libs=yes
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=yes
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9599 sys_lib_dlsearch_path_spec="/usr/lib"
9601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9604 *) need_version=no ;;
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9611 openbsd2.[89] | openbsd2.[89].*)
9612 shlibpath_overrides_runpath=no
9615 shlibpath_overrides_runpath=yes
9619 shlibpath_overrides_runpath=yes
9624 libname_spec='$name'
9627 library_names_spec='$libname${shared_ext} $libname.a'
9628 dynamic_linker='OS/2 ld.exe'
9629 shlibpath_var=LIBPATH
9632 osf3* | osf4* | osf5*)
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes
9651 hardcode_into_libs=yes
9652 # ldd complains unless libraries are executable
9653 postinstall_cmds='chmod +x $lib'
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=yes
9662 if test "$with_gnu_ld" = yes; then
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 shlibpath_var=LD_LIBRARY_PATH
9673 case $host_vendor in
9675 shlibpath_overrides_runpath=no
9677 export_dynamic_flag_spec='${wl}-Blargedynsym'
9678 runpath_var=LD_RUN_PATH
9686 shlibpath_overrides_runpath=no
9687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9693 if test -d /usr/nec ;then
9695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9696 soname_spec='$libname${shared_ext}.$major'
9697 shlibpath_var=LD_LIBRARY_PATH
9701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9702 version_type=freebsd-elf
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 hardcode_into_libs=yes
9709 if test "$with_gnu_ld" = yes; then
9710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9711 shlibpath_overrides_runpath=no
9713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9714 shlibpath_overrides_runpath=yes
9717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9721 sys_lib_dlsearch_path_spec='/usr/lib'
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 shlibpath_var=LD_LIBRARY_PATH
9735 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9736 echo "${ECHO_T}$dynamic_linker" >&6; }
9737 test "$dynamic_linker" = no && can_build_shared=no
9739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9740 if test "$GCC" = yes; then
9741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9745 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9746 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9747 if test "${libltdl_cv_shlibext+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 eval libltdl_cv_shlibext=$shrext_cmds
9755 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9756 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9757 if test -n "$libltdl_cv_shlibext"; then
9759 cat >>confdefs.h <<_ACEOF
9760 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9766 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9767 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9768 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 libltdl_cv_shlibpath_var="$shlibpath_var"
9773 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9774 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9775 if test -n "$libltdl_cv_shlibpath_var"; then
9777 cat >>confdefs.h <<_ACEOF
9778 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9784 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9785 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9786 if test "${libltdl_cv_sys_search_path+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9791 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9792 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9793 if test -n "$libltdl_cv_sys_search_path"; then
9795 for dir in $libltdl_cv_sys_search_path; do
9796 if test -z "$sys_search_path"; then
9797 sys_search_path="$dir"
9799 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9803 cat >>confdefs.h <<_ACEOF
9804 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9809 { echo "$as_me:$LINENO: checking for objdir" >&5
9810 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9811 if test "${libltdl_cv_objdir+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 libltdl_cv_objdir="$objdir"
9815 if test -n "$objdir"; then
9818 rm -f .libs 2>/dev/null
9819 mkdir .libs 2>/dev/null
9820 if test -d .libs; then
9821 libltdl_cv_objdir=.libs
9823 # MS-DOS does not allow filenames that begin with a dot.
9824 libltdl_cv_objdir=_libs
9826 rmdir .libs 2>/dev/null
9830 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9831 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9833 cat >>confdefs.h <<_ACEOF
9834 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9842 # Check for command to grab the raw symbol name followed by C symbol from nm.
9843 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9844 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9845 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 # These are sane defaults that work on at least a few old systems.
9850 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9852 # Character class describing NM global symbol codes.
9853 symcode='[BCDEGRST]'
9855 # Regexp to match symbols that can be accessed directly from C.
9856 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9858 # Transform an extracted symbol line into a proper C declaration
9859 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9861 # Transform an extracted symbol line into symbol name and symbol address
9862 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'"
9864 # Define system-specific variables.
9869 cygwin* | mingw* | pw32*)
9870 symcode='[ABCDGISTW]'
9872 hpux*) # Its linker distinguishes data from code symbols
9873 if test "$host_cpu" = ia64; then
9874 symcode='[ABCDEGRST]'
9876 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9877 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'"
9880 if test "$host_cpu" = ia64; then
9881 symcode='[ABCDGIRSTW]'
9882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9883 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'"
9887 symcode='[BCDEGRST]'
9890 symcode='[BCDEGQRST]'
9901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9909 # Handle CRLF in mingw tool chain
9913 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9917 # If we're using GNU nm, then use its standard symbol codes.
9918 case `$NM -V 2>&1` in
9919 *GNU* | *'with BFD'*)
9920 symcode='[ABCDGIRSTW]' ;;
9923 # Try without a prefix undercore, then with it.
9924 for ac_symprfx in "" "_"; do
9926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9927 symxfrm="\\1 $ac_symprfx\\2 \\2"
9929 # Write the raw and C identifiers.
9930 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9932 # Check to see that the pipe works correctly.
9936 cat > conftest.$ac_ext <<EOF
9941 void nm_test_func(){}
9945 int main(){nm_test_var='a';nm_test_func();return(0);}
9948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9949 (eval $ac_compile) 2>&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; then
9953 # Now try to grab the symbols.
9955 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9956 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && test -s "$nlist"; then
9960 # Try sorting and uniquifying the output.
9961 if sort "$nlist" | uniq > "$nlist"T; then
9962 mv -f "$nlist"T "$nlist"
9967 # Make sure that we snagged all the symbols we need.
9968 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9969 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9970 cat <<EOF > conftest.$ac_ext
9976 # Now generate the symbol file.
9977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9979 cat <<EOF >> conftest.$ac_ext
9980 #if defined (__STDC__) && __STDC__
9981 # define lt_ptr_t void *
9983 # define lt_ptr_t char *
9987 /* The mapping between symbol names and symbols. */
9992 lt_preloaded_symbols[] =
9995 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9996 cat <<\EOF >> conftest.$ac_ext
10004 # Now try linking the two files.
10005 mv conftest.$ac_objext conftstm.$ac_objext
10006 lt_save_LIBS="$LIBS"
10007 lt_save_CFLAGS="$CFLAGS"
10008 LIBS="conftstm.$ac_objext"
10009 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10017 LIBS="$lt_save_LIBS"
10018 CFLAGS="$lt_save_CFLAGS"
10020 echo "cannot find nm_test_func in $nlist" >&5
10023 echo "cannot find nm_test_var in $nlist" >&5
10026 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10029 echo "$progname: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10032 rm -f conftest* conftst*
10034 # Do not use the global_symbol_pipe unless it works.
10035 if test "$pipe_works" = yes; then
10038 lt_cv_sys_global_symbol_pipe=
10044 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10045 lt_cv_sys_global_symbol_to_cdecl=
10047 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10048 { echo "$as_me:$LINENO: result: failed" >&5
10049 echo "${ECHO_T}failed" >&6; }
10051 { echo "$as_me:$LINENO: result: ok" >&5
10052 echo "${ECHO_T}ok" >&6; }
10056 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10057 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10058 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10062 libltdl_cv_preloaded_symbols=yes
10064 libltdl_cv_preloaded_symbols=no
10068 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10069 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10070 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10072 cat >>confdefs.h <<\_ACEOF
10073 #define HAVE_PRELOADED_SYMBOLS 1
10081 ac_cpp='$CPP $CPPFLAGS'
10082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10087 { echo "$as_me:$LINENO: checking for shl_load" >&5
10088 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10089 if test "${ac_cv_func_shl_load+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10100 #define shl_load innocuous_shl_load
10102 /* System header to define __stub macros and hopefully few prototypes,
10103 which can conflict with char shl_load (); below.
10104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10105 <limits.h> exists even on freestanding compilers. */
10108 # include <limits.h>
10110 # include <assert.h>
10115 /* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
10122 /* The GNU C library defines this for functions which it implements
10123 to always fail with ENOSYS. Some functions are actually named
10124 something starting with __ and the normal name is an alias. */
10125 #if defined __stub_shl_load || defined __stub___shl_load
10132 return shl_load ();
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (ac_try="$ac_link"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_link") 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10152 { (case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_try") 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_try") 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 ac_cv_func_shl_load=yes
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10176 ac_cv_func_shl_load=no
10179 rm -f core conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
10182 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10183 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10184 if test $ac_cv_func_shl_load = yes; then
10186 cat >>confdefs.h <<\_ACEOF
10187 #define HAVE_SHL_LOAD 1
10191 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10192 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10193 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 ac_check_lib_save_LIBS=$LIBS
10198 cat >conftest.$ac_ext <<_ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10215 return shl_load ();
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (ac_try="$ac_link"
10222 case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_link") 2>conftest.er1
10229 grep -v '^ *+' conftest.er1 >conftest.err
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235 { (case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_try") 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_lib_dld_shl_load=yes
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_lib_dld_shl_load=no
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10268 if test $ac_cv_lib_dld_shl_load = yes; then
10270 cat >>confdefs.h <<\_ACEOF
10271 #define HAVE_SHL_LOAD 1
10274 LIBADD_DL="$LIBADD_DL -ldld"
10276 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10277 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10278 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 ac_check_lib_save_LIBS=$LIBS
10283 cat >conftest.$ac_ext <<_ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10290 /* Override any GCC internal prototype to avoid an error.
10291 Use char because int might match the return type of a GCC
10292 builtin and then its argument prototype would still apply. */
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10320 { (case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_try") 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_lib_dl_dlopen=yes
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 ac_cv_lib_dl_dlopen=no
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10351 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10352 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10353 if test $ac_cv_lib_dl_dlopen = yes; then
10355 cat >>confdefs.h <<\_ACEOF
10356 #define HAVE_LIBDL 1
10359 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10368 # include <dlfcn.h>
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
10388 grep -v '^ *+' conftest.er1 >conftest.err
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_try") 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10414 cat >>confdefs.h <<\_ACEOF
10415 #define HAVE_LIBDL 1
10417 libltdl_cv_func_dlopen="yes"
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10422 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10423 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10424 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lsvld $LIBS"
10429 cat >conftest.$ac_ext <<_ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_try") 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_try") 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_lib_svld_dlopen=yes
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_cv_lib_svld_dlopen=no
10493 rm -f core conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10497 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10498 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10499 if test $ac_cv_lib_svld_dlopen = yes; then
10501 cat >>confdefs.h <<\_ACEOF
10502 #define HAVE_LIBDL 1
10505 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10507 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10508 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10509 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 ac_check_lib_save_LIBS=$LIBS
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10531 return dld_link ();
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551 { (case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_try") 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest$ac_exeext'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 ac_cv_lib_dld_dld_link=yes
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 ac_cv_lib_dld_dld_link=no
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10582 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10583 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10584 if test $ac_cv_lib_dld_dld_link = yes; then
10586 cat >>confdefs.h <<\_ACEOF
10590 LIBADD_DL="$LIBADD_DL -ldld"
10592 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10593 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10594 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 cat >conftest.$ac_ext <<_ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10605 #define _dyld_func_lookup innocuous__dyld_func_lookup
10607 /* System header to define __stub macros and hopefully few prototypes,
10608 which can conflict with char _dyld_func_lookup (); below.
10609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10610 <limits.h> exists even on freestanding compilers. */
10613 # include <limits.h>
10615 # include <assert.h>
10618 #undef _dyld_func_lookup
10620 /* Override any GCC internal prototype to avoid an error.
10621 Use char because int might match the return type of a GCC
10622 builtin and then its argument prototype would still apply. */
10626 char _dyld_func_lookup ();
10627 /* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
10630 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10637 return _dyld_func_lookup ();
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (ac_try="$ac_link"
10644 case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_link") 2>conftest.er1
10651 grep -v '^ *+' conftest.er1 >conftest.err
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10657 { (case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_try") 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_try") 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_func__dyld_func_lookup=yes
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 ac_cv_func__dyld_func_lookup=no
10684 rm -f core conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
10687 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10688 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10689 if test $ac_cv_func__dyld_func_lookup = yes; then
10691 cat >>confdefs.h <<\_ACEOF
10692 #define HAVE_DYLD 1
10706 rm -f core conftest.err conftest.$ac_objext \
10707 conftest$ac_exeext conftest.$ac_ext
10718 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10720 lt_save_LIBS="$LIBS"
10721 LIBS="$LIBS $LIBADD_DL"
10723 for ac_func in dlerror
10725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10739 #define $ac_func innocuous_$ac_func
10741 /* System header to define __stub macros and hopefully few prototypes,
10742 which can conflict with char $ac_func (); below.
10743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10744 <limits.h> exists even on freestanding compilers. */
10747 # include <limits.h>
10749 # include <assert.h>
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10761 /* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
10764 #if defined __stub_$ac_func || defined __stub___$ac_func
10771 return $ac_func ();
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (ac_try="$ac_link"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_link") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest$ac_exeext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 eval "$as_ac_var=yes"
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 eval "$as_ac_var=no"
10818 rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10821 ac_res=`eval echo '${'$as_ac_var'}'`
10822 { echo "$as_me:$LINENO: result: $ac_res" >&5
10823 echo "${ECHO_T}$ac_res" >&6; }
10824 if test `eval echo '${'$as_ac_var'}'` = yes; then
10825 cat >>confdefs.h <<_ACEOF
10826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10832 LIBS="$lt_save_LIBS"
10835 ac_cpp='$CPP $CPPFLAGS'
10836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10842 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10843 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10844 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 ac_cv_sys_symbol_underscore=no
10848 cat > conftest.$ac_ext <<EOF
10849 void nm_test_func(){}
10850 int main(){nm_test_func;return 0;}
10852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853 (eval $ac_compile) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; then
10857 # Now try to grab the symbols.
10858 ac_nlist=conftest.nm
10859 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10860 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && test -s "$ac_nlist"; then
10864 # See whether the symbols have a leading underscore.
10865 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10866 ac_cv_sys_symbol_underscore=yes
10868 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10871 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10875 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10878 echo "configure: failed program was:" >&5
10884 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10885 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10888 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10889 if test x"$libltdl_cv_func_dlopen" = xyes ||
10890 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10891 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10892 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10893 if test "${libltdl_cv_need_uscore+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 libltdl_cv_need_uscore=unknown
10898 LIBS="$LIBS $LIBADD_DL"
10899 if test "$cross_compiling" = yes; then :
10900 libltdl_cv_need_uscore=cross
10902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10903 lt_status=$lt_dlunknown
10904 cat > conftest.$ac_ext <<EOF
10905 #line 10905 "configure"
10906 #include "confdefs.h"
10915 # define LT_DLGLOBAL RTLD_GLOBAL
10918 # define LT_DLGLOBAL DL_GLOBAL
10920 # define LT_DLGLOBAL 0
10924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10925 find out it does not work in some platform. */
10926 #ifndef LT_DLLAZY_OR_NOW
10928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10931 # define LT_DLLAZY_OR_NOW DL_LAZY
10934 # define LT_DLLAZY_OR_NOW RTLD_NOW
10937 # define LT_DLLAZY_OR_NOW DL_NOW
10939 # define LT_DLLAZY_OR_NOW 0
10947 extern "C" void exit (int);
10950 void fnord() { int i=42;}
10953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954 int status = $lt_dlunknown;
10958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960 /* dlclose (self); */
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10973 (./conftest; exit; ) >&5 2>/dev/null
10975 case x$lt_status in
10976 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10977 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10978 x$lt_dlunknown|x*) ;;
10981 # compilation failed
10990 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10991 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10995 if test x"$libltdl_cv_need_uscore" = xyes; then
10997 cat >>confdefs.h <<\_ACEOF
10998 #define NEED_USCORE 1
11004 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11005 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11006 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 # PORTME does your system automatically load deplibs for dlopen?
11010 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11011 # For now, we just catch OSes we know something about -- in the
11012 # future, we'll try test this programmatically.
11013 libltdl_cv_sys_dlopen_deplibs=unknown
11015 aix3*|aix4.1.*|aix4.2.*)
11016 # Unknown whether this is true for these versions of AIX, but
11017 # we want this `case' here to explicitly catch those versions.
11018 libltdl_cv_sys_dlopen_deplibs=unknown
11021 libltdl_cv_sys_dlopen_deplibs=yes
11024 # Assuming the user has installed a libdl from somewhere, this is true
11025 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11026 libltdl_cv_sys_dlopen_deplibs=yes
11028 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11029 # GNU and its variants, using gnu ld.so (Glibc)
11030 libltdl_cv_sys_dlopen_deplibs=yes
11033 libltdl_cv_sys_dlopen_deplibs=yes
11036 libltdl_cv_sys_dlopen_deplibs=yes
11038 irix[12345]*|irix6.[01]*)
11039 # Catch all versions of IRIX before 6.2, and indicate that we don't
11040 # know how it worked for any of those versions.
11041 libltdl_cv_sys_dlopen_deplibs=unknown
11044 # The case above catches anything before 6.2, and it's known that
11045 # at 6.2 and later dlopen does load deplibs.
11046 libltdl_cv_sys_dlopen_deplibs=yes
11049 libltdl_cv_sys_dlopen_deplibs=yes
11052 libltdl_cv_sys_dlopen_deplibs=yes
11055 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11056 # it did *not* use an RPATH in a shared library to find objects the
11057 # library depends on, so we explictly say `no'.
11058 libltdl_cv_sys_dlopen_deplibs=no
11060 osf5.0|osf5.0a|osf5.1)
11061 # dlopen *does* load deplibs and with the right loader patch applied
11062 # it even uses RPATH in a shared library to search for shared objects
11063 # that the library depends on, but there's no easy way to know if that
11064 # patch is installed. Since this is the case, all we can really
11065 # say is unknown -- it depends on the patch being installed. If
11066 # it is, this changes to `yes'. Without it, it would be `no'.
11067 libltdl_cv_sys_dlopen_deplibs=unknown
11070 # the two cases above should catch all versions of osf <= 5.1. Read
11071 # the comments above for what we know about them.
11072 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11073 # is used to find them so we can finally say `yes'.
11074 libltdl_cv_sys_dlopen_deplibs=yes
11077 libltdl_cv_sys_dlopen_deplibs=yes
11079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11080 libltdl_cv_sys_dlopen_deplibs=yes
11085 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11086 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11087 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define LTDL_DLOPEN_DEPLIBS 1
11096 for ac_header in argz.h
11098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11105 ac_res=`eval echo '${'$as_ac_Header'}'`
11106 { echo "$as_me:$LINENO: result: $ac_res" >&5
11107 echo "${ECHO_T}$ac_res" >&6; }
11109 # Is the header compilable?
11110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 $ac_includes_default
11119 #include <$ac_header>
11121 rm -f conftest.$ac_objext
11122 if { (ac_try="$ac_compile"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11130 grep -v '^ *+' conftest.er1 >conftest.err
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
11135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11136 { (case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_try") 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_header_compiler=yes
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_header_compiler=no
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11165 echo "${ECHO_T}$ac_header_compiler" >&6; }
11167 # Is the header present?
11168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 #include <$ac_header>
11178 if { (ac_try="$ac_cpp conftest.$ac_ext"
11179 case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11186 grep -v '^ *+' conftest.er1 >conftest.err
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } >/dev/null; then
11191 if test -s conftest.err; then
11192 ac_cpp_err=$ac_c_preproc_warn_flag
11193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11200 if test -z "$ac_cpp_err"; then
11201 ac_header_preproc=yes
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11206 ac_header_preproc=no
11209 rm -f conftest.err conftest.$ac_ext
11210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11211 echo "${ECHO_T}$ac_header_preproc" >&6; }
11213 # So? What about this header?
11214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11220 ac_header_preproc=yes
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11236 ## ----------------------------------- ##
11237 ## Report this to llvmbugs@cs.uiuc.edu ##
11238 ## ----------------------------------- ##
11240 ) | sed "s/^/$as_me: WARNING: /" >&2
11243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 eval "$as_ac_Header=\$ac_header_preproc"
11250 ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result: $ac_res" >&5
11252 echo "${ECHO_T}$ac_res" >&6; }
11255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11265 { echo "$as_me:$LINENO: checking for error_t" >&5
11266 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11267 if test "${ac_cv_type_error_t+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 cat >conftest.$ac_ext <<_ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11280 typedef error_t ac__type_new_;
11284 if ((ac__type_new_ *) 0)
11286 if (sizeof (ac__type_new_))
11292 rm -f conftest.$ac_objext
11293 if { (ac_try="$ac_compile"
11294 case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_compile") 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11307 { (case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_try") 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest.$ac_objext'
11317 { (case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_try") 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 ac_cv_type_error_t=yes
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 ac_cv_type_error_t=no
11334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11337 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11338 if test $ac_cv_type_error_t = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_ERROR_T 1
11347 cat >>confdefs.h <<\_ACEOF
11348 #define error_t int
11359 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 cat >conftest.$ac_ext <<_ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11375 #define $ac_func innocuous_$ac_func
11377 /* System header to define __stub macros and hopefully few prototypes,
11378 which can conflict with char $ac_func (); below.
11379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380 <limits.h> exists even on freestanding compilers. */
11383 # include <limits.h>
11385 # include <assert.h>
11390 /* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11397 /* The GNU C library defines this for functions which it implements
11398 to always fail with ENOSYS. Some functions are actually named
11399 something starting with __ and the normal name is an alias. */
11400 #if defined __stub_$ac_func || defined __stub___$ac_func
11407 return $ac_func ();
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (ac_try="$ac_link"
11414 case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_link") 2>conftest.er1
11421 grep -v '^ *+' conftest.er1 >conftest.err
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11427 { (case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_try") 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 eval "$as_ac_var=yes"
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 eval "$as_ac_var=no"
11454 rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11457 ac_res=`eval echo '${'$as_ac_var'}'`
11458 { echo "$as_me:$LINENO: result: $ac_res" >&5
11459 echo "${ECHO_T}$ac_res" >&6; }
11460 if test `eval echo '${'$as_ac_var'}'` = yes; then
11461 cat >>confdefs.h <<_ACEOF
11462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11495 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11509 # Is the header compilable?
11510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 $ac_includes_default
11519 #include <$ac_header>
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } &&
11535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 ac_header_compiler=yes
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_header_compiler=no
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11565 echo "${ECHO_T}$ac_header_compiler" >&6; }
11567 # Is the header present?
11568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 #include <$ac_header>
11578 if { (ac_try="$ac_cpp conftest.$ac_ext"
11579 case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11586 grep -v '^ *+' conftest.er1 >conftest.err
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } >/dev/null; then
11591 if test -s conftest.err; then
11592 ac_cpp_err=$ac_c_preproc_warn_flag
11593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11600 if test -z "$ac_cpp_err"; then
11601 ac_header_preproc=yes
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 ac_header_preproc=no
11609 rm -f conftest.err conftest.$ac_ext
11610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11611 echo "${ECHO_T}$ac_header_preproc" >&6; }
11613 # So? What about this header?
11614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11620 ac_header_preproc=yes
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11636 ## ----------------------------------- ##
11637 ## Report this to llvmbugs@cs.uiuc.edu ##
11638 ## ----------------------------------- ##
11640 ) | sed "s/^/$as_me: WARNING: /" >&2
11643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 eval "$as_ac_Header=\$ac_header_preproc"
11650 ac_res=`eval echo '${'$as_ac_Header'}'`
11651 { echo "$as_me:$LINENO: result: $ac_res" >&5
11652 echo "${ECHO_T}$ac_res" >&6; }
11655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11656 cat >>confdefs.h <<_ACEOF
11657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11668 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 ac_res=`eval echo '${'$as_ac_Header'}'`
11678 { echo "$as_me:$LINENO: result: $ac_res" >&5
11679 echo "${ECHO_T}$ac_res" >&6; }
11681 # Is the header compilable?
11682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11684 cat >conftest.$ac_ext <<_ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 $ac_includes_default
11691 #include <$ac_header>
11693 rm -f conftest.$ac_objext
11694 if { (ac_try="$ac_compile"
11695 case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_compile") 2>conftest.er1
11702 grep -v '^ *+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11708 { (case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_try") 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest.$ac_objext'
11718 { (case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_try") 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
11727 ac_header_compiler=yes
11729 echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732 ac_header_compiler=no
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11737 echo "${ECHO_T}$ac_header_compiler" >&6; }
11739 # Is the header present?
11740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11742 cat >conftest.$ac_ext <<_ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 #include <$ac_header>
11750 if { (ac_try="$ac_cpp conftest.$ac_ext"
11751 case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11758 grep -v '^ *+' conftest.er1 >conftest.err
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } >/dev/null; then
11763 if test -s conftest.err; then
11764 ac_cpp_err=$ac_c_preproc_warn_flag
11765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11772 if test -z "$ac_cpp_err"; then
11773 ac_header_preproc=yes
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 ac_header_preproc=no
11781 rm -f conftest.err conftest.$ac_ext
11782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11783 echo "${ECHO_T}$ac_header_preproc" >&6; }
11785 # So? What about this header?
11786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11792 ac_header_preproc=yes
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11808 ## ----------------------------------- ##
11809 ## Report this to llvmbugs@cs.uiuc.edu ##
11810 ## ----------------------------------- ##
11812 ) | sed "s/^/$as_me: WARNING: /" >&2
11815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 eval "$as_ac_Header=\$ac_header_preproc"
11822 ac_res=`eval echo '${'$as_ac_Header'}'`
11823 { echo "$as_me:$LINENO: result: $ac_res" >&5
11824 echo "${ECHO_T}$ac_res" >&6; }
11827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11828 cat >>confdefs.h <<_ACEOF
11829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11838 for ac_header in string.h strings.h
11840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 ac_res=`eval echo '${'$as_ac_Header'}'`
11848 { echo "$as_me:$LINENO: result: $ac_res" >&5
11849 echo "${ECHO_T}$ac_res" >&6; }
11851 # Is the header compilable?
11852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11854 cat >conftest.$ac_ext <<_ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 $ac_includes_default
11861 #include <$ac_header>
11863 rm -f conftest.$ac_objext
11864 if { (ac_try="$ac_compile"
11865 case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_compile") 2>conftest.er1
11872 grep -v '^ *+' conftest.er1 >conftest.err
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11878 { (case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_try") 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; } &&
11887 { ac_try='test -s conftest.$ac_objext'
11888 { (case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_try") 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_header_compiler=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_header_compiler=no
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11907 echo "${ECHO_T}$ac_header_compiler" >&6; }
11909 # Is the header present?
11910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11912 cat >conftest.$ac_ext <<_ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 #include <$ac_header>
11920 if { (ac_try="$ac_cpp conftest.$ac_ext"
11921 case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11928 grep -v '^ *+' conftest.er1 >conftest.err
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } >/dev/null; then
11933 if test -s conftest.err; then
11934 ac_cpp_err=$ac_c_preproc_warn_flag
11935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11942 if test -z "$ac_cpp_err"; then
11943 ac_header_preproc=yes
11945 echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11948 ac_header_preproc=no
11951 rm -f conftest.err conftest.$ac_ext
11952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11953 echo "${ECHO_T}$ac_header_preproc" >&6; }
11955 # So? What about this header?
11956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11962 ac_header_preproc=yes
11965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11978 ## ----------------------------------- ##
11979 ## Report this to llvmbugs@cs.uiuc.edu ##
11980 ## ----------------------------------- ##
11982 ) | sed "s/^/$as_me: WARNING: /" >&2
11985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 eval "$as_ac_Header=\$ac_header_preproc"
11992 ac_res=`eval echo '${'$as_ac_Header'}'`
11993 { echo "$as_me:$LINENO: result: $ac_res" >&5
11994 echo "${ECHO_T}$ac_res" >&6; }
11997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11998 cat >>confdefs.h <<_ACEOF
11999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12009 for ac_func in strchr index
12011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12025 #define $ac_func innocuous_$ac_func
12027 /* System header to define __stub macros and hopefully few prototypes,
12028 which can conflict with char $ac_func (); below.
12029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 <limits.h> exists even on freestanding compilers. */
12033 # include <limits.h>
12035 # include <assert.h>
12040 /* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
12047 /* The GNU C library defines this for functions which it implements
12048 to always fail with ENOSYS. Some functions are actually named
12049 something starting with __ and the normal name is an alias. */
12050 #if defined __stub_$ac_func || defined __stub___$ac_func
12057 return $ac_func ();
12062 rm -f conftest.$ac_objext conftest$ac_exeext
12063 if { (ac_try="$ac_link"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_link") 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest$ac_exeext'
12087 { (case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_try") 2>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 eval "$as_ac_var=yes"
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 eval "$as_ac_var=no"
12104 rm -f core conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12107 ac_res=`eval echo '${'$as_ac_var'}'`
12108 { echo "$as_me:$LINENO: result: $ac_res" >&5
12109 echo "${ECHO_T}$ac_res" >&6; }
12110 if test `eval echo '${'$as_ac_var'}'` = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 for ac_func in strrchr rindex
12122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12136 #define $ac_func innocuous_$ac_func
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func (); below.
12140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141 <limits.h> exists even on freestanding compilers. */
12144 # include <limits.h>
12146 # include <assert.h>
12151 /* Override any GCC internal prototype to avoid an error.
12152 Use char because int might match the return type of a GCC
12153 builtin and then its argument prototype would still apply. */
12158 /* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161 #if defined __stub_$ac_func || defined __stub___$ac_func
12168 return $ac_func ();
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest$ac_exeext'
12198 { (case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_try") 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 eval "$as_ac_var=yes"
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 eval "$as_ac_var=no"
12215 rm -f core conftest.err conftest.$ac_objext \
12216 conftest$ac_exeext conftest.$ac_ext
12218 ac_res=`eval echo '${'$as_ac_var'}'`
12219 { echo "$as_me:$LINENO: result: $ac_res" >&5
12220 echo "${ECHO_T}$ac_res" >&6; }
12221 if test `eval echo '${'$as_ac_var'}'` = yes; then
12222 cat >>confdefs.h <<_ACEOF
12223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12231 for ac_func in memcpy bcopy
12233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12247 #define $ac_func innocuous_$ac_func
12249 /* System header to define __stub macros and hopefully few prototypes,
12250 which can conflict with char $ac_func (); below.
12251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12252 <limits.h> exists even on freestanding compilers. */
12255 # include <limits.h>
12257 # include <assert.h>
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12269 /* The GNU C library defines this for functions which it implements
12270 to always fail with ENOSYS. Some functions are actually named
12271 something starting with __ and the normal name is an alias. */
12272 #if defined __stub_$ac_func || defined __stub___$ac_func
12279 return $ac_func ();
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (ac_try="$ac_link"
12286 case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_link") 2>conftest.er1
12293 grep -v '^ *+' conftest.er1 >conftest.err
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try='test -s conftest$ac_exeext'
12309 { (case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_try") 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 eval "$as_ac_var=yes"
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 eval "$as_ac_var=no"
12326 rm -f core conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12329 ac_res=`eval echo '${'$as_ac_var'}'`
12330 { echo "$as_me:$LINENO: result: $ac_res" >&5
12331 echo "${ECHO_T}$ac_res" >&6; }
12332 if test `eval echo '${'$as_ac_var'}'` = yes; then
12333 cat >>confdefs.h <<_ACEOF
12334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12342 for ac_func in memmove strcmp
12344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12358 #define $ac_func innocuous_$ac_func
12360 /* System header to define __stub macros and hopefully few prototypes,
12361 which can conflict with char $ac_func (); below.
12362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12363 <limits.h> exists even on freestanding compilers. */
12366 # include <limits.h>
12368 # include <assert.h>
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12380 /* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
12383 #if defined __stub_$ac_func || defined __stub___$ac_func
12390 return $ac_func ();
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (ac_try="$ac_link"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_link") 2>conftest.er1
12404 grep -v '^ *+' conftest.er1 >conftest.err
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12410 { (case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_try") 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 eval "$as_ac_var=yes"
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 eval "$as_ac_var=no"
12437 rm -f core conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12440 ac_res=`eval echo '${'$as_ac_var'}'`
12441 { echo "$as_me:$LINENO: result: $ac_res" >&5
12442 echo "${ECHO_T}$ac_res" >&6; }
12443 if test `eval echo '${'$as_ac_var'}'` = yes; then
12444 cat >>confdefs.h <<_ACEOF
12445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12454 for ac_func in closedir opendir readdir
12456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 cat >conftest.$ac_ext <<_ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12470 #define $ac_func innocuous_$ac_func
12472 /* System header to define __stub macros and hopefully few prototypes,
12473 which can conflict with char $ac_func (); below.
12474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12475 <limits.h> exists even on freestanding compilers. */
12478 # include <limits.h>
12480 # include <assert.h>
12485 /* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12492 /* The GNU C library defines this for functions which it implements
12493 to always fail with ENOSYS. Some functions are actually named
12494 something starting with __ and the normal name is an alias. */
12495 #if defined __stub_$ac_func || defined __stub___$ac_func
12502 return $ac_func ();
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (ac_try="$ac_link"
12509 case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_link") 2>conftest.er1
12516 grep -v '^ *+' conftest.er1 >conftest.err
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12522 { (case "(($ac_try" in
12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524 *) ac_try_echo=$ac_try;;
12526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527 (eval "$ac_try") 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest$ac_exeext'
12532 { (case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_try") 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 eval "$as_ac_var=yes"
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12546 eval "$as_ac_var=no"
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12552 ac_res=`eval echo '${'$as_ac_var'}'`
12553 { echo "$as_me:$LINENO: result: $ac_res" >&5
12554 echo "${ECHO_T}$ac_res" >&6; }
12555 if test `eval echo '${'$as_ac_var'}'` = yes; then
12556 cat >>confdefs.h <<_ACEOF
12557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12564 # Check whether --enable-shared was given.
12565 if test "${enable_shared+set}" = set; then
12566 enableval=$enable_shared; p=${PACKAGE-default}
12568 yes) enable_shared=yes ;;
12569 no) enable_shared=no ;;
12572 # Look at the argument we got. We use all the common list separators.
12573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12574 for pkg in $enableval; do
12576 if test "X$pkg" = "X$p"; then
12588 # Check whether --enable-static was given.
12589 if test "${enable_static+set}" = set; then
12590 enableval=$enable_static; p=${PACKAGE-default}
12592 yes) enable_static=yes ;;
12593 no) enable_static=no ;;
12596 # Look at the argument we got. We use all the common list separators.
12597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12598 for pkg in $enableval; do
12600 if test "X$pkg" = "X$p"; then
12612 # Check whether --enable-fast-install was given.
12613 if test "${enable_fast_install+set}" = set; then
12614 enableval=$enable_fast_install; p=${PACKAGE-default}
12616 yes) enable_fast_install=yes ;;
12617 no) enable_fast_install=no ;;
12619 enable_fast_install=no
12620 # Look at the argument we got. We use all the common list separators.
12621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12622 for pkg in $enableval; do
12624 if test "X$pkg" = "X$p"; then
12625 enable_fast_install=yes
12632 enable_fast_install=yes
12636 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12637 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12638 if test "${lt_cv_path_SED+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 # Loop through the user's path and test for sed and gsed.
12642 # Then use that list of sed's as ones to test for truncation.
12643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12647 test -z "$as_dir" && as_dir=.
12648 for lt_ac_prog in sed gsed; do
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12651 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12658 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12659 # along with /bin/sed that truncates output.
12660 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12661 test ! -f $lt_ac_sed && continue
12662 cat /dev/null > conftest.in
12664 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12665 # Check for GNU sed and select it if it is found.
12666 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12667 lt_cv_path_SED=$lt_ac_sed
12671 cat conftest.in conftest.in >conftest.tmp
12672 mv conftest.tmp conftest.in
12673 cp conftest.in conftest.nl
12675 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12676 cmp -s conftest.out conftest.nl || break
12677 # 10000 chars as input seems more than enough
12678 test $lt_ac_count -gt 10 && break
12679 lt_ac_count=`expr $lt_ac_count + 1`
12680 if test $lt_ac_count -gt $lt_ac_max; then
12681 lt_ac_max=$lt_ac_count
12682 lt_cv_path_SED=$lt_ac_sed
12689 SED=$lt_cv_path_SED
12690 { echo "$as_me:$LINENO: result: $SED" >&5
12691 echo "${ECHO_T}$SED" >&6; }
12694 # Check whether --with-gnu-ld was given.
12695 if test "${with_gnu_ld+set}" = set; then
12696 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12702 if test "$GCC" = yes; then
12703 # Check if gcc -print-prog-name=ld gives a path.
12704 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12705 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12708 # gcc leaves a trailing carriage return which upsets mingw
12709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12714 # Accept absolute paths.
12716 re_direlt='/[^/][^/]*/\.\./'
12717 # Canonicalize the pathname of ld
12718 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12720 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12722 test -z "$LD" && LD="$ac_prog"
12725 # If it fails, then pretend we aren't using GCC.
12729 # If it is relative, then search for the first ld in PATH.
12730 with_gnu_ld=unknown
12733 elif test "$with_gnu_ld" = yes; then
12734 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12735 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12737 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12738 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12740 if test "${lt_cv_path_LD+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 if test -z "$LD"; then
12744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12745 for ac_dir in $PATH; do
12747 test -z "$ac_dir" && ac_dir=.
12748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12749 lt_cv_path_LD="$ac_dir/$ac_prog"
12750 # Check to see if the program is GNU ld. I'd rather use --version,
12751 # but apparently some variants of GNU ld only accept -v.
12752 # Break only if it was the GNU/non-GNU ld that we prefer.
12753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12754 *GNU* | *'with BFD'*)
12755 test "$with_gnu_ld" != no && break
12758 test "$with_gnu_ld" != yes && break
12765 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12769 LD="$lt_cv_path_LD"
12770 if test -n "$LD"; then
12771 { echo "$as_me:$LINENO: result: $LD" >&5
12772 echo "${ECHO_T}$LD" >&6; }
12774 { echo "$as_me:$LINENO: result: no" >&5
12775 echo "${ECHO_T}no" >&6; }
12777 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12778 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12779 { (exit 1); exit 1; }; }
12780 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12781 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12782 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12786 case `$LD -v 2>&1 </dev/null` in
12787 *GNU* | *'with BFD'*)
12788 lt_cv_prog_gnu_ld=yes
12791 lt_cv_prog_gnu_ld=no
12795 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12796 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12797 with_gnu_ld=$lt_cv_prog_gnu_ld
12800 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12801 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12802 if test "${lt_cv_ld_reload_flag+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 lt_cv_ld_reload_flag='-r'
12807 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12808 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12809 reload_flag=$lt_cv_ld_reload_flag
12810 case $reload_flag in
12812 *) reload_flag=" $reload_flag" ;;
12814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12817 if test "$GCC" = yes; then
12818 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12825 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12826 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12827 if test "${lt_cv_deplibs_check_method+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 lt_cv_file_magic_cmd='$MAGIC_CMD'
12831 lt_cv_file_magic_test_file=
12832 lt_cv_deplibs_check_method='unknown'
12833 # Need to set the preceding variable on all platforms that support
12834 # interlibrary dependencies.
12835 # 'none' -- dependencies not supported.
12836 # `unknown' -- same as none, but documents that we really don't know.
12837 # 'pass_all' -- all dependencies passed with no checks.
12838 # 'test_compile' -- check by making test program.
12839 # 'file_magic [[regex]]' -- check by looking for files in library path
12840 # which responds to the $file_magic_cmd with a given extended regex.
12841 # If you have `file' or equivalent on your system and you're not sure
12842 # whether `pass_all' will *always* work, you probably want this one.
12846 lt_cv_deplibs_check_method=pass_all
12850 lt_cv_deplibs_check_method=pass_all
12854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12855 lt_cv_file_magic_cmd='/usr/bin/file -L'
12856 lt_cv_file_magic_test_file=/shlib/libc.so
12860 # func_win32_libid is a shell function defined in ltmain.sh
12861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12862 lt_cv_file_magic_cmd='func_win32_libid'
12866 # Base MSYS/MinGW do not provide the 'file' command needed by
12867 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12868 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12869 lt_cv_file_magic_cmd='$OBJDUMP -f'
12872 darwin* | rhapsody*)
12873 lt_cv_deplibs_check_method=pass_all
12876 freebsd* | kfreebsd*-gnu | dragonfly*)
12877 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12880 # Not sure whether the presence of OpenBSD here was a mistake.
12881 # Let's accept both of them until this is cleared up.
12882 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12883 lt_cv_file_magic_cmd=/usr/bin/file
12884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12888 lt_cv_deplibs_check_method=pass_all
12893 lt_cv_deplibs_check_method=pass_all
12896 hpux10.20* | hpux11*)
12897 lt_cv_file_magic_cmd=/usr/bin/file
12900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12901 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12904 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]'
12905 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12909 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12919 irix5* | irix6* | nonstopux*)
12921 *-32|*"-32 ") libmagic=32-bit;;
12922 *-n32|*"-n32 ") libmagic=N32;;
12923 *-64|*"-64 ") libmagic=64-bit;;
12924 *) libmagic=never-match;;
12926 lt_cv_deplibs_check_method=pass_all
12929 # This must be Linux ELF.
12931 lt_cv_deplibs_check_method=pass_all
12935 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12944 lt_cv_file_magic_cmd=/usr/bin/file
12945 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12949 lt_cv_deplibs_check_method=unknown
12953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12960 osf3* | osf4* | osf5*)
12961 lt_cv_deplibs_check_method=pass_all
12965 lt_cv_deplibs_check_method=pass_all
12969 case $host_vendor in
12971 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]'
12972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12975 lt_cv_deplibs_check_method=pass_all
12978 lt_cv_file_magic_cmd='/bin/file'
12979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12982 lt_cv_file_magic_cmd='/bin/file'
12983 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12984 lt_cv_file_magic_test_file=/lib/libc.so
12987 lt_cv_deplibs_check_method=pass_all
12990 lt_cv_deplibs_check_method=pass_all
12995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12996 lt_cv_deplibs_check_method=pass_all
13001 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13002 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13003 file_magic_cmd=$lt_cv_file_magic_cmd
13004 deplibs_check_method=$lt_cv_deplibs_check_method
13005 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13009 # If no C compiler was specified, use CC.
13012 # If no C compiler flags were specified, use CFLAGS.
13013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13015 # Allow CC to be a program name with arguments.
13018 # Check whether --enable-libtool-lock was given.
13019 if test "${enable_libtool_lock+set}" = set; then
13020 enableval=$enable_libtool_lock;
13023 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13025 # Some flags need to be propagated to the compiler or linker for good
13029 # Find out which ABI we are using.
13030 echo 'int i;' > conftest.$ac_ext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032 (eval $ac_compile) 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; then
13036 case `/usr/bin/file conftest.$ac_objext` in
13038 HPUX_IA64_MODE="32"
13041 HPUX_IA64_MODE="64"
13048 # Find out which ABI we are using.
13049 echo '#line 13049 "configure"' > conftest.$ac_ext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; then
13055 if test "$lt_cv_prog_gnu_ld" = yes; then
13056 case `/usr/bin/file conftest.$ac_objext` in
13058 LD="${LD-ld} -melf32bsmip"
13061 LD="${LD-ld} -melf32bmipn32"
13064 LD="${LD-ld} -melf64bmip"
13068 case `/usr/bin/file conftest.$ac_objext` in
13084 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13085 # Find out which ABI we are using.
13086 echo 'int i;' > conftest.$ac_ext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; then
13092 case `/usr/bin/file conftest.o` in
13096 LD="${LD-ld} -m elf_i386"
13098 ppc64-*linux*|powerpc64-*linux*)
13099 LD="${LD-ld} -m elf32ppclinux"
13102 LD="${LD-ld} -m elf_s390"
13105 LD="${LD-ld} -m elf32_sparc"
13112 LD="${LD-ld} -m elf_x86_64"
13114 ppc*-*linux*|powerpc*-*linux*)
13115 LD="${LD-ld} -m elf64ppc"
13118 LD="${LD-ld} -m elf64_s390"
13121 LD="${LD-ld} -m elf64_sparc"
13131 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13132 SAVE_CFLAGS="$CFLAGS"
13133 CFLAGS="$CFLAGS -belf"
13134 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13135 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13136 if test "${lt_cv_cc_needs_belf+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 ac_cpp='$CPP $CPPFLAGS'
13141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13160 rm -f conftest.$ac_objext conftest$ac_exeext
13161 if { (ac_try="$ac_link"
13162 case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_link") 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest$ac_exeext'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 lt_cv_cc_needs_belf=yes
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 lt_cv_cc_needs_belf=no
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13205 ac_cpp='$CPP $CPPFLAGS'
13206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13211 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13212 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13215 CFLAGS="$SAVE_CFLAGS"
13219 # Find out which ABI we are using.
13220 echo 'int i;' > conftest.$ac_ext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222 (eval $ac_compile) 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; then
13226 case `/usr/bin/file conftest.o` in
13228 case $lt_cv_prog_gnu_ld in
13229 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13230 *) LD="${LD-ld} -64" ;;
13241 need_locks="$enable_libtool_lock"
13246 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13247 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13248 (test "X$CXX" != "Xg++"))) ; then
13250 ac_cpp='$CXXCPP $CPPFLAGS'
13251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13254 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13255 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13256 if test -z "$CXXCPP"; then
13257 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 # Double quotes because CXXCPP needs to be expanded
13261 for CXXCPP in "$CXX -E" "/lib/cpp"
13263 ac_preproc_ok=false
13264 for ac_cxx_preproc_warn_flag in '' yes
13266 # Use a header file that comes with gcc, so configuring glibc
13267 # with a fresh cross-compiler works.
13268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13269 # <limits.h> exists even on freestanding compilers.
13270 # On the NeXT, cc -E runs the code through the compiler's parser,
13271 # not just through cpp. "Syntax error" is here to catch this case.
13272 cat >conftest.$ac_ext <<_ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13279 # include <limits.h>
13281 # include <assert.h>
13285 if { (ac_try="$ac_cpp conftest.$ac_ext"
13286 case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13293 grep -v '^ *+' conftest.er1 >conftest.err
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } >/dev/null; then
13298 if test -s conftest.err; then
13299 ac_cpp_err=$ac_cxx_preproc_warn_flag
13300 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13307 if test -z "$ac_cpp_err"; then
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13313 # Broken: fails on valid input.
13317 rm -f conftest.err conftest.$ac_ext
13319 # OK, works on sane cases. Now check whether nonexistent headers
13320 # can be detected and how.
13321 cat >conftest.$ac_ext <<_ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 #include <ac_nonexistent.h>
13329 if { (ac_try="$ac_cpp conftest.$ac_ext"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13337 grep -v '^ *+' conftest.er1 >conftest.err
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } >/dev/null; then
13342 if test -s conftest.err; then
13343 ac_cpp_err=$ac_cxx_preproc_warn_flag
13344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13351 if test -z "$ac_cpp_err"; then
13352 # Broken: success on invalid input.
13355 echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13358 # Passes both tests.
13363 rm -f conftest.err conftest.$ac_ext
13366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13367 rm -f conftest.err conftest.$ac_ext
13368 if $ac_preproc_ok; then
13373 ac_cv_prog_CXXCPP=$CXXCPP
13376 CXXCPP=$ac_cv_prog_CXXCPP
13378 ac_cv_prog_CXXCPP=$CXXCPP
13380 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13381 echo "${ECHO_T}$CXXCPP" >&6; }
13382 ac_preproc_ok=false
13383 for ac_cxx_preproc_warn_flag in '' yes
13385 # Use a header file that comes with gcc, so configuring glibc
13386 # with a fresh cross-compiler works.
13387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13388 # <limits.h> exists even on freestanding compilers.
13389 # On the NeXT, cc -E runs the code through the compiler's parser,
13390 # not just through cpp. "Syntax error" is here to catch this case.
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 # include <limits.h>
13400 # include <assert.h>
13404 if { (ac_try="$ac_cpp conftest.$ac_ext"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13412 grep -v '^ *+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } >/dev/null; then
13417 if test -s conftest.err; then
13418 ac_cpp_err=$ac_cxx_preproc_warn_flag
13419 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13426 if test -z "$ac_cpp_err"; then
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 # Broken: fails on valid input.
13436 rm -f conftest.err conftest.$ac_ext
13438 # OK, works on sane cases. Now check whether nonexistent headers
13439 # can be detected and how.
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 #include <ac_nonexistent.h>
13448 if { (ac_try="$ac_cpp conftest.$ac_ext"
13449 case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13456 grep -v '^ *+' conftest.er1 >conftest.err
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } >/dev/null; then
13461 if test -s conftest.err; then
13462 ac_cpp_err=$ac_cxx_preproc_warn_flag
13463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13470 if test -z "$ac_cpp_err"; then
13471 # Broken: success on invalid input.
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 # Passes both tests.
13482 rm -f conftest.err conftest.$ac_ext
13485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13486 rm -f conftest.err conftest.$ac_ext
13487 if $ac_preproc_ok; then
13490 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13491 See \`config.log' for more details." >&5
13492 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13493 See \`config.log' for more details." >&2;}
13494 { (exit 1); exit 1; }; }
13498 ac_cpp='$CXXCPP $CPPFLAGS'
13499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13507 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13508 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13509 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13510 if test -n "$ac_tool_prefix"; then
13511 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
13513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13517 if test "${ac_cv_prog_F77+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 if test -n "$F77"; then
13521 ac_cv_prog_F77="$F77" # Let the user override the test.
13523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13524 for as_dir in $PATH
13527 test -z "$as_dir" && as_dir=.
13528 for ac_exec_ext in '' $ac_executable_extensions; do
13529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13530 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13540 F77=$ac_cv_prog_F77
13541 if test -n "$F77"; then
13542 { echo "$as_me:$LINENO: result: $F77" >&5
13543 echo "${ECHO_T}$F77" >&6; }
13545 { echo "$as_me:$LINENO: result: no" >&5
13546 echo "${ECHO_T}no" >&6; }
13550 test -n "$F77" && break
13553 if test -z "$F77"; then
13555 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
13557 # Extract the first word of "$ac_prog", so it can be a program name with args.
13558 set dummy $ac_prog; ac_word=$2
13559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13561 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 if test -n "$ac_ct_F77"; then
13565 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
13573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13574 ac_cv_prog_ac_ct_F77="$ac_prog"
13575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13584 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13585 if test -n "$ac_ct_F77"; then
13586 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13587 echo "${ECHO_T}$ac_ct_F77" >&6; }
13589 { echo "$as_me:$LINENO: result: no" >&5
13590 echo "${ECHO_T}no" >&6; }
13594 test -n "$ac_ct_F77" && break
13597 if test "x$ac_ct_F77" = x; then
13600 case $cross_compiling:$ac_tool_warned in
13602 { echo "$as_me:$LINENO: 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." >&5
13605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13606 whose name does not start with the host triplet. If you think this
13607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13608 ac_tool_warned=yes ;;
13615 # Provide some information about the compiler.
13616 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13617 ac_compiler=`set X $ac_compile; echo $2`
13618 { (ac_try="$ac_compiler --version >&5"
13619 case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_compiler --version >&5") 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }
13628 { (ac_try="$ac_compiler -v >&5"
13629 case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_compiler -v >&5") 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }
13638 { (ac_try="$ac_compiler -V >&5"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compiler -V >&5") 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }
13650 # If we don't use `.F' as extension, the preprocessor is not run on the
13651 # input file. (Note that this only needs to work for GNU compilers.)
13652 ac_save_ext=$ac_ext
13654 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13655 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13656 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 cat >conftest.$ac_ext <<_ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (ac_try="$ac_compile"
13669 case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_compile") 2>conftest.er1
13676 grep -v '^ *+' conftest.er1 >conftest.err
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
13681 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13682 { (case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_try") 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; } &&
13691 { ac_try='test -s conftest.$ac_objext'
13692 { (case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_try") 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_compiler_gnu=yes
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13713 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13714 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13715 ac_ext=$ac_save_ext
13716 ac_test_FFLAGS=${FFLAGS+set}
13717 ac_save_FFLAGS=$FFLAGS
13719 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13720 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13721 if test "${ac_cv_prog_f77_g+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 cat >conftest.$ac_ext <<_ACEOF
13730 rm -f conftest.$ac_objext
13731 if { (ac_try="$ac_compile"
13732 case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_compile") 2>conftest.er1
13739 grep -v '^ *+' conftest.er1 >conftest.err
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13745 { (case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_try") 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest.$ac_objext'
13755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_cv_prog_f77_g=yes
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13769 ac_cv_prog_f77_g=no
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13776 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13777 if test "$ac_test_FFLAGS" = set; then
13778 FFLAGS=$ac_save_FFLAGS
13779 elif test $ac_cv_prog_f77_g = yes; then
13780 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13786 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13793 G77=`test $ac_compiler_gnu = yes && echo yes`
13795 ac_cpp='$CPP $CPPFLAGS'
13796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13802 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13804 # find the maximum length of command line arguments
13805 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13806 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13807 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 # On DJGPP, this test can blow up pretty badly due to problems in libc
13816 # (any single argument exceeding 2000 bytes causes a buffer overrun
13817 # during glob expansion). Even if it were fixed, the result of this
13818 # check would be larger than it should be.
13819 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13823 # Under GNU Hurd, this test is not required because there is
13824 # no limit to the length of command line arguments.
13825 # Libtool will interpret -1 as no limit whatsoever
13826 lt_cv_sys_max_cmd_len=-1;
13830 # On Win9x/ME, this test blows up -- it succeeds, but takes
13831 # about 5 minutes as the teststring grows exponentially.
13832 # Worse, since 9x/ME are not pre-emptively multitasking,
13833 # you end up with a "frozen" computer, even though with patience
13834 # the test eventually succeeds (with a max line length of 256k).
13835 # Instead, let's just punt: use the minimum linelength reported by
13836 # all of the supported platforms: 8192 (on NT/2K/XP).
13837 lt_cv_sys_max_cmd_len=8192;
13841 # On AmigaOS with pdksh, this test takes hours, literally.
13842 # So we just punt and use a minimum line length of 8192.
13843 lt_cv_sys_max_cmd_len=8192;
13846 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13847 # This has been around since 386BSD, at least. Likely further.
13848 if test -x /sbin/sysctl; then
13849 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13850 elif test -x /usr/sbin/sysctl; then
13851 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13853 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13855 # And add a safety zone
13856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13861 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13862 lt_cv_sys_max_cmd_len=196608
13866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13868 # nice to cause kernel panics so lets avoid the loop below.
13869 # First set a reasonable default.
13870 lt_cv_sys_max_cmd_len=16384
13872 if test -x /sbin/sysconfig; then
13873 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13874 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13879 lt_cv_sys_max_cmd_len=102400
13881 sysv5* | sco5v6* | sysv4.2uw2*)
13882 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13883 if test -n "$kargmax"; then
13884 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13886 lt_cv_sys_max_cmd_len=32768
13890 # If test is not a shell built-in, we'll probably end up computing a
13891 # maximum length that is only half of the actual maximum length, but
13893 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13894 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13895 = "XX$teststring") >/dev/null 2>&1 &&
13896 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13897 lt_cv_sys_max_cmd_len=$new_result &&
13898 test $i != 17 # 1/2 MB should be enough
13901 teststring=$teststring$teststring
13904 # Add a significant safety factor because C++ compilers can tack on massive
13905 # amounts of additional arguments before passing them to the linker.
13906 # It appears as though 1/2 is a usable value.
13907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13913 if test -n $lt_cv_sys_max_cmd_len ; then
13914 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13915 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13917 { echo "$as_me:$LINENO: result: none" >&5
13918 echo "${ECHO_T}none" >&6; }
13924 # Check for command to grab the raw symbol name followed by C symbol from nm.
13925 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13926 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13927 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 # These are sane defaults that work on at least a few old systems.
13932 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13934 # Character class describing NM global symbol codes.
13935 symcode='[BCDEGRST]'
13937 # Regexp to match symbols that can be accessed directly from C.
13938 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13940 # Transform an extracted symbol line into a proper C declaration
13941 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13943 # Transform an extracted symbol line into symbol name and symbol address
13944 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'"
13946 # Define system-specific variables.
13951 cygwin* | mingw* | pw32*)
13952 symcode='[ABCDGISTW]'
13954 hpux*) # Its linker distinguishes data from code symbols
13955 if test "$host_cpu" = ia64; then
13956 symcode='[ABCDEGRST]'
13958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13959 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'"
13962 if test "$host_cpu" = ia64; then
13963 symcode='[ABCDGIRSTW]'
13964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13965 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'"
13968 irix* | nonstopux*)
13969 symcode='[BCDEGRST]'
13972 symcode='[BCDEGQRST]'
13983 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13991 # Handle CRLF in mingw tool chain
13995 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13999 # If we're using GNU nm, then use its standard symbol codes.
14000 case `$NM -V 2>&1` in
14001 *GNU* | *'with BFD'*)
14002 symcode='[ABCDGIRSTW]' ;;
14005 # Try without a prefix undercore, then with it.
14006 for ac_symprfx in "" "_"; do
14008 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14009 symxfrm="\\1 $ac_symprfx\\2 \\2"
14011 # Write the raw and C identifiers.
14012 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14014 # Check to see that the pipe works correctly.
14018 cat > conftest.$ac_ext <<EOF
14023 void nm_test_func(){}
14027 int main(){nm_test_var='a';nm_test_func();return(0);}
14030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; then
14035 # Now try to grab the symbols.
14037 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14038 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } && test -s "$nlist"; then
14042 # Try sorting and uniquifying the output.
14043 if sort "$nlist" | uniq > "$nlist"T; then
14044 mv -f "$nlist"T "$nlist"
14049 # Make sure that we snagged all the symbols we need.
14050 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14051 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14052 cat <<EOF > conftest.$ac_ext
14058 # Now generate the symbol file.
14059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14061 cat <<EOF >> conftest.$ac_ext
14062 #if defined (__STDC__) && __STDC__
14063 # define lt_ptr_t void *
14065 # define lt_ptr_t char *
14069 /* The mapping between symbol names and symbols. */
14074 lt_preloaded_symbols[] =
14077 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14078 cat <<\EOF >> conftest.$ac_ext
14086 # Now try linking the two files.
14087 mv conftest.$ac_objext conftstm.$ac_objext
14088 lt_save_LIBS="$LIBS"
14089 lt_save_CFLAGS="$CFLAGS"
14090 LIBS="conftstm.$ac_objext"
14091 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14099 LIBS="$lt_save_LIBS"
14100 CFLAGS="$lt_save_CFLAGS"
14102 echo "cannot find nm_test_func in $nlist" >&5
14105 echo "cannot find nm_test_var in $nlist" >&5
14108 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14111 echo "$progname: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14114 rm -f conftest* conftst*
14116 # Do not use the global_symbol_pipe unless it works.
14117 if test "$pipe_works" = yes; then
14120 lt_cv_sys_global_symbol_pipe=
14126 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14127 lt_cv_sys_global_symbol_to_cdecl=
14129 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14130 { echo "$as_me:$LINENO: result: failed" >&5
14131 echo "${ECHO_T}failed" >&6; }
14133 { echo "$as_me:$LINENO: result: ok" >&5
14134 echo "${ECHO_T}ok" >&6; }
14137 { echo "$as_me:$LINENO: checking for objdir" >&5
14138 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14139 if test "${lt_cv_objdir+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 rm -f .libs 2>/dev/null
14143 mkdir .libs 2>/dev/null
14144 if test -d .libs; then
14147 # MS-DOS does not allow filenames that begin with a dot.
14150 rmdir .libs 2>/dev/null
14152 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14153 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14154 objdir=$lt_cv_objdir
14162 # AIX sometimes has problems with the GCC collect2 program. For some
14163 # reason, if we set the COLLECT_NAMES environment variable, the problems
14164 # vanish in a puff of smoke.
14165 if test "X${COLLECT_NAMES+set}" != Xset; then
14167 export COLLECT_NAMES
14172 # Sed substitution that helps us do robust quoting. It backslashifies
14173 # metacharacters that are still active within double-quoted strings.
14174 Xsed='sed -e 1s/^X//'
14175 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14177 # Same as above, but do not quote variable references.
14178 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14180 # Sed substitution to delay expansion of an escaped shell variable in a
14181 # double_quote_subst'ed string.
14182 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14184 # Sed substitution to avoid accidental globbing in evaled expressions
14185 no_glob_subst='s/\*/\\\*/g'
14190 # Global variables:
14191 default_ofile=mklib
14192 can_build_shared=yes
14194 # All known linkers require a `.a' archive for static linking (except MSVC,
14195 # which needs '.lib').
14197 ltmain="$ac_aux_dir/ltmain.sh"
14198 ofile="$default_ofile"
14199 with_gnu_ld="$lt_cv_prog_gnu_ld"
14201 if test -n "$ac_tool_prefix"; then
14202 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14203 set dummy ${ac_tool_prefix}ar; ac_word=$2
14204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14206 if test "${ac_cv_prog_AR+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 if test -n "$AR"; then
14210 ac_cv_prog_AR="$AR" # Let the user override the test.
14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
14218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14219 ac_cv_prog_AR="${ac_tool_prefix}ar"
14220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14230 if test -n "$AR"; then
14231 { echo "$as_me:$LINENO: result: $AR" >&5
14232 echo "${ECHO_T}$AR" >&6; }
14234 { echo "$as_me:$LINENO: result: no" >&5
14235 echo "${ECHO_T}no" >&6; }
14240 if test -z "$ac_cv_prog_AR"; then
14242 # Extract the first word of "ar", so it can be a program name with args.
14243 set dummy ar; ac_word=$2
14244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14246 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 if test -n "$ac_ct_AR"; then
14250 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14259 ac_cv_prog_ac_ct_AR="ar"
14260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14269 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14270 if test -n "$ac_ct_AR"; then
14271 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14272 echo "${ECHO_T}$ac_ct_AR" >&6; }
14274 { echo "$as_me:$LINENO: result: no" >&5
14275 echo "${ECHO_T}no" >&6; }
14278 if test "x$ac_ct_AR" = x; then
14281 case $cross_compiling:$ac_tool_warned in
14283 { echo "$as_me:$LINENO: 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." >&5
14286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14287 whose name does not start with the host triplet. If you think this
14288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14289 ac_tool_warned=yes ;;
14294 AR="$ac_cv_prog_AR"
14297 if test -n "$ac_tool_prefix"; then
14298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14302 if test "${ac_cv_prog_RANLIB+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 if test -n "$RANLIB"; then
14306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14325 RANLIB=$ac_cv_prog_RANLIB
14326 if test -n "$RANLIB"; then
14327 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14328 echo "${ECHO_T}$RANLIB" >&6; }
14330 { echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6; }
14336 if test -z "$ac_cv_prog_RANLIB"; then
14337 ac_ct_RANLIB=$RANLIB
14338 # Extract the first word of "ranlib", so it can be a program name with args.
14339 set dummy ranlib; ac_word=$2
14340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 if test -n "$ac_ct_RANLIB"; then
14346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14355 ac_cv_prog_ac_ct_RANLIB="ranlib"
14356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14366 if test -n "$ac_ct_RANLIB"; then
14367 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14368 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14370 { echo "$as_me:$LINENO: result: no" >&5
14371 echo "${ECHO_T}no" >&6; }
14374 if test "x$ac_ct_RANLIB" = x; then
14377 case $cross_compiling:$ac_tool_warned in
14379 { echo "$as_me:$LINENO: 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." >&5
14382 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14383 whose name does not start with the host triplet. If you think this
14384 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14385 ac_tool_warned=yes ;;
14387 RANLIB=$ac_ct_RANLIB
14390 RANLIB="$ac_cv_prog_RANLIB"
14393 if test -n "$ac_tool_prefix"; then
14394 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14395 set dummy ${ac_tool_prefix}strip; ac_word=$2
14396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14398 if test "${ac_cv_prog_STRIP+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 if test -n "$STRIP"; then
14402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in $PATH
14408 test -z "$as_dir" && as_dir=.
14409 for ac_exec_ext in '' $ac_executable_extensions; do
14410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14411 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14421 STRIP=$ac_cv_prog_STRIP
14422 if test -n "$STRIP"; then
14423 { echo "$as_me:$LINENO: result: $STRIP" >&5
14424 echo "${ECHO_T}$STRIP" >&6; }
14426 { echo "$as_me:$LINENO: result: no" >&5
14427 echo "${ECHO_T}no" >&6; }
14432 if test -z "$ac_cv_prog_STRIP"; then
14434 # Extract the first word of "strip", so it can be a program name with args.
14435 set dummy strip; ac_word=$2
14436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14438 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 if test -n "$ac_ct_STRIP"; then
14442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14451 ac_cv_prog_ac_ct_STRIP="strip"
14452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14461 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14462 if test -n "$ac_ct_STRIP"; then
14463 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14464 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14466 { echo "$as_me:$LINENO: result: no" >&5
14467 echo "${ECHO_T}no" >&6; }
14470 if test "x$ac_ct_STRIP" = x; then
14473 case $cross_compiling:$ac_tool_warned in
14475 { echo "$as_me:$LINENO: 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." >&5
14478 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14479 whose name does not start with the host triplet. If you think this
14480 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14481 ac_tool_warned=yes ;;
14486 STRIP="$ac_cv_prog_STRIP"
14491 old_CFLAGS="$CFLAGS"
14493 # Set sane defaults for various variables
14494 test -z "$AR" && AR=ar
14495 test -z "$AR_FLAGS" && AR_FLAGS=cru
14496 test -z "$AS" && AS=as
14497 test -z "$CC" && CC=cc
14498 test -z "$LTCC" && LTCC=$CC
14499 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14500 test -z "$DLLTOOL" && DLLTOOL=dlltool
14501 test -z "$LD" && LD=ld
14502 test -z "$LN_S" && LN_S="ln -s"
14503 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14504 test -z "$NM" && NM=nm
14505 test -z "$SED" && SED=sed
14506 test -z "$OBJDUMP" && OBJDUMP=objdump
14507 test -z "$RANLIB" && RANLIB=:
14508 test -z "$STRIP" && STRIP=:
14509 test -z "$ac_objext" && ac_objext=o
14511 # Determine commands to create old-style static archives.
14512 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14513 old_postinstall_cmds='chmod 644 $oldlib'
14514 old_postuninstall_cmds=
14516 if test -n "$RANLIB"; then
14519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14522 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14525 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14528 for cc_temp in $compiler""; do
14530 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14531 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14536 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14539 # Only perform the check for file, if the check method requires it
14540 case $deplibs_check_method in
14542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14543 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14544 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14545 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14553 lt_save_MAGIC_CMD="$MAGIC_CMD"
14554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14556 for ac_dir in $ac_dummy; do
14558 test -z "$ac_dir" && ac_dir=.
14559 if test -f $ac_dir/${ac_tool_prefix}file; then
14560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14561 if test -n "$file_magic_test_file"; then
14562 case $deplibs_check_method in
14564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14567 $EGREP "$file_magic_regex" > /dev/null; then
14572 *** Warning: the command libtool uses to detect shared libraries,
14573 *** $file_magic_cmd, produces output that libtool cannot recognize.
14574 *** The result is that libtool may fail to recognize shared libraries
14575 *** as such. This will affect the creation of libtool libraries that
14576 *** depend on shared libraries, but programs linked with such libtool
14577 *** libraries will work regardless of this problem. Nevertheless, you
14578 *** may want to report the problem to your system manager and/or to
14579 *** bug-libtool@gnu.org
14589 MAGIC_CMD="$lt_save_MAGIC_CMD"
14594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14595 if test -n "$MAGIC_CMD"; then
14596 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14597 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14599 { echo "$as_me:$LINENO: result: no" >&5
14600 echo "${ECHO_T}no" >&6; }
14603 if test -z "$lt_cv_path_MAGIC_CMD"; then
14604 if test -n "$ac_tool_prefix"; then
14605 { echo "$as_me:$LINENO: checking for file" >&5
14606 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14615 lt_save_MAGIC_CMD="$MAGIC_CMD"
14616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14618 for ac_dir in $ac_dummy; do
14620 test -z "$ac_dir" && ac_dir=.
14621 if test -f $ac_dir/file; then
14622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14623 if test -n "$file_magic_test_file"; then
14624 case $deplibs_check_method in
14626 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14629 $EGREP "$file_magic_regex" > /dev/null; then
14634 *** Warning: the command libtool uses to detect shared libraries,
14635 *** $file_magic_cmd, produces output that libtool cannot recognize.
14636 *** The result is that libtool may fail to recognize shared libraries
14637 *** as such. This will affect the creation of libtool libraries that
14638 *** depend on shared libraries, but programs linked with such libtool
14639 *** libraries will work regardless of this problem. Nevertheless, you
14640 *** may want to report the problem to your system manager and/or to
14641 *** bug-libtool@gnu.org
14651 MAGIC_CMD="$lt_save_MAGIC_CMD"
14656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14657 if test -n "$MAGIC_CMD"; then
14658 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14659 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14661 { echo "$as_me:$LINENO: result: no" >&5
14662 echo "${ECHO_T}no" >&6; }
14675 enable_win32_dll=no
14677 # Check whether --enable-libtool-lock was given.
14678 if test "${enable_libtool_lock+set}" = set; then
14679 enableval=$enable_libtool_lock;
14682 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14685 # Check whether --with-pic was given.
14686 if test "${with_pic+set}" = set; then
14687 withval=$with_pic; pic_mode="$withval"
14692 test -z "$pic_mode" && pic_mode=default
14694 # Use C for the default configuration in the libtool script
14698 ac_cpp='$CPP $CPPFLAGS'
14699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14704 # Source file extension for C test sources.
14707 # Object file extension for compiled C test sources.
14711 # Code to be used in simple compile tests
14712 lt_simple_compile_test_code="int some_variable = 0;\n"
14714 # Code to be used in simple link tests
14715 lt_simple_link_test_code='int main(){return(0);}\n'
14718 # If no C compiler was specified, use CC.
14721 # If no C compiler flags were specified, use CFLAGS.
14722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14724 # Allow CC to be a program name with arguments.
14728 # save warnings/boilerplate of simple test code
14729 ac_outfile=conftest.$ac_objext
14730 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14732 _lt_compiler_boilerplate=`cat conftest.err`
14735 ac_outfile=conftest.$ac_objext
14736 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14738 _lt_linker_boilerplate=`cat conftest.err`
14743 lt_prog_compiler_no_builtin_flag=
14745 if test "$GCC" = yes; then
14746 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14749 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14750 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14751 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 lt_cv_prog_compiler_rtti_exceptions=no
14755 ac_outfile=conftest.$ac_objext
14756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14757 lt_compiler_flag="-fno-rtti -fno-exceptions"
14758 # Insert the option either (1) after the last *FLAGS variable, or
14759 # (2) before a word containing "conftest.", or (3) at the end.
14760 # Note that $ac_compile itself does not contain backslashes and begins
14761 # with a dollar sign (not a hyphen), so the echo should work correctly.
14762 # The option is referenced via a variable to avoid confusing sed.
14763 lt_compile=`echo "$ac_compile" | $SED \
14764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14766 -e 's:$: $lt_compiler_flag:'`
14767 (eval echo "\"\$as_me:14767: $lt_compile\"" >&5)
14768 (eval "$lt_compile" 2>conftest.err)
14770 cat conftest.err >&5
14771 echo "$as_me:14771: \$? = $ac_status" >&5
14772 if (exit $ac_status) && test -s "$ac_outfile"; then
14773 # The compiler can only warn and ignore the option if not recognized
14774 # So say no if there are warnings other than the usual output.
14775 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14778 lt_cv_prog_compiler_rtti_exceptions=yes
14784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14785 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14787 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14788 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14795 lt_prog_compiler_wl=
14796 lt_prog_compiler_pic=
14797 lt_prog_compiler_static=
14799 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14800 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14802 if test "$GCC" = yes; then
14803 lt_prog_compiler_wl='-Wl,'
14804 lt_prog_compiler_static='-static'
14808 # All AIX code is PIC.
14809 if test "$host_cpu" = ia64; then
14810 # AIX 5 now supports IA64 processor
14811 lt_prog_compiler_static='-Bstatic'
14816 # FIXME: we need at least 68020 code to build shared libraries, but
14817 # adding the `-m68020' flag to GCC prevents building anything better,
14819 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14822 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14823 # PIC is the default for these OSes.
14826 mingw* | pw32* | os2*)
14827 # This hack is so that the source file can tell whether it is being
14828 # built for inclusion in a dll (and should export symbols for example).
14829 lt_prog_compiler_pic='-DDLL_EXPORT'
14832 darwin* | rhapsody*)
14833 # PIC is the default on this platform
14834 # Common symbols not allowed in MH_DYLIB files
14835 lt_prog_compiler_pic='-fno-common'
14839 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14840 # Instead, we relocate shared libraries at runtime.
14844 # Just because we use GCC doesn't mean we suddenly get shared libraries
14845 # on systems that don't support them.
14846 lt_prog_compiler_can_build_shared=no
14851 if test -d /usr/nec; then
14852 lt_prog_compiler_pic=-Kconform_pic
14857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14858 # not for PA HP-UX.
14864 lt_prog_compiler_pic='-fPIC'
14870 lt_prog_compiler_pic='-fPIC'
14874 # PORTME Check for flag to pass linker flags through the system compiler.
14877 lt_prog_compiler_wl='-Wl,'
14878 if test "$host_cpu" = ia64; then
14879 # AIX 5 now supports IA64 processor
14880 lt_prog_compiler_static='-Bstatic'
14882 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14886 # PIC is the default on this platform
14887 # Common symbols not allowed in MH_DYLIB files
14888 case $cc_basename in
14890 lt_prog_compiler_pic='-qnocommon'
14891 lt_prog_compiler_wl='-Wl,'
14896 mingw* | pw32* | os2*)
14897 # This hack is so that the source file can tell whether it is being
14898 # built for inclusion in a dll (and should export symbols for example).
14899 lt_prog_compiler_pic='-DDLL_EXPORT'
14902 hpux9* | hpux10* | hpux11*)
14903 lt_prog_compiler_wl='-Wl,'
14904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14905 # not for PA HP-UX.
14911 lt_prog_compiler_pic='+Z'
14914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14915 lt_prog_compiler_static='${wl}-a ${wl}archive'
14918 irix5* | irix6* | nonstopux*)
14919 lt_prog_compiler_wl='-Wl,'
14920 # PIC (with -KPIC) is the default.
14921 lt_prog_compiler_static='-non_shared'
14925 lt_prog_compiler_pic='-KPIC'
14926 lt_prog_compiler_static='-Bstatic'
14930 case $cc_basename in
14932 lt_prog_compiler_wl='-Wl,'
14933 lt_prog_compiler_pic='-KPIC'
14934 lt_prog_compiler_static='-static'
14936 pgcc* | pgf77* | pgf90* | pgf95*)
14937 # Portland Group compilers (*not* the Pentium gcc compiler,
14938 # which looks to be a dead project)
14939 lt_prog_compiler_wl='-Wl,'
14940 lt_prog_compiler_pic='-fpic'
14941 lt_prog_compiler_static='-Bstatic'
14944 lt_prog_compiler_wl='-Wl,'
14945 # All Alpha code is PIC.
14946 lt_prog_compiler_static='-non_shared'
14951 osf3* | osf4* | osf5*)
14952 lt_prog_compiler_wl='-Wl,'
14953 # All OSF/1 code is PIC.
14954 lt_prog_compiler_static='-non_shared'
14958 lt_prog_compiler_pic='-KPIC'
14959 lt_prog_compiler_static='-Bstatic'
14960 case $cc_basename in
14961 f77* | f90* | f95*)
14962 lt_prog_compiler_wl='-Qoption ld ';;
14964 lt_prog_compiler_wl='-Wl,';;
14969 lt_prog_compiler_wl='-Qoption ld '
14970 lt_prog_compiler_pic='-PIC'
14971 lt_prog_compiler_static='-Bstatic'
14974 sysv4 | sysv4.2uw2* | sysv4.3*)
14975 lt_prog_compiler_wl='-Wl,'
14976 lt_prog_compiler_pic='-KPIC'
14977 lt_prog_compiler_static='-Bstatic'
14981 if test -d /usr/nec ;then
14982 lt_prog_compiler_pic='-Kconform_pic'
14983 lt_prog_compiler_static='-Bstatic'
14987 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14988 lt_prog_compiler_wl='-Wl,'
14989 lt_prog_compiler_pic='-KPIC'
14990 lt_prog_compiler_static='-Bstatic'
14994 lt_prog_compiler_wl='-Wl,'
14995 lt_prog_compiler_can_build_shared=no
14999 lt_prog_compiler_pic='-pic'
15000 lt_prog_compiler_static='-Bstatic'
15004 lt_prog_compiler_can_build_shared=no
15009 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15010 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15013 # Check to make sure the PIC flag actually works.
15015 if test -n "$lt_prog_compiler_pic"; then
15017 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15018 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15019 if test "${lt_prog_compiler_pic_works+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15022 lt_prog_compiler_pic_works=no
15023 ac_outfile=conftest.$ac_objext
15024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15025 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15026 # Insert the option either (1) after the last *FLAGS variable, or
15027 # (2) before a word containing "conftest.", or (3) at the end.
15028 # Note that $ac_compile itself does not contain backslashes and begins
15029 # with a dollar sign (not a hyphen), so the echo should work correctly.
15030 # The option is referenced via a variable to avoid confusing sed.
15031 lt_compile=`echo "$ac_compile" | $SED \
15032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15034 -e 's:$: $lt_compiler_flag:'`
15035 (eval echo "\"\$as_me:15035: $lt_compile\"" >&5)
15036 (eval "$lt_compile" 2>conftest.err)
15038 cat conftest.err >&5
15039 echo "$as_me:15039: \$? = $ac_status" >&5
15040 if (exit $ac_status) && test -s "$ac_outfile"; then
15041 # The compiler can only warn and ignore the option if not recognized
15042 # So say no if there are warnings other than the usual output.
15043 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15045 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15046 lt_prog_compiler_pic_works=yes
15052 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15053 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15055 if test x"$lt_prog_compiler_pic_works" = xyes; then
15056 case $lt_prog_compiler_pic in
15058 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15061 lt_prog_compiler_pic=
15062 lt_prog_compiler_can_build_shared=no
15067 # For platforms which do not support PIC, -DPIC is meaningless:
15069 lt_prog_compiler_pic=
15072 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15077 # Check to make sure the static flag actually works.
15079 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15080 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15081 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15082 if test "${lt_prog_compiler_static_works+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 lt_prog_compiler_static_works=no
15086 save_LDFLAGS="$LDFLAGS"
15087 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15088 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15089 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15090 # The linker can only warn and ignore the option if not recognized
15091 # So say no if there are warnings
15092 if test -s conftest.err; then
15093 # Append any errors to the config.log.
15094 cat conftest.err 1>&5
15095 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15097 if diff conftest.exp conftest.er2 >/dev/null; then
15098 lt_prog_compiler_static_works=yes
15101 lt_prog_compiler_static_works=yes
15105 LDFLAGS="$save_LDFLAGS"
15108 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15109 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15111 if test x"$lt_prog_compiler_static_works" = xyes; then
15114 lt_prog_compiler_static=
15118 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15119 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15120 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15123 lt_cv_prog_compiler_c_o=no
15124 $rm -r conftest 2>/dev/null
15128 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15130 lt_compiler_flag="-o out/conftest2.$ac_objext"
15131 # Insert the option either (1) after the last *FLAGS variable, or
15132 # (2) before a word containing "conftest.", or (3) at the end.
15133 # Note that $ac_compile itself does not contain backslashes and begins
15134 # with a dollar sign (not a hyphen), so the echo should work correctly.
15135 lt_compile=`echo "$ac_compile" | $SED \
15136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15138 -e 's:$: $lt_compiler_flag:'`
15139 (eval echo "\"\$as_me:15139: $lt_compile\"" >&5)
15140 (eval "$lt_compile" 2>out/conftest.err)
15142 cat out/conftest.err >&5
15143 echo "$as_me:15143: \$? = $ac_status" >&5
15144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15146 # The compiler can only warn and ignore the option if not recognized
15147 # So say no if there are warnings
15148 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15151 lt_cv_prog_compiler_c_o=yes
15156 # SGI C++ compiler will create directory out/ii_files/ for
15157 # template instantiation
15158 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15159 $rm out/* && rmdir out
15165 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15166 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15169 hard_links="nottested"
15170 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15171 # do not overwrite the value of need_locks provided by the user
15172 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15173 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15178 ln conftest.a conftest.b 2>&5 || hard_links=no
15179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15180 { echo "$as_me:$LINENO: result: $hard_links" >&5
15181 echo "${ECHO_T}$hard_links" >&6; }
15182 if test "$hard_links" = no; then
15183 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15184 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15191 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15192 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15195 allow_undefined_flag=
15196 enable_shared_with_static_runtimes=no
15198 archive_expsym_cmds=
15199 old_archive_From_new_cmds=
15200 old_archive_from_expsyms_cmds=
15201 export_dynamic_flag_spec=
15202 whole_archive_flag_spec=
15203 thread_safe_flag_spec=
15204 hardcode_libdir_flag_spec=
15205 hardcode_libdir_flag_spec_ld=
15206 hardcode_libdir_separator=
15208 hardcode_minus_L=no
15209 hardcode_shlibpath_var=unsupported
15210 link_all_deplibs=unknown
15211 hardcode_automatic=no
15213 module_expsym_cmds=
15214 always_export_symbols=no
15215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15216 # include_expsyms should be a list of space-separated symbols to be *always*
15217 # included in the symbol list
15219 # exclude_expsyms can be an extended regexp of symbols to exclude
15220 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15221 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15222 # as well as any symbol that contains `d'.
15223 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15224 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15225 # platforms (ab)use it in PIC code, but their linkers get confused if
15226 # the symbol is explicitly referenced. Since portable code cannot
15227 # rely on this symbol name, it's probably fine to never include it in
15228 # preloaded symbol tables.
15229 extract_expsyms_cmds=
15230 # Just being paranoid about ensuring that cc_basename is set.
15231 for cc_temp in $compiler""; do
15233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15239 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15242 cygwin* | mingw* | pw32*)
15243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15244 # When not using gcc, we currently assume that we are using
15245 # Microsoft Visual C++.
15246 if test "$GCC" != yes; then
15251 # we just hope/assume this is gcc and not c89 (= MSVC++)
15260 if test "$with_gnu_ld" = yes; then
15261 # If archive_cmds runs LD, not CC, wlarc should be empty
15264 # Set some defaults for GNU ld with shared library support. These
15265 # are reset later if shared libraries are not supported. Putting them
15266 # here allows them to be overridden if necessary.
15267 runpath_var=LD_RUN_PATH
15268 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15269 export_dynamic_flag_spec='${wl}--export-dynamic'
15270 # ancient GNU ld didn't support --whole-archive et. al.
15271 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15272 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15274 whole_archive_flag_spec=
15276 supports_anon_versioning=no
15277 case `$LD -v 2>/dev/null` in
15278 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15279 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15280 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15281 *\ 2.11.*) ;; # other 2.11 versions
15282 *) supports_anon_versioning=yes ;;
15285 # See if GNU ld supports shared libraries.
15287 aix3* | aix4* | aix5*)
15288 # On AIX/PPC, the GNU linker is very broken
15289 if test "$host_cpu" != ia64; then
15293 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15294 *** to be unable to reliably create shared libraries on AIX.
15295 *** Therefore, libtool is disabling shared libraries support. If you
15296 *** really care for shared libraries, you may want to modify your PATH
15297 *** so that a non-GNU linker is found, and then restart.
15304 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)'
15305 hardcode_libdir_flag_spec='-L$libdir'
15306 hardcode_minus_L=yes
15308 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15309 # that the semantics of dynamic libraries on AmigaOS, at least up
15310 # to version 4, is to share data among multiple programs linked
15311 # with the same dynamic library. Since this doesn't match the
15312 # behavior of shared libraries on other platforms, we can't use
15318 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15319 allow_undefined_flag=unsupported
15320 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15321 # support --undefined. This deserves some investigation. FIXME
15322 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15328 cygwin* | mingw* | pw32*)
15329 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15330 # as there is no search path for DLLs.
15331 hardcode_libdir_flag_spec='-L$libdir'
15332 allow_undefined_flag=unsupported
15333 always_export_symbols=no
15334 enable_shared_with_static_runtimes=yes
15335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15337 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15339 # If the export-symbols file already is a .def file (1st line
15340 # is EXPORTS), use it as is; otherwise, prepend...
15341 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15342 cp $export_symbols $output_objdir/$soname.def;
15344 echo EXPORTS > $output_objdir/$soname.def;
15345 cat $export_symbols >> $output_objdir/$soname.def;
15347 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15355 hardcode_shlibpath_var=no
15356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15357 export_dynamic_flag_spec='${wl}-E'
15358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15359 # Instead, shared libraries are loaded at an image base (0x10000000 by
15360 # default) and relocated if they conflict, which is a slow very memory
15361 # consuming and fragmenting process. To avoid this, we pick a random,
15362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15363 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15365 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'
15369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15371 case $cc_basename,$host_cpu in
15372 pgcc*) # Portland Group C compiler
15373 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'
15374 tmp_addflag=' $pic_flag'
15376 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15377 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'
15378 tmp_addflag=' $pic_flag -Mnomain' ;;
15379 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15380 tmp_addflag=' -i_dynamic' ;;
15381 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15382 tmp_addflag=' -i_dynamic -nofor_main' ;;
15383 ifc* | ifort*) # Intel Fortran compiler
15384 tmp_addflag=' -nofor_main' ;;
15386 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15388 if test $supports_anon_versioning = yes; then
15389 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15391 $echo "local: *; };" >> $output_objdir/$libname.ver~
15392 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15401 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15410 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15415 *** create shared libraries on Solaris systems. Therefore, libtool
15416 *** is disabling shared libraries support. We urge you to upgrade GNU
15417 *** binutils to release 2.9.1 or newer. Another option is to modify
15418 *** your PATH or compiler configuration so that the native linker is
15419 *** used, and then restart.
15422 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15431 case `$LD -v 2>&1` in
15432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15437 *** reliably create shared libraries on SCO systems. Therefore, libtool
15438 *** is disabling shared libraries support. We urge you to upgrade GNU
15439 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15440 *** your PATH or compiler configuration so that the native linker is
15441 *** used, and then restart.
15446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15447 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15458 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15460 hardcode_direct=yes
15461 hardcode_shlibpath_var=no
15465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15474 if test "$ld_shlibs" = no; then
15476 hardcode_libdir_flag_spec=
15477 export_dynamic_flag_spec=
15478 whole_archive_flag_spec=
15481 # PORTME fill in a description of your system's linker (not GNU ld)
15484 allow_undefined_flag=unsupported
15485 always_export_symbols=yes
15486 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'
15487 # Note: this linker hardcodes the directories in LIBPATH if there
15488 # are no directories specified by -L.
15489 hardcode_minus_L=yes
15490 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15491 # Neither direct hardcoding nor static linking is supported with a
15493 hardcode_direct=unsupported
15498 if test "$host_cpu" = ia64; then
15499 # On IA64, the linker does run time linking by default, so we don't
15500 # have to do anything special.
15501 aix_use_runtimelinking=no
15502 exp_sym_flag='-Bexport'
15505 # If we're using GNU nm, then we don't want the "-C" option.
15506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15507 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15508 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'
15510 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'
15512 aix_use_runtimelinking=no
15514 # Test if we are trying to use run time linking or normal
15515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15516 # need to do runtime linking.
15517 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15518 for ld_flag in $LDFLAGS; do
15519 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15520 aix_use_runtimelinking=yes
15527 exp_sym_flag='-bexport'
15528 no_entry_flag='-bnoentry'
15531 # When large executables or shared objects are built, AIX ld can
15532 # have problems creating the table of contents. If linking a library
15533 # or program results in "error TOC overflow" add -mminimal-toc to
15534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15538 hardcode_direct=yes
15539 hardcode_libdir_separator=':'
15540 link_all_deplibs=yes
15542 if test "$GCC" = yes; then
15543 case $host_os in aix4.[012]|aix4.[012].*)
15544 # We only want to do this on AIX 4.2 and lower, the check
15545 # below for broken collect2 doesn't work under 4.3+
15546 collect2name=`${CC} -print-prog-name=collect2`
15547 if test -f "$collect2name" && \
15548 strings "$collect2name" | grep resolve_lib_name >/dev/null
15550 # We have reworked collect2
15551 hardcode_direct=yes
15553 # We have old collect2
15554 hardcode_direct=unsupported
15555 # It fails to find uninstalled libraries when the uninstalled
15556 # path is not listed in the libpath. Setting hardcode_minus_L
15557 # to unsupported forces relinking
15558 hardcode_minus_L=yes
15559 hardcode_libdir_flag_spec='-L$libdir'
15560 hardcode_libdir_separator=
15564 shared_flag='-shared'
15565 if test "$aix_use_runtimelinking" = yes; then
15566 shared_flag="$shared_flag "'${wl}-G'
15570 if test "$host_cpu" = ia64; then
15571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15572 # chokes on -Wl,-G. The following line is correct:
15575 if test "$aix_use_runtimelinking" = yes; then
15576 shared_flag='${wl}-G'
15578 shared_flag='${wl}-bM:SRE'
15583 # It seems that -bexpall does not export symbols beginning with
15584 # underscore (_), so it is better to generate a list of symbols to export.
15585 always_export_symbols=yes
15586 if test "$aix_use_runtimelinking" = yes; then
15587 # Warning - without using the other runtime loading flags (-brtl),
15588 # -berok will link without error, but may produce a broken library.
15589 allow_undefined_flag='-berok'
15590 # Determine the default libpath from the value encoded in an empty executable.
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (ac_try="$ac_link"
15608 case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_link") 2>conftest.er1
15615 grep -v '^ *+' conftest.er1 >conftest.err
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621 { (case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest$ac_exeext'
15631 { (case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15643 # Check for a 64-bit object if we didn't find anything.
15644 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; }
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15653 rm -f core conftest.err conftest.$ac_objext \
15654 conftest$ac_exeext conftest.$ac_ext
15655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15658 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"
15660 if test "$host_cpu" = ia64; then
15661 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15662 allow_undefined_flag="-z nodefs"
15663 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"
15665 # Determine the default libpath from the value encoded in an empty executable.
15666 cat >conftest.$ac_ext <<_ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (ac_try="$ac_link"
15683 case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_link") 2>conftest.er1
15690 grep -v '^ *+' conftest.er1 >conftest.err
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15696 { (case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_try") 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; } &&
15705 { ac_try='test -s conftest$ac_exeext'
15706 { (case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_try") 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15718 # Check for a 64-bit object if we didn't find anything.
15719 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; }
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15728 rm -f core conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15733 # Warning - without using the other run time loading flags,
15734 # -berok will link without error, but may produce a broken library.
15735 no_undefined_flag=' ${wl}-bernotok'
15736 allow_undefined_flag=' ${wl}-berok'
15737 # Exported symbols can be pulled into shared objects from archives
15738 whole_archive_flag_spec='$convenience'
15739 archive_cmds_need_lc=yes
15740 # This is similar to how AIX traditionally builds its shared libraries.
15741 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'
15747 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)'
15748 hardcode_libdir_flag_spec='-L$libdir'
15749 hardcode_minus_L=yes
15750 # see comment about different semantics on the GNU ld section
15755 export_dynamic_flag_spec=-rdynamic
15758 cygwin* | mingw* | pw32*)
15759 # When not using gcc, we currently assume that we are using
15760 # Microsoft Visual C++.
15761 # hardcode_libdir_flag_spec is actually meaningless, as there is
15762 # no search path for DLLs.
15763 hardcode_libdir_flag_spec=' '
15764 allow_undefined_flag=unsupported
15765 # Tell ltmain to make .lib files, not .a files.
15767 # Tell ltmain to make .dll files, not .so files.
15769 # FIXME: Setting linknames here is a bad hack.
15770 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15771 # The linker will automatically build a .lib file if we build a DLL.
15772 old_archive_From_new_cmds='true'
15773 # FIXME: Should let the user specify the lib program.
15774 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15775 fix_srcfile_path='`cygpath -w "$srcfile"`'
15776 enable_shared_with_static_runtimes=yes
15779 darwin* | rhapsody*)
15781 rhapsody* | darwin1.[012])
15782 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15786 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15788 case ${MACOSX_DEPLOYMENT_TARGET} in
15790 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15793 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15799 archive_cmds_need_lc=no
15801 hardcode_automatic=yes
15802 hardcode_shlibpath_var=unsupported
15803 whole_archive_flag_spec=''
15804 link_all_deplibs=yes
15805 if test "$GCC" = yes ; then
15806 output_verbose_link_cmd='echo'
15807 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15808 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15810 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}'
15811 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}'
15813 case $cc_basename in
15815 output_verbose_link_cmd='echo'
15816 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15817 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15819 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}'
15820 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}'
15830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15831 hardcode_libdir_flag_spec='-L$libdir'
15832 hardcode_shlibpath_var=no
15839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15840 # support. Future versions do this automatically, but an explicit c++rt0.o
15841 # does not break anything, and helps significantly (at the cost of a little
15844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15845 hardcode_libdir_flag_spec='-R$libdir'
15846 hardcode_direct=yes
15847 hardcode_shlibpath_var=no
15850 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15853 hardcode_direct=yes
15854 hardcode_minus_L=yes
15855 hardcode_shlibpath_var=no
15858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15859 freebsd* | kfreebsd*-gnu | dragonfly*)
15860 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15861 hardcode_libdir_flag_spec='-R$libdir'
15862 hardcode_direct=yes
15863 hardcode_shlibpath_var=no
15867 if test "$GCC" = yes; then
15868 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'
15870 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'
15872 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15873 hardcode_libdir_separator=:
15874 hardcode_direct=yes
15876 # hardcode_minus_L: Not really in the search PATH,
15877 # but as the default location of the library.
15878 hardcode_minus_L=yes
15879 export_dynamic_flag_spec='${wl}-E'
15883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15884 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15888 if test "$with_gnu_ld" = no; then
15889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15890 hardcode_libdir_separator=:
15892 hardcode_direct=yes
15893 export_dynamic_flag_spec='${wl}-E'
15895 # hardcode_minus_L: Not really in the search PATH,
15896 # but as the default location of the library.
15897 hardcode_minus_L=yes
15902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15905 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15911 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15917 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15920 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15923 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15927 if test "$with_gnu_ld" = no; then
15928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15929 hardcode_libdir_separator=:
15933 hardcode_libdir_flag_spec_ld='+b $libdir'
15935 hardcode_shlibpath_var=no
15938 hardcode_direct=yes
15939 export_dynamic_flag_spec='${wl}-E'
15941 # hardcode_minus_L: Not really in the search PATH,
15942 # but as the default location of the library.
15943 hardcode_minus_L=yes
15949 irix5* | irix6* | nonstopux*)
15950 if test "$GCC" = yes; then
15951 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'
15953 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'
15954 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15957 hardcode_libdir_separator=:
15958 link_all_deplibs=yes
15962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15965 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15967 hardcode_libdir_flag_spec='-R$libdir'
15968 hardcode_direct=yes
15969 hardcode_shlibpath_var=no
15973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15974 hardcode_direct=yes
15975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15976 hardcode_libdir_separator=:
15977 hardcode_shlibpath_var=no
15981 hardcode_direct=yes
15982 hardcode_shlibpath_var=no
15983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15985 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15986 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15987 export_dynamic_flag_spec='${wl}-E'
15990 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15992 hardcode_libdir_flag_spec='-R$libdir'
15995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16003 hardcode_libdir_flag_spec='-L$libdir'
16004 hardcode_minus_L=yes
16005 allow_undefined_flag=unsupported
16006 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'
16007 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16011 if test "$GCC" = yes; then
16012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16013 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'
16015 allow_undefined_flag=' -expect_unresolved \*'
16016 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'
16018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16019 hardcode_libdir_separator=:
16022 osf4* | osf5*) # as osf3* with the addition of -msym flag
16023 if test "$GCC" = yes; then
16024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16025 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'
16026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16028 allow_undefined_flag=' -expect_unresolved \*'
16029 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'
16030 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16031 $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'
16033 # Both c and cxx compiler support -rpath directly
16034 hardcode_libdir_flag_spec='-rpath $libdir'
16036 hardcode_libdir_separator=:
16040 no_undefined_flag=' -z text'
16041 if test "$GCC" = yes; then
16043 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16044 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16045 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16048 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16052 hardcode_libdir_flag_spec='-R$libdir'
16053 hardcode_shlibpath_var=no
16055 solaris2.[0-5] | solaris2.[0-5].*) ;;
16057 # The compiler driver will combine linker options so we
16058 # cannot just pass the convience library names through
16059 # without $wl, iff we do not link with $LD.
16060 # Luckily, gcc supports the same syntax we need for Sun Studio.
16061 # Supported since Solaris 2.6 (maybe 2.5.1?)
16064 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16066 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' ;;
16069 link_all_deplibs=yes
16073 if test "x$host_vendor" = xsequent; then
16074 # Use $CC to link under sequent, because it throws in some extra .o
16075 # files that make .init and .fini sections work.
16076 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16078 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16080 hardcode_libdir_flag_spec='-L$libdir'
16081 hardcode_direct=yes
16082 hardcode_minus_L=yes
16083 hardcode_shlibpath_var=no
16087 case $host_vendor in
16089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16090 hardcode_direct=yes # is this really true???
16093 ## LD is ld it makes a PLAMLIB
16094 ## CC just makes a GrossModule.
16095 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16096 reload_cmds='$CC -r -o $output$reload_objs'
16100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16104 runpath_var='LD_RUN_PATH'
16105 hardcode_shlibpath_var=no
16109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16110 hardcode_shlibpath_var=no
16111 export_dynamic_flag_spec='-Bexport'
16115 if test -d /usr/nec; then
16116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16117 hardcode_shlibpath_var=no
16118 runpath_var=LD_RUN_PATH
16119 hardcode_runpath_var=yes
16124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16125 no_undefined_flag='${wl}-z,text'
16126 archive_cmds_need_lc=no
16127 hardcode_shlibpath_var=no
16128 runpath_var='LD_RUN_PATH'
16130 if test "$GCC" = yes; then
16131 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16134 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16139 sysv5* | sco3.2v5* | sco5v6*)
16140 # Note: We can NOT use -z defs as we might desire, because we do not
16141 # link with -lc, and that would cause any symbols used from libc to
16142 # always be unresolved, which means just about no library would
16143 # ever link correctly. If we're not using GNU ld we use -z text
16144 # though, which does catch some bad symbols but isn't as heavy-handed
16146 no_undefined_flag='${wl}-z,text'
16147 allow_undefined_flag='${wl}-z,nodefs'
16148 archive_cmds_need_lc=no
16149 hardcode_shlibpath_var=no
16150 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16151 hardcode_libdir_separator=':'
16152 link_all_deplibs=yes
16153 export_dynamic_flag_spec='${wl}-Bexport'
16154 runpath_var='LD_RUN_PATH'
16156 if test "$GCC" = yes; then
16157 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16160 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16161 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167 hardcode_libdir_flag_spec='-L$libdir'
16168 hardcode_shlibpath_var=no
16177 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16178 echo "${ECHO_T}$ld_shlibs" >&6; }
16179 test "$ld_shlibs" = no && can_build_shared=no
16182 # Do we need to explicitly link libc?
16184 case "x$archive_cmds_need_lc" in
16186 # Assume -lc should be added
16187 archive_cmds_need_lc=yes
16189 if test "$enable_shared" = yes && test "$GCC" = yes; then
16190 case $archive_cmds in
16192 # FIXME: we may have to deal with multi-command sequences.
16195 # Test whether the compiler implicitly links with -lc since on some
16196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16197 # to ld, don't add -lc before -lgcc.
16198 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16199 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } 2>conftest.err; then
16210 libobjs=conftest.$ac_objext
16212 wl=$lt_prog_compiler_wl
16213 pic_flag=$lt_prog_compiler_pic
16219 lt_save_allow_undefined_flag=$allow_undefined_flag
16220 allow_undefined_flag=
16221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16222 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }
16227 archive_cmds_need_lc=no
16229 archive_cmds_need_lc=yes
16231 allow_undefined_flag=$lt_save_allow_undefined_flag
16233 cat conftest.err 1>&5
16236 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16237 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16244 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16246 library_names_spec=
16247 libname_spec='lib$name'
16251 postuninstall_cmds=
16255 shlibpath_overrides_runpath=unknown
16257 dynamic_linker="$host_os ld.so"
16258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16259 if test "$GCC" = yes; then
16260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16262 # if the path contains ";" then we assume it to be the separator
16263 # otherwise default to the standard path separator (i.e. ":") - it is
16264 # assumed that no part of a normal pathname contains ";" but that should
16265 # okay in the real world where ";" in dirpaths is itself problematic.
16266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16273 need_lib_prefix=unknown
16274 hardcode_into_libs=no
16276 # when you set need_version to no, make sure it does not cause -set_version
16277 # flags to be left without arguments
16278 need_version=unknown
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16284 shlibpath_var=LIBPATH
16286 # AIX 3 has no versioning support, so we append a major version to the name.
16287 soname_spec='${libname}${release}${shared_ext}$major'
16294 hardcode_into_libs=yes
16295 if test "$host_cpu" = ia64; then
16296 # AIX 5 supports IA64
16297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16298 shlibpath_var=LD_LIBRARY_PATH
16300 # With GCC up to 2.95.x, collect2 would create an import file
16301 # for dependence libraries. The import file would start with
16302 # the line `#! .'. This would cause the generated library to
16303 # depend on `.', always an invalid library. This was fixed in
16304 # development snapshots of GCC prior to 3.0.
16306 aix4 | aix4.[01] | aix4.[01].*)
16307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16312 can_build_shared=no
16316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16317 # soname into executable. Probably we can add versioning support to
16318 # collect2, so additional links can be useful in future.
16319 if test "$aix_use_runtimelinking" = yes; then
16320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16321 # instead of lib<name>.a to let people know that these are not
16322 # typical AIX shared libraries.
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 # We preserve .a as extension for shared libraries through AIX4.2
16326 # and later when we are not doing run time linking.
16327 library_names_spec='${libname}${release}.a $libname.a'
16328 soname_spec='${libname}${release}${shared_ext}$major'
16330 shlibpath_var=LIBPATH
16335 library_names_spec='$libname.ixlibrary $libname.a'
16336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16337 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'
16341 library_names_spec='${libname}${shared_ext}'
16342 dynamic_linker="$host_os ld.so"
16343 shlibpath_var=LIBRARY_PATH
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16355 # the default ld.so.conf also contains /usr/contrib/lib and
16356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16357 # libtool to hard-code these into programs
16360 cygwin* | mingw* | pw32*)
16361 version_type=windows
16366 case $GCC,$host_os in
16367 yes,cygwin* | yes,mingw* | yes,pw32*)
16368 library_names_spec='$libname.dll.a'
16369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16370 postinstall_cmds='base_file=`basename \${file}`~
16371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16372 dldir=$destdir/`dirname \$dlpath`~
16373 test -d \$dldir || mkdir -p \$dldir~
16374 $install_prog $dir/$dlname \$dldir/$dlname~
16375 chmod a+x \$dldir/$dlname'
16376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16377 dlpath=$dir/\$dldll~
16379 shlibpath_overrides_runpath=yes
16383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16384 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16388 # MinGW DLLs use traditional 'lib' prefix
16389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16392 # It is most probably a Windows format PATH printed by
16393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16394 # path with ; separators, and with drive letters. We can handle the
16395 # drive letters (cygwin fileutils understands them), so leave them,
16396 # especially as we might pass files found there to a mingw objdump,
16397 # which wouldn't understand a cygwinified path. Ahh.
16398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16404 # pw32 DLLs use 'pw' prefix rather than 'lib'
16405 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16414 dynamic_linker='Win32 ld.exe'
16415 # FIXME: first we should search . and the directory the executable is in
16419 darwin* | rhapsody*)
16420 dynamic_linker="$host_os dyld"
16421 version_type=darwin
16424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16425 soname_spec='${libname}${release}${major}$shared_ext'
16426 shlibpath_overrides_runpath=yes
16427 shlibpath_var=DYLD_LIBRARY_PATH
16428 shrext_cmds='.dylib'
16429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16430 if test "$GCC" = yes; then
16431 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"`
16433 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 shlibpath_var=LD_LIBRARY_PATH
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 shlibpath_overrides_runpath=no
16459 hardcode_into_libs=yes
16460 dynamic_linker='GNU ld.so'
16463 freebsd* | dragonfly*)
16464 # DragonFly does not have aout. When/if they implement a new
16465 # versioning mechanism, adjust this.
16466 if test -x /usr/bin/objformat; then
16467 objformat=`/usr/bin/objformat`
16470 freebsd[123]*) objformat=aout ;;
16471 *) objformat=elf ;;
16474 version_type=freebsd-$objformat
16475 case $version_type in
16477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16486 shlibpath_var=LD_LIBRARY_PATH
16489 shlibpath_overrides_runpath=yes
16491 freebsd3.[01]* | freebsdelf3.[01]*)
16492 shlibpath_overrides_runpath=yes
16493 hardcode_into_libs=yes
16495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16497 shlibpath_overrides_runpath=no
16498 hardcode_into_libs=yes
16500 freebsd*) # from 4.6 on
16501 shlibpath_overrides_runpath=yes
16502 hardcode_into_libs=yes
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 hardcode_into_libs=yes
16517 hpux9* | hpux10* | hpux11*)
16518 # Give a soname corresponding to the major version so that dld.sl refuses to
16519 # link against other versions.
16526 hardcode_into_libs=yes
16527 dynamic_linker="$host_os dld.so"
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 if test "X$HPUX_IA64_MODE" = X32; then
16533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16541 hardcode_into_libs=yes
16542 dynamic_linker="$host_os dld.sl"
16543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16552 dynamic_linker="$host_os dld.sl"
16553 shlibpath_var=SHLIB_PATH
16554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16560 postinstall_cmds='chmod 555 $lib'
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 shlibpath_overrides_runpath=no
16572 hardcode_into_libs=yes
16575 irix5* | irix6* | nonstopux*)
16577 nonstopux*) version_type=nonstopux ;;
16579 if test "$lt_cv_prog_gnu_ld" = yes; then
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16590 irix5* | nonstopux*)
16591 libsuff= shlibsuff=
16594 case $LD in # libtool.m4 will add one of these switches to LD
16595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16596 libsuff= shlibsuff= libmagic=32-bit;;
16597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16598 libsuff=32 shlibsuff=N32 libmagic=N32;;
16599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16601 *) libsuff= shlibsuff= libmagic=never-match;;
16605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16606 shlibpath_overrides_runpath=no
16607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16609 hardcode_into_libs=yes
16612 # No shared lib support for Linux oldld, aout, or coff.
16613 linux*oldld* | linux*aout* | linux*coff*)
16617 # This must be Linux ELF.
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=no
16627 # This implies no fast_install, which is unacceptable.
16628 # Some rework will be needed to allow for fast_install
16629 # before this can be enabled.
16630 hardcode_into_libs=yes
16632 # Append ld.so.conf contents to the search path
16633 if test -f /etc/ld.so.conf; then
16634 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' ' '`
16635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16638 # We used to test for /lib/ld.so.1 and disable shared libraries on
16639 # powerpc, because MkLinux only supported shared libraries with the
16640 # GNU dynamic linker. Since this was broken with cross compilers,
16641 # most powerpc-linux boxes support dynamic linking these days and
16642 # people can always --disable-shared, the test was removed, and we
16643 # assume the GNU/Linux dynamic linker is in use.
16644 dynamic_linker='GNU/Linux ld.so'
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16652 soname_spec='${libname}${release}${shared_ext}$major'
16653 shlibpath_var=LD_LIBRARY_PATH
16654 shlibpath_overrides_runpath=no
16655 hardcode_into_libs=yes
16656 dynamic_linker='GNU ld.so'
16663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16666 dynamic_linker='NetBSD (a.out) ld.so'
16668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16669 soname_spec='${libname}${release}${shared_ext}$major'
16670 dynamic_linker='NetBSD ld.elf_so'
16672 shlibpath_var=LD_LIBRARY_PATH
16673 shlibpath_overrides_runpath=yes
16674 hardcode_into_libs=yes
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=yes
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689 soname_spec='${libname}${release}${shared_ext}$major'
16690 shlibpath_var=LD_LIBRARY_PATH
16691 shlibpath_overrides_runpath=yes
16696 sys_lib_dlsearch_path_spec="/usr/lib"
16698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16701 *) need_version=no ;;
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16708 openbsd2.[89] | openbsd2.[89].*)
16709 shlibpath_overrides_runpath=no
16712 shlibpath_overrides_runpath=yes
16716 shlibpath_overrides_runpath=yes
16721 libname_spec='$name'
16724 library_names_spec='$libname${shared_ext} $libname.a'
16725 dynamic_linker='OS/2 ld.exe'
16726 shlibpath_var=LIBPATH
16729 osf3* | osf4* | osf5*)
16733 soname_spec='${libname}${release}${shared_ext}$major'
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16735 shlibpath_var=LD_LIBRARY_PATH
16736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745 soname_spec='${libname}${release}${shared_ext}$major'
16746 shlibpath_var=LD_LIBRARY_PATH
16747 shlibpath_overrides_runpath=yes
16748 hardcode_into_libs=yes
16749 # ldd complains unless libraries are executable
16750 postinstall_cmds='chmod +x $lib'
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath=yes
16759 if test "$with_gnu_ld" = yes; then
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 soname_spec='${libname}${release}${shared_ext}$major'
16769 shlibpath_var=LD_LIBRARY_PATH
16770 case $host_vendor in
16772 shlibpath_overrides_runpath=no
16774 export_dynamic_flag_spec='${wl}-Blargedynsym'
16775 runpath_var=LD_RUN_PATH
16783 shlibpath_overrides_runpath=no
16784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16790 if test -d /usr/nec ;then
16792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16793 soname_spec='$libname${shared_ext}.$major'
16794 shlibpath_var=LD_LIBRARY_PATH
16798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16799 version_type=freebsd-elf
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 hardcode_into_libs=yes
16806 if test "$with_gnu_ld" = yes; then
16807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16808 shlibpath_overrides_runpath=no
16810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16811 shlibpath_overrides_runpath=yes
16814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16818 sys_lib_dlsearch_path_spec='/usr/lib'
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 shlibpath_var=LD_LIBRARY_PATH
16832 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16833 echo "${ECHO_T}$dynamic_linker" >&6; }
16834 test "$dynamic_linker" = no && can_build_shared=no
16836 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16837 if test "$GCC" = yes; then
16838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16841 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16842 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16844 if test -n "$hardcode_libdir_flag_spec" || \
16845 test -n "$runpath_var" || \
16846 test "X$hardcode_automatic" = "Xyes" ; then
16848 # We can hardcode non-existant directories.
16849 if test "$hardcode_direct" != no &&
16850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16851 # have to relink, otherwise we might link with an installed library
16852 # when we should be linking with a yet-to-be-installed one
16853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16854 test "$hardcode_minus_L" != no; then
16855 # Linking always hardcodes the temporary library directory.
16856 hardcode_action=relink
16858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16859 hardcode_action=immediate
16862 # We cannot hardcode anything, or else we can only hardcode existing
16864 hardcode_action=unsupported
16866 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16867 echo "${ECHO_T}$hardcode_action" >&6; }
16869 if test "$hardcode_action" = relink; then
16870 # Fast installation is not supported
16871 enable_fast_install=no
16872 elif test "$shlibpath_overrides_runpath" = yes ||
16873 test "$enable_shared" = no; then
16874 # Fast installation is not necessary
16875 enable_fast_install=needless
16880 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16881 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16882 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16885 { echo "$as_me:$LINENO: result: yes" >&5
16886 echo "${ECHO_T}yes" >&6; }
16888 # FIXME - insert some real tests, host_os isn't really good enough
16891 if test -n "$STRIP" ; then
16892 striplib="$STRIP -x"
16893 { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16896 { echo "$as_me:$LINENO: result: no" >&5
16897 echo "${ECHO_T}no" >&6; }
16901 { echo "$as_me:$LINENO: result: no" >&5
16902 echo "${ECHO_T}no" >&6; }
16907 if test "x$enable_dlopen" != xyes; then
16908 enable_dlopen=unknown
16909 enable_dlopen_self=unknown
16910 enable_dlopen_self_static=unknown
16917 lt_cv_dlopen="load_add_on"
16919 lt_cv_dlopen_self=yes
16923 lt_cv_dlopen="LoadLibrary"
16928 lt_cv_dlopen="dlopen"
16933 # if libdl is installed we need to link against it
16934 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16935 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 ac_check_lib_save_LIBS=$LIBS
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16948 /* Override any GCC internal prototype to avoid an error.
16949 Use char because int might match the return type of a GCC
16950 builtin and then its argument prototype would still apply. */
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (ac_try="$ac_link"
16965 case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_link") 2>conftest.er1
16972 grep -v '^ *+' conftest.er1 >conftest.err
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
16977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16978 { (case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_try") 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; } &&
16987 { ac_try='test -s conftest$ac_exeext'
16988 { (case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_try") 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 ac_cv_lib_dl_dlopen=yes
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 ac_cv_lib_dl_dlopen=no
17005 rm -f core conftest.err conftest.$ac_objext \
17006 conftest$ac_exeext conftest.$ac_ext
17007 LIBS=$ac_check_lib_save_LIBS
17009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17011 if test $ac_cv_lib_dl_dlopen = yes; then
17012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17015 lt_cv_dlopen="dyld"
17017 lt_cv_dlopen_self=yes
17024 { echo "$as_me:$LINENO: checking for shl_load" >&5
17025 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17026 if test "${ac_cv_func_shl_load+set}" = set; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17029 cat >conftest.$ac_ext <<_ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17037 #define shl_load innocuous_shl_load
17039 /* System header to define __stub macros and hopefully few prototypes,
17040 which can conflict with char shl_load (); below.
17041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17042 <limits.h> exists even on freestanding compilers. */
17045 # include <limits.h>
17047 # include <assert.h>
17052 /* Override any GCC internal prototype to avoid an error.
17053 Use char because int might match the return type of a GCC
17054 builtin and then its argument prototype would still apply. */
17059 /* The GNU C library defines this for functions which it implements
17060 to always fail with ENOSYS. Some functions are actually named
17061 something starting with __ and the normal name is an alias. */
17062 #if defined __stub_shl_load || defined __stub___shl_load
17069 return shl_load ();
17074 rm -f conftest.$ac_objext conftest$ac_exeext
17075 if { (ac_try="$ac_link"
17076 case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_link") 2>conftest.er1
17083 grep -v '^ *+' conftest.er1 >conftest.err
17085 cat conftest.err >&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } &&
17088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17089 { (case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest$ac_exeext'
17099 { (case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_try") 2>&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; }; then
17108 ac_cv_func_shl_load=yes
17110 echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 ac_cv_func_shl_load=no
17116 rm -f core conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
17119 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17120 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17121 if test $ac_cv_func_shl_load = yes; then
17122 lt_cv_dlopen="shl_load"
17124 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17125 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17126 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 ac_check_lib_save_LIBS=$LIBS
17131 cat >conftest.$ac_ext <<_ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17138 /* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17148 return shl_load ();
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (ac_try="$ac_link"
17155 case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_link") 2>conftest.er1
17162 grep -v '^ *+' conftest.er1 >conftest.err
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168 { (case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_try") 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; } &&
17177 { ac_try='test -s conftest$ac_exeext'
17178 { (case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_try") 2>&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
17187 ac_cv_lib_dld_shl_load=yes
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 ac_cv_lib_dld_shl_load=no
17195 rm -f core conftest.err conftest.$ac_objext \
17196 conftest$ac_exeext conftest.$ac_ext
17197 LIBS=$ac_check_lib_save_LIBS
17199 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17200 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17201 if test $ac_cv_lib_dld_shl_load = yes; then
17202 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17204 { echo "$as_me:$LINENO: checking for dlopen" >&5
17205 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17206 if test "${ac_cv_func_dlopen+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 cat >conftest.$ac_ext <<_ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17215 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17217 #define dlopen innocuous_dlopen
17219 /* System header to define __stub macros and hopefully few prototypes,
17220 which can conflict with char dlopen (); below.
17221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17222 <limits.h> exists even on freestanding compilers. */
17225 # include <limits.h>
17227 # include <assert.h>
17232 /* Override any GCC internal prototype to avoid an error.
17233 Use char because int might match the return type of a GCC
17234 builtin and then its argument prototype would still apply. */
17239 /* The GNU C library defines this for functions which it implements
17240 to always fail with ENOSYS. Some functions are actually named
17241 something starting with __ and the normal name is an alias. */
17242 #if defined __stub_dlopen || defined __stub___dlopen
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_link") 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269 { (case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_try") 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest$ac_exeext'
17279 { (case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_try") 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 ac_cv_func_dlopen=yes
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ac_cv_func_dlopen=no
17296 rm -f core conftest.err conftest.$ac_objext \
17297 conftest$ac_exeext conftest.$ac_ext
17299 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17300 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17301 if test $ac_cv_func_dlopen = yes; then
17302 lt_cv_dlopen="dlopen"
17304 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17305 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17309 ac_check_lib_save_LIBS=$LIBS
17311 cat >conftest.$ac_ext <<_ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17318 /* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply. */
17333 rm -f conftest.$ac_objext conftest$ac_exeext
17334 if { (ac_try="$ac_link"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_link") 2>conftest.er1
17342 grep -v '^ *+' conftest.er1 >conftest.err
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17348 { (case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_try") 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; } &&
17357 { ac_try='test -s conftest$ac_exeext'
17358 { (case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_try") 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_cv_lib_dl_dlopen=yes
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 ac_cv_lib_dl_dlopen=no
17375 rm -f core conftest.err conftest.$ac_objext \
17376 conftest$ac_exeext conftest.$ac_ext
17377 LIBS=$ac_check_lib_save_LIBS
17379 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17380 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17381 if test $ac_cv_lib_dl_dlopen = yes; then
17382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17384 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17385 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17386 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 ac_check_lib_save_LIBS=$LIBS
17390 LIBS="-lsvld $LIBS"
17391 cat >conftest.$ac_ext <<_ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17398 /* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (ac_try="$ac_link"
17415 case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_link") 2>conftest.er1
17422 grep -v '^ *+' conftest.er1 >conftest.err
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
17427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest$ac_exeext'
17438 { (case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_try") 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
17447 ac_cv_lib_svld_dlopen=yes
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17452 ac_cv_lib_svld_dlopen=no
17455 rm -f core conftest.err conftest.$ac_objext \
17456 conftest$ac_exeext conftest.$ac_ext
17457 LIBS=$ac_check_lib_save_LIBS
17459 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17460 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17461 if test $ac_cv_lib_svld_dlopen = yes; then
17462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17464 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17465 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17466 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17469 ac_check_lib_save_LIBS=$LIBS
17471 cat >conftest.$ac_ext <<_ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17478 /* Override any GCC internal prototype to avoid an error.
17479 Use char because int might match the return type of a GCC
17480 builtin and then its argument prototype would still apply. */
17488 return dld_link ();
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (ac_try="$ac_link"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; } &&
17517 { ac_try='test -s conftest$ac_exeext'
17518 { (case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_try") 2>&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; }; then
17527 ac_cv_lib_dld_dld_link=yes
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17532 ac_cv_lib_dld_dld_link=no
17535 rm -f core conftest.err conftest.$ac_objext \
17536 conftest$ac_exeext conftest.$ac_ext
17537 LIBS=$ac_check_lib_save_LIBS
17539 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17540 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17541 if test $ac_cv_lib_dld_dld_link = yes; then
17542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17563 if test "x$lt_cv_dlopen" != xno; then
17569 case $lt_cv_dlopen in
17571 save_CPPFLAGS="$CPPFLAGS"
17572 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17574 save_LDFLAGS="$LDFLAGS"
17575 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17578 LIBS="$lt_cv_dlopen_libs $LIBS"
17580 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17581 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17582 if test "${lt_cv_dlopen_self+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 if test "$cross_compiling" = yes; then :
17586 lt_cv_dlopen_self=cross
17588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17589 lt_status=$lt_dlunknown
17590 cat > conftest.$ac_ext <<EOF
17591 #line 17591 "configure"
17592 #include "confdefs.h"
17601 # define LT_DLGLOBAL RTLD_GLOBAL
17604 # define LT_DLGLOBAL DL_GLOBAL
17606 # define LT_DLGLOBAL 0
17610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17611 find out it does not work in some platform. */
17612 #ifndef LT_DLLAZY_OR_NOW
17614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17617 # define LT_DLLAZY_OR_NOW DL_LAZY
17620 # define LT_DLLAZY_OR_NOW RTLD_NOW
17623 # define LT_DLLAZY_OR_NOW DL_NOW
17625 # define LT_DLLAZY_OR_NOW 0
17633 extern "C" void exit (int);
17636 void fnord() { int i=42;}
17639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17640 int status = $lt_dlunknown;
17644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17646 /* dlclose (self); */
17654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655 (eval $ac_link) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17659 (./conftest; exit; ) >&5 2>/dev/null
17661 case x$lt_status in
17662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17664 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17667 # compilation failed
17668 lt_cv_dlopen_self=no
17675 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17676 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17678 if test "x$lt_cv_dlopen_self" = xyes; then
17679 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17680 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17681 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17682 if test "${lt_cv_dlopen_self_static+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 if test "$cross_compiling" = yes; then :
17686 lt_cv_dlopen_self_static=cross
17688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17689 lt_status=$lt_dlunknown
17690 cat > conftest.$ac_ext <<EOF
17691 #line 17691 "configure"
17692 #include "confdefs.h"
17701 # define LT_DLGLOBAL RTLD_GLOBAL
17704 # define LT_DLGLOBAL DL_GLOBAL
17706 # define LT_DLGLOBAL 0
17710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17711 find out it does not work in some platform. */
17712 #ifndef LT_DLLAZY_OR_NOW
17714 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17717 # define LT_DLLAZY_OR_NOW DL_LAZY
17720 # define LT_DLLAZY_OR_NOW RTLD_NOW
17723 # define LT_DLLAZY_OR_NOW DL_NOW
17725 # define LT_DLLAZY_OR_NOW 0
17733 extern "C" void exit (int);
17736 void fnord() { int i=42;}
17739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17740 int status = $lt_dlunknown;
17744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17745 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17746 /* dlclose (self); */
17754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755 (eval $ac_link) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17759 (./conftest; exit; ) >&5 2>/dev/null
17761 case x$lt_status in
17762 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17763 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17764 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17767 # compilation failed
17768 lt_cv_dlopen_self_static=no
17775 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17776 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17779 CPPFLAGS="$save_CPPFLAGS"
17780 LDFLAGS="$save_LDFLAGS"
17785 case $lt_cv_dlopen_self in
17786 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17787 *) enable_dlopen_self=unknown ;;
17790 case $lt_cv_dlopen_self_static in
17791 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17792 *) enable_dlopen_self_static=unknown ;;
17797 # Report which library types will actually be built
17798 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17799 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17800 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17801 echo "${ECHO_T}$can_build_shared" >&6; }
17803 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17804 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17805 test "$can_build_shared" = "no" && enable_shared=no
17807 # On AIX, shared libraries and static libraries use the same namespace, and
17808 # are all built from PIC.
17811 test "$enable_shared" = yes && enable_static=no
17812 if test -n "$RANLIB"; then
17813 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17814 postinstall_cmds='$RANLIB $lib'
17819 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17820 test "$enable_shared" = yes && enable_static=no
17824 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17825 echo "${ECHO_T}$enable_shared" >&6; }
17827 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17828 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17829 # Make sure either enable_shared or enable_static is yes.
17830 test "$enable_shared" = yes || enable_static=yes
17831 { echo "$as_me:$LINENO: result: $enable_static" >&5
17832 echo "${ECHO_T}$enable_static" >&6; }
17834 # The else clause should only fire when bootstrapping the
17835 # libtool distribution, otherwise you forgot to ship ltmain.sh
17836 # with your package, and you will get complaints that there are
17837 # no rules to generate ltmain.sh.
17838 if test -f "$ltmain"; then
17839 # See if we are running on zsh, and set the options which allow our commands through
17840 # without removal of \ escapes.
17841 if test -n "${ZSH_VERSION+set}" ; then
17842 setopt NO_GLOB_SUBST
17844 # Now quote all the things that may contain metacharacters while being
17845 # careful not to overquote the AC_SUBSTed values. We take copies of the
17846 # variables and quote the copies for generation of the libtool script.
17847 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17849 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17850 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17851 deplibs_check_method reload_flag reload_cmds need_locks \
17852 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17853 lt_cv_sys_global_symbol_to_c_name_address \
17854 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17855 old_postinstall_cmds old_postuninstall_cmds \
17859 lt_prog_compiler_wl \
17860 lt_prog_compiler_pic \
17861 lt_prog_compiler_static \
17862 lt_prog_compiler_no_builtin_flag \
17863 export_dynamic_flag_spec \
17864 thread_safe_flag_spec \
17865 whole_archive_flag_spec \
17866 enable_shared_with_static_runtimes \
17868 old_archive_from_new_cmds \
17873 compiler_lib_search_path \
17875 archive_expsym_cmds \
17877 postuninstall_cmds \
17878 old_archive_from_expsyms_cmds \
17879 allow_undefined_flag \
17880 no_undefined_flag \
17881 export_symbols_cmds \
17882 hardcode_libdir_flag_spec \
17883 hardcode_libdir_flag_spec_ld \
17884 hardcode_libdir_separator \
17885 hardcode_automatic \
17887 module_expsym_cmds \
17888 lt_cv_prog_compiler_c_o \
17890 include_expsyms; do
17893 old_archive_cmds | \
17894 old_archive_from_new_cmds | \
17896 archive_expsym_cmds | \
17898 module_expsym_cmds | \
17899 old_archive_from_expsyms_cmds | \
17900 export_symbols_cmds | \
17901 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17902 postinstall_cmds | postuninstall_cmds | \
17903 old_postinstall_cmds | old_postuninstall_cmds | \
17904 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17905 # Double-quote double-evaled strings.
17906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17915 *'\$0 --fallback-echo"')
17916 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17920 cfgfile="${ofile}T"
17921 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17923 { echo "$as_me:$LINENO: creating $ofile" >&5
17924 echo "$as_me: creating $ofile" >&6;}
17926 cat <<__EOF__ >> "$cfgfile"
17929 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17930 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17933 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17934 # Free Software Foundation, Inc.
17936 # This file is part of GNU Libtool:
17937 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17939 # This program is free software; you can redistribute it and/or modify
17940 # it under the terms of the GNU General Public License as published by
17941 # the Free Software Foundation; either version 2 of the License, or
17942 # (at your option) any later version.
17944 # This program is distributed in the hope that it will be useful, but
17945 # WITHOUT ANY WARRANTY; without even the implied warranty of
17946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17947 # General Public License for more details.
17949 # You should have received a copy of the GNU General Public License
17950 # along with this program; if not, write to the Free Software
17951 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17953 # As a special exception to the GNU General Public License, if you
17954 # distribute this file as part of a program that contains a
17955 # configuration script generated by Autoconf, you may include it under
17956 # the same distribution terms that you use for the rest of that program.
17958 # A sed program that does not truncate output.
17961 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17962 Xsed="$SED -e 1s/^X//"
17964 # The HP-UX ksh and POSIX shell print the target directory to stdout
17965 # if CDPATH is set.
17966 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17968 # The names of the tagged configurations supported by this script.
17971 # ### BEGIN LIBTOOL CONFIG
17973 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17975 # Shell to use when invoking shell scripts.
17978 # Whether or not to build shared libraries.
17979 build_libtool_libs=$enable_shared
17981 # Whether or not to build static libraries.
17982 build_old_libs=$enable_static
17984 # Whether or not to add -lc for building shared libraries.
17985 build_libtool_need_lc=$archive_cmds_need_lc
17987 # Whether or not to disallow shared libs when runtime libs are static
17988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17990 # Whether or not to optimize for fast installation.
17991 fast_install=$enable_fast_install
17994 host_alias=$host_alias
17998 # The build system.
17999 build_alias=$build_alias
18003 # An echo program that does not interpret backslashes.
18008 AR_FLAGS=$lt_AR_FLAGS
18013 # LTCC compiler flags.
18014 LTCFLAGS=$lt_LTCFLAGS
18016 # A language-specific compiler.
18019 # Is the compiler the GNU C compiler?
18025 # The linker used to build libraries.
18028 # Whether we need hard or soft links.
18031 # A BSD-compatible nm program.
18034 # A symbol stripping program
18037 # Used to examine libraries when file_magic_cmd begins "file"
18038 MAGIC_CMD=$MAGIC_CMD
18040 # Used on cygwin: DLL creation program.
18043 # Used on cygwin: object dumper.
18046 # Used on cygwin: assembler.
18049 # The name of the directory that contains temporary libtool files.
18052 # How to create reloadable object files.
18053 reload_flag=$lt_reload_flag
18054 reload_cmds=$lt_reload_cmds
18056 # How to pass a linker flag through the compiler.
18057 wl=$lt_lt_prog_compiler_wl
18059 # Object file suffix (normally "o").
18060 objext="$ac_objext"
18062 # Old archive suffix (normally "a").
18065 # Shared library suffix (normally ".so").
18066 shrext_cmds='$shrext_cmds'
18068 # Executable file suffix (normally "").
18071 # Additional compiler flags for building library objects.
18072 pic_flag=$lt_lt_prog_compiler_pic
18075 # What is the maximum length of a command?
18076 max_cmd_len=$lt_cv_sys_max_cmd_len
18078 # Does compiler simultaneously support -c and -o options?
18079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18081 # Must we lock files when doing compilation?
18082 need_locks=$lt_need_locks
18084 # Do we need the lib prefix for modules?
18085 need_lib_prefix=$need_lib_prefix
18087 # Do we need a version for libraries?
18088 need_version=$need_version
18090 # Whether dlopen is supported.
18091 dlopen_support=$enable_dlopen
18093 # Whether dlopen of programs is supported.
18094 dlopen_self=$enable_dlopen_self
18096 # Whether dlopen of statically linked programs is supported.
18097 dlopen_self_static=$enable_dlopen_self_static
18099 # Compiler flag to prevent dynamic linking.
18100 link_static_flag=$lt_lt_prog_compiler_static
18102 # Compiler flag to turn off builtin functions.
18103 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18105 # Compiler flag to allow reflexive dlopens.
18106 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18108 # Compiler flag to generate shared objects directly from archives.
18109 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18111 # Compiler flag to generate thread-safe objects.
18112 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18114 # Library versioning type.
18115 version_type=$version_type
18117 # Format of library name prefix.
18118 libname_spec=$lt_libname_spec
18120 # List of archive names. First name is the real one, the rest are links.
18121 # The last name is the one that the linker finds with -lNAME.
18122 library_names_spec=$lt_library_names_spec
18124 # The coded name of the library, if different from the real name.
18125 soname_spec=$lt_soname_spec
18127 # Commands used to build and install an old-style archive.
18129 old_archive_cmds=$lt_old_archive_cmds
18130 old_postinstall_cmds=$lt_old_postinstall_cmds
18131 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18133 # Create an old-style archive from a shared archive.
18134 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18136 # Create a temporary old-style archive to link instead of a shared archive.
18137 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18139 # Commands used to build and install a shared archive.
18140 archive_cmds=$lt_archive_cmds
18141 archive_expsym_cmds=$lt_archive_expsym_cmds
18142 postinstall_cmds=$lt_postinstall_cmds
18143 postuninstall_cmds=$lt_postuninstall_cmds
18145 # Commands used to build a loadable module (assumed same as above if empty)
18146 module_cmds=$lt_module_cmds
18147 module_expsym_cmds=$lt_module_expsym_cmds
18149 # Commands to strip libraries.
18150 old_striplib=$lt_old_striplib
18151 striplib=$lt_striplib
18153 # Dependencies to place before the objects being linked to create a
18155 predep_objects=$lt_predep_objects
18157 # Dependencies to place after the objects being linked to create a
18159 postdep_objects=$lt_postdep_objects
18161 # Dependencies to place before the objects being linked to create a
18163 predeps=$lt_predeps
18165 # Dependencies to place after the objects being linked to create a
18167 postdeps=$lt_postdeps
18169 # The library search path used internally by the compiler when linking
18170 # a shared library.
18171 compiler_lib_search_path=$lt_compiler_lib_search_path
18173 # Method to check whether dependent libraries are shared objects.
18174 deplibs_check_method=$lt_deplibs_check_method
18176 # Command to use when deplibs_check_method == file_magic.
18177 file_magic_cmd=$lt_file_magic_cmd
18179 # Flag that allows shared libraries with undefined symbols to be built.
18180 allow_undefined_flag=$lt_allow_undefined_flag
18182 # Flag that forces no undefined symbols.
18183 no_undefined_flag=$lt_no_undefined_flag
18185 # Commands used to finish a libtool library installation in a directory.
18186 finish_cmds=$lt_finish_cmds
18188 # Same as above, but a single script fragment to be evaled but not shown.
18189 finish_eval=$lt_finish_eval
18191 # Take the output of nm and produce a listing of raw symbols and C names.
18192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18194 # Transform the output of nm in a proper C declaration
18195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18197 # Transform the output of nm in a C name address pair
18198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18200 # This is the shared library runtime path variable.
18201 runpath_var=$runpath_var
18203 # This is the shared library path variable.
18204 shlibpath_var=$shlibpath_var
18206 # Is shlibpath searched before the hard-coded library search path?
18207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18209 # How to hardcode a shared library path into an executable.
18210 hardcode_action=$hardcode_action
18212 # Whether we should hardcode library paths into libraries.
18213 hardcode_into_libs=$hardcode_into_libs
18215 # Flag to hardcode \$libdir into a binary during linking.
18216 # This must work even if \$libdir does not exist.
18217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18219 # If ld is used when linking, flag to hardcode \$libdir into
18220 # a binary during linking. This must work even if \$libdir does
18222 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18224 # Whether we need a single -rpath flag with a separated argument.
18225 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18227 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18228 # resulting binary.
18229 hardcode_direct=$hardcode_direct
18231 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18232 # resulting binary.
18233 hardcode_minus_L=$hardcode_minus_L
18235 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18236 # the resulting binary.
18237 hardcode_shlibpath_var=$hardcode_shlibpath_var
18239 # Set to yes if building a shared library automatically hardcodes DIR into the library
18240 # and all subsequent libraries and executables linked against it.
18241 hardcode_automatic=$hardcode_automatic
18243 # Variables whose values should be saved in libtool wrapper scripts and
18244 # restored at relink time.
18245 variables_saved_for_relink="$variables_saved_for_relink"
18247 # Whether libtool must link a program against all its dependency libraries.
18248 link_all_deplibs=$link_all_deplibs
18250 # Compile-time system search path for libraries
18251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18253 # Run-time system search path for libraries
18254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18256 # Fix the shell variable \$srcfile for the compiler.
18257 fix_srcfile_path="$fix_srcfile_path"
18259 # Set to yes if exported symbols are required.
18260 always_export_symbols=$always_export_symbols
18262 # The commands to list exported symbols.
18263 export_symbols_cmds=$lt_export_symbols_cmds
18265 # The commands to extract the exported symbol list from a shared archive.
18266 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18268 # Symbols that should not be listed in the preloaded symbols.
18269 exclude_expsyms=$lt_exclude_expsyms
18271 # Symbols that must always be exported.
18272 include_expsyms=$lt_include_expsyms
18274 # ### END LIBTOOL CONFIG
18281 cat <<\EOF >> "$cfgfile"
18283 # AIX sometimes has problems with the GCC collect2 program. For some
18284 # reason, if we set the COLLECT_NAMES environment variable, the problems
18285 # vanish in a puff of smoke.
18286 if test "X${COLLECT_NAMES+set}" != Xset; then
18288 export COLLECT_NAMES
18294 # We use sed instead of cat because bash on DJGPP gets confused if
18295 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18296 # text mode, it properly converts lines to CR/LF. This bash problem
18297 # is reportedly fixed, but why not run on old versions too?
18298 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18300 mv -f "$cfgfile" "$ofile" || \
18301 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18305 # If there is no Makefile yet, we rely on a make rule to execute
18306 # `config.status --recheck' to rerun these tests and create the
18307 # libtool script then.
18308 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18309 if test -f "$ltmain_in"; then
18310 test -f Makefile && make "$ltmain"
18316 ac_cpp='$CPP $CPPFLAGS'
18317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18324 # Check whether --with-tags was given.
18325 if test "${with_tags+set}" = set; then
18326 withval=$with_tags; tagnames="$withval"
18330 if test -f "$ltmain" && test -n "$tagnames"; then
18331 if test ! -f "${ofile}"; then
18332 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18333 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18336 if test -z "$LTCC"; then
18337 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18338 if test -z "$LTCC"; then
18339 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18340 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18343 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18346 if test -z "$LTCFLAGS"; then
18347 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18350 # Extract list of available tagged configurations in $ofile.
18351 # Note that this assumes the entire list is on one line.
18352 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18355 for tagname in $tagnames; do
18357 # Check whether tagname contains only valid characters
18358 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18360 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18361 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18362 { (exit 1); exit 1; }; }
18366 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18368 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18369 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18370 { (exit 1); exit 1; }; }
18373 # Update the list of available tags.
18374 if test -n "$tagname"; then
18375 echo appending configuration tag \"$tagname\" to $ofile
18379 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18380 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18381 (test "X$CXX" != "Xg++"))) ; then
18383 ac_cpp='$CXXCPP $CPPFLAGS'
18384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18391 archive_cmds_need_lc_CXX=no
18392 allow_undefined_flag_CXX=
18393 always_export_symbols_CXX=no
18394 archive_expsym_cmds_CXX=
18395 export_dynamic_flag_spec_CXX=
18396 hardcode_direct_CXX=no
18397 hardcode_libdir_flag_spec_CXX=
18398 hardcode_libdir_flag_spec_ld_CXX=
18399 hardcode_libdir_separator_CXX=
18400 hardcode_minus_L_CXX=no
18401 hardcode_shlibpath_var_CXX=unsupported
18402 hardcode_automatic_CXX=no
18404 module_expsym_cmds_CXX=
18405 link_all_deplibs_CXX=unknown
18406 old_archive_cmds_CXX=$old_archive_cmds
18407 no_undefined_flag_CXX=
18408 whole_archive_flag_spec_CXX=
18409 enable_shared_with_static_runtimes_CXX=no
18411 # Dependencies to place before and after the object being linked:
18412 predep_objects_CXX=
18413 postdep_objects_CXX=
18416 compiler_lib_search_path_CXX=
18418 # Source file extension for C++ test sources.
18421 # Object file extension for compiled C++ test sources.
18425 # Code to be used in simple compile tests
18426 lt_simple_compile_test_code="int some_variable = 0;\n"
18428 # Code to be used in simple link tests
18429 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18431 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18433 # If no C compiler was specified, use CC.
18436 # If no C compiler flags were specified, use CFLAGS.
18437 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18439 # Allow CC to be a program name with arguments.
18443 # save warnings/boilerplate of simple test code
18444 ac_outfile=conftest.$ac_objext
18445 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18447 _lt_compiler_boilerplate=`cat conftest.err`
18450 ac_outfile=conftest.$ac_objext
18451 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18453 _lt_linker_boilerplate=`cat conftest.err`
18457 # Allow CC to be a program name with arguments.
18462 lt_save_with_gnu_ld=$with_gnu_ld
18463 lt_save_path_LD=$lt_cv_path_LD
18464 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18465 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18467 $as_unset lt_cv_prog_gnu_ld
18469 if test -n "${lt_cv_path_LDCXX+set}"; then
18470 lt_cv_path_LD=$lt_cv_path_LDCXX
18472 $as_unset lt_cv_path_LD
18474 test -z "${LDCXX+set}" || LD=$LDCXX
18478 for cc_temp in $compiler""; do
18480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18486 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18489 # We don't want -fno-exception wen compiling C++ code, so set the
18490 # no_builtin_flag separately
18491 if test "$GXX" = yes; then
18492 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18494 lt_prog_compiler_no_builtin_flag_CXX=
18497 if test "$GXX" = yes; then
18498 # Set up default GNU C++ configuration
18501 # Check whether --with-gnu-ld was given.
18502 if test "${with_gnu_ld+set}" = set; then
18503 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18509 if test "$GCC" = yes; then
18510 # Check if gcc -print-prog-name=ld gives a path.
18511 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18512 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18515 # gcc leaves a trailing carriage return which upsets mingw
18516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18521 # Accept absolute paths.
18523 re_direlt='/[^/][^/]*/\.\./'
18524 # Canonicalize the pathname of ld
18525 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18527 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18529 test -z "$LD" && LD="$ac_prog"
18532 # If it fails, then pretend we aren't using GCC.
18536 # If it is relative, then search for the first ld in PATH.
18537 with_gnu_ld=unknown
18540 elif test "$with_gnu_ld" = yes; then
18541 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18542 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18544 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18545 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18547 if test "${lt_cv_path_LD+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 if test -z "$LD"; then
18551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18552 for ac_dir in $PATH; do
18554 test -z "$ac_dir" && ac_dir=.
18555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18556 lt_cv_path_LD="$ac_dir/$ac_prog"
18557 # Check to see if the program is GNU ld. I'd rather use --version,
18558 # but apparently some variants of GNU ld only accept -v.
18559 # Break only if it was the GNU/non-GNU ld that we prefer.
18560 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18561 *GNU* | *'with BFD'*)
18562 test "$with_gnu_ld" != no && break
18565 test "$with_gnu_ld" != yes && break
18572 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18576 LD="$lt_cv_path_LD"
18577 if test -n "$LD"; then
18578 { echo "$as_me:$LINENO: result: $LD" >&5
18579 echo "${ECHO_T}$LD" >&6; }
18581 { echo "$as_me:$LINENO: result: no" >&5
18582 echo "${ECHO_T}no" >&6; }
18584 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18585 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18586 { (exit 1); exit 1; }; }
18587 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18588 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18589 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18593 case `$LD -v 2>&1 </dev/null` in
18594 *GNU* | *'with BFD'*)
18595 lt_cv_prog_gnu_ld=yes
18598 lt_cv_prog_gnu_ld=no
18602 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18603 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18604 with_gnu_ld=$lt_cv_prog_gnu_ld
18608 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18609 # archiving commands below assume that GNU ld is being used.
18610 if test "$with_gnu_ld" = yes; then
18611 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18612 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'
18614 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18615 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18617 # If archive_cmds runs LD, not CC, wlarc should be empty
18618 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18619 # investigate it a little bit more. (MM)
18622 # ancient GNU ld didn't support --whole-archive et. al.
18623 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18624 grep 'no-whole-archive' > /dev/null; then
18625 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18627 whole_archive_flag_spec_CXX=
18633 # A generic and very simple default shared library creation
18634 # command for GNU C++ for the case where it uses the native
18635 # linker, instead of GNU ld. If possible, this setting should
18636 # overridden to take advantage of the native linker features on
18637 # the platform it is being used on.
18638 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18641 # Commands to make compiler produce verbose output that lists
18642 # what "hidden" libraries, object files and flags are used when
18643 # linking a shared library.
18644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18652 # PORTME: fill in a description of your system's C++ link characteristics
18653 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18654 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18658 # FIXME: insert proper C++ library support
18662 if test "$host_cpu" = ia64; then
18663 # On IA64, the linker does run time linking by default, so we don't
18664 # have to do anything special.
18665 aix_use_runtimelinking=no
18666 exp_sym_flag='-Bexport'
18669 aix_use_runtimelinking=no
18671 # Test if we are trying to use run time linking or normal
18672 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18673 # need to do runtime linking.
18674 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18675 for ld_flag in $LDFLAGS; do
18678 aix_use_runtimelinking=yes
18686 exp_sym_flag='-bexport'
18687 no_entry_flag='-bnoentry'
18690 # When large executables or shared objects are built, AIX ld can
18691 # have problems creating the table of contents. If linking a library
18692 # or program results in "error TOC overflow" add -mminimal-toc to
18693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18696 archive_cmds_CXX=''
18697 hardcode_direct_CXX=yes
18698 hardcode_libdir_separator_CXX=':'
18699 link_all_deplibs_CXX=yes
18701 if test "$GXX" = yes; then
18702 case $host_os in aix4.[012]|aix4.[012].*)
18703 # We only want to do this on AIX 4.2 and lower, the check
18704 # below for broken collect2 doesn't work under 4.3+
18705 collect2name=`${CC} -print-prog-name=collect2`
18706 if test -f "$collect2name" && \
18707 strings "$collect2name" | grep resolve_lib_name >/dev/null
18709 # We have reworked collect2
18710 hardcode_direct_CXX=yes
18712 # We have old collect2
18713 hardcode_direct_CXX=unsupported
18714 # It fails to find uninstalled libraries when the uninstalled
18715 # path is not listed in the libpath. Setting hardcode_minus_L
18716 # to unsupported forces relinking
18717 hardcode_minus_L_CXX=yes
18718 hardcode_libdir_flag_spec_CXX='-L$libdir'
18719 hardcode_libdir_separator_CXX=
18723 shared_flag='-shared'
18724 if test "$aix_use_runtimelinking" = yes; then
18725 shared_flag="$shared_flag "'${wl}-G'
18729 if test "$host_cpu" = ia64; then
18730 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18731 # chokes on -Wl,-G. The following line is correct:
18734 if test "$aix_use_runtimelinking" = yes; then
18735 shared_flag='${wl}-G'
18737 shared_flag='${wl}-bM:SRE'
18742 # It seems that -bexpall does not export symbols beginning with
18743 # underscore (_), so it is better to generate a list of symbols to export.
18744 always_export_symbols_CXX=yes
18745 if test "$aix_use_runtimelinking" = yes; then
18746 # Warning - without using the other runtime loading flags (-brtl),
18747 # -berok will link without error, but may produce a broken library.
18748 allow_undefined_flag_CXX='-berok'
18749 # Determine the default libpath from the value encoded in an empty executable.
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (ac_try="$ac_link"
18767 case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_link") 2>conftest.er1
18774 grep -v '^ *+' conftest.er1 >conftest.err
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } &&
18779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18780 { (case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_try") 2>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; } &&
18789 { ac_try='test -s conftest$ac_exeext'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18802 # Check for a 64-bit object if we didn't find anything.
18803 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; }
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18812 rm -f core conftest.err conftest.$ac_objext \
18813 conftest$ac_exeext conftest.$ac_ext
18814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18816 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18818 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"
18820 if test "$host_cpu" = ia64; then
18821 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18822 allow_undefined_flag_CXX="-z nodefs"
18823 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"
18825 # Determine the default libpath from the value encoded in an empty executable.
18826 cat >conftest.$ac_ext <<_ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18841 rm -f conftest.$ac_objext conftest$ac_exeext
18842 if { (ac_try="$ac_link"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_link") 2>conftest.er1
18850 grep -v '^ *+' conftest.er1 >conftest.err
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
18855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18856 { (case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_try") 2>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest$ac_exeext'
18866 { (case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_try") 2>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18878 # Check for a 64-bit object if we didn't find anything.
18879 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; }
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18888 rm -f core conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18892 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18893 # Warning - without using the other run time loading flags,
18894 # -berok will link without error, but may produce a broken library.
18895 no_undefined_flag_CXX=' ${wl}-bernotok'
18896 allow_undefined_flag_CXX=' ${wl}-berok'
18897 # Exported symbols can be pulled into shared objects from archives
18898 whole_archive_flag_spec_CXX='$convenience'
18899 archive_cmds_need_lc_CXX=yes
18900 # This is similar to how AIX traditionally builds its shared libraries.
18901 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'
18907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18908 allow_undefined_flag_CXX=unsupported
18909 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18910 # support --undefined. This deserves some investigation. FIXME
18911 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18918 case $cc_basename in
18920 # FIXME: insert proper C++ library support
18926 cygwin* | mingw* | pw32*)
18927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18928 # as there is no search path for DLLs.
18929 hardcode_libdir_flag_spec_CXX='-L$libdir'
18930 allow_undefined_flag_CXX=unsupported
18931 always_export_symbols_CXX=no
18932 enable_shared_with_static_runtimes_CXX=yes
18934 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18935 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'
18936 # If the export-symbols file already is a .def file (1st line
18937 # is EXPORTS), use it as is; otherwise, prepend...
18938 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18939 cp $export_symbols $output_objdir/$soname.def;
18941 echo EXPORTS > $output_objdir/$soname.def;
18942 cat $export_symbols >> $output_objdir/$soname.def;
18944 $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'
18949 darwin* | rhapsody*)
18951 rhapsody* | darwin1.[012])
18952 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18955 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18956 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18958 case ${MACOSX_DEPLOYMENT_TARGET} in
18960 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18963 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18969 archive_cmds_need_lc_CXX=no
18970 hardcode_direct_CXX=no
18971 hardcode_automatic_CXX=yes
18972 hardcode_shlibpath_var_CXX=unsupported
18973 whole_archive_flag_spec_CXX=''
18974 link_all_deplibs_CXX=yes
18976 if test "$GXX" = yes ; then
18977 lt_int_apple_cc_single_mod=no
18978 output_verbose_link_cmd='echo'
18979 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18980 lt_int_apple_cc_single_mod=yes
18982 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18983 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18985 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'
18987 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18988 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18989 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18990 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}'
18992 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}'
18994 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}'
18996 case $cc_basename in
18998 output_verbose_link_cmd='echo'
18999 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'
19000 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19001 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19002 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}'
19003 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}'
19013 case $cc_basename in
19015 # FIXME: insert proper C++ library support
19019 # Green Hills C++ Compiler
19020 # FIXME: insert proper C++ library support
19024 # FIXME: insert proper C++ library support
19030 # C++ shared libraries reported to be fairly broken before switch to ELF
19034 archive_cmds_need_lc_CXX=no
19036 freebsd* | kfreebsd*-gnu | dragonfly*)
19037 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19044 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19045 hardcode_libdir_separator_CXX=:
19046 export_dynamic_flag_spec_CXX='${wl}-E'
19047 hardcode_direct_CXX=yes
19048 hardcode_minus_L_CXX=yes # Not in the search PATH,
19049 # but as the default
19050 # location of the library.
19052 case $cc_basename in
19054 # FIXME: insert proper C++ library support
19058 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'
19059 # Commands to make compiler produce verbose output that lists
19060 # what "hidden" libraries, object files and flags are used when
19061 # linking a shared library.
19063 # There doesn't appear to be a way to prevent this compiler from
19064 # explicitly linking system object files so we need to strip them
19065 # from the output so that they don't get included in the library
19067 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'
19070 if test "$GXX" = yes; then
19071 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'
19073 # FIXME: insert proper C++ library support
19080 if test $with_gnu_ld = no; then
19081 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19082 hardcode_libdir_separator_CXX=:
19086 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19089 export_dynamic_flag_spec_CXX='${wl}-E'
19095 hardcode_direct_CXX=no
19096 hardcode_shlibpath_var_CXX=no
19099 hardcode_direct_CXX=yes
19100 hardcode_minus_L_CXX=yes # Not in the search PATH,
19101 # but as the default
19102 # location of the library.
19106 case $cc_basename in
19108 # FIXME: insert proper C++ library support
19114 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19117 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19120 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19123 # Commands to make compiler produce verbose output that lists
19124 # what "hidden" libraries, object files and flags are used when
19125 # linking a shared library.
19127 # There doesn't appear to be a way to prevent this compiler from
19128 # explicitly linking system object files so we need to strip them
19129 # from the output so that they don't get included in the library
19131 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'
19134 if test "$GXX" = yes; then
19135 if test $with_gnu_ld = no; then
19138 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19141 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144 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'
19149 # FIXME: insert proper C++ library support
19156 hardcode_direct_CXX=no
19157 hardcode_shlibpath_var_CXX=no
19158 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19159 export_dynamic_flag_spec_CXX='${wl}-E'
19160 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19161 # Instead, shared libraries are loaded at an image base (0x10000000 by
19162 # default) and relocated if they conflict, which is a slow very memory
19163 # consuming and fragmenting process. To avoid this, we pick a random,
19164 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19165 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19166 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'
19167 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'
19170 case $cc_basename in
19173 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'
19175 # Archives containing C++ object files must be created using
19176 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19177 # necessary to make sure instantiated templates are included
19179 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19182 if test "$GXX" = yes; then
19183 if test "$with_gnu_ld" = no; then
19184 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'
19186 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'
19189 link_all_deplibs_CXX=yes
19192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19193 hardcode_libdir_separator_CXX=:
19196 case $cc_basename in
19198 # Kuck and Associates, Inc. (KAI) C++ Compiler
19200 # KCC will only create a shared library if the output file
19201 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19202 # to its proper name (with version) after linking.
19203 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'
19204 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'
19205 # Commands to make compiler produce verbose output that lists
19206 # what "hidden" libraries, object files and flags are used when
19207 # linking a shared library.
19209 # There doesn't appear to be a way to prevent this compiler from
19210 # explicitly linking system object files so we need to strip them
19211 # from the output so that they don't get included in the library
19213 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'
19215 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19216 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19218 # Archives containing C++ object files must be created using
19219 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19220 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19225 # version 8.0 and above of icpc choke on multiply defined symbols
19226 # if we add $predep_objects and $postdep_objects, however 7.1 and
19227 # earlier do not add the objects themselves.
19228 case `$CC -V 2>&1` in
19230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19231 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'
19233 *) # Version 8.0 or newer
19236 ia64*) tmp_idyn=' -i_dynamic';;
19238 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 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'
19242 archive_cmds_need_lc_CXX=no
19243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19244 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19245 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19248 # Portland Group C++ compiler
19249 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19250 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'
19252 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19254 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'
19258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19259 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'
19261 runpath_var=LD_RUN_PATH
19262 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19263 hardcode_libdir_separator_CXX=:
19265 # Commands to make compiler produce verbose output that lists
19266 # what "hidden" libraries, object files and flags are used when
19267 # linking a shared library.
19269 # There doesn't appear to be a way to prevent this compiler from
19270 # explicitly linking system object files so we need to strip them
19271 # from the output so that they don't get included in the library
19273 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'
19278 # FIXME: insert proper C++ library support
19282 # FIXME: insert proper C++ library support
19286 case $cc_basename in
19288 # FIXME: insert proper C++ library support
19292 # FIXME: insert proper C++ library support
19298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19299 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19301 hardcode_libdir_flag_spec_CXX='-R$libdir'
19302 hardcode_direct_CXX=yes
19303 hardcode_shlibpath_var_CXX=no
19305 # Workaround some broken pre-1.5 toolchains
19306 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19309 # C++ shared libraries are fairly broken
19313 hardcode_direct_CXX=yes
19314 hardcode_shlibpath_var_CXX=no
19315 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19316 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19318 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19319 export_dynamic_flag_spec_CXX='${wl}-E'
19320 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19322 output_verbose_link_cmd='echo'
19325 case $cc_basename in
19327 # Kuck and Associates, Inc. (KAI) C++ Compiler
19329 # KCC will only create a shared library if the output file
19330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19331 # to its proper name (with version) after linking.
19332 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'
19334 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19335 hardcode_libdir_separator_CXX=:
19337 # Archives containing C++ object files must be created using
19338 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19339 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19343 # Rational C++ 2.4.1
19344 # FIXME: insert proper C++ library support
19348 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19349 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'
19351 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19352 hardcode_libdir_separator_CXX=:
19354 # Commands to make compiler produce verbose output that lists
19355 # what "hidden" libraries, object files and flags are used when
19356 # linking a shared library.
19358 # There doesn't appear to be a way to prevent this compiler from
19359 # explicitly linking system object files so we need to strip them
19360 # from the output so that they don't get included in the library
19362 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'
19365 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19366 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19367 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'
19369 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19370 hardcode_libdir_separator_CXX=:
19372 # Commands to make compiler produce verbose output that lists
19373 # what "hidden" libraries, object files and flags are used when
19374 # linking a shared library.
19375 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19378 # FIXME: insert proper C++ library support
19385 case $cc_basename in
19387 # Kuck and Associates, Inc. (KAI) C++ Compiler
19389 # KCC will only create a shared library if the output file
19390 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19391 # to its proper name (with version) after linking.
19392 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'
19394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19395 hardcode_libdir_separator_CXX=:
19397 # Archives containing C++ object files must be created using
19398 # the KAI C++ compiler.
19399 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19402 # Rational C++ 2.4.1
19403 # FIXME: insert proper C++ library support
19407 allow_undefined_flag_CXX=' -expect_unresolved \*'
19408 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'
19409 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19410 echo "-hidden">> $lib.exp~
19411 $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~
19414 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19415 hardcode_libdir_separator_CXX=:
19417 # Commands to make compiler produce verbose output that lists
19418 # what "hidden" libraries, object files and flags are used when
19419 # linking a shared library.
19421 # There doesn't appear to be a way to prevent this compiler from
19422 # explicitly linking system object files so we need to strip them
19423 # from the output so that they don't get included in the library
19425 output_verbose_link_cmd='templist=`$CC -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'
19428 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19429 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19430 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'
19432 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19433 hardcode_libdir_separator_CXX=:
19435 # Commands to make compiler produce verbose output that lists
19436 # what "hidden" libraries, object files and flags are used when
19437 # linking a shared library.
19438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19441 # FIXME: insert proper C++ library support
19448 # FIXME: insert proper C++ library support
19452 case $cc_basename in
19455 # FIXME: insert proper C++ library support
19460 # FIXME: insert proper C++ library support
19464 # FIXME: insert proper C++ library support
19470 case $cc_basename in
19472 # Sun C++ 4.2, 5.x and Centerline C++
19473 archive_cmds_need_lc_CXX=yes
19474 no_undefined_flag_CXX=' -zdefs'
19475 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19476 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19477 $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'
19479 hardcode_libdir_flag_spec_CXX='-R$libdir'
19480 hardcode_shlibpath_var_CXX=no
19482 solaris2.[0-5] | solaris2.[0-5].*) ;;
19484 # The C++ compiler is used as linker so we must use $wl
19485 # flag to pass the commands to the underlying system
19486 # linker. We must also pass each convience library through
19487 # to the system linker between allextract/defaultextract.
19488 # The C++ compiler will combine linker options so we
19489 # cannot just pass the convience library names through
19491 # Supported since Solaris 2.6 (maybe 2.5.1?)
19492 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'
19495 link_all_deplibs_CXX=yes
19497 output_verbose_link_cmd='echo'
19499 # Archives containing C++ object files must be created using
19500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19501 # necessary to make sure instantiated templates are included
19503 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19506 # Green Hills C++ Compiler
19507 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19509 # The C++ compiler must be used to create the archive.
19510 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19513 # GNU C++ compiler with Solaris linker
19514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19515 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19516 if $CC --version | grep -v '^2\.7' > /dev/null; then
19517 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19518 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19519 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19524 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19526 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19528 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19529 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19530 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19532 # Commands to make compiler produce verbose output that lists
19533 # what "hidden" libraries, object files and flags are used when
19534 # linking a shared library.
19535 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19538 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19544 no_undefined_flag_CXX='${wl}-z,text'
19545 archive_cmds_need_lc_CXX=no
19546 hardcode_shlibpath_var_CXX=no
19547 runpath_var='LD_RUN_PATH'
19549 case $cc_basename in
19551 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19552 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19555 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19560 sysv5* | sco3.2v5* | sco5v6*)
19561 # Note: We can NOT use -z defs as we might desire, because we do not
19562 # link with -lc, and that would cause any symbols used from libc to
19563 # always be unresolved, which means just about no library would
19564 # ever link correctly. If we're not using GNU ld we use -z text
19565 # though, which does catch some bad symbols but isn't as heavy-handed
19567 # For security reasons, it is highly recommended that you always
19568 # use absolute paths for naming shared libraries, and exclude the
19569 # DT_RUNPATH tag from executables and libraries. But doing so
19570 # requires that you compile everything twice, which is a pain.
19571 # So that behaviour is only enabled if SCOABSPATH is set to a
19572 # non-empty value in the environment. Most likely only useful for
19573 # creating official distributions of packages.
19574 # This is a hack until libtool officially supports absolute path
19575 # names for shared libraries.
19576 no_undefined_flag_CXX='${wl}-z,text'
19577 allow_undefined_flag_CXX='${wl}-z,nodefs'
19578 archive_cmds_need_lc_CXX=no
19579 hardcode_shlibpath_var_CXX=no
19580 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19581 hardcode_libdir_separator_CXX=':'
19582 link_all_deplibs_CXX=yes
19583 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19584 runpath_var='LD_RUN_PATH'
19586 case $cc_basename in
19588 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19592 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19593 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19598 case $cc_basename in
19600 # NonStop-UX NCC 3.20
19601 # FIXME: insert proper C++ library support
19605 # FIXME: insert proper C++ library support
19611 # FIXME: insert proper C++ library support
19615 # FIXME: insert proper C++ library support
19619 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19620 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19621 test "$ld_shlibs_CXX" = no && can_build_shared=no
19627 cat > conftest.$ac_ext <<EOF
19631 Foo (void) { a = 0; }
19637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19638 (eval $ac_compile) 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; then
19642 # Parse the compiler output and extract the necessary
19643 # objects, libraries and library flags.
19645 # Sentinel used to keep track of whether or not we are before
19646 # the conftest object file.
19647 pre_test_object_deps_done=no
19649 # The `*' in the case matches for architectures that use `case' in
19650 # $output_verbose_cmd can trigger glob expansion during the loop
19651 # eval without this substitution.
19652 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19654 for p in `eval $output_verbose_link_cmd`; do
19658 # Some compilers place space between "-{L,R}" and the path.
19659 # Remove the space.
19660 if test $p = "-L" \
19661 || test $p = "-R"; then
19668 if test "$pre_test_object_deps_done" = no; then
19671 # Internal compiler library paths should come after those
19672 # provided the user. The postdeps already come after the
19673 # user supplied libs so there is no need to process them.
19674 if test -z "$compiler_lib_search_path_CXX"; then
19675 compiler_lib_search_path_CXX="${prev}${p}"
19677 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19680 # The "-l" case would never come before the object being
19681 # linked, so don't bother handling this case.
19684 if test -z "$postdeps_CXX"; then
19685 postdeps_CXX="${prev}${p}"
19687 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19693 # This assumes that the test object file only shows up
19694 # once in the compiler output.
19695 if test "$p" = "conftest.$objext"; then
19696 pre_test_object_deps_done=yes
19700 if test "$pre_test_object_deps_done" = no; then
19701 if test -z "$predep_objects_CXX"; then
19702 predep_objects_CXX="$p"
19704 predep_objects_CXX="$predep_objects_CXX $p"
19707 if test -z "$postdep_objects_CXX"; then
19708 postdep_objects_CXX="$p"
19710 postdep_objects_CXX="$postdep_objects_CXX $p"
19715 *) ;; # Ignore the rest.
19723 echo "libtool.m4: error: problem compiling CXX test program"
19726 $rm -f confest.$objext
19728 # PORTME: override above test on systems where it is broken
19731 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19732 # hack all around it, let's just trust "g++" to DTRT.
19733 predep_objects_CXX=
19734 postdep_objects_CXX=
19739 case $cc_basename in
19741 # Adding this requires a known-good setup of shared libraries for
19742 # Sun compiler versions before 5.6, else PIC objects from an old
19743 # archive will be linked into the output, leading to subtle bugs.
19744 postdeps_CXX='-lCstd -lCrun'
19751 case " $postdeps_CXX " in
19752 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19755 lt_prog_compiler_wl_CXX=
19756 lt_prog_compiler_pic_CXX=
19757 lt_prog_compiler_static_CXX=
19759 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19762 # C++ specific cases for pic, static, wl, etc.
19763 if test "$GXX" = yes; then
19764 lt_prog_compiler_wl_CXX='-Wl,'
19765 lt_prog_compiler_static_CXX='-static'
19769 # All AIX code is PIC.
19770 if test "$host_cpu" = ia64; then
19771 # AIX 5 now supports IA64 processor
19772 lt_prog_compiler_static_CXX='-Bstatic'
19776 # FIXME: we need at least 68020 code to build shared libraries, but
19777 # adding the `-m68020' flag to GCC prevents building anything better,
19779 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19781 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19782 # PIC is the default for these OSes.
19784 mingw* | os2* | pw32*)
19785 # This hack is so that the source file can tell whether it is being
19786 # built for inclusion in a dll (and should export symbols for example).
19787 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19789 darwin* | rhapsody*)
19790 # PIC is the default on this platform
19791 # Common symbols not allowed in MH_DYLIB files
19792 lt_prog_compiler_pic_CXX='-fno-common'
19795 # DJGPP does not support shared libraries at all
19796 lt_prog_compiler_pic_CXX=
19799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19800 # Instead, we relocate shared libraries at runtime.
19803 if test -d /usr/nec; then
19804 lt_prog_compiler_pic_CXX=-Kconform_pic
19808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19809 # not for PA HP-UX.
19814 lt_prog_compiler_pic_CXX='-fPIC'
19819 lt_prog_compiler_pic_CXX='-fPIC'
19825 # All AIX code is PIC.
19826 if test "$host_cpu" = ia64; then
19827 # AIX 5 now supports IA64 processor
19828 lt_prog_compiler_static_CXX='-Bstatic'
19830 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19834 case $cc_basename in
19836 # Green Hills C++ Compiler
19837 # _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"
19842 # PIC is the default on this platform
19843 # Common symbols not allowed in MH_DYLIB files
19844 case $cc_basename in
19846 lt_prog_compiler_pic_CXX='-qnocommon'
19847 lt_prog_compiler_wl_CXX='-Wl,'
19852 case $cc_basename in
19854 lt_prog_compiler_pic_CXX='-KPIC'
19857 # Green Hills C++ Compiler
19858 lt_prog_compiler_pic_CXX='-pic'
19864 freebsd* | kfreebsd*-gnu | dragonfly*)
19865 # FreeBSD uses GNU C++
19867 hpux9* | hpux10* | hpux11*)
19868 case $cc_basename in
19870 lt_prog_compiler_wl_CXX='-Wl,'
19871 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19872 if test "$host_cpu" != ia64; then
19873 lt_prog_compiler_pic_CXX='+Z'
19877 lt_prog_compiler_wl_CXX='-Wl,'
19878 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19884 lt_prog_compiler_pic_CXX='+Z'
19893 # This is c89, which is MS Visual C++ (no shared libs)
19894 # Anyone wants to do a port?
19896 irix5* | irix6* | nonstopux*)
19897 case $cc_basename in
19899 lt_prog_compiler_wl_CXX='-Wl,'
19900 lt_prog_compiler_static_CXX='-non_shared'
19901 # CC pic flag -KPIC is the default.
19908 case $cc_basename in
19911 lt_prog_compiler_wl_CXX='--backend -Wl,'
19912 lt_prog_compiler_pic_CXX='-fPIC'
19916 lt_prog_compiler_wl_CXX='-Wl,'
19917 lt_prog_compiler_pic_CXX='-KPIC'
19918 lt_prog_compiler_static_CXX='-static'
19921 # Portland Group C++ compiler.
19922 lt_prog_compiler_wl_CXX='-Wl,'
19923 lt_prog_compiler_pic_CXX='-fpic'
19924 lt_prog_compiler_static_CXX='-Bstatic'
19928 # Make sure the PIC flag is empty. It appears that all Alpha
19929 # Linux and Compaq Tru64 Unix objects are PIC.
19930 lt_prog_compiler_pic_CXX=
19931 lt_prog_compiler_static_CXX='-non_shared'
19942 case $cc_basename in
19944 lt_prog_compiler_pic_CXX='-W c,exportall'
19952 osf3* | osf4* | osf5*)
19953 case $cc_basename in
19955 lt_prog_compiler_wl_CXX='--backend -Wl,'
19958 # Rational C++ 2.4.1
19959 lt_prog_compiler_pic_CXX='-pic'
19962 # Digital/Compaq C++
19963 lt_prog_compiler_wl_CXX='-Wl,'
19964 # Make sure the PIC flag is empty. It appears that all Alpha
19965 # Linux and Compaq Tru64 Unix objects are PIC.
19966 lt_prog_compiler_pic_CXX=
19967 lt_prog_compiler_static_CXX='-non_shared'
19976 case $cc_basename in
19978 # Sun C++ 4.2, 5.x and Centerline C++
19979 lt_prog_compiler_pic_CXX='-KPIC'
19980 lt_prog_compiler_static_CXX='-Bstatic'
19981 lt_prog_compiler_wl_CXX='-Qoption ld '
19984 # Green Hills C++ Compiler
19985 lt_prog_compiler_pic_CXX='-PIC'
19992 case $cc_basename in
19995 lt_prog_compiler_pic_CXX='-pic'
19996 lt_prog_compiler_static_CXX='-Bstatic'
20000 lt_prog_compiler_pic_CXX='-pic'
20007 case $cc_basename in
20009 # NonStop-UX NCC 3.20
20010 lt_prog_compiler_pic_CXX='-KPIC'
20016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20017 case $cc_basename in
20019 lt_prog_compiler_wl_CXX='-Wl,'
20020 lt_prog_compiler_pic_CXX='-KPIC'
20021 lt_prog_compiler_static_CXX='-Bstatic'
20028 lt_prog_compiler_can_build_shared_CXX=no
20033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20034 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20037 # Check to make sure the PIC flag actually works.
20039 if test -n "$lt_prog_compiler_pic_CXX"; then
20041 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20042 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20043 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20046 lt_prog_compiler_pic_works_CXX=no
20047 ac_outfile=conftest.$ac_objext
20048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20049 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20050 # Insert the option either (1) after the last *FLAGS variable, or
20051 # (2) before a word containing "conftest.", or (3) at the end.
20052 # Note that $ac_compile itself does not contain backslashes and begins
20053 # with a dollar sign (not a hyphen), so the echo should work correctly.
20054 # The option is referenced via a variable to avoid confusing sed.
20055 lt_compile=`echo "$ac_compile" | $SED \
20056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20058 -e 's:$: $lt_compiler_flag:'`
20059 (eval echo "\"\$as_me:20059: $lt_compile\"" >&5)
20060 (eval "$lt_compile" 2>conftest.err)
20062 cat conftest.err >&5
20063 echo "$as_me:20063: \$? = $ac_status" >&5
20064 if (exit $ac_status) && test -s "$ac_outfile"; then
20065 # The compiler can only warn and ignore the option if not recognized
20066 # So say no if there are warnings other than the usual output.
20067 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20069 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20070 lt_prog_compiler_pic_works_CXX=yes
20076 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20077 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20079 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20080 case $lt_prog_compiler_pic_CXX in
20082 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20085 lt_prog_compiler_pic_CXX=
20086 lt_prog_compiler_can_build_shared_CXX=no
20091 # For platforms which do not support PIC, -DPIC is meaningless:
20093 lt_prog_compiler_pic_CXX=
20096 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20101 # Check to make sure the static flag actually works.
20103 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20104 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20105 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20106 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 lt_prog_compiler_static_works_CXX=no
20110 save_LDFLAGS="$LDFLAGS"
20111 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20112 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20113 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20114 # The linker can only warn and ignore the option if not recognized
20115 # So say no if there are warnings
20116 if test -s conftest.err; then
20117 # Append any errors to the config.log.
20118 cat conftest.err 1>&5
20119 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20121 if diff conftest.exp conftest.er2 >/dev/null; then
20122 lt_prog_compiler_static_works_CXX=yes
20125 lt_prog_compiler_static_works_CXX=yes
20129 LDFLAGS="$save_LDFLAGS"
20132 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20133 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20135 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20138 lt_prog_compiler_static_CXX=
20142 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20143 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20144 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 lt_cv_prog_compiler_c_o_CXX=no
20148 $rm -r conftest 2>/dev/null
20152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20154 lt_compiler_flag="-o out/conftest2.$ac_objext"
20155 # Insert the option either (1) after the last *FLAGS variable, or
20156 # (2) before a word containing "conftest.", or (3) at the end.
20157 # Note that $ac_compile itself does not contain backslashes and begins
20158 # with a dollar sign (not a hyphen), so the echo should work correctly.
20159 lt_compile=`echo "$ac_compile" | $SED \
20160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20162 -e 's:$: $lt_compiler_flag:'`
20163 (eval echo "\"\$as_me:20163: $lt_compile\"" >&5)
20164 (eval "$lt_compile" 2>out/conftest.err)
20166 cat out/conftest.err >&5
20167 echo "$as_me:20167: \$? = $ac_status" >&5
20168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20170 # The compiler can only warn and ignore the option if not recognized
20171 # So say no if there are warnings
20172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20175 lt_cv_prog_compiler_c_o_CXX=yes
20180 # SGI C++ compiler will create directory out/ii_files/ for
20181 # template instantiation
20182 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20183 $rm out/* && rmdir out
20189 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20190 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20193 hard_links="nottested"
20194 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20195 # do not overwrite the value of need_locks provided by the user
20196 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20197 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20202 ln conftest.a conftest.b 2>&5 || hard_links=no
20203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20204 { echo "$as_me:$LINENO: result: $hard_links" >&5
20205 echo "${ECHO_T}$hard_links" >&6; }
20206 if test "$hard_links" = no; then
20207 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20208 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20215 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20218 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20221 # If we're using GNU nm, then we don't want the "-C" option.
20222 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20223 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20224 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'
20226 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'
20230 export_symbols_cmds_CXX="$ltdll_cmds"
20233 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'
20236 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20240 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20241 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20242 test "$ld_shlibs_CXX" = no && can_build_shared=no
20245 # Do we need to explicitly link libc?
20247 case "x$archive_cmds_need_lc_CXX" in
20249 # Assume -lc should be added
20250 archive_cmds_need_lc_CXX=yes
20252 if test "$enable_shared" = yes && test "$GCC" = yes; then
20253 case $archive_cmds_CXX in
20255 # FIXME: we may have to deal with multi-command sequences.
20258 # Test whether the compiler implicitly links with -lc since on some
20259 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20260 # to ld, don't add -lc before -lgcc.
20261 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20262 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267 (eval $ac_compile) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } 2>conftest.err; then
20273 libobjs=conftest.$ac_objext
20275 wl=$lt_prog_compiler_wl_CXX
20276 pic_flag=$lt_prog_compiler_pic_CXX
20282 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20283 allow_undefined_flag_CXX=
20284 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20285 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }
20290 archive_cmds_need_lc_CXX=no
20292 archive_cmds_need_lc_CXX=yes
20294 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20296 cat conftest.err 1>&5
20299 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20300 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20307 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20308 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20309 library_names_spec=
20310 libname_spec='lib$name'
20314 postuninstall_cmds=
20318 shlibpath_overrides_runpath=unknown
20320 dynamic_linker="$host_os ld.so"
20321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20322 if test "$GCC" = yes; then
20323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20324 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20325 # if the path contains ";" then we assume it to be the separator
20326 # otherwise default to the standard path separator (i.e. ":") - it is
20327 # assumed that no part of a normal pathname contains ";" but that should
20328 # okay in the real world where ";" in dirpaths is itself problematic.
20329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20336 need_lib_prefix=unknown
20337 hardcode_into_libs=no
20339 # when you set need_version to no, make sure it does not cause -set_version
20340 # flags to be left without arguments
20341 need_version=unknown
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20347 shlibpath_var=LIBPATH
20349 # AIX 3 has no versioning support, so we append a major version to the name.
20350 soname_spec='${libname}${release}${shared_ext}$major'
20357 hardcode_into_libs=yes
20358 if test "$host_cpu" = ia64; then
20359 # AIX 5 supports IA64
20360 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20361 shlibpath_var=LD_LIBRARY_PATH
20363 # With GCC up to 2.95.x, collect2 would create an import file
20364 # for dependence libraries. The import file would start with
20365 # the line `#! .'. This would cause the generated library to
20366 # depend on `.', always an invalid library. This was fixed in
20367 # development snapshots of GCC prior to 3.0.
20369 aix4 | aix4.[01] | aix4.[01].*)
20370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20372 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20375 can_build_shared=no
20379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20380 # soname into executable. Probably we can add versioning support to
20381 # collect2, so additional links can be useful in future.
20382 if test "$aix_use_runtimelinking" = yes; then
20383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20384 # instead of lib<name>.a to let people know that these are not
20385 # typical AIX shared libraries.
20386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20388 # We preserve .a as extension for shared libraries through AIX4.2
20389 # and later when we are not doing run time linking.
20390 library_names_spec='${libname}${release}.a $libname.a'
20391 soname_spec='${libname}${release}${shared_ext}$major'
20393 shlibpath_var=LIBPATH
20398 library_names_spec='$libname.ixlibrary $libname.a'
20399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20400 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'
20404 library_names_spec='${libname}${shared_ext}'
20405 dynamic_linker="$host_os ld.so"
20406 shlibpath_var=LIBRARY_PATH
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 soname_spec='${libname}${release}${shared_ext}$major'
20414 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20417 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20418 # the default ld.so.conf also contains /usr/contrib/lib and
20419 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20420 # libtool to hard-code these into programs
20423 cygwin* | mingw* | pw32*)
20424 version_type=windows
20429 case $GCC,$host_os in
20430 yes,cygwin* | yes,mingw* | yes,pw32*)
20431 library_names_spec='$libname.dll.a'
20432 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20433 postinstall_cmds='base_file=`basename \${file}`~
20434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20435 dldir=$destdir/`dirname \$dlpath`~
20436 test -d \$dldir || mkdir -p \$dldir~
20437 $install_prog $dir/$dlname \$dldir/$dlname~
20438 chmod a+x \$dldir/$dlname'
20439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20440 dlpath=$dir/\$dldll~
20442 shlibpath_overrides_runpath=yes
20446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20447 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20448 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20451 # MinGW DLLs use traditional 'lib' prefix
20452 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20453 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20454 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20455 # It is most probably a Windows format PATH printed by
20456 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20457 # path with ; separators, and with drive letters. We can handle the
20458 # drive letters (cygwin fileutils understands them), so leave them,
20459 # especially as we might pass files found there to a mingw objdump,
20460 # which wouldn't understand a cygwinified path. Ahh.
20461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20467 # pw32 DLLs use 'pw' prefix rather than 'lib'
20468 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20474 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20477 dynamic_linker='Win32 ld.exe'
20478 # FIXME: first we should search . and the directory the executable is in
20482 darwin* | rhapsody*)
20483 dynamic_linker="$host_os dyld"
20484 version_type=darwin
20487 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20488 soname_spec='${libname}${release}${major}$shared_ext'
20489 shlibpath_overrides_runpath=yes
20490 shlibpath_var=DYLD_LIBRARY_PATH
20491 shrext_cmds='.dylib'
20492 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20493 if test "$GCC" = yes; then
20494 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"`
20496 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20498 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20506 soname_spec='${libname}${release}${shared_ext}$major'
20507 shlibpath_var=LD_LIBRARY_PATH
20518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20519 soname_spec='${libname}${release}${shared_ext}$major'
20520 shlibpath_var=LD_LIBRARY_PATH
20521 shlibpath_overrides_runpath=no
20522 hardcode_into_libs=yes
20523 dynamic_linker='GNU ld.so'
20526 freebsd* | dragonfly*)
20527 # DragonFly does not have aout. When/if they implement a new
20528 # versioning mechanism, adjust this.
20529 if test -x /usr/bin/objformat; then
20530 objformat=`/usr/bin/objformat`
20533 freebsd[123]*) objformat=aout ;;
20534 *) objformat=elf ;;
20537 version_type=freebsd-$objformat
20538 case $version_type in
20540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20549 shlibpath_var=LD_LIBRARY_PATH
20552 shlibpath_overrides_runpath=yes
20554 freebsd3.[01]* | freebsdelf3.[01]*)
20555 shlibpath_overrides_runpath=yes
20556 hardcode_into_libs=yes
20558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20560 shlibpath_overrides_runpath=no
20561 hardcode_into_libs=yes
20563 freebsd*) # from 4.6 on
20564 shlibpath_overrides_runpath=yes
20565 hardcode_into_libs=yes
20574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20575 soname_spec='${libname}${release}${shared_ext}$major'
20576 shlibpath_var=LD_LIBRARY_PATH
20577 hardcode_into_libs=yes
20580 hpux9* | hpux10* | hpux11*)
20581 # Give a soname corresponding to the major version so that dld.sl refuses to
20582 # link against other versions.
20589 hardcode_into_libs=yes
20590 dynamic_linker="$host_os dld.so"
20591 shlibpath_var=LD_LIBRARY_PATH
20592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 if test "X$HPUX_IA64_MODE" = X32; then
20596 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20598 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20604 hardcode_into_libs=yes
20605 dynamic_linker="$host_os dld.sl"
20606 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20609 soname_spec='${libname}${release}${shared_ext}$major'
20610 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20615 dynamic_linker="$host_os dld.sl"
20616 shlibpath_var=SHLIB_PATH
20617 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20619 soname_spec='${libname}${release}${shared_ext}$major'
20622 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20623 postinstall_cmds='chmod 555 $lib'
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20633 shlibpath_var=LD_LIBRARY_PATH
20634 shlibpath_overrides_runpath=no
20635 hardcode_into_libs=yes
20638 irix5* | irix6* | nonstopux*)
20640 nonstopux*) version_type=nonstopux ;;
20642 if test "$lt_cv_prog_gnu_ld" = yes; then
20650 soname_spec='${libname}${release}${shared_ext}$major'
20651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20653 irix5* | nonstopux*)
20654 libsuff= shlibsuff=
20657 case $LD in # libtool.m4 will add one of these switches to LD
20658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20659 libsuff= shlibsuff= libmagic=32-bit;;
20660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20661 libsuff=32 shlibsuff=N32 libmagic=N32;;
20662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20664 *) libsuff= shlibsuff= libmagic=never-match;;
20668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20669 shlibpath_overrides_runpath=no
20670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20672 hardcode_into_libs=yes
20675 # No shared lib support for Linux oldld, aout, or coff.
20676 linux*oldld* | linux*aout* | linux*coff*)
20680 # This must be Linux ELF.
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20688 shlibpath_var=LD_LIBRARY_PATH
20689 shlibpath_overrides_runpath=no
20690 # This implies no fast_install, which is unacceptable.
20691 # Some rework will be needed to allow for fast_install
20692 # before this can be enabled.
20693 hardcode_into_libs=yes
20695 # Append ld.so.conf contents to the search path
20696 if test -f /etc/ld.so.conf; then
20697 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' ' '`
20698 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20701 # We used to test for /lib/ld.so.1 and disable shared libraries on
20702 # powerpc, because MkLinux only supported shared libraries with the
20703 # GNU dynamic linker. Since this was broken with cross compilers,
20704 # most powerpc-linux boxes support dynamic linking these days and
20705 # people can always --disable-shared, the test was removed, and we
20706 # assume the GNU/Linux dynamic linker is in use.
20707 dynamic_linker='GNU/Linux ld.so'
20714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20715 soname_spec='${libname}${release}${shared_ext}$major'
20716 shlibpath_var=LD_LIBRARY_PATH
20717 shlibpath_overrides_runpath=no
20718 hardcode_into_libs=yes
20719 dynamic_linker='GNU ld.so'
20726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20729 dynamic_linker='NetBSD (a.out) ld.so'
20731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20732 soname_spec='${libname}${release}${shared_ext}$major'
20733 dynamic_linker='NetBSD ld.elf_so'
20735 shlibpath_var=LD_LIBRARY_PATH
20736 shlibpath_overrides_runpath=yes
20737 hardcode_into_libs=yes
20742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20743 shlibpath_var=LD_LIBRARY_PATH
20744 shlibpath_overrides_runpath=yes
20751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20752 soname_spec='${libname}${release}${shared_ext}$major'
20753 shlibpath_var=LD_LIBRARY_PATH
20754 shlibpath_overrides_runpath=yes
20759 sys_lib_dlsearch_path_spec="/usr/lib"
20761 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20763 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20764 *) need_version=no ;;
20766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20768 shlibpath_var=LD_LIBRARY_PATH
20769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20771 openbsd2.[89] | openbsd2.[89].*)
20772 shlibpath_overrides_runpath=no
20775 shlibpath_overrides_runpath=yes
20779 shlibpath_overrides_runpath=yes
20784 libname_spec='$name'
20787 library_names_spec='$libname${shared_ext} $libname.a'
20788 dynamic_linker='OS/2 ld.exe'
20789 shlibpath_var=LIBPATH
20792 osf3* | osf4* | osf5*)
20796 soname_spec='${libname}${release}${shared_ext}$major'
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 shlibpath_var=LD_LIBRARY_PATH
20799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20808 soname_spec='${libname}${release}${shared_ext}$major'
20809 shlibpath_var=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath=yes
20811 hardcode_into_libs=yes
20812 # ldd complains unless libraries are executable
20813 postinstall_cmds='chmod +x $lib'
20818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20820 shlibpath_var=LD_LIBRARY_PATH
20821 shlibpath_overrides_runpath=yes
20822 if test "$with_gnu_ld" = yes; then
20830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831 soname_spec='${libname}${release}${shared_ext}$major'
20832 shlibpath_var=LD_LIBRARY_PATH
20833 case $host_vendor in
20835 shlibpath_overrides_runpath=no
20837 export_dynamic_flag_spec='${wl}-Blargedynsym'
20838 runpath_var=LD_RUN_PATH
20846 shlibpath_overrides_runpath=no
20847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20853 if test -d /usr/nec ;then
20855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20856 soname_spec='$libname${shared_ext}.$major'
20857 shlibpath_var=LD_LIBRARY_PATH
20861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20862 version_type=freebsd-elf
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 shlibpath_var=LD_LIBRARY_PATH
20868 hardcode_into_libs=yes
20869 if test "$with_gnu_ld" = yes; then
20870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20871 shlibpath_overrides_runpath=no
20873 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20874 shlibpath_overrides_runpath=yes
20877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20881 sys_lib_dlsearch_path_spec='/usr/lib'
20886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887 soname_spec='${libname}${release}${shared_ext}$major'
20888 shlibpath_var=LD_LIBRARY_PATH
20895 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20896 echo "${ECHO_T}$dynamic_linker" >&6; }
20897 test "$dynamic_linker" = no && can_build_shared=no
20899 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20900 if test "$GCC" = yes; then
20901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20904 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20905 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20906 hardcode_action_CXX=
20907 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20908 test -n "$runpath_var_CXX" || \
20909 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20911 # We can hardcode non-existant directories.
20912 if test "$hardcode_direct_CXX" != no &&
20913 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20914 # have to relink, otherwise we might link with an installed library
20915 # when we should be linking with a yet-to-be-installed one
20916 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20917 test "$hardcode_minus_L_CXX" != no; then
20918 # Linking always hardcodes the temporary library directory.
20919 hardcode_action_CXX=relink
20921 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20922 hardcode_action_CXX=immediate
20925 # We cannot hardcode anything, or else we can only hardcode existing
20927 hardcode_action_CXX=unsupported
20929 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20930 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20932 if test "$hardcode_action_CXX" = relink; then
20933 # Fast installation is not supported
20934 enable_fast_install=no
20935 elif test "$shlibpath_overrides_runpath" = yes ||
20936 test "$enable_shared" = no; then
20937 # Fast installation is not necessary
20938 enable_fast_install=needless
20942 # The else clause should only fire when bootstrapping the
20943 # libtool distribution, otherwise you forgot to ship ltmain.sh
20944 # with your package, and you will get complaints that there are
20945 # no rules to generate ltmain.sh.
20946 if test -f "$ltmain"; then
20947 # See if we are running on zsh, and set the options which allow our commands through
20948 # without removal of \ escapes.
20949 if test -n "${ZSH_VERSION+set}" ; then
20950 setopt NO_GLOB_SUBST
20952 # Now quote all the things that may contain metacharacters while being
20953 # careful not to overquote the AC_SUBSTed values. We take copies of the
20954 # variables and quote the copies for generation of the libtool script.
20955 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20957 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20958 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20959 deplibs_check_method reload_flag reload_cmds need_locks \
20960 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20961 lt_cv_sys_global_symbol_to_c_name_address \
20962 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20963 old_postinstall_cmds old_postuninstall_cmds \
20967 lt_prog_compiler_wl_CXX \
20968 lt_prog_compiler_pic_CXX \
20969 lt_prog_compiler_static_CXX \
20970 lt_prog_compiler_no_builtin_flag_CXX \
20971 export_dynamic_flag_spec_CXX \
20972 thread_safe_flag_spec_CXX \
20973 whole_archive_flag_spec_CXX \
20974 enable_shared_with_static_runtimes_CXX \
20975 old_archive_cmds_CXX \
20976 old_archive_from_new_cmds_CXX \
20977 predep_objects_CXX \
20978 postdep_objects_CXX \
20981 compiler_lib_search_path_CXX \
20983 archive_expsym_cmds_CXX \
20984 postinstall_cmds_CXX \
20985 postuninstall_cmds_CXX \
20986 old_archive_from_expsyms_cmds_CXX \
20987 allow_undefined_flag_CXX \
20988 no_undefined_flag_CXX \
20989 export_symbols_cmds_CXX \
20990 hardcode_libdir_flag_spec_CXX \
20991 hardcode_libdir_flag_spec_ld_CXX \
20992 hardcode_libdir_separator_CXX \
20993 hardcode_automatic_CXX \
20995 module_expsym_cmds_CXX \
20996 lt_cv_prog_compiler_c_o_CXX \
20997 exclude_expsyms_CXX \
20998 include_expsyms_CXX; do
21001 old_archive_cmds_CXX | \
21002 old_archive_from_new_cmds_CXX | \
21003 archive_cmds_CXX | \
21004 archive_expsym_cmds_CXX | \
21005 module_cmds_CXX | \
21006 module_expsym_cmds_CXX | \
21007 old_archive_from_expsyms_cmds_CXX | \
21008 export_symbols_cmds_CXX | \
21009 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21010 postinstall_cmds | postuninstall_cmds | \
21011 old_postinstall_cmds | old_postuninstall_cmds | \
21012 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21013 # Double-quote double-evaled strings.
21014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21023 *'\$0 --fallback-echo"')
21024 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21030 cat <<__EOF__ >> "$cfgfile"
21031 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21033 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21035 # Shell to use when invoking shell scripts.
21038 # Whether or not to build shared libraries.
21039 build_libtool_libs=$enable_shared
21041 # Whether or not to build static libraries.
21042 build_old_libs=$enable_static
21044 # Whether or not to add -lc for building shared libraries.
21045 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21047 # Whether or not to disallow shared libs when runtime libs are static
21048 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21050 # Whether or not to optimize for fast installation.
21051 fast_install=$enable_fast_install
21054 host_alias=$host_alias
21058 # The build system.
21059 build_alias=$build_alias
21063 # An echo program that does not interpret backslashes.
21068 AR_FLAGS=$lt_AR_FLAGS
21073 # LTCC compiler flags.
21074 LTCFLAGS=$lt_LTCFLAGS
21076 # A language-specific compiler.
21077 CC=$lt_compiler_CXX
21079 # Is the compiler the GNU C compiler?
21085 # The linker used to build libraries.
21088 # Whether we need hard or soft links.
21091 # A BSD-compatible nm program.
21094 # A symbol stripping program
21097 # Used to examine libraries when file_magic_cmd begins "file"
21098 MAGIC_CMD=$MAGIC_CMD
21100 # Used on cygwin: DLL creation program.
21103 # Used on cygwin: object dumper.
21106 # Used on cygwin: assembler.
21109 # The name of the directory that contains temporary libtool files.
21112 # How to create reloadable object files.
21113 reload_flag=$lt_reload_flag
21114 reload_cmds=$lt_reload_cmds
21116 # How to pass a linker flag through the compiler.
21117 wl=$lt_lt_prog_compiler_wl_CXX
21119 # Object file suffix (normally "o").
21120 objext="$ac_objext"
21122 # Old archive suffix (normally "a").
21125 # Shared library suffix (normally ".so").
21126 shrext_cmds='$shrext_cmds'
21128 # Executable file suffix (normally "").
21131 # Additional compiler flags for building library objects.
21132 pic_flag=$lt_lt_prog_compiler_pic_CXX
21135 # What is the maximum length of a command?
21136 max_cmd_len=$lt_cv_sys_max_cmd_len
21138 # Does compiler simultaneously support -c and -o options?
21139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21141 # Must we lock files when doing compilation?
21142 need_locks=$lt_need_locks
21144 # Do we need the lib prefix for modules?
21145 need_lib_prefix=$need_lib_prefix
21147 # Do we need a version for libraries?
21148 need_version=$need_version
21150 # Whether dlopen is supported.
21151 dlopen_support=$enable_dlopen
21153 # Whether dlopen of programs is supported.
21154 dlopen_self=$enable_dlopen_self
21156 # Whether dlopen of statically linked programs is supported.
21157 dlopen_self_static=$enable_dlopen_self_static
21159 # Compiler flag to prevent dynamic linking.
21160 link_static_flag=$lt_lt_prog_compiler_static_CXX
21162 # Compiler flag to turn off builtin functions.
21163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21165 # Compiler flag to allow reflexive dlopens.
21166 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21168 # Compiler flag to generate shared objects directly from archives.
21169 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21171 # Compiler flag to generate thread-safe objects.
21172 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21174 # Library versioning type.
21175 version_type=$version_type
21177 # Format of library name prefix.
21178 libname_spec=$lt_libname_spec
21180 # List of archive names. First name is the real one, the rest are links.
21181 # The last name is the one that the linker finds with -lNAME.
21182 library_names_spec=$lt_library_names_spec
21184 # The coded name of the library, if different from the real name.
21185 soname_spec=$lt_soname_spec
21187 # Commands used to build and install an old-style archive.
21189 old_archive_cmds=$lt_old_archive_cmds_CXX
21190 old_postinstall_cmds=$lt_old_postinstall_cmds
21191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21193 # Create an old-style archive from a shared archive.
21194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21196 # Create a temporary old-style archive to link instead of a shared archive.
21197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21199 # Commands used to build and install a shared archive.
21200 archive_cmds=$lt_archive_cmds_CXX
21201 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21202 postinstall_cmds=$lt_postinstall_cmds
21203 postuninstall_cmds=$lt_postuninstall_cmds
21205 # Commands used to build a loadable module (assumed same as above if empty)
21206 module_cmds=$lt_module_cmds_CXX
21207 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21209 # Commands to strip libraries.
21210 old_striplib=$lt_old_striplib
21211 striplib=$lt_striplib
21213 # Dependencies to place before the objects being linked to create a
21215 predep_objects=$lt_predep_objects_CXX
21217 # Dependencies to place after the objects being linked to create a
21219 postdep_objects=$lt_postdep_objects_CXX
21221 # Dependencies to place before the objects being linked to create a
21223 predeps=$lt_predeps_CXX
21225 # Dependencies to place after the objects being linked to create a
21227 postdeps=$lt_postdeps_CXX
21229 # The library search path used internally by the compiler when linking
21230 # a shared library.
21231 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21233 # Method to check whether dependent libraries are shared objects.
21234 deplibs_check_method=$lt_deplibs_check_method
21236 # Command to use when deplibs_check_method == file_magic.
21237 file_magic_cmd=$lt_file_magic_cmd
21239 # Flag that allows shared libraries with undefined symbols to be built.
21240 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21242 # Flag that forces no undefined symbols.
21243 no_undefined_flag=$lt_no_undefined_flag_CXX
21245 # Commands used to finish a libtool library installation in a directory.
21246 finish_cmds=$lt_finish_cmds
21248 # Same as above, but a single script fragment to be evaled but not shown.
21249 finish_eval=$lt_finish_eval
21251 # Take the output of nm and produce a listing of raw symbols and C names.
21252 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21254 # Transform the output of nm in a proper C declaration
21255 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21257 # Transform the output of nm in a C name address pair
21258 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21260 # This is the shared library runtime path variable.
21261 runpath_var=$runpath_var
21263 # This is the shared library path variable.
21264 shlibpath_var=$shlibpath_var
21266 # Is shlibpath searched before the hard-coded library search path?
21267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21269 # How to hardcode a shared library path into an executable.
21270 hardcode_action=$hardcode_action_CXX
21272 # Whether we should hardcode library paths into libraries.
21273 hardcode_into_libs=$hardcode_into_libs
21275 # Flag to hardcode \$libdir into a binary during linking.
21276 # This must work even if \$libdir does not exist.
21277 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21279 # If ld is used when linking, flag to hardcode \$libdir into
21280 # a binary during linking. This must work even if \$libdir does
21282 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21284 # Whether we need a single -rpath flag with a separated argument.
21285 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21287 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21288 # resulting binary.
21289 hardcode_direct=$hardcode_direct_CXX
21291 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21292 # resulting binary.
21293 hardcode_minus_L=$hardcode_minus_L_CXX
21295 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21296 # the resulting binary.
21297 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21299 # Set to yes if building a shared library automatically hardcodes DIR into the library
21300 # and all subsequent libraries and executables linked against it.
21301 hardcode_automatic=$hardcode_automatic_CXX
21303 # Variables whose values should be saved in libtool wrapper scripts and
21304 # restored at relink time.
21305 variables_saved_for_relink="$variables_saved_for_relink"
21307 # Whether libtool must link a program against all its dependency libraries.
21308 link_all_deplibs=$link_all_deplibs_CXX
21310 # Compile-time system search path for libraries
21311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21313 # Run-time system search path for libraries
21314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21316 # Fix the shell variable \$srcfile for the compiler.
21317 fix_srcfile_path="$fix_srcfile_path_CXX"
21319 # Set to yes if exported symbols are required.
21320 always_export_symbols=$always_export_symbols_CXX
21322 # The commands to list exported symbols.
21323 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21325 # The commands to extract the exported symbol list from a shared archive.
21326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21328 # Symbols that should not be listed in the preloaded symbols.
21329 exclude_expsyms=$lt_exclude_expsyms_CXX
21331 # Symbols that must always be exported.
21332 include_expsyms=$lt_include_expsyms_CXX
21334 # ### END LIBTOOL TAG CONFIG: $tagname
21340 # If there is no Makefile yet, we rely on a make rule to execute
21341 # `config.status --recheck' to rerun these tests and create the
21342 # libtool script then.
21343 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21344 if test -f "$ltmain_in"; then
21345 test -f Makefile && make "$ltmain"
21351 ac_cpp='$CPP $CPPFLAGS'
21352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21360 with_gnu_ldcxx=$with_gnu_ld
21361 with_gnu_ld=$lt_save_with_gnu_ld
21362 lt_cv_path_LDCXX=$lt_cv_path_LD
21363 lt_cv_path_LD=$lt_save_path_LD
21364 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21365 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21373 if test -n "$F77" && test "X$F77" != "Xno"; then
21376 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21377 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21378 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21381 archive_cmds_need_lc_F77=no
21382 allow_undefined_flag_F77=
21383 always_export_symbols_F77=no
21384 archive_expsym_cmds_F77=
21385 export_dynamic_flag_spec_F77=
21386 hardcode_direct_F77=no
21387 hardcode_libdir_flag_spec_F77=
21388 hardcode_libdir_flag_spec_ld_F77=
21389 hardcode_libdir_separator_F77=
21390 hardcode_minus_L_F77=no
21391 hardcode_automatic_F77=no
21393 module_expsym_cmds_F77=
21394 link_all_deplibs_F77=unknown
21395 old_archive_cmds_F77=$old_archive_cmds
21396 no_undefined_flag_F77=
21397 whole_archive_flag_spec_F77=
21398 enable_shared_with_static_runtimes_F77=no
21400 # Source file extension for f77 test sources.
21403 # Object file extension for compiled f77 test sources.
21407 # Code to be used in simple compile tests
21408 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21410 # Code to be used in simple link tests
21411 lt_simple_link_test_code=" program t\n end\n"
21413 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21415 # If no C compiler was specified, use CC.
21418 # If no C compiler flags were specified, use CFLAGS.
21419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21421 # Allow CC to be a program name with arguments.
21425 # save warnings/boilerplate of simple test code
21426 ac_outfile=conftest.$ac_objext
21427 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21428 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21429 _lt_compiler_boilerplate=`cat conftest.err`
21432 ac_outfile=conftest.$ac_objext
21433 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21434 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21435 _lt_linker_boilerplate=`cat conftest.err`
21439 # Allow CC to be a program name with arguments.
21444 for cc_temp in $compiler""; do
21446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21452 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21455 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21456 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21457 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21458 echo "${ECHO_T}$can_build_shared" >&6; }
21460 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21461 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21462 test "$can_build_shared" = "no" && enable_shared=no
21464 # On AIX, shared libraries and static libraries use the same namespace, and
21465 # are all built from PIC.
21468 test "$enable_shared" = yes && enable_static=no
21469 if test -n "$RANLIB"; then
21470 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21471 postinstall_cmds='$RANLIB $lib'
21475 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21476 test "$enable_shared" = yes && enable_static=no
21480 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21481 echo "${ECHO_T}$enable_shared" >&6; }
21483 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21484 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21485 # Make sure either enable_shared or enable_static is yes.
21486 test "$enable_shared" = yes || enable_static=yes
21487 { echo "$as_me:$LINENO: result: $enable_static" >&5
21488 echo "${ECHO_T}$enable_static" >&6; }
21493 lt_prog_compiler_wl_F77=
21494 lt_prog_compiler_pic_F77=
21495 lt_prog_compiler_static_F77=
21497 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21498 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21500 if test "$GCC" = yes; then
21501 lt_prog_compiler_wl_F77='-Wl,'
21502 lt_prog_compiler_static_F77='-static'
21506 # All AIX code is PIC.
21507 if test "$host_cpu" = ia64; then
21508 # AIX 5 now supports IA64 processor
21509 lt_prog_compiler_static_F77='-Bstatic'
21514 # FIXME: we need at least 68020 code to build shared libraries, but
21515 # adding the `-m68020' flag to GCC prevents building anything better,
21517 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21521 # PIC is the default for these OSes.
21524 mingw* | pw32* | os2*)
21525 # This hack is so that the source file can tell whether it is being
21526 # built for inclusion in a dll (and should export symbols for example).
21527 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21530 darwin* | rhapsody*)
21531 # PIC is the default on this platform
21532 # Common symbols not allowed in MH_DYLIB files
21533 lt_prog_compiler_pic_F77='-fno-common'
21537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21538 # Instead, we relocate shared libraries at runtime.
21542 # Just because we use GCC doesn't mean we suddenly get shared libraries
21543 # on systems that don't support them.
21544 lt_prog_compiler_can_build_shared_F77=no
21549 if test -d /usr/nec; then
21550 lt_prog_compiler_pic_F77=-Kconform_pic
21555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21556 # not for PA HP-UX.
21562 lt_prog_compiler_pic_F77='-fPIC'
21568 lt_prog_compiler_pic_F77='-fPIC'
21572 # PORTME Check for flag to pass linker flags through the system compiler.
21575 lt_prog_compiler_wl_F77='-Wl,'
21576 if test "$host_cpu" = ia64; then
21577 # AIX 5 now supports IA64 processor
21578 lt_prog_compiler_static_F77='-Bstatic'
21580 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21584 # PIC is the default on this platform
21585 # Common symbols not allowed in MH_DYLIB files
21586 case $cc_basename in
21588 lt_prog_compiler_pic_F77='-qnocommon'
21589 lt_prog_compiler_wl_F77='-Wl,'
21594 mingw* | pw32* | os2*)
21595 # This hack is so that the source file can tell whether it is being
21596 # built for inclusion in a dll (and should export symbols for example).
21597 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21600 hpux9* | hpux10* | hpux11*)
21601 lt_prog_compiler_wl_F77='-Wl,'
21602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21603 # not for PA HP-UX.
21609 lt_prog_compiler_pic_F77='+Z'
21612 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21613 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21616 irix5* | irix6* | nonstopux*)
21617 lt_prog_compiler_wl_F77='-Wl,'
21618 # PIC (with -KPIC) is the default.
21619 lt_prog_compiler_static_F77='-non_shared'
21623 lt_prog_compiler_pic_F77='-KPIC'
21624 lt_prog_compiler_static_F77='-Bstatic'
21628 case $cc_basename in
21630 lt_prog_compiler_wl_F77='-Wl,'
21631 lt_prog_compiler_pic_F77='-KPIC'
21632 lt_prog_compiler_static_F77='-static'
21634 pgcc* | pgf77* | pgf90* | pgf95*)
21635 # Portland Group compilers (*not* the Pentium gcc compiler,
21636 # which looks to be a dead project)
21637 lt_prog_compiler_wl_F77='-Wl,'
21638 lt_prog_compiler_pic_F77='-fpic'
21639 lt_prog_compiler_static_F77='-Bstatic'
21642 lt_prog_compiler_wl_F77='-Wl,'
21643 # All Alpha code is PIC.
21644 lt_prog_compiler_static_F77='-non_shared'
21649 osf3* | osf4* | osf5*)
21650 lt_prog_compiler_wl_F77='-Wl,'
21651 # All OSF/1 code is PIC.
21652 lt_prog_compiler_static_F77='-non_shared'
21656 lt_prog_compiler_pic_F77='-KPIC'
21657 lt_prog_compiler_static_F77='-Bstatic'
21658 case $cc_basename in
21659 f77* | f90* | f95*)
21660 lt_prog_compiler_wl_F77='-Qoption ld ';;
21662 lt_prog_compiler_wl_F77='-Wl,';;
21667 lt_prog_compiler_wl_F77='-Qoption ld '
21668 lt_prog_compiler_pic_F77='-PIC'
21669 lt_prog_compiler_static_F77='-Bstatic'
21672 sysv4 | sysv4.2uw2* | sysv4.3*)
21673 lt_prog_compiler_wl_F77='-Wl,'
21674 lt_prog_compiler_pic_F77='-KPIC'
21675 lt_prog_compiler_static_F77='-Bstatic'
21679 if test -d /usr/nec ;then
21680 lt_prog_compiler_pic_F77='-Kconform_pic'
21681 lt_prog_compiler_static_F77='-Bstatic'
21685 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21686 lt_prog_compiler_wl_F77='-Wl,'
21687 lt_prog_compiler_pic_F77='-KPIC'
21688 lt_prog_compiler_static_F77='-Bstatic'
21692 lt_prog_compiler_wl_F77='-Wl,'
21693 lt_prog_compiler_can_build_shared_F77=no
21697 lt_prog_compiler_pic_F77='-pic'
21698 lt_prog_compiler_static_F77='-Bstatic'
21702 lt_prog_compiler_can_build_shared_F77=no
21707 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21708 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21711 # Check to make sure the PIC flag actually works.
21713 if test -n "$lt_prog_compiler_pic_F77"; then
21715 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21716 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21717 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21720 lt_prog_compiler_pic_works_F77=no
21721 ac_outfile=conftest.$ac_objext
21722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21723 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21724 # Insert the option either (1) after the last *FLAGS variable, or
21725 # (2) before a word containing "conftest.", or (3) at the end.
21726 # Note that $ac_compile itself does not contain backslashes and begins
21727 # with a dollar sign (not a hyphen), so the echo should work correctly.
21728 # The option is referenced via a variable to avoid confusing sed.
21729 lt_compile=`echo "$ac_compile" | $SED \
21730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21732 -e 's:$: $lt_compiler_flag:'`
21733 (eval echo "\"\$as_me:21733: $lt_compile\"" >&5)
21734 (eval "$lt_compile" 2>conftest.err)
21736 cat conftest.err >&5
21737 echo "$as_me:21737: \$? = $ac_status" >&5
21738 if (exit $ac_status) && test -s "$ac_outfile"; then
21739 # The compiler can only warn and ignore the option if not recognized
21740 # So say no if there are warnings other than the usual output.
21741 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21743 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21744 lt_prog_compiler_pic_works_F77=yes
21750 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21751 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21753 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21754 case $lt_prog_compiler_pic_F77 in
21756 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21759 lt_prog_compiler_pic_F77=
21760 lt_prog_compiler_can_build_shared_F77=no
21765 # For platforms which do not support PIC, -DPIC is meaningless:
21767 lt_prog_compiler_pic_F77=
21770 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21775 # Check to make sure the static flag actually works.
21777 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21778 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21779 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21780 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 lt_prog_compiler_static_works_F77=no
21784 save_LDFLAGS="$LDFLAGS"
21785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21786 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21788 # The linker can only warn and ignore the option if not recognized
21789 # So say no if there are warnings
21790 if test -s conftest.err; then
21791 # Append any errors to the config.log.
21792 cat conftest.err 1>&5
21793 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21795 if diff conftest.exp conftest.er2 >/dev/null; then
21796 lt_prog_compiler_static_works_F77=yes
21799 lt_prog_compiler_static_works_F77=yes
21803 LDFLAGS="$save_LDFLAGS"
21806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21807 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21809 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21812 lt_prog_compiler_static_F77=
21816 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21818 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21821 lt_cv_prog_compiler_c_o_F77=no
21822 $rm -r conftest 2>/dev/null
21826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21828 lt_compiler_flag="-o out/conftest2.$ac_objext"
21829 # Insert the option either (1) after the last *FLAGS variable, or
21830 # (2) before a word containing "conftest.", or (3) at the end.
21831 # Note that $ac_compile itself does not contain backslashes and begins
21832 # with a dollar sign (not a hyphen), so the echo should work correctly.
21833 lt_compile=`echo "$ac_compile" | $SED \
21834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21836 -e 's:$: $lt_compiler_flag:'`
21837 (eval echo "\"\$as_me:21837: $lt_compile\"" >&5)
21838 (eval "$lt_compile" 2>out/conftest.err)
21840 cat out/conftest.err >&5
21841 echo "$as_me:21841: \$? = $ac_status" >&5
21842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21844 # The compiler can only warn and ignore the option if not recognized
21845 # So say no if there are warnings
21846 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21849 lt_cv_prog_compiler_c_o_F77=yes
21854 # SGI C++ compiler will create directory out/ii_files/ for
21855 # template instantiation
21856 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21857 $rm out/* && rmdir out
21863 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21864 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21867 hard_links="nottested"
21868 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21869 # do not overwrite the value of need_locks provided by the user
21870 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21871 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21876 ln conftest.a conftest.b 2>&5 || hard_links=no
21877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21878 { echo "$as_me:$LINENO: result: $hard_links" >&5
21879 echo "${ECHO_T}$hard_links" >&6; }
21880 if test "$hard_links" = no; then
21881 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21882 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21889 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21890 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21893 allow_undefined_flag_F77=
21894 enable_shared_with_static_runtimes_F77=no
21896 archive_expsym_cmds_F77=
21897 old_archive_From_new_cmds_F77=
21898 old_archive_from_expsyms_cmds_F77=
21899 export_dynamic_flag_spec_F77=
21900 whole_archive_flag_spec_F77=
21901 thread_safe_flag_spec_F77=
21902 hardcode_libdir_flag_spec_F77=
21903 hardcode_libdir_flag_spec_ld_F77=
21904 hardcode_libdir_separator_F77=
21905 hardcode_direct_F77=no
21906 hardcode_minus_L_F77=no
21907 hardcode_shlibpath_var_F77=unsupported
21908 link_all_deplibs_F77=unknown
21909 hardcode_automatic_F77=no
21911 module_expsym_cmds_F77=
21912 always_export_symbols_F77=no
21913 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21914 # include_expsyms should be a list of space-separated symbols to be *always*
21915 # included in the symbol list
21916 include_expsyms_F77=
21917 # exclude_expsyms can be an extended regexp of symbols to exclude
21918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21920 # as well as any symbol that contains `d'.
21921 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21923 # platforms (ab)use it in PIC code, but their linkers get confused if
21924 # the symbol is explicitly referenced. Since portable code cannot
21925 # rely on this symbol name, it's probably fine to never include it in
21926 # preloaded symbol tables.
21927 extract_expsyms_cmds=
21928 # Just being paranoid about ensuring that cc_basename is set.
21929 for cc_temp in $compiler""; do
21931 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21932 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21937 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21940 cygwin* | mingw* | pw32*)
21941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21942 # When not using gcc, we currently assume that we are using
21943 # Microsoft Visual C++.
21944 if test "$GCC" != yes; then
21949 # we just hope/assume this is gcc and not c89 (= MSVC++)
21958 if test "$with_gnu_ld" = yes; then
21959 # If archive_cmds runs LD, not CC, wlarc should be empty
21962 # Set some defaults for GNU ld with shared library support. These
21963 # are reset later if shared libraries are not supported. Putting them
21964 # here allows them to be overridden if necessary.
21965 runpath_var=LD_RUN_PATH
21966 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21967 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21968 # ancient GNU ld didn't support --whole-archive et. al.
21969 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21970 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21972 whole_archive_flag_spec_F77=
21974 supports_anon_versioning=no
21975 case `$LD -v 2>/dev/null` in
21976 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21977 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21978 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21979 *\ 2.11.*) ;; # other 2.11 versions
21980 *) supports_anon_versioning=yes ;;
21983 # See if GNU ld supports shared libraries.
21985 aix3* | aix4* | aix5*)
21986 # On AIX/PPC, the GNU linker is very broken
21987 if test "$host_cpu" != ia64; then
21991 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21992 *** to be unable to reliably create shared libraries on AIX.
21993 *** Therefore, libtool is disabling shared libraries support. If you
21994 *** really care for shared libraries, you may want to modify your PATH
21995 *** so that a non-GNU linker is found, and then restart.
22002 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)'
22003 hardcode_libdir_flag_spec_F77='-L$libdir'
22004 hardcode_minus_L_F77=yes
22006 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22007 # that the semantics of dynamic libraries on AmigaOS, at least up
22008 # to version 4, is to share data among multiple programs linked
22009 # with the same dynamic library. Since this doesn't match the
22010 # behavior of shared libraries on other platforms, we can't use
22016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22017 allow_undefined_flag_F77=unsupported
22018 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22019 # support --undefined. This deserves some investigation. FIXME
22020 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22026 cygwin* | mingw* | pw32*)
22027 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22028 # as there is no search path for DLLs.
22029 hardcode_libdir_flag_spec_F77='-L$libdir'
22030 allow_undefined_flag_F77=unsupported
22031 always_export_symbols_F77=no
22032 enable_shared_with_static_runtimes_F77=yes
22033 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22035 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22036 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22037 # If the export-symbols file already is a .def file (1st line
22038 # is EXPORTS), use it as is; otherwise, prepend...
22039 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22040 cp $export_symbols $output_objdir/$soname.def;
22042 echo EXPORTS > $output_objdir/$soname.def;
22043 cat $export_symbols >> $output_objdir/$soname.def;
22045 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22052 hardcode_direct_F77=no
22053 hardcode_shlibpath_var_F77=no
22054 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22055 export_dynamic_flag_spec_F77='${wl}-E'
22056 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22057 # Instead, shared libraries are loaded at an image base (0x10000000 by
22058 # default) and relocated if they conflict, which is a slow very memory
22059 # consuming and fragmenting process. To avoid this, we pick a random,
22060 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22061 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22062 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'
22063 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'
22067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22069 case $cc_basename,$host_cpu in
22070 pgcc*) # Portland Group C compiler
22071 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'
22072 tmp_addflag=' $pic_flag'
22074 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22075 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'
22076 tmp_addflag=' $pic_flag -Mnomain' ;;
22077 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22078 tmp_addflag=' -i_dynamic' ;;
22079 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22080 tmp_addflag=' -i_dynamic -nofor_main' ;;
22081 ifc* | ifort*) # Intel Fortran compiler
22082 tmp_addflag=' -nofor_main' ;;
22084 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22086 if test $supports_anon_versioning = yes; then
22087 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22089 $echo "local: *; };" >> $output_objdir/$libname.ver~
22090 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22099 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22102 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22103 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22108 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22113 *** create shared libraries on Solaris systems. Therefore, libtool
22114 *** is disabling shared libraries support. We urge you to upgrade GNU
22115 *** binutils to release 2.9.1 or newer. Another option is to modify
22116 *** your PATH or compiler configuration so that the native linker is
22117 *** used, and then restart.
22120 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22122 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22129 case `$LD -v 2>&1` in
22130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22135 *** reliably create shared libraries on SCO systems. Therefore, libtool
22136 *** is disabling shared libraries support. We urge you to upgrade GNU
22137 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22138 *** your PATH or compiler configuration so that the native linker is
22139 *** used, and then restart.
22144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22145 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22146 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22147 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22156 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22158 hardcode_direct_F77=yes
22159 hardcode_shlibpath_var_F77=no
22163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22164 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22165 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22172 if test "$ld_shlibs_F77" = no; then
22174 hardcode_libdir_flag_spec_F77=
22175 export_dynamic_flag_spec_F77=
22176 whole_archive_flag_spec_F77=
22179 # PORTME fill in a description of your system's linker (not GNU ld)
22182 allow_undefined_flag_F77=unsupported
22183 always_export_symbols_F77=yes
22184 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'
22185 # Note: this linker hardcodes the directories in LIBPATH if there
22186 # are no directories specified by -L.
22187 hardcode_minus_L_F77=yes
22188 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22189 # Neither direct hardcoding nor static linking is supported with a
22191 hardcode_direct_F77=unsupported
22196 if test "$host_cpu" = ia64; then
22197 # On IA64, the linker does run time linking by default, so we don't
22198 # have to do anything special.
22199 aix_use_runtimelinking=no
22200 exp_sym_flag='-Bexport'
22203 # If we're using GNU nm, then we don't want the "-C" option.
22204 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22205 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22206 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'
22208 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'
22210 aix_use_runtimelinking=no
22212 # Test if we are trying to use run time linking or normal
22213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22214 # need to do runtime linking.
22215 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22216 for ld_flag in $LDFLAGS; do
22217 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22218 aix_use_runtimelinking=yes
22225 exp_sym_flag='-bexport'
22226 no_entry_flag='-bnoentry'
22229 # When large executables or shared objects are built, AIX ld can
22230 # have problems creating the table of contents. If linking a library
22231 # or program results in "error TOC overflow" add -mminimal-toc to
22232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22235 archive_cmds_F77=''
22236 hardcode_direct_F77=yes
22237 hardcode_libdir_separator_F77=':'
22238 link_all_deplibs_F77=yes
22240 if test "$GCC" = yes; then
22241 case $host_os in aix4.[012]|aix4.[012].*)
22242 # We only want to do this on AIX 4.2 and lower, the check
22243 # below for broken collect2 doesn't work under 4.3+
22244 collect2name=`${CC} -print-prog-name=collect2`
22245 if test -f "$collect2name" && \
22246 strings "$collect2name" | grep resolve_lib_name >/dev/null
22248 # We have reworked collect2
22249 hardcode_direct_F77=yes
22251 # We have old collect2
22252 hardcode_direct_F77=unsupported
22253 # It fails to find uninstalled libraries when the uninstalled
22254 # path is not listed in the libpath. Setting hardcode_minus_L
22255 # to unsupported forces relinking
22256 hardcode_minus_L_F77=yes
22257 hardcode_libdir_flag_spec_F77='-L$libdir'
22258 hardcode_libdir_separator_F77=
22262 shared_flag='-shared'
22263 if test "$aix_use_runtimelinking" = yes; then
22264 shared_flag="$shared_flag "'${wl}-G'
22268 if test "$host_cpu" = ia64; then
22269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22270 # chokes on -Wl,-G. The following line is correct:
22273 if test "$aix_use_runtimelinking" = yes; then
22274 shared_flag='${wl}-G'
22276 shared_flag='${wl}-bM:SRE'
22281 # It seems that -bexpall does not export symbols beginning with
22282 # underscore (_), so it is better to generate a list of symbols to export.
22283 always_export_symbols_F77=yes
22284 if test "$aix_use_runtimelinking" = yes; then
22285 # Warning - without using the other runtime loading flags (-brtl),
22286 # -berok will link without error, but may produce a broken library.
22287 allow_undefined_flag_F77='-berok'
22288 # Determine the default libpath from the value encoded in an empty executable.
22289 cat >conftest.$ac_ext <<_ACEOF
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (ac_try="$ac_link"
22296 case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_link") 2>conftest.er1
22303 grep -v '^ *+' conftest.er1 >conftest.err
22305 cat conftest.err >&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } &&
22308 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22309 { (case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_try") 2>&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest$ac_exeext'
22319 { (case "(($ac_try" in
22320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324 (eval "$ac_try") 2>&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
22329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22331 # Check for a 64-bit object if we didn't find anything.
22332 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; }
22335 echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22341 rm -f core conftest.err conftest.$ac_objext \
22342 conftest$ac_exeext conftest.$ac_ext
22343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22345 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22346 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"
22348 if test "$host_cpu" = ia64; then
22349 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22350 allow_undefined_flag_F77="-z nodefs"
22351 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"
22353 # Determine the default libpath from the value encoded in an empty executable.
22354 cat >conftest.$ac_ext <<_ACEOF
22359 rm -f conftest.$ac_objext conftest$ac_exeext
22360 if { (ac_try="$ac_link"
22361 case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_link") 2>conftest.er1
22368 grep -v '^ *+' conftest.er1 >conftest.err
22370 cat conftest.err >&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } &&
22373 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22374 { (case "(($ac_try" in
22375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22379 (eval "$ac_try") 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } &&
22383 { ac_try='test -s conftest$ac_exeext'
22384 { (case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_try") 2>&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; }; then
22394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22396 # Check for a 64-bit object if we didn't find anything.
22397 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; }
22400 echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22406 rm -f core conftest.err conftest.$ac_objext \
22407 conftest$ac_exeext conftest.$ac_ext
22408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22410 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22411 # Warning - without using the other run time loading flags,
22412 # -berok will link without error, but may produce a broken library.
22413 no_undefined_flag_F77=' ${wl}-bernotok'
22414 allow_undefined_flag_F77=' ${wl}-berok'
22415 # Exported symbols can be pulled into shared objects from archives
22416 whole_archive_flag_spec_F77='$convenience'
22417 archive_cmds_need_lc_F77=yes
22418 # This is similar to how AIX traditionally builds its shared libraries.
22419 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'
22425 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)'
22426 hardcode_libdir_flag_spec_F77='-L$libdir'
22427 hardcode_minus_L_F77=yes
22428 # see comment about different semantics on the GNU ld section
22433 export_dynamic_flag_spec_F77=-rdynamic
22436 cygwin* | mingw* | pw32*)
22437 # When not using gcc, we currently assume that we are using
22438 # Microsoft Visual C++.
22439 # hardcode_libdir_flag_spec is actually meaningless, as there is
22440 # no search path for DLLs.
22441 hardcode_libdir_flag_spec_F77=' '
22442 allow_undefined_flag_F77=unsupported
22443 # Tell ltmain to make .lib files, not .a files.
22445 # Tell ltmain to make .dll files, not .so files.
22447 # FIXME: Setting linknames here is a bad hack.
22448 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22449 # The linker will automatically build a .lib file if we build a DLL.
22450 old_archive_From_new_cmds_F77='true'
22451 # FIXME: Should let the user specify the lib program.
22452 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22453 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22454 enable_shared_with_static_runtimes_F77=yes
22457 darwin* | rhapsody*)
22459 rhapsody* | darwin1.[012])
22460 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22464 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22466 case ${MACOSX_DEPLOYMENT_TARGET} in
22468 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22471 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22477 archive_cmds_need_lc_F77=no
22478 hardcode_direct_F77=no
22479 hardcode_automatic_F77=yes
22480 hardcode_shlibpath_var_F77=unsupported
22481 whole_archive_flag_spec_F77=''
22482 link_all_deplibs_F77=yes
22483 if test "$GCC" = yes ; then
22484 output_verbose_link_cmd='echo'
22485 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22486 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22488 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}'
22489 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}'
22491 case $cc_basename in
22493 output_verbose_link_cmd='echo'
22494 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22495 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22496 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22497 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}'
22498 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}'
22508 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22509 hardcode_libdir_flag_spec_F77='-L$libdir'
22510 hardcode_shlibpath_var_F77=no
22517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22518 # support. Future versions do this automatically, but an explicit c++rt0.o
22519 # does not break anything, and helps significantly (at the cost of a little
22522 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22523 hardcode_libdir_flag_spec_F77='-R$libdir'
22524 hardcode_direct_F77=yes
22525 hardcode_shlibpath_var_F77=no
22528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22530 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22531 hardcode_direct_F77=yes
22532 hardcode_minus_L_F77=yes
22533 hardcode_shlibpath_var_F77=no
22536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22537 freebsd* | kfreebsd*-gnu | dragonfly*)
22538 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22539 hardcode_libdir_flag_spec_F77='-R$libdir'
22540 hardcode_direct_F77=yes
22541 hardcode_shlibpath_var_F77=no
22545 if test "$GCC" = yes; then
22546 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'
22548 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'
22550 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22551 hardcode_libdir_separator_F77=:
22552 hardcode_direct_F77=yes
22554 # hardcode_minus_L: Not really in the search PATH,
22555 # but as the default location of the library.
22556 hardcode_minus_L_F77=yes
22557 export_dynamic_flag_spec_F77='${wl}-E'
22561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22562 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22564 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22566 if test "$with_gnu_ld" = no; then
22567 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22568 hardcode_libdir_separator_F77=:
22570 hardcode_direct_F77=yes
22571 export_dynamic_flag_spec_F77='${wl}-E'
22573 # hardcode_minus_L: Not really in the search PATH,
22574 # but as the default location of the library.
22575 hardcode_minus_L_F77=yes
22580 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22583 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22586 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22589 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22595 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22598 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22601 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22605 if test "$with_gnu_ld" = no; then
22606 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22607 hardcode_libdir_separator_F77=:
22611 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22612 hardcode_direct_F77=no
22613 hardcode_shlibpath_var_F77=no
22616 hardcode_direct_F77=yes
22617 export_dynamic_flag_spec_F77='${wl}-E'
22619 # hardcode_minus_L: Not really in the search PATH,
22620 # but as the default location of the library.
22621 hardcode_minus_L_F77=yes
22627 irix5* | irix6* | nonstopux*)
22628 if test "$GCC" = yes; then
22629 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'
22631 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'
22632 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22634 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22635 hardcode_libdir_separator_F77=:
22636 link_all_deplibs_F77=yes
22640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22641 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22643 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22645 hardcode_libdir_flag_spec_F77='-R$libdir'
22646 hardcode_direct_F77=yes
22647 hardcode_shlibpath_var_F77=no
22651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22652 hardcode_direct_F77=yes
22653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22654 hardcode_libdir_separator_F77=:
22655 hardcode_shlibpath_var_F77=no
22659 hardcode_direct_F77=yes
22660 hardcode_shlibpath_var_F77=no
22661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22662 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22663 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22664 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22665 export_dynamic_flag_spec_F77='${wl}-E'
22668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22669 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22670 hardcode_libdir_flag_spec_F77='-R$libdir'
22673 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22674 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22681 hardcode_libdir_flag_spec_F77='-L$libdir'
22682 hardcode_minus_L_F77=yes
22683 allow_undefined_flag_F77=unsupported
22684 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'
22685 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22689 if test "$GCC" = yes; then
22690 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22691 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'
22693 allow_undefined_flag_F77=' -expect_unresolved \*'
22694 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'
22696 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22697 hardcode_libdir_separator_F77=:
22700 osf4* | osf5*) # as osf3* with the addition of -msym flag
22701 if test "$GCC" = yes; then
22702 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22703 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'
22704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22706 allow_undefined_flag_F77=' -expect_unresolved \*'
22707 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'
22708 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~
22709 $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'
22711 # Both c and cxx compiler support -rpath directly
22712 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22714 hardcode_libdir_separator_F77=:
22718 no_undefined_flag_F77=' -z text'
22719 if test "$GCC" = yes; then
22721 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22722 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22723 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22726 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22730 hardcode_libdir_flag_spec_F77='-R$libdir'
22731 hardcode_shlibpath_var_F77=no
22733 solaris2.[0-5] | solaris2.[0-5].*) ;;
22735 # The compiler driver will combine linker options so we
22736 # cannot just pass the convience library names through
22737 # without $wl, iff we do not link with $LD.
22738 # Luckily, gcc supports the same syntax we need for Sun Studio.
22739 # Supported since Solaris 2.6 (maybe 2.5.1?)
22742 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22744 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' ;;
22747 link_all_deplibs_F77=yes
22751 if test "x$host_vendor" = xsequent; then
22752 # Use $CC to link under sequent, because it throws in some extra .o
22753 # files that make .init and .fini sections work.
22754 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22756 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22758 hardcode_libdir_flag_spec_F77='-L$libdir'
22759 hardcode_direct_F77=yes
22760 hardcode_minus_L_F77=yes
22761 hardcode_shlibpath_var_F77=no
22765 case $host_vendor in
22767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22768 hardcode_direct_F77=yes # is this really true???
22771 ## LD is ld it makes a PLAMLIB
22772 ## CC just makes a GrossModule.
22773 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22774 reload_cmds_F77='$CC -r -o $output$reload_objs'
22775 hardcode_direct_F77=no
22778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22779 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22782 runpath_var='LD_RUN_PATH'
22783 hardcode_shlibpath_var_F77=no
22787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22788 hardcode_shlibpath_var_F77=no
22789 export_dynamic_flag_spec_F77='-Bexport'
22793 if test -d /usr/nec; then
22794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22795 hardcode_shlibpath_var_F77=no
22796 runpath_var=LD_RUN_PATH
22797 hardcode_runpath_var=yes
22802 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22803 no_undefined_flag_F77='${wl}-z,text'
22804 archive_cmds_need_lc_F77=no
22805 hardcode_shlibpath_var_F77=no
22806 runpath_var='LD_RUN_PATH'
22808 if test "$GCC" = yes; then
22809 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22810 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22812 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22813 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22817 sysv5* | sco3.2v5* | sco5v6*)
22818 # Note: We can NOT use -z defs as we might desire, because we do not
22819 # link with -lc, and that would cause any symbols used from libc to
22820 # always be unresolved, which means just about no library would
22821 # ever link correctly. If we're not using GNU ld we use -z text
22822 # though, which does catch some bad symbols but isn't as heavy-handed
22824 no_undefined_flag_F77='${wl}-z,text'
22825 allow_undefined_flag_F77='${wl}-z,nodefs'
22826 archive_cmds_need_lc_F77=no
22827 hardcode_shlibpath_var_F77=no
22828 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22829 hardcode_libdir_separator_F77=':'
22830 link_all_deplibs_F77=yes
22831 export_dynamic_flag_spec_F77='${wl}-Bexport'
22832 runpath_var='LD_RUN_PATH'
22834 if test "$GCC" = yes; then
22835 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22836 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22838 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22839 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22844 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22845 hardcode_libdir_flag_spec_F77='-L$libdir'
22846 hardcode_shlibpath_var_F77=no
22855 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22856 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22857 test "$ld_shlibs_F77" = no && can_build_shared=no
22860 # Do we need to explicitly link libc?
22862 case "x$archive_cmds_need_lc_F77" in
22864 # Assume -lc should be added
22865 archive_cmds_need_lc_F77=yes
22867 if test "$enable_shared" = yes && test "$GCC" = yes; then
22868 case $archive_cmds_F77 in
22870 # FIXME: we may have to deal with multi-command sequences.
22873 # Test whether the compiler implicitly links with -lc since on some
22874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22875 # to ld, don't add -lc before -lgcc.
22876 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22877 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22882 (eval $ac_compile) 2>&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } 2>conftest.err; then
22888 libobjs=conftest.$ac_objext
22890 wl=$lt_prog_compiler_wl_F77
22891 pic_flag=$lt_prog_compiler_pic_F77
22897 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22898 allow_undefined_flag_F77=
22899 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22900 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }
22905 archive_cmds_need_lc_F77=no
22907 archive_cmds_need_lc_F77=yes
22909 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22911 cat conftest.err 1>&5
22914 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22915 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22922 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22923 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22924 library_names_spec=
22925 libname_spec='lib$name'
22929 postuninstall_cmds=
22933 shlibpath_overrides_runpath=unknown
22935 dynamic_linker="$host_os ld.so"
22936 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22937 if test "$GCC" = yes; then
22938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22939 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22940 # if the path contains ";" then we assume it to be the separator
22941 # otherwise default to the standard path separator (i.e. ":") - it is
22942 # assumed that no part of a normal pathname contains ";" but that should
22943 # okay in the real world where ";" in dirpaths is itself problematic.
22944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22949 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22951 need_lib_prefix=unknown
22952 hardcode_into_libs=no
22954 # when you set need_version to no, make sure it does not cause -set_version
22955 # flags to be left without arguments
22956 need_version=unknown
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22962 shlibpath_var=LIBPATH
22964 # AIX 3 has no versioning support, so we append a major version to the name.
22965 soname_spec='${libname}${release}${shared_ext}$major'
22972 hardcode_into_libs=yes
22973 if test "$host_cpu" = ia64; then
22974 # AIX 5 supports IA64
22975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22976 shlibpath_var=LD_LIBRARY_PATH
22978 # With GCC up to 2.95.x, collect2 would create an import file
22979 # for dependence libraries. The import file would start with
22980 # the line `#! .'. This would cause the generated library to
22981 # depend on `.', always an invalid library. This was fixed in
22982 # development snapshots of GCC prior to 3.0.
22984 aix4 | aix4.[01] | aix4.[01].*)
22985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22987 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22990 can_build_shared=no
22994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22995 # soname into executable. Probably we can add versioning support to
22996 # collect2, so additional links can be useful in future.
22997 if test "$aix_use_runtimelinking" = yes; then
22998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22999 # instead of lib<name>.a to let people know that these are not
23000 # typical AIX shared libraries.
23001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23003 # We preserve .a as extension for shared libraries through AIX4.2
23004 # and later when we are not doing run time linking.
23005 library_names_spec='${libname}${release}.a $libname.a'
23006 soname_spec='${libname}${release}${shared_ext}$major'
23008 shlibpath_var=LIBPATH
23013 library_names_spec='$libname.ixlibrary $libname.a'
23014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23015 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'
23019 library_names_spec='${libname}${shared_ext}'
23020 dynamic_linker="$host_os ld.so"
23021 shlibpath_var=LIBRARY_PATH
23027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23028 soname_spec='${libname}${release}${shared_ext}$major'
23029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23030 shlibpath_var=LD_LIBRARY_PATH
23031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23033 # the default ld.so.conf also contains /usr/contrib/lib and
23034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23035 # libtool to hard-code these into programs
23038 cygwin* | mingw* | pw32*)
23039 version_type=windows
23044 case $GCC,$host_os in
23045 yes,cygwin* | yes,mingw* | yes,pw32*)
23046 library_names_spec='$libname.dll.a'
23047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23048 postinstall_cmds='base_file=`basename \${file}`~
23049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23050 dldir=$destdir/`dirname \$dlpath`~
23051 test -d \$dldir || mkdir -p \$dldir~
23052 $install_prog $dir/$dlname \$dldir/$dlname~
23053 chmod a+x \$dldir/$dlname'
23054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23055 dlpath=$dir/\$dldll~
23057 shlibpath_overrides_runpath=yes
23061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23062 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23063 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23066 # MinGW DLLs use traditional 'lib' prefix
23067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23069 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23070 # It is most probably a Windows format PATH printed by
23071 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23072 # path with ; separators, and with drive letters. We can handle the
23073 # drive letters (cygwin fileutils understands them), so leave them,
23074 # especially as we might pass files found there to a mingw objdump,
23075 # which wouldn't understand a cygwinified path. Ahh.
23076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23082 # pw32 DLLs use 'pw' prefix rather than 'lib'
23083 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23089 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23092 dynamic_linker='Win32 ld.exe'
23093 # FIXME: first we should search . and the directory the executable is in
23097 darwin* | rhapsody*)
23098 dynamic_linker="$host_os dyld"
23099 version_type=darwin
23102 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23103 soname_spec='${libname}${release}${major}$shared_ext'
23104 shlibpath_overrides_runpath=yes
23105 shlibpath_var=DYLD_LIBRARY_PATH
23106 shrext_cmds='.dylib'
23107 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23108 if test "$GCC" = yes; then
23109 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"`
23111 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23121 soname_spec='${libname}${release}${shared_ext}$major'
23122 shlibpath_var=LD_LIBRARY_PATH
23133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23134 soname_spec='${libname}${release}${shared_ext}$major'
23135 shlibpath_var=LD_LIBRARY_PATH
23136 shlibpath_overrides_runpath=no
23137 hardcode_into_libs=yes
23138 dynamic_linker='GNU ld.so'
23141 freebsd* | dragonfly*)
23142 # DragonFly does not have aout. When/if they implement a new
23143 # versioning mechanism, adjust this.
23144 if test -x /usr/bin/objformat; then
23145 objformat=`/usr/bin/objformat`
23148 freebsd[123]*) objformat=aout ;;
23149 *) objformat=elf ;;
23152 version_type=freebsd-$objformat
23153 case $version_type in
23155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23164 shlibpath_var=LD_LIBRARY_PATH
23167 shlibpath_overrides_runpath=yes
23169 freebsd3.[01]* | freebsdelf3.[01]*)
23170 shlibpath_overrides_runpath=yes
23171 hardcode_into_libs=yes
23173 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23174 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23175 shlibpath_overrides_runpath=no
23176 hardcode_into_libs=yes
23178 freebsd*) # from 4.6 on
23179 shlibpath_overrides_runpath=yes
23180 hardcode_into_libs=yes
23189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23190 soname_spec='${libname}${release}${shared_ext}$major'
23191 shlibpath_var=LD_LIBRARY_PATH
23192 hardcode_into_libs=yes
23195 hpux9* | hpux10* | hpux11*)
23196 # Give a soname corresponding to the major version so that dld.sl refuses to
23197 # link against other versions.
23204 hardcode_into_libs=yes
23205 dynamic_linker="$host_os dld.so"
23206 shlibpath_var=LD_LIBRARY_PATH
23207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209 soname_spec='${libname}${release}${shared_ext}$major'
23210 if test "X$HPUX_IA64_MODE" = X32; then
23211 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23213 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23219 hardcode_into_libs=yes
23220 dynamic_linker="$host_os dld.sl"
23221 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23224 soname_spec='${libname}${release}${shared_ext}$major'
23225 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23230 dynamic_linker="$host_os dld.sl"
23231 shlibpath_var=SHLIB_PATH
23232 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23234 soname_spec='${libname}${release}${shared_ext}$major'
23237 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23238 postinstall_cmds='chmod 555 $lib'
23245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23246 soname_spec='${libname}${release}${shared_ext}$major'
23247 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23248 shlibpath_var=LD_LIBRARY_PATH
23249 shlibpath_overrides_runpath=no
23250 hardcode_into_libs=yes
23253 irix5* | irix6* | nonstopux*)
23255 nonstopux*) version_type=nonstopux ;;
23257 if test "$lt_cv_prog_gnu_ld" = yes; then
23265 soname_spec='${libname}${release}${shared_ext}$major'
23266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23268 irix5* | nonstopux*)
23269 libsuff= shlibsuff=
23272 case $LD in # libtool.m4 will add one of these switches to LD
23273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23274 libsuff= shlibsuff= libmagic=32-bit;;
23275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23276 libsuff=32 shlibsuff=N32 libmagic=N32;;
23277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23279 *) libsuff= shlibsuff= libmagic=never-match;;
23283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23284 shlibpath_overrides_runpath=no
23285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23287 hardcode_into_libs=yes
23290 # No shared lib support for Linux oldld, aout, or coff.
23291 linux*oldld* | linux*aout* | linux*coff*)
23295 # This must be Linux ELF.
23300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23301 soname_spec='${libname}${release}${shared_ext}$major'
23302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23303 shlibpath_var=LD_LIBRARY_PATH
23304 shlibpath_overrides_runpath=no
23305 # This implies no fast_install, which is unacceptable.
23306 # Some rework will be needed to allow for fast_install
23307 # before this can be enabled.
23308 hardcode_into_libs=yes
23310 # Append ld.so.conf contents to the search path
23311 if test -f /etc/ld.so.conf; then
23312 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' ' '`
23313 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23316 # We used to test for /lib/ld.so.1 and disable shared libraries on
23317 # powerpc, because MkLinux only supported shared libraries with the
23318 # GNU dynamic linker. Since this was broken with cross compilers,
23319 # most powerpc-linux boxes support dynamic linking these days and
23320 # people can always --disable-shared, the test was removed, and we
23321 # assume the GNU/Linux dynamic linker is in use.
23322 dynamic_linker='GNU/Linux ld.so'
23329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23330 soname_spec='${libname}${release}${shared_ext}$major'
23331 shlibpath_var=LD_LIBRARY_PATH
23332 shlibpath_overrides_runpath=no
23333 hardcode_into_libs=yes
23334 dynamic_linker='GNU ld.so'
23341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23344 dynamic_linker='NetBSD (a.out) ld.so'
23346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23347 soname_spec='${libname}${release}${shared_ext}$major'
23348 dynamic_linker='NetBSD ld.elf_so'
23350 shlibpath_var=LD_LIBRARY_PATH
23351 shlibpath_overrides_runpath=yes
23352 hardcode_into_libs=yes
23357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23358 shlibpath_var=LD_LIBRARY_PATH
23359 shlibpath_overrides_runpath=yes
23366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23367 soname_spec='${libname}${release}${shared_ext}$major'
23368 shlibpath_var=LD_LIBRARY_PATH
23369 shlibpath_overrides_runpath=yes
23374 sys_lib_dlsearch_path_spec="/usr/lib"
23376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23378 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23379 *) need_version=no ;;
23381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23383 shlibpath_var=LD_LIBRARY_PATH
23384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23386 openbsd2.[89] | openbsd2.[89].*)
23387 shlibpath_overrides_runpath=no
23390 shlibpath_overrides_runpath=yes
23394 shlibpath_overrides_runpath=yes
23399 libname_spec='$name'
23402 library_names_spec='$libname${shared_ext} $libname.a'
23403 dynamic_linker='OS/2 ld.exe'
23404 shlibpath_var=LIBPATH
23407 osf3* | osf4* | osf5*)
23411 soname_spec='${libname}${release}${shared_ext}$major'
23412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23413 shlibpath_var=LD_LIBRARY_PATH
23414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23423 soname_spec='${libname}${release}${shared_ext}$major'
23424 shlibpath_var=LD_LIBRARY_PATH
23425 shlibpath_overrides_runpath=yes
23426 hardcode_into_libs=yes
23427 # ldd complains unless libraries are executable
23428 postinstall_cmds='chmod +x $lib'
23433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23434 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23435 shlibpath_var=LD_LIBRARY_PATH
23436 shlibpath_overrides_runpath=yes
23437 if test "$with_gnu_ld" = yes; then
23445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23446 soname_spec='${libname}${release}${shared_ext}$major'
23447 shlibpath_var=LD_LIBRARY_PATH
23448 case $host_vendor in
23450 shlibpath_overrides_runpath=no
23452 export_dynamic_flag_spec='${wl}-Blargedynsym'
23453 runpath_var=LD_RUN_PATH
23461 shlibpath_overrides_runpath=no
23462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23468 if test -d /usr/nec ;then
23470 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23471 soname_spec='$libname${shared_ext}.$major'
23472 shlibpath_var=LD_LIBRARY_PATH
23476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23477 version_type=freebsd-elf
23480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23481 soname_spec='${libname}${release}${shared_ext}$major'
23482 shlibpath_var=LD_LIBRARY_PATH
23483 hardcode_into_libs=yes
23484 if test "$with_gnu_ld" = yes; then
23485 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23486 shlibpath_overrides_runpath=no
23488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23489 shlibpath_overrides_runpath=yes
23492 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23496 sys_lib_dlsearch_path_spec='/usr/lib'
23501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23502 soname_spec='${libname}${release}${shared_ext}$major'
23503 shlibpath_var=LD_LIBRARY_PATH
23510 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23511 echo "${ECHO_T}$dynamic_linker" >&6; }
23512 test "$dynamic_linker" = no && can_build_shared=no
23514 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23515 if test "$GCC" = yes; then
23516 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23519 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23521 hardcode_action_F77=
23522 if test -n "$hardcode_libdir_flag_spec_F77" || \
23523 test -n "$runpath_var_F77" || \
23524 test "X$hardcode_automatic_F77" = "Xyes" ; then
23526 # We can hardcode non-existant directories.
23527 if test "$hardcode_direct_F77" != no &&
23528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23529 # have to relink, otherwise we might link with an installed library
23530 # when we should be linking with a yet-to-be-installed one
23531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23532 test "$hardcode_minus_L_F77" != no; then
23533 # Linking always hardcodes the temporary library directory.
23534 hardcode_action_F77=relink
23536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23537 hardcode_action_F77=immediate
23540 # We cannot hardcode anything, or else we can only hardcode existing
23542 hardcode_action_F77=unsupported
23544 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23545 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23547 if test "$hardcode_action_F77" = relink; then
23548 # Fast installation is not supported
23549 enable_fast_install=no
23550 elif test "$shlibpath_overrides_runpath" = yes ||
23551 test "$enable_shared" = no; then
23552 # Fast installation is not necessary
23553 enable_fast_install=needless
23557 # The else clause should only fire when bootstrapping the
23558 # libtool distribution, otherwise you forgot to ship ltmain.sh
23559 # with your package, and you will get complaints that there are
23560 # no rules to generate ltmain.sh.
23561 if test -f "$ltmain"; then
23562 # See if we are running on zsh, and set the options which allow our commands through
23563 # without removal of \ escapes.
23564 if test -n "${ZSH_VERSION+set}" ; then
23565 setopt NO_GLOB_SUBST
23567 # Now quote all the things that may contain metacharacters while being
23568 # careful not to overquote the AC_SUBSTed values. We take copies of the
23569 # variables and quote the copies for generation of the libtool script.
23570 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23572 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23573 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23574 deplibs_check_method reload_flag reload_cmds need_locks \
23575 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23576 lt_cv_sys_global_symbol_to_c_name_address \
23577 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23578 old_postinstall_cmds old_postuninstall_cmds \
23582 lt_prog_compiler_wl_F77 \
23583 lt_prog_compiler_pic_F77 \
23584 lt_prog_compiler_static_F77 \
23585 lt_prog_compiler_no_builtin_flag_F77 \
23586 export_dynamic_flag_spec_F77 \
23587 thread_safe_flag_spec_F77 \
23588 whole_archive_flag_spec_F77 \
23589 enable_shared_with_static_runtimes_F77 \
23590 old_archive_cmds_F77 \
23591 old_archive_from_new_cmds_F77 \
23592 predep_objects_F77 \
23593 postdep_objects_F77 \
23596 compiler_lib_search_path_F77 \
23598 archive_expsym_cmds_F77 \
23599 postinstall_cmds_F77 \
23600 postuninstall_cmds_F77 \
23601 old_archive_from_expsyms_cmds_F77 \
23602 allow_undefined_flag_F77 \
23603 no_undefined_flag_F77 \
23604 export_symbols_cmds_F77 \
23605 hardcode_libdir_flag_spec_F77 \
23606 hardcode_libdir_flag_spec_ld_F77 \
23607 hardcode_libdir_separator_F77 \
23608 hardcode_automatic_F77 \
23610 module_expsym_cmds_F77 \
23611 lt_cv_prog_compiler_c_o_F77 \
23612 exclude_expsyms_F77 \
23613 include_expsyms_F77; do
23616 old_archive_cmds_F77 | \
23617 old_archive_from_new_cmds_F77 | \
23618 archive_cmds_F77 | \
23619 archive_expsym_cmds_F77 | \
23620 module_cmds_F77 | \
23621 module_expsym_cmds_F77 | \
23622 old_archive_from_expsyms_cmds_F77 | \
23623 export_symbols_cmds_F77 | \
23624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23625 postinstall_cmds | postuninstall_cmds | \
23626 old_postinstall_cmds | old_postuninstall_cmds | \
23627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23628 # Double-quote double-evaled strings.
23629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23638 *'\$0 --fallback-echo"')
23639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23645 cat <<__EOF__ >> "$cfgfile"
23646 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23650 # Shell to use when invoking shell scripts.
23653 # Whether or not to build shared libraries.
23654 build_libtool_libs=$enable_shared
23656 # Whether or not to build static libraries.
23657 build_old_libs=$enable_static
23659 # Whether or not to add -lc for building shared libraries.
23660 build_libtool_need_lc=$archive_cmds_need_lc_F77
23662 # Whether or not to disallow shared libs when runtime libs are static
23663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23665 # Whether or not to optimize for fast installation.
23666 fast_install=$enable_fast_install
23669 host_alias=$host_alias
23673 # The build system.
23674 build_alias=$build_alias
23678 # An echo program that does not interpret backslashes.
23683 AR_FLAGS=$lt_AR_FLAGS
23688 # LTCC compiler flags.
23689 LTCFLAGS=$lt_LTCFLAGS
23691 # A language-specific compiler.
23692 CC=$lt_compiler_F77
23694 # Is the compiler the GNU C compiler?
23700 # The linker used to build libraries.
23703 # Whether we need hard or soft links.
23706 # A BSD-compatible nm program.
23709 # A symbol stripping program
23712 # Used to examine libraries when file_magic_cmd begins "file"
23713 MAGIC_CMD=$MAGIC_CMD
23715 # Used on cygwin: DLL creation program.
23718 # Used on cygwin: object dumper.
23721 # Used on cygwin: assembler.
23724 # The name of the directory that contains temporary libtool files.
23727 # How to create reloadable object files.
23728 reload_flag=$lt_reload_flag
23729 reload_cmds=$lt_reload_cmds
23731 # How to pass a linker flag through the compiler.
23732 wl=$lt_lt_prog_compiler_wl_F77
23734 # Object file suffix (normally "o").
23735 objext="$ac_objext"
23737 # Old archive suffix (normally "a").
23740 # Shared library suffix (normally ".so").
23741 shrext_cmds='$shrext_cmds'
23743 # Executable file suffix (normally "").
23746 # Additional compiler flags for building library objects.
23747 pic_flag=$lt_lt_prog_compiler_pic_F77
23750 # What is the maximum length of a command?
23751 max_cmd_len=$lt_cv_sys_max_cmd_len
23753 # Does compiler simultaneously support -c and -o options?
23754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23756 # Must we lock files when doing compilation?
23757 need_locks=$lt_need_locks
23759 # Do we need the lib prefix for modules?
23760 need_lib_prefix=$need_lib_prefix
23762 # Do we need a version for libraries?
23763 need_version=$need_version
23765 # Whether dlopen is supported.
23766 dlopen_support=$enable_dlopen
23768 # Whether dlopen of programs is supported.
23769 dlopen_self=$enable_dlopen_self
23771 # Whether dlopen of statically linked programs is supported.
23772 dlopen_self_static=$enable_dlopen_self_static
23774 # Compiler flag to prevent dynamic linking.
23775 link_static_flag=$lt_lt_prog_compiler_static_F77
23777 # Compiler flag to turn off builtin functions.
23778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23780 # Compiler flag to allow reflexive dlopens.
23781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23783 # Compiler flag to generate shared objects directly from archives.
23784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23786 # Compiler flag to generate thread-safe objects.
23787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23789 # Library versioning type.
23790 version_type=$version_type
23792 # Format of library name prefix.
23793 libname_spec=$lt_libname_spec
23795 # List of archive names. First name is the real one, the rest are links.
23796 # The last name is the one that the linker finds with -lNAME.
23797 library_names_spec=$lt_library_names_spec
23799 # The coded name of the library, if different from the real name.
23800 soname_spec=$lt_soname_spec
23802 # Commands used to build and install an old-style archive.
23804 old_archive_cmds=$lt_old_archive_cmds_F77
23805 old_postinstall_cmds=$lt_old_postinstall_cmds
23806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23808 # Create an old-style archive from a shared archive.
23809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23811 # Create a temporary old-style archive to link instead of a shared archive.
23812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23814 # Commands used to build and install a shared archive.
23815 archive_cmds=$lt_archive_cmds_F77
23816 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23817 postinstall_cmds=$lt_postinstall_cmds
23818 postuninstall_cmds=$lt_postuninstall_cmds
23820 # Commands used to build a loadable module (assumed same as above if empty)
23821 module_cmds=$lt_module_cmds_F77
23822 module_expsym_cmds=$lt_module_expsym_cmds_F77
23824 # Commands to strip libraries.
23825 old_striplib=$lt_old_striplib
23826 striplib=$lt_striplib
23828 # Dependencies to place before the objects being linked to create a
23830 predep_objects=$lt_predep_objects_F77
23832 # Dependencies to place after the objects being linked to create a
23834 postdep_objects=$lt_postdep_objects_F77
23836 # Dependencies to place before the objects being linked to create a
23838 predeps=$lt_predeps_F77
23840 # Dependencies to place after the objects being linked to create a
23842 postdeps=$lt_postdeps_F77
23844 # The library search path used internally by the compiler when linking
23845 # a shared library.
23846 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23848 # Method to check whether dependent libraries are shared objects.
23849 deplibs_check_method=$lt_deplibs_check_method
23851 # Command to use when deplibs_check_method == file_magic.
23852 file_magic_cmd=$lt_file_magic_cmd
23854 # Flag that allows shared libraries with undefined symbols to be built.
23855 allow_undefined_flag=$lt_allow_undefined_flag_F77
23857 # Flag that forces no undefined symbols.
23858 no_undefined_flag=$lt_no_undefined_flag_F77
23860 # Commands used to finish a libtool library installation in a directory.
23861 finish_cmds=$lt_finish_cmds
23863 # Same as above, but a single script fragment to be evaled but not shown.
23864 finish_eval=$lt_finish_eval
23866 # Take the output of nm and produce a listing of raw symbols and C names.
23867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23869 # Transform the output of nm in a proper C declaration
23870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23872 # Transform the output of nm in a C name address pair
23873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23875 # This is the shared library runtime path variable.
23876 runpath_var=$runpath_var
23878 # This is the shared library path variable.
23879 shlibpath_var=$shlibpath_var
23881 # Is shlibpath searched before the hard-coded library search path?
23882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23884 # How to hardcode a shared library path into an executable.
23885 hardcode_action=$hardcode_action_F77
23887 # Whether we should hardcode library paths into libraries.
23888 hardcode_into_libs=$hardcode_into_libs
23890 # Flag to hardcode \$libdir into a binary during linking.
23891 # This must work even if \$libdir does not exist.
23892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23894 # If ld is used when linking, flag to hardcode \$libdir into
23895 # a binary during linking. This must work even if \$libdir does
23897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23899 # Whether we need a single -rpath flag with a separated argument.
23900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23903 # resulting binary.
23904 hardcode_direct=$hardcode_direct_F77
23906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23907 # resulting binary.
23908 hardcode_minus_L=$hardcode_minus_L_F77
23910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23911 # the resulting binary.
23912 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23914 # Set to yes if building a shared library automatically hardcodes DIR into the library
23915 # and all subsequent libraries and executables linked against it.
23916 hardcode_automatic=$hardcode_automatic_F77
23918 # Variables whose values should be saved in libtool wrapper scripts and
23919 # restored at relink time.
23920 variables_saved_for_relink="$variables_saved_for_relink"
23922 # Whether libtool must link a program against all its dependency libraries.
23923 link_all_deplibs=$link_all_deplibs_F77
23925 # Compile-time system search path for libraries
23926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23928 # Run-time system search path for libraries
23929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23931 # Fix the shell variable \$srcfile for the compiler.
23932 fix_srcfile_path="$fix_srcfile_path_F77"
23934 # Set to yes if exported symbols are required.
23935 always_export_symbols=$always_export_symbols_F77
23937 # The commands to list exported symbols.
23938 export_symbols_cmds=$lt_export_symbols_cmds_F77
23940 # The commands to extract the exported symbol list from a shared archive.
23941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23943 # Symbols that should not be listed in the preloaded symbols.
23944 exclude_expsyms=$lt_exclude_expsyms_F77
23946 # Symbols that must always be exported.
23947 include_expsyms=$lt_include_expsyms_F77
23949 # ### END LIBTOOL TAG CONFIG: $tagname
23955 # If there is no Makefile yet, we rely on a make rule to execute
23956 # `config.status --recheck' to rerun these tests and create the
23957 # libtool script then.
23958 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23959 if test -f "$ltmain_in"; then
23960 test -f Makefile && make "$ltmain"
23966 ac_cpp='$CPP $CPPFLAGS'
23967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23979 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23981 ac_cpp='$CPP $CPPFLAGS'
23982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23987 # Source file extension for Java test sources.
23990 # Object file extension for compiled Java test sources.
23994 # Code to be used in simple compile tests
23995 lt_simple_compile_test_code="class foo {}\n"
23997 # Code to be used in simple link tests
23998 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24002 # If no C compiler was specified, use CC.
24005 # If no C compiler flags were specified, use CFLAGS.
24006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24008 # Allow CC to be a program name with arguments.
24012 # save warnings/boilerplate of simple test code
24013 ac_outfile=conftest.$ac_objext
24014 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24016 _lt_compiler_boilerplate=`cat conftest.err`
24019 ac_outfile=conftest.$ac_objext
24020 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24022 _lt_linker_boilerplate=`cat conftest.err`
24026 # Allow CC to be a program name with arguments.
24031 for cc_temp in $compiler""; do
24033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24042 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24043 archive_cmds_need_lc_GCJ=no
24045 old_archive_cmds_GCJ=$old_archive_cmds
24048 lt_prog_compiler_no_builtin_flag_GCJ=
24050 if test "$GCC" = yes; then
24051 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24054 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24055 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24056 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
24059 lt_cv_prog_compiler_rtti_exceptions=no
24060 ac_outfile=conftest.$ac_objext
24061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24062 lt_compiler_flag="-fno-rtti -fno-exceptions"
24063 # Insert the option either (1) after the last *FLAGS variable, or
24064 # (2) before a word containing "conftest.", or (3) at the end.
24065 # Note that $ac_compile itself does not contain backslashes and begins
24066 # with a dollar sign (not a hyphen), so the echo should work correctly.
24067 # The option is referenced via a variable to avoid confusing sed.
24068 lt_compile=`echo "$ac_compile" | $SED \
24069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24071 -e 's:$: $lt_compiler_flag:'`
24072 (eval echo "\"\$as_me:24072: $lt_compile\"" >&5)
24073 (eval "$lt_compile" 2>conftest.err)
24075 cat conftest.err >&5
24076 echo "$as_me:24076: \$? = $ac_status" >&5
24077 if (exit $ac_status) && test -s "$ac_outfile"; then
24078 # The compiler can only warn and ignore the option if not recognized
24079 # So say no if there are warnings other than the usual output.
24080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24083 lt_cv_prog_compiler_rtti_exceptions=yes
24089 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24090 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24092 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24093 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24100 lt_prog_compiler_wl_GCJ=
24101 lt_prog_compiler_pic_GCJ=
24102 lt_prog_compiler_static_GCJ=
24104 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24105 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24107 if test "$GCC" = yes; then
24108 lt_prog_compiler_wl_GCJ='-Wl,'
24109 lt_prog_compiler_static_GCJ='-static'
24113 # All AIX code is PIC.
24114 if test "$host_cpu" = ia64; then
24115 # AIX 5 now supports IA64 processor
24116 lt_prog_compiler_static_GCJ='-Bstatic'
24121 # FIXME: we need at least 68020 code to build shared libraries, but
24122 # adding the `-m68020' flag to GCC prevents building anything better,
24124 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24127 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24128 # PIC is the default for these OSes.
24131 mingw* | pw32* | os2*)
24132 # This hack is so that the source file can tell whether it is being
24133 # built for inclusion in a dll (and should export symbols for example).
24134 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24137 darwin* | rhapsody*)
24138 # PIC is the default on this platform
24139 # Common symbols not allowed in MH_DYLIB files
24140 lt_prog_compiler_pic_GCJ='-fno-common'
24144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24145 # Instead, we relocate shared libraries at runtime.
24149 # Just because we use GCC doesn't mean we suddenly get shared libraries
24150 # on systems that don't support them.
24151 lt_prog_compiler_can_build_shared_GCJ=no
24156 if test -d /usr/nec; then
24157 lt_prog_compiler_pic_GCJ=-Kconform_pic
24162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24163 # not for PA HP-UX.
24169 lt_prog_compiler_pic_GCJ='-fPIC'
24175 lt_prog_compiler_pic_GCJ='-fPIC'
24179 # PORTME Check for flag to pass linker flags through the system compiler.
24182 lt_prog_compiler_wl_GCJ='-Wl,'
24183 if test "$host_cpu" = ia64; then
24184 # AIX 5 now supports IA64 processor
24185 lt_prog_compiler_static_GCJ='-Bstatic'
24187 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24191 # PIC is the default on this platform
24192 # Common symbols not allowed in MH_DYLIB files
24193 case $cc_basename in
24195 lt_prog_compiler_pic_GCJ='-qnocommon'
24196 lt_prog_compiler_wl_GCJ='-Wl,'
24201 mingw* | pw32* | os2*)
24202 # This hack is so that the source file can tell whether it is being
24203 # built for inclusion in a dll (and should export symbols for example).
24204 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24207 hpux9* | hpux10* | hpux11*)
24208 lt_prog_compiler_wl_GCJ='-Wl,'
24209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24210 # not for PA HP-UX.
24216 lt_prog_compiler_pic_GCJ='+Z'
24219 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24220 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24223 irix5* | irix6* | nonstopux*)
24224 lt_prog_compiler_wl_GCJ='-Wl,'
24225 # PIC (with -KPIC) is the default.
24226 lt_prog_compiler_static_GCJ='-non_shared'
24230 lt_prog_compiler_pic_GCJ='-KPIC'
24231 lt_prog_compiler_static_GCJ='-Bstatic'
24235 case $cc_basename in
24237 lt_prog_compiler_wl_GCJ='-Wl,'
24238 lt_prog_compiler_pic_GCJ='-KPIC'
24239 lt_prog_compiler_static_GCJ='-static'
24241 pgcc* | pgf77* | pgf90* | pgf95*)
24242 # Portland Group compilers (*not* the Pentium gcc compiler,
24243 # which looks to be a dead project)
24244 lt_prog_compiler_wl_GCJ='-Wl,'
24245 lt_prog_compiler_pic_GCJ='-fpic'
24246 lt_prog_compiler_static_GCJ='-Bstatic'
24249 lt_prog_compiler_wl_GCJ='-Wl,'
24250 # All Alpha code is PIC.
24251 lt_prog_compiler_static_GCJ='-non_shared'
24256 osf3* | osf4* | osf5*)
24257 lt_prog_compiler_wl_GCJ='-Wl,'
24258 # All OSF/1 code is PIC.
24259 lt_prog_compiler_static_GCJ='-non_shared'
24263 lt_prog_compiler_pic_GCJ='-KPIC'
24264 lt_prog_compiler_static_GCJ='-Bstatic'
24265 case $cc_basename in
24266 f77* | f90* | f95*)
24267 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24269 lt_prog_compiler_wl_GCJ='-Wl,';;
24274 lt_prog_compiler_wl_GCJ='-Qoption ld '
24275 lt_prog_compiler_pic_GCJ='-PIC'
24276 lt_prog_compiler_static_GCJ='-Bstatic'
24279 sysv4 | sysv4.2uw2* | sysv4.3*)
24280 lt_prog_compiler_wl_GCJ='-Wl,'
24281 lt_prog_compiler_pic_GCJ='-KPIC'
24282 lt_prog_compiler_static_GCJ='-Bstatic'
24286 if test -d /usr/nec ;then
24287 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24288 lt_prog_compiler_static_GCJ='-Bstatic'
24292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24293 lt_prog_compiler_wl_GCJ='-Wl,'
24294 lt_prog_compiler_pic_GCJ='-KPIC'
24295 lt_prog_compiler_static_GCJ='-Bstatic'
24299 lt_prog_compiler_wl_GCJ='-Wl,'
24300 lt_prog_compiler_can_build_shared_GCJ=no
24304 lt_prog_compiler_pic_GCJ='-pic'
24305 lt_prog_compiler_static_GCJ='-Bstatic'
24309 lt_prog_compiler_can_build_shared_GCJ=no
24314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24315 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24318 # Check to make sure the PIC flag actually works.
24320 if test -n "$lt_prog_compiler_pic_GCJ"; then
24322 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24323 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24324 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24327 lt_prog_compiler_pic_works_GCJ=no
24328 ac_outfile=conftest.$ac_objext
24329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24330 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24331 # Insert the option either (1) after the last *FLAGS variable, or
24332 # (2) before a word containing "conftest.", or (3) at the end.
24333 # Note that $ac_compile itself does not contain backslashes and begins
24334 # with a dollar sign (not a hyphen), so the echo should work correctly.
24335 # The option is referenced via a variable to avoid confusing sed.
24336 lt_compile=`echo "$ac_compile" | $SED \
24337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24339 -e 's:$: $lt_compiler_flag:'`
24340 (eval echo "\"\$as_me:24340: $lt_compile\"" >&5)
24341 (eval "$lt_compile" 2>conftest.err)
24343 cat conftest.err >&5
24344 echo "$as_me:24344: \$? = $ac_status" >&5
24345 if (exit $ac_status) && test -s "$ac_outfile"; then
24346 # The compiler can only warn and ignore the option if not recognized
24347 # So say no if there are warnings other than the usual output.
24348 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24351 lt_prog_compiler_pic_works_GCJ=yes
24357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24358 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24360 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24361 case $lt_prog_compiler_pic_GCJ in
24363 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24366 lt_prog_compiler_pic_GCJ=
24367 lt_prog_compiler_can_build_shared_GCJ=no
24372 # For platforms which do not support PIC, -DPIC is meaningless:
24374 lt_prog_compiler_pic_GCJ=
24377 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24382 # Check to make sure the static flag actually works.
24384 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24385 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24386 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24387 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 lt_prog_compiler_static_works_GCJ=no
24391 save_LDFLAGS="$LDFLAGS"
24392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24393 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24395 # The linker can only warn and ignore the option if not recognized
24396 # So say no if there are warnings
24397 if test -s conftest.err; then
24398 # Append any errors to the config.log.
24399 cat conftest.err 1>&5
24400 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24402 if diff conftest.exp conftest.er2 >/dev/null; then
24403 lt_prog_compiler_static_works_GCJ=yes
24406 lt_prog_compiler_static_works_GCJ=yes
24410 LDFLAGS="$save_LDFLAGS"
24413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24414 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24416 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24419 lt_prog_compiler_static_GCJ=
24423 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24424 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24425 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24428 lt_cv_prog_compiler_c_o_GCJ=no
24429 $rm -r conftest 2>/dev/null
24433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24435 lt_compiler_flag="-o out/conftest2.$ac_objext"
24436 # Insert the option either (1) after the last *FLAGS variable, or
24437 # (2) before a word containing "conftest.", or (3) at the end.
24438 # Note that $ac_compile itself does not contain backslashes and begins
24439 # with a dollar sign (not a hyphen), so the echo should work correctly.
24440 lt_compile=`echo "$ac_compile" | $SED \
24441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24443 -e 's:$: $lt_compiler_flag:'`
24444 (eval echo "\"\$as_me:24444: $lt_compile\"" >&5)
24445 (eval "$lt_compile" 2>out/conftest.err)
24447 cat out/conftest.err >&5
24448 echo "$as_me:24448: \$? = $ac_status" >&5
24449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24451 # The compiler can only warn and ignore the option if not recognized
24452 # So say no if there are warnings
24453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24456 lt_cv_prog_compiler_c_o_GCJ=yes
24461 # SGI C++ compiler will create directory out/ii_files/ for
24462 # template instantiation
24463 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24464 $rm out/* && rmdir out
24470 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24471 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24474 hard_links="nottested"
24475 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24476 # do not overwrite the value of need_locks provided by the user
24477 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24483 ln conftest.a conftest.b 2>&5 || hard_links=no
24484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24485 { echo "$as_me:$LINENO: result: $hard_links" >&5
24486 echo "${ECHO_T}$hard_links" >&6; }
24487 if test "$hard_links" = no; then
24488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24496 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24500 allow_undefined_flag_GCJ=
24501 enable_shared_with_static_runtimes_GCJ=no
24503 archive_expsym_cmds_GCJ=
24504 old_archive_From_new_cmds_GCJ=
24505 old_archive_from_expsyms_cmds_GCJ=
24506 export_dynamic_flag_spec_GCJ=
24507 whole_archive_flag_spec_GCJ=
24508 thread_safe_flag_spec_GCJ=
24509 hardcode_libdir_flag_spec_GCJ=
24510 hardcode_libdir_flag_spec_ld_GCJ=
24511 hardcode_libdir_separator_GCJ=
24512 hardcode_direct_GCJ=no
24513 hardcode_minus_L_GCJ=no
24514 hardcode_shlibpath_var_GCJ=unsupported
24515 link_all_deplibs_GCJ=unknown
24516 hardcode_automatic_GCJ=no
24518 module_expsym_cmds_GCJ=
24519 always_export_symbols_GCJ=no
24520 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24521 # include_expsyms should be a list of space-separated symbols to be *always*
24522 # included in the symbol list
24523 include_expsyms_GCJ=
24524 # exclude_expsyms can be an extended regexp of symbols to exclude
24525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24527 # as well as any symbol that contains `d'.
24528 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24530 # platforms (ab)use it in PIC code, but their linkers get confused if
24531 # the symbol is explicitly referenced. Since portable code cannot
24532 # rely on this symbol name, it's probably fine to never include it in
24533 # preloaded symbol tables.
24534 extract_expsyms_cmds=
24535 # Just being paranoid about ensuring that cc_basename is set.
24536 for cc_temp in $compiler""; do
24538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24547 cygwin* | mingw* | pw32*)
24548 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24549 # When not using gcc, we currently assume that we are using
24550 # Microsoft Visual C++.
24551 if test "$GCC" != yes; then
24556 # we just hope/assume this is gcc and not c89 (= MSVC++)
24565 if test "$with_gnu_ld" = yes; then
24566 # If archive_cmds runs LD, not CC, wlarc should be empty
24569 # Set some defaults for GNU ld with shared library support. These
24570 # are reset later if shared libraries are not supported. Putting them
24571 # here allows them to be overridden if necessary.
24572 runpath_var=LD_RUN_PATH
24573 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24574 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24575 # ancient GNU ld didn't support --whole-archive et. al.
24576 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24577 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24579 whole_archive_flag_spec_GCJ=
24581 supports_anon_versioning=no
24582 case `$LD -v 2>/dev/null` in
24583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24586 *\ 2.11.*) ;; # other 2.11 versions
24587 *) supports_anon_versioning=yes ;;
24590 # See if GNU ld supports shared libraries.
24592 aix3* | aix4* | aix5*)
24593 # On AIX/PPC, the GNU linker is very broken
24594 if test "$host_cpu" != ia64; then
24598 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24599 *** to be unable to reliably create shared libraries on AIX.
24600 *** Therefore, libtool is disabling shared libraries support. If you
24601 *** really care for shared libraries, you may want to modify your PATH
24602 *** so that a non-GNU linker is found, and then restart.
24609 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)'
24610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24611 hardcode_minus_L_GCJ=yes
24613 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24614 # that the semantics of dynamic libraries on AmigaOS, at least up
24615 # to version 4, is to share data among multiple programs linked
24616 # with the same dynamic library. Since this doesn't match the
24617 # behavior of shared libraries on other platforms, we can't use
24623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24624 allow_undefined_flag_GCJ=unsupported
24625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24626 # support --undefined. This deserves some investigation. FIXME
24627 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24633 cygwin* | mingw* | pw32*)
24634 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24635 # as there is no search path for DLLs.
24636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24637 allow_undefined_flag_GCJ=unsupported
24638 always_export_symbols_GCJ=no
24639 enable_shared_with_static_runtimes_GCJ=yes
24640 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24642 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24643 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24644 # If the export-symbols file already is a .def file (1st line
24645 # is EXPORTS), use it as is; otherwise, prepend...
24646 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24647 cp $export_symbols $output_objdir/$soname.def;
24649 echo EXPORTS > $output_objdir/$soname.def;
24650 cat $export_symbols >> $output_objdir/$soname.def;
24652 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24659 hardcode_direct_GCJ=no
24660 hardcode_shlibpath_var_GCJ=no
24661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24662 export_dynamic_flag_spec_GCJ='${wl}-E'
24663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24664 # Instead, shared libraries are loaded at an image base (0x10000000 by
24665 # default) and relocated if they conflict, which is a slow very memory
24666 # consuming and fragmenting process. To avoid this, we pick a random,
24667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24668 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24669 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'
24670 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'
24674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24676 case $cc_basename,$host_cpu in
24677 pgcc*) # Portland Group C compiler
24678 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'
24679 tmp_addflag=' $pic_flag'
24681 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24682 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'
24683 tmp_addflag=' $pic_flag -Mnomain' ;;
24684 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24685 tmp_addflag=' -i_dynamic' ;;
24686 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24687 tmp_addflag=' -i_dynamic -nofor_main' ;;
24688 ifc* | ifort*) # Intel Fortran compiler
24689 tmp_addflag=' -nofor_main' ;;
24691 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24693 if test $supports_anon_versioning = yes; then
24694 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24696 $echo "local: *; };" >> $output_objdir/$libname.ver~
24697 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24706 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24709 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24710 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24715 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24720 *** create shared libraries on Solaris systems. Therefore, libtool
24721 *** is disabling shared libraries support. We urge you to upgrade GNU
24722 *** binutils to release 2.9.1 or newer. Another option is to modify
24723 *** your PATH or compiler configuration so that the native linker is
24724 *** used, and then restart.
24727 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24728 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24729 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24736 case `$LD -v 2>&1` in
24737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24742 *** reliably create shared libraries on SCO systems. Therefore, libtool
24743 *** is disabling shared libraries support. We urge you to upgrade GNU
24744 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24745 *** your PATH or compiler configuration so that the native linker is
24746 *** used, and then restart.
24751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24752 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24753 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24754 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24763 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24765 hardcode_direct_GCJ=yes
24766 hardcode_shlibpath_var_GCJ=no
24770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24771 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24772 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24779 if test "$ld_shlibs_GCJ" = no; then
24781 hardcode_libdir_flag_spec_GCJ=
24782 export_dynamic_flag_spec_GCJ=
24783 whole_archive_flag_spec_GCJ=
24786 # PORTME fill in a description of your system's linker (not GNU ld)
24789 allow_undefined_flag_GCJ=unsupported
24790 always_export_symbols_GCJ=yes
24791 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'
24792 # Note: this linker hardcodes the directories in LIBPATH if there
24793 # are no directories specified by -L.
24794 hardcode_minus_L_GCJ=yes
24795 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24796 # Neither direct hardcoding nor static linking is supported with a
24798 hardcode_direct_GCJ=unsupported
24803 if test "$host_cpu" = ia64; then
24804 # On IA64, the linker does run time linking by default, so we don't
24805 # have to do anything special.
24806 aix_use_runtimelinking=no
24807 exp_sym_flag='-Bexport'
24810 # If we're using GNU nm, then we don't want the "-C" option.
24811 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24812 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24813 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'
24815 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'
24817 aix_use_runtimelinking=no
24819 # Test if we are trying to use run time linking or normal
24820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24821 # need to do runtime linking.
24822 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24823 for ld_flag in $LDFLAGS; do
24824 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24825 aix_use_runtimelinking=yes
24832 exp_sym_flag='-bexport'
24833 no_entry_flag='-bnoentry'
24836 # When large executables or shared objects are built, AIX ld can
24837 # have problems creating the table of contents. If linking a library
24838 # or program results in "error TOC overflow" add -mminimal-toc to
24839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24842 archive_cmds_GCJ=''
24843 hardcode_direct_GCJ=yes
24844 hardcode_libdir_separator_GCJ=':'
24845 link_all_deplibs_GCJ=yes
24847 if test "$GCC" = yes; then
24848 case $host_os in aix4.[012]|aix4.[012].*)
24849 # We only want to do this on AIX 4.2 and lower, the check
24850 # below for broken collect2 doesn't work under 4.3+
24851 collect2name=`${CC} -print-prog-name=collect2`
24852 if test -f "$collect2name" && \
24853 strings "$collect2name" | grep resolve_lib_name >/dev/null
24855 # We have reworked collect2
24856 hardcode_direct_GCJ=yes
24858 # We have old collect2
24859 hardcode_direct_GCJ=unsupported
24860 # It fails to find uninstalled libraries when the uninstalled
24861 # path is not listed in the libpath. Setting hardcode_minus_L
24862 # to unsupported forces relinking
24863 hardcode_minus_L_GCJ=yes
24864 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24865 hardcode_libdir_separator_GCJ=
24869 shared_flag='-shared'
24870 if test "$aix_use_runtimelinking" = yes; then
24871 shared_flag="$shared_flag "'${wl}-G'
24875 if test "$host_cpu" = ia64; then
24876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24877 # chokes on -Wl,-G. The following line is correct:
24880 if test "$aix_use_runtimelinking" = yes; then
24881 shared_flag='${wl}-G'
24883 shared_flag='${wl}-bM:SRE'
24888 # It seems that -bexpall does not export symbols beginning with
24889 # underscore (_), so it is better to generate a list of symbols to export.
24890 always_export_symbols_GCJ=yes
24891 if test "$aix_use_runtimelinking" = yes; then
24892 # Warning - without using the other runtime loading flags (-brtl),
24893 # -berok will link without error, but may produce a broken library.
24894 allow_undefined_flag_GCJ='-berok'
24895 # Determine the default libpath from the value encoded in an empty executable.
24896 cat >conftest.$ac_ext <<_ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h. */
24911 rm -f conftest.$ac_objext conftest$ac_exeext
24912 if { (ac_try="$ac_link"
24913 case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_link") 2>conftest.er1
24920 grep -v '^ *+' conftest.er1 >conftest.err
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926 { (case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_try") 2>&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try='test -s conftest$ac_exeext'
24936 { (case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_try") 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24948 # Check for a 64-bit object if we didn't find anything.
24949 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; }
24952 echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.$ac_ext >&5
24958 rm -f core conftest.err conftest.$ac_objext \
24959 conftest$ac_exeext conftest.$ac_ext
24960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24962 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24963 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"
24965 if test "$host_cpu" = ia64; then
24966 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24967 allow_undefined_flag_GCJ="-z nodefs"
24968 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"
24970 # Determine the default libpath from the value encoded in an empty executable.
24971 cat >conftest.$ac_ext <<_ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24986 rm -f conftest.$ac_objext conftest$ac_exeext
24987 if { (ac_try="$ac_link"
24988 case "(($ac_try" in
24989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990 *) ac_try_echo=$ac_try;;
24992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993 (eval "$ac_link") 2>conftest.er1
24995 grep -v '^ *+' conftest.er1 >conftest.err
24997 cat conftest.err >&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } &&
25000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25001 { (case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_try") 2>&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest$ac_exeext'
25011 { (case "(($ac_try" in
25012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013 *) ac_try_echo=$ac_try;;
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_try") 2>&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25023 # Check for a 64-bit object if we didn't find anything.
25024 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; }
25027 echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.$ac_ext >&5
25033 rm -f core conftest.err conftest.$ac_objext \
25034 conftest$ac_exeext conftest.$ac_ext
25035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25037 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25038 # Warning - without using the other run time loading flags,
25039 # -berok will link without error, but may produce a broken library.
25040 no_undefined_flag_GCJ=' ${wl}-bernotok'
25041 allow_undefined_flag_GCJ=' ${wl}-berok'
25042 # Exported symbols can be pulled into shared objects from archives
25043 whole_archive_flag_spec_GCJ='$convenience'
25044 archive_cmds_need_lc_GCJ=yes
25045 # This is similar to how AIX traditionally builds its shared libraries.
25046 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'
25052 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)'
25053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25054 hardcode_minus_L_GCJ=yes
25055 # see comment about different semantics on the GNU ld section
25060 export_dynamic_flag_spec_GCJ=-rdynamic
25063 cygwin* | mingw* | pw32*)
25064 # When not using gcc, we currently assume that we are using
25065 # Microsoft Visual C++.
25066 # hardcode_libdir_flag_spec is actually meaningless, as there is
25067 # no search path for DLLs.
25068 hardcode_libdir_flag_spec_GCJ=' '
25069 allow_undefined_flag_GCJ=unsupported
25070 # Tell ltmain to make .lib files, not .a files.
25072 # Tell ltmain to make .dll files, not .so files.
25074 # FIXME: Setting linknames here is a bad hack.
25075 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25076 # The linker will automatically build a .lib file if we build a DLL.
25077 old_archive_From_new_cmds_GCJ='true'
25078 # FIXME: Should let the user specify the lib program.
25079 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25080 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25081 enable_shared_with_static_runtimes_GCJ=yes
25084 darwin* | rhapsody*)
25086 rhapsody* | darwin1.[012])
25087 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25090 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25091 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25093 case ${MACOSX_DEPLOYMENT_TARGET} in
25095 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25098 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25104 archive_cmds_need_lc_GCJ=no
25105 hardcode_direct_GCJ=no
25106 hardcode_automatic_GCJ=yes
25107 hardcode_shlibpath_var_GCJ=unsupported
25108 whole_archive_flag_spec_GCJ=''
25109 link_all_deplibs_GCJ=yes
25110 if test "$GCC" = yes ; then
25111 output_verbose_link_cmd='echo'
25112 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25113 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25115 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}'
25116 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}'
25118 case $cc_basename in
25120 output_verbose_link_cmd='echo'
25121 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25122 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25124 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}'
25125 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}'
25135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25136 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25137 hardcode_shlibpath_var_GCJ=no
25144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25145 # support. Future versions do this automatically, but an explicit c++rt0.o
25146 # does not break anything, and helps significantly (at the cost of a little
25149 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25150 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25151 hardcode_direct_GCJ=yes
25152 hardcode_shlibpath_var_GCJ=no
25155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25157 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25158 hardcode_direct_GCJ=yes
25159 hardcode_minus_L_GCJ=yes
25160 hardcode_shlibpath_var_GCJ=no
25163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25164 freebsd* | kfreebsd*-gnu | dragonfly*)
25165 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25166 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25167 hardcode_direct_GCJ=yes
25168 hardcode_shlibpath_var_GCJ=no
25172 if test "$GCC" = yes; then
25173 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'
25175 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'
25177 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25178 hardcode_libdir_separator_GCJ=:
25179 hardcode_direct_GCJ=yes
25181 # hardcode_minus_L: Not really in the search PATH,
25182 # but as the default location of the library.
25183 hardcode_minus_L_GCJ=yes
25184 export_dynamic_flag_spec_GCJ='${wl}-E'
25188 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25189 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25191 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25193 if test "$with_gnu_ld" = no; then
25194 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25195 hardcode_libdir_separator_GCJ=:
25197 hardcode_direct_GCJ=yes
25198 export_dynamic_flag_spec_GCJ='${wl}-E'
25200 # hardcode_minus_L: Not really in the search PATH,
25201 # but as the default location of the library.
25202 hardcode_minus_L_GCJ=yes
25207 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25210 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25213 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25216 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25222 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25225 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25228 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25232 if test "$with_gnu_ld" = no; then
25233 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25234 hardcode_libdir_separator_GCJ=:
25238 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25239 hardcode_direct_GCJ=no
25240 hardcode_shlibpath_var_GCJ=no
25243 hardcode_direct_GCJ=yes
25244 export_dynamic_flag_spec_GCJ='${wl}-E'
25246 # hardcode_minus_L: Not really in the search PATH,
25247 # but as the default location of the library.
25248 hardcode_minus_L_GCJ=yes
25254 irix5* | irix6* | nonstopux*)
25255 if test "$GCC" = yes; then
25256 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'
25258 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'
25259 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25262 hardcode_libdir_separator_GCJ=:
25263 link_all_deplibs_GCJ=yes
25267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25268 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25270 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25272 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25273 hardcode_direct_GCJ=yes
25274 hardcode_shlibpath_var_GCJ=no
25278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25279 hardcode_direct_GCJ=yes
25280 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25281 hardcode_libdir_separator_GCJ=:
25282 hardcode_shlibpath_var_GCJ=no
25286 hardcode_direct_GCJ=yes
25287 hardcode_shlibpath_var_GCJ=no
25288 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25289 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25290 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25292 export_dynamic_flag_spec_GCJ='${wl}-E'
25295 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25296 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25297 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25300 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25301 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25308 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25309 hardcode_minus_L_GCJ=yes
25310 allow_undefined_flag_GCJ=unsupported
25311 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'
25312 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25316 if test "$GCC" = yes; then
25317 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25318 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'
25320 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25321 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'
25323 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25324 hardcode_libdir_separator_GCJ=:
25327 osf4* | osf5*) # as osf3* with the addition of -msym flag
25328 if test "$GCC" = yes; then
25329 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25330 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'
25331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25333 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25334 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'
25335 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~
25336 $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'
25338 # Both c and cxx compiler support -rpath directly
25339 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25341 hardcode_libdir_separator_GCJ=:
25345 no_undefined_flag_GCJ=' -z text'
25346 if test "$GCC" = yes; then
25348 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25349 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25350 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25353 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25355 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25357 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25358 hardcode_shlibpath_var_GCJ=no
25360 solaris2.[0-5] | solaris2.[0-5].*) ;;
25362 # The compiler driver will combine linker options so we
25363 # cannot just pass the convience library names through
25364 # without $wl, iff we do not link with $LD.
25365 # Luckily, gcc supports the same syntax we need for Sun Studio.
25366 # Supported since Solaris 2.6 (maybe 2.5.1?)
25369 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25371 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' ;;
25374 link_all_deplibs_GCJ=yes
25378 if test "x$host_vendor" = xsequent; then
25379 # Use $CC to link under sequent, because it throws in some extra .o
25380 # files that make .init and .fini sections work.
25381 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25383 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25385 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25386 hardcode_direct_GCJ=yes
25387 hardcode_minus_L_GCJ=yes
25388 hardcode_shlibpath_var_GCJ=no
25392 case $host_vendor in
25394 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25395 hardcode_direct_GCJ=yes # is this really true???
25398 ## LD is ld it makes a PLAMLIB
25399 ## CC just makes a GrossModule.
25400 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25401 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25402 hardcode_direct_GCJ=no
25405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25406 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25409 runpath_var='LD_RUN_PATH'
25410 hardcode_shlibpath_var_GCJ=no
25414 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25415 hardcode_shlibpath_var_GCJ=no
25416 export_dynamic_flag_spec_GCJ='-Bexport'
25420 if test -d /usr/nec; then
25421 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25422 hardcode_shlibpath_var_GCJ=no
25423 runpath_var=LD_RUN_PATH
25424 hardcode_runpath_var=yes
25429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25430 no_undefined_flag_GCJ='${wl}-z,text'
25431 archive_cmds_need_lc_GCJ=no
25432 hardcode_shlibpath_var_GCJ=no
25433 runpath_var='LD_RUN_PATH'
25435 if test "$GCC" = yes; then
25436 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25437 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25439 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25440 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25444 sysv5* | sco3.2v5* | sco5v6*)
25445 # Note: We can NOT use -z defs as we might desire, because we do not
25446 # link with -lc, and that would cause any symbols used from libc to
25447 # always be unresolved, which means just about no library would
25448 # ever link correctly. If we're not using GNU ld we use -z text
25449 # though, which does catch some bad symbols but isn't as heavy-handed
25451 no_undefined_flag_GCJ='${wl}-z,text'
25452 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25453 archive_cmds_need_lc_GCJ=no
25454 hardcode_shlibpath_var_GCJ=no
25455 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25456 hardcode_libdir_separator_GCJ=':'
25457 link_all_deplibs_GCJ=yes
25458 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25459 runpath_var='LD_RUN_PATH'
25461 if test "$GCC" = yes; then
25462 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25463 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25465 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25466 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25472 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25473 hardcode_shlibpath_var_GCJ=no
25482 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25483 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25484 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25487 # Do we need to explicitly link libc?
25489 case "x$archive_cmds_need_lc_GCJ" in
25491 # Assume -lc should be added
25492 archive_cmds_need_lc_GCJ=yes
25494 if test "$enable_shared" = yes && test "$GCC" = yes; then
25495 case $archive_cmds_GCJ in
25497 # FIXME: we may have to deal with multi-command sequences.
25500 # Test whether the compiler implicitly links with -lc since on some
25501 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25502 # to ld, don't add -lc before -lgcc.
25503 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25504 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25509 (eval $ac_compile) 2>&5
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } 2>conftest.err; then
25515 libobjs=conftest.$ac_objext
25517 wl=$lt_prog_compiler_wl_GCJ
25518 pic_flag=$lt_prog_compiler_pic_GCJ
25524 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25525 allow_undefined_flag_GCJ=
25526 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25527 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }
25532 archive_cmds_need_lc_GCJ=no
25534 archive_cmds_need_lc_GCJ=yes
25536 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25538 cat conftest.err 1>&5
25541 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25542 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25549 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25550 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25551 library_names_spec=
25552 libname_spec='lib$name'
25556 postuninstall_cmds=
25560 shlibpath_overrides_runpath=unknown
25562 dynamic_linker="$host_os ld.so"
25563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25564 if test "$GCC" = yes; then
25565 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25566 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25567 # if the path contains ";" then we assume it to be the separator
25568 # otherwise default to the standard path separator (i.e. ":") - it is
25569 # assumed that no part of a normal pathname contains ";" but that should
25570 # okay in the real world where ";" in dirpaths is itself problematic.
25571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25576 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25578 need_lib_prefix=unknown
25579 hardcode_into_libs=no
25581 # when you set need_version to no, make sure it does not cause -set_version
25582 # flags to be left without arguments
25583 need_version=unknown
25588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25589 shlibpath_var=LIBPATH
25591 # AIX 3 has no versioning support, so we append a major version to the name.
25592 soname_spec='${libname}${release}${shared_ext}$major'
25599 hardcode_into_libs=yes
25600 if test "$host_cpu" = ia64; then
25601 # AIX 5 supports IA64
25602 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25603 shlibpath_var=LD_LIBRARY_PATH
25605 # With GCC up to 2.95.x, collect2 would create an import file
25606 # for dependence libraries. The import file would start with
25607 # the line `#! .'. This would cause the generated library to
25608 # depend on `.', always an invalid library. This was fixed in
25609 # development snapshots of GCC prior to 3.0.
25611 aix4 | aix4.[01] | aix4.[01].*)
25612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25614 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25617 can_build_shared=no
25621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25622 # soname into executable. Probably we can add versioning support to
25623 # collect2, so additional links can be useful in future.
25624 if test "$aix_use_runtimelinking" = yes; then
25625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25626 # instead of lib<name>.a to let people know that these are not
25627 # typical AIX shared libraries.
25628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25630 # We preserve .a as extension for shared libraries through AIX4.2
25631 # and later when we are not doing run time linking.
25632 library_names_spec='${libname}${release}.a $libname.a'
25633 soname_spec='${libname}${release}${shared_ext}$major'
25635 shlibpath_var=LIBPATH
25640 library_names_spec='$libname.ixlibrary $libname.a'
25641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25642 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'
25646 library_names_spec='${libname}${shared_ext}'
25647 dynamic_linker="$host_os ld.so"
25648 shlibpath_var=LIBRARY_PATH
25654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25655 soname_spec='${libname}${release}${shared_ext}$major'
25656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25657 shlibpath_var=LD_LIBRARY_PATH
25658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25660 # the default ld.so.conf also contains /usr/contrib/lib and
25661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25662 # libtool to hard-code these into programs
25665 cygwin* | mingw* | pw32*)
25666 version_type=windows
25671 case $GCC,$host_os in
25672 yes,cygwin* | yes,mingw* | yes,pw32*)
25673 library_names_spec='$libname.dll.a'
25674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25675 postinstall_cmds='base_file=`basename \${file}`~
25676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25677 dldir=$destdir/`dirname \$dlpath`~
25678 test -d \$dldir || mkdir -p \$dldir~
25679 $install_prog $dir/$dlname \$dldir/$dlname~
25680 chmod a+x \$dldir/$dlname'
25681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25682 dlpath=$dir/\$dldll~
25684 shlibpath_overrides_runpath=yes
25688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25690 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25693 # MinGW DLLs use traditional 'lib' prefix
25694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25696 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25697 # It is most probably a Windows format PATH printed by
25698 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25699 # path with ; separators, and with drive letters. We can handle the
25700 # drive letters (cygwin fileutils understands them), so leave them,
25701 # especially as we might pass files found there to a mingw objdump,
25702 # which wouldn't understand a cygwinified path. Ahh.
25703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25709 # pw32 DLLs use 'pw' prefix rather than 'lib'
25710 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25716 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25719 dynamic_linker='Win32 ld.exe'
25720 # FIXME: first we should search . and the directory the executable is in
25724 darwin* | rhapsody*)
25725 dynamic_linker="$host_os dyld"
25726 version_type=darwin
25729 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25730 soname_spec='${libname}${release}${major}$shared_ext'
25731 shlibpath_overrides_runpath=yes
25732 shlibpath_var=DYLD_LIBRARY_PATH
25733 shrext_cmds='.dylib'
25734 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25735 if test "$GCC" = yes; then
25736 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"`
25738 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25740 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25748 soname_spec='${libname}${release}${shared_ext}$major'
25749 shlibpath_var=LD_LIBRARY_PATH
25760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25761 soname_spec='${libname}${release}${shared_ext}$major'
25762 shlibpath_var=LD_LIBRARY_PATH
25763 shlibpath_overrides_runpath=no
25764 hardcode_into_libs=yes
25765 dynamic_linker='GNU ld.so'
25768 freebsd* | dragonfly*)
25769 # DragonFly does not have aout. When/if they implement a new
25770 # versioning mechanism, adjust this.
25771 if test -x /usr/bin/objformat; then
25772 objformat=`/usr/bin/objformat`
25775 freebsd[123]*) objformat=aout ;;
25776 *) objformat=elf ;;
25779 version_type=freebsd-$objformat
25780 case $version_type in
25782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25791 shlibpath_var=LD_LIBRARY_PATH
25794 shlibpath_overrides_runpath=yes
25796 freebsd3.[01]* | freebsdelf3.[01]*)
25797 shlibpath_overrides_runpath=yes
25798 hardcode_into_libs=yes
25800 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25801 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25802 shlibpath_overrides_runpath=no
25803 hardcode_into_libs=yes
25805 freebsd*) # from 4.6 on
25806 shlibpath_overrides_runpath=yes
25807 hardcode_into_libs=yes
25816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25817 soname_spec='${libname}${release}${shared_ext}$major'
25818 shlibpath_var=LD_LIBRARY_PATH
25819 hardcode_into_libs=yes
25822 hpux9* | hpux10* | hpux11*)
25823 # Give a soname corresponding to the major version so that dld.sl refuses to
25824 # link against other versions.
25831 hardcode_into_libs=yes
25832 dynamic_linker="$host_os dld.so"
25833 shlibpath_var=LD_LIBRARY_PATH
25834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25836 soname_spec='${libname}${release}${shared_ext}$major'
25837 if test "X$HPUX_IA64_MODE" = X32; then
25838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25846 hardcode_into_libs=yes
25847 dynamic_linker="$host_os dld.sl"
25848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25851 soname_spec='${libname}${release}${shared_ext}$major'
25852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25857 dynamic_linker="$host_os dld.sl"
25858 shlibpath_var=SHLIB_PATH
25859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25861 soname_spec='${libname}${release}${shared_ext}$major'
25864 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25865 postinstall_cmds='chmod 555 $lib'
25872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25873 soname_spec='${libname}${release}${shared_ext}$major'
25874 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25875 shlibpath_var=LD_LIBRARY_PATH
25876 shlibpath_overrides_runpath=no
25877 hardcode_into_libs=yes
25880 irix5* | irix6* | nonstopux*)
25882 nonstopux*) version_type=nonstopux ;;
25884 if test "$lt_cv_prog_gnu_ld" = yes; then
25892 soname_spec='${libname}${release}${shared_ext}$major'
25893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25895 irix5* | nonstopux*)
25896 libsuff= shlibsuff=
25899 case $LD in # libtool.m4 will add one of these switches to LD
25900 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25901 libsuff= shlibsuff= libmagic=32-bit;;
25902 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25903 libsuff=32 shlibsuff=N32 libmagic=N32;;
25904 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25905 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25906 *) libsuff= shlibsuff= libmagic=never-match;;
25910 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25911 shlibpath_overrides_runpath=no
25912 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25913 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25914 hardcode_into_libs=yes
25917 # No shared lib support for Linux oldld, aout, or coff.
25918 linux*oldld* | linux*aout* | linux*coff*)
25922 # This must be Linux ELF.
25927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25928 soname_spec='${libname}${release}${shared_ext}$major'
25929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25930 shlibpath_var=LD_LIBRARY_PATH
25931 shlibpath_overrides_runpath=no
25932 # This implies no fast_install, which is unacceptable.
25933 # Some rework will be needed to allow for fast_install
25934 # before this can be enabled.
25935 hardcode_into_libs=yes
25937 # Append ld.so.conf contents to the search path
25938 if test -f /etc/ld.so.conf; then
25939 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' ' '`
25940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25943 # We used to test for /lib/ld.so.1 and disable shared libraries on
25944 # powerpc, because MkLinux only supported shared libraries with the
25945 # GNU dynamic linker. Since this was broken with cross compilers,
25946 # most powerpc-linux boxes support dynamic linking these days and
25947 # people can always --disable-shared, the test was removed, and we
25948 # assume the GNU/Linux dynamic linker is in use.
25949 dynamic_linker='GNU/Linux ld.so'
25956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25957 soname_spec='${libname}${release}${shared_ext}$major'
25958 shlibpath_var=LD_LIBRARY_PATH
25959 shlibpath_overrides_runpath=no
25960 hardcode_into_libs=yes
25961 dynamic_linker='GNU ld.so'
25968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25971 dynamic_linker='NetBSD (a.out) ld.so'
25973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25974 soname_spec='${libname}${release}${shared_ext}$major'
25975 dynamic_linker='NetBSD ld.elf_so'
25977 shlibpath_var=LD_LIBRARY_PATH
25978 shlibpath_overrides_runpath=yes
25979 hardcode_into_libs=yes
25984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25985 shlibpath_var=LD_LIBRARY_PATH
25986 shlibpath_overrides_runpath=yes
25993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25994 soname_spec='${libname}${release}${shared_ext}$major'
25995 shlibpath_var=LD_LIBRARY_PATH
25996 shlibpath_overrides_runpath=yes
26001 sys_lib_dlsearch_path_spec="/usr/lib"
26003 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26005 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26006 *) need_version=no ;;
26008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26010 shlibpath_var=LD_LIBRARY_PATH
26011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26013 openbsd2.[89] | openbsd2.[89].*)
26014 shlibpath_overrides_runpath=no
26017 shlibpath_overrides_runpath=yes
26021 shlibpath_overrides_runpath=yes
26026 libname_spec='$name'
26029 library_names_spec='$libname${shared_ext} $libname.a'
26030 dynamic_linker='OS/2 ld.exe'
26031 shlibpath_var=LIBPATH
26034 osf3* | osf4* | osf5*)
26038 soname_spec='${libname}${release}${shared_ext}$major'
26039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26040 shlibpath_var=LD_LIBRARY_PATH
26041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26042 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26050 soname_spec='${libname}${release}${shared_ext}$major'
26051 shlibpath_var=LD_LIBRARY_PATH
26052 shlibpath_overrides_runpath=yes
26053 hardcode_into_libs=yes
26054 # ldd complains unless libraries are executable
26055 postinstall_cmds='chmod +x $lib'
26060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26062 shlibpath_var=LD_LIBRARY_PATH
26063 shlibpath_overrides_runpath=yes
26064 if test "$with_gnu_ld" = yes; then
26072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26073 soname_spec='${libname}${release}${shared_ext}$major'
26074 shlibpath_var=LD_LIBRARY_PATH
26075 case $host_vendor in
26077 shlibpath_overrides_runpath=no
26079 export_dynamic_flag_spec='${wl}-Blargedynsym'
26080 runpath_var=LD_RUN_PATH
26088 shlibpath_overrides_runpath=no
26089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26095 if test -d /usr/nec ;then
26097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26098 soname_spec='$libname${shared_ext}.$major'
26099 shlibpath_var=LD_LIBRARY_PATH
26103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26104 version_type=freebsd-elf
26107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26108 soname_spec='${libname}${release}${shared_ext}$major'
26109 shlibpath_var=LD_LIBRARY_PATH
26110 hardcode_into_libs=yes
26111 if test "$with_gnu_ld" = yes; then
26112 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26113 shlibpath_overrides_runpath=no
26115 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26116 shlibpath_overrides_runpath=yes
26119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26123 sys_lib_dlsearch_path_spec='/usr/lib'
26128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26129 soname_spec='${libname}${release}${shared_ext}$major'
26130 shlibpath_var=LD_LIBRARY_PATH
26137 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26138 echo "${ECHO_T}$dynamic_linker" >&6; }
26139 test "$dynamic_linker" = no && can_build_shared=no
26141 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26142 if test "$GCC" = yes; then
26143 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26146 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26147 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26148 hardcode_action_GCJ=
26149 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26150 test -n "$runpath_var_GCJ" || \
26151 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26153 # We can hardcode non-existant directories.
26154 if test "$hardcode_direct_GCJ" != no &&
26155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26156 # have to relink, otherwise we might link with an installed library
26157 # when we should be linking with a yet-to-be-installed one
26158 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26159 test "$hardcode_minus_L_GCJ" != no; then
26160 # Linking always hardcodes the temporary library directory.
26161 hardcode_action_GCJ=relink
26163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26164 hardcode_action_GCJ=immediate
26167 # We cannot hardcode anything, or else we can only hardcode existing
26169 hardcode_action_GCJ=unsupported
26171 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26172 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26174 if test "$hardcode_action_GCJ" = relink; then
26175 # Fast installation is not supported
26176 enable_fast_install=no
26177 elif test "$shlibpath_overrides_runpath" = yes ||
26178 test "$enable_shared" = no; then
26179 # Fast installation is not necessary
26180 enable_fast_install=needless
26184 # The else clause should only fire when bootstrapping the
26185 # libtool distribution, otherwise you forgot to ship ltmain.sh
26186 # with your package, and you will get complaints that there are
26187 # no rules to generate ltmain.sh.
26188 if test -f "$ltmain"; then
26189 # See if we are running on zsh, and set the options which allow our commands through
26190 # without removal of \ escapes.
26191 if test -n "${ZSH_VERSION+set}" ; then
26192 setopt NO_GLOB_SUBST
26194 # Now quote all the things that may contain metacharacters while being
26195 # careful not to overquote the AC_SUBSTed values. We take copies of the
26196 # variables and quote the copies for generation of the libtool script.
26197 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26199 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26200 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26201 deplibs_check_method reload_flag reload_cmds need_locks \
26202 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26203 lt_cv_sys_global_symbol_to_c_name_address \
26204 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26205 old_postinstall_cmds old_postuninstall_cmds \
26209 lt_prog_compiler_wl_GCJ \
26210 lt_prog_compiler_pic_GCJ \
26211 lt_prog_compiler_static_GCJ \
26212 lt_prog_compiler_no_builtin_flag_GCJ \
26213 export_dynamic_flag_spec_GCJ \
26214 thread_safe_flag_spec_GCJ \
26215 whole_archive_flag_spec_GCJ \
26216 enable_shared_with_static_runtimes_GCJ \
26217 old_archive_cmds_GCJ \
26218 old_archive_from_new_cmds_GCJ \
26219 predep_objects_GCJ \
26220 postdep_objects_GCJ \
26223 compiler_lib_search_path_GCJ \
26225 archive_expsym_cmds_GCJ \
26226 postinstall_cmds_GCJ \
26227 postuninstall_cmds_GCJ \
26228 old_archive_from_expsyms_cmds_GCJ \
26229 allow_undefined_flag_GCJ \
26230 no_undefined_flag_GCJ \
26231 export_symbols_cmds_GCJ \
26232 hardcode_libdir_flag_spec_GCJ \
26233 hardcode_libdir_flag_spec_ld_GCJ \
26234 hardcode_libdir_separator_GCJ \
26235 hardcode_automatic_GCJ \
26237 module_expsym_cmds_GCJ \
26238 lt_cv_prog_compiler_c_o_GCJ \
26239 exclude_expsyms_GCJ \
26240 include_expsyms_GCJ; do
26243 old_archive_cmds_GCJ | \
26244 old_archive_from_new_cmds_GCJ | \
26245 archive_cmds_GCJ | \
26246 archive_expsym_cmds_GCJ | \
26247 module_cmds_GCJ | \
26248 module_expsym_cmds_GCJ | \
26249 old_archive_from_expsyms_cmds_GCJ | \
26250 export_symbols_cmds_GCJ | \
26251 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26252 postinstall_cmds | postuninstall_cmds | \
26253 old_postinstall_cmds | old_postuninstall_cmds | \
26254 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26255 # Double-quote double-evaled strings.
26256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26265 *'\$0 --fallback-echo"')
26266 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26272 cat <<__EOF__ >> "$cfgfile"
26273 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26277 # Shell to use when invoking shell scripts.
26280 # Whether or not to build shared libraries.
26281 build_libtool_libs=$enable_shared
26283 # Whether or not to build static libraries.
26284 build_old_libs=$enable_static
26286 # Whether or not to add -lc for building shared libraries.
26287 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26289 # Whether or not to disallow shared libs when runtime libs are static
26290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26292 # Whether or not to optimize for fast installation.
26293 fast_install=$enable_fast_install
26296 host_alias=$host_alias
26300 # The build system.
26301 build_alias=$build_alias
26305 # An echo program that does not interpret backslashes.
26310 AR_FLAGS=$lt_AR_FLAGS
26315 # LTCC compiler flags.
26316 LTCFLAGS=$lt_LTCFLAGS
26318 # A language-specific compiler.
26319 CC=$lt_compiler_GCJ
26321 # Is the compiler the GNU C compiler?
26327 # The linker used to build libraries.
26330 # Whether we need hard or soft links.
26333 # A BSD-compatible nm program.
26336 # A symbol stripping program
26339 # Used to examine libraries when file_magic_cmd begins "file"
26340 MAGIC_CMD=$MAGIC_CMD
26342 # Used on cygwin: DLL creation program.
26345 # Used on cygwin: object dumper.
26348 # Used on cygwin: assembler.
26351 # The name of the directory that contains temporary libtool files.
26354 # How to create reloadable object files.
26355 reload_flag=$lt_reload_flag
26356 reload_cmds=$lt_reload_cmds
26358 # How to pass a linker flag through the compiler.
26359 wl=$lt_lt_prog_compiler_wl_GCJ
26361 # Object file suffix (normally "o").
26362 objext="$ac_objext"
26364 # Old archive suffix (normally "a").
26367 # Shared library suffix (normally ".so").
26368 shrext_cmds='$shrext_cmds'
26370 # Executable file suffix (normally "").
26373 # Additional compiler flags for building library objects.
26374 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26377 # What is the maximum length of a command?
26378 max_cmd_len=$lt_cv_sys_max_cmd_len
26380 # Does compiler simultaneously support -c and -o options?
26381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26383 # Must we lock files when doing compilation?
26384 need_locks=$lt_need_locks
26386 # Do we need the lib prefix for modules?
26387 need_lib_prefix=$need_lib_prefix
26389 # Do we need a version for libraries?
26390 need_version=$need_version
26392 # Whether dlopen is supported.
26393 dlopen_support=$enable_dlopen
26395 # Whether dlopen of programs is supported.
26396 dlopen_self=$enable_dlopen_self
26398 # Whether dlopen of statically linked programs is supported.
26399 dlopen_self_static=$enable_dlopen_self_static
26401 # Compiler flag to prevent dynamic linking.
26402 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26404 # Compiler flag to turn off builtin functions.
26405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26407 # Compiler flag to allow reflexive dlopens.
26408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26410 # Compiler flag to generate shared objects directly from archives.
26411 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26413 # Compiler flag to generate thread-safe objects.
26414 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26416 # Library versioning type.
26417 version_type=$version_type
26419 # Format of library name prefix.
26420 libname_spec=$lt_libname_spec
26422 # List of archive names. First name is the real one, the rest are links.
26423 # The last name is the one that the linker finds with -lNAME.
26424 library_names_spec=$lt_library_names_spec
26426 # The coded name of the library, if different from the real name.
26427 soname_spec=$lt_soname_spec
26429 # Commands used to build and install an old-style archive.
26431 old_archive_cmds=$lt_old_archive_cmds_GCJ
26432 old_postinstall_cmds=$lt_old_postinstall_cmds
26433 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26435 # Create an old-style archive from a shared archive.
26436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26438 # Create a temporary old-style archive to link instead of a shared archive.
26439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26441 # Commands used to build and install a shared archive.
26442 archive_cmds=$lt_archive_cmds_GCJ
26443 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26444 postinstall_cmds=$lt_postinstall_cmds
26445 postuninstall_cmds=$lt_postuninstall_cmds
26447 # Commands used to build a loadable module (assumed same as above if empty)
26448 module_cmds=$lt_module_cmds_GCJ
26449 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26451 # Commands to strip libraries.
26452 old_striplib=$lt_old_striplib
26453 striplib=$lt_striplib
26455 # Dependencies to place before the objects being linked to create a
26457 predep_objects=$lt_predep_objects_GCJ
26459 # Dependencies to place after the objects being linked to create a
26461 postdep_objects=$lt_postdep_objects_GCJ
26463 # Dependencies to place before the objects being linked to create a
26465 predeps=$lt_predeps_GCJ
26467 # Dependencies to place after the objects being linked to create a
26469 postdeps=$lt_postdeps_GCJ
26471 # The library search path used internally by the compiler when linking
26472 # a shared library.
26473 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26475 # Method to check whether dependent libraries are shared objects.
26476 deplibs_check_method=$lt_deplibs_check_method
26478 # Command to use when deplibs_check_method == file_magic.
26479 file_magic_cmd=$lt_file_magic_cmd
26481 # Flag that allows shared libraries with undefined symbols to be built.
26482 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26484 # Flag that forces no undefined symbols.
26485 no_undefined_flag=$lt_no_undefined_flag_GCJ
26487 # Commands used to finish a libtool library installation in a directory.
26488 finish_cmds=$lt_finish_cmds
26490 # Same as above, but a single script fragment to be evaled but not shown.
26491 finish_eval=$lt_finish_eval
26493 # Take the output of nm and produce a listing of raw symbols and C names.
26494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26496 # Transform the output of nm in a proper C declaration
26497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26499 # Transform the output of nm in a C name address pair
26500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26502 # This is the shared library runtime path variable.
26503 runpath_var=$runpath_var
26505 # This is the shared library path variable.
26506 shlibpath_var=$shlibpath_var
26508 # Is shlibpath searched before the hard-coded library search path?
26509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26511 # How to hardcode a shared library path into an executable.
26512 hardcode_action=$hardcode_action_GCJ
26514 # Whether we should hardcode library paths into libraries.
26515 hardcode_into_libs=$hardcode_into_libs
26517 # Flag to hardcode \$libdir into a binary during linking.
26518 # This must work even if \$libdir does not exist.
26519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26521 # If ld is used when linking, flag to hardcode \$libdir into
26522 # a binary during linking. This must work even if \$libdir does
26524 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26526 # Whether we need a single -rpath flag with a separated argument.
26527 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26529 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26530 # resulting binary.
26531 hardcode_direct=$hardcode_direct_GCJ
26533 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26534 # resulting binary.
26535 hardcode_minus_L=$hardcode_minus_L_GCJ
26537 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26538 # the resulting binary.
26539 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26541 # Set to yes if building a shared library automatically hardcodes DIR into the library
26542 # and all subsequent libraries and executables linked against it.
26543 hardcode_automatic=$hardcode_automatic_GCJ
26545 # Variables whose values should be saved in libtool wrapper scripts and
26546 # restored at relink time.
26547 variables_saved_for_relink="$variables_saved_for_relink"
26549 # Whether libtool must link a program against all its dependency libraries.
26550 link_all_deplibs=$link_all_deplibs_GCJ
26552 # Compile-time system search path for libraries
26553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26555 # Run-time system search path for libraries
26556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26558 # Fix the shell variable \$srcfile for the compiler.
26559 fix_srcfile_path="$fix_srcfile_path_GCJ"
26561 # Set to yes if exported symbols are required.
26562 always_export_symbols=$always_export_symbols_GCJ
26564 # The commands to list exported symbols.
26565 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26567 # The commands to extract the exported symbol list from a shared archive.
26568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26570 # Symbols that should not be listed in the preloaded symbols.
26571 exclude_expsyms=$lt_exclude_expsyms_GCJ
26573 # Symbols that must always be exported.
26574 include_expsyms=$lt_include_expsyms_GCJ
26576 # ### END LIBTOOL TAG CONFIG: $tagname
26582 # If there is no Makefile yet, we rely on a make rule to execute
26583 # `config.status --recheck' to rerun these tests and create the
26584 # libtool script then.
26585 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26586 if test -f "$ltmain_in"; then
26587 test -f Makefile && make "$ltmain"
26593 ac_cpp='$CPP $CPPFLAGS'
26594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26607 ac_cpp='$CPP $CPPFLAGS'
26608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26613 # Source file extension for RC test sources.
26616 # Object file extension for compiled RC test sources.
26620 # Code to be used in simple compile tests
26621 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26623 # Code to be used in simple link tests
26624 lt_simple_link_test_code="$lt_simple_compile_test_code"
26626 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26628 # If no C compiler was specified, use CC.
26631 # If no C compiler flags were specified, use CFLAGS.
26632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26634 # Allow CC to be a program name with arguments.
26638 # save warnings/boilerplate of simple test code
26639 ac_outfile=conftest.$ac_objext
26640 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26642 _lt_compiler_boilerplate=`cat conftest.err`
26645 ac_outfile=conftest.$ac_objext
26646 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26648 _lt_linker_boilerplate=`cat conftest.err`
26652 # Allow CC to be a program name with arguments.
26657 for cc_temp in $compiler""; do
26659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26665 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26667 lt_cv_prog_compiler_c_o_RC=yes
26669 # The else clause should only fire when bootstrapping the
26670 # libtool distribution, otherwise you forgot to ship ltmain.sh
26671 # with your package, and you will get complaints that there are
26672 # no rules to generate ltmain.sh.
26673 if test -f "$ltmain"; then
26674 # See if we are running on zsh, and set the options which allow our commands through
26675 # without removal of \ escapes.
26676 if test -n "${ZSH_VERSION+set}" ; then
26677 setopt NO_GLOB_SUBST
26679 # Now quote all the things that may contain metacharacters while being
26680 # careful not to overquote the AC_SUBSTed values. We take copies of the
26681 # variables and quote the copies for generation of the libtool script.
26682 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26686 deplibs_check_method reload_flag reload_cmds need_locks \
26687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26688 lt_cv_sys_global_symbol_to_c_name_address \
26689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26690 old_postinstall_cmds old_postuninstall_cmds \
26694 lt_prog_compiler_wl_RC \
26695 lt_prog_compiler_pic_RC \
26696 lt_prog_compiler_static_RC \
26697 lt_prog_compiler_no_builtin_flag_RC \
26698 export_dynamic_flag_spec_RC \
26699 thread_safe_flag_spec_RC \
26700 whole_archive_flag_spec_RC \
26701 enable_shared_with_static_runtimes_RC \
26702 old_archive_cmds_RC \
26703 old_archive_from_new_cmds_RC \
26704 predep_objects_RC \
26705 postdep_objects_RC \
26708 compiler_lib_search_path_RC \
26710 archive_expsym_cmds_RC \
26711 postinstall_cmds_RC \
26712 postuninstall_cmds_RC \
26713 old_archive_from_expsyms_cmds_RC \
26714 allow_undefined_flag_RC \
26715 no_undefined_flag_RC \
26716 export_symbols_cmds_RC \
26717 hardcode_libdir_flag_spec_RC \
26718 hardcode_libdir_flag_spec_ld_RC \
26719 hardcode_libdir_separator_RC \
26720 hardcode_automatic_RC \
26722 module_expsym_cmds_RC \
26723 lt_cv_prog_compiler_c_o_RC \
26724 exclude_expsyms_RC \
26725 include_expsyms_RC; do
26728 old_archive_cmds_RC | \
26729 old_archive_from_new_cmds_RC | \
26730 archive_cmds_RC | \
26731 archive_expsym_cmds_RC | \
26733 module_expsym_cmds_RC | \
26734 old_archive_from_expsyms_cmds_RC | \
26735 export_symbols_cmds_RC | \
26736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26737 postinstall_cmds | postuninstall_cmds | \
26738 old_postinstall_cmds | old_postuninstall_cmds | \
26739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26740 # Double-quote double-evaled strings.
26741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26750 *'\$0 --fallback-echo"')
26751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26757 cat <<__EOF__ >> "$cfgfile"
26758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26762 # Shell to use when invoking shell scripts.
26765 # Whether or not to build shared libraries.
26766 build_libtool_libs=$enable_shared
26768 # Whether or not to build static libraries.
26769 build_old_libs=$enable_static
26771 # Whether or not to add -lc for building shared libraries.
26772 build_libtool_need_lc=$archive_cmds_need_lc_RC
26774 # Whether or not to disallow shared libs when runtime libs are static
26775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26777 # Whether or not to optimize for fast installation.
26778 fast_install=$enable_fast_install
26781 host_alias=$host_alias
26785 # The build system.
26786 build_alias=$build_alias
26790 # An echo program that does not interpret backslashes.
26795 AR_FLAGS=$lt_AR_FLAGS
26800 # LTCC compiler flags.
26801 LTCFLAGS=$lt_LTCFLAGS
26803 # A language-specific compiler.
26806 # Is the compiler the GNU C compiler?
26812 # The linker used to build libraries.
26815 # Whether we need hard or soft links.
26818 # A BSD-compatible nm program.
26821 # A symbol stripping program
26824 # Used to examine libraries when file_magic_cmd begins "file"
26825 MAGIC_CMD=$MAGIC_CMD
26827 # Used on cygwin: DLL creation program.
26830 # Used on cygwin: object dumper.
26833 # Used on cygwin: assembler.
26836 # The name of the directory that contains temporary libtool files.
26839 # How to create reloadable object files.
26840 reload_flag=$lt_reload_flag
26841 reload_cmds=$lt_reload_cmds
26843 # How to pass a linker flag through the compiler.
26844 wl=$lt_lt_prog_compiler_wl_RC
26846 # Object file suffix (normally "o").
26847 objext="$ac_objext"
26849 # Old archive suffix (normally "a").
26852 # Shared library suffix (normally ".so").
26853 shrext_cmds='$shrext_cmds'
26855 # Executable file suffix (normally "").
26858 # Additional compiler flags for building library objects.
26859 pic_flag=$lt_lt_prog_compiler_pic_RC
26862 # What is the maximum length of a command?
26863 max_cmd_len=$lt_cv_sys_max_cmd_len
26865 # Does compiler simultaneously support -c and -o options?
26866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26868 # Must we lock files when doing compilation?
26869 need_locks=$lt_need_locks
26871 # Do we need the lib prefix for modules?
26872 need_lib_prefix=$need_lib_prefix
26874 # Do we need a version for libraries?
26875 need_version=$need_version
26877 # Whether dlopen is supported.
26878 dlopen_support=$enable_dlopen
26880 # Whether dlopen of programs is supported.
26881 dlopen_self=$enable_dlopen_self
26883 # Whether dlopen of statically linked programs is supported.
26884 dlopen_self_static=$enable_dlopen_self_static
26886 # Compiler flag to prevent dynamic linking.
26887 link_static_flag=$lt_lt_prog_compiler_static_RC
26889 # Compiler flag to turn off builtin functions.
26890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26892 # Compiler flag to allow reflexive dlopens.
26893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26895 # Compiler flag to generate shared objects directly from archives.
26896 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26898 # Compiler flag to generate thread-safe objects.
26899 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26901 # Library versioning type.
26902 version_type=$version_type
26904 # Format of library name prefix.
26905 libname_spec=$lt_libname_spec
26907 # List of archive names. First name is the real one, the rest are links.
26908 # The last name is the one that the linker finds with -lNAME.
26909 library_names_spec=$lt_library_names_spec
26911 # The coded name of the library, if different from the real name.
26912 soname_spec=$lt_soname_spec
26914 # Commands used to build and install an old-style archive.
26916 old_archive_cmds=$lt_old_archive_cmds_RC
26917 old_postinstall_cmds=$lt_old_postinstall_cmds
26918 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26920 # Create an old-style archive from a shared archive.
26921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26923 # Create a temporary old-style archive to link instead of a shared archive.
26924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26926 # Commands used to build and install a shared archive.
26927 archive_cmds=$lt_archive_cmds_RC
26928 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26929 postinstall_cmds=$lt_postinstall_cmds
26930 postuninstall_cmds=$lt_postuninstall_cmds
26932 # Commands used to build a loadable module (assumed same as above if empty)
26933 module_cmds=$lt_module_cmds_RC
26934 module_expsym_cmds=$lt_module_expsym_cmds_RC
26936 # Commands to strip libraries.
26937 old_striplib=$lt_old_striplib
26938 striplib=$lt_striplib
26940 # Dependencies to place before the objects being linked to create a
26942 predep_objects=$lt_predep_objects_RC
26944 # Dependencies to place after the objects being linked to create a
26946 postdep_objects=$lt_postdep_objects_RC
26948 # Dependencies to place before the objects being linked to create a
26950 predeps=$lt_predeps_RC
26952 # Dependencies to place after the objects being linked to create a
26954 postdeps=$lt_postdeps_RC
26956 # The library search path used internally by the compiler when linking
26957 # a shared library.
26958 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26960 # Method to check whether dependent libraries are shared objects.
26961 deplibs_check_method=$lt_deplibs_check_method
26963 # Command to use when deplibs_check_method == file_magic.
26964 file_magic_cmd=$lt_file_magic_cmd
26966 # Flag that allows shared libraries with undefined symbols to be built.
26967 allow_undefined_flag=$lt_allow_undefined_flag_RC
26969 # Flag that forces no undefined symbols.
26970 no_undefined_flag=$lt_no_undefined_flag_RC
26972 # Commands used to finish a libtool library installation in a directory.
26973 finish_cmds=$lt_finish_cmds
26975 # Same as above, but a single script fragment to be evaled but not shown.
26976 finish_eval=$lt_finish_eval
26978 # Take the output of nm and produce a listing of raw symbols and C names.
26979 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26981 # Transform the output of nm in a proper C declaration
26982 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26984 # Transform the output of nm in a C name address pair
26985 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26987 # This is the shared library runtime path variable.
26988 runpath_var=$runpath_var
26990 # This is the shared library path variable.
26991 shlibpath_var=$shlibpath_var
26993 # Is shlibpath searched before the hard-coded library search path?
26994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26996 # How to hardcode a shared library path into an executable.
26997 hardcode_action=$hardcode_action_RC
26999 # Whether we should hardcode library paths into libraries.
27000 hardcode_into_libs=$hardcode_into_libs
27002 # Flag to hardcode \$libdir into a binary during linking.
27003 # This must work even if \$libdir does not exist.
27004 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27006 # If ld is used when linking, flag to hardcode \$libdir into
27007 # a binary during linking. This must work even if \$libdir does
27009 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27011 # Whether we need a single -rpath flag with a separated argument.
27012 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27014 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27015 # resulting binary.
27016 hardcode_direct=$hardcode_direct_RC
27018 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27019 # resulting binary.
27020 hardcode_minus_L=$hardcode_minus_L_RC
27022 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27023 # the resulting binary.
27024 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27026 # Set to yes if building a shared library automatically hardcodes DIR into the library
27027 # and all subsequent libraries and executables linked against it.
27028 hardcode_automatic=$hardcode_automatic_RC
27030 # Variables whose values should be saved in libtool wrapper scripts and
27031 # restored at relink time.
27032 variables_saved_for_relink="$variables_saved_for_relink"
27034 # Whether libtool must link a program against all its dependency libraries.
27035 link_all_deplibs=$link_all_deplibs_RC
27037 # Compile-time system search path for libraries
27038 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27040 # Run-time system search path for libraries
27041 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27043 # Fix the shell variable \$srcfile for the compiler.
27044 fix_srcfile_path="$fix_srcfile_path_RC"
27046 # Set to yes if exported symbols are required.
27047 always_export_symbols=$always_export_symbols_RC
27049 # The commands to list exported symbols.
27050 export_symbols_cmds=$lt_export_symbols_cmds_RC
27052 # The commands to extract the exported symbol list from a shared archive.
27053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27055 # Symbols that should not be listed in the preloaded symbols.
27056 exclude_expsyms=$lt_exclude_expsyms_RC
27058 # Symbols that must always be exported.
27059 include_expsyms=$lt_include_expsyms_RC
27061 # ### END LIBTOOL TAG CONFIG: $tagname
27067 # If there is no Makefile yet, we rely on a make rule to execute
27068 # `config.status --recheck' to rerun these tests and create the
27069 # libtool script then.
27070 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27071 if test -f "$ltmain_in"; then
27072 test -f Makefile && make "$ltmain"
27078 ac_cpp='$CPP $CPPFLAGS'
27079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27088 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27089 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27090 { (exit 1); exit 1; }; }
27094 # Append the new tag name to the list of available tags.
27095 if test -n "$tagname" ; then
27096 available_tags="$available_tags $tagname"
27102 # Now substitute the updated list of available tags.
27103 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27104 mv "${ofile}T" "$ofile"
27108 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27109 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27110 { (exit 1); exit 1; }; }
27116 # This can be used to rebuild libtool when needed
27117 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27119 # Always use our own libtool.
27120 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27122 # Prevent multiple expansion
27144 if test "$lt_cv_dlopen_self" = "yes" ; then
27146 cat >>confdefs.h <<\_ACEOF
27147 #define CAN_DLOPEN_SELF 1
27153 if test "$WITH_LLVMGCCDIR" = "default" ; then
27154 LLVMGCC="llvm-gcc${EXEEXT}"
27155 LLVMGXX="llvm-g++${EXEEXT}"
27156 LLVMGCCCOMMAND="$LLVMGCC"
27157 LLVMGXXCOMMAND="$LLVMGXX"
27158 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27160 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27162 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27163 set dummy $LLVMGCC; ac_word=$2
27164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27166 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27167 echo $ECHO_N "(cached) $ECHO_C" >&6
27171 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27175 for as_dir in $PATH
27178 test -z "$as_dir" && as_dir=.
27179 for ac_exec_ext in '' $ac_executable_extensions; do
27180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27181 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27192 LLVMGCC=$ac_cv_path_LLVMGCC
27193 if test -n "$LLVMGCC"; then
27194 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27195 echo "${ECHO_T}$LLVMGCC" >&6; }
27197 { echo "$as_me:$LINENO: result: no" >&5
27198 echo "${ECHO_T}no" >&6; }
27202 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27203 set dummy $LLVMGXX; ac_word=$2
27204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27206 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27211 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27215 for as_dir in $PATH
27218 test -z "$as_dir" && as_dir=.
27219 for ac_exec_ext in '' $ac_executable_extensions; do
27220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27221 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27232 LLVMGXX=$ac_cv_path_LLVMGXX
27233 if test -n "$LLVMGXX"; then
27234 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27235 echo "${ECHO_T}$LLVMGXX" >&6; }
27237 { echo "$as_me:$LINENO: result: no" >&5
27238 echo "${ECHO_T}no" >&6; }
27243 if test -z "$LLVMGCC"; then
27244 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27245 LLVMGCCCOMMAND="$LLVMGCC"
27247 if test -z "$LLVMGXX"; then
27248 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27249 LLVMGXXCOMMAND="$LLVMGXX"
27256 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27258 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27263 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27264 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27277 if test "$GCC" != "yes" && test "$ICC" != "yes"
27279 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27280 echo "$as_me: error: gcc|icc required but not found" >&2;}
27281 { (exit 1); exit 1; }; }
27284 if test "$GXX" != "yes" && test "$IXX" != "yes"
27286 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27287 echo "$as_me: error: g++|icc required but not found" >&2;}
27288 { (exit 1); exit 1; }; }
27291 if test "$GCC" = "yes"
27293 cat >conftest.$ac_ext <<_ACEOF
27294 #if !defined(__GNUC__) || __GNUC__ < 3
27295 #error Unsupported GCC version
27299 rm -f conftest.$ac_objext
27300 if { (ac_try="$ac_compile"
27301 case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_compile") 2>conftest.er1
27308 grep -v '^ *+' conftest.er1 >conftest.err
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } &&
27313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27314 { (case "(($ac_try" in
27315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316 *) ac_try_echo=$ac_try;;
27318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319 (eval "$ac_try") 2>&5
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; } &&
27323 { ac_try='test -s conftest.$ac_objext'
27324 { (case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_try") 2>&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; }; then
27335 echo "$as_me: failed program was:" >&5
27336 sed 's/^/| /' conftest.$ac_ext >&5
27338 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27339 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27340 { (exit 1); exit 1; }; }
27343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27346 if test -z "$llvm_cv_gnu_make_command"
27348 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27349 echo "$as_me: error: GNU Make required but not found" >&2;}
27350 { (exit 1); exit 1; }; }
27353 { echo "$as_me:$LINENO: result: ok" >&5
27354 echo "${ECHO_T}ok" >&6; }
27358 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27359 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27360 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27363 ac_check_lib_save_LIBS=$LIBS
27365 cat >conftest.$ac_ext <<_ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h. */
27372 /* Override any GCC internal prototype to avoid an error.
27373 Use char because int might match the return type of a GCC
27374 builtin and then its argument prototype would still apply. */
27382 return elf_begin ();
27387 rm -f conftest.$ac_objext conftest$ac_exeext
27388 if { (ac_try="$ac_link"
27389 case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_link") 2>conftest.er1
27396 grep -v '^ *+' conftest.er1 >conftest.err
27398 cat conftest.err >&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); } &&
27401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27402 { (case "(($ac_try" in
27403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27404 *) ac_try_echo=$ac_try;;
27406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27407 (eval "$ac_try") 2>&5
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; } &&
27411 { ac_try='test -s conftest$ac_exeext'
27412 { (case "(($ac_try" in
27413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27414 *) ac_try_echo=$ac_try;;
27416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27417 (eval "$ac_try") 2>&5
27419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); }; }; then
27421 ac_cv_lib_elf_elf_begin=yes
27423 echo "$as_me: failed program was:" >&5
27424 sed 's/^/| /' conftest.$ac_ext >&5
27426 ac_cv_lib_elf_elf_begin=no
27429 rm -f core conftest.err conftest.$ac_objext \
27430 conftest$ac_exeext conftest.$ac_ext
27431 LIBS=$ac_check_lib_save_LIBS
27433 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27434 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27435 if test $ac_cv_lib_elf_elf_begin = yes; then
27436 cat >>confdefs.h <<_ACEOF
27437 #define HAVE_LIBELF 1
27445 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27446 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27447 if test "${ac_cv_lib_m_sin+set}" = set; then
27448 echo $ECHO_N "(cached) $ECHO_C" >&6
27450 ac_check_lib_save_LIBS=$LIBS
27452 cat >conftest.$ac_ext <<_ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h. */
27459 /* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
27474 rm -f conftest.$ac_objext conftest$ac_exeext
27475 if { (ac_try="$ac_link"
27476 case "(($ac_try" in
27477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478 *) ac_try_echo=$ac_try;;
27480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481 (eval "$ac_link") 2>conftest.er1
27483 grep -v '^ *+' conftest.er1 >conftest.err
27485 cat conftest.err >&5
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); } &&
27488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27489 { (case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_try") 2>&5
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; } &&
27498 { ac_try='test -s conftest$ac_exeext'
27499 { (case "(($ac_try" in
27500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504 (eval "$ac_try") 2>&5
27506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); }; }; then
27508 ac_cv_lib_m_sin=yes
27510 echo "$as_me: failed program was:" >&5
27511 sed 's/^/| /' conftest.$ac_ext >&5
27516 rm -f core conftest.err conftest.$ac_objext \
27517 conftest$ac_exeext conftest.$ac_ext
27518 LIBS=$ac_check_lib_save_LIBS
27520 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27521 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27522 if test $ac_cv_lib_m_sin = yes; then
27523 cat >>confdefs.h <<_ACEOF
27524 #define HAVE_LIBM 1
27531 if test "$llvm_cv_os_type" = "MingW" ; then
27533 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27534 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27535 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27538 ac_check_lib_save_LIBS=$LIBS
27539 LIBS="-limagehlp $LIBS"
27540 cat >conftest.$ac_ext <<_ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h. */
27556 rm -f conftest.$ac_objext conftest$ac_exeext
27557 if { (ac_try="$ac_link"
27558 case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_link") 2>conftest.er1
27565 grep -v '^ *+' conftest.er1 >conftest.err
27567 cat conftest.err >&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } &&
27570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; }; then
27590 ac_cv_lib_imagehlp_main=yes
27592 echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.$ac_ext >&5
27595 ac_cv_lib_imagehlp_main=no
27598 rm -f core conftest.err conftest.$ac_objext \
27599 conftest$ac_exeext conftest.$ac_ext
27600 LIBS=$ac_check_lib_save_LIBS
27602 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27603 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27604 if test $ac_cv_lib_imagehlp_main = yes; then
27605 cat >>confdefs.h <<_ACEOF
27606 #define HAVE_LIBIMAGEHLP 1
27609 LIBS="-limagehlp $LIBS"
27614 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27615 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27616 if test "${ac_cv_lib_psapi_main+set}" = set; then
27617 echo $ECHO_N "(cached) $ECHO_C" >&6
27619 ac_check_lib_save_LIBS=$LIBS
27620 LIBS="-lpsapi $LIBS"
27621 cat >conftest.$ac_ext <<_ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h. */
27637 rm -f conftest.$ac_objext conftest$ac_exeext
27638 if { (ac_try="$ac_link"
27639 case "(($ac_try" in
27640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641 *) ac_try_echo=$ac_try;;
27643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27644 (eval "$ac_link") 2>conftest.er1
27646 grep -v '^ *+' conftest.er1 >conftest.err
27648 cat conftest.err >&5
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); } &&
27651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27652 { (case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_try") 2>&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); }; } &&
27661 { ac_try='test -s conftest$ac_exeext'
27662 { (case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_try") 2>&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; }; then
27671 ac_cv_lib_psapi_main=yes
27673 echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27676 ac_cv_lib_psapi_main=no
27679 rm -f core conftest.err conftest.$ac_objext \
27680 conftest$ac_exeext conftest.$ac_ext
27681 LIBS=$ac_check_lib_save_LIBS
27683 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27684 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27685 if test $ac_cv_lib_psapi_main = yes; then
27686 cat >>confdefs.h <<_ACEOF
27687 #define HAVE_LIBPSAPI 1
27690 LIBS="-lpsapi $LIBS"
27696 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27697 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27698 if test "${ac_cv_search_dlopen+set}" = set; then
27699 echo $ECHO_N "(cached) $ECHO_C" >&6
27701 ac_func_search_save_LIBS=$LIBS
27702 cat >conftest.$ac_ext <<_ACEOF
27705 cat confdefs.h >>conftest.$ac_ext
27706 cat >>conftest.$ac_ext <<_ACEOF
27707 /* end confdefs.h. */
27709 /* Override any GCC internal prototype to avoid an error.
27710 Use char because int might match the return type of a GCC
27711 builtin and then its argument prototype would still apply. */
27724 for ac_lib in '' dl; do
27725 if test -z "$ac_lib"; then
27726 ac_res="none required"
27729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27731 rm -f conftest.$ac_objext conftest$ac_exeext
27732 if { (ac_try="$ac_link"
27733 case "(($ac_try" in
27734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735 *) ac_try_echo=$ac_try;;
27737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738 (eval "$ac_link") 2>conftest.er1
27740 grep -v '^ *+' conftest.er1 >conftest.err
27742 cat conftest.err >&5
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); } &&
27745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27746 { (case "(($ac_try" in
27747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748 *) ac_try_echo=$ac_try;;
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751 (eval "$ac_try") 2>&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); }; } &&
27755 { ac_try='test -s conftest$ac_exeext'
27756 { (case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_try") 2>&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); }; }; then
27765 ac_cv_search_dlopen=$ac_res
27767 echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27773 rm -f core conftest.err conftest.$ac_objext \
27775 if test "${ac_cv_search_dlopen+set}" = set; then
27779 if test "${ac_cv_search_dlopen+set}" = set; then
27782 ac_cv_search_dlopen=no
27784 rm conftest.$ac_ext
27785 LIBS=$ac_func_search_save_LIBS
27787 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27788 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27789 ac_res=$ac_cv_search_dlopen
27790 if test "$ac_res" != no; then
27791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27793 cat >>confdefs.h <<\_ACEOF
27794 #define HAVE_DLOPEN 1
27798 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27799 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27803 if test "$llvm_cv_enable_libffi" = "yes" ; then
27804 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27805 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27806 if test "${ac_cv_search_ffi_call+set}" = set; then
27807 echo $ECHO_N "(cached) $ECHO_C" >&6
27809 ac_func_search_save_LIBS=$LIBS
27810 cat >conftest.$ac_ext <<_ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h. */
27817 /* Override any GCC internal prototype to avoid an error.
27818 Use char because int might match the return type of a GCC
27819 builtin and then its argument prototype would still apply. */
27827 return ffi_call ();
27832 for ac_lib in '' ffi; do
27833 if test -z "$ac_lib"; then
27834 ac_res="none required"
27837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27839 rm -f conftest.$ac_objext conftest$ac_exeext
27840 if { (ac_try="$ac_link"
27841 case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846 (eval "$ac_link") 2>conftest.er1
27848 grep -v '^ *+' conftest.er1 >conftest.err
27850 cat conftest.err >&5
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } &&
27853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27854 { (case "(($ac_try" in
27855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856 *) ac_try_echo=$ac_try;;
27858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859 (eval "$ac_try") 2>&5
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); }; } &&
27863 { ac_try='test -s conftest$ac_exeext'
27864 { (case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869 (eval "$ac_try") 2>&5
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; }; then
27873 ac_cv_search_ffi_call=$ac_res
27875 echo "$as_me: failed program was:" >&5
27876 sed 's/^/| /' conftest.$ac_ext >&5
27881 rm -f core conftest.err conftest.$ac_objext \
27883 if test "${ac_cv_search_ffi_call+set}" = set; then
27887 if test "${ac_cv_search_ffi_call+set}" = set; then
27890 ac_cv_search_ffi_call=no
27892 rm conftest.$ac_ext
27893 LIBS=$ac_func_search_save_LIBS
27895 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27896 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27897 ac_res=$ac_cv_search_ffi_call
27898 if test "$ac_res" != no; then
27899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27901 cat >>confdefs.h <<\_ACEOF
27902 #define HAVE_FFI_CALL 1
27906 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27907 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27912 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27913 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27914 if test "${ac_cv_search_mallinfo+set}" = set; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27917 ac_func_search_save_LIBS=$LIBS
27918 cat >conftest.$ac_ext <<_ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h. */
27925 /* Override any GCC internal prototype to avoid an error.
27926 Use char because int might match the return type of a GCC
27927 builtin and then its argument prototype would still apply. */
27935 return mallinfo ();
27940 for ac_lib in '' malloc; do
27941 if test -z "$ac_lib"; then
27942 ac_res="none required"
27945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27947 rm -f conftest.$ac_objext conftest$ac_exeext
27948 if { (ac_try="$ac_link"
27949 case "(($ac_try" in
27950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951 *) ac_try_echo=$ac_try;;
27953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954 (eval "$ac_link") 2>conftest.er1
27956 grep -v '^ *+' conftest.er1 >conftest.err
27958 cat conftest.err >&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } &&
27961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27962 { (case "(($ac_try" in
27963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27964 *) ac_try_echo=$ac_try;;
27966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27967 (eval "$ac_try") 2>&5
27969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970 (exit $ac_status); }; } &&
27971 { ac_try='test -s conftest$ac_exeext'
27972 { (case "(($ac_try" in
27973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974 *) ac_try_echo=$ac_try;;
27976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977 (eval "$ac_try") 2>&5
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); }; }; then
27981 ac_cv_search_mallinfo=$ac_res
27983 echo "$as_me: failed program was:" >&5
27984 sed 's/^/| /' conftest.$ac_ext >&5
27989 rm -f core conftest.err conftest.$ac_objext \
27991 if test "${ac_cv_search_mallinfo+set}" = set; then
27995 if test "${ac_cv_search_mallinfo+set}" = set; then
27998 ac_cv_search_mallinfo=no
28000 rm conftest.$ac_ext
28001 LIBS=$ac_func_search_save_LIBS
28003 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28004 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28005 ac_res=$ac_cv_search_mallinfo
28006 if test "$ac_res" != no; then
28007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28009 cat >>confdefs.h <<\_ACEOF
28010 #define HAVE_MALLINFO 1
28016 if test "$ENABLE_THREADS" -eq 1 ; then
28018 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28019 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28020 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28021 echo $ECHO_N "(cached) $ECHO_C" >&6
28023 ac_check_lib_save_LIBS=$LIBS
28024 LIBS="-lpthread $LIBS"
28025 cat >conftest.$ac_ext <<_ACEOF
28028 cat confdefs.h >>conftest.$ac_ext
28029 cat >>conftest.$ac_ext <<_ACEOF
28030 /* end confdefs.h. */
28032 /* Override any GCC internal prototype to avoid an error.
28033 Use char because int might match the return type of a GCC
28034 builtin and then its argument prototype would still apply. */
28038 char pthread_mutex_init ();
28042 return pthread_mutex_init ();
28047 rm -f conftest.$ac_objext conftest$ac_exeext
28048 if { (ac_try="$ac_link"
28049 case "(($ac_try" in
28050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051 *) ac_try_echo=$ac_try;;
28053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054 (eval "$ac_link") 2>conftest.er1
28056 grep -v '^ *+' conftest.er1 >conftest.err
28058 cat conftest.err >&5
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); } &&
28061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28062 { (case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067 (eval "$ac_try") 2>&5
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; } &&
28071 { ac_try='test -s conftest$ac_exeext'
28072 { (case "(($ac_try" in
28073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074 *) ac_try_echo=$ac_try;;
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_try") 2>&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; }; then
28081 ac_cv_lib_pthread_pthread_mutex_init=yes
28083 echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28086 ac_cv_lib_pthread_pthread_mutex_init=no
28089 rm -f core conftest.err conftest.$ac_objext \
28090 conftest$ac_exeext conftest.$ac_ext
28091 LIBS=$ac_check_lib_save_LIBS
28093 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28094 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28095 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28096 cat >>confdefs.h <<_ACEOF
28097 #define HAVE_LIBPTHREAD 1
28100 LIBS="-lpthread $LIBS"
28104 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28105 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28106 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28107 echo $ECHO_N "(cached) $ECHO_C" >&6
28109 ac_func_search_save_LIBS=$LIBS
28110 cat >conftest.$ac_ext <<_ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h. */
28117 /* Override any GCC internal prototype to avoid an error.
28118 Use char because int might match the return type of a GCC
28119 builtin and then its argument prototype would still apply. */
28123 char pthread_mutex_lock ();
28127 return pthread_mutex_lock ();
28132 for ac_lib in '' pthread; do
28133 if test -z "$ac_lib"; then
28134 ac_res="none required"
28137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28139 rm -f conftest.$ac_objext conftest$ac_exeext
28140 if { (ac_try="$ac_link"
28141 case "(($ac_try" in
28142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143 *) ac_try_echo=$ac_try;;
28145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28146 (eval "$ac_link") 2>conftest.er1
28148 grep -v '^ *+' conftest.er1 >conftest.err
28150 cat conftest.err >&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } &&
28153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28154 { (case "(($ac_try" in
28155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28156 *) ac_try_echo=$ac_try;;
28158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28159 (eval "$ac_try") 2>&5
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); }; } &&
28163 { ac_try='test -s conftest$ac_exeext'
28164 { (case "(($ac_try" in
28165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28166 *) ac_try_echo=$ac_try;;
28168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28169 (eval "$ac_try") 2>&5
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); }; }; then
28173 ac_cv_search_pthread_mutex_lock=$ac_res
28175 echo "$as_me: failed program was:" >&5
28176 sed 's/^/| /' conftest.$ac_ext >&5
28181 rm -f core conftest.err conftest.$ac_objext \
28183 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28187 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28190 ac_cv_search_pthread_mutex_lock=no
28192 rm conftest.$ac_ext
28193 LIBS=$ac_func_search_save_LIBS
28195 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28196 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28197 ac_res=$ac_cv_search_pthread_mutex_lock
28198 if test "$ac_res" != no; then
28199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28201 cat >>confdefs.h <<\_ACEOF
28202 #define HAVE_PTHREAD_MUTEX_LOCK 1
28207 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28208 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28209 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28210 echo $ECHO_N "(cached) $ECHO_C" >&6
28212 ac_func_search_save_LIBS=$LIBS
28213 cat >conftest.$ac_ext <<_ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h. */
28220 /* Override any GCC internal prototype to avoid an error.
28221 Use char because int might match the return type of a GCC
28222 builtin and then its argument prototype would still apply. */
28226 char pthread_rwlock_init ();
28230 return pthread_rwlock_init ();
28235 for ac_lib in '' pthread; do
28236 if test -z "$ac_lib"; then
28237 ac_res="none required"
28240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28242 rm -f conftest.$ac_objext conftest$ac_exeext
28243 if { (ac_try="$ac_link"
28244 case "(($ac_try" in
28245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246 *) ac_try_echo=$ac_try;;
28248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249 (eval "$ac_link") 2>conftest.er1
28251 grep -v '^ *+' conftest.er1 >conftest.err
28253 cat conftest.err >&5
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); } &&
28256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28257 { (case "(($ac_try" in
28258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28259 *) ac_try_echo=$ac_try;;
28261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28262 (eval "$ac_try") 2>&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; } &&
28266 { ac_try='test -s conftest$ac_exeext'
28267 { (case "(($ac_try" in
28268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269 *) ac_try_echo=$ac_try;;
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_try") 2>&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; }; then
28276 ac_cv_search_pthread_rwlock_init=$ac_res
28278 echo "$as_me: failed program was:" >&5
28279 sed 's/^/| /' conftest.$ac_ext >&5
28284 rm -f core conftest.err conftest.$ac_objext \
28286 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28290 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28293 ac_cv_search_pthread_rwlock_init=no
28295 rm conftest.$ac_ext
28296 LIBS=$ac_func_search_save_LIBS
28298 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28299 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28300 ac_res=$ac_cv_search_pthread_rwlock_init
28301 if test "$ac_res" != no; then
28302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28304 cat >>confdefs.h <<\_ACEOF
28305 #define HAVE_PTHREAD_RWLOCK_INIT 1
28310 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28311 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28312 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28313 echo $ECHO_N "(cached) $ECHO_C" >&6
28315 ac_func_search_save_LIBS=$LIBS
28316 cat >conftest.$ac_ext <<_ACEOF
28319 cat confdefs.h >>conftest.$ac_ext
28320 cat >>conftest.$ac_ext <<_ACEOF
28321 /* end confdefs.h. */
28323 /* Override any GCC internal prototype to avoid an error.
28324 Use char because int might match the return type of a GCC
28325 builtin and then its argument prototype would still apply. */
28329 char pthread_getspecific ();
28333 return pthread_getspecific ();
28338 for ac_lib in '' pthread; do
28339 if test -z "$ac_lib"; then
28340 ac_res="none required"
28343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28345 rm -f conftest.$ac_objext conftest$ac_exeext
28346 if { (ac_try="$ac_link"
28347 case "(($ac_try" in
28348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349 *) ac_try_echo=$ac_try;;
28351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352 (eval "$ac_link") 2>conftest.er1
28354 grep -v '^ *+' conftest.er1 >conftest.err
28356 cat conftest.err >&5
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); } &&
28359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28360 { (case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_try") 2>&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; } &&
28369 { ac_try='test -s conftest$ac_exeext'
28370 { (case "(($ac_try" in
28371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28372 *) ac_try_echo=$ac_try;;
28374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28375 (eval "$ac_try") 2>&5
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; }; then
28379 ac_cv_search_pthread_getspecific=$ac_res
28381 echo "$as_me: failed program was:" >&5
28382 sed 's/^/| /' conftest.$ac_ext >&5
28387 rm -f core conftest.err conftest.$ac_objext \
28389 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28393 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28396 ac_cv_search_pthread_getspecific=no
28398 rm conftest.$ac_ext
28399 LIBS=$ac_func_search_save_LIBS
28401 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28402 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28403 ac_res=$ac_cv_search_pthread_getspecific
28404 if test "$ac_res" != no; then
28405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28407 cat >>confdefs.h <<\_ACEOF
28408 #define HAVE_PTHREAD_GETSPECIFIC 1
28416 # Check whether --with-udis86 was given.
28417 if test "${with_udis86+set}" = set; then
28418 withval=$with_udis86;
28423 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28426 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28427 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28428 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28429 echo $ECHO_N "(cached) $ECHO_C" >&6
28431 ac_check_lib_save_LIBS=$LIBS
28432 LIBS="-ludis86 $LIBS"
28433 cat >conftest.$ac_ext <<_ACEOF
28436 cat confdefs.h >>conftest.$ac_ext
28437 cat >>conftest.$ac_ext <<_ACEOF
28438 /* end confdefs.h. */
28440 /* Override any GCC internal prototype to avoid an error.
28441 Use char because int might match the return type of a GCC
28442 builtin and then its argument prototype would still apply. */
28455 rm -f conftest.$ac_objext conftest$ac_exeext
28456 if { (ac_try="$ac_link"
28457 case "(($ac_try" in
28458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28459 *) ac_try_echo=$ac_try;;
28461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28462 (eval "$ac_link") 2>conftest.er1
28464 grep -v '^ *+' conftest.er1 >conftest.err
28466 cat conftest.err >&5
28467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 (exit $ac_status); } &&
28469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28470 { (case "(($ac_try" in
28471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472 *) ac_try_echo=$ac_try;;
28474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475 (eval "$ac_try") 2>&5
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); }; } &&
28479 { ac_try='test -s conftest$ac_exeext'
28480 { (case "(($ac_try" in
28481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482 *) ac_try_echo=$ac_try;;
28484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485 (eval "$ac_try") 2>&5
28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); }; }; then
28489 ac_cv_lib_udis86_ud_init=yes
28491 echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28494 ac_cv_lib_udis86_ud_init=no
28497 rm -f core conftest.err conftest.$ac_objext \
28498 conftest$ac_exeext conftest.$ac_ext
28499 LIBS=$ac_check_lib_save_LIBS
28501 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28502 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28503 if test $ac_cv_lib_udis86_ud_init = yes; then
28504 cat >>confdefs.h <<_ACEOF
28505 #define HAVE_LIBUDIS86 1
28508 LIBS="-ludis86 $LIBS"
28512 echo "Error! You need to have libudis86 around."
28524 cat >>confdefs.h <<_ACEOF
28525 #define USE_UDIS86 $USE_UDIS86
28530 # Check whether --with-oprofile was given.
28531 if test "${with_oprofile+set}" = set; then
28532 withval=$with_oprofile;
28536 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28537 *) llvm_cv_oppath="${withval}/lib/oprofile"
28538 CPPFLAGS="-I${withval}/include";;
28540 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28541 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28542 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28543 if test "${ac_cv_search_op_open_agent+set}" = set; then
28544 echo $ECHO_N "(cached) $ECHO_C" >&6
28546 ac_func_search_save_LIBS=$LIBS
28547 cat >conftest.$ac_ext <<_ACEOF
28550 cat confdefs.h >>conftest.$ac_ext
28551 cat >>conftest.$ac_ext <<_ACEOF
28552 /* end confdefs.h. */
28554 /* Override any GCC internal prototype to avoid an error.
28555 Use char because int might match the return type of a GCC
28556 builtin and then its argument prototype would still apply. */
28560 char op_open_agent ();
28564 return op_open_agent ();
28569 for ac_lib in '' opagent; do
28570 if test -z "$ac_lib"; then
28571 ac_res="none required"
28574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28576 rm -f conftest.$ac_objext conftest$ac_exeext
28577 if { (ac_try="$ac_link"
28578 case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_link") 2>conftest.er1
28585 grep -v '^ *+' conftest.er1 >conftest.err
28587 cat conftest.err >&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } &&
28590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28591 { (case "(($ac_try" in
28592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596 (eval "$ac_try") 2>&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; } &&
28600 { ac_try='test -s conftest$ac_exeext'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 ac_cv_search_op_open_agent=$ac_res
28612 echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28618 rm -f core conftest.err conftest.$ac_objext \
28620 if test "${ac_cv_search_op_open_agent+set}" = set; then
28624 if test "${ac_cv_search_op_open_agent+set}" = set; then
28627 ac_cv_search_op_open_agent=no
28629 rm conftest.$ac_ext
28630 LIBS=$ac_func_search_save_LIBS
28632 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28633 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28634 ac_res=$ac_cv_search_op_open_agent
28635 if test "$ac_res" != no; then
28636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28640 echo "Error! You need to have libopagent around."
28645 if test "${ac_cv_header_opagent_h+set}" = set; then
28646 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28647 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28648 if test "${ac_cv_header_opagent_h+set}" = set; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
28651 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28652 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28654 # Is the header compilable?
28655 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28656 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28657 cat >conftest.$ac_ext <<_ACEOF
28660 cat confdefs.h >>conftest.$ac_ext
28661 cat >>conftest.$ac_ext <<_ACEOF
28662 /* end confdefs.h. */
28663 $ac_includes_default
28664 #include <opagent.h>
28666 rm -f conftest.$ac_objext
28667 if { (ac_try="$ac_compile"
28668 case "(($ac_try" in
28669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670 *) ac_try_echo=$ac_try;;
28672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673 (eval "$ac_compile") 2>conftest.er1
28675 grep -v '^ *+' conftest.er1 >conftest.err
28677 cat conftest.err >&5
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); } &&
28680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28681 { (case "(($ac_try" in
28682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683 *) ac_try_echo=$ac_try;;
28685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28686 (eval "$ac_try") 2>&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); }; } &&
28690 { ac_try='test -s conftest.$ac_objext'
28691 { (case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696 (eval "$ac_try") 2>&5
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; }; then
28700 ac_header_compiler=yes
28702 echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28705 ac_header_compiler=no
28708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28710 echo "${ECHO_T}$ac_header_compiler" >&6; }
28712 # Is the header present?
28713 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28714 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28715 cat >conftest.$ac_ext <<_ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h. */
28721 #include <opagent.h>
28723 if { (ac_try="$ac_cpp conftest.$ac_ext"
28724 case "(($ac_try" in
28725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726 *) ac_try_echo=$ac_try;;
28728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28731 grep -v '^ *+' conftest.er1 >conftest.err
28733 cat conftest.err >&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } >/dev/null; then
28736 if test -s conftest.err; then
28737 ac_cpp_err=$ac_c_preproc_warn_flag
28738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28745 if test -z "$ac_cpp_err"; then
28746 ac_header_preproc=yes
28748 echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.$ac_ext >&5
28751 ac_header_preproc=no
28754 rm -f conftest.err conftest.$ac_ext
28755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28756 echo "${ECHO_T}$ac_header_preproc" >&6; }
28758 # So? What about this header?
28759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28761 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28762 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28763 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28764 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28765 ac_header_preproc=yes
28768 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28769 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28770 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28771 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28772 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28773 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28774 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28775 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28776 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28777 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28778 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28779 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28781 ## ----------------------------------- ##
28782 ## Report this to llvmbugs@cs.uiuc.edu ##
28783 ## ----------------------------------- ##
28785 ) | sed "s/^/$as_me: WARNING: /" >&2
28788 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28789 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28790 if test "${ac_cv_header_opagent_h+set}" = set; then
28791 echo $ECHO_N "(cached) $ECHO_C" >&6
28793 ac_cv_header_opagent_h=$ac_header_preproc
28795 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28796 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28799 if test $ac_cv_header_opagent_h = yes; then
28803 echo "Error! You need to have opagent.h around."
28812 llvm_cv_old_LIBS="$LIBS"
28813 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28814 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28815 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28816 if test "${ac_cv_search_op_open_agent+set}" = set; then
28817 echo $ECHO_N "(cached) $ECHO_C" >&6
28819 ac_func_search_save_LIBS=$LIBS
28820 cat >conftest.$ac_ext <<_ACEOF
28823 cat confdefs.h >>conftest.$ac_ext
28824 cat >>conftest.$ac_ext <<_ACEOF
28825 /* end confdefs.h. */
28827 /* Override any GCC internal prototype to avoid an error.
28828 Use char because int might match the return type of a GCC
28829 builtin and then its argument prototype would still apply. */
28833 char op_open_agent ();
28837 return op_open_agent ();
28842 for ac_lib in '' opagent; do
28843 if test -z "$ac_lib"; then
28844 ac_res="none required"
28847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28849 rm -f conftest.$ac_objext conftest$ac_exeext
28850 if { (ac_try="$ac_link"
28851 case "(($ac_try" in
28852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853 *) ac_try_echo=$ac_try;;
28855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856 (eval "$ac_link") 2>conftest.er1
28858 grep -v '^ *+' conftest.er1 >conftest.err
28860 cat conftest.err >&5
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); } &&
28863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28864 { (case "(($ac_try" in
28865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866 *) ac_try_echo=$ac_try;;
28868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869 (eval "$ac_try") 2>&5
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); }; } &&
28873 { ac_try='test -s conftest$ac_exeext'
28874 { (case "(($ac_try" in
28875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28876 *) ac_try_echo=$ac_try;;
28878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28879 (eval "$ac_try") 2>&5
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); }; }; then
28883 ac_cv_search_op_open_agent=$ac_res
28885 echo "$as_me: failed program was:" >&5
28886 sed 's/^/| /' conftest.$ac_ext >&5
28891 rm -f core conftest.err conftest.$ac_objext \
28893 if test "${ac_cv_search_op_open_agent+set}" = set; then
28897 if test "${ac_cv_search_op_open_agent+set}" = set; then
28900 ac_cv_search_op_open_agent=no
28902 rm conftest.$ac_ext
28903 LIBS=$ac_func_search_save_LIBS
28905 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28906 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28907 ac_res=$ac_cv_search_op_open_agent
28908 if test "$ac_res" != no; then
28909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28913 LIBS="$llvm_cv_old_LIBS"
28918 if test "${ac_cv_header_opagent_h+set}" = set; then
28919 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28920 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28921 if test "${ac_cv_header_opagent_h+set}" = set; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28924 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28925 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28927 # Is the header compilable?
28928 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28929 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28930 cat >conftest.$ac_ext <<_ACEOF
28933 cat confdefs.h >>conftest.$ac_ext
28934 cat >>conftest.$ac_ext <<_ACEOF
28935 /* end confdefs.h. */
28936 $ac_includes_default
28937 #include <opagent.h>
28939 rm -f conftest.$ac_objext
28940 if { (ac_try="$ac_compile"
28941 case "(($ac_try" in
28942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943 *) ac_try_echo=$ac_try;;
28945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28946 (eval "$ac_compile") 2>conftest.er1
28948 grep -v '^ *+' conftest.er1 >conftest.err
28950 cat conftest.err >&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); } &&
28953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28954 { (case "(($ac_try" in
28955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956 *) ac_try_echo=$ac_try;;
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959 (eval "$ac_try") 2>&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; } &&
28963 { ac_try='test -s conftest.$ac_objext'
28964 { (case "(($ac_try" in
28965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28966 *) ac_try_echo=$ac_try;;
28968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28969 (eval "$ac_try") 2>&5
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); }; }; then
28973 ac_header_compiler=yes
28975 echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28978 ac_header_compiler=no
28981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28983 echo "${ECHO_T}$ac_header_compiler" >&6; }
28985 # Is the header present?
28986 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28987 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28988 cat >conftest.$ac_ext <<_ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h. */
28994 #include <opagent.h>
28996 if { (ac_try="$ac_cpp conftest.$ac_ext"
28997 case "(($ac_try" in
28998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28999 *) ac_try_echo=$ac_try;;
29001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29004 grep -v '^ *+' conftest.er1 >conftest.err
29006 cat conftest.err >&5
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); } >/dev/null; then
29009 if test -s conftest.err; then
29010 ac_cpp_err=$ac_c_preproc_warn_flag
29011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29018 if test -z "$ac_cpp_err"; then
29019 ac_header_preproc=yes
29021 echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29024 ac_header_preproc=no
29027 rm -f conftest.err conftest.$ac_ext
29028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29029 echo "${ECHO_T}$ac_header_preproc" >&6; }
29031 # So? What about this header?
29032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29034 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29035 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29037 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29038 ac_header_preproc=yes
29041 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29042 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29043 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29044 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29046 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29048 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29050 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29052 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29054 ## ----------------------------------- ##
29055 ## Report this to llvmbugs@cs.uiuc.edu ##
29056 ## ----------------------------------- ##
29058 ) | sed "s/^/$as_me: WARNING: /" >&2
29061 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29062 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29063 if test "${ac_cv_header_opagent_h+set}" = set; then
29064 echo $ECHO_N "(cached) $ECHO_C" >&6
29066 ac_cv_header_opagent_h=$ac_header_preproc
29068 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29069 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29072 if test $ac_cv_header_opagent_h = yes; then
29076 LIBS="$llvm_cv_old_LIBS"
29087 cat >>confdefs.h <<_ACEOF
29088 #define USE_OPROFILE $USE_OPROFILE
29098 ac_header_dirent=no
29099 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29100 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29101 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29102 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29104 echo $ECHO_N "(cached) $ECHO_C" >&6
29106 cat >conftest.$ac_ext <<_ACEOF
29109 cat confdefs.h >>conftest.$ac_ext
29110 cat >>conftest.$ac_ext <<_ACEOF
29111 /* end confdefs.h. */
29112 #include <sys/types.h>
29124 rm -f conftest.$ac_objext
29125 if { (ac_try="$ac_compile"
29126 case "(($ac_try" in
29127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128 *) ac_try_echo=$ac_try;;
29130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131 (eval "$ac_compile") 2>conftest.er1
29133 grep -v '^ *+' conftest.er1 >conftest.err
29135 cat conftest.err >&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); } &&
29138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29139 { (case "(($ac_try" in
29140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29141 *) ac_try_echo=$ac_try;;
29143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29144 (eval "$ac_try") 2>&5
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); }; } &&
29148 { ac_try='test -s conftest.$ac_objext'
29149 { (case "(($ac_try" in
29150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151 *) ac_try_echo=$ac_try;;
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154 (eval "$ac_try") 2>&5
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; }; then
29158 eval "$as_ac_Header=yes"
29160 echo "$as_me: failed program was:" >&5
29161 sed 's/^/| /' conftest.$ac_ext >&5
29163 eval "$as_ac_Header=no"
29166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29168 ac_res=`eval echo '${'$as_ac_Header'}'`
29169 { echo "$as_me:$LINENO: result: $ac_res" >&5
29170 echo "${ECHO_T}$ac_res" >&6; }
29171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29172 cat >>confdefs.h <<_ACEOF
29173 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29176 ac_header_dirent=$ac_hdr; break
29180 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29181 if test $ac_header_dirent = dirent.h; then
29182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29183 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29184 if test "${ac_cv_search_opendir+set}" = set; then
29185 echo $ECHO_N "(cached) $ECHO_C" >&6
29187 ac_func_search_save_LIBS=$LIBS
29188 cat >conftest.$ac_ext <<_ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h. */
29195 /* Override any GCC internal prototype to avoid an error.
29196 Use char because int might match the return type of a GCC
29197 builtin and then its argument prototype would still apply. */
29210 for ac_lib in '' dir; do
29211 if test -z "$ac_lib"; then
29212 ac_res="none required"
29215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29217 rm -f conftest.$ac_objext conftest$ac_exeext
29218 if { (ac_try="$ac_link"
29219 case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_link") 2>conftest.er1
29226 grep -v '^ *+' conftest.er1 >conftest.err
29228 cat conftest.err >&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); } &&
29231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29232 { (case "(($ac_try" in
29233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234 *) ac_try_echo=$ac_try;;
29236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237 (eval "$ac_try") 2>&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; } &&
29241 { ac_try='test -s conftest$ac_exeext'
29242 { (case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_try") 2>&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); }; }; then
29251 ac_cv_search_opendir=$ac_res
29253 echo "$as_me: failed program was:" >&5
29254 sed 's/^/| /' conftest.$ac_ext >&5
29259 rm -f core conftest.err conftest.$ac_objext \
29261 if test "${ac_cv_search_opendir+set}" = set; then
29265 if test "${ac_cv_search_opendir+set}" = set; then
29268 ac_cv_search_opendir=no
29270 rm conftest.$ac_ext
29271 LIBS=$ac_func_search_save_LIBS
29273 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29274 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29275 ac_res=$ac_cv_search_opendir
29276 if test "$ac_res" != no; then
29277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29282 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29283 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29284 if test "${ac_cv_search_opendir+set}" = set; then
29285 echo $ECHO_N "(cached) $ECHO_C" >&6
29287 ac_func_search_save_LIBS=$LIBS
29288 cat >conftest.$ac_ext <<_ACEOF
29291 cat confdefs.h >>conftest.$ac_ext
29292 cat >>conftest.$ac_ext <<_ACEOF
29293 /* end confdefs.h. */
29295 /* Override any GCC internal prototype to avoid an error.
29296 Use char because int might match the return type of a GCC
29297 builtin and then its argument prototype would still apply. */
29310 for ac_lib in '' x; do
29311 if test -z "$ac_lib"; then
29312 ac_res="none required"
29315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29317 rm -f conftest.$ac_objext conftest$ac_exeext
29318 if { (ac_try="$ac_link"
29319 case "(($ac_try" in
29320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29321 *) ac_try_echo=$ac_try;;
29323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29324 (eval "$ac_link") 2>conftest.er1
29326 grep -v '^ *+' conftest.er1 >conftest.err
29328 cat conftest.err >&5
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); } &&
29331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29332 { (case "(($ac_try" in
29333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334 *) ac_try_echo=$ac_try;;
29336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337 (eval "$ac_try") 2>&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); }; } &&
29341 { ac_try='test -s conftest$ac_exeext'
29342 { (case "(($ac_try" in
29343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29344 *) ac_try_echo=$ac_try;;
29346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29347 (eval "$ac_try") 2>&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); }; }; then
29351 ac_cv_search_opendir=$ac_res
29353 echo "$as_me: failed program was:" >&5
29354 sed 's/^/| /' conftest.$ac_ext >&5
29359 rm -f core conftest.err conftest.$ac_objext \
29361 if test "${ac_cv_search_opendir+set}" = set; then
29365 if test "${ac_cv_search_opendir+set}" = set; then
29368 ac_cv_search_opendir=no
29370 rm conftest.$ac_ext
29371 LIBS=$ac_func_search_save_LIBS
29373 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29374 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29375 ac_res=$ac_cv_search_opendir
29376 if test "$ac_res" != no; then
29377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29383 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29384 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29385 if test "${ac_cv_header_mmap_anon+set}" = set; then
29386 echo $ECHO_N "(cached) $ECHO_C" >&6
29389 ac_cpp='$CPP $CPPFLAGS'
29390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29394 cat >conftest.$ac_ext <<_ACEOF
29397 cat confdefs.h >>conftest.$ac_ext
29398 cat >>conftest.$ac_ext <<_ACEOF
29399 /* end confdefs.h. */
29400 #include <sys/mman.h>
29401 #include <unistd.h>
29406 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29411 rm -f conftest.$ac_objext
29412 if { (ac_try="$ac_compile"
29413 case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_compile") 2>conftest.er1
29420 grep -v '^ *+' conftest.er1 >conftest.err
29422 cat conftest.err >&5
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); } &&
29425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29426 { (case "(($ac_try" in
29427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428 *) ac_try_echo=$ac_try;;
29430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431 (eval "$ac_try") 2>&5
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; } &&
29435 { ac_try='test -s conftest.$ac_objext'
29436 { (case "(($ac_try" in
29437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438 *) ac_try_echo=$ac_try;;
29440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441 (eval "$ac_try") 2>&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; }; then
29445 ac_cv_header_mmap_anon=yes
29447 echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29450 ac_cv_header_mmap_anon=no
29453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29455 ac_cpp='$CPP $CPPFLAGS'
29456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29462 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29463 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29464 if test "$ac_cv_header_mmap_anon" = yes; then
29466 cat >>confdefs.h <<\_ACEOF
29467 #define HAVE_MMAP_ANONYMOUS 1
29472 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29473 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29474 if test "${ac_cv_header_stat_broken+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29477 cat >conftest.$ac_ext <<_ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h. */
29483 #include <sys/types.h>
29484 #include <sys/stat.h>
29486 #if defined S_ISBLK && defined S_IFDIR
29487 # if S_ISBLK (S_IFDIR)
29492 #if defined S_ISBLK && defined S_IFCHR
29493 # if S_ISBLK (S_IFCHR)
29498 #if defined S_ISLNK && defined S_IFREG
29499 # if S_ISLNK (S_IFREG)
29504 #if defined S_ISSOCK && defined S_IFREG
29505 # if S_ISSOCK (S_IFREG)
29511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29512 $EGREP "You lose" >/dev/null 2>&1; then
29513 ac_cv_header_stat_broken=yes
29515 ac_cv_header_stat_broken=no
29520 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29521 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29522 if test $ac_cv_header_stat_broken = yes; then
29524 cat >>confdefs.h <<\_ACEOF
29525 #define STAT_MACROS_BROKEN 1
29530 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29531 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29532 if test "${ac_cv_header_stdc+set}" = set; then
29533 echo $ECHO_N "(cached) $ECHO_C" >&6
29535 cat >conftest.$ac_ext <<_ACEOF
29538 cat confdefs.h >>conftest.$ac_ext
29539 cat >>conftest.$ac_ext <<_ACEOF
29540 /* end confdefs.h. */
29541 #include <stdlib.h>
29542 #include <stdarg.h>
29543 #include <string.h>
29554 rm -f conftest.$ac_objext
29555 if { (ac_try="$ac_compile"
29556 case "(($ac_try" in
29557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558 *) ac_try_echo=$ac_try;;
29560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561 (eval "$ac_compile") 2>conftest.er1
29563 grep -v '^ *+' conftest.er1 >conftest.err
29565 cat conftest.err >&5
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); } &&
29568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29569 { (case "(($ac_try" in
29570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571 *) ac_try_echo=$ac_try;;
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574 (eval "$ac_try") 2>&5
29576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577 (exit $ac_status); }; } &&
29578 { ac_try='test -s conftest.$ac_objext'
29579 { (case "(($ac_try" in
29580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29581 *) ac_try_echo=$ac_try;;
29583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29584 (eval "$ac_try") 2>&5
29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); }; }; then
29588 ac_cv_header_stdc=yes
29590 echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29593 ac_cv_header_stdc=no
29596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29598 if test $ac_cv_header_stdc = yes; then
29599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29600 cat >conftest.$ac_ext <<_ACEOF
29603 cat confdefs.h >>conftest.$ac_ext
29604 cat >>conftest.$ac_ext <<_ACEOF
29605 /* end confdefs.h. */
29606 #include <string.h>
29609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29610 $EGREP "memchr" >/dev/null 2>&1; then
29613 ac_cv_header_stdc=no
29619 if test $ac_cv_header_stdc = yes; then
29620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29621 cat >conftest.$ac_ext <<_ACEOF
29624 cat confdefs.h >>conftest.$ac_ext
29625 cat >>conftest.$ac_ext <<_ACEOF
29626 /* end confdefs.h. */
29627 #include <stdlib.h>
29630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29631 $EGREP "free" >/dev/null 2>&1; then
29634 ac_cv_header_stdc=no
29640 if test $ac_cv_header_stdc = yes; then
29641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29642 if test "$cross_compiling" = yes; then
29645 cat >conftest.$ac_ext <<_ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h. */
29652 #include <stdlib.h>
29653 #if ((' ' & 0x0FF) == 0x020)
29654 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29655 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29657 # define ISLOWER(c) \
29658 (('a' <= (c) && (c) <= 'i') \
29659 || ('j' <= (c) && (c) <= 'r') \
29660 || ('s' <= (c) && (c) <= 'z'))
29661 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29664 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29669 for (i = 0; i < 256; i++)
29670 if (XOR (islower (i), ISLOWER (i))
29671 || toupper (i) != TOUPPER (i))
29676 rm -f conftest$ac_exeext
29677 if { (ac_try="$ac_link"
29678 case "(($ac_try" in
29679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29680 *) ac_try_echo=$ac_try;;
29682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29683 (eval "$ac_link") 2>&5
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29687 { (case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_try") 2>&5
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; }; then
29698 echo "$as_me: program exited with status $ac_status" >&5
29699 echo "$as_me: failed program was:" >&5
29700 sed 's/^/| /' conftest.$ac_ext >&5
29702 ( exit $ac_status )
29703 ac_cv_header_stdc=no
29705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29711 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29712 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29713 if test $ac_cv_header_stdc = yes; then
29715 cat >>confdefs.h <<\_ACEOF
29716 #define STDC_HEADERS 1
29721 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29722 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29723 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29724 echo $ECHO_N "(cached) $ECHO_C" >&6
29726 cat >conftest.$ac_ext <<_ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h. */
29732 #include <sys/types.h>
29733 #include <sys/wait.h>
29734 #ifndef WEXITSTATUS
29735 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29738 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29746 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29751 rm -f conftest.$ac_objext
29752 if { (ac_try="$ac_compile"
29753 case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_compile") 2>conftest.er1
29760 grep -v '^ *+' conftest.er1 >conftest.err
29762 cat conftest.err >&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); } &&
29765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29766 { (case "(($ac_try" in
29767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29768 *) ac_try_echo=$ac_try;;
29770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29771 (eval "$ac_try") 2>&5
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; } &&
29775 { ac_try='test -s conftest.$ac_objext'
29776 { (case "(($ac_try" in
29777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778 *) ac_try_echo=$ac_try;;
29780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29781 (eval "$ac_try") 2>&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; }; then
29785 ac_cv_header_sys_wait_h=yes
29787 echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29790 ac_cv_header_sys_wait_h=no
29793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29795 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29796 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29797 if test $ac_cv_header_sys_wait_h = yes; then
29799 cat >>confdefs.h <<\_ACEOF
29800 #define HAVE_SYS_WAIT_H 1
29805 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29806 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29807 if test "${ac_cv_header_time+set}" = set; then
29808 echo $ECHO_N "(cached) $ECHO_C" >&6
29810 cat >conftest.$ac_ext <<_ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h. */
29816 #include <sys/types.h>
29817 #include <sys/time.h>
29823 if ((struct tm *) 0)
29829 rm -f conftest.$ac_objext
29830 if { (ac_try="$ac_compile"
29831 case "(($ac_try" in
29832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833 *) ac_try_echo=$ac_try;;
29835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836 (eval "$ac_compile") 2>conftest.er1
29838 grep -v '^ *+' conftest.er1 >conftest.err
29840 cat conftest.err >&5
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); } &&
29843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29844 { (case "(($ac_try" in
29845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29846 *) ac_try_echo=$ac_try;;
29848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29849 (eval "$ac_try") 2>&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); }; } &&
29853 { ac_try='test -s conftest.$ac_objext'
29854 { (case "(($ac_try" in
29855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856 *) ac_try_echo=$ac_try;;
29858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859 (eval "$ac_try") 2>&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; }; then
29863 ac_cv_header_time=yes
29865 echo "$as_me: failed program was:" >&5
29866 sed 's/^/| /' conftest.$ac_ext >&5
29868 ac_cv_header_time=no
29871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29873 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29874 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29875 if test $ac_cv_header_time = yes; then
29877 cat >>confdefs.h <<\_ACEOF
29878 #define TIME_WITH_SYS_TIME 1
29890 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29897 echo $ECHO_N "(cached) $ECHO_C" >&6
29899 ac_res=`eval echo '${'$as_ac_Header'}'`
29900 { echo "$as_me:$LINENO: result: $ac_res" >&5
29901 echo "${ECHO_T}$ac_res" >&6; }
29903 # Is the header compilable?
29904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29906 cat >conftest.$ac_ext <<_ACEOF
29909 cat confdefs.h >>conftest.$ac_ext
29910 cat >>conftest.$ac_ext <<_ACEOF
29911 /* end confdefs.h. */
29912 $ac_includes_default
29913 #include <$ac_header>
29915 rm -f conftest.$ac_objext
29916 if { (ac_try="$ac_compile"
29917 case "(($ac_try" in
29918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919 *) ac_try_echo=$ac_try;;
29921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29922 (eval "$ac_compile") 2>conftest.er1
29924 grep -v '^ *+' conftest.er1 >conftest.err
29926 cat conftest.err >&5
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); } &&
29929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29930 { (case "(($ac_try" in
29931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29932 *) ac_try_echo=$ac_try;;
29934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29935 (eval "$ac_try") 2>&5
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); }; } &&
29939 { ac_try='test -s conftest.$ac_objext'
29940 { (case "(($ac_try" in
29941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29942 *) ac_try_echo=$ac_try;;
29944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29945 (eval "$ac_try") 2>&5
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); }; }; then
29949 ac_header_compiler=yes
29951 echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29954 ac_header_compiler=no
29957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29959 echo "${ECHO_T}$ac_header_compiler" >&6; }
29961 # Is the header present?
29962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29964 cat >conftest.$ac_ext <<_ACEOF
29967 cat confdefs.h >>conftest.$ac_ext
29968 cat >>conftest.$ac_ext <<_ACEOF
29969 /* end confdefs.h. */
29970 #include <$ac_header>
29972 if { (ac_try="$ac_cpp conftest.$ac_ext"
29973 case "(($ac_try" in
29974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975 *) ac_try_echo=$ac_try;;
29977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29980 grep -v '^ *+' conftest.er1 >conftest.err
29982 cat conftest.err >&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } >/dev/null; then
29985 if test -s conftest.err; then
29986 ac_cpp_err=$ac_c_preproc_warn_flag
29987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29994 if test -z "$ac_cpp_err"; then
29995 ac_header_preproc=yes
29997 echo "$as_me: failed program was:" >&5
29998 sed 's/^/| /' conftest.$ac_ext >&5
30000 ac_header_preproc=no
30003 rm -f conftest.err conftest.$ac_ext
30004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30005 echo "${ECHO_T}$ac_header_preproc" >&6; }
30007 # So? What about this header?
30008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30014 ac_header_preproc=yes
30017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30030 ## ----------------------------------- ##
30031 ## Report this to llvmbugs@cs.uiuc.edu ##
30032 ## ----------------------------------- ##
30034 ) | sed "s/^/$as_me: WARNING: /" >&2
30037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30040 echo $ECHO_N "(cached) $ECHO_C" >&6
30042 eval "$as_ac_Header=\$ac_header_preproc"
30044 ac_res=`eval echo '${'$as_ac_Header'}'`
30045 { echo "$as_me:$LINENO: result: $ac_res" >&5
30046 echo "${ECHO_T}$ac_res" >&6; }
30049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30050 cat >>confdefs.h <<_ACEOF
30051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30064 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30073 ac_res=`eval echo '${'$as_ac_Header'}'`
30074 { echo "$as_me:$LINENO: result: $ac_res" >&5
30075 echo "${ECHO_T}$ac_res" >&6; }
30077 # Is the header compilable?
30078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30080 cat >conftest.$ac_ext <<_ACEOF
30083 cat confdefs.h >>conftest.$ac_ext
30084 cat >>conftest.$ac_ext <<_ACEOF
30085 /* end confdefs.h. */
30086 $ac_includes_default
30087 #include <$ac_header>
30089 rm -f conftest.$ac_objext
30090 if { (ac_try="$ac_compile"
30091 case "(($ac_try" in
30092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30093 *) ac_try_echo=$ac_try;;
30095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30096 (eval "$ac_compile") 2>conftest.er1
30098 grep -v '^ *+' conftest.er1 >conftest.err
30100 cat conftest.err >&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); } &&
30103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30104 { (case "(($ac_try" in
30105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30106 *) ac_try_echo=$ac_try;;
30108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30109 (eval "$ac_try") 2>&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); }; } &&
30113 { ac_try='test -s conftest.$ac_objext'
30114 { (case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_try") 2>&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; }; then
30123 ac_header_compiler=yes
30125 echo "$as_me: failed program was:" >&5
30126 sed 's/^/| /' conftest.$ac_ext >&5
30128 ac_header_compiler=no
30131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30133 echo "${ECHO_T}$ac_header_compiler" >&6; }
30135 # Is the header present?
30136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30138 cat >conftest.$ac_ext <<_ACEOF
30141 cat confdefs.h >>conftest.$ac_ext
30142 cat >>conftest.$ac_ext <<_ACEOF
30143 /* end confdefs.h. */
30144 #include <$ac_header>
30146 if { (ac_try="$ac_cpp conftest.$ac_ext"
30147 case "(($ac_try" in
30148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149 *) ac_try_echo=$ac_try;;
30151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30154 grep -v '^ *+' conftest.er1 >conftest.err
30156 cat conftest.err >&5
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); } >/dev/null; then
30159 if test -s conftest.err; then
30160 ac_cpp_err=$ac_c_preproc_warn_flag
30161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30168 if test -z "$ac_cpp_err"; then
30169 ac_header_preproc=yes
30171 echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30174 ac_header_preproc=no
30177 rm -f conftest.err conftest.$ac_ext
30178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30179 echo "${ECHO_T}$ac_header_preproc" >&6; }
30181 # So? What about this header?
30182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30188 ac_header_preproc=yes
30191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30204 ## ----------------------------------- ##
30205 ## Report this to llvmbugs@cs.uiuc.edu ##
30206 ## ----------------------------------- ##
30208 ) | sed "s/^/$as_me: WARNING: /" >&2
30211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30214 echo $ECHO_N "(cached) $ECHO_C" >&6
30216 eval "$as_ac_Header=\$ac_header_preproc"
30218 ac_res=`eval echo '${'$as_ac_Header'}'`
30219 { echo "$as_me:$LINENO: result: $ac_res" >&5
30220 echo "${ECHO_T}$ac_res" >&6; }
30223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30224 cat >>confdefs.h <<_ACEOF
30225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30234 for ac_header in utime.h windows.h
30236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30243 ac_res=`eval echo '${'$as_ac_Header'}'`
30244 { echo "$as_me:$LINENO: result: $ac_res" >&5
30245 echo "${ECHO_T}$ac_res" >&6; }
30247 # Is the header compilable?
30248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30250 cat >conftest.$ac_ext <<_ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h. */
30256 $ac_includes_default
30257 #include <$ac_header>
30259 rm -f conftest.$ac_objext
30260 if { (ac_try="$ac_compile"
30261 case "(($ac_try" in
30262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263 *) ac_try_echo=$ac_try;;
30265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266 (eval "$ac_compile") 2>conftest.er1
30268 grep -v '^ *+' conftest.er1 >conftest.err
30270 cat conftest.err >&5
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } &&
30273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30274 { (case "(($ac_try" in
30275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276 *) ac_try_echo=$ac_try;;
30278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279 (eval "$ac_try") 2>&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest.$ac_objext'
30284 { (case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_try") 2>&5
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); }; }; then
30293 ac_header_compiler=yes
30295 echo "$as_me: failed program was:" >&5
30296 sed 's/^/| /' conftest.$ac_ext >&5
30298 ac_header_compiler=no
30301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30303 echo "${ECHO_T}$ac_header_compiler" >&6; }
30305 # Is the header present?
30306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30308 cat >conftest.$ac_ext <<_ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h. */
30314 #include <$ac_header>
30316 if { (ac_try="$ac_cpp conftest.$ac_ext"
30317 case "(($ac_try" in
30318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30319 *) ac_try_echo=$ac_try;;
30321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30324 grep -v '^ *+' conftest.er1 >conftest.err
30326 cat conftest.err >&5
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); } >/dev/null; then
30329 if test -s conftest.err; then
30330 ac_cpp_err=$ac_c_preproc_warn_flag
30331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30338 if test -z "$ac_cpp_err"; then
30339 ac_header_preproc=yes
30341 echo "$as_me: failed program was:" >&5
30342 sed 's/^/| /' conftest.$ac_ext >&5
30344 ac_header_preproc=no
30347 rm -f conftest.err conftest.$ac_ext
30348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30349 echo "${ECHO_T}$ac_header_preproc" >&6; }
30351 # So? What about this header?
30352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30358 ac_header_preproc=yes
30361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30374 ## ----------------------------------- ##
30375 ## Report this to llvmbugs@cs.uiuc.edu ##
30376 ## ----------------------------------- ##
30378 ) | sed "s/^/$as_me: WARNING: /" >&2
30381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30386 eval "$as_ac_Header=\$ac_header_preproc"
30388 ac_res=`eval echo '${'$as_ac_Header'}'`
30389 { echo "$as_me:$LINENO: result: $ac_res" >&5
30390 echo "${ECHO_T}$ac_res" >&6; }
30393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30394 cat >>confdefs.h <<_ACEOF
30395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30406 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30413 echo $ECHO_N "(cached) $ECHO_C" >&6
30415 ac_res=`eval echo '${'$as_ac_Header'}'`
30416 { echo "$as_me:$LINENO: result: $ac_res" >&5
30417 echo "${ECHO_T}$ac_res" >&6; }
30419 # Is the header compilable?
30420 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30422 cat >conftest.$ac_ext <<_ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h. */
30428 $ac_includes_default
30429 #include <$ac_header>
30431 rm -f conftest.$ac_objext
30432 if { (ac_try="$ac_compile"
30433 case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_compile") 2>conftest.er1
30440 grep -v '^ *+' conftest.er1 >conftest.err
30442 cat conftest.err >&5
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } &&
30445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30446 { (case "(($ac_try" in
30447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30448 *) ac_try_echo=$ac_try;;
30450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30451 (eval "$ac_try") 2>&5
30453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454 (exit $ac_status); }; } &&
30455 { ac_try='test -s conftest.$ac_objext'
30456 { (case "(($ac_try" in
30457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30458 *) ac_try_echo=$ac_try;;
30460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30461 (eval "$ac_try") 2>&5
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; }; then
30465 ac_header_compiler=yes
30467 echo "$as_me: failed program was:" >&5
30468 sed 's/^/| /' conftest.$ac_ext >&5
30470 ac_header_compiler=no
30473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30474 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30475 echo "${ECHO_T}$ac_header_compiler" >&6; }
30477 # Is the header present?
30478 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30480 cat >conftest.$ac_ext <<_ACEOF
30483 cat confdefs.h >>conftest.$ac_ext
30484 cat >>conftest.$ac_ext <<_ACEOF
30485 /* end confdefs.h. */
30486 #include <$ac_header>
30488 if { (ac_try="$ac_cpp conftest.$ac_ext"
30489 case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30496 grep -v '^ *+' conftest.er1 >conftest.err
30498 cat conftest.err >&5
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); } >/dev/null; then
30501 if test -s conftest.err; then
30502 ac_cpp_err=$ac_c_preproc_warn_flag
30503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30510 if test -z "$ac_cpp_err"; then
30511 ac_header_preproc=yes
30513 echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.$ac_ext >&5
30516 ac_header_preproc=no
30519 rm -f conftest.err conftest.$ac_ext
30520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30521 echo "${ECHO_T}$ac_header_preproc" >&6; }
30523 # So? What about this header?
30524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30530 ac_header_preproc=yes
30533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30546 ## ----------------------------------- ##
30547 ## Report this to llvmbugs@cs.uiuc.edu ##
30548 ## ----------------------------------- ##
30550 ) | sed "s/^/$as_me: WARNING: /" >&2
30553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30556 echo $ECHO_N "(cached) $ECHO_C" >&6
30558 eval "$as_ac_Header=\$ac_header_preproc"
30560 ac_res=`eval echo '${'$as_ac_Header'}'`
30561 { echo "$as_me:$LINENO: result: $ac_res" >&5
30562 echo "${ECHO_T}$ac_res" >&6; }
30565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30566 cat >>confdefs.h <<_ACEOF
30567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30578 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30585 echo $ECHO_N "(cached) $ECHO_C" >&6
30587 ac_res=`eval echo '${'$as_ac_Header'}'`
30588 { echo "$as_me:$LINENO: result: $ac_res" >&5
30589 echo "${ECHO_T}$ac_res" >&6; }
30591 # Is the header compilable?
30592 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30594 cat >conftest.$ac_ext <<_ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h. */
30600 $ac_includes_default
30601 #include <$ac_header>
30603 rm -f conftest.$ac_objext
30604 if { (ac_try="$ac_compile"
30605 case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_compile") 2>conftest.er1
30612 grep -v '^ *+' conftest.er1 >conftest.err
30614 cat conftest.err >&5
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } &&
30617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30618 { (case "(($ac_try" in
30619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30620 *) ac_try_echo=$ac_try;;
30622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623 (eval "$ac_try") 2>&5
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; } &&
30627 { ac_try='test -s conftest.$ac_objext'
30628 { (case "(($ac_try" in
30629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30630 *) ac_try_echo=$ac_try;;
30632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30633 (eval "$ac_try") 2>&5
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; }; then
30637 ac_header_compiler=yes
30639 echo "$as_me: failed program was:" >&5
30640 sed 's/^/| /' conftest.$ac_ext >&5
30642 ac_header_compiler=no
30645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30647 echo "${ECHO_T}$ac_header_compiler" >&6; }
30649 # Is the header present?
30650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30652 cat >conftest.$ac_ext <<_ACEOF
30655 cat confdefs.h >>conftest.$ac_ext
30656 cat >>conftest.$ac_ext <<_ACEOF
30657 /* end confdefs.h. */
30658 #include <$ac_header>
30660 if { (ac_try="$ac_cpp conftest.$ac_ext"
30661 case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30668 grep -v '^ *+' conftest.er1 >conftest.err
30670 cat conftest.err >&5
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); } >/dev/null; then
30673 if test -s conftest.err; then
30674 ac_cpp_err=$ac_c_preproc_warn_flag
30675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30682 if test -z "$ac_cpp_err"; then
30683 ac_header_preproc=yes
30685 echo "$as_me: failed program was:" >&5
30686 sed 's/^/| /' conftest.$ac_ext >&5
30688 ac_header_preproc=no
30691 rm -f conftest.err conftest.$ac_ext
30692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30693 echo "${ECHO_T}$ac_header_preproc" >&6; }
30695 # So? What about this header?
30696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30702 ac_header_preproc=yes
30705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30718 ## ----------------------------------- ##
30719 ## Report this to llvmbugs@cs.uiuc.edu ##
30720 ## ----------------------------------- ##
30722 ) | sed "s/^/$as_me: WARNING: /" >&2
30725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30728 echo $ECHO_N "(cached) $ECHO_C" >&6
30730 eval "$as_ac_Header=\$ac_header_preproc"
30732 ac_res=`eval echo '${'$as_ac_Header'}'`
30733 { echo "$as_me:$LINENO: result: $ac_res" >&5
30734 echo "${ECHO_T}$ac_res" >&6; }
30737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30738 cat >>confdefs.h <<_ACEOF
30739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30746 if test "$ENABLE_THREADS" -eq 1 ; then
30748 for ac_header in pthread.h
30750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30755 echo $ECHO_N "(cached) $ECHO_C" >&6
30757 ac_res=`eval echo '${'$as_ac_Header'}'`
30758 { echo "$as_me:$LINENO: result: $ac_res" >&5
30759 echo "${ECHO_T}$ac_res" >&6; }
30761 # Is the header compilable?
30762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30764 cat >conftest.$ac_ext <<_ACEOF
30767 cat confdefs.h >>conftest.$ac_ext
30768 cat >>conftest.$ac_ext <<_ACEOF
30769 /* end confdefs.h. */
30770 $ac_includes_default
30771 #include <$ac_header>
30773 rm -f conftest.$ac_objext
30774 if { (ac_try="$ac_compile"
30775 case "(($ac_try" in
30776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30777 *) ac_try_echo=$ac_try;;
30779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30780 (eval "$ac_compile") 2>conftest.er1
30782 grep -v '^ *+' conftest.er1 >conftest.err
30784 cat conftest.err >&5
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); } &&
30787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30788 { (case "(($ac_try" in
30789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30790 *) ac_try_echo=$ac_try;;
30792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30793 (eval "$ac_try") 2>&5
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; } &&
30797 { ac_try='test -s conftest.$ac_objext'
30798 { (case "(($ac_try" in
30799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30800 *) ac_try_echo=$ac_try;;
30802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30803 (eval "$ac_try") 2>&5
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); }; }; then
30807 ac_header_compiler=yes
30809 echo "$as_me: failed program was:" >&5
30810 sed 's/^/| /' conftest.$ac_ext >&5
30812 ac_header_compiler=no
30815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30817 echo "${ECHO_T}$ac_header_compiler" >&6; }
30819 # Is the header present?
30820 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30822 cat >conftest.$ac_ext <<_ACEOF
30825 cat confdefs.h >>conftest.$ac_ext
30826 cat >>conftest.$ac_ext <<_ACEOF
30827 /* end confdefs.h. */
30828 #include <$ac_header>
30830 if { (ac_try="$ac_cpp conftest.$ac_ext"
30831 case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30838 grep -v '^ *+' conftest.er1 >conftest.err
30840 cat conftest.err >&5
30841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842 (exit $ac_status); } >/dev/null; then
30843 if test -s conftest.err; then
30844 ac_cpp_err=$ac_c_preproc_warn_flag
30845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30852 if test -z "$ac_cpp_err"; then
30853 ac_header_preproc=yes
30855 echo "$as_me: failed program was:" >&5
30856 sed 's/^/| /' conftest.$ac_ext >&5
30858 ac_header_preproc=no
30861 rm -f conftest.err conftest.$ac_ext
30862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30863 echo "${ECHO_T}$ac_header_preproc" >&6; }
30865 # So? What about this header?
30866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30872 ac_header_preproc=yes
30875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30888 ## ----------------------------------- ##
30889 ## Report this to llvmbugs@cs.uiuc.edu ##
30890 ## ----------------------------------- ##
30892 ) | sed "s/^/$as_me: WARNING: /" >&2
30895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30898 echo $ECHO_N "(cached) $ECHO_C" >&6
30900 eval "$as_ac_Header=\$ac_header_preproc"
30902 ac_res=`eval echo '${'$as_ac_Header'}'`
30903 { echo "$as_me:$LINENO: result: $ac_res" >&5
30904 echo "${ECHO_T}$ac_res" >&6; }
30907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30908 cat >>confdefs.h <<_ACEOF
30909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30925 if test "$llvm_cv_enable_libffi" = "yes" ; then
30928 for ac_header in ffi.h ffi/ffi.h
30930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30935 echo $ECHO_N "(cached) $ECHO_C" >&6
30937 ac_res=`eval echo '${'$as_ac_Header'}'`
30938 { echo "$as_me:$LINENO: result: $ac_res" >&5
30939 echo "${ECHO_T}$ac_res" >&6; }
30941 # Is the header compilable?
30942 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30944 cat >conftest.$ac_ext <<_ACEOF
30947 cat confdefs.h >>conftest.$ac_ext
30948 cat >>conftest.$ac_ext <<_ACEOF
30949 /* end confdefs.h. */
30950 $ac_includes_default
30951 #include <$ac_header>
30953 rm -f conftest.$ac_objext
30954 if { (ac_try="$ac_compile"
30955 case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_compile") 2>conftest.er1
30962 grep -v '^ *+' conftest.er1 >conftest.err
30964 cat conftest.err >&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } &&
30967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30968 { (case "(($ac_try" in
30969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970 *) ac_try_echo=$ac_try;;
30972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973 (eval "$ac_try") 2>&5
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); }; } &&
30977 { ac_try='test -s conftest.$ac_objext'
30978 { (case "(($ac_try" in
30979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980 *) ac_try_echo=$ac_try;;
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_try") 2>&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; }; then
30987 ac_header_compiler=yes
30989 echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30992 ac_header_compiler=no
30995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30997 echo "${ECHO_T}$ac_header_compiler" >&6; }
30999 # Is the header present?
31000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31002 cat >conftest.$ac_ext <<_ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h. */
31008 #include <$ac_header>
31010 if { (ac_try="$ac_cpp conftest.$ac_ext"
31011 case "(($ac_try" in
31012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31013 *) ac_try_echo=$ac_try;;
31015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31018 grep -v '^ *+' conftest.er1 >conftest.err
31020 cat conftest.err >&5
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); } >/dev/null; then
31023 if test -s conftest.err; then
31024 ac_cpp_err=$ac_c_preproc_warn_flag
31025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31032 if test -z "$ac_cpp_err"; then
31033 ac_header_preproc=yes
31035 echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31038 ac_header_preproc=no
31041 rm -f conftest.err conftest.$ac_ext
31042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31043 echo "${ECHO_T}$ac_header_preproc" >&6; }
31045 # So? What about this header?
31046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31052 ac_header_preproc=yes
31055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31068 ## ----------------------------------- ##
31069 ## Report this to llvmbugs@cs.uiuc.edu ##
31070 ## ----------------------------------- ##
31072 ) | sed "s/^/$as_me: WARNING: /" >&2
31075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31078 echo $ECHO_N "(cached) $ECHO_C" >&6
31080 eval "$as_ac_Header=\$ac_header_preproc"
31082 ac_res=`eval echo '${'$as_ac_Header'}'`
31083 { echo "$as_me:$LINENO: result: $ac_res" >&5
31084 echo "${ECHO_T}$ac_res" >&6; }
31087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31088 cat >>confdefs.h <<_ACEOF
31089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31100 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31101 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31102 if test "${ac_cv_huge_val_sanity+set}" = set; then
31103 echo $ECHO_N "(cached) $ECHO_C" >&6
31107 ac_cpp='$CXXCPP $CPPFLAGS'
31108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31113 if test "$cross_compiling" = yes; then
31114 ac_cv_huge_val_sanity=yes
31116 cat >conftest.$ac_ext <<_ACEOF
31119 cat confdefs.h >>conftest.$ac_ext
31120 cat >>conftest.$ac_ext <<_ACEOF
31121 /* end confdefs.h. */
31126 double x = HUGE_VAL; return x != x;
31131 rm -f conftest$ac_exeext
31132 if { (ac_try="$ac_link"
31133 case "(($ac_try" in
31134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135 *) ac_try_echo=$ac_try;;
31137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138 (eval "$ac_link") 2>&5
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31142 { (case "(($ac_try" in
31143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31144 *) ac_try_echo=$ac_try;;
31146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31147 (eval "$ac_try") 2>&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; }; then
31151 ac_cv_huge_val_sanity=yes
31153 echo "$as_me: program exited with status $ac_status" >&5
31154 echo "$as_me: failed program was:" >&5
31155 sed 's/^/| /' conftest.$ac_ext >&5
31157 ( exit $ac_status )
31158 ac_cv_huge_val_sanity=no
31160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31165 ac_cpp='$CPP $CPPFLAGS'
31166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31172 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31173 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31174 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31177 { echo "$as_me:$LINENO: checking for pid_t" >&5
31178 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31179 if test "${ac_cv_type_pid_t+set}" = set; then
31180 echo $ECHO_N "(cached) $ECHO_C" >&6
31182 cat >conftest.$ac_ext <<_ACEOF
31185 cat confdefs.h >>conftest.$ac_ext
31186 cat >>conftest.$ac_ext <<_ACEOF
31187 /* end confdefs.h. */
31188 $ac_includes_default
31189 typedef pid_t ac__type_new_;
31193 if ((ac__type_new_ *) 0)
31195 if (sizeof (ac__type_new_))
31201 rm -f conftest.$ac_objext
31202 if { (ac_try="$ac_compile"
31203 case "(($ac_try" in
31204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205 *) ac_try_echo=$ac_try;;
31207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208 (eval "$ac_compile") 2>conftest.er1
31210 grep -v '^ *+' conftest.er1 >conftest.err
31212 cat conftest.err >&5
31213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214 (exit $ac_status); } &&
31215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31216 { (case "(($ac_try" in
31217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31218 *) ac_try_echo=$ac_try;;
31220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31221 (eval "$ac_try") 2>&5
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); }; } &&
31225 { ac_try='test -s conftest.$ac_objext'
31226 { (case "(($ac_try" in
31227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31228 *) ac_try_echo=$ac_try;;
31230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31231 (eval "$ac_try") 2>&5
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; }; then
31235 ac_cv_type_pid_t=yes
31237 echo "$as_me: failed program was:" >&5
31238 sed 's/^/| /' conftest.$ac_ext >&5
31240 ac_cv_type_pid_t=no
31243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31245 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31246 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31247 if test $ac_cv_type_pid_t = yes; then
31251 cat >>confdefs.h <<_ACEOF
31257 { echo "$as_me:$LINENO: checking for size_t" >&5
31258 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31259 if test "${ac_cv_type_size_t+set}" = set; then
31260 echo $ECHO_N "(cached) $ECHO_C" >&6
31262 cat >conftest.$ac_ext <<_ACEOF
31265 cat confdefs.h >>conftest.$ac_ext
31266 cat >>conftest.$ac_ext <<_ACEOF
31267 /* end confdefs.h. */
31268 $ac_includes_default
31269 typedef size_t ac__type_new_;
31273 if ((ac__type_new_ *) 0)
31275 if (sizeof (ac__type_new_))
31281 rm -f conftest.$ac_objext
31282 if { (ac_try="$ac_compile"
31283 case "(($ac_try" in
31284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285 *) ac_try_echo=$ac_try;;
31287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288 (eval "$ac_compile") 2>conftest.er1
31290 grep -v '^ *+' conftest.er1 >conftest.err
31292 cat conftest.err >&5
31293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294 (exit $ac_status); } &&
31295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31296 { (case "(($ac_try" in
31297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31298 *) ac_try_echo=$ac_try;;
31300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31301 (eval "$ac_try") 2>&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); }; } &&
31305 { ac_try='test -s conftest.$ac_objext'
31306 { (case "(($ac_try" in
31307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31308 *) ac_try_echo=$ac_try;;
31310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31311 (eval "$ac_try") 2>&5
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); }; }; then
31315 ac_cv_type_size_t=yes
31317 echo "$as_me: failed program was:" >&5
31318 sed 's/^/| /' conftest.$ac_ext >&5
31320 ac_cv_type_size_t=no
31323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31325 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31326 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31327 if test $ac_cv_type_size_t = yes; then
31331 cat >>confdefs.h <<_ACEOF
31332 #define size_t unsigned int
31337 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31338 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31339 if test "${ac_cv_type_signal+set}" = set; then
31340 echo $ECHO_N "(cached) $ECHO_C" >&6
31342 cat >conftest.$ac_ext <<_ACEOF
31345 cat confdefs.h >>conftest.$ac_ext
31346 cat >>conftest.$ac_ext <<_ACEOF
31347 /* end confdefs.h. */
31348 #include <sys/types.h>
31349 #include <signal.h>
31354 return *(signal (0, 0)) (0) == 1;
31359 rm -f conftest.$ac_objext
31360 if { (ac_try="$ac_compile"
31361 case "(($ac_try" in
31362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363 *) ac_try_echo=$ac_try;;
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366 (eval "$ac_compile") 2>conftest.er1
31368 grep -v '^ *+' conftest.er1 >conftest.err
31370 cat conftest.err >&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } &&
31373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31374 { (case "(($ac_try" in
31375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31376 *) ac_try_echo=$ac_try;;
31378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31379 (eval "$ac_try") 2>&5
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); }; } &&
31383 { ac_try='test -s conftest.$ac_objext'
31384 { (case "(($ac_try" in
31385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386 *) ac_try_echo=$ac_try;;
31388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31389 (eval "$ac_try") 2>&5
31391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392 (exit $ac_status); }; }; then
31393 ac_cv_type_signal=int
31395 echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.$ac_ext >&5
31398 ac_cv_type_signal=void
31401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31403 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31404 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31406 cat >>confdefs.h <<_ACEOF
31407 #define RETSIGTYPE $ac_cv_type_signal
31411 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31412 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31413 if test "${ac_cv_struct_tm+set}" = set; then
31414 echo $ECHO_N "(cached) $ECHO_C" >&6
31416 cat >conftest.$ac_ext <<_ACEOF
31419 cat confdefs.h >>conftest.$ac_ext
31420 cat >>conftest.$ac_ext <<_ACEOF
31421 /* end confdefs.h. */
31422 #include <sys/types.h>
31428 struct tm *tp; tp->tm_sec;
31433 rm -f conftest.$ac_objext
31434 if { (ac_try="$ac_compile"
31435 case "(($ac_try" in
31436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437 *) ac_try_echo=$ac_try;;
31439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440 (eval "$ac_compile") 2>conftest.er1
31442 grep -v '^ *+' conftest.er1 >conftest.err
31444 cat conftest.err >&5
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); } &&
31447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31448 { (case "(($ac_try" in
31449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31450 *) ac_try_echo=$ac_try;;
31452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31453 (eval "$ac_try") 2>&5
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; } &&
31457 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); }; }; then
31467 ac_cv_struct_tm=time.h
31469 echo "$as_me: failed program was:" >&5
31470 sed 's/^/| /' conftest.$ac_ext >&5
31472 ac_cv_struct_tm=sys/time.h
31475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31477 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31478 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31479 if test $ac_cv_struct_tm = sys/time.h; then
31481 cat >>confdefs.h <<\_ACEOF
31482 #define TM_IN_SYS_TIME 1
31487 { echo "$as_me:$LINENO: checking for int64_t" >&5
31488 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31489 if test "${ac_cv_type_int64_t+set}" = set; then
31490 echo $ECHO_N "(cached) $ECHO_C" >&6
31492 cat >conftest.$ac_ext <<_ACEOF
31495 cat confdefs.h >>conftest.$ac_ext
31496 cat >>conftest.$ac_ext <<_ACEOF
31497 /* end confdefs.h. */
31498 $ac_includes_default
31499 typedef int64_t ac__type_new_;
31503 if ((ac__type_new_ *) 0)
31505 if (sizeof (ac__type_new_))
31511 rm -f conftest.$ac_objext
31512 if { (ac_try="$ac_compile"
31513 case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_compile") 2>conftest.er1
31520 grep -v '^ *+' conftest.er1 >conftest.err
31522 cat conftest.err >&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
31525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest.$ac_objext'
31536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 ac_cv_type_int64_t=yes
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31550 ac_cv_type_int64_t=no
31553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31555 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31556 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31557 if test $ac_cv_type_int64_t = yes; then
31559 cat >>confdefs.h <<_ACEOF
31560 #define HAVE_INT64_T 1
31565 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31566 echo "$as_me: error: Type int64_t required but not found" >&2;}
31567 { (exit 1); exit 1; }; }
31570 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31571 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31572 if test "${ac_cv_type_uint64_t+set}" = set; then
31573 echo $ECHO_N "(cached) $ECHO_C" >&6
31575 cat >conftest.$ac_ext <<_ACEOF
31578 cat confdefs.h >>conftest.$ac_ext
31579 cat >>conftest.$ac_ext <<_ACEOF
31580 /* end confdefs.h. */
31581 $ac_includes_default
31582 typedef uint64_t ac__type_new_;
31586 if ((ac__type_new_ *) 0)
31588 if (sizeof (ac__type_new_))
31594 rm -f conftest.$ac_objext
31595 if { (ac_try="$ac_compile"
31596 case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_compile") 2>conftest.er1
31603 grep -v '^ *+' conftest.er1 >conftest.err
31605 cat conftest.err >&5
31606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31607 (exit $ac_status); } &&
31608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31609 { (case "(($ac_try" in
31610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31611 *) ac_try_echo=$ac_try;;
31613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31614 (eval "$ac_try") 2>&5
31616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617 (exit $ac_status); }; } &&
31618 { ac_try='test -s conftest.$ac_objext'
31619 { (case "(($ac_try" in
31620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31621 *) ac_try_echo=$ac_try;;
31623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31624 (eval "$ac_try") 2>&5
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); }; }; then
31628 ac_cv_type_uint64_t=yes
31630 echo "$as_me: failed program was:" >&5
31631 sed 's/^/| /' conftest.$ac_ext >&5
31633 ac_cv_type_uint64_t=no
31636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31638 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31639 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31640 if test $ac_cv_type_uint64_t = yes; then
31642 cat >>confdefs.h <<_ACEOF
31643 #define HAVE_UINT64_T 1
31648 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31649 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31650 if test "${ac_cv_type_u_int64_t+set}" = set; then
31651 echo $ECHO_N "(cached) $ECHO_C" >&6
31653 cat >conftest.$ac_ext <<_ACEOF
31656 cat confdefs.h >>conftest.$ac_ext
31657 cat >>conftest.$ac_ext <<_ACEOF
31658 /* end confdefs.h. */
31659 $ac_includes_default
31660 typedef u_int64_t ac__type_new_;
31664 if ((ac__type_new_ *) 0)
31666 if (sizeof (ac__type_new_))
31672 rm -f conftest.$ac_objext
31673 if { (ac_try="$ac_compile"
31674 case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_compile") 2>conftest.er1
31681 grep -v '^ *+' conftest.er1 >conftest.err
31683 cat conftest.err >&5
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); } &&
31686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31687 { (case "(($ac_try" in
31688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689 *) ac_try_echo=$ac_try;;
31691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692 (eval "$ac_try") 2>&5
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); }; } &&
31696 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31706 ac_cv_type_u_int64_t=yes
31708 echo "$as_me: failed program was:" >&5
31709 sed 's/^/| /' conftest.$ac_ext >&5
31711 ac_cv_type_u_int64_t=no
31714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31716 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31717 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31718 if test $ac_cv_type_u_int64_t = yes; then
31720 cat >>confdefs.h <<_ACEOF
31721 #define HAVE_U_INT64_T 1
31726 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31727 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31728 { (exit 1); exit 1; }; }
31742 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31748 echo $ECHO_N "(cached) $ECHO_C" >&6
31750 cat >conftest.$ac_ext <<_ACEOF
31753 cat confdefs.h >>conftest.$ac_ext
31754 cat >>conftest.$ac_ext <<_ACEOF
31755 /* end confdefs.h. */
31756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31758 #define $ac_func innocuous_$ac_func
31760 /* System header to define __stub macros and hopefully few prototypes,
31761 which can conflict with char $ac_func (); below.
31762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31763 <limits.h> exists even on freestanding compilers. */
31766 # include <limits.h>
31768 # include <assert.h>
31773 /* Override any GCC internal prototype to avoid an error.
31774 Use char because int might match the return type of a GCC
31775 builtin and then its argument prototype would still apply. */
31780 /* The GNU C library defines this for functions which it implements
31781 to always fail with ENOSYS. Some functions are actually named
31782 something starting with __ and the normal name is an alias. */
31783 #if defined __stub_$ac_func || defined __stub___$ac_func
31790 return $ac_func ();
31795 rm -f conftest.$ac_objext conftest$ac_exeext
31796 if { (ac_try="$ac_link"
31797 case "(($ac_try" in
31798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799 *) ac_try_echo=$ac_try;;
31801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802 (eval "$ac_link") 2>conftest.er1
31804 grep -v '^ *+' conftest.er1 >conftest.err
31806 cat conftest.err >&5
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); } &&
31809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31810 { (case "(($ac_try" in
31811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31812 *) ac_try_echo=$ac_try;;
31814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31815 (eval "$ac_try") 2>&5
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); }; } &&
31819 { ac_try='test -s conftest$ac_exeext'
31820 { (case "(($ac_try" in
31821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822 *) ac_try_echo=$ac_try;;
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825 (eval "$ac_try") 2>&5
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; }; then
31829 eval "$as_ac_var=yes"
31831 echo "$as_me: failed program was:" >&5
31832 sed 's/^/| /' conftest.$ac_ext >&5
31834 eval "$as_ac_var=no"
31837 rm -f core conftest.err conftest.$ac_objext \
31838 conftest$ac_exeext conftest.$ac_ext
31840 ac_res=`eval echo '${'$as_ac_var'}'`
31841 { echo "$as_me:$LINENO: result: $ac_res" >&5
31842 echo "${ECHO_T}$ac_res" >&6; }
31843 if test `eval echo '${'$as_ac_var'}'` = yes; then
31844 cat >>confdefs.h <<_ACEOF
31845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31855 for ac_func in powf fmodf strtof round
31857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31861 echo $ECHO_N "(cached) $ECHO_C" >&6
31863 cat >conftest.$ac_ext <<_ACEOF
31866 cat confdefs.h >>conftest.$ac_ext
31867 cat >>conftest.$ac_ext <<_ACEOF
31868 /* end confdefs.h. */
31869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31871 #define $ac_func innocuous_$ac_func
31873 /* System header to define __stub macros and hopefully few prototypes,
31874 which can conflict with char $ac_func (); below.
31875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31876 <limits.h> exists even on freestanding compilers. */
31879 # include <limits.h>
31881 # include <assert.h>
31886 /* Override any GCC internal prototype to avoid an error.
31887 Use char because int might match the return type of a GCC
31888 builtin and then its argument prototype would still apply. */
31893 /* The GNU C library defines this for functions which it implements
31894 to always fail with ENOSYS. Some functions are actually named
31895 something starting with __ and the normal name is an alias. */
31896 #if defined __stub_$ac_func || defined __stub___$ac_func
31903 return $ac_func ();
31908 rm -f conftest.$ac_objext conftest$ac_exeext
31909 if { (ac_try="$ac_link"
31910 case "(($ac_try" in
31911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912 *) ac_try_echo=$ac_try;;
31914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915 (eval "$ac_link") 2>conftest.er1
31917 grep -v '^ *+' conftest.er1 >conftest.err
31919 cat conftest.err >&5
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); } &&
31922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31923 { (case "(($ac_try" in
31924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925 *) ac_try_echo=$ac_try;;
31927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928 (eval "$ac_try") 2>&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); }; } &&
31932 { ac_try='test -s conftest$ac_exeext'
31933 { (case "(($ac_try" in
31934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31935 *) ac_try_echo=$ac_try;;
31937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31938 (eval "$ac_try") 2>&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; }; then
31942 eval "$as_ac_var=yes"
31944 echo "$as_me: failed program was:" >&5
31945 sed 's/^/| /' conftest.$ac_ext >&5
31947 eval "$as_ac_var=no"
31950 rm -f core conftest.err conftest.$ac_objext \
31951 conftest$ac_exeext conftest.$ac_ext
31953 ac_res=`eval echo '${'$as_ac_var'}'`
31954 { echo "$as_me:$LINENO: result: $ac_res" >&5
31955 echo "${ECHO_T}$ac_res" >&6; }
31956 if test `eval echo '${'$as_ac_var'}'` = yes; then
31957 cat >>confdefs.h <<_ACEOF
31958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31969 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31975 echo $ECHO_N "(cached) $ECHO_C" >&6
31977 cat >conftest.$ac_ext <<_ACEOF
31980 cat confdefs.h >>conftest.$ac_ext
31981 cat >>conftest.$ac_ext <<_ACEOF
31982 /* end confdefs.h. */
31983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31985 #define $ac_func innocuous_$ac_func
31987 /* System header to define __stub macros and hopefully few prototypes,
31988 which can conflict with char $ac_func (); below.
31989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31990 <limits.h> exists even on freestanding compilers. */
31993 # include <limits.h>
31995 # include <assert.h>
32000 /* Override any GCC internal prototype to avoid an error.
32001 Use char because int might match the return type of a GCC
32002 builtin and then its argument prototype would still apply. */
32007 /* The GNU C library defines this for functions which it implements
32008 to always fail with ENOSYS. Some functions are actually named
32009 something starting with __ and the normal name is an alias. */
32010 #if defined __stub_$ac_func || defined __stub___$ac_func
32017 return $ac_func ();
32022 rm -f conftest.$ac_objext conftest$ac_exeext
32023 if { (ac_try="$ac_link"
32024 case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_link") 2>conftest.er1
32031 grep -v '^ *+' conftest.er1 >conftest.err
32033 cat conftest.err >&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); } &&
32036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32037 { (case "(($ac_try" in
32038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32039 *) ac_try_echo=$ac_try;;
32041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32042 (eval "$ac_try") 2>&5
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); }; } &&
32046 { ac_try='test -s conftest$ac_exeext'
32047 { (case "(($ac_try" in
32048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049 *) ac_try_echo=$ac_try;;
32051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052 (eval "$ac_try") 2>&5
32054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055 (exit $ac_status); }; }; then
32056 eval "$as_ac_var=yes"
32058 echo "$as_me: failed program was:" >&5
32059 sed 's/^/| /' conftest.$ac_ext >&5
32061 eval "$as_ac_var=no"
32064 rm -f core conftest.err conftest.$ac_objext \
32065 conftest$ac_exeext conftest.$ac_ext
32067 ac_res=`eval echo '${'$as_ac_var'}'`
32068 { echo "$as_me:$LINENO: result: $ac_res" >&5
32069 echo "${ECHO_T}$ac_res" >&6; }
32070 if test `eval echo '${'$as_ac_var'}'` = yes; then
32071 cat >>confdefs.h <<_ACEOF
32072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32081 for ac_func in isatty mkdtemp mkstemp
32083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32087 echo $ECHO_N "(cached) $ECHO_C" >&6
32089 cat >conftest.$ac_ext <<_ACEOF
32092 cat confdefs.h >>conftest.$ac_ext
32093 cat >>conftest.$ac_ext <<_ACEOF
32094 /* end confdefs.h. */
32095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32097 #define $ac_func innocuous_$ac_func
32099 /* System header to define __stub macros and hopefully few prototypes,
32100 which can conflict with char $ac_func (); below.
32101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32102 <limits.h> exists even on freestanding compilers. */
32105 # include <limits.h>
32107 # include <assert.h>
32112 /* Override any GCC internal prototype to avoid an error.
32113 Use char because int might match the return type of a GCC
32114 builtin and then its argument prototype would still apply. */
32119 /* The GNU C library defines this for functions which it implements
32120 to always fail with ENOSYS. Some functions are actually named
32121 something starting with __ and the normal name is an alias. */
32122 #if defined __stub_$ac_func || defined __stub___$ac_func
32129 return $ac_func ();
32134 rm -f conftest.$ac_objext conftest$ac_exeext
32135 if { (ac_try="$ac_link"
32136 case "(($ac_try" in
32137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138 *) ac_try_echo=$ac_try;;
32140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141 (eval "$ac_link") 2>conftest.er1
32143 grep -v '^ *+' conftest.er1 >conftest.err
32145 cat conftest.err >&5
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147 (exit $ac_status); } &&
32148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32149 { (case "(($ac_try" in
32150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151 *) ac_try_echo=$ac_try;;
32153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154 (eval "$ac_try") 2>&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest$ac_exeext'
32159 { (case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_try") 2>&5
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; }; then
32168 eval "$as_ac_var=yes"
32170 echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.$ac_ext >&5
32173 eval "$as_ac_var=no"
32176 rm -f core conftest.err conftest.$ac_objext \
32177 conftest$ac_exeext conftest.$ac_ext
32179 ac_res=`eval echo '${'$as_ac_var'}'`
32180 { echo "$as_me:$LINENO: result: $ac_res" >&5
32181 echo "${ECHO_T}$ac_res" >&6; }
32182 if test `eval echo '${'$as_ac_var'}'` = yes; then
32183 cat >>confdefs.h <<_ACEOF
32184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32195 for ac_func in mktemp realpath sbrk setrlimit strdup
32197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32201 echo $ECHO_N "(cached) $ECHO_C" >&6
32203 cat >conftest.$ac_ext <<_ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h. */
32209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32211 #define $ac_func innocuous_$ac_func
32213 /* System header to define __stub macros and hopefully few prototypes,
32214 which can conflict with char $ac_func (); below.
32215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32216 <limits.h> exists even on freestanding compilers. */
32219 # include <limits.h>
32221 # include <assert.h>
32226 /* Override any GCC internal prototype to avoid an error.
32227 Use char because int might match the return type of a GCC
32228 builtin and then its argument prototype would still apply. */
32233 /* The GNU C library defines this for functions which it implements
32234 to always fail with ENOSYS. Some functions are actually named
32235 something starting with __ and the normal name is an alias. */
32236 #if defined __stub_$ac_func || defined __stub___$ac_func
32243 return $ac_func ();
32248 rm -f conftest.$ac_objext conftest$ac_exeext
32249 if { (ac_try="$ac_link"
32250 case "(($ac_try" in
32251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32252 *) ac_try_echo=$ac_try;;
32254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32255 (eval "$ac_link") 2>conftest.er1
32257 grep -v '^ *+' conftest.er1 >conftest.err
32259 cat conftest.err >&5
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); } &&
32262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32263 { (case "(($ac_try" in
32264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32265 *) ac_try_echo=$ac_try;;
32267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32268 (eval "$ac_try") 2>&5
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); }; } &&
32272 { ac_try='test -s conftest$ac_exeext'
32273 { (case "(($ac_try" in
32274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32275 *) ac_try_echo=$ac_try;;
32277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278 (eval "$ac_try") 2>&5
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); }; }; then
32282 eval "$as_ac_var=yes"
32284 echo "$as_me: failed program was:" >&5
32285 sed 's/^/| /' conftest.$ac_ext >&5
32287 eval "$as_ac_var=no"
32290 rm -f core conftest.err conftest.$ac_objext \
32291 conftest$ac_exeext conftest.$ac_ext
32293 ac_res=`eval echo '${'$as_ac_var'}'`
32294 { echo "$as_me:$LINENO: result: $ac_res" >&5
32295 echo "${ECHO_T}$ac_res" >&6; }
32296 if test `eval echo '${'$as_ac_var'}'` = yes; then
32297 cat >>confdefs.h <<_ACEOF
32298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32307 for ac_func in strerror strerror_r strerror_s
32309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32313 echo $ECHO_N "(cached) $ECHO_C" >&6
32315 cat >conftest.$ac_ext <<_ACEOF
32318 cat confdefs.h >>conftest.$ac_ext
32319 cat >>conftest.$ac_ext <<_ACEOF
32320 /* end confdefs.h. */
32321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32323 #define $ac_func innocuous_$ac_func
32325 /* System header to define __stub macros and hopefully few prototypes,
32326 which can conflict with char $ac_func (); below.
32327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32328 <limits.h> exists even on freestanding compilers. */
32331 # include <limits.h>
32333 # include <assert.h>
32338 /* Override any GCC internal prototype to avoid an error.
32339 Use char because int might match the return type of a GCC
32340 builtin and then its argument prototype would still apply. */
32345 /* The GNU C library defines this for functions which it implements
32346 to always fail with ENOSYS. Some functions are actually named
32347 something starting with __ and the normal name is an alias. */
32348 #if defined __stub_$ac_func || defined __stub___$ac_func
32355 return $ac_func ();
32360 rm -f conftest.$ac_objext conftest$ac_exeext
32361 if { (ac_try="$ac_link"
32362 case "(($ac_try" in
32363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364 *) ac_try_echo=$ac_try;;
32366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32367 (eval "$ac_link") 2>conftest.er1
32369 grep -v '^ *+' conftest.er1 >conftest.err
32371 cat conftest.err >&5
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); } &&
32374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32375 { (case "(($ac_try" in
32376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32377 *) ac_try_echo=$ac_try;;
32379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32380 (eval "$ac_try") 2>&5
32382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383 (exit $ac_status); }; } &&
32384 { ac_try='test -s conftest$ac_exeext'
32385 { (case "(($ac_try" in
32386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32387 *) ac_try_echo=$ac_try;;
32389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32390 (eval "$ac_try") 2>&5
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); }; }; then
32394 eval "$as_ac_var=yes"
32396 echo "$as_me: failed program was:" >&5
32397 sed 's/^/| /' conftest.$ac_ext >&5
32399 eval "$as_ac_var=no"
32402 rm -f core conftest.err conftest.$ac_objext \
32403 conftest$ac_exeext conftest.$ac_ext
32405 ac_res=`eval echo '${'$as_ac_var'}'`
32406 { echo "$as_me:$LINENO: result: $ac_res" >&5
32407 echo "${ECHO_T}$ac_res" >&6; }
32408 if test `eval echo '${'$as_ac_var'}'` = yes; then
32409 cat >>confdefs.h <<_ACEOF
32410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32420 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32426 echo $ECHO_N "(cached) $ECHO_C" >&6
32428 cat >conftest.$ac_ext <<_ACEOF
32431 cat confdefs.h >>conftest.$ac_ext
32432 cat >>conftest.$ac_ext <<_ACEOF
32433 /* end confdefs.h. */
32434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32436 #define $ac_func innocuous_$ac_func
32438 /* System header to define __stub macros and hopefully few prototypes,
32439 which can conflict with char $ac_func (); below.
32440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32441 <limits.h> exists even on freestanding compilers. */
32444 # include <limits.h>
32446 # include <assert.h>
32451 /* Override any GCC internal prototype to avoid an error.
32452 Use char because int might match the return type of a GCC
32453 builtin and then its argument prototype would still apply. */
32458 /* The GNU C library defines this for functions which it implements
32459 to always fail with ENOSYS. Some functions are actually named
32460 something starting with __ and the normal name is an alias. */
32461 #if defined __stub_$ac_func || defined __stub___$ac_func
32468 return $ac_func ();
32473 rm -f conftest.$ac_objext conftest$ac_exeext
32474 if { (ac_try="$ac_link"
32475 case "(($ac_try" in
32476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477 *) ac_try_echo=$ac_try;;
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480 (eval "$ac_link") 2>conftest.er1
32482 grep -v '^ *+' conftest.er1 >conftest.err
32484 cat conftest.err >&5
32485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486 (exit $ac_status); } &&
32487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32488 { (case "(($ac_try" in
32489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490 *) ac_try_echo=$ac_try;;
32492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32493 (eval "$ac_try") 2>&5
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); }; } &&
32497 { ac_try='test -s conftest$ac_exeext'
32498 { (case "(($ac_try" in
32499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32500 *) ac_try_echo=$ac_try;;
32502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32503 (eval "$ac_try") 2>&5
32505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506 (exit $ac_status); }; }; then
32507 eval "$as_ac_var=yes"
32509 echo "$as_me: failed program was:" >&5
32510 sed 's/^/| /' conftest.$ac_ext >&5
32512 eval "$as_ac_var=no"
32515 rm -f core conftest.err conftest.$ac_objext \
32516 conftest$ac_exeext conftest.$ac_ext
32518 ac_res=`eval echo '${'$as_ac_var'}'`
32519 { echo "$as_me:$LINENO: result: $ac_res" >&5
32520 echo "${ECHO_T}$ac_res" >&6; }
32521 if test `eval echo '${'$as_ac_var'}'` = yes; then
32522 cat >>confdefs.h <<_ACEOF
32523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32533 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32539 echo $ECHO_N "(cached) $ECHO_C" >&6
32541 cat >conftest.$ac_ext <<_ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h. */
32547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32549 #define $ac_func innocuous_$ac_func
32551 /* System header to define __stub macros and hopefully few prototypes,
32552 which can conflict with char $ac_func (); below.
32553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32554 <limits.h> exists even on freestanding compilers. */
32557 # include <limits.h>
32559 # include <assert.h>
32564 /* Override any GCC internal prototype to avoid an error.
32565 Use char because int might match the return type of a GCC
32566 builtin and then its argument prototype would still apply. */
32571 /* The GNU C library defines this for functions which it implements
32572 to always fail with ENOSYS. Some functions are actually named
32573 something starting with __ and the normal name is an alias. */
32574 #if defined __stub_$ac_func || defined __stub___$ac_func
32581 return $ac_func ();
32586 rm -f conftest.$ac_objext conftest$ac_exeext
32587 if { (ac_try="$ac_link"
32588 case "(($ac_try" in
32589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590 *) ac_try_echo=$ac_try;;
32592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593 (eval "$ac_link") 2>conftest.er1
32595 grep -v '^ *+' conftest.er1 >conftest.err
32597 cat conftest.err >&5
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); } &&
32600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32601 { (case "(($ac_try" in
32602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32603 *) ac_try_echo=$ac_try;;
32605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32606 (eval "$ac_try") 2>&5
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; } &&
32610 { ac_try='test -s conftest$ac_exeext'
32611 { (case "(($ac_try" in
32612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32613 *) ac_try_echo=$ac_try;;
32615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32616 (eval "$ac_try") 2>&5
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; }; then
32620 eval "$as_ac_var=yes"
32622 echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.$ac_ext >&5
32625 eval "$as_ac_var=no"
32628 rm -f core conftest.err conftest.$ac_objext \
32629 conftest$ac_exeext conftest.$ac_ext
32631 ac_res=`eval echo '${'$as_ac_var'}'`
32632 { echo "$as_me:$LINENO: result: $ac_res" >&5
32633 echo "${ECHO_T}$ac_res" >&6; }
32634 if test `eval echo '${'$as_ac_var'}'` = yes; then
32635 cat >>confdefs.h <<_ACEOF
32636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32642 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32643 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32644 if test "${llvm_cv_c_printf_a+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
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
32653 if test "$cross_compiling" = yes; then
32654 llvmac_cv_c_printf_a=no
32656 cat >conftest.$ac_ext <<_ACEOF
32660 cat confdefs.h >>conftest.$ac_ext
32661 cat >>conftest.$ac_ext <<_ACEOF
32662 /* end confdefs.h. */
32665 #include <stdlib.h>
32671 volatile double A, B;
32675 sprintf(Buffer, "%a", A);
32679 if (A != 0x1.999999999999ap-4)
32686 rm -f conftest$ac_exeext
32687 if { (ac_try="$ac_link"
32688 case "(($ac_try" in
32689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690 *) ac_try_echo=$ac_try;;
32692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693 (eval "$ac_link") 2>&5
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32697 { (case "(($ac_try" in
32698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699 *) ac_try_echo=$ac_try;;
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702 (eval "$ac_try") 2>&5
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; }; then
32706 llvm_cv_c_printf_a=yes
32708 echo "$as_me: program exited with status $ac_status" >&5
32709 echo "$as_me: failed program was:" >&5
32710 sed 's/^/| /' conftest.$ac_ext >&5
32712 ( exit $ac_status )
32713 llvmac_cv_c_printf_a=no
32715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32720 ac_cpp='$CPP $CPPFLAGS'
32721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32726 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32727 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32728 if test "$llvm_cv_c_printf_a" = "yes"; then
32730 cat >>confdefs.h <<\_ACEOF
32731 #define HAVE_PRINTF_A 1
32736 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32737 # for constant arguments. Useless!
32738 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32739 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32740 if test "${ac_cv_working_alloca_h+set}" = set; then
32741 echo $ECHO_N "(cached) $ECHO_C" >&6
32743 cat >conftest.$ac_ext <<_ACEOF
32746 cat confdefs.h >>conftest.$ac_ext
32747 cat >>conftest.$ac_ext <<_ACEOF
32748 /* end confdefs.h. */
32749 #include <alloca.h>
32753 char *p = (char *) alloca (2 * sizeof (int));
32759 rm -f conftest.$ac_objext conftest$ac_exeext
32760 if { (ac_try="$ac_link"
32761 case "(($ac_try" in
32762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763 *) ac_try_echo=$ac_try;;
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766 (eval "$ac_link") 2>conftest.er1
32768 grep -v '^ *+' conftest.er1 >conftest.err
32770 cat conftest.err >&5
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); } &&
32773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32774 { (case "(($ac_try" in
32775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32776 *) ac_try_echo=$ac_try;;
32778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32779 (eval "$ac_try") 2>&5
32781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782 (exit $ac_status); }; } &&
32783 { ac_try='test -s conftest$ac_exeext'
32784 { (case "(($ac_try" in
32785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786 *) ac_try_echo=$ac_try;;
32788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789 (eval "$ac_try") 2>&5
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); }; }; then
32793 ac_cv_working_alloca_h=yes
32795 echo "$as_me: failed program was:" >&5
32796 sed 's/^/| /' conftest.$ac_ext >&5
32798 ac_cv_working_alloca_h=no
32801 rm -f core conftest.err conftest.$ac_objext \
32802 conftest$ac_exeext conftest.$ac_ext
32804 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32805 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32806 if test $ac_cv_working_alloca_h = yes; then
32808 cat >>confdefs.h <<\_ACEOF
32809 #define HAVE_ALLOCA_H 1
32814 { echo "$as_me:$LINENO: checking for alloca" >&5
32815 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32816 if test "${ac_cv_func_alloca_works+set}" = set; then
32817 echo $ECHO_N "(cached) $ECHO_C" >&6
32819 cat >conftest.$ac_ext <<_ACEOF
32822 cat confdefs.h >>conftest.$ac_ext
32823 cat >>conftest.$ac_ext <<_ACEOF
32824 /* end confdefs.h. */
32826 # define alloca __builtin_alloca
32829 # include <malloc.h>
32830 # define alloca _alloca
32833 # include <alloca.h>
32838 # ifndef alloca /* predefined by HP cc +Olibcalls */
32849 char *p = (char *) alloca (1);
32855 rm -f conftest.$ac_objext conftest$ac_exeext
32856 if { (ac_try="$ac_link"
32857 case "(($ac_try" in
32858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859 *) ac_try_echo=$ac_try;;
32861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32862 (eval "$ac_link") 2>conftest.er1
32864 grep -v '^ *+' conftest.er1 >conftest.err
32866 cat conftest.err >&5
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); } &&
32869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32870 { (case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_try") 2>&5
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; } &&
32879 { ac_try='test -s conftest$ac_exeext'
32880 { (case "(($ac_try" in
32881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32882 *) ac_try_echo=$ac_try;;
32884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32885 (eval "$ac_try") 2>&5
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); }; }; then
32889 ac_cv_func_alloca_works=yes
32891 echo "$as_me: failed program was:" >&5
32892 sed 's/^/| /' conftest.$ac_ext >&5
32894 ac_cv_func_alloca_works=no
32897 rm -f core conftest.err conftest.$ac_objext \
32898 conftest$ac_exeext conftest.$ac_ext
32900 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32901 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32903 if test $ac_cv_func_alloca_works = yes; then
32905 cat >>confdefs.h <<\_ACEOF
32906 #define HAVE_ALLOCA 1
32910 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32911 # that cause trouble. Some versions do not even contain alloca or
32912 # contain a buggy version. If you still want to use their alloca,
32913 # use ar to extract alloca.o from them instead of compiling alloca.c.
32915 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32917 cat >>confdefs.h <<\_ACEOF
32922 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32923 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32924 if test "${ac_cv_os_cray+set}" = set; then
32925 echo $ECHO_N "(cached) $ECHO_C" >&6
32927 cat >conftest.$ac_ext <<_ACEOF
32930 cat confdefs.h >>conftest.$ac_ext
32931 cat >>conftest.$ac_ext <<_ACEOF
32932 /* end confdefs.h. */
32933 #if defined CRAY && ! defined CRAY2
32940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32941 $EGREP "webecray" >/dev/null 2>&1; then
32949 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32950 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32951 if test $ac_cv_os_cray = yes; then
32952 for ac_func in _getb67 GETB67 getb67; do
32953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32957 echo $ECHO_N "(cached) $ECHO_C" >&6
32959 cat >conftest.$ac_ext <<_ACEOF
32962 cat confdefs.h >>conftest.$ac_ext
32963 cat >>conftest.$ac_ext <<_ACEOF
32964 /* end confdefs.h. */
32965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32967 #define $ac_func innocuous_$ac_func
32969 /* System header to define __stub macros and hopefully few prototypes,
32970 which can conflict with char $ac_func (); below.
32971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32972 <limits.h> exists even on freestanding compilers. */
32975 # include <limits.h>
32977 # include <assert.h>
32982 /* Override any GCC internal prototype to avoid an error.
32983 Use char because int might match the return type of a GCC
32984 builtin and then its argument prototype would still apply. */
32989 /* The GNU C library defines this for functions which it implements
32990 to always fail with ENOSYS. Some functions are actually named
32991 something starting with __ and the normal name is an alias. */
32992 #if defined __stub_$ac_func || defined __stub___$ac_func
32999 return $ac_func ();
33004 rm -f conftest.$ac_objext conftest$ac_exeext
33005 if { (ac_try="$ac_link"
33006 case "(($ac_try" in
33007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33008 *) ac_try_echo=$ac_try;;
33010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33011 (eval "$ac_link") 2>conftest.er1
33013 grep -v '^ *+' conftest.er1 >conftest.err
33015 cat conftest.err >&5
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } &&
33018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33019 { (case "(($ac_try" in
33020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33021 *) ac_try_echo=$ac_try;;
33023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33024 (eval "$ac_try") 2>&5
33026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027 (exit $ac_status); }; } &&
33028 { ac_try='test -s conftest$ac_exeext'
33029 { (case "(($ac_try" in
33030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33031 *) ac_try_echo=$ac_try;;
33033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034 (eval "$ac_try") 2>&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); }; }; then
33038 eval "$as_ac_var=yes"
33040 echo "$as_me: failed program was:" >&5
33041 sed 's/^/| /' conftest.$ac_ext >&5
33043 eval "$as_ac_var=no"
33046 rm -f core conftest.err conftest.$ac_objext \
33047 conftest$ac_exeext conftest.$ac_ext
33049 ac_res=`eval echo '${'$as_ac_var'}'`
33050 { echo "$as_me:$LINENO: result: $ac_res" >&5
33051 echo "${ECHO_T}$ac_res" >&6; }
33052 if test `eval echo '${'$as_ac_var'}'` = yes; then
33054 cat >>confdefs.h <<_ACEOF
33055 #define CRAY_STACKSEG_END $ac_func
33064 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33065 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33066 if test "${ac_cv_c_stack_direction+set}" = set; then
33067 echo $ECHO_N "(cached) $ECHO_C" >&6
33069 if test "$cross_compiling" = yes; then
33070 ac_cv_c_stack_direction=0
33072 cat >conftest.$ac_ext <<_ACEOF
33075 cat confdefs.h >>conftest.$ac_ext
33076 cat >>conftest.$ac_ext <<_ACEOF
33077 /* end confdefs.h. */
33078 $ac_includes_default
33080 find_stack_direction ()
33082 static char *addr = 0;
33087 return find_stack_direction ();
33090 return (&dummy > addr) ? 1 : -1;
33096 return find_stack_direction () < 0;
33099 rm -f conftest$ac_exeext
33100 if { (ac_try="$ac_link"
33101 case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_link") 2>&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33110 { (case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_try") 2>&5
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); }; }; then
33119 ac_cv_c_stack_direction=1
33121 echo "$as_me: program exited with status $ac_status" >&5
33122 echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33125 ( exit $ac_status )
33126 ac_cv_c_stack_direction=-1
33128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33133 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33134 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33136 cat >>confdefs.h <<_ACEOF
33137 #define STACK_DIRECTION $ac_cv_c_stack_direction
33144 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33145 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33146 if test "${ac_cv_func_rand48+set}" = set; then
33147 echo $ECHO_N "(cached) $ECHO_C" >&6
33150 ac_cpp='$CXXCPP $CPPFLAGS'
33151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33155 cat >conftest.$ac_ext <<_ACEOF
33158 cat confdefs.h >>conftest.$ac_ext
33159 cat >>conftest.$ac_ext <<_ACEOF
33160 /* end confdefs.h. */
33161 #include <stdlib.h>
33165 srand48(0);lrand48();drand48();
33170 rm -f conftest.$ac_objext
33171 if { (ac_try="$ac_compile"
33172 case "(($ac_try" in
33173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33174 *) ac_try_echo=$ac_try;;
33176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33177 (eval "$ac_compile") 2>conftest.er1
33179 grep -v '^ *+' conftest.er1 >conftest.err
33181 cat conftest.err >&5
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183 (exit $ac_status); } &&
33184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33185 { (case "(($ac_try" in
33186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33187 *) ac_try_echo=$ac_try;;
33189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33190 (eval "$ac_try") 2>&5
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; } &&
33194 { ac_try='test -s conftest.$ac_objext'
33195 { (case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_try") 2>&5
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; }; then
33204 ac_cv_func_rand48=yes
33206 echo "$as_me: failed program was:" >&5
33207 sed 's/^/| /' conftest.$ac_ext >&5
33209 ac_cv_func_rand48=no
33212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33214 ac_cpp='$CPP $CPPFLAGS'
33215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33220 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33221 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33223 if test "$ac_cv_func_rand48" = "yes" ; then
33225 cat >>confdefs.h <<\_ACEOF
33226 #define HAVE_RAND48 1
33232 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33233 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33234 if test "${ac_cv_cxx_namespaces+set}" = set; then
33235 echo $ECHO_N "(cached) $ECHO_C" >&6
33238 ac_cpp='$CXXCPP $CPPFLAGS'
33239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33243 cat >conftest.$ac_ext <<_ACEOF
33246 cat confdefs.h >>conftest.$ac_ext
33247 cat >>conftest.$ac_ext <<_ACEOF
33248 /* end confdefs.h. */
33249 namespace Outer { namespace Inner { int i = 0; }}
33253 using namespace Outer::Inner; return i;
33258 rm -f conftest.$ac_objext
33259 if { (ac_try="$ac_compile"
33260 case "(($ac_try" in
33261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33262 *) ac_try_echo=$ac_try;;
33264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33265 (eval "$ac_compile") 2>conftest.er1
33267 grep -v '^ *+' conftest.er1 >conftest.err
33269 cat conftest.err >&5
33270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33271 (exit $ac_status); } &&
33272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33273 { (case "(($ac_try" in
33274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33275 *) ac_try_echo=$ac_try;;
33277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33278 (eval "$ac_try") 2>&5
33280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281 (exit $ac_status); }; } &&
33282 { ac_try='test -s conftest.$ac_objext'
33283 { (case "(($ac_try" in
33284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33285 *) ac_try_echo=$ac_try;;
33287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33288 (eval "$ac_try") 2>&5
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; }; then
33292 ac_cv_cxx_namespaces=yes
33294 echo "$as_me: failed program was:" >&5
33295 sed 's/^/| /' conftest.$ac_ext >&5
33297 ac_cv_cxx_namespaces=no
33300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33302 ac_cpp='$CPP $CPPFLAGS'
33303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33309 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33310 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33311 if test "$ac_cv_cxx_namespaces" = yes; then
33313 cat >>confdefs.h <<\_ACEOF
33314 #define HAVE_NAMESPACES
33319 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33320 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33321 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33322 echo $ECHO_N "(cached) $ECHO_C" >&6
33326 ac_cpp='$CXXCPP $CPPFLAGS'
33327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33331 cat >conftest.$ac_ext <<_ACEOF
33334 cat confdefs.h >>conftest.$ac_ext
33335 cat >>conftest.$ac_ext <<_ACEOF
33336 /* end confdefs.h. */
33337 #include <iterator>
33338 #ifdef HAVE_NAMESPACES
33339 using namespace std;
33344 iterator<int,int,int> t; return 0;
33349 rm -f conftest.$ac_objext
33350 if { (ac_try="$ac_compile"
33351 case "(($ac_try" in
33352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353 *) ac_try_echo=$ac_try;;
33355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356 (eval "$ac_compile") 2>conftest.er1
33358 grep -v '^ *+' conftest.er1 >conftest.err
33360 cat conftest.err >&5
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); } &&
33363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33364 { (case "(($ac_try" in
33365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366 *) ac_try_echo=$ac_try;;
33368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369 (eval "$ac_try") 2>&5
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; } &&
33373 { ac_try='test -s conftest.$ac_objext'
33374 { (case "(($ac_try" in
33375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376 *) ac_try_echo=$ac_try;;
33378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379 (eval "$ac_try") 2>&5
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); }; }; then
33383 ac_cv_cxx_have_std_iterator=yes
33385 echo "$as_me: failed program was:" >&5
33386 sed 's/^/| /' conftest.$ac_ext >&5
33388 ac_cv_cxx_have_std_iterator=no
33391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33393 ac_cpp='$CPP $CPPFLAGS'
33394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33400 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33401 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33402 if test "$ac_cv_cxx_have_std_iterator" = yes
33405 cat >>confdefs.h <<\_ACEOF
33406 #define HAVE_STD_ITERATOR 1
33411 cat >>confdefs.h <<\_ACEOF
33412 #define HAVE_STD_ITERATOR 0
33417 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33418 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33419 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33420 echo $ECHO_N "(cached) $ECHO_C" >&6
33424 ac_cpp='$CXXCPP $CPPFLAGS'
33425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33429 cat >conftest.$ac_ext <<_ACEOF
33432 cat confdefs.h >>conftest.$ac_ext
33433 cat >>conftest.$ac_ext <<_ACEOF
33434 /* end confdefs.h. */
33435 #include <iterator>
33436 #ifdef HAVE_NAMESPACES
33437 using namespace std;
33442 bidirectional_iterator<int,int> t; return 0;
33447 rm -f conftest.$ac_objext
33448 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
33456 grep -v '^ *+' conftest.er1 >conftest.err
33458 cat conftest.err >&5
33459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460 (exit $ac_status); } &&
33461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33462 { (case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_try") 2>&5
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; } &&
33471 { ac_try='test -s conftest.$ac_objext'
33472 { (case "(($ac_try" in
33473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33474 *) ac_try_echo=$ac_try;;
33476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33477 (eval "$ac_try") 2>&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; }; then
33481 ac_cv_cxx_have_bi_iterator=yes
33483 echo "$as_me: failed program was:" >&5
33484 sed 's/^/| /' conftest.$ac_ext >&5
33486 ac_cv_cxx_have_bi_iterator=no
33489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33491 ac_cpp='$CPP $CPPFLAGS'
33492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33498 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33499 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33500 if test "$ac_cv_cxx_have_bi_iterator" = yes
33503 cat >>confdefs.h <<\_ACEOF
33504 #define HAVE_BI_ITERATOR 1
33509 cat >>confdefs.h <<\_ACEOF
33510 #define HAVE_BI_ITERATOR 0
33515 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33516 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33517 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33518 echo $ECHO_N "(cached) $ECHO_C" >&6
33522 ac_cpp='$CXXCPP $CPPFLAGS'
33523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33527 cat >conftest.$ac_ext <<_ACEOF
33530 cat confdefs.h >>conftest.$ac_ext
33531 cat >>conftest.$ac_ext <<_ACEOF
33532 /* end confdefs.h. */
33533 #include <iterator>
33534 #ifdef HAVE_NAMESPACES
33535 using namespace std;
33540 forward_iterator<int,int> t; return 0;
33545 rm -f conftest.$ac_objext
33546 if { (ac_try="$ac_compile"
33547 case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_compile") 2>conftest.er1
33554 grep -v '^ *+' conftest.er1 >conftest.err
33556 cat conftest.err >&5
33557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558 (exit $ac_status); } &&
33559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33560 { (case "(($ac_try" in
33561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33562 *) ac_try_echo=$ac_try;;
33564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33565 (eval "$ac_try") 2>&5
33567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33568 (exit $ac_status); }; } &&
33569 { ac_try='test -s conftest.$ac_objext'
33570 { (case "(($ac_try" in
33571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33572 *) ac_try_echo=$ac_try;;
33574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33575 (eval "$ac_try") 2>&5
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); }; }; then
33579 ac_cv_cxx_have_fwd_iterator=yes
33581 echo "$as_me: failed program was:" >&5
33582 sed 's/^/| /' conftest.$ac_ext >&5
33584 ac_cv_cxx_have_fwd_iterator=no
33587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33589 ac_cpp='$CPP $CPPFLAGS'
33590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33596 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33597 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33598 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33601 cat >>confdefs.h <<\_ACEOF
33602 #define HAVE_FWD_ITERATOR 1
33607 cat >>confdefs.h <<\_ACEOF
33608 #define HAVE_FWD_ITERATOR 0
33614 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33615 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33616 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33617 echo $ECHO_N "(cached) $ECHO_C" >&6
33620 ac_cpp='$CXXCPP $CPPFLAGS'
33621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33625 cat >conftest.$ac_ext <<_ACEOF
33628 cat confdefs.h >>conftest.$ac_ext
33629 cat >>conftest.$ac_ext <<_ACEOF
33630 /* end confdefs.h. */
33640 rm -f conftest.$ac_objext
33641 if { (ac_try="$ac_compile"
33642 case "(($ac_try" in
33643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644 *) ac_try_echo=$ac_try;;
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647 (eval "$ac_compile") 2>conftest.er1
33649 grep -v '^ *+' conftest.er1 >conftest.err
33651 cat conftest.err >&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } &&
33654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33655 { (case "(($ac_try" in
33656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33657 *) ac_try_echo=$ac_try;;
33659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33660 (eval "$ac_try") 2>&5
33662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663 (exit $ac_status); }; } &&
33664 { ac_try='test -s conftest.$ac_objext'
33665 { (case "(($ac_try" in
33666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33667 *) ac_try_echo=$ac_try;;
33669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33670 (eval "$ac_try") 2>&5
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); }; }; then
33674 ac_cv_func_isnan_in_math_h=yes
33676 echo "$as_me: failed program was:" >&5
33677 sed 's/^/| /' conftest.$ac_ext >&5
33679 ac_cv_func_isnan_in_math_h=no
33682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33684 ac_cpp='$CPP $CPPFLAGS'
33685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33690 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33691 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33694 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33696 cat >>confdefs.h <<\_ACEOF
33697 #define HAVE_ISNAN_IN_MATH_H 1
33702 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33703 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33704 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33705 echo $ECHO_N "(cached) $ECHO_C" >&6
33708 ac_cpp='$CXXCPP $CPPFLAGS'
33709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33713 cat >conftest.$ac_ext <<_ACEOF
33716 cat confdefs.h >>conftest.$ac_ext
33717 cat >>conftest.$ac_ext <<_ACEOF
33718 /* end confdefs.h. */
33728 rm -f conftest.$ac_objext
33729 if { (ac_try="$ac_compile"
33730 case "(($ac_try" in
33731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33732 *) ac_try_echo=$ac_try;;
33734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33735 (eval "$ac_compile") 2>conftest.er1
33737 grep -v '^ *+' conftest.er1 >conftest.err
33739 cat conftest.err >&5
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); } &&
33742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33743 { (case "(($ac_try" in
33744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745 *) ac_try_echo=$ac_try;;
33747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748 (eval "$ac_try") 2>&5
33750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751 (exit $ac_status); }; } &&
33752 { ac_try='test -s conftest.$ac_objext'
33753 { (case "(($ac_try" in
33754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755 *) ac_try_echo=$ac_try;;
33757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758 (eval "$ac_try") 2>&5
33760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 (exit $ac_status); }; }; then
33762 ac_cv_func_isnan_in_cmath=yes
33764 echo "$as_me: failed program was:" >&5
33765 sed 's/^/| /' conftest.$ac_ext >&5
33767 ac_cv_func_isnan_in_cmath=no
33770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33772 ac_cpp='$CPP $CPPFLAGS'
33773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33778 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33779 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33781 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33783 cat >>confdefs.h <<\_ACEOF
33784 #define HAVE_ISNAN_IN_CMATH 1
33789 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33790 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33791 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33792 echo $ECHO_N "(cached) $ECHO_C" >&6
33795 ac_cpp='$CXXCPP $CPPFLAGS'
33796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33800 cat >conftest.$ac_ext <<_ACEOF
33803 cat confdefs.h >>conftest.$ac_ext
33804 cat >>conftest.$ac_ext <<_ACEOF
33805 /* end confdefs.h. */
33810 float f; std::isnan(f);
33815 rm -f conftest.$ac_objext
33816 if { (ac_try="$ac_compile"
33817 case "(($ac_try" in
33818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33819 *) ac_try_echo=$ac_try;;
33821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33822 (eval "$ac_compile") 2>conftest.er1
33824 grep -v '^ *+' conftest.er1 >conftest.err
33826 cat conftest.err >&5
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); } &&
33829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33830 { (case "(($ac_try" in
33831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33832 *) ac_try_echo=$ac_try;;
33834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33835 (eval "$ac_try") 2>&5
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); }; } &&
33839 { ac_try='test -s conftest.$ac_objext'
33840 { (case "(($ac_try" in
33841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33842 *) ac_try_echo=$ac_try;;
33844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33845 (eval "$ac_try") 2>&5
33847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848 (exit $ac_status); }; }; then
33849 ac_cv_func_std_isnan_in_cmath=yes
33851 echo "$as_me: failed program was:" >&5
33852 sed 's/^/| /' conftest.$ac_ext >&5
33854 ac_cv_func_std_isnan_in_cmath=no
33857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33859 ac_cpp='$CPP $CPPFLAGS'
33860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33865 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33866 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33868 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33870 cat >>confdefs.h <<\_ACEOF
33871 #define HAVE_STD_ISNAN_IN_CMATH 1
33877 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33878 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33879 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33880 echo $ECHO_N "(cached) $ECHO_C" >&6
33883 ac_cpp='$CXXCPP $CPPFLAGS'
33884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33888 cat >conftest.$ac_ext <<_ACEOF
33891 cat confdefs.h >>conftest.$ac_ext
33892 cat >>conftest.$ac_ext <<_ACEOF
33893 /* end confdefs.h. */
33903 rm -f conftest.$ac_objext
33904 if { (ac_try="$ac_compile"
33905 case "(($ac_try" in
33906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33907 *) ac_try_echo=$ac_try;;
33909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33910 (eval "$ac_compile") 2>conftest.er1
33912 grep -v '^ *+' conftest.er1 >conftest.err
33914 cat conftest.err >&5
33915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916 (exit $ac_status); } &&
33917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33918 { (case "(($ac_try" in
33919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920 *) ac_try_echo=$ac_try;;
33922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33923 (eval "$ac_try") 2>&5
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest.$ac_objext'
33928 { (case "(($ac_try" in
33929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930 *) ac_try_echo=$ac_try;;
33932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933 (eval "$ac_try") 2>&5
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; }; then
33937 ac_cv_func_isinf_in_math_h=yes
33939 echo "$as_me: failed program was:" >&5
33940 sed 's/^/| /' conftest.$ac_ext >&5
33942 ac_cv_func_isinf_in_math_h=no
33945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33947 ac_cpp='$CPP $CPPFLAGS'
33948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33953 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33954 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33956 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33958 cat >>confdefs.h <<\_ACEOF
33959 #define HAVE_ISINF_IN_MATH_H 1
33964 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33965 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33966 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33967 echo $ECHO_N "(cached) $ECHO_C" >&6
33970 ac_cpp='$CXXCPP $CPPFLAGS'
33971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33975 cat >conftest.$ac_ext <<_ACEOF
33978 cat confdefs.h >>conftest.$ac_ext
33979 cat >>conftest.$ac_ext <<_ACEOF
33980 /* end confdefs.h. */
33990 rm -f conftest.$ac_objext
33991 if { (ac_try="$ac_compile"
33992 case "(($ac_try" in
33993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994 *) ac_try_echo=$ac_try;;
33996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997 (eval "$ac_compile") 2>conftest.er1
33999 grep -v '^ *+' conftest.er1 >conftest.err
34001 cat conftest.err >&5
34002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003 (exit $ac_status); } &&
34004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34005 { (case "(($ac_try" in
34006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34007 *) ac_try_echo=$ac_try;;
34009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34010 (eval "$ac_try") 2>&5
34012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013 (exit $ac_status); }; } &&
34014 { ac_try='test -s conftest.$ac_objext'
34015 { (case "(($ac_try" in
34016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34017 *) ac_try_echo=$ac_try;;
34019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34020 (eval "$ac_try") 2>&5
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; }; then
34024 ac_cv_func_isinf_in_cmath=yes
34026 echo "$as_me: failed program was:" >&5
34027 sed 's/^/| /' conftest.$ac_ext >&5
34029 ac_cv_func_isinf_in_cmath=no
34032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34034 ac_cpp='$CPP $CPPFLAGS'
34035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34040 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34041 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34043 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34045 cat >>confdefs.h <<\_ACEOF
34046 #define HAVE_ISINF_IN_CMATH 1
34051 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34052 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34053 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34054 echo $ECHO_N "(cached) $ECHO_C" >&6
34057 ac_cpp='$CXXCPP $CPPFLAGS'
34058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34062 cat >conftest.$ac_ext <<_ACEOF
34065 cat confdefs.h >>conftest.$ac_ext
34066 cat >>conftest.$ac_ext <<_ACEOF
34067 /* end confdefs.h. */
34072 float f; std::isinf(f)}
34077 rm -f conftest.$ac_objext
34078 if { (ac_try="$ac_compile"
34079 case "(($ac_try" in
34080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34081 *) ac_try_echo=$ac_try;;
34083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34084 (eval "$ac_compile") 2>conftest.er1
34086 grep -v '^ *+' conftest.er1 >conftest.err
34088 cat conftest.err >&5
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); } &&
34091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34092 { (case "(($ac_try" in
34093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34094 *) ac_try_echo=$ac_try;;
34096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34097 (eval "$ac_try") 2>&5
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); }; } &&
34101 { ac_try='test -s conftest.$ac_objext'
34102 { (case "(($ac_try" in
34103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34104 *) ac_try_echo=$ac_try;;
34106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34107 (eval "$ac_try") 2>&5
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); }; }; then
34111 ac_cv_func_std_isinf_in_cmath=yes
34113 echo "$as_me: failed program was:" >&5
34114 sed 's/^/| /' conftest.$ac_ext >&5
34116 ac_cv_func_std_isinf_in_cmath=no
34119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34121 ac_cpp='$CPP $CPPFLAGS'
34122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34127 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34128 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34130 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34132 cat >>confdefs.h <<\_ACEOF
34133 #define HAVE_STD_ISINF_IN_CMATH 1
34138 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34139 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34140 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34141 echo $ECHO_N "(cached) $ECHO_C" >&6
34144 ac_cpp='$CXXCPP $CPPFLAGS'
34145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34149 cat >conftest.$ac_ext <<_ACEOF
34152 cat confdefs.h >>conftest.$ac_ext
34153 cat >>conftest.$ac_ext <<_ACEOF
34154 /* end confdefs.h. */
34155 #include <ieeefp.h>
34159 float f; finite(f);
34164 rm -f conftest.$ac_objext
34165 if { (ac_try="$ac_compile"
34166 case "(($ac_try" in
34167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34168 *) ac_try_echo=$ac_try;;
34170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34171 (eval "$ac_compile") 2>conftest.er1
34173 grep -v '^ *+' conftest.er1 >conftest.err
34175 cat conftest.err >&5
34176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177 (exit $ac_status); } &&
34178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34179 { (case "(($ac_try" in
34180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34181 *) ac_try_echo=$ac_try;;
34183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34184 (eval "$ac_try") 2>&5
34186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187 (exit $ac_status); }; } &&
34188 { ac_try='test -s conftest.$ac_objext'
34189 { (case "(($ac_try" in
34190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34191 *) ac_try_echo=$ac_try;;
34193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34194 (eval "$ac_try") 2>&5
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); }; }; then
34198 ac_cv_func_finite_in_ieeefp_h=yes
34200 echo "$as_me: failed program was:" >&5
34201 sed 's/^/| /' conftest.$ac_ext >&5
34203 ac_cv_func_finite_in_ieeefp_h=no
34206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34208 ac_cpp='$CPP $CPPFLAGS'
34209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34214 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34215 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34217 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34219 cat >>confdefs.h <<\_ACEOF
34220 #define HAVE_FINITE_IN_IEEEFP_H 1
34227 if test "$llvm_cv_platform_type" = "Unix" ; then
34230 for ac_header in stdlib.h unistd.h
34232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34237 echo $ECHO_N "(cached) $ECHO_C" >&6
34239 ac_res=`eval echo '${'$as_ac_Header'}'`
34240 { echo "$as_me:$LINENO: result: $ac_res" >&5
34241 echo "${ECHO_T}$ac_res" >&6; }
34243 # Is the header compilable?
34244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34246 cat >conftest.$ac_ext <<_ACEOF
34249 cat confdefs.h >>conftest.$ac_ext
34250 cat >>conftest.$ac_ext <<_ACEOF
34251 /* end confdefs.h. */
34252 $ac_includes_default
34253 #include <$ac_header>
34255 rm -f conftest.$ac_objext
34256 if { (ac_try="$ac_compile"
34257 case "(($ac_try" in
34258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259 *) ac_try_echo=$ac_try;;
34261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34262 (eval "$ac_compile") 2>conftest.er1
34264 grep -v '^ *+' conftest.er1 >conftest.err
34266 cat conftest.err >&5
34267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34268 (exit $ac_status); } &&
34269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34270 { (case "(($ac_try" in
34271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34272 *) ac_try_echo=$ac_try;;
34274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34275 (eval "$ac_try") 2>&5
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); }; } &&
34279 { ac_try='test -s conftest.$ac_objext'
34280 { (case "(($ac_try" in
34281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34282 *) ac_try_echo=$ac_try;;
34284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34285 (eval "$ac_try") 2>&5
34287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34288 (exit $ac_status); }; }; then
34289 ac_header_compiler=yes
34291 echo "$as_me: failed program was:" >&5
34292 sed 's/^/| /' conftest.$ac_ext >&5
34294 ac_header_compiler=no
34297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34299 echo "${ECHO_T}$ac_header_compiler" >&6; }
34301 # Is the header present?
34302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34304 cat >conftest.$ac_ext <<_ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h. */
34310 #include <$ac_header>
34312 if { (ac_try="$ac_cpp conftest.$ac_ext"
34313 case "(($ac_try" in
34314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34315 *) ac_try_echo=$ac_try;;
34317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34320 grep -v '^ *+' conftest.er1 >conftest.err
34322 cat conftest.err >&5
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324 (exit $ac_status); } >/dev/null; then
34325 if test -s conftest.err; then
34326 ac_cpp_err=$ac_c_preproc_warn_flag
34327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34334 if test -z "$ac_cpp_err"; then
34335 ac_header_preproc=yes
34337 echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34340 ac_header_preproc=no
34343 rm -f conftest.err conftest.$ac_ext
34344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34345 echo "${ECHO_T}$ac_header_preproc" >&6; }
34347 # So? What about this header?
34348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34354 ac_header_preproc=yes
34357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34370 ## ----------------------------------- ##
34371 ## Report this to llvmbugs@cs.uiuc.edu ##
34372 ## ----------------------------------- ##
34374 ) | sed "s/^/$as_me: WARNING: /" >&2
34377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34380 echo $ECHO_N "(cached) $ECHO_C" >&6
34382 eval "$as_ac_Header=\$ac_header_preproc"
34384 ac_res=`eval echo '${'$as_ac_Header'}'`
34385 { echo "$as_me:$LINENO: result: $ac_res" >&5
34386 echo "${ECHO_T}$ac_res" >&6; }
34389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34390 cat >>confdefs.h <<_ACEOF
34391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34399 for ac_func in getpagesize
34401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34405 echo $ECHO_N "(cached) $ECHO_C" >&6
34407 cat >conftest.$ac_ext <<_ACEOF
34410 cat confdefs.h >>conftest.$ac_ext
34411 cat >>conftest.$ac_ext <<_ACEOF
34412 /* end confdefs.h. */
34413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34415 #define $ac_func innocuous_$ac_func
34417 /* System header to define __stub macros and hopefully few prototypes,
34418 which can conflict with char $ac_func (); below.
34419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34420 <limits.h> exists even on freestanding compilers. */
34423 # include <limits.h>
34425 # include <assert.h>
34430 /* Override any GCC internal prototype to avoid an error.
34431 Use char because int might match the return type of a GCC
34432 builtin and then its argument prototype would still apply. */
34437 /* The GNU C library defines this for functions which it implements
34438 to always fail with ENOSYS. Some functions are actually named
34439 something starting with __ and the normal name is an alias. */
34440 #if defined __stub_$ac_func || defined __stub___$ac_func
34447 return $ac_func ();
34452 rm -f conftest.$ac_objext conftest$ac_exeext
34453 if { (ac_try="$ac_link"
34454 case "(($ac_try" in
34455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34456 *) ac_try_echo=$ac_try;;
34458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34459 (eval "$ac_link") 2>conftest.er1
34461 grep -v '^ *+' conftest.er1 >conftest.err
34463 cat conftest.err >&5
34464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465 (exit $ac_status); } &&
34466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34467 { (case "(($ac_try" in
34468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34469 *) ac_try_echo=$ac_try;;
34471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34472 (eval "$ac_try") 2>&5
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); }; } &&
34476 { ac_try='test -s conftest$ac_exeext'
34477 { (case "(($ac_try" in
34478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34479 *) ac_try_echo=$ac_try;;
34481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34482 (eval "$ac_try") 2>&5
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; }; then
34486 eval "$as_ac_var=yes"
34488 echo "$as_me: failed program was:" >&5
34489 sed 's/^/| /' conftest.$ac_ext >&5
34491 eval "$as_ac_var=no"
34494 rm -f core conftest.err conftest.$ac_objext \
34495 conftest$ac_exeext conftest.$ac_ext
34497 ac_res=`eval echo '${'$as_ac_var'}'`
34498 { echo "$as_me:$LINENO: result: $ac_res" >&5
34499 echo "${ECHO_T}$ac_res" >&6; }
34500 if test `eval echo '${'$as_ac_var'}'` = yes; then
34501 cat >>confdefs.h <<_ACEOF
34502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34508 { echo "$as_me:$LINENO: checking for working mmap" >&5
34509 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34510 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34511 echo $ECHO_N "(cached) $ECHO_C" >&6
34513 if test "$cross_compiling" = yes; then
34514 ac_cv_func_mmap_fixed_mapped=no
34516 cat >conftest.$ac_ext <<_ACEOF
34519 cat confdefs.h >>conftest.$ac_ext
34520 cat >>conftest.$ac_ext <<_ACEOF
34521 /* end confdefs.h. */
34522 $ac_includes_default
34523 /* malloc might have been renamed as rpl_malloc. */
34526 /* Thanks to Mike Haertel and Jim Avera for this test.
34527 Here is a matrix of mmap possibilities:
34528 mmap private not fixed
34529 mmap private fixed at somewhere currently unmapped
34530 mmap private fixed at somewhere already mapped
34531 mmap shared not fixed
34532 mmap shared fixed at somewhere currently unmapped
34533 mmap shared fixed at somewhere already mapped
34534 For private mappings, we should verify that changes cannot be read()
34535 back from the file, nor mmap's back from the file at a different
34536 address. (There have been systems where private was not correctly
34537 implemented like the infamous i386 svr4.0, and systems where the
34538 VM page cache was not coherent with the file system buffer cache
34539 like early versions of FreeBSD and possibly contemporary NetBSD.)
34540 For shared mappings, we should conversely verify that changes get
34541 propagated back to all the places they're supposed to be.
34543 Grep wants private fixed already mapped.
34544 The main things grep needs to know about mmap are:
34545 * does it exist and is it safe to write into the mmap'd area
34546 * how to use it (BSD variants) */
34549 #include <sys/mman.h>
34551 #if !STDC_HEADERS && !HAVE_STDLIB_H
34555 /* This mess was copied from the GNU getpagesize.h. */
34556 #if !HAVE_GETPAGESIZE
34557 /* Assume that all systems that can run configure have sys/param.h. */
34558 # if !HAVE_SYS_PARAM_H
34559 # define HAVE_SYS_PARAM_H 1
34562 # ifdef _SC_PAGESIZE
34563 # define getpagesize() sysconf(_SC_PAGESIZE)
34564 # else /* no _SC_PAGESIZE */
34565 # if HAVE_SYS_PARAM_H
34566 # include <sys/param.h>
34567 # ifdef EXEC_PAGESIZE
34568 # define getpagesize() EXEC_PAGESIZE
34569 # else /* no EXEC_PAGESIZE */
34571 # define getpagesize() NBPG * CLSIZE
34574 # endif /* no CLSIZE */
34575 # else /* no NBPG */
34577 # define getpagesize() NBPC
34578 # else /* no NBPC */
34580 # define getpagesize() PAGESIZE
34581 # endif /* PAGESIZE */
34582 # endif /* no NBPC */
34583 # endif /* no NBPG */
34584 # endif /* no EXEC_PAGESIZE */
34585 # else /* no HAVE_SYS_PARAM_H */
34586 # define getpagesize() 8192 /* punt totally */
34587 # endif /* no HAVE_SYS_PARAM_H */
34588 # endif /* no _SC_PAGESIZE */
34590 #endif /* no HAVE_GETPAGESIZE */
34595 char *data, *data2, *data3;
34599 pagesize = getpagesize ();
34601 /* First, make a file with some known garbage in it. */
34602 data = (char *) malloc (pagesize);
34605 for (i = 0; i < pagesize; ++i)
34606 *(data + i) = rand ();
34608 fd = creat ("conftest.mmap", 0600);
34611 if (write (fd, data, pagesize) != pagesize)
34615 /* Next, try to mmap the file at a fixed address which already has
34616 something else allocated at it. If we can, also make sure that
34617 we see the same garbage. */
34618 fd = open ("conftest.mmap", O_RDWR);
34621 data2 = (char *) malloc (2 * pagesize);
34624 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34625 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34626 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34628 for (i = 0; i < pagesize; ++i)
34629 if (*(data + i) != *(data2 + i))
34632 /* Finally, make sure that changes to the mapped area do not
34633 percolate back to the file as seen by read(). (This is a bug on
34634 some variants of i386 svr4.0.) */
34635 for (i = 0; i < pagesize; ++i)
34636 *(data2 + i) = *(data2 + i) + 1;
34637 data3 = (char *) malloc (pagesize);
34640 if (read (fd, data3, pagesize) != pagesize)
34642 for (i = 0; i < pagesize; ++i)
34643 if (*(data + i) != *(data3 + i))
34649 rm -f conftest$ac_exeext
34650 if { (ac_try="$ac_link"
34651 case "(($ac_try" in
34652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34653 *) ac_try_echo=$ac_try;;
34655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34656 (eval "$ac_link") 2>&5
34658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34660 { (case "(($ac_try" in
34661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34662 *) ac_try_echo=$ac_try;;
34664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34665 (eval "$ac_try") 2>&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; }; then
34669 ac_cv_func_mmap_fixed_mapped=yes
34671 echo "$as_me: program exited with status $ac_status" >&5
34672 echo "$as_me: failed program was:" >&5
34673 sed 's/^/| /' conftest.$ac_ext >&5
34675 ( exit $ac_status )
34676 ac_cv_func_mmap_fixed_mapped=no
34678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34683 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34684 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34685 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34687 cat >>confdefs.h <<\_ACEOF
34688 #define HAVE_MMAP 1
34692 rm -f conftest.mmap
34694 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34695 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34696 if test "${ac_cv_func_mmap_file+set}" = set; then
34697 echo $ECHO_N "(cached) $ECHO_C" >&6
34700 ac_cpp='$CPP $CPPFLAGS'
34701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34705 if test "$cross_compiling" = yes; then
34706 ac_cv_func_mmap_file=no
34708 cat >conftest.$ac_ext <<_ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h. */
34716 #include <sys/types.h>
34717 #include <sys/mman.h>
34725 fd = creat ("foo",0777);
34726 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34728 return (fd != (int) MAP_FAILED);
34733 rm -f conftest$ac_exeext
34734 if { (ac_try="$ac_link"
34735 case "(($ac_try" in
34736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34737 *) ac_try_echo=$ac_try;;
34739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34740 (eval "$ac_link") 2>&5
34742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34744 { (case "(($ac_try" in
34745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34746 *) ac_try_echo=$ac_try;;
34748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34749 (eval "$ac_try") 2>&5
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); }; }; then
34753 ac_cv_func_mmap_file=yes
34755 echo "$as_me: program exited with status $ac_status" >&5
34756 echo "$as_me: failed program was:" >&5
34757 sed 's/^/| /' conftest.$ac_ext >&5
34759 ( exit $ac_status )
34760 ac_cv_func_mmap_file=no
34762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34767 ac_cpp='$CPP $CPPFLAGS'
34768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34774 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34775 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34776 if test "$ac_cv_func_mmap_file" = yes; then
34778 cat >>confdefs.h <<\_ACEOF
34779 #define HAVE_MMAP_FILE
34786 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34787 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34788 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34791 if test "$llvm_cv_os_type" = "Interix" ; then
34792 ac_cv_need_dev_zero_for_mmap=yes
34794 ac_cv_need_dev_zero_for_mmap=no
34798 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34799 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34800 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34802 cat >>confdefs.h <<\_ACEOF
34803 #define NEED_DEV_ZERO_FOR_MMAP 1
34808 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34810 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34811 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34813 if test "$ac_cv_func_mmap_file" = "no"
34815 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34816 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34820 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34821 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34822 cat >conftest.$ac_ext <<_ACEOF
34825 cat confdefs.h >>conftest.$ac_ext
34826 cat >>conftest.$ac_ext <<_ACEOF
34827 /* end confdefs.h. */
34829 volatile unsigned long val = 1;
34830 __sync_synchronize();
34831 __sync_val_compare_and_swap(&val, 1, 0);
34832 __sync_add_and_fetch(&val, 1);
34833 __sync_sub_and_fetch(&val, 1);
34838 rm -f conftest.$ac_objext conftest$ac_exeext
34839 if { (ac_try="$ac_link"
34840 case "(($ac_try" in
34841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34842 *) ac_try_echo=$ac_try;;
34844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34845 (eval "$ac_link") 2>conftest.er1
34847 grep -v '^ *+' conftest.er1 >conftest.err
34849 cat conftest.err >&5
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); } &&
34852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34853 { (case "(($ac_try" in
34854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34855 *) ac_try_echo=$ac_try;;
34857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34858 (eval "$ac_try") 2>&5
34860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861 (exit $ac_status); }; } &&
34862 { ac_try='test -s conftest$ac_exeext'
34863 { (case "(($ac_try" in
34864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34865 *) ac_try_echo=$ac_try;;
34867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34868 (eval "$ac_try") 2>&5
34870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871 (exit $ac_status); }; }; then
34872 { echo "$as_me:$LINENO: result: yes" >&5
34873 echo "${ECHO_T}yes" >&6; }
34875 cat >>confdefs.h <<\_ACEOF
34876 #define LLVM_MULTITHREADED 1
34880 echo "$as_me: failed program was:" >&5
34881 sed 's/^/| /' conftest.$ac_ext >&5
34883 { echo "$as_me:$LINENO: result: no" >&5
34884 echo "${ECHO_T}no" >&6; }
34886 cat >>confdefs.h <<\_ACEOF
34887 #define LLVM_MULTITHREADED 0
34890 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34891 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34894 rm -f core conftest.err conftest.$ac_objext \
34895 conftest$ac_exeext conftest.$ac_ext
34900 for ac_func in __dso_handle
34902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34906 echo $ECHO_N "(cached) $ECHO_C" >&6
34908 cat >conftest.$ac_ext <<_ACEOF
34911 cat confdefs.h >>conftest.$ac_ext
34912 cat >>conftest.$ac_ext <<_ACEOF
34913 /* end confdefs.h. */
34914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34916 #define $ac_func innocuous_$ac_func
34918 /* System header to define __stub macros and hopefully few prototypes,
34919 which can conflict with char $ac_func (); below.
34920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34921 <limits.h> exists even on freestanding compilers. */
34924 # include <limits.h>
34926 # include <assert.h>
34931 /* Override any GCC internal prototype to avoid an error.
34932 Use char because int might match the return type of a GCC
34933 builtin and then its argument prototype would still apply. */
34938 /* The GNU C library defines this for functions which it implements
34939 to always fail with ENOSYS. Some functions are actually named
34940 something starting with __ and the normal name is an alias. */
34941 #if defined __stub_$ac_func || defined __stub___$ac_func
34948 return $ac_func ();
34953 rm -f conftest.$ac_objext conftest$ac_exeext
34954 if { (ac_try="$ac_link"
34955 case "(($ac_try" in
34956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34957 *) ac_try_echo=$ac_try;;
34959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34960 (eval "$ac_link") 2>conftest.er1
34962 grep -v '^ *+' conftest.er1 >conftest.err
34964 cat conftest.err >&5
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); } &&
34967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34968 { (case "(($ac_try" in
34969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34970 *) ac_try_echo=$ac_try;;
34972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34973 (eval "$ac_try") 2>&5
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); }; } &&
34977 { ac_try='test -s conftest$ac_exeext'
34978 { (case "(($ac_try" in
34979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34980 *) ac_try_echo=$ac_try;;
34982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34983 (eval "$ac_try") 2>&5
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); }; }; then
34987 eval "$as_ac_var=yes"
34989 echo "$as_me: failed program was:" >&5
34990 sed 's/^/| /' conftest.$ac_ext >&5
34992 eval "$as_ac_var=no"
34995 rm -f core conftest.err conftest.$ac_objext \
34996 conftest$ac_exeext conftest.$ac_ext
34998 ac_res=`eval echo '${'$as_ac_var'}'`
34999 { echo "$as_me:$LINENO: result: $ac_res" >&5
35000 echo "${ECHO_T}$ac_res" >&6; }
35001 if test `eval echo '${'$as_ac_var'}'` = yes; then
35002 cat >>confdefs.h <<_ACEOF
35003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35010 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35011 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35012 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35013 echo $ECHO_N "(cached) $ECHO_C" >&6
35015 llvm_cv_llvmgcc_sanity="no"
35016 if test -x "$LLVMGCC" ; then
35017 cp /dev/null conftest.c
35018 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35019 grep 'target datalayout =' > /dev/null 2>&1
35020 if test $? -eq 0 ; then
35021 llvm_cv_llvmgcc_sanity="yes"
35026 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35027 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35029 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35030 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35031 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35032 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35033 LLVMCC1=$llvmcc1path
35035 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35036 LLVMCC1PLUS=$llvmcc1pluspath
35038 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35039 LLVMGCCDIR=$llvmgccdir
35041 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35042 LLVMGCCLIBEXEC=$llvmgcclibexec
35044 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35045 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35046 LLVMGCC_VERSION=$llvmgccversion
35048 LLVMGCC_MAJVERS=$llvmgccmajvers
35050 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35051 LLVMGCC_LANGS=$llvmgcclangs
35053 { echo "$as_me:$LINENO: result: ok" >&5
35054 echo "${ECHO_T}ok" >&6; }
35057 SHLIBEXT=$libltdl_cv_shlibext
35060 # Translate the various configuration directories and other basic
35061 # information into substitutions that will end up in Makefile.config.in
35062 # that these configured values can be used by the makefiles
35063 if test "${prefix}" = "NONE" ; then
35064 prefix="/usr/local"
35066 eval LLVM_PREFIX="${prefix}";
35067 eval LLVM_BINDIR="${prefix}/bin";
35068 eval LLVM_LIBDIR="${prefix}/lib";
35069 eval LLVM_DATADIR="${prefix}/share/llvm";
35070 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35071 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35072 eval LLVM_INCLUDEDIR="${prefix}/include";
35073 eval LLVM_INFODIR="${prefix}/info";
35074 eval LLVM_MANDIR="${prefix}/man";
35075 LLVM_CONFIGTIME=`date`
35087 # Place the various directores into the config.h file as #defines so that we
35088 # can know about the installation paths within LLVM.
35090 cat >>confdefs.h <<_ACEOF
35091 #define LLVM_PREFIX "$LLVM_PREFIX"
35095 cat >>confdefs.h <<_ACEOF
35096 #define LLVM_BINDIR "$LLVM_BINDIR"
35100 cat >>confdefs.h <<_ACEOF
35101 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35105 cat >>confdefs.h <<_ACEOF
35106 #define LLVM_DATADIR "$LLVM_DATADIR"
35110 cat >>confdefs.h <<_ACEOF
35111 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35115 cat >>confdefs.h <<_ACEOF
35116 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35120 cat >>confdefs.h <<_ACEOF
35121 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35125 cat >>confdefs.h <<_ACEOF
35126 #define LLVM_INFODIR "$LLVM_INFODIR"
35130 cat >>confdefs.h <<_ACEOF
35131 #define LLVM_MANDIR "$LLVM_MANDIR"
35135 cat >>confdefs.h <<_ACEOF
35136 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35140 cat >>confdefs.h <<_ACEOF
35141 #define LLVM_HOSTTRIPLE "$host"
35145 # Determine which bindings to build.
35146 if test "$BINDINGS_TO_BUILD" = auto ; then
35147 BINDINGS_TO_BUILD=""
35148 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35149 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35152 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35155 # This isn't really configurey, but it avoids having to repeat the list in
35160 # Do any work necessary to ensure that bindings have what they need.
35161 binding_prereqs_failed=0
35162 for a_binding in $BINDINGS_TO_BUILD ; do
35163 case "$a_binding" in
35165 if test "x$OCAMLC" = x ; then
35166 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35167 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35168 binding_prereqs_failed=1
35170 if test "x$OCAMLDEP" = x ; then
35171 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35172 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35173 binding_prereqs_failed=1
35175 if test "x$OCAMLOPT" = x ; then
35176 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35177 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35179 if test "x$with_ocaml_libdir" != xauto ; then
35180 OCAML_LIBDIR=$with_ocaml_libdir
35183 ocaml_stdlib="`"$OCAMLC" -where`"
35184 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35186 # ocaml stdlib is beneath our prefix; use stdlib
35187 OCAML_LIBDIR=$ocaml_stdlib
35190 # ocaml stdlib is outside our prefix; use libdir/ocaml
35191 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35198 if test "$binding_prereqs_failed" = 1 ; then
35199 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35200 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35201 { (exit 1); exit 1; }; }
35204 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35205 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35206 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35207 echo $ECHO_N "(cached) $ECHO_C" >&6
35210 ac_cpp='$CXXCPP $CPPFLAGS'
35211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35215 oldcxxflags="$CXXFLAGS"
35216 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35217 cat >conftest.$ac_ext <<_ACEOF
35220 cat confdefs.h >>conftest.$ac_ext
35221 cat >>conftest.$ac_ext <<_ACEOF
35222 /* end confdefs.h. */
35232 rm -f conftest.$ac_objext
35233 if { (ac_try="$ac_compile"
35234 case "(($ac_try" in
35235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35236 *) ac_try_echo=$ac_try;;
35238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35239 (eval "$ac_compile") 2>conftest.er1
35241 grep -v '^ *+' conftest.er1 >conftest.err
35243 cat conftest.err >&5
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245 (exit $ac_status); } &&
35246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35247 { (case "(($ac_try" in
35248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35249 *) ac_try_echo=$ac_try;;
35251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35252 (eval "$ac_try") 2>&5
35254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255 (exit $ac_status); }; } &&
35256 { ac_try='test -s conftest.$ac_objext'
35257 { (case "(($ac_try" in
35258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35259 *) ac_try_echo=$ac_try;;
35261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35262 (eval "$ac_try") 2>&5
35264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265 (exit $ac_status); }; }; then
35266 llvm_cv_cxx_visibility_inlines_hidden=yes
35268 echo "$as_me: failed program was:" >&5
35269 sed 's/^/| /' conftest.$ac_ext >&5
35271 llvm_cv_cxx_visibility_inlines_hidden=no
35274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35275 CXXFLAGS="$oldcxxflags"
35277 ac_cpp='$CPP $CPPFLAGS'
35278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35284 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35285 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35286 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35287 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35290 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35295 if test "$llvm_cv_link_use_r" = "yes" ; then
35302 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35303 RDYNAMIC="-Wl,-export-dynamic"
35310 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35312 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35314 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35316 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35318 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35321 ac_config_files="$ac_config_files Makefile.config"
35324 ac_config_files="$ac_config_files llvm.spec"
35327 ac_config_files="$ac_config_files docs/doxygen.cfg"
35330 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35333 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35336 ac_config_commands="$ac_config_commands setup"
35338 ac_config_commands="$ac_config_commands Makefile"
35341 ac_config_commands="$ac_config_commands Makefile.common"
35344 ac_config_commands="$ac_config_commands examples/Makefile"
35347 ac_config_commands="$ac_config_commands lib/Makefile"
35350 ac_config_commands="$ac_config_commands runtime/Makefile"
35353 ac_config_commands="$ac_config_commands test/Makefile"
35356 ac_config_commands="$ac_config_commands test/Makefile.tests"
35359 ac_config_commands="$ac_config_commands unittests/Makefile"
35362 ac_config_commands="$ac_config_commands tools/Makefile"
35365 ac_config_commands="$ac_config_commands utils/Makefile"
35368 ac_config_commands="$ac_config_commands projects/Makefile"
35371 ac_config_commands="$ac_config_commands bindings/Makefile"
35374 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35378 cat >confcache <<\_ACEOF
35379 # This file is a shell script that caches the results of configure
35380 # tests run on this system so they can be shared between configure
35381 # scripts and configure runs, see configure's option --config-cache.
35382 # It is not useful on other systems. If it contains results you don't
35383 # want to keep, you may remove or edit it.
35385 # config.status only pays attention to the cache file if you give it
35386 # the --recheck option to rerun configure.
35388 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35389 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35390 # following values.
35394 # The following way of writing the cache mishandles newlines in values,
35395 # but we know of no workaround that is simple, portable, and efficient.
35396 # So, we kill variables containing newlines.
35397 # Ultrix sh set writes to stderr and can't be redirected directly,
35398 # and sets the high bit in the cache file unless we assign to the vars.
35400 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35401 eval ac_val=\$$ac_var
35405 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35406 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35409 _ | IFS | as_nl) ;; #(
35410 *) $as_unset $ac_var ;;
35416 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35417 *${as_nl}ac_space=\ *)
35418 # `set' does not quote correctly, so add quotes (double-quote
35419 # substitution turns \\\\ into \\, and sed turns \\ into \).
35422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35425 # `set' quotes correctly as required by POSIX, so do not add quotes.
35426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35435 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35437 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35439 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35440 if test -w "$cache_file"; then
35441 test "x$cache_file" != "x/dev/null" &&
35442 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35443 echo "$as_me: updating cache $cache_file" >&6;}
35444 cat confcache >$cache_file
35446 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35447 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35453 # Let make expand exec_prefix.
35454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35456 DEFS=-DHAVE_CONFIG_H
35460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35461 # 1. Remove the extension, and $U if already installed.
35462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35463 ac_i=`echo "$ac_i" | sed "$ac_script"`
35464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35465 # will be set to the directory where LIBOBJS objects are built.
35466 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35467 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35469 LIBOBJS=$ac_libobjs
35471 LTLIBOBJS=$ac_ltlibobjs
35474 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35475 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35476 Usually this means the macro was only invoked conditionally." >&5
35477 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35478 Usually this means the macro was only invoked conditionally." >&2;}
35479 { (exit 1); exit 1; }; }
35481 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35482 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35483 Usually this means the macro was only invoked conditionally." >&5
35484 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35485 Usually this means the macro was only invoked conditionally." >&2;}
35486 { (exit 1); exit 1; }; }
35489 : ${CONFIG_STATUS=./config.status}
35490 ac_clean_files_save=$ac_clean_files
35491 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35492 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35493 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35494 cat >$CONFIG_STATUS <<_ACEOF
35496 # Generated by $as_me.
35497 # Run this file to recreate the current configuration.
35498 # Compiler output produced by configure, useful for debugging
35499 # configure, is in config.log if it exists.
35502 ac_cs_recheck=false
35504 SHELL=\${CONFIG_SHELL-$SHELL}
35507 cat >>$CONFIG_STATUS <<\_ACEOF
35508 ## --------------------- ##
35509 ## M4sh Initialization. ##
35510 ## --------------------- ##
35512 # Be Bourne compatible
35513 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35516 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35517 # is contrary to our usage. Disable this feature.
35518 alias -g '${1+"$@"}'='"$@"'
35519 setopt NO_GLOB_SUBST
35521 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35523 BIN_SH=xpg4; export BIN_SH # for Tru64
35524 DUALCASE=1; export DUALCASE # for MKS sh
35528 # Avoid depending upon Character Ranges.
35529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35532 as_cr_digits='0123456789'
35533 as_cr_alnum=$as_cr_Letters$as_cr_digits
35535 # The user is always right.
35536 if test "${PATH_SEPARATOR+set}" != set; then
35537 echo "#! /bin/sh" >conf$$.sh
35538 echo "exit 0" >>conf$$.sh
35540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35548 # Support unset when possible.
35549 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35557 # We need space, tab and new line, in precisely that order. Quoting is
35558 # there to prevent editors from complaining about space-tab.
35559 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35560 # splitting by setting IFS to empty value.)
35565 # Find who we are. Look in the path if we contain no directory separator.
35567 *[\\/]* ) as_myself=$0 ;;
35568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35569 for as_dir in $PATH
35572 test -z "$as_dir" && as_dir=.
35573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35579 # We did not find ourselves, most probably we were run as `sh COMMAND'
35580 # in which case we are not to be found in the path.
35581 if test "x$as_myself" = x; then
35584 if test ! -f "$as_myself"; then
35585 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35586 { (exit 1); exit 1; }
35589 # Work around bugs in pre-3.0 UWIN ksh.
35590 for as_var in ENV MAIL MAILPATH
35591 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35601 LC_TELEPHONE LC_TIME
35603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35604 eval $as_var=C; export $as_var
35606 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35610 # Required to use basename.
35611 if expr a : '\(a\)' >/dev/null 2>&1 &&
35612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35618 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35619 as_basename=basename
35625 # Name of the executable.
35626 as_me=`$as_basename -- "$0" ||
35627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35628 X"$0" : 'X\(//\)$' \| \
35629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35631 sed '/^.*\/\([^/][^/]*\)\/*$/{
35650 as_lineno_1=$LINENO
35651 as_lineno_2=$LINENO
35652 test "x$as_lineno_1" != "x$as_lineno_2" &&
35653 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35656 # uniformly replaced by the line number. The first 'sed' inserts a
35657 # line-number line after each line using $LINENO; the second 'sed'
35658 # does the real work. The second script uses 'N' to pair each
35659 # line-number line with the line containing $LINENO, and appends
35660 # trailing '-' during substitution so that $LINENO is not a special
35661 # case at line end.
35662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35663 # scripts with optimization help from Paolo Bonzini. Blame Lee
35664 # E. McMahon (1931-1989) for sed's syntax. :-)
35676 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35679 ' >$as_me.lineno &&
35680 chmod +x "$as_me.lineno" ||
35681 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35682 { (exit 1); exit 1; }; }
35684 # Don't try to exec as it changes $[0], causing all sort of problems
35685 # (the dirname of $[0] is not the place where we might find the
35686 # original and so on. Autoconf is especially sensitive to this).
35687 . "./$as_me.lineno"
35688 # Exit status is that of the last command.
35693 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35699 ECHO_C= ECHO_N= ECHO_T=
35700 case `echo -n x` in
35702 case `echo 'x\c'` in
35703 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35710 if expr a : '\(a\)' >/dev/null 2>&1 &&
35711 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35717 rm -f conf$$ conf$$.exe conf$$.file
35718 if test -d conf$$.dir; then
35719 rm -f conf$$.dir/conf$$.file
35725 if ln -s conf$$.file conf$$ 2>/dev/null; then
35727 # ... but there are two gotchas:
35728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35730 # In both cases, we have to default to `cp -p'.
35731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35733 elif ln conf$$.file conf$$ 2>/dev/null; then
35738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35739 rmdir conf$$.dir 2>/dev/null
35741 if mkdir -p . 2>/dev/null; then
35744 test -d ./-p && rmdir ./-p
35748 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35749 # systems may use methods other than mode bits to determine executability.
35750 cat >conf$$.file <<_ASEOF
35754 chmod +x conf$$.file
35755 if test -x conf$$.file >/dev/null 2>&1; then
35756 as_executable_p="test -x"
35762 # Sed expression to map a string onto a valid CPP name.
35763 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35765 # Sed expression to map a string onto a valid variable name.
35766 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35771 # Save the log message, to keep $[0] and so on meaningful, and to
35772 # report actual input values of CONFIG_FILES etc. instead of their
35773 # values after options handling.
35775 This file was extended by llvm $as_me 2.6svn, which was
35776 generated by GNU Autoconf 2.60. Invocation command line was
35778 CONFIG_FILES = $CONFIG_FILES
35779 CONFIG_HEADERS = $CONFIG_HEADERS
35780 CONFIG_LINKS = $CONFIG_LINKS
35781 CONFIG_COMMANDS = $CONFIG_COMMANDS
35784 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35789 cat >>$CONFIG_STATUS <<_ACEOF
35790 # Files that config.status was made for.
35791 config_files="$ac_config_files"
35792 config_headers="$ac_config_headers"
35793 config_commands="$ac_config_commands"
35797 cat >>$CONFIG_STATUS <<\_ACEOF
35799 \`$as_me' instantiates files from templates according to the
35800 current configuration.
35802 Usage: $0 [OPTIONS] [FILE]...
35804 -h, --help print this help, then exit
35805 -V, --version print version number, then exit
35806 -q, --quiet do not print progress messages
35807 -d, --debug don't remove temporary files
35808 --recheck update $as_me by reconfiguring in the same conditions
35809 --file=FILE[:TEMPLATE]
35810 instantiate the configuration file FILE
35811 --header=FILE[:TEMPLATE]
35812 instantiate the configuration header FILE
35814 Configuration files:
35817 Configuration headers:
35820 Configuration commands:
35823 Report bugs to <bug-autoconf@gnu.org>."
35826 cat >>$CONFIG_STATUS <<_ACEOF
35828 llvm config.status 2.6svn
35829 configured by $0, generated by GNU Autoconf 2.60,
35830 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35832 Copyright (C) 2006 Free Software Foundation, Inc.
35833 This config.status script is free software; the Free Software Foundation
35834 gives unlimited permission to copy, distribute and modify it."
35841 cat >>$CONFIG_STATUS <<\_ACEOF
35842 # If no file are specified by the user, then we need to provide default
35843 # value. By we need to know if files were specified by the user.
35849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35850 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35861 # Handling of the options.
35862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35864 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35865 echo "$ac_cs_version"; exit ;;
35866 --debug | --debu | --deb | --de | --d | -d )
35868 --file | --fil | --fi | --f )
35870 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35871 ac_need_defaults=false;;
35872 --header | --heade | --head | --hea )
35874 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35875 ac_need_defaults=false;;
35877 # Conflict between --help and --header
35878 { echo "$as_me: error: ambiguous option: $1
35879 Try \`$0 --help' for more information." >&2
35880 { (exit 1); exit 1; }; };;
35881 --help | --hel | -h )
35882 echo "$ac_cs_usage"; exit ;;
35883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35887 # This is an error.
35888 -*) { echo "$as_me: error: unrecognized option: $1
35889 Try \`$0 --help' for more information." >&2
35890 { (exit 1); exit 1; }; } ;;
35892 *) ac_config_targets="$ac_config_targets $1"
35893 ac_need_defaults=false ;;
35899 ac_configure_extra_args=
35901 if $ac_cs_silent; then
35903 ac_configure_extra_args="$ac_configure_extra_args --silent"
35907 cat >>$CONFIG_STATUS <<_ACEOF
35908 if \$ac_cs_recheck; then
35909 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35910 CONFIG_SHELL=$SHELL
35911 export CONFIG_SHELL
35912 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35916 cat >>$CONFIG_STATUS <<\_ACEOF
35920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35921 ## Running $as_me. ##
35927 cat >>$CONFIG_STATUS <<_ACEOF
35931 llvm_src="${srcdir}"
35935 cat >>$CONFIG_STATUS <<\_ACEOF
35937 # Handling of arguments.
35938 for ac_config_target in $ac_config_targets
35940 case $ac_config_target in
35941 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35942 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35943 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35944 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35945 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35946 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35947 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35948 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35949 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35950 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35951 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35952 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35953 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35954 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35955 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35956 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35957 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35958 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35959 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35960 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35961 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35962 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35963 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35964 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35966 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35968 { (exit 1); exit 1; }; };;
35973 # If the user did not use the arguments to specify the items to instantiate,
35974 # then the envvar interface is used. Set only those that are not.
35975 # We use the long form for the default assignment because of an extremely
35976 # bizarre bug on SunOS 4.1.3.
35977 if $ac_need_defaults; then
35978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35980 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35983 # Have a temporary directory for convenience. Make it in the build tree
35984 # simply because there is no reason against having it here, and in addition,
35985 # creating and moving files from /tmp can sometimes cause problems.
35986 # Hook for its removal unless debugging.
35987 # Note that there is a small window in which the directory will not be cleaned:
35988 # after its creation but before its name has been assigned to `$tmp'.
35992 trap 'exit_status=$?
35993 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35995 trap '{ (exit 1); exit 1; }' 1 2 13 15
35997 # Create a (secure) tmp directory for tmp files.
36000 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36001 test -n "$tmp" && test -d "$tmp"
36004 tmp=./conf$$-$RANDOM
36005 (umask 077 && mkdir "$tmp")
36008 echo "$me: cannot create a temporary directory in ." >&2
36009 { (exit 1); exit 1; }
36013 # Set up the sed scripts for CONFIG_FILES section.
36016 # No need to generate the scripts if there are no CONFIG_FILES.
36017 # This happens for instance when ./config.status config.h
36018 if test -n "$CONFIG_FILES"; then
36025 for ac_last_try in false false false false false :; do
36026 cat >conf$$subs.sed <<_ACEOF
36027 SHELL!$SHELL$ac_delim
36028 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36029 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36030 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36031 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36032 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36033 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36034 exec_prefix!$exec_prefix$ac_delim
36035 prefix!$prefix$ac_delim
36036 program_transform_name!$program_transform_name$ac_delim
36037 bindir!$bindir$ac_delim
36038 sbindir!$sbindir$ac_delim
36039 libexecdir!$libexecdir$ac_delim
36040 datarootdir!$datarootdir$ac_delim
36041 datadir!$datadir$ac_delim
36042 sysconfdir!$sysconfdir$ac_delim
36043 sharedstatedir!$sharedstatedir$ac_delim
36044 localstatedir!$localstatedir$ac_delim
36045 includedir!$includedir$ac_delim
36046 oldincludedir!$oldincludedir$ac_delim
36047 docdir!$docdir$ac_delim
36048 infodir!$infodir$ac_delim
36049 htmldir!$htmldir$ac_delim
36050 dvidir!$dvidir$ac_delim
36051 pdfdir!$pdfdir$ac_delim
36052 psdir!$psdir$ac_delim
36053 libdir!$libdir$ac_delim
36054 localedir!$localedir$ac_delim
36055 mandir!$mandir$ac_delim
36056 DEFS!$DEFS$ac_delim
36057 ECHO_C!$ECHO_C$ac_delim
36058 ECHO_N!$ECHO_N$ac_delim
36059 ECHO_T!$ECHO_T$ac_delim
36060 LIBS!$LIBS$ac_delim
36061 build_alias!$build_alias$ac_delim
36062 host_alias!$host_alias$ac_delim
36063 target_alias!$target_alias$ac_delim
36064 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36065 subdirs!$subdirs$ac_delim
36066 build!$build$ac_delim
36067 build_cpu!$build_cpu$ac_delim
36068 build_vendor!$build_vendor$ac_delim
36069 build_os!$build_os$ac_delim
36070 host!$host$ac_delim
36071 host_cpu!$host_cpu$ac_delim
36072 host_vendor!$host_vendor$ac_delim
36073 host_os!$host_os$ac_delim
36074 target!$target$ac_delim
36075 target_cpu!$target_cpu$ac_delim
36076 target_vendor!$target_vendor$ac_delim
36077 target_os!$target_os$ac_delim
36079 LINKALL!$LINKALL$ac_delim
36080 NOLINKALL!$NOLINKALL$ac_delim
36081 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36082 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36083 ARCH!$ARCH$ac_delim
36084 ENDIAN!$ENDIAN$ac_delim
36086 CFLAGS!$CFLAGS$ac_delim
36087 LDFLAGS!$LDFLAGS$ac_delim
36088 CPPFLAGS!$CPPFLAGS$ac_delim
36089 ac_ct_CC!$ac_ct_CC$ac_delim
36090 EXEEXT!$EXEEXT$ac_delim
36091 OBJEXT!$OBJEXT$ac_delim
36093 GREP!$GREP$ac_delim
36094 EGREP!$EGREP$ac_delim
36095 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36096 BUILD_CC!$BUILD_CC$ac_delim
36097 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36098 BUILD_CXX!$BUILD_CXX$ac_delim
36099 CVSBUILD!$CVSBUILD$ac_delim
36100 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36101 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36102 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36103 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36104 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36105 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36107 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36108 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36109 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36110 ENABLE_PIC!$ENABLE_PIC$ac_delim
36111 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36112 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36113 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36114 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36115 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36116 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36117 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36118 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36120 CXXFLAGS!$CXXFLAGS$ac_delim
36121 ac_ct_CXX!$ac_ct_CXX$ac_delim
36123 ifGNUmake!$ifGNUmake$ac_delim
36126 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36128 elif $ac_last_try; then
36129 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36130 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36131 { (exit 1); exit 1; }; }
36133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36137 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36138 if test -n "$ac_eof"; then
36139 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36140 ac_eof=`expr $ac_eof + 1`
36143 cat >>$CONFIG_STATUS <<_ACEOF
36144 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36148 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36149 s/^/s,@/; s/!/@,|#_!!_#|/
36152 s/'"$ac_delim"'$/,g/; t
36154 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36155 ' >>$CONFIG_STATUS <conf$$subs.sed
36156 rm -f conf$$subs.sed
36157 cat >>$CONFIG_STATUS <<_ACEOF
36163 for ac_last_try in false false false false false :; do
36164 cat >conf$$subs.sed <<_ACEOF
36165 LN_S!$LN_S$ac_delim
36168 DATE!$DATE$ac_delim
36169 FIND!$FIND$ac_delim
36170 MKDIR!$MKDIR$ac_delim
36172 RANLIB!$RANLIB$ac_delim
36176 BINPWD!$BINPWD$ac_delim
36177 GRAPHVIZ!$GRAPHVIZ$ac_delim
36180 NEATO!$NEATO$ac_delim
36181 TWOPI!$TWOPI$ac_delim
36182 CIRCO!$CIRCO$ac_delim
36184 DOTTY!$DOTTY$ac_delim
36185 PERL!$PERL$ac_delim
36186 HAVE_PERL!$HAVE_PERL$ac_delim
36187 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36188 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36189 INSTALL_DATA!$INSTALL_DATA$ac_delim
36190 BZIP2!$BZIP2$ac_delim
36191 DOXYGEN!$DOXYGEN$ac_delim
36192 GROFF!$GROFF$ac_delim
36193 GZIP!$GZIP$ac_delim
36194 POD2HTML!$POD2HTML$ac_delim
36195 POD2MAN!$POD2MAN$ac_delim
36196 RUNTEST!$RUNTEST$ac_delim
36197 TCLSH!$TCLSH$ac_delim
36199 OCAMLC!$OCAMLC$ac_delim
36200 OCAMLOPT!$OCAMLOPT$ac_delim
36201 OCAMLDEP!$OCAMLDEP$ac_delim
36202 OCAMLDOC!$OCAMLDOC$ac_delim
36204 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36205 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36206 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36207 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36208 LIBADD_DL!$LIBADD_DL$ac_delim
36209 ECHO!$ECHO$ac_delim
36211 STRIP!$STRIP$ac_delim
36212 CXXCPP!$CXXCPP$ac_delim
36214 FFLAGS!$FFLAGS$ac_delim
36215 ac_ct_F77!$ac_ct_F77$ac_delim
36216 LIBTOOL!$LIBTOOL$ac_delim
36217 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36218 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36219 LLVMGCC!$LLVMGCC$ac_delim
36220 LLVMGXX!$LLVMGXX$ac_delim
36221 USE_UDIS86!$USE_UDIS86$ac_delim
36222 USE_OPROFILE!$USE_OPROFILE$ac_delim
36223 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36224 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36225 ALLOCA!$ALLOCA$ac_delim
36226 MMAP_FILE!$MMAP_FILE$ac_delim
36227 LLVMCC1!$LLVMCC1$ac_delim
36228 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36229 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36230 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36231 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36232 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36233 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36234 SHLIBEXT!$SHLIBEXT$ac_delim
36235 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36236 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36237 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36238 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36239 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36240 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36241 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36242 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36243 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36244 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36245 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36246 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36247 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36248 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36249 RPATH!$RPATH$ac_delim
36250 RDYNAMIC!$RDYNAMIC$ac_delim
36251 LIBOBJS!$LIBOBJS$ac_delim
36252 LTLIBOBJS!$LTLIBOBJS$ac_delim
36255 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
36257 elif $ac_last_try; then
36258 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36259 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36260 { (exit 1); exit 1; }; }
36262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36266 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36267 if test -n "$ac_eof"; then
36268 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36269 ac_eof=`expr $ac_eof + 1`
36272 cat >>$CONFIG_STATUS <<_ACEOF
36273 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36277 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36278 s/^/s,@/; s/!/@,|#_!!_#|/
36281 s/'"$ac_delim"'$/,g/; t
36283 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36284 ' >>$CONFIG_STATUS <conf$$subs.sed
36285 rm -f conf$$subs.sed
36286 cat >>$CONFIG_STATUS <<_ACEOF
36293 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36294 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36295 # trailing colons and then remove the whole line if VPATH becomes empty
36296 # (actually we leave an empty line to preserve line numbers).
36297 if test "x$srcdir" = x.; then
36298 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36299 s/:*\$(srcdir):*/:/
36300 s/:*\${srcdir}:*/:/
36302 s/^\([^=]*=[ ]*\):*/\1/
36308 cat >>$CONFIG_STATUS <<\_ACEOF
36309 fi # test -n "$CONFIG_FILES"
36312 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36315 :[FHLC]) ac_mode=$ac_tag; continue;;
36317 case $ac_mode$ac_tag in
36319 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36320 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36321 { (exit 1); exit 1; }; };;
36322 :[FH]-) ac_tag=-:-;;
36323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36340 -) ac_f="$tmp/stdin";;
36341 *) # Look for the file first in the build tree, then in the source tree
36342 # (if the path is not absolute). The absolute path cannot be DOS-style,
36343 # because $ac_f cannot contain `:'.
36347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36349 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36350 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36351 { (exit 1); exit 1; }; };;
36353 ac_file_inputs="$ac_file_inputs $ac_f"
36356 # Let's still pretend it is `configure' which instantiates (i.e., don't
36357 # use $as_me), people would be surprised to read:
36358 # /* config.h. Generated by config.status. */
36359 configure_input="Generated from "`IFS=:
36360 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36361 if test x"$ac_file" != x-; then
36362 configure_input="$ac_file. $configure_input"
36363 { echo "$as_me:$LINENO: creating $ac_file" >&5
36364 echo "$as_me: creating $ac_file" >&6;}
36368 *:-:* | *:-) cat >"$tmp/stdin";;
36373 ac_dir=`$as_dirname -- "$ac_file" ||
36374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36375 X"$ac_file" : 'X\(//\)[^/]' \| \
36376 X"$ac_file" : 'X\(//\)$' \| \
36377 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36383 /^X\(\/\/\)[^/].*/{
36398 -*) as_dir=./$as_dir;;
36400 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36404 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36405 *) as_qdir=$as_dir;;
36407 as_dirs="'$as_qdir' $as_dirs"
36408 as_dir=`$as_dirname -- "$as_dir" ||
36409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36410 X"$as_dir" : 'X\(//\)[^/]' \| \
36411 X"$as_dir" : 'X\(//\)$' \| \
36412 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36418 /^X\(\/\/\)[^/].*/{
36431 test -d "$as_dir" && break
36433 test -z "$as_dirs" || eval "mkdir $as_dirs"
36434 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36435 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36436 { (exit 1); exit 1; }; }; }
36440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36442 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36443 # A ".." for each directory in $ac_dir_suffix.
36444 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36445 case $ac_top_builddir_sub in
36446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36450 ac_abs_top_builddir=$ac_pwd
36451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36452 # for backward compatibility:
36453 ac_top_builddir=$ac_top_build_prefix
36456 .) # We are building in place.
36458 ac_top_srcdir=$ac_top_builddir_sub
36459 ac_abs_top_srcdir=$ac_pwd ;;
36460 [\\/]* | ?:[\\/]* ) # Absolute name.
36461 ac_srcdir=$srcdir$ac_dir_suffix;
36462 ac_top_srcdir=$srcdir
36463 ac_abs_top_srcdir=$srcdir ;;
36464 *) # Relative name.
36465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36466 ac_top_srcdir=$ac_top_build_prefix$srcdir
36467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36479 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36480 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36484 cat >>$CONFIG_STATUS <<\_ACEOF
36485 # If the template does not know about datarootdir, expand it.
36486 # FIXME: This hack should be removed a few years after 2.60.
36487 ac_datarootdir_hack=; ac_datarootdir_seen=
36489 case `sed -n '/datarootdir/ {
36498 ' $ac_file_inputs` in
36499 *datarootdir*) ac_datarootdir_seen=yes;;
36500 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36501 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36502 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36504 cat >>$CONFIG_STATUS <<_ACEOF
36505 ac_datarootdir_hack='
36506 s&@datadir@&$datadir&g
36507 s&@docdir@&$docdir&g
36508 s&@infodir@&$infodir&g
36509 s&@localedir@&$localedir&g
36510 s&@mandir@&$mandir&g
36511 s&\\\${datarootdir}&$datarootdir&g' ;;
36515 # Neutralize VPATH when `$srcdir' = `.'.
36516 # Shell code in configure.ac might set extrasub.
36517 # FIXME: do we really want to maintain this feature?
36518 cat >>$CONFIG_STATUS <<_ACEOF
36522 cat >>$CONFIG_STATUS <<\_ACEOF
36524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36525 s&@configure_input@&$configure_input&;t t
36526 s&@top_builddir@&$ac_top_builddir_sub&;t t
36527 s&@srcdir@&$ac_srcdir&;t t
36528 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36529 s&@top_srcdir@&$ac_top_srcdir&;t t
36530 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36531 s&@builddir@&$ac_builddir&;t t
36532 s&@abs_builddir@&$ac_abs_builddir&;t t
36533 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36534 s&@INSTALL@&$ac_INSTALL&;t t
36535 $ac_datarootdir_hack
36536 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36538 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36539 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36540 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36541 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36542 which seems to be undefined. Please make sure it is defined." >&5
36543 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36544 which seems to be undefined. Please make sure it is defined." >&2;}
36548 -) cat "$tmp/out"; rm -f "$tmp/out";;
36549 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36558 # Transform confdefs.h into a sed script `conftest.defines', that
36559 # substitutes the proper values into config.h.in to produce config.h.
36560 rm -f conftest.defines conftest.tail
36561 # First, append a space to every undef/define line, to ease matching.
36562 echo 's/$/ /' >conftest.defines
36563 # Then, protect against being on the right side of a sed subst, or in
36564 # an unquoted here document, in config.status. If some macros were
36565 # called several times there might be several #defines for the same
36566 # symbol, which is useless. But do not sort them, since the last
36567 # AC_DEFINE must be honored.
36568 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36569 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36570 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36571 # PARAMS is the parameter list in the macro definition--in most cases, it's
36572 # just an empty string.
36573 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36574 ac_dB='\\)[ (].*,\\1define\\2'
36582 s/^[ ]*#[ ]*define[ ][ ]*//
36587 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36588 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36589 ' >>conftest.defines
36591 # Remove the space that was appended to ease matching.
36592 # Then replace #undef with comments. This is necessary, for
36593 # example, in the case of _POSIX_SOURCE, which is predefined and required
36594 # on some systems where configure will not decide to define it.
36595 # (The regexp can be short, since the line contains either #define or #undef.)
36597 s,^[ #]*u.*,/* & */,' >>conftest.defines
36599 # Break up conftest.defines:
36600 ac_max_sed_lines=50
36602 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36603 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36604 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36606 ac_in='$ac_file_inputs'
36607 ac_out='"$tmp/out1"'
36608 ac_nxt='"$tmp/out2"'
36612 # Write a here document:
36613 cat >>$CONFIG_STATUS <<_ACEOF
36614 # First, check the format of the line:
36615 cat >"\$tmp/defines.sed" <<\\CEOF
36616 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36617 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36621 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36623 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36624 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36625 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36626 grep . conftest.tail >/dev/null || break
36627 rm -f conftest.defines
36628 mv conftest.tail conftest.defines
36630 rm -f conftest.defines conftest.tail
36632 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36633 cat >>$CONFIG_STATUS <<\_ACEOF
36634 if test x"$ac_file" != x-; then
36635 echo "/* $configure_input */" >"$tmp/config.h"
36636 cat "$ac_result" >>"$tmp/config.h"
36637 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36638 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36639 echo "$as_me: $ac_file is unchanged" >&6;}
36642 mv "$tmp/config.h" $ac_file
36645 echo "/* $configure_input */"
36651 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36652 echo "$as_me: executing $ac_file commands" >&6;}
36657 case $ac_file$ac_mode in
36658 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36659 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36660 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36661 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36662 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36663 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36664 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36665 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36666 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36667 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36668 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36669 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36670 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36671 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36672 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36673 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36674 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36675 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36676 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36677 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36678 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36679 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36680 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36681 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36682 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36683 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36689 { (exit 0); exit 0; }
36691 chmod +x $CONFIG_STATUS
36692 ac_clean_files=$ac_clean_files_save
36695 # configure is writing to config.log, and then calls config.status.
36696 # config.status does its own redirection, appending to config.log.
36697 # Unfortunately, on DOS this fails, as config.log is still kept open
36698 # by configure, so config.status won't be able to write to it; its
36699 # output is simply discarded. So we exec the FD to /dev/null,
36700 # effectively closing config.log, so it can be properly (re)opened and
36701 # appended to by config.status. When coming back to configure, we
36702 # need to make the FD available again.
36703 if test "$no_create" != yes; then
36705 ac_config_status_args=
36706 test "$silent" = yes &&
36707 ac_config_status_args="$ac_config_status_args --quiet"
36709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36712 # would make configure fail if this is the last instruction.
36713 $ac_cs_success || { (exit 1); exit 1; }
36717 # CONFIG_SUBDIRS section.
36719 if test "$no_recursion" != yes; then
36721 # Remove --cache-file and --srcdir arguments so they do not pile up.
36722 ac_sub_configure_args=
36724 eval "set x $ac_configure_args"
36728 if test -n "$ac_prev"; then
36733 -cache-file | --cache-file | --cache-fil | --cache-fi \
36734 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36735 ac_prev=cache_file ;;
36736 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36737 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36740 --config-cache | -C)
36742 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36744 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36746 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36748 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36752 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36754 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36758 # Always prepend --prefix to ensure using the same prefix
36759 # in subdir configurations.
36760 ac_arg="--prefix=$prefix"
36762 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36764 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36767 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36769 # Do not complain, so a configure script can configure whichever
36770 # parts of a large source tree are present.
36771 test -d "$srcdir/$ac_dir" || continue
36773 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36774 echo "$as_me:$LINENO: $ac_msg" >&5
36778 -*) as_dir=./$as_dir;;
36780 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36784 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36785 *) as_qdir=$as_dir;;
36787 as_dirs="'$as_qdir' $as_dirs"
36788 as_dir=`$as_dirname -- "$as_dir" ||
36789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36790 X"$as_dir" : 'X\(//\)[^/]' \| \
36791 X"$as_dir" : 'X\(//\)$' \| \
36792 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36798 /^X\(\/\/\)[^/].*/{
36811 test -d "$as_dir" && break
36813 test -z "$as_dirs" || eval "mkdir $as_dirs"
36814 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36815 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36816 { (exit 1); exit 1; }; }; }
36820 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36822 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36823 # A ".." for each directory in $ac_dir_suffix.
36824 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36825 case $ac_top_builddir_sub in
36826 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36827 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36830 ac_abs_top_builddir=$ac_pwd
36831 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36832 # for backward compatibility:
36833 ac_top_builddir=$ac_top_build_prefix
36836 .) # We are building in place.
36838 ac_top_srcdir=$ac_top_builddir_sub
36839 ac_abs_top_srcdir=$ac_pwd ;;
36840 [\\/]* | ?:[\\/]* ) # Absolute name.
36841 ac_srcdir=$srcdir$ac_dir_suffix;
36842 ac_top_srcdir=$srcdir
36843 ac_abs_top_srcdir=$srcdir ;;
36844 *) # Relative name.
36845 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36846 ac_top_srcdir=$ac_top_build_prefix$srcdir
36847 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36849 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36854 # Check for guested configure; otherwise get Cygnus style configure.
36855 if test -f "$ac_srcdir/configure.gnu"; then
36856 ac_sub_configure=$ac_srcdir/configure.gnu
36857 elif test -f "$ac_srcdir/configure"; then
36858 ac_sub_configure=$ac_srcdir/configure
36859 elif test -f "$ac_srcdir/configure.in"; then
36860 # This should be Cygnus configure.
36861 ac_sub_configure=$ac_aux_dir/configure
36863 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36864 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36868 # The recursion is here.
36869 if test -n "$ac_sub_configure"; then
36870 # Make the cache file name correct relative to the subdirectory.
36871 case $cache_file in
36872 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36873 *) # Relative name.
36874 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36877 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36878 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36879 # The eval makes quoting arguments work.
36880 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36881 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36882 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36883 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36884 { (exit 1); exit 1; }; }