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 LLVM_COMPACT_SENTINELS
836 ENABLE_EXPENSIVE_CHECKS
846 LLVM_ENUM_ASM_PRINTERS
847 LLVM_ENUM_ASM_PARSERS
852 ENABLE_LLVMC_DYNAMIC_PLUGINS
899 CONVENIENCE_LTDL_TRUE
900 CONVENIENCE_LTDL_FALSE
941 ENABLE_VISIBILITY_INLINES_HIDDEN
947 ac_precious_vars
='build_alias
961 ac_subdirs_all
='projects/sample
963 projects/llvm-stacker
970 projects/llvm-poolalloc
972 projects/llvm-kernel'
974 # Initialize some variables set by options.
976 ac_init_version
=false
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
986 program_transform_name
=s
,x
,x
,
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir
='${exec_prefix}/bin'
1001 sbindir
='${exec_prefix}/sbin'
1002 libexecdir
='${exec_prefix}/libexec'
1003 datarootdir
='${prefix}/share'
1004 datadir
='${datarootdir}'
1005 sysconfdir
='${prefix}/etc'
1006 sharedstatedir
='${prefix}/com'
1007 localstatedir
='${prefix}/var'
1008 includedir
='${prefix}/include'
1009 oldincludedir
='/usr/include'
1010 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1011 infodir
='${datarootdir}/info'
1016 libdir
='${exec_prefix}/lib'
1017 localedir
='${datarootdir}/locale'
1018 mandir
='${datarootdir}/man'
1024 # If the previous option needs an argument, assign it.
1025 if test -n "$ac_prev"; then
1026 eval $ac_prev=\
$ac_option
1032 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036 # Accept the important Cygnus configure options, so we can diagnose typos.
1038 case $ac_dashdash$ac_option in
1042 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1044 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1045 bindir
=$ac_optarg ;;
1047 -build |
--build |
--buil |
--bui |
--bu)
1048 ac_prev
=build_alias
;;
1049 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1050 build_alias
=$ac_optarg ;;
1052 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1053 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1054 ac_prev
=cache_file
;;
1055 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1056 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1057 cache_file
=$ac_optarg ;;
1059 --config-cache |
-C)
1060 cache_file
=config.cache
;;
1062 -datadir |
--datadir |
--datadi |
--datad)
1064 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1065 datadir
=$ac_optarg ;;
1067 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1068 |
--dataroo |
--dataro |
--datar)
1069 ac_prev
=datarootdir
;;
1070 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1071 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1072 datarootdir
=$ac_optarg ;;
1074 -disable-* |
--disable-*)
1075 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1078 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1081 eval enable_
$ac_feature=no
;;
1083 -docdir |
--docdir |
--docdi |
--doc |
--do)
1085 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1086 docdir
=$ac_optarg ;;
1088 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1090 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1091 dvidir
=$ac_optarg ;;
1093 -enable-* |
--enable-*)
1094 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1097 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1098 { (exit 1); exit 1; }; }
1099 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1100 eval enable_
$ac_feature=\
$ac_optarg ;;
1102 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1103 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1104 |
--exec |
--exe |
--ex)
1105 ac_prev
=exec_prefix
;;
1106 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1107 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1108 |
--exec=* |
--exe=* |
--ex=*)
1109 exec_prefix
=$ac_optarg ;;
1111 -gas |
--gas |
--ga |
--g)
1112 # Obsolete; use --with-gas.
1115 -help |
--help |
--hel |
--he |
-h)
1116 ac_init_help
=long
;;
1117 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1118 ac_init_help
=recursive
;;
1119 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1120 ac_init_help
=short
;;
1122 -host |
--host |
--hos |
--ho)
1123 ac_prev
=host_alias
;;
1124 -host=* |
--host=* |
--hos=* |
--ho=*)
1125 host_alias
=$ac_optarg ;;
1127 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1129 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1131 htmldir
=$ac_optarg ;;
1133 -includedir |
--includedir |
--includedi |
--included |
--include \
1134 |
--includ |
--inclu |
--incl |
--inc)
1135 ac_prev
=includedir
;;
1136 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1137 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1138 includedir
=$ac_optarg ;;
1140 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1142 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1143 infodir
=$ac_optarg ;;
1145 -libdir |
--libdir |
--libdi |
--libd)
1147 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1148 libdir
=$ac_optarg ;;
1150 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1151 |
--libexe |
--libex |
--libe)
1152 ac_prev
=libexecdir
;;
1153 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1154 |
--libexe=* |
--libex=* |
--libe=*)
1155 libexecdir
=$ac_optarg ;;
1157 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1158 ac_prev
=localedir
;;
1159 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1160 localedir
=$ac_optarg ;;
1162 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1163 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1164 ac_prev
=localstatedir
;;
1165 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1166 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1167 localstatedir
=$ac_optarg ;;
1169 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1171 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1172 mandir
=$ac_optarg ;;
1174 -nfp |
--nfp |
--nf)
1175 # Obsolete; use --without-fp.
1178 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1179 |
--no-cr |
--no-c |
-n)
1182 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1183 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1186 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1187 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1188 |
--oldin |
--oldi |
--old |
--ol |
--o)
1189 ac_prev
=oldincludedir
;;
1190 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1191 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1192 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1193 oldincludedir
=$ac_optarg ;;
1195 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1197 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1198 prefix
=$ac_optarg ;;
1200 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1201 |
--program-pre |
--program-pr |
--program-p)
1202 ac_prev
=program_prefix
;;
1203 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1204 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1205 program_prefix
=$ac_optarg ;;
1207 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1208 |
--program-suf |
--program-su |
--program-s)
1209 ac_prev
=program_suffix
;;
1210 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1211 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1212 program_suffix
=$ac_optarg ;;
1214 -program-transform-name |
--program-transform-name \
1215 |
--program-transform-nam |
--program-transform-na \
1216 |
--program-transform-n |
--program-transform- \
1217 |
--program-transform |
--program-transfor \
1218 |
--program-transfo |
--program-transf \
1219 |
--program-trans |
--program-tran \
1220 |
--progr-tra |
--program-tr |
--program-t)
1221 ac_prev
=program_transform_name
;;
1222 -program-transform-name=* |
--program-transform-name=* \
1223 |
--program-transform-nam=* |
--program-transform-na=* \
1224 |
--program-transform-n=* |
--program-transform-=* \
1225 |
--program-transform=* |
--program-transfor=* \
1226 |
--program-transfo=* |
--program-transf=* \
1227 |
--program-trans=* |
--program-tran=* \
1228 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1229 program_transform_name
=$ac_optarg ;;
1231 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1233 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1234 pdfdir
=$ac_optarg ;;
1236 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1238 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1241 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1242 |
-silent |
--silent |
--silen |
--sile |
--sil)
1245 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1247 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1249 sbindir
=$ac_optarg ;;
1251 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1252 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1253 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1255 ac_prev
=sharedstatedir
;;
1256 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1257 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1258 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1260 sharedstatedir
=$ac_optarg ;;
1262 -site |
--site |
--sit)
1264 -site=* |
--site=* |
--sit=*)
1267 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1269 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1270 srcdir
=$ac_optarg ;;
1272 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1273 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1274 ac_prev
=sysconfdir
;;
1275 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1276 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1277 sysconfdir
=$ac_optarg ;;
1279 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1280 ac_prev
=target_alias
;;
1281 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1282 target_alias
=$ac_optarg ;;
1284 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1287 -version |
--version |
--versio |
--versi |
--vers |
-V)
1288 ac_init_version
=: ;;
1291 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1297 eval with_
$ac_package=\
$ac_optarg ;;
1299 -without-* |
--without-*)
1300 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1303 { echo "$as_me: error: invalid package name: $ac_package" >&2
1304 { (exit 1); exit 1; }; }
1305 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1306 eval with_
$ac_package=no
;;
1309 # Obsolete; use --with-x.
1312 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1313 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1314 ac_prev
=x_includes
;;
1315 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1316 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1317 x_includes
=$ac_optarg ;;
1319 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1320 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1321 ac_prev
=x_libraries
;;
1322 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1323 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1324 x_libraries
=$ac_optarg ;;
1326 -*) { echo "$as_me: error: unrecognized option: $ac_option
1327 Try \`$0 --help' for more information." >&2
1328 { (exit 1); exit 1; }; }
1332 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1335 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1336 { (exit 1); exit 1; }; }
1337 eval $ac_envvar=\
$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1344 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 if test -n "$ac_prev"; then
1352 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1353 { echo "$as_me: error: missing argument to $ac_option" >&2
1354 { (exit 1); exit 1; }; }
1357 # Be sure to have absolute directory names.
1358 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val
=\$
$ac_var
1365 [\\/$
]* | ?
:[\\/]* ) continue;;
1366 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1368 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1369 { (exit 1); exit 1; }; }
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1377 target
=$target_alias
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x
; then
1381 if test "x$build_alias" = x
; then
1382 cross_compiling
=maybe
1383 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384 If a cross compiler is detected then cross compile mode will be used." >&2
1385 elif test "x$build_alias" != "x$host_alias"; then
1391 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1393 test "$silent" = yes && exec 6>/dev
/null
1396 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di
=`ls -di .` &&
1398 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1399 { echo "$as_me: error: Working directory cannot be determined" >&2
1400 { (exit 1); exit 1; }; }
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402 { echo "$as_me: error: pwd does not report name of working directory" >&2
1403 { (exit 1); exit 1; }; }
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted
=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir
=`$as_dirname -- "$0" ||
1411 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$0" : 'X\(//\)[^/]' \| \
1413 X"$0" : 'X\(//\)$' \| \
1414 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1438 ac_srcdir_defaulted
=no
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1442 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1443 { (exit 1); exit 1; }; }
1445 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1448 { (exit 1); exit 1; }; }
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1458 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 for ac_var
in $ac_precious_vars; do
1461 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1463 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1468 # Report the --help message.
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1474 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1481 Defaults for the options are specified in brackets.
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1505 For better control, use the options below.
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1532 --build=BUILD configure
for building on BUILD
[guessed
]
1533 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1534 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1538 if test -n "$ac_init_help"; then
1539 case $ac_init_help in
1540 short | recursive
) echo "Configuration of llvm 2.6svn:";;
1545 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1546 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1547 --enable-optimized Compile with optimizations enabled
(default is NO
)
1548 --enable-profiling Compile with profiling enabled
(default is NO
)
1549 --enable-assertions Compile with assertion checks enabled
(default is
1551 --enable-expensive-checks
1552 Compile with expensive debug checks enabled
(default
1554 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1556 --enable-jit Enable Just In Time Compiling
(default is YES
)
1557 --enable-doxygen Build doxygen documentation
(default is NO
)
1558 --enable-threads Use threads
if available
(default is YES
)
1559 --enable-pic Build LLVM with Position Independent Code
(default
1561 --enable-targets Build specific
host targets
:
1562 all
,host-only
,{target-name
} (default
=all
)
1563 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1565 --enable-bindings Build specific language bindings
:
1566 all
,auto
,none
,{binding-name
} (default
=auto
)
1567 --enable-libffi Check
for the presence of libffi
(default is YES
)
1568 --enable-llvmc-dynamic Link LLVMC dynamically
(default is NO
, unless on
1570 --enable-llvmc-dynamic-plugins
1571 Enable dynamic LLVMC plugins
(default is YES
)
1572 --enable-ltdl-install install libltdl
1573 --enable-shared[=PKGS
] build shared libraries
1575 --enable-static[=PKGS
] build static libraries
1577 --enable-fast-install[=PKGS
]
1578 optimize
for fast installation
1580 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1583 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1584 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1585 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1587 --with-llvmgcc Specify location of llvm-gcc driver
(default
1589 --with-llvmgxx Specify location of llvm-g
++ driver
(default
1591 --with-extra-options Specify additional options to compile LLVM with
1592 --with-ocaml-libdir Specify
install location
for ocaml bindings
(default
1594 --with-binutils-include Specify path to binutils
/include
/ containing
1595 plugin-api.h
file for gold plugin.
1596 --with-tclinclude directory where tcl headers are
1597 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1598 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1600 --with-tags[=TAGS
] include additional configurations
[automatic
]
1601 --with-udis86=<path
> Use udis86 external x86 disassembler library
1602 --with-oprofile=<prefix
>
1603 Tell OProfile
>= 0.9.4 how to symbolize JIT output
1605 Some influential environment variables
:
1606 CC C compiler
command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1609 nonstandard directory
<lib dir
>
1610 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1611 you have headers
in a nonstandard directory
<include dir
>
1613 CXX C
++ compiler
command
1614 CXXFLAGS C
++ compiler flags
1615 CXXCPP C
++ preprocessor
1616 F77 Fortran
77 compiler
command
1617 FFLAGS Fortran
77 compiler flags
1619 Use these variables to override the choices made by
`configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1622 Report bugs to <llvmbugs@cs.uiuc.edu>.
1627 if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" || continue
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1650 .) # We are building in place.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1674 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1683 llvm configure 2.6svn
1684 generated by GNU Autoconf 2.60
1686 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1687 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1688 This configure script is free software; the Free Software Foundation
1689 gives unlimited permission to copy, distribute and modify it.
1691 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1695 cat >config.log <<_ACEOF
1696 This file contains any messages produced by compilers while
1697 running configure, to aid debugging if configure makes a mistake.
1699 It was created by llvm $as_me 2.6svn, which was
1700 generated by GNU Autoconf 2.60. Invocation command line was
1712 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1713 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1714 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1715 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1716 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1718 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1719 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1721 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1722 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1723 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1724 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1725 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1726 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1727 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 echo "PATH: $as_dir"
1752 # Keep a trace of the command line.
1753 # Strip out --no-create and --no-recursion so they do not pile up.
1754 # Strip out --silent because we don't want to record it for future runs.
1755 # Also quote any args containing shell meta-characters.
1756 # Make two passes to allow for proper duplicate-argument suppression.
1760 ac_must_keep_next=false
1766 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768 | -silent | --silent | --silen | --sile | --sil)
1771 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1774 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777 if test $ac_must_keep_next = true; then
1778 ac_must_keep_next=false # Got value, back to normal.
1781 *=* | --config-cache | -C | -disable-* | --disable-* \
1782 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784 | -with-* | --with-* | -without-* | --without-* | --x)
1785 case "$ac_configure_args0 " in
1786 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789 -* ) ac_must_keep_next=true ;;
1792 ac_configure_args="$ac_configure_args '$ac_arg'"
1797 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800 # When interrupted or exit'd, cleanup temporary files, and complete
1801 # config.log. We remove comments because anyway the quotes in there
1802 # would cause problems or look ugly.
1803 # WARNING: Use '\'' to represent an apostrophe within the trap.
1804 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805 trap 'exit_status=$?
1806 # Save into config.log some information that might help in debugging.
1811 ## ---------------- ##
1812 ## Cache variables. ##
1813 ## ---------------- ##
1816 # The following way of writing the cache mishandles newlines in values,
1818 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1819 eval ac_val=\$$ac_var
1823 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1824 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1827 _ | IFS | as_nl) ;; #(
1828 *) $as_unset $ac_var ;;
1833 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1834 *${as_nl}ac_space=\ *)
1836 "s/'\''/'\''\\\\'\'''\''/g;
1837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848 ## ----------------- ##
1849 ## Output variables. ##
1850 ## ----------------- ##
1853 for ac_var in $ac_subst_vars
1855 eval ac_val=\$$ac_var
1857 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 echo "$ac_var='\''$ac_val'\''"
1863 if test -n "$ac_subst_files"; then
1865 ## ------------------- ##
1866 ## File substitutions. ##
1867 ## ------------------- ##
1870 for ac_var in $ac_subst_files
1872 eval ac_val=\$$ac_var
1874 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 echo "$ac_var='\''$ac_val'\''"
1881 if test -s confdefs.h; then
1891 test "$ac_signal" != 0 &&
1892 echo "$as_me: caught signal $ac_signal"
1893 echo "$as_me: exit $exit_status"
1895 rm -f core *.core core.conftest.* &&
1896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899 for ac_signal in 1 2 13 15; do
1900 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1905 rm -f -r conftest* confdefs.h
1907 # Predefined preprocessor variables.
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_NAME "$PACKAGE_NAME"
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_STRING "$PACKAGE_STRING"
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1934 # Let the site file select an alternate cache file if it wants to.
1935 # Prefer explicitly selected file to automatically selected ones.
1936 if test -n "$CONFIG_SITE"; then
1937 set x "$CONFIG_SITE"
1938 elif test "x$prefix" != xNONE; then
1939 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941 set x "$ac_default_prefix/share/config.site" \
1942 "$ac_default_prefix/etc/config.site"
1947 if test -r "$ac_site_file"; then
1948 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1949 echo "$as_me: loading site script $ac_site_file" >&6;}
1950 sed 's/^/| /' "$ac_site_file" >&5
1955 if test -r "$cache_file"; then
1956 # Some versions of bash will fail to source /dev/null (special
1957 # files actually), so we avoid doing that.
1958 if test -f "$cache_file"; then
1959 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1960 echo "$as_me: loading cache $cache_file" >&6;}
1962 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1963 *) . "./$cache_file";;
1967 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1968 echo "$as_me: creating cache $cache_file" >&6;}
1972 # Check that the precious variables saved in the cache have kept the same
1974 ac_cache_corrupted=false
1975 for ac_var in $ac_precious_vars; do
1976 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1977 eval ac_new_set=\$ac_env_${ac_var}_set
1978 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1979 eval ac_new_val=\$ac_env_${ac_var}_value
1980 case $ac_old_set,$ac_new_set in
1982 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1983 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1986 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1987 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1991 if test "x$ac_old_val" != "x$ac_new_val"; then
1992 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1994 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1995 echo "$as_me: former value
: $ac_old_val" >&2;}
1996 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1997 echo "$as_me: current value
: $ac_new_val" >&2;}
1998 ac_cache_corrupted=:
2001 # Pass precious variables to config.status.
2002 if test "$ac_new_set" = set; then
2004 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2005 *) ac_arg=$ac_var=$ac_new_val ;;
2007 case " $ac_configure_args " in
2008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2009 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2013 if $ac_cache_corrupted; then
2014 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2015 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2016 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2017 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2018 { (exit 1); exit 1; }; }
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2062 for ac_dir in autoconf "$srcdir"/autoconf; do
2063 if test -f "$ac_dir/install-sh"; then
2065 ac_install_sh="$ac_aux_dir/install-sh -c"
2067 elif test -f "$ac_dir/install.sh"; then
2069 ac_install_sh="$ac_aux_dir/install.sh -c"
2071 elif test -f "$ac_dir/shtool"; then
2073 ac_install_sh="$ac_aux_dir/shtool install -c"
2077 if test -z "$ac_aux_dir"; then
2078 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2079 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2080 { (exit 1); exit 1; }; }
2083 # These three variables are undocumented and unsupported,
2084 # and are intended to be withdrawn in a future Autoconf release.
2085 # They can cause serious problems if a builder's source tree is in a directory
2086 # whose full name contains unusual characters.
2087 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2088 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2089 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2093 if test ${srcdir} != "." ; then
2094 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2095 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2096 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2097 { (exit 1); exit 1; }; }
2101 for i in `ls ${srcdir}/projects
`
2103 if test -d ${srcdir}/projects/${i} ; then
2106 sample) subdirs="$subdirs projects/sample"
2108 privbracket) subdirs="$subdirs projects/privbracket"
2110 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2112 # llvm-test is the old name of the test-suite, kept here for backwards
2114 llvm-test) subdirs="$subdirs projects/llvm-test"
2116 test-suite) subdirs="$subdirs projects/test-suite"
2118 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2120 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2122 llvm-java) subdirs="$subdirs projects/llvm-java"
2124 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2126 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2128 poolalloc) subdirs="$subdirs projects/poolalloc"
2130 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2133 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2134 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2141 # Make sure we can run config.sub.
2142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2143 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2144 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2145 { (exit 1); exit 1; }; }
2147 { echo "$as_me:$LINENO: checking build system type" >&5
2148 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_build+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 ac_build_alias=$build_alias
2153 test "x$ac_build_alias" = x &&
2154 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2155 test "x$ac_build_alias" = x &&
2156 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2157 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2158 { (exit 1); exit 1; }; }
2159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2162 { (exit 1); exit 1; }; }
2165 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2166 echo "${ECHO_T}$ac_cv_build" >&6; }
2167 case $ac_cv_build in
2169 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2170 echo "$as_me: error: invalid value of canonical build" >&2;}
2171 { (exit 1); exit 1; }; };;
2174 ac_save_IFS=$IFS; IFS='-'
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2184 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2187 { echo "$as_me:$LINENO: checking host system type" >&5
2188 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2189 if test "${ac_cv_host+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 if test "x$host_alias" = x; then
2193 ac_cv_host=$ac_cv_build
2195 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2196 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2197 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2198 { (exit 1); exit 1; }; }
2202 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203 echo "${ECHO_T}$ac_cv_host" >&6; }
2206 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2207 echo "$as_me: error: invalid value of canonical host" >&2;}
2208 { (exit 1); exit 1; }; };;
2211 ac_save_IFS=$IFS; IFS='-'
2217 # Remember, the first character of IFS is used to create $*,
2218 # except with old shells:
2221 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2224 { echo "$as_me:$LINENO: checking target system type" >&5
2225 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2226 if test "${ac_cv_target+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 if test "x$target_alias" = x; then
2230 ac_cv_target=$ac_cv_host
2232 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2233 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2234 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2235 { (exit 1); exit 1; }; }
2239 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2240 echo "${ECHO_T}$ac_cv_target" >&6; }
2241 case $ac_cv_target in
2243 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2244 echo "$as_me: error: invalid value of canonical target" >&2;}
2245 { (exit 1); exit 1; }; };;
2247 target=$ac_cv_target
2248 ac_save_IFS=$IFS; IFS='-'
2254 # Remember, the first character of IFS is used to create $*,
2255 # except with old shells:
2258 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2261 # The aliases save the names the user supplied, while $host etc.
2262 # will get canonicalized.
2263 test -n "$target_alias" &&
2264 test "$program_prefix$program_suffix$program_transform_name" = \
2266 program_prefix=${target_alias}-
2268 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2269 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2270 if test "${llvm_cv_os_type+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277 llvm_cv_os_type="AIX"
2278 llvm_cv_platform_type="Unix" ;;
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="IRIX"
2283 llvm_cv_platform_type="Unix" ;;
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="Cygwin"
2288 llvm_cv_platform_type="Unix" ;;
2290 llvm_cv_link_all_option="-Wl,-all_load"
2291 llvm_cv_no_link_all_option="-Wl,-noall_load"
2292 llvm_cv_os_type="Darwin"
2293 llvm_cv_platform_type="Unix" ;;
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="FreeBSD"
2298 llvm_cv_platform_type="Unix" ;;
2300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302 llvm_cv_os_type="OpenBSD"
2303 llvm_cv_platform_type="Unix" ;;
2305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307 llvm_cv_os_type="NetBSD"
2308 llvm_cv_platform_type="Unix" ;;
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="DragonFly"
2313 llvm_cv_platform_type="Unix" ;;
2315 llvm_cv_link_all_option="-Wl,--whole-archive"
2316 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2317 llvm_cv_os_type="HP-UX"
2318 llvm_cv_platform_type="Unix" ;;
2320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2322 llvm_cv_os_type="Interix"
2323 llvm_cv_platform_type="Unix" ;;
2325 llvm_cv_link_all_option="-Wl,--whole-archive"
2326 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2327 llvm_cv_os_type="Linux"
2328 llvm_cv_platform_type="Unix" ;;
2330 llvm_cv_link_all_option="-Wl,-z,allextract"
2331 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2332 llvm_cv_os_type="SunOS"
2333 llvm_cv_platform_type="Unix" ;;
2335 llvm_cv_link_all_option="-Wl,--whole-archive"
2336 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2337 llvm_cv_os_type="Win32"
2338 llvm_cv_platform_type="Win32" ;;
2340 llvm_cv_link_all_option="-Wl,--whole-archive"
2341 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2342 llvm_cv_os_type="MingW"
2343 llvm_cv_platform_type="Win32" ;;
2345 llvm_cv_link_all_option=""
2346 llvm_cv_no_link_all_option=""
2347 llvm_cv_os_type="Unknown"
2348 llvm_cv_platform_type="Unknown" ;;
2351 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2352 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2354 if test "$llvm_cv_os_type" = "Unknown" ; then
2355 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2356 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2357 { (exit 1); exit 1; }; }
2363 LINKALL=$llvm_cv_link_all_option
2365 NOLINKALL=$llvm_cv_no_link_all_option
2368 case $llvm_cv_platform_type in
2371 cat >>confdefs.h <<\_ACEOF
2372 #define LLVM_ON_UNIX 1
2382 cat >>confdefs.h <<\_ACEOF
2383 #define LLVM_ON_WIN32 1
2393 { echo "$as_me:$LINENO: checking target architecture" >&5
2394 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2395 if test "${llvm_cv_target_arch+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 i?86-*) llvm_cv_target_arch="x86" ;;
2400 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2401 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2402 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2403 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2404 arm*-*) llvm_cv_target_arch="ARM" ;;
2405 mips-*) llvm_cv_target_arch="Mips" ;;
2406 pic16-*) llvm_cv_target_arch="PIC16" ;;
2407 xcore-*) llvm_cv_target_arch="XCore" ;;
2408 msp430-*) llvm_cv_target_arch="MSP430" ;;
2409 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2410 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2411 *) llvm_cv_target_arch="Unknown" ;;
2414 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2415 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2417 if test "$llvm_cv_target_arch" = "Unknown" ; then
2418 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2419 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2422 # Determine the LLVM native architecture for the target
2423 case "$llvm_cv_target_arch" in
2424 x86) LLVM_NATIVE_ARCH="X86" ;;
2425 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2426 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2429 ARCH=$llvm_cv_target_arch
2433 ac_cpp='$CPP $CPPFLAGS'
2434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 if test -n "$CC"; then
2467 { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2476 if test -z "$ac_cv_prog_CC"; then
2478 # Extract the first word of "gcc", so it can be a program name with args.
2479 set dummy gcc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$ac_ct_CC"; then
2486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_CC="gcc"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2506 if test -n "$ac_ct_CC"; then
2507 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2508 echo "${ECHO_T}$ac_ct_CC" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2514 if test "x$ac_ct_CC" = x; then
2517 case $cross_compiling:$ac_tool_warned in
2519 { echo "$as_me:$LINENO: 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." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet. If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned=yes ;;
2533 if test -z "$CC"; then
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="${ac_tool_prefix}cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2574 if test -z "$CC"; then
2575 # Extract the first word of "cc", so it can be a program name with args.
2576 set dummy cc; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2594 ac_prog_rejected=yes
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test $ac_prog_rejected = yes; then
2606 # We found a bogon in the path, so make sure we never use it.
2607 set dummy $ac_cv_prog_CC
2609 if test $# != 0; then
2610 # We chose a different compiler from the bogus one.
2611 # However, it has the same basename, so the bogon will be chosen
2612 # first if we set CC to just the basename; use the full file name.
2614 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2620 if test -n "$CC"; then
2621 { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2630 if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
2632 for ac_prog in cl.exe
2634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 if test -n "$CC"; then
2663 { echo "$as_me:$LINENO: result: $CC" >&5
2664 echo "${ECHO_T}$CC" >&6; }
2666 { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2671 test -n "$CC" && break
2674 if test -z "$CC"; then
2676 for ac_prog in cl.exe
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_CC="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708 echo "${ECHO_T}$ac_ct_CC" >&6; }
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2715 test -n "$ac_ct_CC" && break
2718 if test "x$ac_ct_CC" = x; then
2721 case $cross_compiling:$ac_tool_warned in
2723 { echo "$as_me:$LINENO: 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." >&5
2726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2727 whose name does not start with the host triplet. If you think this
2728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2729 ac_tool_warned=yes ;;
2738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2739 See \`config.log
' for more details." >&5
2740 echo "$as_me: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details.
" >&2;}
2742 { (exit 1); exit 1; }; }
2744 # Provide some information about the compiler.
2745 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2746 ac_compiler=`set X $ac_compile; echo $2`
2747 { (ac_try="$ac_compiler --version >&5"
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compiler --version >&5") 2>&5
2755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2756 (exit $ac_status); }
2757 { (ac_try="$ac_compiler -v >&5"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler -v >&5") 2>&5
2765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2766 (exit $ac_status); }
2767 { (ac_try="$ac_compiler -V >&5"
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler -V >&5") 2>&5
2775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2776 (exit $ac_status); }
2778 cat >conftest.$ac_ext <<_ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2793 ac_clean_files_save=$ac_clean_files
2794 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2795 # Try to create an executable without -o first, disregard a.out.
2796 # It will help us diagnose broken compilers, and finding out an intuition
2798 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2799 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2800 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2802 # List of possible output files, starting from the most likely.
2803 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2804 # only as a last resort. b.out is created by i960 compilers.
2805 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2807 # The IRIX 6 linker writes into existing files which may not be
2808 # executable, retaining their permissions. Remove them first so a
2809 # subsequent execution test works.
2811 for ac_file in $ac_files
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2815 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2820 if { (ac_try="$ac_link_default"
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_link_default") 2>&5
2828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2829 (exit $ac_status); }; then
2830 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2831 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2832 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2833 # so that the user can short-circuit this test for compilers unknown to
2835 for ac_file in $ac_files
2837 test -f "$ac_file" || continue
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2842 # We found the default executable, but exeext='' is most
2846 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2848 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 # We set ac_cv_exeext here because the later test for it is not
2851 # safe: cross compilers may not add the suffix if given an `-o'
2852 # argument, so we may need to know it at that point already.
2853 # Even if this section looks crufty: it has the advantage of
2860 test "$ac_cv_exeext" = no && ac_cv_exeext=
2863 echo "$as_me: failed program was
:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2867 See \
`config.log' for more details." >&5
2868 echo "$as_me: error: C compiler cannot create executables
2869 See \`config.log
' for more details." >&2;}
2870 { (exit 77); exit 77; }; }
2873 ac_exeext=$ac_cv_exeext
2874 { echo "$as_me:$LINENO: result: $ac_file" >&5
2875 echo "${ECHO_T}$ac_file" >&6; }
2877 # Check that the compiler produces executables we can run. If not, either
2878 # the compiler is broken, or we cross compile.
2879 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2880 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2881 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2882 # If not cross compiling, check that we can run a simple program.
2883 if test "$cross_compiling" != yes; then
2884 if { ac_try='.
/$ac_file'
2885 { (case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_try") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2896 if test "$cross_compiling" = maybe; then
2899 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2900 If you meant to cross compile, use \`--host'.
2901 See \
`config.log' for more details." >&5
2902 echo "$as_me: error: cannot run C compiled programs.
2903 If you meant to cross compile, use \`--host'.
2904 See \`config.log' for more details.
" >&2;}
2905 { (exit 1); exit 1; }; }
2909 { echo "$as_me:$LINENO: result
: yes" >&5
2910 echo "${ECHO_T}yes" >&6; }
2912 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2913 ac_clean_files=$ac_clean_files_save
2914 # Check that the compiler produces executables we can run. If not, either
2915 # the compiler is broken, or we cross compile.
2916 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2917 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2918 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2919 echo "${ECHO_T}$cross_compiling" >&6; }
2921 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2922 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2923 if { (ac_try="$ac_link"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_link") 2>&5
2931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2932 (exit $ac_status); }; then
2933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2934 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2935 # work properly (i.e., refer to `conftest.exe'), while it won't with
2937 for ac_file in conftest.exe conftest conftest.*; do
2938 test -f "$ac_file" || continue
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2947 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2948 See \
`config.log' for more details." >&5
2949 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log
' for more details." >&2;}
2951 { (exit 1); exit 1; }; }
2954 rm -f conftest$ac_cv_exeext
2955 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2958 rm -f conftest.$ac_ext
2959 EXEEXT=$ac_cv_exeext
2961 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2963 if test "${ac_cv_objext+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 cat >conftest.$ac_ext <<_ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2981 rm -f conftest.o conftest.obj
2982 if { (ac_try="$ac_compile"
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 for ac_file in conftest.o conftest.obj conftest.*; do
2993 test -f "$ac_file" || continue;
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2996 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3001 echo "$as_me: failed program was:" >&5
3002 sed 's
/^
/|
/' conftest.$ac_ext >&5
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details.
" >&5
3006 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3007 See \
`config.log' for more details." >&2;}
3008 { (exit 1); exit 1; }; }
3011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3014 echo "${ECHO_T}$ac_cv_objext" >&6; }
3015 OBJEXT=$ac_cv_objext
3017 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3018 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3019 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3044 *) ac_try_echo
=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3049 grep -v '^ *+' conftest.er1
>conftest.err
3051 cat conftest.err
>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055 { (case "(($ac_try" in
3056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3067 *) ac_try_echo
=$ac_try;;
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.
$ac_ext >&5
3082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3083 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3086 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3087 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3088 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3089 ac_test_CFLAGS
=${CFLAGS+set}
3090 ac_save_CFLAGS
=$CFLAGS
3091 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3092 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3093 if test "${ac_cv_prog_cc_g+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 ac_save_c_werror_flag
=$ac_c_werror_flag
3097 ac_c_werror_flag
=yes
3100 cat >conftest.
$ac_ext <<_ACEOF
3103 cat confdefs.h
>>conftest.
$ac_ext
3104 cat >>conftest.
$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3115 rm -f conftest.
$ac_objext
3116 if { (ac_try
="$ac_compile"
3118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
3124 grep -v '^ *+' conftest.er1 >conftest.err
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3132 *) ac_try_echo
=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try
='test -s conftest.$ac_objext'
3140 { (case "(($ac_try" in
3141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3174 *) ac_try_echo
=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3179 grep -v '^ *+' conftest.er1
>conftest.err
3181 cat conftest.err
>&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185 { (case "(($ac_try" in
3186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3197 *) ac_try_echo
=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.
$ac_ext >&5
3209 ac_c_werror_flag
=$ac_save_c_werror_flag
3211 cat >conftest.
$ac_ext <<_ACEOF
3214 cat confdefs.h
>>conftest.
$ac_ext
3215 cat >>conftest.
$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3226 rm -f conftest.
$ac_objext
3227 if { (ac_try
="$ac_compile"
3229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3241 { (case "(($ac_try" in
3242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3243 *) ac_try_echo
=$ac_try;;
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_try") 2>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try
='test -s conftest.$ac_objext'
3251 { (case "(($ac_try" in
3252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3277 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3279 if test "$ac_test_CFLAGS" = set; then
3280 CFLAGS=$ac_save_CFLAGS
3281 elif test $ac_cv_prog_cc_g = yes; then
3282 if test "$GCC" = yes; then
3288 if test "$GCC" = yes; then
3294 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3295 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3296 if test "${ac_cv_prog_cc_c89+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 ac_cv_prog_cc_c89=no
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3309 #include <sys/types.h>
3310 #include <sys/stat.h>
3311 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3312 struct buf { int x; };
3313 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314 static char *e (p, i)
3320 static char *f (char * (*g) (char **, int), char **p, ...)
3325 s = g (p, va_arg (v,int));
3330 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3331 function prototypes and stuff, but not '\xHH' hex character constants.
3332 These don't provoke an error unfortunately, instead are silently treated
3333 as 'x'. The following induces an error, until -std is added to get
3334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3335 array size at least. It's necessary to write '\x00'==0 to get something
3336 that's true only with -std. */
3337 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3339 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340 inside strings and character constants. */
3342 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3344 int test (int i, double x);
3345 struct s1 {int (*f) (int a);};
3346 struct s2 {int (*f) (double a);};
3347 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3353 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3358 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3359 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3361 CC="$ac_save_CC $ac_arg"
3362 rm -f conftest.$ac_objext
3363 if { (ac_try="$ac_compile"
3365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3366 *) ac_try_echo
=$ac_try;;
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_compile") 2>conftest.er1
3371 grep -v '^ *+' conftest.er1
>conftest.err
3373 cat conftest.err
>&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3377 { (case "(($ac_try" in
3378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_try") 2>&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3389 *) ac_try_echo
=$ac_try;;
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 ac_cv_prog_cc_c89
=$ac_arg
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.
$ac_ext >&5
3404 rm -f core conftest.err conftest.
$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
3407 rm -f conftest.
$ac_ext
3412 case "x$ac_cv_prog_cc_c89" in
3414 { echo "$as_me:$LINENO: result: none needed" >&5
3415 echo "${ECHO_T}none needed" >&6; } ;;
3417 { echo "$as_me:$LINENO: result: unsupported" >&5
3418 echo "${ECHO_T}unsupported" >&6; } ;;
3420 CC
="$CC $ac_cv_prog_cc_c89"
3421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3422 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3427 ac_cpp
='$CPP $CPPFLAGS'
3428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3434 ac_cpp
='$CPP $CPPFLAGS'
3435 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3438 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3439 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3440 # On Suns, sometimes $CPP names a directory.
3441 if test -n "$CPP" && test -d "$CPP"; then
3444 if test -z "$CPP"; then
3445 if test "${ac_cv_prog_CPP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 # Double quotes because CPP needs to be expanded
3449 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3452 for ac_c_preproc_warn_flag
in '' yes
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
3460 cat >conftest.
$ac_ext <<_ACEOF
3463 cat confdefs.h
>>conftest.
$ac_ext
3464 cat >>conftest.
$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3467 # include <limits.h>
3469 # include <assert.h>
3473 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null; then
3486 if test -s conftest.err; then
3487 ac_cpp_err=$ac_c_preproc_warn_flag
3488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3495 if test -z "$ac_cpp_err"; then
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Broken: fails on valid input.
3505 rm -f conftest.err conftest.$ac_ext
3507 # OK, works on sane cases. Now check whether nonexistent headers
3508 # can be detected and how.
3509 cat >conftest.$ac_ext <<_ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 #include <ac_nonexistent.h>
3517 if { (ac_try="$ac_cpp conftest.$ac_ext"
3519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3520 *) ac_try_echo
=$ac_try;;
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } >/dev
/null
; then
3530 if test -s conftest.err
; then
3531 ac_cpp_err
=$ac_c_preproc_warn_flag
3532 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3539 if test -z "$ac_cpp_err"; then
3540 # Broken: success on invalid input.
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.
$ac_ext >&5
3546 # Passes both tests.
3551 rm -f conftest.err conftest.
$ac_ext
3554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555 rm -f conftest.err conftest.
$ac_ext
3556 if $ac_preproc_ok; then
3568 { echo "$as_me:$LINENO: result: $CPP" >&5
3569 echo "${ECHO_T}$CPP" >&6; }
3571 for ac_c_preproc_warn_flag
in '' yes
3573 # Use a header file that comes with gcc, so configuring glibc
3574 # with a fresh cross-compiler works.
3575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3576 # <limits.h> exists even on freestanding compilers.
3577 # On the NeXT, cc -E runs the code through the compiler's parser,
3578 # not just through cpp. "Syntax error" is here to catch this case.
3579 cat >conftest.
$ac_ext <<_ACEOF
3582 cat confdefs.h
>>conftest.
$ac_ext
3583 cat >>conftest.
$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3586 # include <limits.h>
3588 # include <assert.h>
3592 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } >/dev/null; then
3605 if test -s conftest.err; then
3606 ac_cpp_err=$ac_c_preproc_warn_flag
3607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3614 if test -z "$ac_cpp_err"; then
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Broken: fails on valid input.
3624 rm -f conftest.err conftest.$ac_ext
3626 # OK, works on sane cases. Now check whether nonexistent headers
3627 # can be detected and how.
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <ac_nonexistent.h>
3636 if { (ac_try="$ac_cpp conftest.$ac_ext"
3638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3639 *) ac_try_echo
=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3644 grep -v '^ *+' conftest.er1
>conftest.err
3646 cat conftest.err
>&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } >/dev
/null
; then
3649 if test -s conftest.err
; then
3650 ac_cpp_err
=$ac_c_preproc_warn_flag
3651 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3658 if test -z "$ac_cpp_err"; then
3659 # Broken: success on invalid input.
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.
$ac_ext >&5
3665 # Passes both tests.
3670 rm -f conftest.err conftest.
$ac_ext
3673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674 rm -f conftest.err conftest.
$ac_ext
3675 if $ac_preproc_ok; then
3678 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&5
3680 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details." >&2;}
3682 { (exit 1); exit 1; }; }
3686 ac_cpp
='$CPP $CPPFLAGS'
3687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3692 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3693 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3694 if test "${ac_cv_path_GREP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 # Extract the first word of "grep ggrep" to use in msg output
3698 if test -z "$GREP"; then
3699 set dummy
grep ggrep
; ac_prog_name
=$2
3700 if test "${ac_cv_path_GREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_path_GREP_found
=false
3704 # Loop through the user's path and test for each of PROGNAME-LIST
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3706 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_prog
in grep ggrep
; do
3711 for ac_exec_ext
in '' $ac_executable_extensions; do
3712 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3713 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3714 # Check for GNU ac_path_GREP and select it if it is found.
3715 # Check for GNU $ac_path_GREP
3716 case `"$ac_path_GREP" --version 2>&1` in
3718 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3721 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3724 cat "conftest.in" "conftest.in" >"conftest.tmp"
3725 mv "conftest.tmp" "conftest.in"
3726 cp "conftest.in" "conftest.nl"
3727 echo 'GREP' >> "conftest.nl"
3728 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3729 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3730 ac_count
=`expr $ac_count + 1`
3731 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3732 # Best one so far, save it but keep looking for a better one
3733 ac_cv_path_GREP
="$ac_path_GREP"
3734 ac_path_GREP_max
=$ac_count
3736 # 10*(2^10) chars as input seems more than enough
3737 test $ac_count -gt 10 && break
3739 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3743 $ac_path_GREP_found && break 3
3753 GREP
="$ac_cv_path_GREP"
3754 if test -z "$GREP"; then
3755 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3756 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3757 { (exit 1); exit 1; }; }
3761 ac_cv_path_GREP
=$GREP
3766 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3767 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3768 GREP
="$ac_cv_path_GREP"
3771 { echo "$as_me:$LINENO: checking for egrep" >&5
3772 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3773 if test "${ac_cv_path_EGREP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3777 then ac_cv_path_EGREP
="$GREP -E"
3779 # Extract the first word of "egrep" to use in msg output
3780 if test -z "$EGREP"; then
3781 set dummy
egrep; ac_prog_name
=$2
3782 if test "${ac_cv_path_EGREP+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 ac_path_EGREP_found
=false
3786 # Loop through the user's path and test for each of PROGNAME-LIST
3787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3788 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3791 test -z "$as_dir" && as_dir
=.
3792 for ac_prog
in egrep; do
3793 for ac_exec_ext
in '' $ac_executable_extensions; do
3794 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3795 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3796 # Check for GNU ac_path_EGREP and select it if it is found.
3797 # Check for GNU $ac_path_EGREP
3798 case `"$ac_path_EGREP" --version 2>&1` in
3800 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3803 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3806 cat "conftest.in" "conftest.in" >"conftest.tmp"
3807 mv "conftest.tmp" "conftest.in"
3808 cp "conftest.in" "conftest.nl"
3809 echo 'EGREP' >> "conftest.nl"
3810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3811 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3812 ac_count
=`expr $ac_count + 1`
3813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_EGREP
="$ac_path_EGREP"
3816 ac_path_EGREP_max
=$ac_count
3818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3821 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3825 $ac_path_EGREP_found && break 3
3835 EGREP
="$ac_cv_path_EGREP"
3836 if test -z "$EGREP"; then
3837 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3838 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3839 { (exit 1); exit 1; }; }
3843 ac_cv_path_EGREP
=$EGREP
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3851 EGREP
="$ac_cv_path_EGREP"
3854 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3855 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3856 if test "${ac_cv_header_stdc+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 cat >conftest.
$ac_ext <<_ACEOF
3862 cat confdefs.h
>>conftest.
$ac_ext
3863 cat >>conftest.
$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3878 rm -f conftest.
$ac_objext
3879 if { (ac_try
="$ac_compile"
3881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_compile") 2>conftest.er1
3887 grep -v '^ *+' conftest.er1 >conftest.err
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3893 { (case "(($ac_try" in
3894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3895 *) ac_try_echo
=$ac_try;;
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898 (eval "$ac_try") 2>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try
='test -s conftest.$ac_objext'
3903 { (case "(($ac_try" in
3904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_try") 2>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 ac_cv_header_stdc=yes
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 ac_cv_header_stdc=no
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 if test $ac_cv_header_stdc = yes; then
3923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934 $EGREP "memchr" >/dev/null 2>&1; then
3937 ac_cv_header_stdc=no
3943 if test $ac_cv_header_stdc = yes; then
3944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955 $EGREP "free" >/dev/null 2>&1; then
3958 ac_cv_header_stdc=no
3964 if test $ac_cv_header_stdc = yes; then
3965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3966 if test "$cross_compiling" = yes; then
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3977 #if ((' ' & 0x0FF) == 0x020)
3978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3981 # define ISLOWER(c) \
3982 (('a' <= (c) && (c) <= 'i') \
3983 || ('j' <= (c) && (c) <= 'r') \
3984 || ('s' <= (c) && (c) <= 'z'))
3985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3993 for (i = 0; i < 256; i++)
3994 if (XOR (islower (i), ISLOWER (i))
3995 || toupper (i) != TOUPPER (i))
4000 rm -f conftest$ac_exeext
4001 if { (ac_try="$ac_link"
4003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4004 *) ac_try_echo
=$ac_try;;
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_link") 2>&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4011 { (case "(($ac_try" in
4012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4022 echo "$as_me: program exited with status $ac_status" >&5
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4027 ac_cv_header_stdc=no
4029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4035 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4036 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4037 if test $ac_cv_header_stdc = yes; then
4039 cat >>confdefs.h <<\_ACEOF
4040 #define STDC_HEADERS 1
4045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4056 inttypes.h stdint.h unistd.h
4058 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 $ac_includes_default
4072 #include <$ac_header>
4074 rm -f conftest.$ac_objext
4075 if { (ac_try="$ac_compile"
4077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4078 *) ac_try_echo
=$ac_try;;
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_compile") 2>conftest.er1
4083 grep -v '^ *+' conftest.er1
>conftest.err
4085 cat conftest.err
>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4089 { (case "(($ac_try" in
4090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (case "(($ac_try" in
4100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4101 *) ac_try_echo
=$ac_try;;
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_try") 2>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 eval "$as_ac_Header=yes"
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.
$ac_ext >&5
4113 eval "$as_ac_Header=no"
4116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4118 ac_res
=`eval echo '${'$as_ac_Header'}'`
4119 { echo "$as_me:$LINENO: result: $ac_res" >&5
4120 echo "${ECHO_T}$ac_res" >&6; }
4121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4122 cat >>confdefs.h
<<_ACEOF
4123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4131 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4132 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4133 if test "${ac_cv_c_bigendian+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 # See if sys/param.h defines the BYTE_ORDER macro.
4137 cat >conftest.
$ac_ext <<_ACEOF
4140 cat confdefs.h
>>conftest.
$ac_ext
4141 cat >>conftest.
$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <sys/types.h>
4144 #include <sys/param.h>
4149 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4157 rm -f conftest.
$ac_objext
4158 if { (ac_try
="$ac_compile"
4160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4166 grep -v '^ *+' conftest.er1 >conftest.err
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4174 *) ac_try_echo
=$ac_try;;
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try
='test -s conftest.$ac_objext'
4182 { (case "(($ac_try" in
4183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 # It does; now see whether it defined to BIG_ENDIAN or not.
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #include <sys/types.h>
4199 #include <sys/param.h>
4204 #if BYTE_ORDER != BIG_ENDIAN
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4216 *) ac_try_echo
=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1
>conftest.err
4223 cat conftest.err
>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4227 { (case "(($ac_try" in
4228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4239 *) ac_try_echo
=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_c_bigendian
=yes
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.
$ac_ext >&5
4251 ac_cv_c_bigendian
=no
4254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.
$ac_ext >&5
4259 # It does not; compile a test program.
4260 if test "$cross_compiling" = yes; then
4261 # try to guess the endianness by grepping values into an object file
4262 ac_cv_c_bigendian
=unknown
4263 cat >conftest.
$ac_ext <<_ACEOF
4266 cat confdefs.h
>>conftest.
$ac_ext
4267 cat >>conftest.
$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4270 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4271 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4272 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4273 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4274 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4278 _ascii (); _ebcdic ();
4283 rm -f conftest.
$ac_objext
4284 if { (ac_try
="$ac_compile"
4286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4300 *) ac_try_echo
=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try
='test -s conftest.$ac_objext'
4308 { (case "(($ac_try" in
4309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4318 ac_cv_c_bigendian=yes
4320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4321 if test "$ac_cv_c_bigendian" = unknown; then
4322 ac_cv_c_bigendian=no
4324 # finding both strings is unlikely to happen, but who knows?
4325 ac_cv_c_bigendian=unknown
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 cat >conftest.$ac_ext <<_ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 $ac_includes_default
4348 /* Are we little or big endian? From Harbison&Steele. */
4352 char c[sizeof (long int)];
4355 return u.c[sizeof (long int) - 1] == 1;
4361 rm -f conftest$ac_exeext
4362 if { (ac_try="$ac_link"
4364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4365 *) ac_try_echo
=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_link") 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4372 { (case "(($ac_try" in
4373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_try") 2>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_c_bigendian=no
4383 echo "$as_me: program exited with status $ac_status" >&5
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_cv_c_bigendian=yes
4390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4399 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4400 case $ac_cv_c_bigendian in
4408 { { echo "$as_me:$LINENO: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4410 echo "$as_me: error: unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4412 { (exit 1); exit 1; }; } ;;
4416 if test "$cross_compiling" = yes; then
4417 LLVM_CROSS_COMPILING=1
4420 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4421 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4422 if test "${ac_cv_build_exeext+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4426 ac_cv_build_exeext=.exe
4428 ac_build_prefix=${build_alias}-
4430 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4431 set dummy ${ac_build_prefix}gcc; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test -n "$BUILD_CC"; then
4438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 BUILD_CC=$ac_cv_prog_BUILD_CC
4458 if test -n "$BUILD_CC"; then
4459 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4460 echo "${ECHO_T}$BUILD_CC" >&6; }
4462 { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4467 if test -z "$BUILD_CC"; then
4468 # Extract the first word of "gcc", so it can be a program name with args.
4469 set dummy gcc; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$BUILD_CC"; then
4476 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_BUILD_CC="gcc"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 BUILD_CC=$ac_cv_prog_BUILD_CC
4496 if test -n "$BUILD_CC"; then
4497 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4498 echo "${ECHO_T}$BUILD_CC" >&6; }
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4505 if test -z "$BUILD_CC"; then
4506 # Extract the first word of "cc", so it can be a program name with args.
4507 set dummy cc; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if test -n "$BUILD_CC"; then
4514 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4525 ac_prog_rejected=yes
4528 ac_cv_prog_BUILD_CC="cc"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 if test $ac_prog_rejected = yes; then
4537 # We found a bogon in the path, so make sure we never use it.
4538 set dummy $ac_cv_prog_BUILD_CC
4540 if test $# != 0; then
4541 # We chose a different compiler from the bogus one.
4542 # However, it has the same basename, so the bogon will be chosen
4543 # first if we set BUILD_CC to just the basename; use the full file name.
4545 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4550 BUILD_CC=$ac_cv_prog_BUILD_CC
4551 if test -n "$BUILD_CC"; then
4552 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4553 echo "${ECHO_T}$BUILD_CC" >&6; }
4555 { echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6; }
4562 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4563 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4564 { (exit 1); exit 1; }; }
4565 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4567 echo 'int main () { return 0; }' > conftest.$ac_ext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4570 (eval $ac_build_link) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; then
4574 for file in conftest.*; do
4576 *.c | *.o | *.obj | *.dSYM) ;;
4577 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4581 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4582 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4583 { (exit 1); exit 1; }; }
4586 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4591 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4592 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4593 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4594 ac_build_exeext=$BUILD_EXEEXT
4596 ac_build_prefix=${build_alias}-
4597 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4598 set dummy ${ac_build_prefix}g++; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 if test -n "$BUILD_CXX"; then
4605 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4625 if test -n "$BUILD_CXX"; then
4626 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4627 echo "${ECHO_T}$BUILD_CXX" >&6; }
4629 { echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6; }
4634 if test -z "$BUILD_CXX"; then
4635 # Extract the first word of "g++", so it can be a program name with args.
4636 set dummy g++; ac_word=$2
4637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4639 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 if test -n "$BUILD_CXX"; then
4643 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_BUILD_CXX="g++"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4663 if test -n "$BUILD_CXX"; then
4664 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4665 echo "${ECHO_T}$BUILD_CXX" >&6; }
4667 { echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6; }
4672 if test -z "$BUILD_CXX"; then
4673 # Extract the first word of "c++", so it can be a program name with args.
4674 set dummy c++; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 if test -n "$BUILD_CXX"; then
4681 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4692 ac_prog_rejected=yes
4695 ac_cv_prog_BUILD_CXX="c++"
4696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 if test $ac_prog_rejected = yes; then
4704 # We found a bogon in the path, so make sure we never use it.
4705 set dummy $ac_cv_prog_BUILD_CXX
4707 if test $# != 0; then
4708 # We chose a different compiler from the bogus one.
4709 # However, it has the same basename, so the bogon will be chosen
4710 # first if we set BUILD_CXX to just the basename; use the full file name.
4712 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4717 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4718 if test -n "$BUILD_CXX"; then
4719 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4720 echo "${ECHO_T}$BUILD_CXX" >&6; }
4722 { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4730 LLVM_CROSS_COMPILING=0
4734 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4745 # Check whether --enable-optimized was given.
4746 if test "${enable_optimized+set}" = set; then
4747 enableval=$enable_optimized;
4752 if test ${enableval} = "no" ; then
4756 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4760 # Check whether --enable-profiling was given.
4761 if test "${enable_profiling+set}" = set; then
4762 enableval=$enable_profiling;
4767 if test ${enableval} = "no" ; then
4771 ENABLE_PROFILING=ENABLE_PROFILING=1
4775 # Check whether --enable-assertions was given.
4776 if test "${enable_assertions+set}" = set; then
4777 enableval=$enable_assertions;
4782 if test ${enableval} = "yes" ; then
4786 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4790 if test ${ENABLE_OPTIMIZED},${DISABLE_ASSERTIONS} = "ENABLE_OPTIMIZED=1,DISABLE_ASSERTIONS=1" ; then
4791 LLVM_COMPACT_SENTINELS=1
4794 LLVM_COMPACT_SENTINELS=0
4799 cat >>confdefs.h <<_ACEOF
4800 #define LLVM_COMPACT_SENTINELS $LLVM_COMPACT_SENTINELS
4805 # Check whether --enable-expensive-checks was given.
4806 if test "${enable_expensive_checks+set}" = set; then
4807 enableval=$enable_expensive_checks;
4812 if test ${enableval} = "yes" ; then
4813 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4815 EXPENSIVE_CHECKS=yes
4818 ENABLE_EXPENSIVE_CHECKS=
4824 # Check whether --enable-debug-runtime was given.
4825 if test "${enable_debug_runtime+set}" = set; then
4826 enableval=$enable_debug_runtime;
4831 if test ${enableval} = "no" ; then
4835 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4839 # Check whether --enable-jit was given.
4840 if test "${enable_jit+set}" = set; then
4841 enableval=$enable_jit;
4846 if test ${enableval} = "no"
4851 case "$llvm_cv_target_arch" in
4852 x86) TARGET_HAS_JIT=1
4854 Sparc) TARGET_HAS_JIT=0
4856 PowerPC) TARGET_HAS_JIT=1
4858 x86_64) TARGET_HAS_JIT=1
4860 Alpha) TARGET_HAS_JIT=1
4862 ARM) TARGET_HAS_JIT=0
4864 Mips) TARGET_HAS_JIT=0
4866 PIC16) TARGET_HAS_JIT=0
4868 XCore) TARGET_HAS_JIT=0
4870 MSP430) TARGET_HAS_JIT=0
4872 SystemZ) TARGET_HAS_JIT=0
4874 Blackfin) TARGET_HAS_JIT=0
4881 # Check whether --enable-doxygen was given.
4882 if test "${enable_doxygen+set}" = set; then
4883 enableval=$enable_doxygen;
4888 case "$enableval" in
4889 yes) ENABLE_DOXYGEN=1
4891 no) ENABLE_DOXYGEN=0
4893 default) ENABLE_DOXYGEN=0
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4900 # Check whether --enable-threads was given.
4901 if test "${enable_threads+set}" = set; then
4902 enableval=$enable_threads;
4907 case "$enableval" in
4908 yes) ENABLE_THREADS=1
4910 no) ENABLE_THREADS=0
4912 default) ENABLE_THREADS=1
4914 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4916 { (exit 1); exit 1; }; } ;;
4919 cat >>confdefs.h <<_ACEOF
4920 #define ENABLE_THREADS $ENABLE_THREADS
4924 # Check whether --enable-pic was given.
4925 if test "${enable_pic+set}" = set; then
4926 enableval=$enable_pic;
4931 case "$enableval" in
4936 default) ENABLE_PIC=1
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4943 cat >>confdefs.h <<_ACEOF
4944 #define ENABLE_PIC $ENABLE_PIC
4949 # Check whether --enable-targets was given.
4950 if test "${enable_targets+set}" = set; then
4951 enableval=$enable_targets;
4956 case "$enableval" in
4957 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4959 case "$llvm_cv_target_arch" in
4960 x86) TARGETS_TO_BUILD="X86" ;;
4961 x86_64) TARGETS_TO_BUILD="X86" ;;
4962 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4963 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4964 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4965 ARM) TARGETS_TO_BUILD="ARM" ;;
4966 Mips) TARGETS_TO_BUILD="Mips" ;;
4967 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4968 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4969 XCore) TARGETS_TO_BUILD="XCore" ;;
4970 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4971 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
4972 Blackfin) TARGETS_TO_BUILD="Blackfin" ;;
4973 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4974 echo "$as_me: error: Can not set target to build" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4978 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4980 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4982 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4983 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4984 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4985 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4986 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4987 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4988 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4989 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4990 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4991 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4992 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4993 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4994 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4995 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4996 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4997 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4998 { (exit 1); exit 1; }; } ;;
5003 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5006 # Determine whether we are building LLVM support for the native architecture.
5007 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5008 for a_target in $TARGETS_TO_BUILD; do
5009 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5010 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5012 cat >>confdefs.h <<_ACEOF
5013 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5019 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5020 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5021 LLVM_ENUM_TARGETS=""
5022 LLVM_ENUM_ASM_PRINTERS=""
5023 LLVM_ENUM_ASM_PARSERS=""
5024 for target_to_build in $TARGETS_TO_BUILD; do
5025 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5026 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5027 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5029 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5030 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5037 # Check whether --enable-cbe-printf-a was given.
5038 if test "${enable_cbe_printf_a+set}" = set; then
5039 enableval=$enable_cbe_printf_a;
5044 case "$enableval" in
5045 yes) ENABLE_CBE_PRINTF_A=1
5047 no) ENABLE_CBE_PRINTF_A=0
5049 default) ENABLE_CBE_PRINTF_A=1
5051 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5052 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5053 { (exit 1); exit 1; }; } ;;
5056 cat >>confdefs.h <<_ACEOF
5057 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5062 # Check whether --with-llvmgccdir was given.
5063 if test "${with_llvmgccdir+set}" = set; then
5064 withval=$with_llvmgccdir;
5070 default) WITH_LLVMGCCDIR=default ;;
5071 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5072 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5073 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5074 { (exit 1); exit 1; }; } ;;
5078 # Check whether --with-llvmgcc was given.
5079 if test "${with_llvmgcc+set}" = set; then
5080 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5086 # Check whether --with-llvmgxx was given.
5087 if test "${with_llvmgxx+set}" = set; then
5088 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5093 if test -n "$LLVMGCC"; then
5094 LLVMGCCCOMMAND="$LLVMGCC"
5097 if test -n "$LLVMGXX"; then
5098 LLVMGXXCOMMAND="$LLVMGXX"
5101 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5102 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5103 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5104 { (exit 1); exit 1; }; };
5107 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5108 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5109 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5110 { (exit 1); exit 1; }; };
5114 # Check whether --with-extra-options was given.
5115 if test "${with_extra_options+set}" = set; then
5116 withval=$with_extra_options;
5122 default) EXTRA_OPTIONS= ;;
5123 *) EXTRA_OPTIONS=$withval ;;
5125 EXTRA_OPTIONS=$EXTRA_OPTIONS
5128 # Check whether --enable-bindings was given.
5129 if test "${enable_bindings+set}" = set; then
5130 enableval=$enable_bindings;
5135 BINDINGS_TO_BUILD=""
5136 case "$enableval" in
5137 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5138 all ) BINDINGS_TO_BUILD="ocaml" ;;
5139 none | no) BINDINGS_TO_BUILD="" ;;
5140 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5141 case "$a_binding" in
5142 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5143 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5144 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5152 # Check whether --with-ocaml-libdir was given.
5153 if test "${with_ocaml_libdir+set}" = set; then
5154 withval=$with_ocaml_libdir;
5160 auto) with_ocaml_libdir="$withval" ;;
5161 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5162 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5163 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5168 # Check whether --with-binutils-include was given.
5169 if test "${with_binutils_include+set}" = set; then
5170 withval=$with_binutils_include;
5176 default) WITH_BINUTILS_INCDIR=default ;;
5177 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5178 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5179 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5182 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5183 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5185 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5186 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5187 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5188 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5189 { (exit 1); exit 1; }; };
5193 # Check whether --enable-libffi was given.
5194 if test "${enable_libffi+set}" = set; then
5195 enableval=$enable_libffi;
5200 case "$enableval" in
5201 yes) llvm_cv_enable_libffi="yes" ;;
5202 no) llvm_cv_enable_libffi="no" ;;
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 if test "$llvm_cv_os_type" = "Win32" ; then
5214 # Check whether --enable-llvmc-dynamic was given.
5215 if test "${enable_llvmc_dynamic+set}" = set; then
5216 enableval=$enable_llvmc_dynamic;
5218 enableval=$llvmc_dynamic
5221 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5222 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5225 ENABLE_LLVMC_DYNAMIC=
5229 # Check whether --enable-llvmc-dynamic-plugins was given.
5230 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5231 enableval=$enable_llvmc_dynamic_plugins;
5236 if test ${enableval} = "yes" ; then
5237 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5240 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5251 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5252 # On Suns, sometimes $CPP names a directory.
5253 if test -n "$CPP" && test -d "$CPP"; then
5256 if test -z "$CPP"; then
5257 if test "${ac_cv_prog_CPP+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 # Double quotes because CPP needs to be expanded
5261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5264 for ac_c_preproc_warn_flag in '' yes
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat >conftest.$ac_ext <<_ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5279 # include <limits.h>
5281 # include <assert.h>
5285 if { (ac_try="$ac_cpp conftest.$ac_ext"
5287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5288 *) ac_try_echo
=$ac_try;;
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5293 grep -v '^ *+' conftest.er1
>conftest.err
5295 cat conftest.err
>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } >/dev
/null
; then
5298 if test -s conftest.err
; then
5299 ac_cpp_err
=$ac_c_preproc_warn_flag
5300 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5307 if test -z "$ac_cpp_err"; then
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.
$ac_ext >&5
5313 # Broken: fails on valid input.
5317 rm -f conftest.err conftest.
$ac_ext
5319 # OK, works on sane cases. Now check whether nonexistent headers
5320 # can be detected and how.
5321 cat >conftest.
$ac_ext <<_ACEOF
5324 cat confdefs.h
>>conftest.
$ac_ext
5325 cat >>conftest.
$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <ac_nonexistent.h>
5329 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } >/dev/null; then
5342 if test -s conftest.err; then
5343 ac_cpp_err=$ac_c_preproc_warn_flag
5344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5351 if test -z "$ac_cpp_err"; then
5352 # Broken: success on invalid input.
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5358 # Passes both tests.
5363 rm -f conftest.err conftest.$ac_ext
5366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5367 rm -f conftest.err conftest.
$ac_ext
5368 if $ac_preproc_ok; then
5380 { echo "$as_me:$LINENO: result: $CPP" >&5
5381 echo "${ECHO_T}$CPP" >&6; }
5383 for ac_c_preproc_warn_flag
in '' yes
5385 # Use a header file that comes with gcc, so configuring glibc
5386 # with a fresh cross-compiler works.
5387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5388 # <limits.h> exists even on freestanding compilers.
5389 # On the NeXT, cc -E runs the code through the compiler's parser,
5390 # not just through cpp. "Syntax error" is here to catch this case.
5391 cat >conftest.
$ac_ext <<_ACEOF
5394 cat confdefs.h
>>conftest.
$ac_ext
5395 cat >>conftest.
$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5398 # include <limits.h>
5400 # include <assert.h>
5404 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5412 grep -v '^ *+' conftest.er1 >conftest.err
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } >/dev/null; then
5417 if test -s conftest.err; then
5418 ac_cpp_err=$ac_c_preproc_warn_flag
5419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5426 if test -z "$ac_cpp_err"; then
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 # Broken: fails on valid input.
5436 rm -f conftest.err conftest.$ac_ext
5438 # OK, works on sane cases. Now check whether nonexistent headers
5439 # can be detected and how.
5440 cat >conftest.$ac_ext <<_ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 #include <ac_nonexistent.h>
5448 if { (ac_try="$ac_cpp conftest.$ac_ext"
5450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5451 *) ac_try_echo
=$ac_try;;
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5456 grep -v '^ *+' conftest.er1
>conftest.err
5458 cat conftest.err
>&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } >/dev
/null
; then
5461 if test -s conftest.err
; then
5462 ac_cpp_err
=$ac_c_preproc_warn_flag
5463 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5470 if test -z "$ac_cpp_err"; then
5471 # Broken: success on invalid input.
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.
$ac_ext >&5
5477 # Passes both tests.
5482 rm -f conftest.err conftest.
$ac_ext
5485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5486 rm -f conftest.err conftest.
$ac_ext
5487 if $ac_preproc_ok; then
5490 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5491 See \`config.log' for more details." >&5
5492 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5493 See \`config.log' for more details." >&2;}
5494 { (exit 1); exit 1; }; }
5498 ac_cpp
='$CPP $CPPFLAGS'
5499 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5504 ac_cpp
='$CPP $CPPFLAGS'
5505 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5508 if test -n "$ac_tool_prefix"; then
5511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5512 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5515 if test "${ac_cv_prog_CC+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 if test -n "$CC"; then
5519 ac_cv_prog_CC
="$CC" # Let the user override the test.
5521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir
=.
5526 for ac_exec_ext
in '' $ac_executable_extensions; do
5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5528 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 if test -n "$CC"; then
5540 { echo "$as_me:$LINENO: result: $CC" >&5
5541 echo "${ECHO_T}$CC" >&6; }
5543 { echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6; }
5548 test -n "$CC" && break
5551 if test -z "$CC"; then
5555 # Extract the first word of "$ac_prog", so it can be a program name with args.
5556 set dummy
$ac_prog; ac_word
=$2
5557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 if test -n "$ac_ct_CC"; then
5563 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir
=.
5570 for ac_exec_ext
in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_ac_ct_CC
="$ac_prog"
5573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5583 if test -n "$ac_ct_CC"; then
5584 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5585 echo "${ECHO_T}$ac_ct_CC" >&6; }
5587 { echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6; }
5592 test -n "$ac_ct_CC" && break
5595 if test "x$ac_ct_CC" = x
; then
5598 case $cross_compiling:$ac_tool_warned in
5600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5601 whose name does not start with the host triplet. If you think this
5602 configuration is useful to you, please write to autoconf@gnu.org." >&5
5603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5604 whose name does not start with the host triplet. If you think this
5605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5606 ac_tool_warned
=yes ;;
5613 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5614 See \`config.log' for more details." >&5
5615 echo "$as_me: error: no acceptable C compiler found in \$PATH
5616 See \`config.log' for more details." >&2;}
5617 { (exit 1); exit 1; }; }
5619 # Provide some information about the compiler.
5620 echo "$as_me:$LINENO: checking for C compiler version" >&5
5621 ac_compiler
=`set X $ac_compile; echo $2`
5622 { (ac_try
="$ac_compiler --version >&5"
5624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compiler --version >&5") 2>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }
5632 { (ac_try="$ac_compiler -v >&5"
5634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5635 *) ac_try_echo
=$ac_try;;
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compiler -v >&5") 2>&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }
5642 { (ac_try
="$ac_compiler -V >&5"
5644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_compiler -V >&5") 2>&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }
5653 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5654 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5655 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5680 *) ac_try_echo
=$ac_try;;
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5685 grep -v '^ *+' conftest.er1
>conftest.err
5687 cat conftest.err
>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5691 { (case "(($ac_try" in
5692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_try") 2>&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (case "(($ac_try" in
5702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5703 *) ac_try_echo
=$ac_try;;
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_try") 2>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.
$ac_ext >&5
5718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5719 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5722 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5723 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5724 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5725 ac_test_CFLAGS
=${CFLAGS+set}
5726 ac_save_CFLAGS
=$CFLAGS
5727 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5728 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5729 if test "${ac_cv_prog_cc_g+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 ac_save_c_werror_flag
=$ac_c_werror_flag
5733 ac_c_werror_flag
=yes
5736 cat >conftest.
$ac_ext <<_ACEOF
5739 cat confdefs.h
>>conftest.
$ac_ext
5740 cat >>conftest.
$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5751 rm -f conftest.
$ac_objext
5752 if { (ac_try
="$ac_compile"
5754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5766 { (case "(($ac_try" in
5767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5768 *) ac_try_echo
=$ac_try;;
5770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_try") 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try
='test -s conftest.$ac_objext'
5776 { (case "(($ac_try" in
5777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_try") 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5791 cat >conftest.$ac_ext <<_ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5810 *) ac_try_echo
=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5821 { (case "(($ac_try" in
5822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_try") 2>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5833 *) ac_try_echo
=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.
$ac_ext >&5
5845 ac_c_werror_flag
=$ac_save_c_werror_flag
5847 cat >conftest.
$ac_ext <<_ACEOF
5850 cat confdefs.h
>>conftest.
$ac_ext
5851 cat >>conftest.
$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5862 rm -f conftest.
$ac_objext
5863 if { (ac_try
="$ac_compile"
5865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5871 grep -v '^ *+' conftest.er1 >conftest.err
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5877 { (case "(($ac_try" in
5878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5879 *) ac_try_echo
=$ac_try;;
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_try") 2>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try
='test -s conftest.$ac_objext'
5887 { (case "(($ac_try" in
5888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_try") 2>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 ac_c_werror_flag=$ac_save_c_werror_flag
5913 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5914 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5915 if test "$ac_test_CFLAGS" = set; then
5916 CFLAGS=$ac_save_CFLAGS
5917 elif test $ac_cv_prog_cc_g = yes; then
5918 if test "$GCC" = yes; then
5924 if test "$GCC" = yes; then
5930 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5931 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5932 if test "${ac_cv_prog_cc_c89+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 ac_cv_prog_cc_c89=no
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5945 #include <sys/types.h>
5946 #include <sys/stat.h>
5947 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5948 struct buf { int x; };
5949 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5950 static char *e (p, i)
5956 static char *f (char * (*g) (char **, int), char **p, ...)
5961 s = g (p, va_arg (v,int));
5966 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5967 function prototypes and stuff, but not '\xHH' hex character constants.
5968 These don't provoke an error unfortunately, instead are silently treated
5969 as 'x'. The following induces an error, until -std is added to get
5970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5971 array size at least. It's necessary to write '\x00'==0 to get something
5972 that's true only with -std. */
5973 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5975 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5976 inside strings and character constants. */
5978 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5980 int test (int i, double x);
5981 struct s1 {int (*f) (int a);};
5982 struct s2 {int (*f) (double a);};
5983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5989 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5994 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5997 CC="$ac_save_CC $ac_arg"
5998 rm -f conftest.$ac_objext
5999 if { (ac_try="$ac_compile"
6001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6002 *) ac_try_echo
=$ac_try;;
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_compile") 2>conftest.er1
6007 grep -v '^ *+' conftest.er1
>conftest.err
6009 cat conftest.err
>&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6013 { (case "(($ac_try" in
6014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6025 *) ac_try_echo
=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_prog_cc_c89
=$ac_arg
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.
$ac_ext >&5
6040 rm -f core conftest.err conftest.
$ac_objext
6041 test "x$ac_cv_prog_cc_c89" != "xno" && break
6043 rm -f conftest.
$ac_ext
6048 case "x$ac_cv_prog_cc_c89" in
6050 { echo "$as_me:$LINENO: result: none needed" >&5
6051 echo "${ECHO_T}none needed" >&6; } ;;
6053 { echo "$as_me:$LINENO: result: unsupported" >&5
6054 echo "${ECHO_T}unsupported" >&6; } ;;
6056 CC
="$CC $ac_cv_prog_cc_c89"
6057 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6058 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6063 ac_cpp
='$CPP $CPPFLAGS'
6064 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6069 ac_cpp
='$CXXCPP $CPPFLAGS'
6070 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6071 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6072 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6073 if test -z "$CXX"; then
6074 if test -n "$CCC"; then
6077 if test -n "$ac_tool_prefix"; then
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_prog_CXX+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 if test -n "$CXX"; then
6088 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6094 test -z "$as_dir" && as_dir
=.
6095 for ac_exec_ext
in '' $ac_executable_extensions; do
6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 if test -n "$CXX"; then
6109 { echo "$as_me:$LINENO: result: $CXX" >&5
6110 echo "${ECHO_T}$CXX" >&6; }
6112 { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6117 test -n "$CXX" && break
6120 if test -z "$CXX"; then
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy
$ac_prog; ac_word
=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 if test -n "$ac_ct_CXX"; then
6132 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6138 test -z "$as_dir" && as_dir
=.
6139 for ac_exec_ext
in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6152 if test -n "$ac_ct_CXX"; then
6153 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6154 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6156 { echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6; }
6161 test -n "$ac_ct_CXX" && break
6164 if test "x$ac_ct_CXX" = x
; then
6167 case $cross_compiling:$ac_tool_warned in
6169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6170 whose name does not start with the host triplet. If you think this
6171 configuration is useful to you, please write to autoconf@gnu.org." >&5
6172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6173 whose name does not start with the host triplet. If you think this
6174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6175 ac_tool_warned
=yes ;;
6183 # Provide some information about the compiler.
6184 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6185 ac_compiler
=`set X $ac_compile; echo $2`
6186 { (ac_try
="$ac_compiler --version >&5"
6188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compiler --version >&5") 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }
6196 { (ac_try="$ac_compiler -v >&5"
6198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6199 *) ac_try_echo
=$ac_try;;
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_compiler -v >&5") 2>&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }
6206 { (ac_try
="$ac_compiler -V >&5"
6208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_compiler -V >&5") 2>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }
6217 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6218 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6219 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6240 rm -f conftest.$ac_objext
6241 if { (ac_try="$ac_compile"
6243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6244 *) ac_try_echo
=$ac_try;;
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_compile") 2>conftest.er1
6249 grep -v '^ *+' conftest.er1
>conftest.err
6251 cat conftest.err
>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6255 { (case "(($ac_try" in
6256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_try") 2>&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (case "(($ac_try" in
6266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6267 *) ac_try_echo
=$ac_try;;
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.
$ac_ext >&5
6282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6283 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6286 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6287 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6288 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6289 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6290 ac_save_CXXFLAGS
=$CXXFLAGS
6291 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6292 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_cxx_g+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6297 ac_cxx_werror_flag
=yes
6300 cat >conftest.
$ac_ext <<_ACEOF
6303 cat confdefs.h
>>conftest.
$ac_ext
6304 cat >>conftest.
$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6315 rm -f conftest.
$ac_objext
6316 if { (ac_try
="$ac_compile"
6318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_compile") 2>conftest.er1
6324 grep -v '^ *+' conftest.er1 >conftest.err
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6332 *) ac_try_echo
=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try
='test -s conftest.$ac_objext'
6340 { (case "(($ac_try" in
6341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_try") 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_prog_cxx_g=yes
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6355 cat >conftest.$ac_ext <<_ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6370 rm -f conftest.$ac_objext
6371 if { (ac_try="$ac_compile"
6373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6374 *) ac_try_echo
=$ac_try;;
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_compile") 2>conftest.er1
6379 grep -v '^ *+' conftest.er1
>conftest.err
6381 cat conftest.err
>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6385 { (case "(($ac_try" in
6386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_try") 2>&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6397 *) ac_try_echo
=$ac_try;;
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.
$ac_ext >&5
6409 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6411 cat >conftest.
$ac_ext <<_ACEOF
6414 cat confdefs.h
>>conftest.
$ac_ext
6415 cat >>conftest.
$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6426 rm -f conftest.
$ac_objext
6427 if { (ac_try
="$ac_compile"
6429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_compile") 2>conftest.er1
6435 grep -v '^ *+' conftest.er1 >conftest.err
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6441 { (case "(($ac_try" in
6442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6443 *) ac_try_echo
=$ac_try;;
6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_try") 2>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try
='test -s conftest.$ac_objext'
6451 { (case "(($ac_try" in
6452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_try") 2>&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_cv_prog_cxx_g=yes
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6477 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6478 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6479 if test "$ac_test_CXXFLAGS" = set; then
6480 CXXFLAGS=$ac_save_CXXFLAGS
6481 elif test $ac_cv_prog_cxx_g = yes; then
6482 if test "$GXX" = yes; then
6488 if test "$GXX" = yes; then
6495 ac_cpp='$CPP $CPPFLAGS'
6496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6502 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6503 if test "${lt_cv_path_NM+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 if test -n "$NM"; then
6507 # Let the user override the test.
6510 lt_nm_to_check="${ac_tool_prefix}nm"
6511 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6512 lt_nm_to_check="$lt_nm_to_check nm"
6514 for lt_tmp_nm in $lt_nm_to_check; do
6515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6516 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6518 test -z "$ac_dir" && ac_dir=.
6519 tmp_nm="$ac_dir/$lt_tmp_nm"
6520 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6521 # Check to see if the nm accepts a BSD-compat flag.
6522 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6523 # nm: unknown option "B" ignored
6524 # Tru64's nm complains that
/dev
/null is an invalid object
file
6525 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6526 */dev
/null
* |
*'Invalid file or object type'*)
6527 lt_cv_path_NM
="$tmp_nm -B"
6531 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6533 lt_cv_path_NM
="$tmp_nm -p"
6537 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6538 continue # so that we can try to find one that supports BSD flags
6547 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6550 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6551 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6556 { echo "$as_me:$LINENO: checking for GNU make" >&5
6557 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6558 if test "${llvm_cv_gnu_make_command+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 llvm_cv_gnu_make_command
=''
6562 for a
in "$MAKE" make gmake gnumake
; do
6563 if test -z "$a" ; then continue ; fi ;
6564 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6566 llvm_cv_gnu_make_command
=$a ;
6571 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6572 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6573 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6577 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6578 echo "${ECHO_T}\"Not found\"" >&6; };
6582 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6583 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6585 if test "$LN_S" = "ln -s"; then
6586 { echo "$as_me:$LINENO: result: yes" >&5
6587 echo "${ECHO_T}yes" >&6; }
6589 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6590 echo "${ECHO_T}no, using $LN_S" >&6; }
6593 # Extract the first word of "cmp", so it can be a program name with args.
6594 set dummy
cmp; ac_word
=$2
6595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6597 if test "${ac_cv_path_CMP+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir
=.
6610 for ac_exec_ext
in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6625 if test -n "$CMP"; then
6626 { echo "$as_me:$LINENO: result: $CMP" >&5
6627 echo "${ECHO_T}$CMP" >&6; }
6629 { echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6; }
6634 # Extract the first word of "cp", so it can be a program name with args.
6635 set dummy
cp; ac_word
=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_CP+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir
=.
6651 for ac_exec_ext
in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6666 if test -n "$CP"; then
6667 { echo "$as_me:$LINENO: result: $CP" >&5
6668 echo "${ECHO_T}$CP" >&6; }
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6675 # Extract the first word of "date", so it can be a program name with args.
6676 set dummy
date; ac_word
=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_path_DATE+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir
=.
6692 for ac_exec_ext
in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6706 DATE
=$ac_cv_path_DATE
6707 if test -n "$DATE"; then
6708 { echo "$as_me:$LINENO: result: $DATE" >&5
6709 echo "${ECHO_T}$DATE" >&6; }
6711 { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6716 # Extract the first word of "find", so it can be a program name with args.
6717 set dummy
find; ac_word
=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_FIND+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir
=.
6733 for ac_exec_ext
in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6747 FIND
=$ac_cv_path_FIND
6748 if test -n "$FIND"; then
6749 { echo "$as_me:$LINENO: result: $FIND" >&5
6750 echo "${ECHO_T}$FIND" >&6; }
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6757 # Extract the first word of "grep", so it can be a program name with args.
6758 set dummy
grep; ac_word
=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_path_GREP+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir
=.
6774 for ac_exec_ext
in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6788 GREP
=$ac_cv_path_GREP
6789 if test -n "$GREP"; then
6790 { echo "$as_me:$LINENO: result: $GREP" >&5
6791 echo "${ECHO_T}$GREP" >&6; }
6793 { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6798 # Extract the first word of "mkdir", so it can be a program name with args.
6799 set dummy mkdir
; ac_word
=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_MKDIR+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir
=.
6815 for ac_exec_ext
in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6829 MKDIR
=$ac_cv_path_MKDIR
6830 if test -n "$MKDIR"; then
6831 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6832 echo "${ECHO_T}$MKDIR" >&6; }
6834 { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6839 # Extract the first word of "mv", so it can be a program name with args.
6840 set dummy
mv; ac_word
=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_MV+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir
=.
6856 for ac_exec_ext
in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
6871 if test -n "$MV"; then
6872 { echo "$as_me:$LINENO: result: $MV" >&5
6873 echo "${ECHO_T}$MV" >&6; }
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6882 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_prog_RANLIB+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 if test -n "$RANLIB"; then
6889 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir
=.
6896 for ac_exec_ext
in '' $ac_executable_extensions; do
6897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6898 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 RANLIB
=$ac_cv_prog_RANLIB
6909 if test -n "$RANLIB"; then
6910 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6911 echo "${ECHO_T}$RANLIB" >&6; }
6913 { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6919 if test -z "$ac_cv_prog_RANLIB"; then
6920 ac_ct_RANLIB
=$RANLIB
6921 # Extract the first word of "ranlib", so it can be a program name with args.
6922 set dummy ranlib
; ac_word
=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 if test -n "$ac_ct_RANLIB"; then
6929 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir
=.
6936 for ac_exec_ext
in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6949 if test -n "$ac_ct_RANLIB"; then
6950 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6951 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6953 { echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6; }
6957 if test "x$ac_ct_RANLIB" = x
; then
6960 case $cross_compiling:$ac_tool_warned in
6962 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6963 whose name does not start with the host triplet. If you think this
6964 configuration is useful to you, please write to autoconf@gnu.org." >&5
6965 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6966 whose name does not start with the host triplet. If you think this
6967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6968 ac_tool_warned
=yes ;;
6970 RANLIB
=$ac_ct_RANLIB
6973 RANLIB
="$ac_cv_prog_RANLIB"
6976 # Extract the first word of "rm", so it can be a program name with args.
6977 set dummy
rm; ac_word
=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_RM+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
6988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir
=.
6993 for ac_exec_ext
in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7008 if test -n "$RM"; then
7009 { echo "$as_me:$LINENO: result: $RM" >&5
7010 echo "${ECHO_T}$RM" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 # Extract the first word of "sed", so it can be a program name with args.
7018 set dummy
sed; ac_word
=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_SED+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir
=.
7034 for ac_exec_ext
in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7049 if test -n "$SED"; then
7050 { echo "$as_me:$LINENO: result: $SED" >&5
7051 echo "${ECHO_T}$SED" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 # Extract the first word of "tar", so it can be a program name with args.
7059 set dummy
tar; ac_word
=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_TAR+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir
=.
7075 for ac_exec_ext
in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7090 if test -n "$TAR"; then
7091 { echo "$as_me:$LINENO: result: $TAR" >&5
7092 echo "${ECHO_T}$TAR" >&6; }
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 # Extract the first word of "pwd", so it can be a program name with args.
7100 set dummy
pwd; ac_word
=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_BINPWD+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir
=.
7116 for ac_exec_ext
in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7130 BINPWD
=$ac_cv_path_BINPWD
7131 if test -n "$BINPWD"; then
7132 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7133 echo "${ECHO_T}$BINPWD" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7141 # Extract the first word of "Graphviz", so it can be a program name with args.
7142 set dummy Graphviz
; ac_word
=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir
=.
7158 for ac_exec_ext
in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7172 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7173 if test -n "$GRAPHVIZ"; then
7174 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7175 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7177 { echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6; }
7182 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7184 cat >>confdefs.h
<<\_ACEOF
7185 #define HAVE_GRAPHVIZ 1
7188 if test "$llvm_cv_os_type" = "MingW" ; then
7189 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7192 cat >>confdefs.h
<<_ACEOF
7193 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7197 # Extract the first word of "dot", so it can be a program name with args.
7198 set dummy dot
; ac_word
=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_path_DOT+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir
=.
7214 for ac_exec_ext
in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7229 if test -n "$DOT"; then
7230 { echo "$as_me:$LINENO: result: $DOT" >&5
7231 echo "${ECHO_T}$DOT" >&6; }
7233 { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7238 if test "$DOT" != "echo dot" ; then
7240 cat >>confdefs.h
<<\_ACEOF
7244 if test "$llvm_cv_os_type" = "MingW" ; then
7245 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7248 cat >>confdefs.h
<<_ACEOF
7249 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7253 # Extract the first word of "fdp", so it can be a program name with args.
7254 set dummy fdp
; ac_word
=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_FDP+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir
=.
7270 for ac_exec_ext
in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7285 if test -n "$FDP"; then
7286 { echo "$as_me:$LINENO: result: $FDP" >&5
7287 echo "${ECHO_T}$FDP" >&6; }
7289 { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7294 if test "$FDP" != "echo fdp" ; then
7296 cat >>confdefs.h
<<\_ACEOF
7300 if test "$llvm_cv_os_type" = "MingW" ; then
7301 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7304 cat >>confdefs.h
<<_ACEOF
7305 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7309 # Extract the first word of "neato", so it can be a program name with args.
7310 set dummy neato
; ac_word
=$2
7311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7313 if test "${ac_cv_path_NEATO+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7325 test -z "$as_dir" && as_dir
=.
7326 for ac_exec_ext
in '' $ac_executable_extensions; do
7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7328 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7340 NEATO
=$ac_cv_path_NEATO
7341 if test -n "$NEATO"; then
7342 { echo "$as_me:$LINENO: result: $NEATO" >&5
7343 echo "${ECHO_T}$NEATO" >&6; }
7345 { echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6; }
7350 if test "$NEATO" != "echo neato" ; then
7352 cat >>confdefs.h
<<\_ACEOF
7353 #define HAVE_NEATO 1
7356 if test "$llvm_cv_os_type" = "MingW" ; then
7357 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7360 cat >>confdefs.h
<<_ACEOF
7361 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7365 # Extract the first word of "twopi", so it can be a program name with args.
7366 set dummy twopi
; ac_word
=$2
7367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369 if test "${ac_cv_path_TWOPI+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir
=.
7382 for ac_exec_ext
in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7396 TWOPI
=$ac_cv_path_TWOPI
7397 if test -n "$TWOPI"; then
7398 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7399 echo "${ECHO_T}$TWOPI" >&6; }
7401 { echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6; }
7406 if test "$TWOPI" != "echo twopi" ; then
7408 cat >>confdefs.h
<<\_ACEOF
7409 #define HAVE_TWOPI 1
7412 if test "$llvm_cv_os_type" = "MingW" ; then
7413 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7416 cat >>confdefs.h
<<_ACEOF
7417 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7421 # Extract the first word of "circo", so it can be a program name with args.
7422 set dummy circo
; ac_word
=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_path_CIRCO+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir
=.
7438 for ac_exec_ext
in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7452 CIRCO
=$ac_cv_path_CIRCO
7453 if test -n "$CIRCO"; then
7454 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7455 echo "${ECHO_T}$CIRCO" >&6; }
7457 { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7462 if test "$CIRCO" != "echo circo" ; then
7464 cat >>confdefs.h
<<\_ACEOF
7465 #define HAVE_CIRCO 1
7468 if test "$llvm_cv_os_type" = "MingW" ; then
7469 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7472 cat >>confdefs.h
<<_ACEOF
7473 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7477 for ac_prog
in gv gsview32
7479 # Extract the first word of "$ac_prog", so it can be a program name with args.
7480 set dummy
$ac_prog; ac_word
=$2
7481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483 if test "${ac_cv_path_GV+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir
=.
7496 for ac_exec_ext
in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 if test -n "$GV"; then
7511 { echo "$as_me:$LINENO: result: $GV" >&5
7512 echo "${ECHO_T}$GV" >&6; }
7514 { echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6; }
7519 test -n "$GV" && break
7521 test -n "$GV" || GV
="echo gv"
7523 if test "$GV" != "echo gv" ; then
7525 cat >>confdefs.h
<<\_ACEOF
7529 if test "$llvm_cv_os_type" = "MingW" ; then
7530 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7533 cat >>confdefs.h
<<_ACEOF
7534 #define LLVM_PATH_GV "$GV${EXEEXT}"
7538 # Extract the first word of "dotty", so it can be a program name with args.
7539 set dummy dotty
; ac_word
=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_path_DOTTY+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir
=.
7555 for ac_exec_ext
in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7569 DOTTY
=$ac_cv_path_DOTTY
7570 if test -n "$DOTTY"; then
7571 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7572 echo "${ECHO_T}$DOTTY" >&6; }
7574 { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7579 if test "$DOTTY" != "echo dotty" ; then
7581 cat >>confdefs.h
<<\_ACEOF
7582 #define HAVE_DOTTY 1
7585 if test "$llvm_cv_os_type" = "MingW" ; then
7586 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7589 cat >>confdefs.h
<<_ACEOF
7590 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7596 # Extract the first word of "perl", so it can be a program name with args.
7597 set dummy perl
; ac_word
=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_path_PERL+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir
=.
7613 for ac_exec_ext
in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7627 PERL
=$ac_cv_path_PERL
7628 if test -n "$PERL"; then
7629 { echo "$as_me:$LINENO: result: $PERL" >&5
7630 echo "${ECHO_T}$PERL" >&6; }
7632 { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7637 if test "$PERL" != "none"; then
7638 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7639 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7640 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7641 { echo "$as_me:$LINENO: result: yes" >&5
7642 echo "${ECHO_T}yes" >&6; }
7645 { echo "$as_me:$LINENO: result: not found" >&5
7646 echo "${ECHO_T}not found" >&6; }
7651 if test x
"$PERL" = xnone
; then
7654 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7655 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7656 { (exit 1); exit 1; }; }
7662 # Find a good install program. We prefer a C program (faster),
7663 # so one script is as good as another. But avoid the broken or
7664 # incompatible versions:
7665 # SysV /etc/install, /usr/sbin/install
7666 # SunOS /usr/etc/install
7667 # IRIX /sbin/install
7669 # AmigaOS /C/install, which installs bootblocks on floppy discs
7670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7673 # OS/2's system install, which has a completely different semantic
7674 # ./install, which can be erroneously created by make from ./install.sh.
7675 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7676 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7677 if test -z "$INSTALL"; then
7678 if test "${ac_cv_path_install+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir
=.
7686 # Account for people who put trailing slashes in PATH elements.
7688 .
/ | .
// |
/cC
/* | \
7689 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7690 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7693 # OSF1 and SCO ODT 3.0 have their own names for install.
7694 # Don't use installbsd from OSF since it installs stuff as root
7696 for ac_prog
in ginstall scoinst
install; do
7697 for ac_exec_ext
in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7699 if test $ac_prog = install &&
7700 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7701 # AIX install. It has an incompatible calling convention.
7703 elif test $ac_prog = install &&
7704 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7705 # program-specific install script used by HP pwplus--don't use.
7708 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7721 if test "${ac_cv_path_install+set}" = set; then
7722 INSTALL
=$ac_cv_path_install
7724 # As a last resort, use the slow shell script. Don't cache a
7725 # value for INSTALL within a source directory, because that will
7726 # break other packages using the cache if that directory is
7727 # removed, or if the value is a relative name.
7728 INSTALL
=$ac_install_sh
7731 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7732 echo "${ECHO_T}$INSTALL" >&6; }
7734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7735 # It thinks the first close brace ends the variable substitution.
7736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7740 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7743 # Extract the first word of "bzip2", so it can be a program name with args.
7744 set dummy
bzip2; ac_word
=$2
7745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7747 if test "${ac_cv_path_BZIP2+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir
=.
7760 for ac_exec_ext
in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 BZIP2
=$ac_cv_path_BZIP2
7774 if test -n "$BZIP2"; then
7775 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7776 echo "${ECHO_T}$BZIP2" >&6; }
7778 { echo "$as_me:$LINENO: result: no" >&5
7779 echo "${ECHO_T}no" >&6; }
7783 # Extract the first word of "doxygen", so it can be a program name with args.
7784 set dummy doxygen
; ac_word
=$2
7785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7787 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir
=.
7800 for ac_exec_ext
in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 DOXYGEN
=$ac_cv_path_DOXYGEN
7814 if test -n "$DOXYGEN"; then
7815 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7816 echo "${ECHO_T}$DOXYGEN" >&6; }
7818 { echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6; }
7823 # Extract the first word of "groff", so it can be a program name with args.
7824 set dummy
groff; ac_word
=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_path_GROFF+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7839 test -z "$as_dir" && as_dir
=.
7840 for ac_exec_ext
in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 GROFF
=$ac_cv_path_GROFF
7854 if test -n "$GROFF"; then
7855 { echo "$as_me:$LINENO: result: $GROFF" >&5
7856 echo "${ECHO_T}$GROFF" >&6; }
7858 { echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6; }
7863 # Extract the first word of "gzip", so it can be a program name with args.
7864 set dummy
gzip; ac_word
=$2
7865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867 if test "${ac_cv_path_GZIP+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7879 test -z "$as_dir" && as_dir
=.
7880 for ac_exec_ext
in '' $ac_executable_extensions; do
7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7882 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 GZIP
=$ac_cv_path_GZIP
7894 if test -n "$GZIP"; then
7895 { echo "$as_me:$LINENO: result: $GZIP" >&5
7896 echo "${ECHO_T}$GZIP" >&6; }
7898 { echo "$as_me:$LINENO: result: no" >&5
7899 echo "${ECHO_T}no" >&6; }
7903 # Extract the first word of "pod2html", so it can be a program name with args.
7904 set dummy pod2html
; ac_word
=$2
7905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907 if test "${ac_cv_path_POD2HTML+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7919 test -z "$as_dir" && as_dir
=.
7920 for ac_exec_ext
in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 POD2HTML
=$ac_cv_path_POD2HTML
7934 if test -n "$POD2HTML"; then
7935 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7936 echo "${ECHO_T}$POD2HTML" >&6; }
7938 { echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6; }
7943 # Extract the first word of "pod2man", so it can be a program name with args.
7944 set dummy pod2man
; ac_word
=$2
7945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7947 if test "${ac_cv_path_POD2MAN+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir
=.
7960 for ac_exec_ext
in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 POD2MAN
=$ac_cv_path_POD2MAN
7974 if test -n "$POD2MAN"; then
7975 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7976 echo "${ECHO_T}$POD2MAN" >&6; }
7978 { echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6; }
7983 # Extract the first word of "runtest", so it can be a program name with args.
7984 set dummy runtest
; ac_word
=$2
7985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7987 if test "${ac_cv_path_RUNTEST+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
7995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7999 test -z "$as_dir" && as_dir
=.
8000 for ac_exec_ext
in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 RUNTEST
=$ac_cv_path_RUNTEST
8014 if test -n "$RUNTEST"; then
8015 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8016 echo "${ECHO_T}$RUNTEST" >&6; }
8018 { echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6; }
8025 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8026 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8028 # Check whether --with-tclinclude was given.
8029 if test "${with_tclinclude+set}" = set; then
8030 withval
=$with_tclinclude; with_tclinclude
=${withval}
8035 if test "${ac_cv_path_tclsh+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 if test x
"${with_tclinclude}" != x
; then
8040 if test -f ${with_tclinclude}/tclsh
; then
8041 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8042 elif test -f ${with_tclinclude}/src
/tclsh
; then
8043 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8045 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8046 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8047 { (exit 1); exit 1; }; }
8051 if test x
"${ac_cv_path_tclsh}" = x
; then
8052 { echo "$as_me:$LINENO: result: none" >&5
8053 echo "${ECHO_T}none" >&6; }
8054 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
8056 # Extract the first word of "$ac_prog", so it can be a program name with args.
8057 set dummy
$ac_prog; ac_word
=$2
8058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8060 if test "${ac_cv_path_TCLSH+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8072 test -z "$as_dir" && as_dir
=.
8073 for ac_exec_ext
in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8075 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 TCLSH
=$ac_cv_path_TCLSH
8087 if test -n "$TCLSH"; then
8088 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8089 echo "${ECHO_T}$TCLSH" >&6; }
8091 { echo "$as_me:$LINENO: result: no" >&5
8092 echo "${ECHO_T}no" >&6; }
8096 test -n "$TCLSH" && break
8099 if test x
"${TCLSH}" = x
; then
8100 ac_cv_path_tclsh
='';
8102 ac_cv_path_tclsh
="${TCLSH}";
8105 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8106 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8107 TCLSH="${ac_cv_path_tclsh}"
8113 # Extract the first word of "zip", so it can be a program name with args.
8114 set dummy zip; ac_word=$2
8115 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8116 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8117 if test "${ac_cv_path_ZIP+set}" = set; then
8118 echo $ECHO_N "(cached
) $ECHO_C" >&6
8122 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8133 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8144 if test -n "$ZIP"; then
8145 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8146 echo "${ECHO_T}$ZIP" >&6; }
8148 { echo "$as_me:$LINENO: result
: no
" >&5
8149 echo "${ECHO_T}no
" >&6; }
8153 for ac_prog in ocamlc
8155 # Extract the first word of "$ac_prog", so it can be a program name with args.
8156 set dummy $ac_prog; ac_word=$2
8157 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8158 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8159 if test "${ac_cv_path_OCAMLC+set}" = set; then
8160 echo $ECHO_N "(cached
) $ECHO_C" >&6
8164 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8175 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8185 OCAMLC=$ac_cv_path_OCAMLC
8186 if test -n "$OCAMLC"; then
8187 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8188 echo "${ECHO_T}$OCAMLC" >&6; }
8190 { echo "$as_me:$LINENO: result
: no
" >&5
8191 echo "${ECHO_T}no
" >&6; }
8195 test -n "$OCAMLC" && break
8198 for ac_prog in ocamlopt
8200 # Extract the first word of "$ac_prog", so it can be a program name with args.
8201 set dummy $ac_prog; ac_word=$2
8202 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8203 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8204 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8205 echo $ECHO_N "(cached
) $ECHO_C" >&6
8209 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8220 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8230 OCAMLOPT=$ac_cv_path_OCAMLOPT
8231 if test -n "$OCAMLOPT"; then
8232 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8233 echo "${ECHO_T}$OCAMLOPT" >&6; }
8235 { echo "$as_me:$LINENO: result
: no
" >&5
8236 echo "${ECHO_T}no
" >&6; }
8240 test -n "$OCAMLOPT" && break
8243 for ac_prog in ocamldep
8245 # Extract the first word of "$ac_prog", so it can be a program name with args.
8246 set dummy $ac_prog; ac_word=$2
8247 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8248 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8249 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8250 echo $ECHO_N "(cached
) $ECHO_C" >&6
8254 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8265 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8275 OCAMLDEP=$ac_cv_path_OCAMLDEP
8276 if test -n "$OCAMLDEP"; then
8277 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8278 echo "${ECHO_T}$OCAMLDEP" >&6; }
8280 { echo "$as_me:$LINENO: result
: no
" >&5
8281 echo "${ECHO_T}no
" >&6; }
8285 test -n "$OCAMLDEP" && break
8288 for ac_prog in ocamldoc
8290 # Extract the first word of "$ac_prog", so it can be a program name with args.
8291 set dummy $ac_prog; ac_word=$2
8292 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8293 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8294 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8295 echo $ECHO_N "(cached
) $ECHO_C" >&6
8299 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8310 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8320 OCAMLDOC=$ac_cv_path_OCAMLDOC
8321 if test -n "$OCAMLDOC"; then
8322 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8323 echo "${ECHO_T}$OCAMLDOC" >&6; }
8325 { echo "$as_me:$LINENO: result
: no
" >&5
8326 echo "${ECHO_T}no
" >&6; }
8330 test -n "$OCAMLDOC" && break
8333 for ac_prog in gas as
8335 # Extract the first word of "$ac_prog", so it can be a program name with args.
8336 set dummy $ac_prog; ac_word=$2
8337 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8338 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8339 if test "${ac_cv_path_GAS+set}" = set; then
8340 echo $ECHO_N "(cached
) $ECHO_C" >&6
8344 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8355 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8366 if test -n "$GAS"; then
8367 { echo "$as_me:$LINENO: result
: $GAS" >&5
8368 echo "${ECHO_T}$GAS" >&6; }
8370 { echo "$as_me:$LINENO: result
: no
" >&5
8371 echo "${ECHO_T}no
" >&6; }
8375 test -n "$GAS" && break
8379 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8380 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8381 if test "${llvm_cv_link_use_r+set}" = set; then
8382 echo $ECHO_N "(cached
) $ECHO_C" >&6
8385 ac_cpp='$CPP $CPPFLAGS'
8386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8391 CFLAGS="$CFLAGS -Wl,-R.
"
8392 cat >conftest.$ac_ext <<_ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8402 int main() { return 0; }
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (ac_try="$ac_link"
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_link") 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_try") 2>&5
8429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8430 (exit $ac_status); }; } &&
8431 { ac_try='test -s conftest$ac_exeext'
8432 { (case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_try") 2>&5
8439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 llvm_cv_link_use_r=yes
8443 echo "$as_me: failed program was
:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 llvm_cv_link_use_r=no
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8453 ac_cpp='$CPP $CPPFLAGS'
8454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8460 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8461 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8462 if test "$llvm_cv_link_use_r" = yes ; then
8464 cat >>confdefs.h <<\_ACEOF
8465 #define HAVE_LINK_R 1
8471 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-export-dynamic option
" >&5
8472 echo $ECHO_N "checking
for compiler
-Wl,-export-dynamic option...
$ECHO_C" >&6; }
8473 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8474 echo $ECHO_N "(cached
) $ECHO_C" >&6
8477 ac_cpp='$CPP $CPPFLAGS'
8478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8494 int main() { return 0; }
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (ac_try="$ac_link"
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_link") 2>conftest.er1
8508 grep -v '^ *+' conftest.er1 >conftest.err
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8514 { (case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_try") 2>&5
8521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8522 (exit $ac_status); }; } &&
8523 { ac_try='test -s conftest$ac_exeext'
8524 { (case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_try") 2>&5
8531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8532 (exit $ac_status); }; }; then
8533 llvm_cv_link_use_export_dynamic=yes
8535 echo "$as_me: failed program was
:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 llvm_cv_link_use_export_dynamic=no
8541 rm -f core conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8545 ac_cpp='$CPP $CPPFLAGS'
8546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8552 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_export_dynamic" >&5
8553 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8554 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_LINK_EXPORT_DYNAMIC 1
8565 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8566 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8567 if test "${ac_cv_c_const+set}" = set; then
8568 echo $ECHO_N "(cached
) $ECHO_C" >&6
8570 cat >conftest.$ac_ext <<_ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8580 /* FIXME: Include the comments suggested by Paul. */
8582 /* Ultrix mips cc rejects this. */
8583 typedef int charset[2];
8585 /* SunOS 4.1.1 cc rejects this. */
8586 char const *const *ccp;
8588 /* NEC SVR4.0.2 mips cc rejects this. */
8589 struct point {int x, y;};
8590 static struct point const zero = {0,0};
8591 /* AIX XL C 1.02.0.0 rejects this.
8592 It does not let you subtract one const X* pointer from another in
8593 an arm of an if-expression whose if-part is not a constant
8595 const char *g = "string
";
8596 ccp = &g + (g ? g-g : 0);
8597 /* HPUX 7.0 cc rejects these. */
8600 ccp = (char const *const *) p;
8601 { /* SCO 3.2v4 cc rejects this. */
8603 char const *s = 0 ? (char *) 0 : (char const *) 0;
8608 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8610 const int *foo = &x[0];
8613 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8614 typedef const int *iptr;
8618 { /* AIX XL C 1.02.0.0 rejects this saying
8619 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8620 struct s { int j; const int *ap[3]; };
8621 struct s *b; b->j = 5;
8623 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8627 return !x[0] && !zero.x;
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_compile") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_try") 2>&5
8666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8667 (exit $ac_status); }; }; then
8670 echo "$as_me: failed program was
:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8679 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8680 if test $ac_cv_c_const = no; then
8682 cat >>confdefs.h <<\_ACEOF
8694 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8695 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8696 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8697 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8698 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8699 echo $ECHO_N "(cached
) $ECHO_C" >&6
8701 cat >conftest.$ac_ext <<_ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 #include <sys/types.h>
8719 rm -f conftest.$ac_objext
8720 if { (ac_try="$ac_compile"
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_compile") 2>conftest.er1
8728 grep -v '^ *+' conftest.er1 >conftest.err
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8734 { (case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_try") 2>&5
8741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest.$ac_objext'
8744 { (case "(($ac_try" in
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8749 (eval "$ac_try") 2>&5
8751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 eval "$as_ac_Header=yes"
8755 echo "$as_me: failed program was
:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 eval "$as_ac_Header=no
"
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 ac_res=`eval echo '${'$as_ac_Header'}'`
8764 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8765 echo "${ECHO_T}$ac_res" >&6; }
8766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8767 cat >>confdefs.h <<_ACEOF
8768 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8771 ac_header_dirent=$ac_hdr; break
8775 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8776 if test $ac_header_dirent = dirent.h; then
8777 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8778 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8779 if test "${ac_cv_search_opendir+set}" = set; then
8780 echo $ECHO_N "(cached
) $ECHO_C" >&6
8782 ac_func_search_save_LIBS=$LIBS
8783 cat >conftest.$ac_ext <<_ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8790 /* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
8805 for ac_lib in '' dir; do
8806 if test -z "$ac_lib"; then
8807 ac_res="none required
"
8810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (ac_try="$ac_link"
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_link") 2>conftest.er1
8821 grep -v '^ *+' conftest.er1 >conftest.err
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8827 { (case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_try") 2>&5
8834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8835 (exit $ac_status); }; } &&
8836 { ac_try='test -s conftest$ac_exeext'
8837 { (case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_try") 2>&5
8844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8845 (exit $ac_status); }; }; then
8846 ac_cv_search_opendir=$ac_res
8848 echo "$as_me: failed program was
:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8854 rm -f core conftest.err conftest.$ac_objext \
8856 if test "${ac_cv_search_opendir+set}" = set; then
8860 if test "${ac_cv_search_opendir+set}" = set; then
8863 ac_cv_search_opendir=no
8866 LIBS=$ac_func_search_save_LIBS
8868 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8869 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8870 ac_res=$ac_cv_search_opendir
8871 if test "$ac_res" != no; then
8872 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8877 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8878 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8879 if test "${ac_cv_search_opendir+set}" = set; then
8880 echo $ECHO_N "(cached
) $ECHO_C" >&6
8882 ac_func_search_save_LIBS=$LIBS
8883 cat >conftest.$ac_ext <<_ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8890 /* Override any GCC internal prototype to avoid an error.
8891 Use char because int might match the return type of a GCC
8892 builtin and then its argument prototype would still apply. */
8905 for ac_lib in '' x; do
8906 if test -z "$ac_lib"; then
8907 ac_res="none required
"
8910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_link") 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927 { (case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_try") 2>&5
8934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_try") 2>&5
8944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946 ac_cv_search_opendir=$ac_res
8948 echo "$as_me: failed program was
:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8954 rm -f core conftest.err conftest.$ac_objext \
8956 if test "${ac_cv_search_opendir+set}" = set; then
8960 if test "${ac_cv_search_opendir+set}" = set; then
8963 ac_cv_search_opendir=no
8966 LIBS=$ac_func_search_save_LIBS
8968 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8969 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8970 ac_res=$ac_cv_search_opendir
8971 if test "$ac_res" != no; then
8972 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8979 for ac_header in dlfcn.h
8981 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8982 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8983 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8984 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8985 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8986 echo $ECHO_N "(cached
) $ECHO_C" >&6
8988 ac_res=`eval echo '${'$as_ac_Header'}'`
8989 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8990 echo "${ECHO_T}$ac_res" >&6; }
8992 # Is the header compilable?
8993 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8994 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8995 cat >conftest.$ac_ext <<_ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 $ac_includes_default
9002 #include <$ac_header>
9004 rm -f conftest.$ac_objext
9005 if { (ac_try="$ac_compile"
9007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008 *) ac_try_echo=$ac_try;;
9010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9011 (eval "$ac_compile") 2>conftest.er1
9013 grep -v '^ *+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9019 { (case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_try") 2>&5
9026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9027 (exit $ac_status); }; } &&
9028 { ac_try='test -s conftest.$ac_objext'
9029 { (case "(($ac_try" in
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_try") 2>&5
9036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 ac_header_compiler=yes
9040 echo "$as_me: failed program was
:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9043 ac_header_compiler=no
9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9048 echo "${ECHO_T}$ac_header_compiler" >&6; }
9050 # Is the header present?
9051 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9052 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9053 cat >conftest.$ac_ext <<_ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 #include <$ac_header>
9061 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9069 grep -v '^ *+' conftest.er1 >conftest.err
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9073 (exit $ac_status); } >/dev/null; then
9074 if test -s conftest.err; then
9075 ac_cpp_err=$ac_c_preproc_warn_flag
9076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9083 if test -z "$ac_cpp_err"; then
9084 ac_header_preproc=yes
9086 echo "$as_me: failed program was
:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_header_preproc=no
9092 rm -f conftest.err conftest.$ac_ext
9093 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9094 echo "${ECHO_T}$ac_header_preproc" >&6; }
9096 # So? What about this header?
9097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9099 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9100 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9101 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9103 ac_header_preproc=yes
9106 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9107 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9108 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9109 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9110 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9111 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9112 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9113 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9114 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9116 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9117 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9119 ## ----------------------------------- ##
9120 ## Report this to llvmbugs@cs.uiuc.edu ##
9121 ## ----------------------------------- ##
9123 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9126 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9127 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9128 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9129 echo $ECHO_N "(cached
) $ECHO_C" >&6
9131 eval "$as_ac_Header=\
$ac_header_preproc"
9133 ac_res=`eval echo '${'$as_ac_Header'}'`
9134 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9135 echo "${ECHO_T}$ac_res" >&6; }
9138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9147 # Check whether --enable-ltdl-install was given.
9148 if test "${enable_ltdl_install+set}" = set; then
9149 enableval=$enable_ltdl_install;
9155 if test x"${enable_ltdl_install-no}" != xno; then
9157 INSTALL_LTDL_FALSE='#'
9159 INSTALL_LTDL_TRUE='#'
9165 if test x"${enable_ltdl_convenience-no}" != xno; then
9166 CONVENIENCE_LTDL_TRUE=
9167 CONVENIENCE_LTDL_FALSE='#'
9169 CONVENIENCE_LTDL_TRUE='#'
9170 CONVENIENCE_LTDL_FALSE=
9174 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
9175 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
9177 libname_spec='lib$name'
9185 shlibpath_overrides_runpath=unknown
9187 dynamic_linker="$host_os ld.so
"
9188 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
9189 if test "$GCC" = yes; then
9190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9192 # if the path contains ";" then we assume it to be the separator
9193 # otherwise default to the standard path separator (i.e. ":") - it is
9194 # assumed that no part of a normal pathname contains ";" but that should
9195 # okay in the real world where ";" in dirpaths is itself problematic.
9196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9201 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
9203 need_lib_prefix=unknown
9204 hardcode_into_libs=no
9206 # when you set need_version to no, make sure it does not cause -set_version
9207 # flags to be left without arguments
9208 need_version=unknown
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9214 shlibpath_var=LIBPATH
9216 # AIX 3 has no versioning support, so we append a major version to the name.
9217 soname_spec='${libname}${release}${shared_ext}$major'
9224 hardcode_into_libs=yes
9225 if test "$host_cpu" = ia64; then
9226 # AIX 5 supports IA64
9227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9228 shlibpath_var=LD_LIBRARY_PATH
9230 # With GCC up to 2.95.x, collect2 would create an import file
9231 # for dependence libraries. The import file would start with
9232 # the line `#! .'. This would cause the generated library to
9233 # depend on `.', always an invalid library. This was fixed in
9234 # development snapshots of GCC prior to 3.0.
9236 aix4 | aix4.[01] | aix4.[01].*)
9237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9247 # soname into executable. Probably we can add versioning support to
9248 # collect2, so additional links can be useful in future.
9249 if test "$aix_use_runtimelinking" = yes; then
9250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9251 # instead of lib<name>.a to let people know that these are not
9252 # typical AIX shared libraries.
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255 # We preserve .a as extension for shared libraries through AIX4.2
9256 # and later when we are not doing run time linking.
9257 library_names_spec='${libname}${release}.a $libname.a'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LIBPATH
9265 library_names_spec='$libname.ixlibrary $libname.a'
9266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9267 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'
9271 library_names_spec='${libname}${shared_ext}'
9272 dynamic_linker="$host_os ld.so
"
9273 shlibpath_var=LIBRARY_PATH
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9284 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9285 # the default ld.so.conf also contains /usr/contrib/lib and
9286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9287 # libtool to hard-code these into programs
9290 cygwin* | mingw* | pw32*)
9291 version_type=windows
9296 case $GCC,$host_os in
9297 yes,cygwin* | yes,mingw* | yes,pw32*)
9298 library_names_spec='$libname.dll.a'
9299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9300 postinstall_cmds='base_file=`basename \${file}`~
9301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9302 dldir=$destdir/`dirname \$dlpath`~
9303 test -d \$dldir || mkdir -p \$dldir~
9304 $install_prog $dir/$dlname \$dldir/$dlname~
9305 chmod a+x \$dldir/$dlname'
9306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9307 dlpath=$dir/\$dldll~
9309 shlibpath_overrides_runpath=yes
9313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9315 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9318 # MinGW DLLs use traditional 'lib' prefix
9319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9321 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9322 # It is most probably a Windows format PATH printed by
9323 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9324 # path with ; separators, and with drive letters. We can handle the
9325 # drive letters (cygwin fileutils understands them), so leave them,
9326 # especially as we might pass files found there to a mingw objdump,
9327 # which wouldn't understand a cygwinified path. Ahh.
9328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9334 # pw32 DLLs use 'pw' prefix rather than 'lib'
9335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9344 dynamic_linker='Win32 ld.exe'
9345 # FIXME: first we should search . and the directory the executable is in
9349 darwin* | rhapsody*)
9350 dynamic_linker="$host_os dyld
"
9354 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9355 soname_spec='${libname}${release}${major}$shared_ext'
9356 shlibpath_overrides_runpath=yes
9357 shlibpath_var=DYLD_LIBRARY_PATH
9358 shrext_cmds='.dylib'
9359 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9360 if test "$GCC" = yes; then
9361 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
"`
9363 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 shlibpath_var=LD_LIBRARY_PATH
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=no
9389 hardcode_into_libs=yes
9390 dynamic_linker='GNU ld.so'
9393 freebsd* | dragonfly*)
9394 # DragonFly does not have aout. When/if they implement a new
9395 # versioning mechanism, adjust this.
9396 if test -x /usr/bin/objformat; then
9397 objformat=`/usr/bin/objformat`
9400 freebsd[123]*) objformat=aout ;;
9404 version_type=freebsd-$objformat
9405 case $version_type in
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9416 shlibpath_var=LD_LIBRARY_PATH
9419 shlibpath_overrides_runpath=yes
9421 freebsd3.[01]* | freebsdelf3.[01]*)
9422 shlibpath_overrides_runpath=yes
9423 hardcode_into_libs=yes
9425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9427 shlibpath_overrides_runpath=no
9428 hardcode_into_libs=yes
9430 freebsd*) # from 4.6 on
9431 shlibpath_overrides_runpath=yes
9432 hardcode_into_libs=yes
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9442 soname_spec='${libname}${release}${shared_ext}$major'
9443 shlibpath_var=LD_LIBRARY_PATH
9444 hardcode_into_libs=yes
9447 hpux9* | hpux10* | hpux11*)
9448 # Give a soname corresponding to the major version so that dld.sl refuses to
9449 # link against other versions.
9456 hardcode_into_libs=yes
9457 dynamic_linker="$host_os dld.so
"
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 if test "X
$HPUX_IA64_MODE" = X32; then
9463 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9465 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9471 hardcode_into_libs=yes
9472 dynamic_linker="$host_os dld.sl
"
9473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9482 dynamic_linker="$host_os dld.sl
"
9483 shlibpath_var=SHLIB_PATH
9484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9490 postinstall_cmds='chmod 555 $lib'
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=no
9502 hardcode_into_libs=yes
9505 irix5* | irix6* | nonstopux*)
9507 nonstopux*) version_type=nonstopux ;;
9509 if test "$lt_cv_prog_gnu_ld" = yes; then
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9520 irix5* | nonstopux*)
9524 case $LD in # libtool.m4 will add one of these switches to LD
9525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9526 libsuff= shlibsuff= libmagic=32-bit;;
9527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9528 libsuff=32 shlibsuff=N32 libmagic=N32;;
9529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9531 *) libsuff= shlibsuff= libmagic=never-match;;
9535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9536 shlibpath_overrides_runpath=no
9537 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9538 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9539 hardcode_into_libs=yes
9542 # No shared lib support for Linux oldld, aout, or coff.
9543 linux*oldld* | linux*aout* | linux*coff*)
9547 # This must be Linux ELF.
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 shlibpath_overrides_runpath=no
9557 # This implies no fast_install, which is unacceptable.
9558 # Some rework will be needed to allow for fast_install
9559 # before this can be enabled.
9560 hardcode_into_libs=yes
9562 # Append ld.so.conf contents to the search path
9563 if test -f /etc/ld.so.conf; then
9564 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' ' '`
9565 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9568 # We used to test for /lib/ld.so.1 and disable shared libraries on
9569 # powerpc, because MkLinux only supported shared libraries with the
9570 # GNU dynamic linker. Since this was broken with cross compilers,
9571 # most powerpc-linux boxes support dynamic linking these days and
9572 # people can always --disable-shared, the test was removed, and we
9573 # assume the GNU/Linux dynamic linker is in use.
9574 dynamic_linker='GNU/Linux ld.so'
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=no
9585 hardcode_into_libs=yes
9586 dynamic_linker='GNU ld.so'
9593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9595 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9596 dynamic_linker='NetBSD (a.out) ld.so'
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 dynamic_linker='NetBSD ld.elf_so'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 shlibpath_overrides_runpath=yes
9604 hardcode_into_libs=yes
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610 shlibpath_var=LD_LIBRARY_PATH
9611 shlibpath_overrides_runpath=yes
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619 soname_spec='${libname}${release}${shared_ext}$major'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=yes
9626 sys_lib_dlsearch_path_spec="/usr
/lib
"
9628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9631 *) need_version=no ;;
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9634 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9638 openbsd2.[89] | openbsd2.[89].*)
9639 shlibpath_overrides_runpath=no
9642 shlibpath_overrides_runpath=yes
9646 shlibpath_overrides_runpath=yes
9651 libname_spec='$name'
9654 library_names_spec='$libname${shared_ext} $libname.a'
9655 dynamic_linker='OS/2 ld.exe'
9656 shlibpath_var=LIBPATH
9659 osf3* | osf4* | osf5*)
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675 soname_spec='${libname}${release}${shared_ext}$major'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 shlibpath_overrides_runpath=yes
9678 hardcode_into_libs=yes
9679 # ldd complains unless libraries are executable
9680 postinstall_cmds='chmod +x $lib'
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9686 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 shlibpath_overrides_runpath=yes
9689 if test "$with_gnu_ld" = yes; then
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 case $host_vendor in
9702 shlibpath_overrides_runpath=no
9704 export_dynamic_flag_spec='${wl}-Blargedynsym'
9705 runpath_var=LD_RUN_PATH
9713 shlibpath_overrides_runpath=no
9714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9720 if test -d /usr/nec ;then
9722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9723 soname_spec='$libname${shared_ext}.$major'
9724 shlibpath_var=LD_LIBRARY_PATH
9728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9729 version_type=freebsd-elf
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 hardcode_into_libs=yes
9736 if test "$with_gnu_ld" = yes; then
9737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9738 shlibpath_overrides_runpath=no
9740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9741 shlibpath_overrides_runpath=yes
9744 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9748 sys_lib_dlsearch_path_spec='/usr/lib'
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 shlibpath_var=LD_LIBRARY_PATH
9762 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9763 echo "${ECHO_T}$dynamic_linker" >&6; }
9764 test "$dynamic_linker" = no && can_build_shared=no
9766 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9767 if test "$GCC" = yes; then
9768 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9772 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9773 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9774 if test "${libltdl_cv_shlibext+set}" = set; then
9775 echo $ECHO_N "(cached
) $ECHO_C" >&6
9779 eval libltdl_cv_shlibext=$shrext_cmds
9782 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9783 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9784 if test -n "$libltdl_cv_shlibext"; then
9786 cat >>confdefs.h <<_ACEOF
9787 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9793 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9794 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9795 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9796 echo $ECHO_N "(cached
) $ECHO_C" >&6
9798 libltdl_cv_shlibpath_var="$shlibpath_var"
9800 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9801 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9802 if test -n "$libltdl_cv_shlibpath_var"; then
9804 cat >>confdefs.h <<_ACEOF
9805 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9811 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9812 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9813 if test "${libltdl_cv_sys_search_path+set}" = set; then
9814 echo $ECHO_N "(cached
) $ECHO_C" >&6
9816 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9818 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9819 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9820 if test -n "$libltdl_cv_sys_search_path"; then
9822 for dir in $libltdl_cv_sys_search_path; do
9823 if test -z "$sys_search_path"; then
9824 sys_search_path="$dir"
9826 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9830 cat >>confdefs.h <<_ACEOF
9831 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9836 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9837 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9838 if test "${libltdl_cv_objdir+set}" = set; then
9839 echo $ECHO_N "(cached
) $ECHO_C" >&6
9841 libltdl_cv_objdir="$objdir"
9842 if test -n "$objdir"; then
9845 rm -f .libs 2>/dev/null
9846 mkdir .libs 2>/dev/null
9847 if test -d .libs; then
9848 libltdl_cv_objdir=.libs
9850 # MS-DOS does not allow filenames that begin with a dot.
9851 libltdl_cv_objdir=_libs
9853 rmdir .libs 2>/dev/null
9857 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9858 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9860 cat >>confdefs.h <<_ACEOF
9861 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9869 # Check for command to grab the raw symbol name followed by C symbol from nm.
9870 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9871 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9872 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9873 echo $ECHO_N "(cached
) $ECHO_C" >&6
9876 # These are sane defaults that work on at least a few old systems.
9877 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9879 # Character class describing NM global symbol codes.
9880 symcode='[BCDEGRST]'
9882 # Regexp to match symbols that can be accessed directly from C.
9883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9885 # Transform an extracted symbol line into a proper C declaration
9886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9888 # Transform an extracted symbol line into symbol name and symbol address
9889 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'"
9891 # Define system-specific variables.
9896 cygwin* | mingw* | pw32*)
9897 symcode='[ABCDGISTW]'
9899 hpux*) # Its linker distinguishes data from code symbols
9900 if test "$host_cpu" = ia64; then
9901 symcode='[ABCDEGRST]'
9903 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9904 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'"
9907 if test "$host_cpu" = ia64; then
9908 symcode='[ABCDGIRSTW]'
9909 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9910 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'"
9914 symcode='[BCDEGRST]'
9917 symcode='[BCDEGQRST]'
9928 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9936 # Handle CRLF in mingw tool chain
9940 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9944 # If we're using GNU nm, then use its standard symbol codes.
9945 case `$NM -V 2>&1` in
9946 *GNU* | *'with BFD'*)
9947 symcode='[ABCDGIRSTW]' ;;
9950 # Try without a prefix undercore, then with it.
9951 for ac_symprfx in "" "_
"; do
9953 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9954 symxfrm="\\1 $ac_symprfx\\2 \\2"
9956 # Write the raw and C identifiers.
9957 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9959 # Check to see that the pipe works correctly.
9963 cat > conftest.$ac_ext <<EOF
9968 void nm_test_func(){}
9972 int main(){nm_test_var='a';nm_test_func();return(0);}
9975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9976 (eval $ac_compile) 2>&5
9978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9979 (exit $ac_status); }; then
9980 # Now try to grab the symbols.
9982 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
9983 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9986 (exit $ac_status); } && test -s "$nlist"; then
9987 # Try sorting and uniquifying the output.
9988 if sort "$nlist" | uniq > "$nlist"T; then
9989 mv -f "$nlist"T "$nlist"
9994 # Make sure that we snagged all the symbols we need.
9995 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9996 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9997 cat <<EOF > conftest.$ac_ext
10003 # Now generate the symbol file.
10004 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10006 cat <<EOF >> conftest.$ac_ext
10007 #if defined (__STDC__) && __STDC__
10008 # define lt_ptr_t void *
10010 # define lt_ptr_t char *
10014 /* The mapping between symbol names and symbols. */
10019 lt_preloaded_symbols[] =
10022 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10023 cat <<\EOF >> conftest.$ac_ext
10031 # Now try linking the two files.
10032 mv conftest.$ac_objext conftstm.$ac_objext
10033 lt_save_LIBS="$LIBS"
10034 lt_save_CFLAGS="$CFLAGS"
10035 LIBS="conftstm.
$ac_objext"
10036 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038 (eval $ac_link) 2>&5
10040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10041 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10044 LIBS="$lt_save_LIBS"
10045 CFLAGS="$lt_save_CFLAGS"
10047 echo "cannot
find nm_test_func
in $nlist" >&5
10050 echo "cannot
find nm_test_var
in $nlist" >&5
10053 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10056 echo "$progname: failed program was
:" >&5
10057 cat conftest.$ac_ext >&5
10059 rm -f conftest* conftst*
10061 # Do not use the global_symbol_pipe unless it works.
10062 if test "$pipe_works" = yes; then
10065 lt_cv_sys_global_symbol_pipe=
10071 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10072 lt_cv_sys_global_symbol_to_cdecl=
10074 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10075 { echo "$as_me:$LINENO: result
: failed
" >&5
10076 echo "${ECHO_T}failed
" >&6; }
10078 { echo "$as_me:$LINENO: result
: ok
" >&5
10079 echo "${ECHO_T}ok
" >&6; }
10083 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
10084 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
10085 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10086 echo $ECHO_N "(cached
) $ECHO_C" >&6
10088 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10089 libltdl_cv_preloaded_symbols=yes
10091 libltdl_cv_preloaded_symbols=no
10095 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
10096 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10097 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_PRELOADED_SYMBOLS 1
10108 ac_cpp='$CPP $CPPFLAGS'
10109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10114 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
10115 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
10116 if test "${ac_cv_func_shl_load+set}" = set; then
10117 echo $ECHO_N "(cached
) $ECHO_C" >&6
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10127 #define shl_load innocuous_shl_load
10129 /* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char shl_load (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
10135 # include <limits.h>
10137 # include <assert.h>
10142 /* Override any GCC internal prototype to avoid an error.
10143 Use char because int might match the return type of a GCC
10144 builtin and then its argument prototype would still apply. */
10149 /* The GNU C library defines this for functions which it implements
10150 to always fail with ENOSYS. Some functions are actually named
10151 something starting with __ and the normal name is an alias. */
10152 #if defined __stub_shl_load || defined __stub___shl_load
10159 return shl_load ();
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
10173 grep -v '^ *+' conftest.er1 >conftest.err
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10179 { (case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_try") 2>&5
10186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try='test -s conftest$ac_exeext'
10189 { (case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_try") 2>&5
10196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10197 (exit $ac_status); }; }; then
10198 ac_cv_func_shl_load=yes
10200 echo "$as_me: failed program was
:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 ac_cv_func_shl_load=no
10206 rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10209 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10210 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10211 if test $ac_cv_func_shl_load = yes; then
10213 cat >>confdefs.h <<\_ACEOF
10214 #define HAVE_SHL_LOAD 1
10218 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10219 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
10220 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10221 echo $ECHO_N "(cached
) $ECHO_C" >&6
10223 ac_check_lib_save_LIBS=$LIBS
10225 cat >conftest.$ac_ext <<_ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10232 /* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
10242 return shl_load ();
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (ac_try="$ac_link"
10249 case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_link") 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10262 { (case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
10269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try='test -s conftest$ac_exeext'
10272 { (case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_try") 2>&5
10279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 ac_cv_lib_dld_shl_load=yes
10283 echo "$as_me: failed program was
:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 ac_cv_lib_dld_shl_load=no
10289 rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS=$ac_check_lib_save_LIBS
10293 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10294 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10295 if test $ac_cv_lib_dld_shl_load = yes; then
10297 cat >>confdefs.h <<\_ACEOF
10298 #define HAVE_SHL_LOAD 1
10301 LIBADD_DL="$LIBADD_DL -ldld"
10303 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10304 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10305 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10306 echo $ECHO_N "(cached
) $ECHO_C" >&6
10308 ac_check_lib_save_LIBS=$LIBS
10310 cat >conftest.$ac_ext <<_ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10317 /* Override any GCC internal prototype to avoid an error.
10318 Use char because int might match the return type of a GCC
10319 builtin and then its argument prototype would still apply. */
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_link") 2>conftest.er1
10341 grep -v '^ *+' conftest.er1 >conftest.err
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10345 (exit $ac_status); } &&
10346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10347 { (case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_try") 2>&5
10354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10355 (exit $ac_status); }; } &&
10356 { ac_try='test -s conftest$ac_exeext'
10357 { (case "(($ac_try" in
10358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359 *) ac_try_echo=$ac_try;;
10361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10362 (eval "$ac_try") 2>&5
10364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_cv_lib_dl_dlopen=yes
10368 echo "$as_me: failed program was
:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 ac_cv_lib_dl_dlopen=no
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10378 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10379 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10380 if test $ac_cv_lib_dl_dlopen = yes; then
10382 cat >>confdefs.h <<\_ACEOF
10383 #define HAVE_LIBDL 1
10386 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10388 cat >conftest.$ac_ext <<_ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10395 # include <dlfcn.h>
10406 rm -f conftest.$ac_objext conftest$ac_exeext
10407 if { (ac_try="$ac_link"
10408 case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_link") 2>conftest.er1
10415 grep -v '^ *+' conftest.er1 >conftest.err
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10419 (exit $ac_status); } &&
10420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10421 { (case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_try") 2>&5
10428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10429 (exit $ac_status); }; } &&
10430 { ac_try='test -s conftest$ac_exeext'
10431 { (case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_try") 2>&5
10438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10439 (exit $ac_status); }; }; then
10441 cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_LIBDL 1
10444 libltdl_cv_func_dlopen="yes"
10446 echo "$as_me: failed program was
:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10450 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10451 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10452 echo $ECHO_N "(cached
) $ECHO_C" >&6
10454 ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-lsvld $LIBS"
10456 cat >conftest.$ac_ext <<_ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h. */
10463 /* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_link") 2>conftest.er1
10487 grep -v '^ *+' conftest.er1 >conftest.err
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10491 (exit $ac_status); } &&
10492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10493 { (case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_try") 2>&5
10500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10501 (exit $ac_status); }; } &&
10502 { ac_try='test -s conftest$ac_exeext'
10503 { (case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_try") 2>&5
10510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 ac_cv_lib_svld_dlopen=yes
10514 echo "$as_me: failed program was
:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10517 ac_cv_lib_svld_dlopen=no
10520 rm -f core conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10522 LIBS=$ac_check_lib_save_LIBS
10524 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10525 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10526 if test $ac_cv_lib_svld_dlopen = yes; then
10528 cat >>confdefs.h <<\_ACEOF
10529 #define HAVE_LIBDL 1
10532 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10534 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10535 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10536 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10537 echo $ECHO_N "(cached
) $ECHO_C" >&6
10539 ac_check_lib_save_LIBS=$LIBS
10541 cat >conftest.$ac_ext <<_ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10548 /* Override any GCC internal prototype to avoid an error.
10549 Use char because int might match the return type of a GCC
10550 builtin and then its argument prototype would still apply. */
10558 return dld_link ();
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (ac_try="$ac_link"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_link") 2>conftest.er1
10572 grep -v '^ *+' conftest.er1 >conftest.err
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10578 { (case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10583 (eval "$ac_try") 2>&5
10585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest$ac_exeext'
10588 { (case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10593 (eval "$ac_try") 2>&5
10595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 ac_cv_lib_dld_dld_link=yes
10599 echo "$as_me: failed program was
:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_cv_lib_dld_dld_link=no
10605 rm -f core conftest.err conftest.$ac_objext \
10606 conftest$ac_exeext conftest.$ac_ext
10607 LIBS=$ac_check_lib_save_LIBS
10609 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10610 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10611 if test $ac_cv_lib_dld_dld_link = yes; then
10613 cat >>confdefs.h <<\_ACEOF
10617 LIBADD_DL="$LIBADD_DL -ldld"
10619 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10620 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10621 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10622 echo $ECHO_N "(cached
) $ECHO_C" >&6
10624 cat >conftest.$ac_ext <<_ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10630 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10632 #define _dyld_func_lookup innocuous__dyld_func_lookup
10634 /* System header to define __stub macros and hopefully few prototypes,
10635 which can conflict with char _dyld_func_lookup (); below.
10636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10637 <limits.h> exists even on freestanding compilers. */
10640 # include <limits.h>
10642 # include <assert.h>
10645 #undef _dyld_func_lookup
10647 /* Override any GCC internal prototype to avoid an error.
10648 Use char because int might match the return type of a GCC
10649 builtin and then its argument prototype would still apply. */
10653 char _dyld_func_lookup ();
10654 /* The GNU C library defines this for functions which it implements
10655 to always fail with ENOSYS. Some functions are actually named
10656 something starting with __ and the normal name is an alias. */
10657 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10664 return _dyld_func_lookup ();
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (ac_try="$ac_link"
10671 case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
10678 grep -v '^ *+' conftest.er1 >conftest.err
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest$ac_exeext'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_cv_func__dyld_func_lookup=yes
10705 echo "$as_me: failed program was
:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_cv_func__dyld_func_lookup=no
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10714 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10715 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10716 if test $ac_cv_func__dyld_func_lookup = yes; then
10718 cat >>confdefs.h <<\_ACEOF
10719 #define HAVE_DYLD 1
10733 rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10745 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10747 lt_save_LIBS="$LIBS"
10748 LIBS="$LIBS $LIBADD_DL"
10750 for ac_func in dlerror
10752 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10753 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10754 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10755 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10756 echo $ECHO_N "(cached
) $ECHO_C" >&6
10758 cat >conftest.$ac_ext <<_ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10766 #define $ac_func innocuous_$ac_func
10768 /* System header to define __stub macros and hopefully few prototypes,
10769 which can conflict with char $ac_func (); below.
10770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10771 <limits.h> exists even on freestanding compilers. */
10774 # include <limits.h>
10776 # include <assert.h>
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10788 /* The GNU C library defines this for functions which it implements
10789 to always fail with ENOSYS. Some functions are actually named
10790 something starting with __ and the normal name is an alias. */
10791 #if defined __stub_$ac_func || defined __stub___$ac_func
10798 return $ac_func ();
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (ac_try="$ac_link"
10805 case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_link") 2>conftest.er1
10812 grep -v '^ *+' conftest.er1 >conftest.err
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10818 { (case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_try") 2>&5
10825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_try") 2>&5
10835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 eval "$as_ac_var=yes"
10839 echo "$as_me: failed program was
:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10842 eval "$as_ac_var=no
"
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10848 ac_res=`eval echo '${'$as_ac_var'}'`
10849 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10850 echo "${ECHO_T}$ac_res" >&6; }
10851 if test `eval echo '${'$as_ac_var'}'` = yes; then
10852 cat >>confdefs.h <<_ACEOF
10853 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10859 LIBS="$lt_save_LIBS"
10862 ac_cpp='$CPP $CPPFLAGS'
10863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10869 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10870 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10871 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10872 echo $ECHO_N "(cached
) $ECHO_C" >&6
10874 ac_cv_sys_symbol_underscore=no
10875 cat > conftest.$ac_ext <<EOF
10876 void nm_test_func(){}
10877 int main(){nm_test_func;return 0;}
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880 (eval $ac_compile) 2>&5
10882 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10883 (exit $ac_status); }; then
10884 # Now try to grab the symbols.
10885 ac_nlist=conftest.nm
10886 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10887 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10890 (exit $ac_status); } && test -s "$ac_nlist"; then
10891 # See whether the symbols have a leading underscore.
10892 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10893 ac_cv_sys_symbol_underscore=yes
10895 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10898 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10902 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10905 echo "configure
: failed program was
:" >&5
10911 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10912 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10915 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10916 if test x"$libltdl_cv_func_dlopen" = xyes ||
10917 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10918 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10919 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10920 if test "${libltdl_cv_need_uscore+set}" = set; then
10921 echo $ECHO_N "(cached
) $ECHO_C" >&6
10923 libltdl_cv_need_uscore=unknown
10925 LIBS="$LIBS $LIBADD_DL"
10926 if test "$cross_compiling" = yes; then :
10927 libltdl_cv_need_uscore=cross
10929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10930 lt_status=$lt_dlunknown
10931 cat > conftest.$ac_ext <<EOF
10932 #line 10932 "configure
"
10933 #include "confdefs.h
"
10942 # define LT_DLGLOBAL RTLD_GLOBAL
10945 # define LT_DLGLOBAL DL_GLOBAL
10947 # define LT_DLGLOBAL 0
10951 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10952 find out it does not work in some platform. */
10953 #ifndef LT_DLLAZY_OR_NOW
10955 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10958 # define LT_DLLAZY_OR_NOW DL_LAZY
10961 # define LT_DLLAZY_OR_NOW RTLD_NOW
10964 # define LT_DLLAZY_OR_NOW DL_NOW
10966 # define LT_DLLAZY_OR_NOW 0
10974 extern "C
" void exit (int);
10977 void fnord() { int i=42;}
10980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10981 int status = $lt_dlunknown;
10985 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
10986 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
10987 /* dlclose (self); */
10995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996 (eval $ac_link) 2>&5
10998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11000 (./conftest; exit; ) >&5 2>/dev/null
11002 case x$lt_status in
11003 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11004 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11005 x$lt_dlunknown|x*) ;;
11008 # compilation failed
11017 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
11018 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11022 if test x"$libltdl_cv_need_uscore" = xyes; then
11024 cat >>confdefs.h <<\_ACEOF
11025 #define NEED_USCORE 1
11031 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
11032 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
11033 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11034 echo $ECHO_N "(cached
) $ECHO_C" >&6
11036 # PORTME does your system automatically load deplibs for dlopen?
11037 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11038 # For now, we just catch OSes we know something about -- in the
11039 # future, we'll try test this programmatically.
11040 libltdl_cv_sys_dlopen_deplibs=unknown
11042 aix3*|aix4.1.*|aix4.2.*)
11043 # Unknown whether this is true for these versions of AIX, but
11044 # we want this `case' here to explicitly catch those versions.
11045 libltdl_cv_sys_dlopen_deplibs=unknown
11048 libltdl_cv_sys_dlopen_deplibs=yes
11051 # Assuming the user has installed a libdl from somewhere, this is true
11052 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11053 libltdl_cv_sys_dlopen_deplibs=yes
11055 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11056 # GNU and its variants, using gnu ld.so (Glibc)
11057 libltdl_cv_sys_dlopen_deplibs=yes
11060 libltdl_cv_sys_dlopen_deplibs=yes
11063 libltdl_cv_sys_dlopen_deplibs=yes
11065 irix[12345]*|irix6.[01]*)
11066 # Catch all versions of IRIX before 6.2, and indicate that we don't
11067 # know how it worked for any of those versions.
11068 libltdl_cv_sys_dlopen_deplibs=unknown
11071 # The case above catches anything before 6.2, and it's known that
11072 # at 6.2 and later dlopen does load deplibs.
11073 libltdl_cv_sys_dlopen_deplibs=yes
11076 libltdl_cv_sys_dlopen_deplibs=yes
11079 libltdl_cv_sys_dlopen_deplibs=yes
11082 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11083 # it did *not* use an RPATH in a shared library to find objects the
11084 # library depends on, so we explictly say `no'.
11085 libltdl_cv_sys_dlopen_deplibs=no
11087 osf5.0|osf5.0a|osf5.1)
11088 # dlopen *does* load deplibs and with the right loader patch applied
11089 # it even uses RPATH in a shared library to search for shared objects
11090 # that the library depends on, but there's no easy way to know if that
11091 # patch is installed. Since this is the case, all we can really
11092 # say is unknown -- it depends on the patch being installed. If
11093 # it is, this changes to `yes'. Without it, it would be `no'.
11094 libltdl_cv_sys_dlopen_deplibs=unknown
11097 # the two cases above should catch all versions of osf <= 5.1. Read
11098 # the comments above for what we know about them.
11099 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11100 # is used to find them so we can finally say `yes'.
11101 libltdl_cv_sys_dlopen_deplibs=yes
11104 libltdl_cv_sys_dlopen_deplibs=yes
11106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11107 libltdl_cv_sys_dlopen_deplibs=yes
11112 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
11113 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11114 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11116 cat >>confdefs.h <<\_ACEOF
11117 #define LTDL_DLOPEN_DEPLIBS 1
11123 for ac_header in argz.h
11125 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11126 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11127 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11128 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached
) $ECHO_C" >&6
11132 ac_res=`eval echo '${'$as_ac_Header'}'`
11133 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11134 echo "${ECHO_T}$ac_res" >&6; }
11136 # Is the header compilable?
11137 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11138 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11139 cat >conftest.$ac_ext <<_ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 $ac_includes_default
11146 #include <$ac_header>
11148 rm -f conftest.$ac_objext
11149 if { (ac_try="$ac_compile"
11150 case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_compile") 2>conftest.er1
11157 grep -v '^ *+' conftest.er1 >conftest.err
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163 { (case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_try") 2>&5
11170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_header_compiler=yes
11184 echo "$as_me: failed program was
:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_header_compiler=no
11190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11192 echo "${ECHO_T}$ac_header_compiler" >&6; }
11194 # Is the header present?
11195 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11196 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11197 cat >conftest.$ac_ext <<_ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 #include <$ac_header>
11205 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11206 case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11213 grep -v '^ *+' conftest.er1 >conftest.err
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11217 (exit $ac_status); } >/dev/null; then
11218 if test -s conftest.err; then
11219 ac_cpp_err=$ac_c_preproc_warn_flag
11220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11227 if test -z "$ac_cpp_err"; then
11228 ac_header_preproc=yes
11230 echo "$as_me: failed program was
:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 ac_header_preproc=no
11236 rm -f conftest.err conftest.$ac_ext
11237 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11238 echo "${ECHO_T}$ac_header_preproc" >&6; }
11240 # So? What about this header?
11241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11243 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11244 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11245 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11247 ac_header_preproc=yes
11250 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11251 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11252 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11253 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11254 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11255 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11256 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11257 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11258 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11260 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11261 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11263 ## ----------------------------------- ##
11264 ## Report this to llvmbugs@cs.uiuc.edu ##
11265 ## ----------------------------------- ##
11267 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11270 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11271 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11273 echo $ECHO_N "(cached
) $ECHO_C" >&6
11275 eval "$as_ac_Header=\
$ac_header_preproc"
11277 ac_res=`eval echo '${'$as_ac_Header'}'`
11278 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11283 cat >>confdefs.h <<_ACEOF
11284 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11292 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11293 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11294 if test "${ac_cv_type_error_t+set}" = set; then
11295 echo $ECHO_N "(cached
) $ECHO_C" >&6
11297 cat >conftest.$ac_ext <<_ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11307 typedef error_t ac__type_new_;
11311 if ((ac__type_new_ *) 0)
11313 if (sizeof (ac__type_new_))
11319 rm -f conftest.$ac_objext
11320 if { (ac_try="$ac_compile"
11321 case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_compile") 2>conftest.er1
11328 grep -v '^ *+' conftest.er1 >conftest.err
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11334 { (case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_try") 2>&5
11341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_try") 2>&5
11351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 ac_cv_type_error_t=yes
11355 echo "$as_me: failed program was
:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_cv_type_error_t=no
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11364 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11365 if test $ac_cv_type_error_t = yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define HAVE_ERROR_T 1
11374 cat >>confdefs.h <<\_ACEOF
11375 #define error_t int
11386 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11388 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11389 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11390 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11391 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11392 echo $ECHO_N "(cached
) $ECHO_C" >&6
11394 cat >conftest.$ac_ext <<_ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11402 #define $ac_func innocuous_$ac_func
11404 /* System header to define __stub macros and hopefully few prototypes,
11405 which can conflict with char $ac_func (); below.
11406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407 <limits.h> exists even on freestanding compilers. */
11410 # include <limits.h>
11412 # include <assert.h>
11417 /* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11424 /* The GNU C library defines this for functions which it implements
11425 to always fail with ENOSYS. Some functions are actually named
11426 something starting with __ and the normal name is an alias. */
11427 #if defined __stub_$ac_func || defined __stub___$ac_func
11434 return $ac_func ();
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (ac_try="$ac_link"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_link") 2>conftest.er1
11448 grep -v '^ *+' conftest.er1 >conftest.err
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11452 (exit $ac_status); } &&
11453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11454 { (case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_try") 2>&5
11461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest$ac_exeext'
11464 { (case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_try") 2>&5
11471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 eval "$as_ac_var=yes"
11475 echo "$as_me: failed program was
:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 eval "$as_ac_var=no
"
11481 rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11484 ac_res=`eval echo '${'$as_ac_var'}'`
11485 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11486 echo "${ECHO_T}$ac_res" >&6; }
11487 if test `eval echo '${'$as_ac_var'}'` = yes; then
11488 cat >>confdefs.h <<_ACEOF
11489 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11522 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11525 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11526 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11527 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11528 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11529 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11530 echo $ECHO_N "(cached
) $ECHO_C" >&6
11532 ac_res=`eval echo '${'$as_ac_Header'}'`
11533 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11534 echo "${ECHO_T}$ac_res" >&6; }
11536 # Is the header compilable?
11537 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11538 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11539 cat >conftest.$ac_ext <<_ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 $ac_includes_default
11546 #include <$ac_header>
11548 rm -f conftest.$ac_objext
11549 if { (ac_try="$ac_compile"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_compile") 2>conftest.er1
11557 grep -v '^ *+' conftest.er1 >conftest.err
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11563 { (case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_try") 2>&5
11570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_try") 2>&5
11580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 ac_header_compiler=yes
11584 echo "$as_me: failed program was
:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 ac_header_compiler=no
11590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11591 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11592 echo "${ECHO_T}$ac_header_compiler" >&6; }
11594 # Is the header present?
11595 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11596 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <$ac_header>
11605 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11606 case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11613 grep -v '^ *+' conftest.er1 >conftest.err
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11617 (exit $ac_status); } >/dev/null; then
11618 if test -s conftest.err; then
11619 ac_cpp_err=$ac_c_preproc_warn_flag
11620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11627 if test -z "$ac_cpp_err"; then
11628 ac_header_preproc=yes
11630 echo "$as_me: failed program was
:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11633 ac_header_preproc=no
11636 rm -f conftest.err conftest.$ac_ext
11637 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11638 echo "${ECHO_T}$ac_header_preproc" >&6; }
11640 # So? What about this header?
11641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11643 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11644 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11645 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11647 ac_header_preproc=yes
11650 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11651 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11652 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11653 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11654 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11655 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11656 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11657 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11658 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11660 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11661 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11663 ## ----------------------------------- ##
11664 ## Report this to llvmbugs@cs.uiuc.edu ##
11665 ## ----------------------------------- ##
11667 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11670 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11671 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11673 echo $ECHO_N "(cached
) $ECHO_C" >&6
11675 eval "$as_ac_Header=\
$ac_header_preproc"
11677 ac_res=`eval echo '${'$as_ac_Header'}'`
11678 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11679 echo "${ECHO_T}$ac_res" >&6; }
11682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11683 cat >>confdefs.h <<_ACEOF
11684 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11695 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11697 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11698 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11699 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11700 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11701 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11702 echo $ECHO_N "(cached
) $ECHO_C" >&6
11704 ac_res=`eval echo '${'$as_ac_Header'}'`
11705 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11706 echo "${ECHO_T}$ac_res" >&6; }
11708 # Is the header compilable?
11709 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11710 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 $ac_includes_default
11718 #include <$ac_header>
11720 rm -f conftest.$ac_objext
11721 if { (ac_try="$ac_compile"
11722 case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_compile") 2>conftest.er1
11729 grep -v '^ *+' conftest.er1 >conftest.err
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735 { (case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_try") 2>&5
11742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest.$ac_objext'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11752 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 ac_header_compiler=yes
11756 echo "$as_me: failed program was
:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 ac_header_compiler=no
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11764 echo "${ECHO_T}$ac_header_compiler" >&6; }
11766 # Is the header present?
11767 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11768 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11769 cat >conftest.$ac_ext <<_ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 #include <$ac_header>
11777 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11778 case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11785 grep -v '^ *+' conftest.er1 >conftest.err
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11789 (exit $ac_status); } >/dev/null; then
11790 if test -s conftest.err; then
11791 ac_cpp_err=$ac_c_preproc_warn_flag
11792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11799 if test -z "$ac_cpp_err"; then
11800 ac_header_preproc=yes
11802 echo "$as_me: failed program was
:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_header_preproc=no
11808 rm -f conftest.err conftest.$ac_ext
11809 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11810 echo "${ECHO_T}$ac_header_preproc" >&6; }
11812 # So? What about this header?
11813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11815 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11816 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11817 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11819 ac_header_preproc=yes
11822 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11823 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11824 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11825 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11826 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11827 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11828 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11829 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11830 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11832 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11833 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11835 ## ----------------------------------- ##
11836 ## Report this to llvmbugs@cs.uiuc.edu ##
11837 ## ----------------------------------- ##
11839 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
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 eval "$as_ac_Header=\
$ac_header_preproc"
11849 ac_res=`eval echo '${'$as_ac_Header'}'`
11850 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11851 echo "${ECHO_T}$ac_res" >&6; }
11854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11865 for ac_header in string.h strings.h
11867 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11868 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11869 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11870 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11871 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11872 echo $ECHO_N "(cached
) $ECHO_C" >&6
11874 ac_res=`eval echo '${'$as_ac_Header'}'`
11875 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11876 echo "${ECHO_T}$ac_res" >&6; }
11878 # Is the header compilable?
11879 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11880 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 $ac_includes_default
11888 #include <$ac_header>
11890 rm -f conftest.$ac_objext
11891 if { (ac_try="$ac_compile"
11892 case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_compile") 2>conftest.er1
11899 grep -v '^ *+' conftest.er1 >conftest.err
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11903 (exit $ac_status); } &&
11904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11905 { (case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_try") 2>&5
11912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_try") 2>&5
11922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_header_compiler=yes
11926 echo "$as_me: failed program was
:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_header_compiler=no
11932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11933 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11934 echo "${ECHO_T}$ac_header_compiler" >&6; }
11936 # Is the header present?
11937 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11938 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11939 cat >conftest.$ac_ext <<_ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11945 #include <$ac_header>
11947 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11959 (exit $ac_status); } >/dev/null; then
11960 if test -s conftest.err; then
11961 ac_cpp_err=$ac_c_preproc_warn_flag
11962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11969 if test -z "$ac_cpp_err"; then
11970 ac_header_preproc=yes
11972 echo "$as_me: failed program was
:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 ac_header_preproc=no
11978 rm -f conftest.err conftest.$ac_ext
11979 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11980 echo "${ECHO_T}$ac_header_preproc" >&6; }
11982 # So? What about this header?
11983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11985 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11986 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11987 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11989 ac_header_preproc=yes
11992 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11993 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11994 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11995 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11996 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11997 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11998 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11999 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12000 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12002 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12003 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12005 ## ----------------------------------- ##
12006 ## Report this to llvmbugs@cs.uiuc.edu ##
12007 ## ----------------------------------- ##
12009 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12012 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12013 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12014 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12015 echo $ECHO_N "(cached
) $ECHO_C" >&6
12017 eval "$as_ac_Header=\
$ac_header_preproc"
12019 ac_res=`eval echo '${'$as_ac_Header'}'`
12020 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12021 echo "${ECHO_T}$ac_res" >&6; }
12024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12036 for ac_func in strchr index
12038 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12039 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12040 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12041 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12042 echo $ECHO_N "(cached
) $ECHO_C" >&6
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12052 #define $ac_func innocuous_$ac_func
12054 /* System header to define __stub macros and hopefully few prototypes,
12055 which can conflict with char $ac_func (); below.
12056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12057 <limits.h> exists even on freestanding compilers. */
12060 # include <limits.h>
12062 # include <assert.h>
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12074 /* The GNU C library defines this for functions which it implements
12075 to always fail with ENOSYS. Some functions are actually named
12076 something starting with __ and the normal name is an alias. */
12077 #if defined __stub_$ac_func || defined __stub___$ac_func
12084 return $ac_func ();
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (ac_try="$ac_link"
12091 case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_link") 2>conftest.er1
12098 grep -v '^ *+' conftest.er1 >conftest.err
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12104 { (case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_try") 2>&5
12111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12112 (exit $ac_status); }; } &&
12113 { ac_try='test -s conftest$ac_exeext'
12114 { (case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_try") 2>&5
12121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 eval "$as_ac_var=yes"
12125 echo "$as_me: failed program was
:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 eval "$as_ac_var=no
"
12131 rm -f core conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12134 ac_res=`eval echo '${'$as_ac_var'}'`
12135 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12136 echo "${ECHO_T}$ac_res" >&6; }
12137 if test `eval echo '${'$as_ac_var'}'` = yes; then
12138 cat >>confdefs.h <<_ACEOF
12139 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12147 for ac_func in strrchr rindex
12149 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12150 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12151 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12152 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12153 echo $ECHO_N "(cached
) $ECHO_C" >&6
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12163 #define $ac_func innocuous_$ac_func
12165 /* System header to define __stub macros and hopefully few prototypes,
12166 which can conflict with char $ac_func (); below.
12167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168 <limits.h> exists even on freestanding compilers. */
12171 # include <limits.h>
12173 # include <assert.h>
12178 /* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12185 /* The GNU C library defines this for functions which it implements
12186 to always fail with ENOSYS. Some functions are actually named
12187 something starting with __ and the normal name is an alias. */
12188 #if defined __stub_$ac_func || defined __stub___$ac_func
12195 return $ac_func ();
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 eval "$as_ac_var=yes"
12236 echo "$as_me: failed program was
:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 eval "$as_ac_var=no
"
12242 rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12245 ac_res=`eval echo '${'$as_ac_var'}'`
12246 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12247 echo "${ECHO_T}$ac_res" >&6; }
12248 if test `eval echo '${'$as_ac_var'}'` = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12258 for ac_func in memcpy bcopy
12260 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12261 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12262 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12263 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12264 echo $ECHO_N "(cached
) $ECHO_C" >&6
12266 cat >conftest.$ac_ext <<_ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12274 #define $ac_func innocuous_$ac_func
12276 /* System header to define __stub macros and hopefully few prototypes,
12277 which can conflict with char $ac_func (); below.
12278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12279 <limits.h> exists even on freestanding compilers. */
12282 # include <limits.h>
12284 # include <assert.h>
12289 /* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12296 /* The GNU C library defines this for functions which it implements
12297 to always fail with ENOSYS. Some functions are actually named
12298 something starting with __ and the normal name is an alias. */
12299 #if defined __stub_$ac_func || defined __stub___$ac_func
12306 return $ac_func ();
12311 rm -f conftest.$ac_objext conftest$ac_exeext
12312 if { (ac_try="$ac_link"
12313 case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_link") 2>conftest.er1
12320 grep -v '^ *+' conftest.er1 >conftest.err
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12326 { (case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_try") 2>&5
12333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_try") 2>&5
12343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 eval "$as_ac_var=yes"
12347 echo "$as_me: failed program was
:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12350 eval "$as_ac_var=no
"
12353 rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12356 ac_res=`eval echo '${'$as_ac_var'}'`
12357 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12358 echo "${ECHO_T}$ac_res" >&6; }
12359 if test `eval echo '${'$as_ac_var'}'` = yes; then
12360 cat >>confdefs.h <<_ACEOF
12361 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12369 for ac_func in memmove strcmp
12371 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12372 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12373 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12374 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12375 echo $ECHO_N "(cached
) $ECHO_C" >&6
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12385 #define $ac_func innocuous_$ac_func
12387 /* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12393 # include <limits.h>
12395 # include <assert.h>
12400 /* Override any GCC internal prototype to avoid an error.
12401 Use char because int might match the return type of a GCC
12402 builtin and then its argument prototype would still apply. */
12407 /* The GNU C library defines this for functions which it implements
12408 to always fail with ENOSYS. Some functions are actually named
12409 something starting with __ and the normal name is an alias. */
12410 #if defined __stub_$ac_func || defined __stub___$ac_func
12417 return $ac_func ();
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest$ac_exeext'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 eval "$as_ac_var=yes"
12458 echo "$as_me: failed program was
:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 eval "$as_ac_var=no
"
12464 rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12467 ac_res=`eval echo '${'$as_ac_var'}'`
12468 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12469 echo "${ECHO_T}$ac_res" >&6; }
12470 if test `eval echo '${'$as_ac_var'}'` = yes; then
12471 cat >>confdefs.h <<_ACEOF
12472 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12481 for ac_func in closedir opendir readdir
12483 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12484 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12485 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12486 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12487 echo $ECHO_N "(cached
) $ECHO_C" >&6
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12497 #define $ac_func innocuous_$ac_func
12499 /* System header to define __stub macros and hopefully few prototypes,
12500 which can conflict with char $ac_func (); below.
12501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12502 <limits.h> exists even on freestanding compilers. */
12505 # include <limits.h>
12507 # include <assert.h>
12512 /* Override any GCC internal prototype to avoid an error.
12513 Use char because int might match the return type of a GCC
12514 builtin and then its argument prototype would still apply. */
12519 /* The GNU C library defines this for functions which it implements
12520 to always fail with ENOSYS. Some functions are actually named
12521 something starting with __ and the normal name is an alias. */
12522 #if defined __stub_$ac_func || defined __stub___$ac_func
12529 return $ac_func ();
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_link") 2>conftest.er1
12543 grep -v '^ *+' conftest.er1 >conftest.err
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12549 { (case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_try") 2>&5
12556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest$ac_exeext'
12559 { (case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_try") 2>&5
12566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12567 (exit $ac_status); }; }; then
12568 eval "$as_ac_var=yes"
12570 echo "$as_me: failed program was
:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12573 eval "$as_ac_var=no
"
12576 rm -f core conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12579 ac_res=`eval echo '${'$as_ac_var'}'`
12580 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12581 echo "${ECHO_T}$ac_res" >&6; }
12582 if test `eval echo '${'$as_ac_var'}'` = yes; then
12583 cat >>confdefs.h <<_ACEOF
12584 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12591 # Check whether --enable-shared was given.
12592 if test "${enable_shared+set}" = set; then
12593 enableval=$enable_shared; p=${PACKAGE-default}
12595 yes) enable_shared=yes ;;
12596 no) enable_shared=no ;;
12599 # Look at the argument we got. We use all the common list separators.
12600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12601 for pkg in $enableval; do
12603 if test "X
$pkg" = "X
$p"; then
12615 # Check whether --enable-static was given.
12616 if test "${enable_static+set}" = set; then
12617 enableval=$enable_static; p=${PACKAGE-default}
12619 yes) enable_static=yes ;;
12620 no) enable_static=no ;;
12623 # Look at the argument we got. We use all the common list separators.
12624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12625 for pkg in $enableval; do
12627 if test "X
$pkg" = "X
$p"; then
12639 # Check whether --enable-fast-install was given.
12640 if test "${enable_fast_install+set}" = set; then
12641 enableval=$enable_fast_install; p=${PACKAGE-default}
12643 yes) enable_fast_install=yes ;;
12644 no) enable_fast_install=no ;;
12646 enable_fast_install=no
12647 # Look at the argument we got. We use all the common list separators.
12648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12649 for pkg in $enableval; do
12651 if test "X
$pkg" = "X
$p"; then
12652 enable_fast_install=yes
12659 enable_fast_install=yes
12663 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12664 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12665 if test "${lt_cv_path_SED+set}" = set; then
12666 echo $ECHO_N "(cached
) $ECHO_C" >&6
12668 # Loop through the user's path and test for sed and gsed.
12669 # Then use that list of sed's as ones to test for truncation.
12670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671 for as_dir in $PATH
12674 test -z "$as_dir" && as_dir=.
12675 for lt_ac_prog in sed gsed; do
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12678 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12685 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12686 # along with /bin/sed that truncates output.
12687 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12688 test ! -f $lt_ac_sed && continue
12689 cat /dev/null > conftest.in
12691 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12692 # Check for GNU sed and select it if it is found.
12693 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12694 lt_cv_path_SED=$lt_ac_sed
12698 cat conftest.in conftest.in >conftest.tmp
12699 mv conftest.tmp conftest.in
12700 cp conftest.in conftest.nl
12702 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12703 cmp -s conftest.out conftest.nl || break
12704 # 10000 chars as input seems more than enough
12705 test $lt_ac_count -gt 10 && break
12706 lt_ac_count=`expr $lt_ac_count + 1`
12707 if test $lt_ac_count -gt $lt_ac_max; then
12708 lt_ac_max=$lt_ac_count
12709 lt_cv_path_SED=$lt_ac_sed
12716 SED=$lt_cv_path_SED
12717 { echo "$as_me:$LINENO: result
: $SED" >&5
12718 echo "${ECHO_T}$SED" >&6; }
12721 # Check whether --with-gnu-ld was given.
12722 if test "${with_gnu_ld+set}" = set; then
12723 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12729 if test "$GCC" = yes; then
12730 # Check if gcc -print-prog-name=ld gives a path.
12731 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12732 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12735 # gcc leaves a trailing carriage return which upsets mingw
12736 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12738 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12741 # Accept absolute paths.
12743 re_direlt='/[^/][^/]*/\.\./'
12744 # Canonicalize the pathname of ld
12745 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12746 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12747 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12749 test -z "$LD" && LD="$ac_prog"
12752 # If it fails, then pretend we aren't using GCC.
12756 # If it is relative, then search for the first ld in PATH.
12757 with_gnu_ld=unknown
12760 elif test "$with_gnu_ld" = yes; then
12761 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12762 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12764 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12765 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12767 if test "${lt_cv_path_LD+set}" = set; then
12768 echo $ECHO_N "(cached
) $ECHO_C" >&6
12770 if test -z "$LD"; then
12771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12772 for ac_dir in $PATH; do
12774 test -z "$ac_dir" && ac_dir=.
12775 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12776 lt_cv_path_LD="$ac_dir/$ac_prog"
12777 # Check to see if the program is GNU ld. I'd rather use --version,
12778 # but apparently some variants of GNU ld only accept -v.
12779 # Break only if it was the GNU/non-GNU ld that we prefer.
12780 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12781 *GNU* | *'with BFD'*)
12782 test "$with_gnu_ld" != no && break
12785 test "$with_gnu_ld" != yes && break
12792 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12796 LD="$lt_cv_path_LD"
12797 if test -n "$LD"; then
12798 { echo "$as_me:$LINENO: result
: $LD" >&5
12799 echo "${ECHO_T}$LD" >&6; }
12801 { echo "$as_me:$LINENO: result
: no
" >&5
12802 echo "${ECHO_T}no
" >&6; }
12804 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12805 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12806 { (exit 1); exit 1; }; }
12807 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12808 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12809 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12810 echo $ECHO_N "(cached
) $ECHO_C" >&6
12812 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12813 case `$LD -v 2>&1 </dev/null` in
12814 *GNU* | *'with BFD'*)
12815 lt_cv_prog_gnu_ld=yes
12818 lt_cv_prog_gnu_ld=no
12822 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12823 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12824 with_gnu_ld=$lt_cv_prog_gnu_ld
12827 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12828 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12829 if test "${lt_cv_ld_reload_flag+set}" = set; then
12830 echo $ECHO_N "(cached
) $ECHO_C" >&6
12832 lt_cv_ld_reload_flag='-r'
12834 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12835 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12836 reload_flag=$lt_cv_ld_reload_flag
12837 case $reload_flag in
12839 *) reload_flag=" $reload_flag" ;;
12841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12844 if test "$GCC" = yes; then
12845 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12847 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12852 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12853 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12854 if test "${lt_cv_deplibs_check_method+set}" = set; then
12855 echo $ECHO_N "(cached
) $ECHO_C" >&6
12857 lt_cv_file_magic_cmd='$MAGIC_CMD'
12858 lt_cv_file_magic_test_file=
12859 lt_cv_deplibs_check_method='unknown'
12860 # Need to set the preceding variable on all platforms that support
12861 # interlibrary dependencies.
12862 # 'none' -- dependencies not supported.
12863 # `unknown' -- same as none, but documents that we really don't know.
12864 # 'pass_all' -- all dependencies passed with no checks.
12865 # 'test_compile' -- check by making test program.
12866 # 'file_magic [[regex]]' -- check by looking for files in library path
12867 # which responds to the $file_magic_cmd with a given extended regex.
12868 # If you have `file' or equivalent on your system and you're not sure
12869 # whether `pass_all' will *always* work, you probably want this one.
12873 lt_cv_deplibs_check_method=pass_all
12877 lt_cv_deplibs_check_method=pass_all
12881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12882 lt_cv_file_magic_cmd='/usr/bin/file -L'
12883 lt_cv_file_magic_test_file=/shlib/libc.so
12887 # func_win32_libid is a shell function defined in ltmain.sh
12888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12889 lt_cv_file_magic_cmd='func_win32_libid'
12893 # Base MSYS/MinGW do not provide the 'file' command needed by
12894 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12895 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12896 lt_cv_file_magic_cmd='$OBJDUMP -f'
12899 darwin* | rhapsody*)
12900 lt_cv_deplibs_check_method=pass_all
12903 freebsd* | kfreebsd*-gnu | dragonfly*)
12904 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12907 # Not sure whether the presence of OpenBSD here was a mistake.
12908 # Let's accept both of them until this is cleared up.
12909 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12910 lt_cv_file_magic_cmd=/usr/bin/file
12911 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12915 lt_cv_deplibs_check_method=pass_all
12920 lt_cv_deplibs_check_method=pass_all
12923 hpux10.20* | hpux11*)
12924 lt_cv_file_magic_cmd=/usr/bin/file
12927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12928 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12931 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]'
12932 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12935 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12936 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12942 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12946 irix5* | irix6* | nonstopux*)
12948 *-32|*"-32 ") libmagic=32-bit;;
12949 *-n32|*"-n32 ") libmagic=N32;;
12950 *-64|*"-64 ") libmagic=64-bit;;
12951 *) libmagic=never-match;;
12953 lt_cv_deplibs_check_method=pass_all
12956 # This must be Linux ELF.
12958 lt_cv_deplibs_check_method=pass_all
12962 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12971 lt_cv_file_magic_cmd=/usr/bin/file
12972 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12976 lt_cv_deplibs_check_method=unknown
12980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12987 osf3* | osf4* | osf5*)
12988 lt_cv_deplibs_check_method=pass_all
12992 lt_cv_deplibs_check_method=pass_all
12996 case $host_vendor in
12998 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]'
12999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13002 lt_cv_deplibs_check_method=pass_all
13005 lt_cv_file_magic_cmd='/bin/file'
13006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13009 lt_cv_file_magic_cmd='/bin/file'
13010 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13011 lt_cv_file_magic_test_file=/lib/libc.so
13014 lt_cv_deplibs_check_method=pass_all
13017 lt_cv_deplibs_check_method=pass_all
13022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13023 lt_cv_deplibs_check_method=pass_all
13028 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
13029 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13030 file_magic_cmd=$lt_cv_file_magic_cmd
13031 deplibs_check_method=$lt_cv_deplibs_check_method
13032 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13036 # If no C compiler was specified, use CC.
13039 # If no C compiler flags were specified, use CFLAGS.
13040 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13042 # Allow CC to be a program name with arguments.
13045 # Check whether --enable-libtool-lock was given.
13046 if test "${enable_libtool_lock+set}" = set; then
13047 enableval=$enable_libtool_lock;
13050 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13052 # Some flags need to be propagated to the compiler or linker for good
13056 # Find out which ABI we are using.
13057 echo 'int i;' > conftest.$ac_ext
13058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13059 (eval $ac_compile) 2>&5
13061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13062 (exit $ac_status); }; then
13063 case `/usr/bin/file conftest.$ac_objext` in
13065 HPUX_IA64_MODE="32"
13068 HPUX_IA64_MODE="64"
13075 # Find out which ABI we are using.
13076 echo '#line 13076 "configure
"' > conftest.$ac_ext
13077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13078 (eval $ac_compile) 2>&5
13080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13081 (exit $ac_status); }; then
13082 if test "$lt_cv_prog_gnu_ld" = yes; then
13083 case `/usr/bin/file conftest.$ac_objext` in
13085 LD="${LD-ld} -melf32bsmip"
13088 LD="${LD-ld} -melf32bmipn32"
13091 LD="${LD-ld} -melf64bmip"
13095 case `/usr/bin/file conftest.$ac_objext` in
13111 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13112 # Find out which ABI we are using.
13113 echo 'int i;' > conftest.$ac_ext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>&5
13117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13118 (exit $ac_status); }; then
13119 case `/usr/bin/file conftest.o` in
13123 LD="${LD-ld} -m elf_i386
"
13125 ppc64-*linux*|powerpc64-*linux*)
13126 LD="${LD-ld} -m elf32ppclinux
"
13129 LD="${LD-ld} -m elf_s390
"
13132 LD="${LD-ld} -m elf32_sparc
"
13139 LD="${LD-ld} -m elf_x86_64
"
13141 ppc*-*linux*|powerpc*-*linux*)
13142 LD="${LD-ld} -m elf64ppc
"
13145 LD="${LD-ld} -m elf64_s390
"
13148 LD="${LD-ld} -m elf64_sparc
"
13158 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13159 SAVE_CFLAGS="$CFLAGS"
13160 CFLAGS="$CFLAGS -belf"
13161 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
13162 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
13163 if test "${lt_cv_cc_needs_belf+set}" = set; then
13164 echo $ECHO_N "(cached
) $ECHO_C" >&6
13167 ac_cpp='$CPP $CPPFLAGS'
13168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13172 cat >conftest.$ac_ext <<_ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13187 rm -f conftest.$ac_objext conftest$ac_exeext
13188 if { (ac_try="$ac_link"
13189 case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_link") 2>conftest.er1
13196 grep -v '^ *+' conftest.er1 >conftest.err
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13200 (exit $ac_status); } &&
13201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13202 { (case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_try") 2>&5
13209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_try") 2>&5
13219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 lt_cv_cc_needs_belf=yes
13223 echo "$as_me: failed program was
:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 lt_cv_cc_needs_belf=no
13229 rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13232 ac_cpp='$CPP $CPPFLAGS'
13233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13238 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
13239 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13242 CFLAGS="$SAVE_CFLAGS"
13246 # Find out which ABI we are using.
13247 echo 'int i;' > conftest.$ac_ext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13249 (eval $ac_compile) 2>&5
13251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13252 (exit $ac_status); }; then
13253 case `/usr/bin/file conftest.o` in
13255 case $lt_cv_prog_gnu_ld in
13256 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13257 *) LD="${LD-ld} -64" ;;
13268 need_locks="$enable_libtool_lock"
13273 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
13274 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
13275 (test "X
$CXX" != "Xg
++"))) ; then
13277 ac_cpp='$CXXCPP $CPPFLAGS'
13278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13281 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
13282 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
13283 if test -z "$CXXCPP"; then
13284 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13285 echo $ECHO_N "(cached
) $ECHO_C" >&6
13287 # Double quotes because CXXCPP needs to be expanded
13288 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13290 ac_preproc_ok=false
13291 for ac_cxx_preproc_warn_flag in '' yes
13293 # Use a header file that comes with gcc, so configuring glibc
13294 # with a fresh cross-compiler works.
13295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13296 # <limits.h> exists even on freestanding compilers.
13297 # On the NeXT, cc -E runs the code through the compiler's parser,
13298 # not just through cpp. "Syntax error
" is here to catch this case.
13299 cat >conftest.$ac_ext <<_ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13306 # include <limits.h>
13308 # include <assert.h>
13312 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13313 case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13320 grep -v '^ *+' conftest.er1 >conftest.err
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13324 (exit $ac_status); } >/dev/null; then
13325 if test -s conftest.err; then
13326 ac_cpp_err=$ac_cxx_preproc_warn_flag
13327 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13334 if test -z "$ac_cpp_err"; then
13337 echo "$as_me: failed program was
:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 # Broken: fails on valid input.
13344 rm -f conftest.err conftest.$ac_ext
13346 # OK, works on sane cases. Now check whether nonexistent headers
13347 # can be detected and how.
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #include <ac_nonexistent.h>
13356 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13357 case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13364 grep -v '^ *+' conftest.er1 >conftest.err
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13368 (exit $ac_status); } >/dev/null; then
13369 if test -s conftest.err; then
13370 ac_cpp_err=$ac_cxx_preproc_warn_flag
13371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13378 if test -z "$ac_cpp_err"; then
13379 # Broken: success on invalid input.
13382 echo "$as_me: failed program was
:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 # Passes both tests.
13390 rm -f conftest.err conftest.$ac_ext
13393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13394 rm -f conftest.err conftest.$ac_ext
13395 if $ac_preproc_ok; then
13400 ac_cv_prog_CXXCPP=$CXXCPP
13403 CXXCPP=$ac_cv_prog_CXXCPP
13405 ac_cv_prog_CXXCPP=$CXXCPP
13407 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
13408 echo "${ECHO_T}$CXXCPP" >&6; }
13409 ac_preproc_ok=false
13410 for ac_cxx_preproc_warn_flag in '' yes
13412 # Use a header file that comes with gcc, so configuring glibc
13413 # with a fresh cross-compiler works.
13414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13415 # <limits.h> exists even on freestanding compilers.
13416 # On the NeXT, cc -E runs the code through the compiler's parser,
13417 # not just through cpp. "Syntax error
" is here to catch this case.
13418 cat >conftest.$ac_ext <<_ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13425 # include <limits.h>
13427 # include <assert.h>
13431 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13432 case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13439 grep -v '^ *+' conftest.er1 >conftest.err
13441 cat conftest.err >&5
13442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13443 (exit $ac_status); } >/dev/null; then
13444 if test -s conftest.err; then
13445 ac_cpp_err=$ac_cxx_preproc_warn_flag
13446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13453 if test -z "$ac_cpp_err"; then
13456 echo "$as_me: failed program was
:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 # Broken: fails on valid input.
13463 rm -f conftest.err conftest.$ac_ext
13465 # OK, works on sane cases. Now check whether nonexistent headers
13466 # can be detected and how.
13467 cat >conftest.$ac_ext <<_ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <ac_nonexistent.h>
13475 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13483 grep -v '^ *+' conftest.er1 >conftest.err
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13487 (exit $ac_status); } >/dev/null; then
13488 if test -s conftest.err; then
13489 ac_cpp_err=$ac_cxx_preproc_warn_flag
13490 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13497 if test -z "$ac_cpp_err"; then
13498 # Broken: success on invalid input.
13501 echo "$as_me: failed program was
:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 # Passes both tests.
13509 rm -f conftest.err conftest.$ac_ext
13512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13513 rm -f conftest.err conftest.$ac_ext
13514 if $ac_preproc_ok; then
13517 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
13518 See \
`config.log' for more details." >&5
13519 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13520 See \`config.log
' for more details." >&2;}
13521 { (exit 1); exit 1; }; }
13525 ac_cpp='$CXXCPP $CPPFLAGS'
13526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13527 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13534 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13535 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13536 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13537 if test -n "$ac_tool_prefix"; then
13538 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
13540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13544 if test "${ac_cv_prog_F77+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13547 if test -n "$F77"; then
13548 ac_cv_prog_F77="$F77" # Let the user override the test.
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $PATH
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13557 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13567 F77=$ac_cv_prog_F77
13568 if test -n "$F77"; then
13569 { echo "$as_me:$LINENO: result: $F77" >&5
13570 echo "${ECHO_T}$F77" >&6; }
13572 { echo "$as_me:$LINENO: result: no" >&5
13573 echo "${ECHO_T}no" >&6; }
13577 test -n "$F77" && break
13580 if test -z "$F77"; then
13582 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
13584 # Extract the first word of "$ac_prog", so it can be a program name with args.
13585 set dummy $ac_prog; ac_word=$2
13586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13588 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 if test -n "$ac_ct_F77"; then
13592 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 for as_dir in $PATH
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
13600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13601 ac_cv_prog_ac_ct_F77="$ac_prog"
13602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13611 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13612 if test -n "$ac_ct_F77"; then
13613 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13614 echo "${ECHO_T}$ac_ct_F77" >&6; }
13616 { echo "$as_me:$LINENO: result: no" >&5
13617 echo "${ECHO_T}no" >&6; }
13621 test -n "$ac_ct_F77" && break
13624 if test "x$ac_ct_F77" = x; then
13627 case $cross_compiling:$ac_tool_warned in
13629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13630 whose name does not start with the host triplet. If you think this
13631 configuration is useful to you, please write to autoconf@gnu.org." >&5
13632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13633 whose name does not start with the host triplet. If you think this
13634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13635 ac_tool_warned=yes ;;
13642 # Provide some information about the compiler.
13643 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13644 ac_compiler=`set X $ac_compile; echo $2`
13645 { (ac_try="$ac_compiler --version >&5"
13646 case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_compiler --version >&5") 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }
13655 { (ac_try="$ac_compiler -v >&5"
13656 case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_compiler -v >&5") 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }
13665 { (ac_try="$ac_compiler -V >&5"
13666 case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_compiler -V >&5") 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }
13677 # If we don't use
`.F' as extension, the preprocessor is not run on the
13678 # input file. (Note that this only needs to work for GNU compilers.)
13679 ac_save_ext=$ac_ext
13681 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13682 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13683 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 cat >conftest.$ac_ext <<_ACEOF
13694 rm -f conftest.$ac_objext
13695 if { (ac_try="$ac_compile"
13696 case "(($ac_try" in
13697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13698 *) ac_try_echo
=$ac_try;;
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_compile") 2>conftest.er1
13703 grep -v '^ *+' conftest.er1
>conftest.err
13705 cat conftest.err
>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13709 { (case "(($ac_try" in
13710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; } &&
13718 { ac_try='test -s conftest.$ac_objext'
13719 { (case "(($ac_try" in
13720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13721 *) ac_try_echo
=$ac_try;;
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_try") 2>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13728 ac_compiler_gnu
=yes
13730 echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.
$ac_ext >&5
13736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13737 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13740 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13741 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13742 ac_ext
=$ac_save_ext
13743 ac_test_FFLAGS
=${FFLAGS+set}
13744 ac_save_FFLAGS
=$FFLAGS
13746 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13747 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13748 if test "${ac_cv_prog_f77_g+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.
$ac_ext <<_ACEOF
13757 rm -f conftest.
$ac_objext
13758 if { (ac_try
="$ac_compile"
13759 case "(($ac_try" in
13760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_compile") 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13772 { (case "(($ac_try" in
13773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13774 *) ac_try_echo
=$ac_try;;
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777 (eval "$ac_try") 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try
='test -s conftest.$ac_objext'
13782 { (case "(($ac_try" in
13783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_try") 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13791 ac_cv_prog_f77_g=yes
13793 echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13796 ac_cv_prog_f77_g=no
13799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13803 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13804 if test "$ac_test_FFLAGS" = set; then
13805 FFLAGS=$ac_save_FFLAGS
13806 elif test $ac_cv_prog_f77_g = yes; then
13807 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13813 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13820 G77=`test $ac_compiler_gnu = yes && echo yes`
13822 ac_cpp='$CPP $CPPFLAGS'
13823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13829 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13831 # find the maximum length of command line arguments
13832 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13833 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13834 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 # On DJGPP, this test can blow up pretty badly due to problems in libc
13843 # (any single argument exceeding 2000 bytes causes a buffer overrun
13844 # during glob expansion). Even if it were fixed, the result of this
13845 # check would be larger than it should be.
13846 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13850 # Under GNU Hurd, this test is not required because there is
13851 # no limit to the length of command line arguments.
13852 # Libtool will interpret -1 as no limit whatsoever
13853 lt_cv_sys_max_cmd_len=-1;
13857 # On Win9x/ME, this test blows up -- it succeeds, but takes
13858 # about 5 minutes as the teststring grows exponentially.
13859 # Worse, since 9x/ME are not pre-emptively multitasking,
13860 # you end up with a "frozen" computer, even though with patience
13861 # the test eventually succeeds (with a max line length of 256k).
13862 # Instead, let's just punt: use the minimum linelength reported by
13863 # all of the supported platforms: 8192 (on NT/2K/XP).
13864 lt_cv_sys_max_cmd_len=8192;
13868 # On AmigaOS with pdksh, this test takes hours, literally.
13869 # So we just punt and use a minimum line length of 8192.
13870 lt_cv_sys_max_cmd_len=8192;
13873 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13874 # This has been around since 386BSD, at least. Likely further.
13875 if test -x /sbin/sysctl; then
13876 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13877 elif test -x /usr/sbin/sysctl; then
13878 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13880 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13882 # And add a safety zone
13883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13888 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13889 lt_cv_sys_max_cmd_len=196608
13893 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13894 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13895 # nice to cause kernel panics so lets avoid the loop below.
13896 # First set a reasonable default.
13897 lt_cv_sys_max_cmd_len=16384
13899 if test -x /sbin/sysconfig; then
13900 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
13901 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13906 lt_cv_sys_max_cmd_len=102400
13908 sysv5* | sco5v6* | sysv4.2uw2*)
13909 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
13910 if test -n "$kargmax"; then
13911 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
13913 lt_cv_sys_max_cmd_len=32768
13917 # If test is not a shell built-in, we'll probably end up computing a
13918 # maximum length that is only half of the actual maximum length, but
13920 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13921 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
13922 = "XX$teststring") >/dev/null 2>&1 &&
13923 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13924 lt_cv_sys_max_cmd_len=$new_result &&
13925 test $i != 17 # 1/2 MB should be enough
13928 teststring=$teststring$teststring
13931 # Add a significant safety factor because C++ compilers can tack on massive
13932 # amounts of additional arguments before passing them to the linker.
13933 # It appears as though 1/2 is a usable value.
13934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
13940 if test -n $lt_cv_sys_max_cmd_len ; then
13941 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13942 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13944 { echo "$as_me:$LINENO: result: none" >&5
13945 echo "${ECHO_T}none" >&6; }
13951 # Check for command to grab the raw symbol name followed by C symbol from nm.
13952 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13953 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13954 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 # These are sane defaults that work on at least a few old systems.
13959 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13961 # Character class describing NM global symbol codes.
13962 symcode='[BCDEGRST]'
13964 # Regexp to match symbols that can be accessed directly from C.
13965 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13967 # Transform an extracted symbol line into a proper C declaration
13968 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13970 # Transform an extracted symbol line into symbol name and symbol address
13971 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'"
13973 # Define system-specific variables.
13978 cygwin* | mingw* | pw32*)
13979 symcode='[ABCDGISTW]'
13981 hpux*) # Its linker distinguishes data from code symbols
13982 if test "$host_cpu" = ia64; then
13983 symcode='[ABCDEGRST]'
13985 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13986 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'"
13989 if test "$host_cpu" = ia64; then
13990 symcode='[ABCDGIRSTW]'
13991 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13992 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'"
13995 irix* | nonstopux*)
13996 symcode='[BCDEGRST]'
13999 symcode='[BCDEGQRST]'
14010 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14018 # Handle CRLF in mingw tool chain
14022 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
14026 # If we're using GNU nm, then use its standard symbol codes.
14027 case `$NM -V 2>&1` in
14028 *GNU* | *'with BFD'*)
14029 symcode='[ABCDGIRSTW]' ;;
14032 # Try without a prefix undercore, then with it.
14033 for ac_symprfx in "" "_"; do
14035 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14036 symxfrm="\\1 $ac_symprfx\\2 \\2"
14038 # Write the raw and C identifiers.
14039 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14041 # Check to see that the pipe works correctly.
14045 cat > conftest.$ac_ext <<EOF
14050 void nm_test_func(){}
14054 int main(){nm_test_var='a';nm_test_func();return(0);}
14057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058 (eval $ac_compile) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; then
14062 # Now try to grab the symbols.
14064 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14065 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } && test -s "$nlist"; then
14069 # Try sorting and uniquifying the output.
14070 if sort "$nlist" | uniq > "$nlist"T; then
14071 mv -f "$nlist"T "$nlist"
14076 # Make sure that we snagged all the symbols we need.
14077 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14078 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14079 cat <<EOF > conftest.$ac_ext
14085 # Now generate the symbol file.
14086 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14088 cat <<EOF >> conftest.$ac_ext
14089 #if defined (__STDC__) && __STDC__
14090 # define lt_ptr_t void *
14092 # define lt_ptr_t char *
14096 /* The mapping between symbol names and symbols. */
14101 lt_preloaded_symbols[] =
14104 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14105 cat <<\EOF >> conftest.$ac_ext
14113 # Now try linking the two files.
14114 mv conftest.$ac_objext conftstm.$ac_objext
14115 lt_save_LIBS="$LIBS"
14116 lt_save_CFLAGS="$CFLAGS"
14117 LIBS="conftstm.$ac_objext"
14118 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120 (eval $ac_link) 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14126 LIBS="$lt_save_LIBS"
14127 CFLAGS="$lt_save_CFLAGS"
14129 echo "cannot find nm_test_func in $nlist" >&5
14132 echo "cannot find nm_test_var in $nlist" >&5
14135 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14138 echo "$progname: failed program was:" >&5
14139 cat conftest.$ac_ext >&5
14141 rm -f conftest* conftst*
14143 # Do not use the global_symbol_pipe unless it works.
14144 if test "$pipe_works" = yes; then
14147 lt_cv_sys_global_symbol_pipe=
14153 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14154 lt_cv_sys_global_symbol_to_cdecl=
14156 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14157 { echo "$as_me:$LINENO: result: failed" >&5
14158 echo "${ECHO_T}failed" >&6; }
14160 { echo "$as_me:$LINENO: result: ok" >&5
14161 echo "${ECHO_T}ok" >&6; }
14164 { echo "$as_me:$LINENO: checking for objdir" >&5
14165 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14166 if test "${lt_cv_objdir+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 rm -f .libs 2>/dev/null
14170 mkdir .libs 2>/dev/null
14171 if test -d .libs; then
14174 # MS-DOS does not allow filenames that begin with a dot.
14177 rmdir .libs 2>/dev/null
14179 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14180 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14181 objdir=$lt_cv_objdir
14189 # AIX sometimes has problems with the GCC collect2 program. For some
14190 # reason, if we set the COLLECT_NAMES environment variable, the problems
14191 # vanish in a puff of smoke.
14192 if test "X${COLLECT_NAMES+set}" != Xset; then
14194 export COLLECT_NAMES
14199 # Sed substitution that helps us do robust quoting. It backslashifies
14200 # metacharacters that are still active within double-quoted strings.
14201 Xsed='sed -e 1s/^X//'
14202 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
14204 # Same as above, but do not quote variable references.
14205 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
14207 # Sed substitution to delay expansion of an escaped shell variable in a
14208 # double_quote_subst'ed string.
14209 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14211 # Sed substitution to avoid accidental globbing in evaled expressions
14212 no_glob_subst='s/\*/\\\*/g'
14217 # Global variables:
14218 default_ofile=mklib
14219 can_build_shared=yes
14221 # All known linkers require a `.a' archive for static linking (except MSVC,
14222 # which needs '.lib').
14224 ltmain="$ac_aux_dir/ltmain.sh
"
14225 ofile="$default_ofile"
14226 with_gnu_ld="$lt_cv_prog_gnu_ld"
14228 if test -n "$ac_tool_prefix"; then
14229 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14230 set dummy ${ac_tool_prefix}ar; ac_word=$2
14231 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14232 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14233 if test "${ac_cv_prog_AR+set}" = set; then
14234 echo $ECHO_N "(cached
) $ECHO_C" >&6
14236 if test -n "$AR"; then
14237 ac_cv_prog_AR="$AR" # Let the user override the test.
14239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14240 for as_dir in $PATH
14243 test -z "$as_dir" && as_dir=.
14244 for ac_exec_ext in '' $ac_executable_extensions; do
14245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14246 ac_cv_prog_AR="${ac_tool_prefix}ar"
14247 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14257 if test -n "$AR"; then
14258 { echo "$as_me:$LINENO: result
: $AR" >&5
14259 echo "${ECHO_T}$AR" >&6; }
14261 { echo "$as_me:$LINENO: result
: no
" >&5
14262 echo "${ECHO_T}no
" >&6; }
14267 if test -z "$ac_cv_prog_AR"; then
14269 # Extract the first word of "ar", so it can be a program name with args.
14270 set dummy ar; ac_word=$2
14271 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14272 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14273 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14274 echo $ECHO_N "(cached
) $ECHO_C" >&6
14276 if test -n "$ac_ct_AR"; then
14277 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
14285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14286 ac_cv_prog_ac_ct_AR="ar"
14287 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14296 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14297 if test -n "$ac_ct_AR"; then
14298 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14299 echo "${ECHO_T}$ac_ct_AR" >&6; }
14301 { echo "$as_me:$LINENO: result
: no
" >&5
14302 echo "${ECHO_T}no
" >&6; }
14305 if test "x
$ac_ct_AR" = x; then
14308 case $cross_compiling:$ac_tool_warned in
14310 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14311 whose name does not start with the
host triplet. If you think this
14312 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14313 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14314 whose name does not start with the
host triplet. If you think this
14315 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14316 ac_tool_warned=yes ;;
14321 AR="$ac_cv_prog_AR"
14324 if test -n "$ac_tool_prefix"; then
14325 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14326 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14327 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14328 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14329 if test "${ac_cv_prog_RANLIB+set}" = set; then
14330 echo $ECHO_N "(cached
) $ECHO_C" >&6
14332 if test -n "$RANLIB"; then
14333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14342 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14343 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14352 RANLIB=$ac_cv_prog_RANLIB
14353 if test -n "$RANLIB"; then
14354 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
14355 echo "${ECHO_T}$RANLIB" >&6; }
14357 { echo "$as_me:$LINENO: result
: no
" >&5
14358 echo "${ECHO_T}no
" >&6; }
14363 if test -z "$ac_cv_prog_RANLIB"; then
14364 ac_ct_RANLIB=$RANLIB
14365 # Extract the first word of "ranlib
", so it can be a program name with args.
14366 set dummy ranlib; ac_word=$2
14367 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14368 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14369 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14370 echo $ECHO_N "(cached
) $ECHO_C" >&6
14372 if test -n "$ac_ct_RANLIB"; then
14373 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14382 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14383 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14392 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14393 if test -n "$ac_ct_RANLIB"; then
14394 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
14395 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14397 { echo "$as_me:$LINENO: result
: no
" >&5
14398 echo "${ECHO_T}no
" >&6; }
14401 if test "x
$ac_ct_RANLIB" = x; then
14404 case $cross_compiling:$ac_tool_warned in
14406 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14407 whose name does not start with the
host triplet. If you think this
14408 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14409 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14410 whose name does not start with the
host triplet. If you think this
14411 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14412 ac_tool_warned=yes ;;
14414 RANLIB=$ac_ct_RANLIB
14417 RANLIB="$ac_cv_prog_RANLIB"
14420 if test -n "$ac_tool_prefix"; then
14421 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14422 set dummy ${ac_tool_prefix}strip; ac_word=$2
14423 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14424 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14425 if test "${ac_cv_prog_STRIP+set}" = set; then
14426 echo $ECHO_N "(cached
) $ECHO_C" >&6
14428 if test -n "$STRIP"; then
14429 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432 for as_dir in $PATH
14435 test -z "$as_dir" && as_dir=.
14436 for ac_exec_ext in '' $ac_executable_extensions; do
14437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14438 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14439 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14448 STRIP=$ac_cv_prog_STRIP
14449 if test -n "$STRIP"; then
14450 { echo "$as_me:$LINENO: result
: $STRIP" >&5
14451 echo "${ECHO_T}$STRIP" >&6; }
14453 { echo "$as_me:$LINENO: result
: no
" >&5
14454 echo "${ECHO_T}no
" >&6; }
14459 if test -z "$ac_cv_prog_STRIP"; then
14461 # Extract the first word of "strip
", so it can be a program name with args.
14462 set dummy strip; ac_word=$2
14463 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14464 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14465 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14466 echo $ECHO_N "(cached
) $ECHO_C" >&6
14468 if test -n "$ac_ct_STRIP"; then
14469 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14472 for as_dir in $PATH
14475 test -z "$as_dir" && as_dir=.
14476 for ac_exec_ext in '' $ac_executable_extensions; do
14477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14478 ac_cv_prog_ac_ct_STRIP="strip
"
14479 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14488 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14489 if test -n "$ac_ct_STRIP"; then
14490 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
14491 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14493 { echo "$as_me:$LINENO: result
: no
" >&5
14494 echo "${ECHO_T}no
" >&6; }
14497 if test "x
$ac_ct_STRIP" = x; then
14500 case $cross_compiling:$ac_tool_warned in
14502 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14503 whose name does not start with the
host triplet. If you think this
14504 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14505 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14506 whose name does not start with the
host triplet. If you think this
14507 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14508 ac_tool_warned=yes ;;
14513 STRIP="$ac_cv_prog_STRIP"
14518 old_CFLAGS="$CFLAGS"
14520 # Set sane defaults for various variables
14521 test -z "$AR" && AR=ar
14522 test -z "$AR_FLAGS" && AR_FLAGS=cru
14523 test -z "$AS" && AS=as
14524 test -z "$CC" && CC=cc
14525 test -z "$LTCC" && LTCC=$CC
14526 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14527 test -z "$DLLTOOL" && DLLTOOL=dlltool
14528 test -z "$LD" && LD=ld
14529 test -z "$LN_S" && LN_S="ln -s"
14530 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14531 test -z "$NM" && NM=nm
14532 test -z "$SED" && SED=sed
14533 test -z "$OBJDUMP" && OBJDUMP=objdump
14534 test -z "$RANLIB" && RANLIB=:
14535 test -z "$STRIP" && STRIP=:
14536 test -z "$ac_objext" && ac_objext=o
14538 # Determine commands to create old-style static archives.
14539 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14540 old_postinstall_cmds='chmod 644 $oldlib'
14541 old_postuninstall_cmds=
14543 if test -n "$RANLIB"; then
14546 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14549 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14552 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14555 for cc_temp in $compiler""; do
14557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14563 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14566 # Only perform the check for file, if the check method requires it
14567 case $deplibs_check_method in
14569 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14570 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
14571 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
14572 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14573 echo $ECHO_N "(cached
) $ECHO_C" >&6
14577 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14580 lt_save_MAGIC_CMD="$MAGIC_CMD"
14581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14582 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14583 for ac_dir in $ac_dummy; do
14585 test -z "$ac_dir" && ac_dir=.
14586 if test -f $ac_dir/${ac_tool_prefix}file; then
14587 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14588 if test -n "$file_magic_test_file"; then
14589 case $deplibs_check_method in
14591 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14593 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14594 $EGREP "$file_magic_regex" > /dev/null; then
14599 *** Warning: the command libtool uses to detect shared libraries,
14600 *** $file_magic_cmd, produces output that libtool cannot recognize.
14601 *** The result is that libtool may fail to recognize shared libraries
14602 *** as such. This will affect the creation of libtool libraries that
14603 *** depend on shared libraries, but programs linked with such libtool
14604 *** libraries will work regardless of this problem. Nevertheless, you
14605 *** may want to report the problem to your system manager and/or to
14606 *** bug-libtool@gnu.org
14616 MAGIC_CMD="$lt_save_MAGIC_CMD"
14621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14622 if test -n "$MAGIC_CMD"; then
14623 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14624 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14626 { echo "$as_me:$LINENO: result
: no
" >&5
14627 echo "${ECHO_T}no
" >&6; }
14630 if test -z "$lt_cv_path_MAGIC_CMD"; then
14631 if test -n "$ac_tool_prefix"; then
14632 { echo "$as_me:$LINENO: checking
for file" >&5
14633 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14634 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14635 echo $ECHO_N "(cached
) $ECHO_C" >&6
14639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14642 lt_save_MAGIC_CMD="$MAGIC_CMD"
14643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14644 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14645 for ac_dir in $ac_dummy; do
14647 test -z "$ac_dir" && ac_dir=.
14648 if test -f $ac_dir/file; then
14649 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14650 if test -n "$file_magic_test_file"; then
14651 case $deplibs_check_method in
14653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14656 $EGREP "$file_magic_regex" > /dev/null; then
14661 *** Warning: the command libtool uses to detect shared libraries,
14662 *** $file_magic_cmd, produces output that libtool cannot recognize.
14663 *** The result is that libtool may fail to recognize shared libraries
14664 *** as such. This will affect the creation of libtool libraries that
14665 *** depend on shared libraries, but programs linked with such libtool
14666 *** libraries will work regardless of this problem. Nevertheless, you
14667 *** may want to report the problem to your system manager and/or to
14668 *** bug-libtool@gnu.org
14678 MAGIC_CMD="$lt_save_MAGIC_CMD"
14683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14684 if test -n "$MAGIC_CMD"; then
14685 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14686 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14688 { echo "$as_me:$LINENO: result
: no
" >&5
14689 echo "${ECHO_T}no
" >&6; }
14702 enable_win32_dll=no
14704 # Check whether --enable-libtool-lock was given.
14705 if test "${enable_libtool_lock+set}" = set; then
14706 enableval=$enable_libtool_lock;
14709 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14712 # Check whether --with-pic was given.
14713 if test "${with_pic+set}" = set; then
14714 withval=$with_pic; pic_mode="$withval"
14719 test -z "$pic_mode" && pic_mode=default
14721 # Use C for the default configuration in the libtool script
14725 ac_cpp='$CPP $CPPFLAGS'
14726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14731 # Source file extension for C test sources.
14734 # Object file extension for compiled C test sources.
14738 # Code to be used in simple compile tests
14739 lt_simple_compile_test_code="int some_variable
= 0;\n"
14741 # Code to be used in simple link tests
14742 lt_simple_link_test_code='int main(){return(0);}\n'
14745 # If no C compiler was specified, use CC.
14748 # If no C compiler flags were specified, use CFLAGS.
14749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14751 # Allow CC to be a program name with arguments.
14755 # save warnings/boilerplate of simple test code
14756 ac_outfile=conftest.$ac_objext
14757 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14758 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14759 _lt_compiler_boilerplate=`cat conftest.err`
14762 ac_outfile=conftest.$ac_objext
14763 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14764 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14765 _lt_linker_boilerplate=`cat conftest.err`
14770 lt_prog_compiler_no_builtin_flag=
14772 if test "$GCC" = yes; then
14773 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14776 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14777 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14778 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14779 echo $ECHO_N "(cached
) $ECHO_C" >&6
14781 lt_cv_prog_compiler_rtti_exceptions=no
14782 ac_outfile=conftest.$ac_objext
14783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14784 lt_compiler_flag="-fno-rtti -fno-exceptions"
14785 # Insert the option either (1) after the last *FLAGS variable, or
14786 # (2) before a word containing "conftest.
", or (3) at the end.
14787 # Note that $ac_compile itself does not contain backslashes and begins
14788 # with a dollar sign (not a hyphen), so the echo should work correctly.
14789 # The option is referenced via a variable to avoid confusing sed.
14790 lt_compile=`echo "$ac_compile" | $SED \
14791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14793 -e 's:$: $lt_compiler_flag:'`
14794 (eval echo "\"\
$as_me:14794: $lt_compile\"" >&5)
14795 (eval "$lt_compile" 2>conftest.err)
14797 cat conftest.err >&5
14798 echo "$as_me:14798: \$?
= $ac_status" >&5
14799 if (exit $ac_status) && test -s "$ac_outfile"; then
14800 # The compiler can only warn and ignore the option if not recognized
14801 # So say no if there are warnings other than the usual output.
14802 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14805 lt_cv_prog_compiler_rtti_exceptions=yes
14811 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14812 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14814 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14815 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14822 lt_prog_compiler_wl=
14823 lt_prog_compiler_pic=
14824 lt_prog_compiler_static=
14826 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14827 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14829 if test "$GCC" = yes; then
14830 lt_prog_compiler_wl='-Wl,'
14831 lt_prog_compiler_static='-static'
14835 # All AIX code is PIC.
14836 if test "$host_cpu" = ia64; then
14837 # AIX 5 now supports IA64 processor
14838 lt_prog_compiler_static='-Bstatic'
14843 # FIXME: we need at least 68020 code to build shared libraries, but
14844 # adding the `-m68020' flag to GCC prevents building anything better,
14846 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14849 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14850 # PIC is the default for these OSes.
14853 mingw* | pw32* | os2*)
14854 # This hack is so that the source file can tell whether it is being
14855 # built for inclusion in a dll (and should export symbols for example).
14856 lt_prog_compiler_pic='-DDLL_EXPORT'
14859 darwin* | rhapsody*)
14860 # PIC is the default on this platform
14861 # Common symbols not allowed in MH_DYLIB files
14862 lt_prog_compiler_pic='-fno-common'
14866 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14867 # Instead, we relocate shared libraries at runtime.
14871 # Just because we use GCC doesn't mean we suddenly get shared libraries
14872 # on systems that don't support them.
14873 lt_prog_compiler_can_build_shared=no
14878 if test -d /usr/nec; then
14879 lt_prog_compiler_pic=-Kconform_pic
14884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14885 # not for PA HP-UX.
14891 lt_prog_compiler_pic='-fPIC'
14897 lt_prog_compiler_pic='-fPIC'
14901 # PORTME Check for flag to pass linker flags through the system compiler.
14904 lt_prog_compiler_wl='-Wl,'
14905 if test "$host_cpu" = ia64; then
14906 # AIX 5 now supports IA64 processor
14907 lt_prog_compiler_static='-Bstatic'
14909 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14913 # PIC is the default on this platform
14914 # Common symbols not allowed in MH_DYLIB files
14915 case $cc_basename in
14917 lt_prog_compiler_pic='-qnocommon'
14918 lt_prog_compiler_wl='-Wl,'
14923 mingw* | pw32* | os2*)
14924 # This hack is so that the source file can tell whether it is being
14925 # built for inclusion in a dll (and should export symbols for example).
14926 lt_prog_compiler_pic='-DDLL_EXPORT'
14929 hpux9* | hpux10* | hpux11*)
14930 lt_prog_compiler_wl='-Wl,'
14931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14932 # not for PA HP-UX.
14938 lt_prog_compiler_pic='+Z'
14941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14942 lt_prog_compiler_static='${wl}-a ${wl}archive'
14945 irix5* | irix6* | nonstopux*)
14946 lt_prog_compiler_wl='-Wl,'
14947 # PIC (with -KPIC) is the default.
14948 lt_prog_compiler_static='-non_shared'
14952 lt_prog_compiler_pic='-KPIC'
14953 lt_prog_compiler_static='-Bstatic'
14957 case $cc_basename in
14959 lt_prog_compiler_wl='-Wl,'
14960 lt_prog_compiler_pic='-KPIC'
14961 lt_prog_compiler_static='-static'
14963 pgcc* | pgf77* | pgf90* | pgf95*)
14964 # Portland Group compilers (*not* the Pentium gcc compiler,
14965 # which looks to be a dead project)
14966 lt_prog_compiler_wl='-Wl,'
14967 lt_prog_compiler_pic='-fpic'
14968 lt_prog_compiler_static='-Bstatic'
14971 lt_prog_compiler_wl='-Wl,'
14972 # All Alpha code is PIC.
14973 lt_prog_compiler_static='-non_shared'
14978 osf3* | osf4* | osf5*)
14979 lt_prog_compiler_wl='-Wl,'
14980 # All OSF/1 code is PIC.
14981 lt_prog_compiler_static='-non_shared'
14985 lt_prog_compiler_pic='-KPIC'
14986 lt_prog_compiler_static='-Bstatic'
14987 case $cc_basename in
14988 f77* | f90* | f95*)
14989 lt_prog_compiler_wl='-Qoption ld ';;
14991 lt_prog_compiler_wl='-Wl,';;
14996 lt_prog_compiler_wl='-Qoption ld '
14997 lt_prog_compiler_pic='-PIC'
14998 lt_prog_compiler_static='-Bstatic'
15001 sysv4 | sysv4.2uw2* | sysv4.3*)
15002 lt_prog_compiler_wl='-Wl,'
15003 lt_prog_compiler_pic='-KPIC'
15004 lt_prog_compiler_static='-Bstatic'
15008 if test -d /usr/nec ;then
15009 lt_prog_compiler_pic='-Kconform_pic'
15010 lt_prog_compiler_static='-Bstatic'
15014 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15015 lt_prog_compiler_wl='-Wl,'
15016 lt_prog_compiler_pic='-KPIC'
15017 lt_prog_compiler_static='-Bstatic'
15021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_can_build_shared=no
15026 lt_prog_compiler_pic='-pic'
15027 lt_prog_compiler_static='-Bstatic'
15031 lt_prog_compiler_can_build_shared=no
15036 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
15037 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15040 # Check to make sure the PIC flag actually works.
15042 if test -n "$lt_prog_compiler_pic"; then
15044 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15045 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
15046 if test "${lt_prog_compiler_pic_works+set}" = set; then
15047 echo $ECHO_N "(cached
) $ECHO_C" >&6
15049 lt_prog_compiler_pic_works=no
15050 ac_outfile=conftest.$ac_objext
15051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15052 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15053 # Insert the option either (1) after the last *FLAGS variable, or
15054 # (2) before a word containing "conftest.
", or (3) at the end.
15055 # Note that $ac_compile itself does not contain backslashes and begins
15056 # with a dollar sign (not a hyphen), so the echo should work correctly.
15057 # The option is referenced via a variable to avoid confusing sed.
15058 lt_compile=`echo "$ac_compile" | $SED \
15059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15061 -e 's:$: $lt_compiler_flag:'`
15062 (eval echo "\"\
$as_me:15062: $lt_compile\"" >&5)
15063 (eval "$lt_compile" 2>conftest.err)
15065 cat conftest.err >&5
15066 echo "$as_me:15066: \$?
= $ac_status" >&5
15067 if (exit $ac_status) && test -s "$ac_outfile"; then
15068 # The compiler can only warn and ignore the option if not recognized
15069 # So say no if there are warnings other than the usual output.
15070 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15072 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15073 lt_prog_compiler_pic_works=yes
15079 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
15080 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15082 if test x"$lt_prog_compiler_pic_works" = xyes; then
15083 case $lt_prog_compiler_pic in
15085 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15088 lt_prog_compiler_pic=
15089 lt_prog_compiler_can_build_shared=no
15094 # For platforms which do not support PIC, -DPIC is meaningless:
15096 lt_prog_compiler_pic=
15099 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15104 # Check to make sure the static flag actually works.
15106 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15107 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15108 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
15109 if test "${lt_prog_compiler_static_works+set}" = set; then
15110 echo $ECHO_N "(cached
) $ECHO_C" >&6
15112 lt_prog_compiler_static_works=no
15113 save_LDFLAGS="$LDFLAGS"
15114 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15115 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15116 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15117 # The linker can only warn and ignore the option if not recognized
15118 # So say no if there are warnings
15119 if test -s conftest.err; then
15120 # Append any errors to the config.log.
15121 cat conftest.err 1>&5
15122 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15124 if diff conftest.exp conftest.er2 >/dev/null; then
15125 lt_prog_compiler_static_works=yes
15128 lt_prog_compiler_static_works=yes
15132 LDFLAGS="$save_LDFLAGS"
15135 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
15136 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15138 if test x"$lt_prog_compiler_static_works" = xyes; then
15141 lt_prog_compiler_static=
15145 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15146 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
15147 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15148 echo $ECHO_N "(cached
) $ECHO_C" >&6
15150 lt_cv_prog_compiler_c_o=no
15151 $rm -r conftest 2>/dev/null
15155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15157 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15158 # Insert the option either (1) after the last *FLAGS variable, or
15159 # (2) before a word containing "conftest.
", or (3) at the end.
15160 # Note that $ac_compile itself does not contain backslashes and begins
15161 # with a dollar sign (not a hyphen), so the echo should work correctly.
15162 lt_compile=`echo "$ac_compile" | $SED \
15163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15165 -e 's:$: $lt_compiler_flag:'`
15166 (eval echo "\"\
$as_me:15166: $lt_compile\"" >&5)
15167 (eval "$lt_compile" 2>out/conftest.err)
15169 cat out/conftest.err >&5
15170 echo "$as_me:15170: \$?
= $ac_status" >&5
15171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15173 # The compiler can only warn and ignore the option if not recognized
15174 # So say no if there are warnings
15175 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15178 lt_cv_prog_compiler_c_o=yes
15183 # SGI C++ compiler will create directory out/ii_files/ for
15184 # template instantiation
15185 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15186 $rm out/* && rmdir out
15192 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
15193 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15196 hard_links="nottested
"
15197 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15198 # do not overwrite the value of need_locks provided by the user
15199 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
15200 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
15203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15205 ln conftest.a conftest.b 2>&5 || hard_links=no
15206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15207 { echo "$as_me:$LINENO: result
: $hard_links" >&5
15208 echo "${ECHO_T}$hard_links" >&6; }
15209 if test "$hard_links" = no; then
15210 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15211 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15218 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15219 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
15222 allow_undefined_flag=
15223 enable_shared_with_static_runtimes=no
15225 archive_expsym_cmds=
15226 old_archive_From_new_cmds=
15227 old_archive_from_expsyms_cmds=
15228 export_dynamic_flag_spec=
15229 whole_archive_flag_spec=
15230 thread_safe_flag_spec=
15231 hardcode_libdir_flag_spec=
15232 hardcode_libdir_flag_spec_ld=
15233 hardcode_libdir_separator=
15235 hardcode_minus_L=no
15236 hardcode_shlibpath_var=unsupported
15237 link_all_deplibs=unknown
15238 hardcode_automatic=no
15240 module_expsym_cmds=
15241 always_export_symbols=no
15242 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15243 # include_expsyms should be a list of space-separated symbols to be *always*
15244 # included in the symbol list
15246 # exclude_expsyms can be an extended regexp of symbols to exclude
15247 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15248 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15249 # as well as any symbol that contains `d'.
15250 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
15251 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15252 # platforms (ab)use it in PIC code, but their linkers get confused if
15253 # the symbol is explicitly referenced. Since portable code cannot
15254 # rely on this symbol name, it's probably fine to never include it in
15255 # preloaded symbol tables.
15256 extract_expsyms_cmds=
15257 # Just being paranoid about ensuring that cc_basename is set.
15258 for cc_temp in $compiler""; do
15260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15266 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
15269 cygwin* | mingw* | pw32*)
15270 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15271 # When not using gcc, we currently assume that we are using
15272 # Microsoft Visual C++.
15273 if test "$GCC" != yes; then
15278 # we just hope/assume this is gcc and not c89 (= MSVC++)
15287 if test "$with_gnu_ld" = yes; then
15288 # If archive_cmds runs LD, not CC, wlarc should be empty
15291 # Set some defaults for GNU ld with shared library support. These
15292 # are reset later if shared libraries are not supported. Putting them
15293 # here allows them to be overridden if necessary.
15294 runpath_var=LD_RUN_PATH
15295 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15296 export_dynamic_flag_spec='${wl}--export-dynamic'
15297 # ancient GNU ld didn't support --whole-archive et. al.
15298 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15299 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15301 whole_archive_flag_spec=
15303 supports_anon_versioning=no
15304 case `$LD -v 2>/dev/null` in
15305 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15306 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15307 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15308 *\ 2.11.*) ;; # other 2.11 versions
15309 *) supports_anon_versioning=yes ;;
15312 # See if GNU ld supports shared libraries.
15314 aix3* | aix4* | aix5*)
15315 # On AIX/PPC, the GNU linker is very broken
15316 if test "$host_cpu" != ia64; then
15320 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15321 *** to be unable to reliably create shared libraries on AIX.
15322 *** Therefore, libtool is disabling shared libraries support. If you
15323 *** really care for shared libraries, you may want to modify your PATH
15324 *** so that a non-GNU linker is found, and then restart.
15331 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)'
15332 hardcode_libdir_flag_spec
='-L$libdir'
15333 hardcode_minus_L
=yes
15335 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15336 # that the semantics of dynamic libraries on AmigaOS, at least up
15337 # to version 4, is to share data among multiple programs linked
15338 # with the same dynamic library. Since this doesn't match the
15339 # behavior of shared libraries on other platforms, we can't use
15345 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15346 allow_undefined_flag
=unsupported
15347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15348 # support --undefined. This deserves some investigation. FIXME
15349 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15355 cygwin
* | mingw
* | pw32
*)
15356 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15357 # as there is no search path for DLLs.
15358 hardcode_libdir_flag_spec
='-L$libdir'
15359 allow_undefined_flag
=unsupported
15360 always_export_symbols
=no
15361 enable_shared_with_static_runtimes
=yes
15362 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15364 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15365 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15366 # If the export-symbols file already is a .def file (1st line
15367 # is EXPORTS), use it as is; otherwise, prepend...
15368 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15369 cp $export_symbols $output_objdir/$soname.def;
15371 echo EXPORTS > $output_objdir/$soname.def;
15372 cat $export_symbols >> $output_objdir/$soname.def;
15374 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15382 hardcode_shlibpath_var
=no
15383 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15384 export_dynamic_flag_spec
='${wl}-E'
15385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15386 # Instead, shared libraries are loaded at an image base (0x10000000 by
15387 # default) and relocated if they conflict, which is a slow very memory
15388 # consuming and fragmenting process. To avoid this, we pick a random,
15389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15390 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15391 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15392 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'
15396 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15398 case $cc_basename,$host_cpu in
15399 pgcc
*) # Portland Group C compiler
15400 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'
15401 tmp_addflag
=' $pic_flag'
15403 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15404 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'
15405 tmp_addflag
=' $pic_flag -Mnomain' ;;
15406 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15407 tmp_addflag
=' -i_dynamic' ;;
15408 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15409 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15410 ifc
* | ifort
*) # Intel Fortran compiler
15411 tmp_addflag
=' -nofor_main' ;;
15413 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15415 if test $supports_anon_versioning = yes; then
15416 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
15417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15418 $echo "local: *; };" >> $output_objdir/$libname.ver~
15419 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15427 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15428 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15431 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15437 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15441 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15442 *** create shared libraries on Solaris systems. Therefore, libtool
15443 *** is disabling shared libraries support. We urge you to upgrade GNU
15444 *** binutils to release 2.9.1 or newer. Another option is to modify
15445 *** your PATH or compiler configuration so that the native linker is
15446 *** used, and then restart.
15449 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15450 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15457 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15458 case `$LD -v 2>&1` in
15459 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15463 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15464 *** reliably create shared libraries on SCO systems. Therefore, libtool
15465 *** is disabling shared libraries support. We urge you to upgrade GNU
15466 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15467 *** your PATH or compiler configuration so that the native linker is
15468 *** used, and then restart.
15473 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15474 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15475 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15476 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15485 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15487 hardcode_direct
=yes
15488 hardcode_shlibpath_var
=no
15492 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15493 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15494 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15501 if test "$ld_shlibs" = no
; then
15503 hardcode_libdir_flag_spec
=
15504 export_dynamic_flag_spec
=
15505 whole_archive_flag_spec
=
15508 # PORTME fill in a description of your system's linker (not GNU ld)
15511 allow_undefined_flag
=unsupported
15512 always_export_symbols
=yes
15513 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'
15514 # Note: this linker hardcodes the directories in LIBPATH if there
15515 # are no directories specified by -L.
15516 hardcode_minus_L
=yes
15517 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15518 # Neither direct hardcoding nor static linking is supported with a
15520 hardcode_direct
=unsupported
15525 if test "$host_cpu" = ia64
; then
15526 # On IA64, the linker does run time linking by default, so we don't
15527 # have to do anything special.
15528 aix_use_runtimelinking
=no
15529 exp_sym_flag
='-Bexport'
15532 # If we're using GNU nm, then we don't want the "-C" option.
15533 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15534 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15535 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'
15537 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'
15539 aix_use_runtimelinking
=no
15541 # Test if we are trying to use run time linking or normal
15542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15543 # need to do runtime linking.
15544 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15545 for ld_flag
in $LDFLAGS; do
15546 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15547 aix_use_runtimelinking
=yes
15554 exp_sym_flag
='-bexport'
15555 no_entry_flag
='-bnoentry'
15558 # When large executables or shared objects are built, AIX ld can
15559 # have problems creating the table of contents. If linking a library
15560 # or program results in "error TOC overflow" add -mminimal-toc to
15561 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15562 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15565 hardcode_direct
=yes
15566 hardcode_libdir_separator
=':'
15567 link_all_deplibs
=yes
15569 if test "$GCC" = yes; then
15570 case $host_os in aix4.
[012]|aix4.
[012].
*)
15571 # We only want to do this on AIX 4.2 and lower, the check
15572 # below for broken collect2 doesn't work under 4.3+
15573 collect2name
=`${CC} -print-prog-name=collect2`
15574 if test -f "$collect2name" && \
15575 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15577 # We have reworked collect2
15578 hardcode_direct
=yes
15580 # We have old collect2
15581 hardcode_direct
=unsupported
15582 # It fails to find uninstalled libraries when the uninstalled
15583 # path is not listed in the libpath. Setting hardcode_minus_L
15584 # to unsupported forces relinking
15585 hardcode_minus_L
=yes
15586 hardcode_libdir_flag_spec
='-L$libdir'
15587 hardcode_libdir_separator
=
15591 shared_flag
='-shared'
15592 if test "$aix_use_runtimelinking" = yes; then
15593 shared_flag
="$shared_flag "'${wl}-G'
15597 if test "$host_cpu" = ia64
; then
15598 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15599 # chokes on -Wl,-G. The following line is correct:
15602 if test "$aix_use_runtimelinking" = yes; then
15603 shared_flag
='${wl}-G'
15605 shared_flag
='${wl}-bM:SRE'
15610 # It seems that -bexpall does not export symbols beginning with
15611 # underscore (_), so it is better to generate a list of symbols to export.
15612 always_export_symbols
=yes
15613 if test "$aix_use_runtimelinking" = yes; then
15614 # Warning - without using the other runtime loading flags (-brtl),
15615 # -berok will link without error, but may produce a broken library.
15616 allow_undefined_flag
='-berok'
15617 # Determine the default libpath from the value encoded in an empty executable.
15618 cat >conftest.
$ac_ext <<_ACEOF
15621 cat confdefs.h
>>conftest.
$ac_ext
15622 cat >>conftest.
$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15633 rm -f conftest.
$ac_objext conftest
$ac_exeext
15634 if { (ac_try
="$ac_link"
15635 case "(($ac_try" in
15636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_link") 2>conftest.er1
15642 grep -v '^ *+' conftest.er1 >conftest.err
15644 cat conftest.err >&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } &&
15647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15648 { (case "(($ac_try" in
15649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15650 *) ac_try_echo
=$ac_try;;
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_try") 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try
='test -s conftest$ac_exeext'
15658 { (case "(($ac_try" in
15659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_try") 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15668 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15670 # Check for a 64-bit object if we didn't find anything.
15671 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; }
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15680 rm -f core conftest.err conftest.$ac_objext \
15681 conftest$ac_exeext conftest.$ac_ext
15682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15684 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15685 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"
15687 if test "$host_cpu" = ia64; then
15688 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15689 allow_undefined_flag="-z nodefs"
15690 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"
15692 # Determine the default libpath from the value encoded in an empty executable.
15693 cat >conftest.$ac_ext <<_ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (ac_try="$ac_link"
15710 case "(($ac_try" in
15711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15712 *) ac_try_echo
=$ac_try;;
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_link") 2>conftest.er1
15717 grep -v '^ *+' conftest.er1
>conftest.err
15719 cat conftest.err
>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15723 { (case "(($ac_try" in
15724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } &&
15732 { ac_try='test -s conftest$ac_exeext'
15733 { (case "(($ac_try" in
15734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15735 *) ac_try_echo
=$ac_try;;
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_try") 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15743 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15745 # Check for a 64-bit object if we didn't find anything.
15746 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; }
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.
$ac_ext >&5
15755 rm -f core conftest.err conftest.
$ac_objext \
15756 conftest
$ac_exeext conftest.
$ac_ext
15757 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15759 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15760 # Warning - without using the other run time loading flags,
15761 # -berok will link without error, but may produce a broken library.
15762 no_undefined_flag
=' ${wl}-bernotok'
15763 allow_undefined_flag
=' ${wl}-berok'
15764 # Exported symbols can be pulled into shared objects from archives
15765 whole_archive_flag_spec
='$convenience'
15766 archive_cmds_need_lc
=yes
15767 # This is similar to how AIX traditionally builds its shared libraries.
15768 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'
15774 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)'
15775 hardcode_libdir_flag_spec
='-L$libdir'
15776 hardcode_minus_L
=yes
15777 # see comment about different semantics on the GNU ld section
15782 export_dynamic_flag_spec
=-rdynamic
15785 cygwin
* | mingw
* | pw32
*)
15786 # When not using gcc, we currently assume that we are using
15787 # Microsoft Visual C++.
15788 # hardcode_libdir_flag_spec is actually meaningless, as there is
15789 # no search path for DLLs.
15790 hardcode_libdir_flag_spec
=' '
15791 allow_undefined_flag
=unsupported
15792 # Tell ltmain to make .lib files, not .a files.
15794 # Tell ltmain to make .dll files, not .so files.
15796 # FIXME: Setting linknames here is a bad hack.
15797 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15798 # The linker will automatically build a .lib file if we build a DLL.
15799 old_archive_From_new_cmds
='true'
15800 # FIXME: Should let the user specify the lib program.
15801 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15802 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15803 enable_shared_with_static_runtimes
=yes
15806 darwin
* | rhapsody
*)
15808 rhapsody
* | darwin1.
[012])
15809 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15812 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15813 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15815 case ${MACOSX_DEPLOYMENT_TARGET} in
15817 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15820 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15826 archive_cmds_need_lc
=no
15828 hardcode_automatic
=yes
15829 hardcode_shlibpath_var
=unsupported
15830 whole_archive_flag_spec
=''
15831 link_all_deplibs
=yes
15832 if test "$GCC" = yes ; then
15833 output_verbose_link_cmd
='echo'
15834 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15835 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15836 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15837 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}'
15838 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}'
15840 case $cc_basename in
15842 output_verbose_link_cmd
='echo'
15843 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15844 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15845 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15846 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}'
15847 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}'
15857 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15858 hardcode_libdir_flag_spec
='-L$libdir'
15859 hardcode_shlibpath_var
=no
15866 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15867 # support. Future versions do this automatically, but an explicit c++rt0.o
15868 # does not break anything, and helps significantly (at the cost of a little
15871 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15872 hardcode_libdir_flag_spec
='-R$libdir'
15873 hardcode_direct
=yes
15874 hardcode_shlibpath_var
=no
15877 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15879 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15880 hardcode_direct
=yes
15881 hardcode_minus_L
=yes
15882 hardcode_shlibpath_var
=no
15885 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15886 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15887 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15888 hardcode_libdir_flag_spec
='-R$libdir'
15889 hardcode_direct
=yes
15890 hardcode_shlibpath_var
=no
15894 if test "$GCC" = yes; then
15895 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'
15897 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'
15899 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15900 hardcode_libdir_separator
=:
15901 hardcode_direct
=yes
15903 # hardcode_minus_L: Not really in the search PATH,
15904 # but as the default location of the library.
15905 hardcode_minus_L
=yes
15906 export_dynamic_flag_spec
='${wl}-E'
15910 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15911 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15913 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15915 if test "$with_gnu_ld" = no
; then
15916 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15917 hardcode_libdir_separator
=:
15919 hardcode_direct
=yes
15920 export_dynamic_flag_spec
='${wl}-E'
15922 # hardcode_minus_L: Not really in the search PATH,
15923 # but as the default location of the library.
15924 hardcode_minus_L
=yes
15929 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15932 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15935 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15938 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15944 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15947 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15950 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15954 if test "$with_gnu_ld" = no
; then
15955 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15956 hardcode_libdir_separator
=:
15960 hardcode_libdir_flag_spec_ld
='+b $libdir'
15962 hardcode_shlibpath_var
=no
15965 hardcode_direct
=yes
15966 export_dynamic_flag_spec
='${wl}-E'
15968 # hardcode_minus_L: Not really in the search PATH,
15969 # but as the default location of the library.
15970 hardcode_minus_L
=yes
15976 irix5
* | irix6
* | nonstopux
*)
15977 if test "$GCC" = yes; then
15978 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'
15980 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'
15981 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15983 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15984 hardcode_libdir_separator
=:
15985 link_all_deplibs
=yes
15989 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15990 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15992 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15994 hardcode_libdir_flag_spec
='-R$libdir'
15995 hardcode_direct
=yes
15996 hardcode_shlibpath_var
=no
16000 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16001 hardcode_direct
=yes
16002 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16003 hardcode_libdir_separator
=:
16004 hardcode_shlibpath_var
=no
16008 hardcode_direct
=yes
16009 hardcode_shlibpath_var
=no
16010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16011 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16012 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16013 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16014 export_dynamic_flag_spec
='${wl}-E'
16017 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16018 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_libdir_flag_spec
='-R$libdir'
16022 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16023 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16030 hardcode_libdir_flag_spec
='-L$libdir'
16031 hardcode_minus_L
=yes
16032 allow_undefined_flag
=unsupported
16033 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'
16034 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16038 if test "$GCC" = yes; then
16039 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16040 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'
16042 allow_undefined_flag
=' -expect_unresolved \*'
16043 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'
16045 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16046 hardcode_libdir_separator
=:
16049 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16050 if test "$GCC" = yes; then
16051 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16052 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'
16053 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16055 allow_undefined_flag
=' -expect_unresolved \*'
16056 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'
16057 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16058 $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'
16060 # Both c and cxx compiler support -rpath directly
16061 hardcode_libdir_flag_spec
='-rpath $libdir'
16063 hardcode_libdir_separator
=:
16067 no_undefined_flag
=' -z text'
16068 if test "$GCC" = yes; then
16070 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16071 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16072 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16075 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16077 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16079 hardcode_libdir_flag_spec
='-R$libdir'
16080 hardcode_shlibpath_var
=no
16082 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16084 # The compiler driver will combine linker options so we
16085 # cannot just pass the convience library names through
16086 # without $wl, iff we do not link with $LD.
16087 # Luckily, gcc supports the same syntax we need for Sun Studio.
16088 # Supported since Solaris 2.6 (maybe 2.5.1?)
16091 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
16093 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' ;;
16096 link_all_deplibs
=yes
16100 if test "x$host_vendor" = xsequent
; then
16101 # Use $CC to link under sequent, because it throws in some extra .o
16102 # files that make .init and .fini sections work.
16103 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16105 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16107 hardcode_libdir_flag_spec
='-L$libdir'
16108 hardcode_direct
=yes
16109 hardcode_minus_L
=yes
16110 hardcode_shlibpath_var
=no
16114 case $host_vendor in
16116 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16117 hardcode_direct
=yes # is this really true???
16120 ## LD is ld it makes a PLAMLIB
16121 ## CC just makes a GrossModule.
16122 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16123 reload_cmds
='$CC -r -o $output$reload_objs'
16127 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16131 runpath_var
='LD_RUN_PATH'
16132 hardcode_shlibpath_var
=no
16136 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137 hardcode_shlibpath_var
=no
16138 export_dynamic_flag_spec
='-Bexport'
16142 if test -d /usr
/nec
; then
16143 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16144 hardcode_shlibpath_var
=no
16145 runpath_var
=LD_RUN_PATH
16146 hardcode_runpath_var
=yes
16151 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
16152 no_undefined_flag
='${wl}-z,text'
16153 archive_cmds_need_lc
=no
16154 hardcode_shlibpath_var
=no
16155 runpath_var
='LD_RUN_PATH'
16157 if test "$GCC" = yes; then
16158 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16159 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16161 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16162 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 sysv5
* | sco3.2v5
* | sco5v6
*)
16167 # Note: We can NOT use -z defs as we might desire, because we do not
16168 # link with -lc, and that would cause any symbols used from libc to
16169 # always be unresolved, which means just about no library would
16170 # ever link correctly. If we're not using GNU ld we use -z text
16171 # though, which does catch some bad symbols but isn't as heavy-handed
16173 no_undefined_flag
='${wl}-z,text'
16174 allow_undefined_flag
='${wl}-z,nodefs'
16175 archive_cmds_need_lc
=no
16176 hardcode_shlibpath_var
=no
16177 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16178 hardcode_libdir_separator
=':'
16179 link_all_deplibs
=yes
16180 export_dynamic_flag_spec
='${wl}-Bexport'
16181 runpath_var
='LD_RUN_PATH'
16183 if test "$GCC" = yes; then
16184 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16185 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16187 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16188 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16193 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16194 hardcode_libdir_flag_spec
='-L$libdir'
16195 hardcode_shlibpath_var
=no
16204 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16205 echo "${ECHO_T}$ld_shlibs" >&6; }
16206 test "$ld_shlibs" = no
&& can_build_shared
=no
16209 # Do we need to explicitly link libc?
16211 case "x$archive_cmds_need_lc" in
16213 # Assume -lc should be added
16214 archive_cmds_need_lc
=yes
16216 if test "$enable_shared" = yes && test "$GCC" = yes; then
16217 case $archive_cmds in
16219 # FIXME: we may have to deal with multi-command sequences.
16222 # Test whether the compiler implicitly links with -lc since on some
16223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16224 # to ld, don't add -lc before -lgcc.
16225 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16226 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16228 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231 (eval $ac_compile) 2>&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } 2>conftest.err
; then
16237 libobjs
=conftest.
$ac_objext
16239 wl
=$lt_prog_compiler_wl
16240 pic_flag
=$lt_prog_compiler_pic
16246 lt_save_allow_undefined_flag
=$allow_undefined_flag
16247 allow_undefined_flag
=
16248 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16249 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }
16254 archive_cmds_need_lc
=no
16256 archive_cmds_need_lc
=yes
16258 allow_undefined_flag
=$lt_save_allow_undefined_flag
16260 cat conftest.err
1>&5
16263 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16264 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16271 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16272 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16273 library_names_spec
=
16274 libname_spec
='lib$name'
16278 postuninstall_cmds
=
16282 shlibpath_overrides_runpath
=unknown
16284 dynamic_linker
="$host_os ld.so"
16285 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16286 if test "$GCC" = yes; then
16287 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16288 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16289 # if the path contains ";" then we assume it to be the separator
16290 # otherwise default to the standard path separator (i.e. ":") - it is
16291 # assumed that no part of a normal pathname contains ";" but that should
16292 # okay in the real world where ";" in dirpaths is itself problematic.
16293 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16295 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16298 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16300 need_lib_prefix
=unknown
16301 hardcode_into_libs
=no
16303 # when you set need_version to no, make sure it does not cause -set_version
16304 # flags to be left without arguments
16305 need_version
=unknown
16310 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16311 shlibpath_var
=LIBPATH
16313 # AIX 3 has no versioning support, so we append a major version to the name.
16314 soname_spec
='${libname}${release}${shared_ext}$major'
16321 hardcode_into_libs
=yes
16322 if test "$host_cpu" = ia64
; then
16323 # AIX 5 supports IA64
16324 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16325 shlibpath_var
=LD_LIBRARY_PATH
16327 # With GCC up to 2.95.x, collect2 would create an import file
16328 # for dependence libraries. The import file would start with
16329 # the line `#! .'. This would cause the generated library to
16330 # depend on `.', always an invalid library. This was fixed in
16331 # development snapshots of GCC prior to 3.0.
16333 aix4 | aix4.
[01] | aix4.
[01].
*)
16334 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16336 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16339 can_build_shared
=no
16343 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16344 # soname into executable. Probably we can add versioning support to
16345 # collect2, so additional links can be useful in future.
16346 if test "$aix_use_runtimelinking" = yes; then
16347 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16348 # instead of lib<name>.a to let people know that these are not
16349 # typical AIX shared libraries.
16350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352 # We preserve .a as extension for shared libraries through AIX4.2
16353 # and later when we are not doing run time linking.
16354 library_names_spec
='${libname}${release}.a $libname.a'
16355 soname_spec
='${libname}${release}${shared_ext}$major'
16357 shlibpath_var
=LIBPATH
16362 library_names_spec
='$libname.ixlibrary $libname.a'
16363 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16364 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'
16368 library_names_spec
='${libname}${shared_ext}'
16369 dynamic_linker
="$host_os ld.so"
16370 shlibpath_var
=LIBRARY_PATH
16376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377 soname_spec
='${libname}${release}${shared_ext}$major'
16378 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16379 shlibpath_var
=LD_LIBRARY_PATH
16380 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16381 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16382 # the default ld.so.conf also contains /usr/contrib/lib and
16383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16384 # libtool to hard-code these into programs
16387 cygwin
* | mingw
* | pw32
*)
16388 version_type
=windows
16393 case $GCC,$host_os in
16394 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16395 library_names_spec
='$libname.dll.a'
16396 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16397 postinstall_cmds
='base_file=`basename \${file}`~
16398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16399 dldir=$destdir/`dirname \$dlpath`~
16400 test -d \$dldir || mkdir -p \$dldir~
16401 $install_prog $dir/$dlname \$dldir/$dlname~
16402 chmod a+x \$dldir/$dlname'
16403 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16404 dlpath=$dir/\$dldll~
16406 shlibpath_overrides_runpath
=yes
16410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16411 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16412 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16415 # MinGW DLLs use traditional 'lib' prefix
16416 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16417 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16418 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16419 # It is most probably a Windows format PATH printed by
16420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16421 # path with ; separators, and with drive letters. We can handle the
16422 # drive letters (cygwin fileutils understands them), so leave them,
16423 # especially as we might pass files found there to a mingw objdump,
16424 # which wouldn't understand a cygwinified path. Ahh.
16425 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16427 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16431 # pw32 DLLs use 'pw' prefix rather than 'lib'
16432 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16438 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16441 dynamic_linker
='Win32 ld.exe'
16442 # FIXME: first we should search . and the directory the executable is in
16446 darwin
* | rhapsody
*)
16447 dynamic_linker
="$host_os dyld"
16448 version_type
=darwin
16451 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16452 soname_spec
='${libname}${release}${major}$shared_ext'
16453 shlibpath_overrides_runpath
=yes
16454 shlibpath_var
=DYLD_LIBRARY_PATH
16455 shrext_cmds
='.dylib'
16456 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16457 if test "$GCC" = yes; then
16458 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"`
16460 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
16462 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16470 soname_spec
='${libname}${release}${shared_ext}$major'
16471 shlibpath_var
=LD_LIBRARY_PATH
16482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16483 soname_spec
='${libname}${release}${shared_ext}$major'
16484 shlibpath_var
=LD_LIBRARY_PATH
16485 shlibpath_overrides_runpath
=no
16486 hardcode_into_libs
=yes
16487 dynamic_linker
='GNU ld.so'
16490 freebsd
* | dragonfly
*)
16491 # DragonFly does not have aout. When/if they implement a new
16492 # versioning mechanism, adjust this.
16493 if test -x /usr
/bin
/objformat
; then
16494 objformat
=`/usr/bin/objformat`
16497 freebsd
[123]*) objformat
=aout
;;
16498 *) objformat
=elf
;;
16501 version_type
=freebsd-
$objformat
16502 case $version_type in
16504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16509 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16513 shlibpath_var
=LD_LIBRARY_PATH
16516 shlibpath_overrides_runpath
=yes
16518 freebsd3.
[01]* | freebsdelf3.
[01]*)
16519 shlibpath_overrides_runpath
=yes
16520 hardcode_into_libs
=yes
16522 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16523 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16524 shlibpath_overrides_runpath
=no
16525 hardcode_into_libs
=yes
16527 freebsd
*) # from 4.6 on
16528 shlibpath_overrides_runpath
=yes
16529 hardcode_into_libs
=yes
16538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16539 soname_spec
='${libname}${release}${shared_ext}$major'
16540 shlibpath_var
=LD_LIBRARY_PATH
16541 hardcode_into_libs
=yes
16544 hpux9
* | hpux10
* | hpux11
*)
16545 # Give a soname corresponding to the major version so that dld.sl refuses to
16546 # link against other versions.
16553 hardcode_into_libs
=yes
16554 dynamic_linker
="$host_os dld.so"
16555 shlibpath_var
=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558 soname_spec
='${libname}${release}${shared_ext}$major'
16559 if test "X$HPUX_IA64_MODE" = X32
; then
16560 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16562 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16564 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16568 hardcode_into_libs
=yes
16569 dynamic_linker
="$host_os dld.sl"
16570 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16571 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573 soname_spec
='${libname}${release}${shared_ext}$major'
16574 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16575 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16579 dynamic_linker
="$host_os dld.sl"
16580 shlibpath_var
=SHLIB_PATH
16581 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583 soname_spec
='${libname}${release}${shared_ext}$major'
16586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16587 postinstall_cmds
='chmod 555 $lib'
16594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16595 soname_spec
='${libname}${release}${shared_ext}$major'
16596 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16597 shlibpath_var
=LD_LIBRARY_PATH
16598 shlibpath_overrides_runpath
=no
16599 hardcode_into_libs
=yes
16602 irix5
* | irix6
* | nonstopux
*)
16604 nonstopux
*) version_type
=nonstopux
;;
16606 if test "$lt_cv_prog_gnu_ld" = yes; then
16614 soname_spec
='${libname}${release}${shared_ext}$major'
16615 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16617 irix5
* | nonstopux
*)
16618 libsuff
= shlibsuff
=
16621 case $LD in # libtool.m4 will add one of these switches to LD
16622 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16623 libsuff
= shlibsuff
= libmagic
=32-bit;;
16624 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16625 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16626 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16627 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16628 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16632 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16633 shlibpath_overrides_runpath
=no
16634 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16635 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16636 hardcode_into_libs
=yes
16639 # No shared lib support for Linux oldld, aout, or coff.
16640 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16644 # This must be Linux ELF.
16649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650 soname_spec
='${libname}${release}${shared_ext}$major'
16651 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16652 shlibpath_var
=LD_LIBRARY_PATH
16653 shlibpath_overrides_runpath
=no
16654 # This implies no fast_install, which is unacceptable.
16655 # Some rework will be needed to allow for fast_install
16656 # before this can be enabled.
16657 hardcode_into_libs
=yes
16659 # Append ld.so.conf contents to the search path
16660 if test -f /etc
/ld.so.conf
; then
16661 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' ' '`
16662 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16665 # We used to test for /lib/ld.so.1 and disable shared libraries on
16666 # powerpc, because MkLinux only supported shared libraries with the
16667 # GNU dynamic linker. Since this was broken with cross compilers,
16668 # most powerpc-linux boxes support dynamic linking these days and
16669 # people can always --disable-shared, the test was removed, and we
16670 # assume the GNU/Linux dynamic linker is in use.
16671 dynamic_linker
='GNU/Linux ld.so'
16678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16679 soname_spec
='${libname}${release}${shared_ext}$major'
16680 shlibpath_var
=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath
=no
16682 hardcode_into_libs
=yes
16683 dynamic_linker
='GNU ld.so'
16690 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16692 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16693 dynamic_linker
='NetBSD (a.out) ld.so'
16695 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16696 soname_spec
='${libname}${release}${shared_ext}$major'
16697 dynamic_linker
='NetBSD ld.elf_so'
16699 shlibpath_var
=LD_LIBRARY_PATH
16700 shlibpath_overrides_runpath
=yes
16701 hardcode_into_libs
=yes
16706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 shlibpath_var
=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath
=yes
16715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 soname_spec
='${libname}${release}${shared_ext}$major'
16717 shlibpath_var
=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath
=yes
16723 sys_lib_dlsearch_path_spec
="/usr/lib"
16725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16727 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16728 *) need_version
=no
;;
16730 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16731 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16732 shlibpath_var
=LD_LIBRARY_PATH
16733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16735 openbsd2.
[89] | openbsd2.
[89].
*)
16736 shlibpath_overrides_runpath
=no
16739 shlibpath_overrides_runpath
=yes
16743 shlibpath_overrides_runpath
=yes
16748 libname_spec
='$name'
16751 library_names_spec
='$libname${shared_ext} $libname.a'
16752 dynamic_linker
='OS/2 ld.exe'
16753 shlibpath_var
=LIBPATH
16756 osf3
* | osf4
* | osf5
*)
16760 soname_spec
='${libname}${release}${shared_ext}$major'
16761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 shlibpath_var
=LD_LIBRARY_PATH
16763 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16764 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16771 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 soname_spec
='${libname}${release}${shared_ext}$major'
16773 shlibpath_var
=LD_LIBRARY_PATH
16774 shlibpath_overrides_runpath
=yes
16775 hardcode_into_libs
=yes
16776 # ldd complains unless libraries are executable
16777 postinstall_cmds
='chmod +x $lib'
16782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16783 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16784 shlibpath_var
=LD_LIBRARY_PATH
16785 shlibpath_overrides_runpath
=yes
16786 if test "$with_gnu_ld" = yes; then
16794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 soname_spec
='${libname}${release}${shared_ext}$major'
16796 shlibpath_var
=LD_LIBRARY_PATH
16797 case $host_vendor in
16799 shlibpath_overrides_runpath
=no
16801 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16802 runpath_var
=LD_RUN_PATH
16810 shlibpath_overrides_runpath
=no
16811 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16817 if test -d /usr
/nec
;then
16819 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16820 soname_spec
='$libname${shared_ext}.$major'
16821 shlibpath_var
=LD_LIBRARY_PATH
16825 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16826 version_type
=freebsd-elf
16829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16830 soname_spec
='${libname}${release}${shared_ext}$major'
16831 shlibpath_var
=LD_LIBRARY_PATH
16832 hardcode_into_libs
=yes
16833 if test "$with_gnu_ld" = yes; then
16834 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16835 shlibpath_overrides_runpath
=no
16837 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16838 shlibpath_overrides_runpath
=yes
16841 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16845 sys_lib_dlsearch_path_spec
='/usr/lib'
16850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec
='${libname}${release}${shared_ext}$major'
16852 shlibpath_var
=LD_LIBRARY_PATH
16859 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16860 echo "${ECHO_T}$dynamic_linker" >&6; }
16861 test "$dynamic_linker" = no
&& can_build_shared
=no
16863 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16864 if test "$GCC" = yes; then
16865 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16868 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16869 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16871 if test -n "$hardcode_libdir_flag_spec" || \
16872 test -n "$runpath_var" || \
16873 test "X$hardcode_automatic" = "Xyes" ; then
16875 # We can hardcode non-existant directories.
16876 if test "$hardcode_direct" != no
&&
16877 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16878 # have to relink, otherwise we might link with an installed library
16879 # when we should be linking with a yet-to-be-installed one
16880 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16881 test "$hardcode_minus_L" != no
; then
16882 # Linking always hardcodes the temporary library directory.
16883 hardcode_action
=relink
16885 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16886 hardcode_action
=immediate
16889 # We cannot hardcode anything, or else we can only hardcode existing
16891 hardcode_action
=unsupported
16893 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16894 echo "${ECHO_T}$hardcode_action" >&6; }
16896 if test "$hardcode_action" = relink
; then
16897 # Fast installation is not supported
16898 enable_fast_install
=no
16899 elif test "$shlibpath_overrides_runpath" = yes ||
16900 test "$enable_shared" = no
; then
16901 # Fast installation is not necessary
16902 enable_fast_install
=needless
16907 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16909 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16910 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16911 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16912 { echo "$as_me:$LINENO: result: yes" >&5
16913 echo "${ECHO_T}yes" >&6; }
16915 # FIXME - insert some real tests, host_os isn't really good enough
16918 if test -n "$STRIP" ; then
16919 striplib
="$STRIP -x"
16920 { echo "$as_me:$LINENO: result: yes" >&5
16921 echo "${ECHO_T}yes" >&6; }
16923 { echo "$as_me:$LINENO: result: no" >&5
16924 echo "${ECHO_T}no" >&6; }
16928 { echo "$as_me:$LINENO: result: no" >&5
16929 echo "${ECHO_T}no" >&6; }
16934 if test "x$enable_dlopen" != xyes
; then
16935 enable_dlopen
=unknown
16936 enable_dlopen_self
=unknown
16937 enable_dlopen_self_static
=unknown
16944 lt_cv_dlopen
="load_add_on"
16946 lt_cv_dlopen_self
=yes
16950 lt_cv_dlopen
="LoadLibrary"
16955 lt_cv_dlopen
="dlopen"
16960 # if libdl is installed we need to link against it
16961 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16962 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 ac_check_lib_save_LIBS
=$LIBS
16968 cat >conftest.
$ac_ext <<_ACEOF
16971 cat confdefs.h
>>conftest.
$ac_ext
16972 cat >>conftest.
$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16975 /* Override any GCC internal prototype to avoid an error.
16976 Use char because int might match the return type of a GCC
16977 builtin and then its argument prototype would still apply. */
16990 rm -f conftest.
$ac_objext conftest
$ac_exeext
16991 if { (ac_try
="$ac_link"
16992 case "(($ac_try" in
16993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_link") 2>conftest.er1
16999 grep -v '^ *+' conftest.er1 >conftest.err
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17007 *) ac_try_echo
=$ac_try;;
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; } &&
17014 { ac_try
='test -s conftest$ac_exeext'
17015 { (case "(($ac_try" in
17016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_try") 2>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; }; then
17024 ac_cv_lib_dl_dlopen=yes
17026 echo "$as_me: failed program was:" >&5
17027 sed 's/^/| /' conftest.$ac_ext >&5
17029 ac_cv_lib_dl_dlopen=no
17032 rm -f core conftest.err conftest.$ac_objext \
17033 conftest$ac_exeext conftest.$ac_ext
17034 LIBS=$ac_check_lib_save_LIBS
17036 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17038 if test $ac_cv_lib_dl_dlopen = yes; then
17039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17042 lt_cv_dlopen="dyld"
17044 lt_cv_dlopen_self=yes
17051 { echo "$as_me:$LINENO: checking for shl_load" >&5
17052 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17053 if test "${ac_cv_func_shl_load+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 cat >conftest.$ac_ext <<_ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17062 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17064 #define shl_load innocuous_shl_load
17066 /* System header to define __stub macros and hopefully few prototypes,
17067 which can conflict with char shl_load (); below.
17068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17069 <limits.h> exists even on freestanding compilers. */
17072 # include <limits.h>
17074 # include <assert.h>
17079 /* Override any GCC internal prototype to avoid an error.
17080 Use char because int might match the return type of a GCC
17081 builtin and then its argument prototype would still apply. */
17086 /* The GNU C library defines this for functions which it implements
17087 to always fail with ENOSYS. Some functions are actually named
17088 something starting with __ and the normal name is an alias. */
17089 #if defined __stub_shl_load || defined __stub___shl_load
17096 return shl_load ();
17101 rm -f conftest.$ac_objext conftest$ac_exeext
17102 if { (ac_try="$ac_link"
17103 case "(($ac_try" in
17104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17105 *) ac_try_echo
=$ac_try;;
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_link") 2>conftest.er1
17110 grep -v '^ *+' conftest.er1
>conftest.err
17112 cat conftest.err
>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } &&
17115 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17116 { (case "(($ac_try" in
17117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_try") 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; } &&
17125 { ac_try='test -s conftest$ac_exeext'
17126 { (case "(($ac_try" in
17127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17128 *) ac_try_echo
=$ac_try;;
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_try") 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_func_shl_load
=yes
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.
$ac_ext >&5
17140 ac_cv_func_shl_load
=no
17143 rm -f core conftest.err conftest.
$ac_objext \
17144 conftest
$ac_exeext conftest.
$ac_ext
17146 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17147 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17148 if test $ac_cv_func_shl_load = yes; then
17149 lt_cv_dlopen
="shl_load"
17151 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17152 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17153 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 ac_check_lib_save_LIBS
=$LIBS
17158 cat >conftest.
$ac_ext <<_ACEOF
17161 cat confdefs.h
>>conftest.
$ac_ext
17162 cat >>conftest.
$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17165 /* Override any GCC internal prototype to avoid an error.
17166 Use char because int might match the return type of a GCC
17167 builtin and then its argument prototype would still apply. */
17175 return shl_load ();
17180 rm -f conftest.
$ac_objext conftest
$ac_exeext
17181 if { (ac_try
="$ac_link"
17182 case "(($ac_try" in
17183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_link") 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195 { (case "(($ac_try" in
17196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17197 *) ac_try_echo
=$ac_try;;
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_try") 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try
='test -s conftest$ac_exeext'
17205 { (case "(($ac_try" in
17206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_try") 2>&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 ac_cv_lib_dld_shl_load=yes
17216 echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17219 ac_cv_lib_dld_shl_load=no
17222 rm -f core conftest.err conftest.$ac_objext \
17223 conftest$ac_exeext conftest.$ac_ext
17224 LIBS=$ac_check_lib_save_LIBS
17226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17227 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17228 if test $ac_cv_lib_dld_shl_load = yes; then
17229 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17231 { echo "$as_me:$LINENO: checking for dlopen" >&5
17232 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17233 if test "${ac_cv_func_dlopen+set}" = set; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17236 cat >conftest.$ac_ext <<_ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17242 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17244 #define dlopen innocuous_dlopen
17246 /* System header to define __stub macros and hopefully few prototypes,
17247 which can conflict with char dlopen (); below.
17248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17249 <limits.h> exists even on freestanding compilers. */
17252 # include <limits.h>
17254 # include <assert.h>
17259 /* Override any GCC internal prototype to avoid an error.
17260 Use char because int might match the return type of a GCC
17261 builtin and then its argument prototype would still apply. */
17266 /* The GNU C library defines this for functions which it implements
17267 to always fail with ENOSYS. Some functions are actually named
17268 something starting with __ and the normal name is an alias. */
17269 #if defined __stub_dlopen || defined __stub___dlopen
17281 rm -f conftest.$ac_objext conftest$ac_exeext
17282 if { (ac_try="$ac_link"
17283 case "(($ac_try" in
17284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17285 *) ac_try_echo
=$ac_try;;
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_link") 2>conftest.er1
17290 grep -v '^ *+' conftest.er1
>conftest.err
17292 cat conftest.err
>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17296 { (case "(($ac_try" in
17297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_try") 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; } &&
17305 { ac_try='test -s conftest$ac_exeext'
17306 { (case "(($ac_try" in
17307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17308 *) ac_try_echo
=$ac_try;;
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_try") 2>&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17315 ac_cv_func_dlopen
=yes
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.
$ac_ext >&5
17320 ac_cv_func_dlopen
=no
17323 rm -f core conftest.err conftest.
$ac_objext \
17324 conftest
$ac_exeext conftest.
$ac_ext
17326 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17327 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17328 if test $ac_cv_func_dlopen = yes; then
17329 lt_cv_dlopen
="dlopen"
17331 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17332 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17333 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 ac_check_lib_save_LIBS
=$LIBS
17338 cat >conftest.
$ac_ext <<_ACEOF
17341 cat confdefs.h
>>conftest.
$ac_ext
17342 cat >>conftest.
$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17345 /* Override any GCC internal prototype to avoid an error.
17346 Use char because int might match the return type of a GCC
17347 builtin and then its argument prototype would still apply. */
17360 rm -f conftest.
$ac_objext conftest
$ac_exeext
17361 if { (ac_try
="$ac_link"
17362 case "(($ac_try" in
17363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_link") 2>conftest.er1
17369 grep -v '^ *+' conftest.er1 >conftest.err
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
17374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17375 { (case "(($ac_try" in
17376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17377 *) ac_try_echo
=$ac_try;;
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_try") 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try
='test -s conftest$ac_exeext'
17385 { (case "(($ac_try" in
17386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_try") 2>&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
17394 ac_cv_lib_dl_dlopen=yes
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 ac_cv_lib_dl_dlopen=no
17402 rm -f core conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
17404 LIBS=$ac_check_lib_save_LIBS
17406 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17408 if test $ac_cv_lib_dl_dlopen = yes; then
17409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17411 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17412 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17413 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 ac_check_lib_save_LIBS=$LIBS
17417 LIBS="-lsvld $LIBS"
17418 cat >conftest.$ac_ext <<_ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17425 /* Override any GCC internal prototype to avoid an error.
17426 Use char because int might match the return type of a GCC
17427 builtin and then its argument prototype would still apply. */
17440 rm -f conftest.$ac_objext conftest$ac_exeext
17441 if { (ac_try="$ac_link"
17442 case "(($ac_try" in
17443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17444 *) ac_try_echo
=$ac_try;;
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_link") 2>conftest.er1
17449 grep -v '^ *+' conftest.er1
>conftest.err
17451 cat conftest.err
>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
17454 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17455 { (case "(($ac_try" in
17456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_try") 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest$ac_exeext'
17465 { (case "(($ac_try" in
17466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17467 *) ac_try_echo
=$ac_try;;
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470 (eval "$ac_try") 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ac_cv_lib_svld_dlopen
=yes
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.
$ac_ext >&5
17479 ac_cv_lib_svld_dlopen
=no
17482 rm -f core conftest.err conftest.
$ac_objext \
17483 conftest
$ac_exeext conftest.
$ac_ext
17484 LIBS
=$ac_check_lib_save_LIBS
17486 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17487 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17488 if test $ac_cv_lib_svld_dlopen = yes; then
17489 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17491 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17492 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17493 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 ac_check_lib_save_LIBS
=$LIBS
17498 cat >conftest.
$ac_ext <<_ACEOF
17501 cat confdefs.h
>>conftest.
$ac_ext
17502 cat >>conftest.
$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17505 /* Override any GCC internal prototype to avoid an error.
17506 Use char because int might match the return type of a GCC
17507 builtin and then its argument prototype would still apply. */
17515 return dld_link ();
17520 rm -f conftest.
$ac_objext conftest
$ac_exeext
17521 if { (ac_try
="$ac_link"
17522 case "(($ac_try" in
17523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_link") 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17535 { (case "(($ac_try" in
17536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17537 *) ac_try_echo
=$ac_try;;
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_try") 2>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; } &&
17544 { ac_try
='test -s conftest$ac_exeext'
17545 { (case "(($ac_try" in
17546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
17554 ac_cv_lib_dld_dld_link=yes
17556 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 ac_cv_lib_dld_dld_link=no
17562 rm -f core conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17564 LIBS=$ac_check_lib_save_LIBS
17566 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17567 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17568 if test $ac_cv_lib_dld_dld_link = yes; then
17569 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17590 if test "x$lt_cv_dlopen" != xno; then
17596 case $lt_cv_dlopen in
17598 save_CPPFLAGS="$CPPFLAGS"
17599 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17601 save_LDFLAGS="$LDFLAGS"
17602 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17605 LIBS="$lt_cv_dlopen_libs $LIBS"
17607 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17608 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17609 if test "${lt_cv_dlopen_self+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 if test "$cross_compiling" = yes; then :
17613 lt_cv_dlopen_self=cross
17615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17616 lt_status=$lt_dlunknown
17617 cat > conftest.$ac_ext <<EOF
17618 #line 17618 "configure"
17619 #include "confdefs.h"
17628 # define LT_DLGLOBAL RTLD_GLOBAL
17631 # define LT_DLGLOBAL DL_GLOBAL
17633 # define LT_DLGLOBAL 0
17637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17638 find out it does not work in some platform. */
17639 #ifndef LT_DLLAZY_OR_NOW
17641 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17644 # define LT_DLLAZY_OR_NOW DL_LAZY
17647 # define LT_DLLAZY_OR_NOW RTLD_NOW
17650 # define LT_DLLAZY_OR_NOW DL_NOW
17652 # define LT_DLLAZY_OR_NOW 0
17660 extern "C" void exit (int);
17663 void fnord() { int i=42;}
17666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17667 int status = $lt_dlunknown;
17671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17672 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17673 /* dlclose (self); */
17681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17682 (eval $ac_link) 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17686 (./conftest; exit; ) >&5 2>/dev/null
17688 case x$lt_status in
17689 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17690 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17691 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17694 # compilation failed
17695 lt_cv_dlopen_self=no
17702 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17703 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17705 if test "x$lt_cv_dlopen_self" = xyes; then
17706 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17707 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17708 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17709 if test "${lt_cv_dlopen_self_static+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 if test "$cross_compiling" = yes; then :
17713 lt_cv_dlopen_self_static=cross
17715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17716 lt_status=$lt_dlunknown
17717 cat > conftest.$ac_ext <<EOF
17718 #line 17718 "configure"
17719 #include "confdefs.h"
17728 # define LT_DLGLOBAL RTLD_GLOBAL
17731 # define LT_DLGLOBAL DL_GLOBAL
17733 # define LT_DLGLOBAL 0
17737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17738 find out it does not work in some platform. */
17739 #ifndef LT_DLLAZY_OR_NOW
17741 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17744 # define LT_DLLAZY_OR_NOW DL_LAZY
17747 # define LT_DLLAZY_OR_NOW RTLD_NOW
17750 # define LT_DLLAZY_OR_NOW DL_NOW
17752 # define LT_DLLAZY_OR_NOW 0
17760 extern "C" void exit (int);
17763 void fnord() { int i=42;}
17766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17767 int status = $lt_dlunknown;
17771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17773 /* dlclose (self); */
17781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17782 (eval $ac_link) 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17786 (./conftest; exit; ) >&5 2>/dev/null
17788 case x$lt_status in
17789 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17790 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17791 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17794 # compilation failed
17795 lt_cv_dlopen_self_static=no
17802 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17803 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17806 CPPFLAGS="$save_CPPFLAGS"
17807 LDFLAGS="$save_LDFLAGS"
17812 case $lt_cv_dlopen_self in
17813 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17814 *) enable_dlopen_self=unknown ;;
17817 case $lt_cv_dlopen_self_static in
17818 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17819 *) enable_dlopen_self_static=unknown ;;
17824 # Report which library types will actually be built
17825 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17826 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17827 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17828 echo "${ECHO_T}$can_build_shared" >&6; }
17830 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17831 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17832 test "$can_build_shared" = "no" && enable_shared=no
17834 # On AIX, shared libraries and static libraries use the same namespace, and
17835 # are all built from PIC.
17838 test "$enable_shared" = yes && enable_static=no
17839 if test -n "$RANLIB"; then
17840 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17841 postinstall_cmds='$RANLIB $lib'
17846 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17847 test "$enable_shared" = yes && enable_static=no
17851 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17852 echo "${ECHO_T}$enable_shared" >&6; }
17854 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17855 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17856 # Make sure either enable_shared or enable_static is yes.
17857 test "$enable_shared" = yes || enable_static=yes
17858 { echo "$as_me:$LINENO: result: $enable_static" >&5
17859 echo "${ECHO_T}$enable_static" >&6; }
17861 # The else clause should only fire when bootstrapping the
17862 # libtool distribution, otherwise you forgot to ship ltmain.sh
17863 # with your package, and you will get complaints that there are
17864 # no rules to generate ltmain.sh.
17865 if test -f "$ltmain"; then
17866 # See if we are running on zsh, and set the options which allow our commands through
17867 # without removal of \ escapes.
17868 if test -n "${ZSH_VERSION+set}" ; then
17869 setopt NO_GLOB_SUBST
17871 # Now quote all the things that may contain metacharacters while being
17872 # careful not to overquote the AC_SUBSTed values. We take copies of the
17873 # variables and quote the copies for generation of the libtool script.
17874 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17876 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17877 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17878 deplibs_check_method reload_flag reload_cmds need_locks \
17879 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17880 lt_cv_sys_global_symbol_to_c_name_address \
17881 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17882 old_postinstall_cmds old_postuninstall_cmds \
17886 lt_prog_compiler_wl \
17887 lt_prog_compiler_pic \
17888 lt_prog_compiler_static \
17889 lt_prog_compiler_no_builtin_flag \
17890 export_dynamic_flag_spec \
17891 thread_safe_flag_spec \
17892 whole_archive_flag_spec \
17893 enable_shared_with_static_runtimes \
17895 old_archive_from_new_cmds \
17900 compiler_lib_search_path \
17902 archive_expsym_cmds \
17904 postuninstall_cmds \
17905 old_archive_from_expsyms_cmds \
17906 allow_undefined_flag \
17907 no_undefined_flag \
17908 export_symbols_cmds \
17909 hardcode_libdir_flag_spec \
17910 hardcode_libdir_flag_spec_ld \
17911 hardcode_libdir_separator \
17912 hardcode_automatic \
17914 module_expsym_cmds \
17915 lt_cv_prog_compiler_c_o \
17917 include_expsyms; do
17920 old_archive_cmds | \
17921 old_archive_from_new_cmds | \
17923 archive_expsym_cmds | \
17925 module_expsym_cmds | \
17926 old_archive_from_expsyms_cmds | \
17927 export_symbols_cmds | \
17928 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17929 postinstall_cmds | postuninstall_cmds | \
17930 old_postinstall_cmds | old_postuninstall_cmds | \
17931 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17932 # Double-quote double-evaled strings.
17933 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
17936 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
17942 *'\$0 --fallback-echo"')
17943 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17947 cfgfile="${ofile}T"
17948 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17950 { echo "$as_me:$LINENO: creating $ofile" >&5
17951 echo "$as_me: creating $ofile" >&6;}
17953 cat <<__EOF__ >> "$cfgfile"
17956 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
17957 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17958 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17960 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17961 # Free Software Foundation, Inc.
17963 # This file is part of GNU Libtool:
17964 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17966 # This program is free software; you can redistribute it and/or modify
17967 # it under the terms of the GNU General Public License as published by
17968 # the Free Software Foundation; either version 2 of the License, or
17969 # (at your option) any later version.
17971 # This program is distributed in the hope that it will be useful, but
17972 # WITHOUT ANY WARRANTY; without even the implied warranty of
17973 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17974 # General Public License for more details.
17976 # You should have received a copy of the GNU General Public License
17977 # along with this program; if not, write to the Free Software
17978 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17980 # As a special exception to the GNU General Public License, if you
17981 # distribute this file as part of a program that contains a
17982 # configuration script generated by Autoconf, you may include it under
17983 # the same distribution terms that you use for the rest of that program.
17985 # A sed program that does not truncate output.
17988 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17989 Xsed="$SED -e 1s/^X//"
17991 # The HP-UX ksh and POSIX shell print the target directory to stdout
17992 # if CDPATH is set.
17993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17995 # The names of the tagged configurations supported by this script.
17998 # ### BEGIN LIBTOOL CONFIG
18000 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
18002 # Shell to use when invoking shell scripts.
18005 # Whether or not to build shared libraries.
18006 build_libtool_libs=$enable_shared
18008 # Whether or not to build static libraries.
18009 build_old_libs=$enable_static
18011 # Whether or not to add -lc for building shared libraries.
18012 build_libtool_need_lc=$archive_cmds_need_lc
18014 # Whether or not to disallow shared libs when runtime libs are static
18015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18017 # Whether or not to optimize for fast installation.
18018 fast_install=$enable_fast_install
18021 host_alias=$host_alias
18025 # The build system.
18026 build_alias=$build_alias
18030 # An echo program that does not interpret backslashes.
18035 AR_FLAGS=$lt_AR_FLAGS
18040 # LTCC compiler flags.
18041 LTCFLAGS=$lt_LTCFLAGS
18043 # A language-specific compiler.
18046 # Is the compiler the GNU C compiler?
18052 # The linker used to build libraries.
18055 # Whether we need hard or soft links.
18058 # A BSD-compatible nm program.
18061 # A symbol stripping program
18064 # Used to examine libraries when file_magic_cmd begins "file"
18065 MAGIC_CMD=$MAGIC_CMD
18067 # Used on cygwin: DLL creation program.
18070 # Used on cygwin: object dumper.
18073 # Used on cygwin: assembler.
18076 # The name of the directory that contains temporary libtool files.
18079 # How to create reloadable object files.
18080 reload_flag=$lt_reload_flag
18081 reload_cmds=$lt_reload_cmds
18083 # How to pass a linker flag through the compiler.
18084 wl=$lt_lt_prog_compiler_wl
18086 # Object file suffix (normally "o").
18087 objext="$ac_objext"
18089 # Old archive suffix (normally "a").
18092 # Shared library suffix (normally ".so").
18093 shrext_cmds='$shrext_cmds'
18095 # Executable file suffix (normally "").
18098 # Additional compiler flags for building library objects.
18099 pic_flag=$lt_lt_prog_compiler_pic
18102 # What is the maximum length of a command?
18103 max_cmd_len=$lt_cv_sys_max_cmd_len
18105 # Does compiler simultaneously support -c and -o options?
18106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18108 # Must we lock files when doing compilation?
18109 need_locks=$lt_need_locks
18111 # Do we need the lib prefix for modules?
18112 need_lib_prefix=$need_lib_prefix
18114 # Do we need a version for libraries?
18115 need_version=$need_version
18117 # Whether dlopen is supported.
18118 dlopen_support=$enable_dlopen
18120 # Whether dlopen of programs is supported.
18121 dlopen_self=$enable_dlopen_self
18123 # Whether dlopen of statically linked programs is supported.
18124 dlopen_self_static=$enable_dlopen_self_static
18126 # Compiler flag to prevent dynamic linking.
18127 link_static_flag=$lt_lt_prog_compiler_static
18129 # Compiler flag to turn off builtin functions.
18130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18132 # Compiler flag to allow reflexive dlopens.
18133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18135 # Compiler flag to generate shared objects directly from archives.
18136 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18138 # Compiler flag to generate thread-safe objects.
18139 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18141 # Library versioning type.
18142 version_type=$version_type
18144 # Format of library name prefix.
18145 libname_spec=$lt_libname_spec
18147 # List of archive names. First name is the real one, the rest are links.
18148 # The last name is the one that the linker finds with -lNAME.
18149 library_names_spec=$lt_library_names_spec
18151 # The coded name of the library, if different from the real name.
18152 soname_spec=$lt_soname_spec
18154 # Commands used to build and install an old-style archive.
18156 old_archive_cmds=$lt_old_archive_cmds
18157 old_postinstall_cmds=$lt_old_postinstall_cmds
18158 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18160 # Create an old-style archive from a shared archive.
18161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18163 # Create a temporary old-style archive to link instead of a shared archive.
18164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18166 # Commands used to build and install a shared archive.
18167 archive_cmds=$lt_archive_cmds
18168 archive_expsym_cmds=$lt_archive_expsym_cmds
18169 postinstall_cmds=$lt_postinstall_cmds
18170 postuninstall_cmds=$lt_postuninstall_cmds
18172 # Commands used to build a loadable module (assumed same as above if empty)
18173 module_cmds=$lt_module_cmds
18174 module_expsym_cmds=$lt_module_expsym_cmds
18176 # Commands to strip libraries.
18177 old_striplib=$lt_old_striplib
18178 striplib=$lt_striplib
18180 # Dependencies to place before the objects being linked to create a
18182 predep_objects=$lt_predep_objects
18184 # Dependencies to place after the objects being linked to create a
18186 postdep_objects=$lt_postdep_objects
18188 # Dependencies to place before the objects being linked to create a
18190 predeps=$lt_predeps
18192 # Dependencies to place after the objects being linked to create a
18194 postdeps=$lt_postdeps
18196 # The library search path used internally by the compiler when linking
18197 # a shared library.
18198 compiler_lib_search_path=$lt_compiler_lib_search_path
18200 # Method to check whether dependent libraries are shared objects.
18201 deplibs_check_method=$lt_deplibs_check_method
18203 # Command to use when deplibs_check_method == file_magic.
18204 file_magic_cmd=$lt_file_magic_cmd
18206 # Flag that allows shared libraries with undefined symbols to be built.
18207 allow_undefined_flag=$lt_allow_undefined_flag
18209 # Flag that forces no undefined symbols.
18210 no_undefined_flag=$lt_no_undefined_flag
18212 # Commands used to finish a libtool library installation in a directory.
18213 finish_cmds=$lt_finish_cmds
18215 # Same as above, but a single script fragment to be evaled but not shown.
18216 finish_eval=$lt_finish_eval
18218 # Take the output of nm and produce a listing of raw symbols and C names.
18219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18221 # Transform the output of nm in a proper C declaration
18222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18224 # Transform the output of nm in a C name address pair
18225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18227 # This is the shared library runtime path variable.
18228 runpath_var=$runpath_var
18230 # This is the shared library path variable.
18231 shlibpath_var=$shlibpath_var
18233 # Is shlibpath searched before the hard-coded library search path?
18234 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18236 # How to hardcode a shared library path into an executable.
18237 hardcode_action=$hardcode_action
18239 # Whether we should hardcode library paths into libraries.
18240 hardcode_into_libs=$hardcode_into_libs
18242 # Flag to hardcode \$libdir into a binary during linking.
18243 # This must work even if \$libdir does not exist.
18244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18246 # If ld is used when linking, flag to hardcode \$libdir into
18247 # a binary during linking. This must work even if \$libdir does
18249 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18251 # Whether we need a single -rpath flag with a separated argument.
18252 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18254 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18255 # resulting binary.
18256 hardcode_direct=$hardcode_direct
18258 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18259 # resulting binary.
18260 hardcode_minus_L=$hardcode_minus_L
18262 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18263 # the resulting binary.
18264 hardcode_shlibpath_var=$hardcode_shlibpath_var
18266 # Set to yes if building a shared library automatically hardcodes DIR into the library
18267 # and all subsequent libraries and executables linked against it.
18268 hardcode_automatic=$hardcode_automatic
18270 # Variables whose values should be saved in libtool wrapper scripts and
18271 # restored at relink time.
18272 variables_saved_for_relink="$variables_saved_for_relink"
18274 # Whether libtool must link a program against all its dependency libraries.
18275 link_all_deplibs=$link_all_deplibs
18277 # Compile-time system search path for libraries
18278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18280 # Run-time system search path for libraries
18281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18283 # Fix the shell variable \$srcfile for the compiler.
18284 fix_srcfile_path="$fix_srcfile_path"
18286 # Set to yes if exported symbols are required.
18287 always_export_symbols=$always_export_symbols
18289 # The commands to list exported symbols.
18290 export_symbols_cmds=$lt_export_symbols_cmds
18292 # The commands to extract the exported symbol list from a shared archive.
18293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18295 # Symbols that should not be listed in the preloaded symbols.
18296 exclude_expsyms=$lt_exclude_expsyms
18298 # Symbols that must always be exported.
18299 include_expsyms=$lt_include_expsyms
18301 # ### END LIBTOOL CONFIG
18308 cat <<\EOF >> "$cfgfile"
18310 # AIX sometimes has problems with the GCC collect2 program. For some
18311 # reason, if we set the COLLECT_NAMES environment variable, the problems
18312 # vanish in a puff of smoke.
18313 if test "X${COLLECT_NAMES+set}" != Xset; then
18315 export COLLECT_NAMES
18321 # We use sed instead of cat because bash on DJGPP gets confused if
18322 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18323 # text mode, it properly converts lines to CR/LF. This bash problem
18324 # is reportedly fixed, but why not run on old versions too?
18325 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18327 mv -f "$cfgfile" "$ofile" || \
18328 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18332 # If there is no Makefile yet, we rely on a make rule to execute
18333 # `config.status
--recheck' to rerun these tests and create the
18334 # libtool script then.
18335 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
18336 if test -f "$ltmain_in"; then
18337 test -f Makefile && make "$ltmain"
18343 ac_cpp='$CPP $CPPFLAGS'
18344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18345 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18351 # Check whether --with-tags was given.
18352 if test "${with_tags+set}" = set; then
18353 withval=$with_tags; tagnames="$withval"
18357 if test -f "$ltmain" && test -n "$tagnames"; then
18358 if test ! -f "${ofile}"; then
18359 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
18360 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
18363 if test -z "$LTCC"; then
18364 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
18365 if test -z "$LTCC"; then
18366 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18367 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
18369 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
18370 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
18373 if test -z "$LTCFLAGS"; then
18374 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
18377 # Extract list of available tagged configurations in $ofile.
18378 # Note that this assumes the entire list is on one line.
18379 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18382 for tagname in $tagnames; do
18384 # Check whether tagname contains only valid characters
18385 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18387 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18388 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18389 { (exit 1); exit 1; }; }
18393 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18395 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18396 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18397 { (exit 1); exit 1; }; }
18400 # Update the list of available tags.
18401 if test -n "$tagname"; then
18402 echo appending configuration tag \"$tagname\" to $ofile
18406 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18407 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
18408 (test "X$CXX" != "Xg++"))) ; then
18410 ac_cpp='$CXXCPP $CPPFLAGS'
18411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18418 archive_cmds_need_lc_CXX=no
18419 allow_undefined_flag_CXX=
18420 always_export_symbols_CXX=no
18421 archive_expsym_cmds_CXX=
18422 export_dynamic_flag_spec_CXX=
18423 hardcode_direct_CXX=no
18424 hardcode_libdir_flag_spec_CXX=
18425 hardcode_libdir_flag_spec_ld_CXX=
18426 hardcode_libdir_separator_CXX=
18427 hardcode_minus_L_CXX=no
18428 hardcode_shlibpath_var_CXX=unsupported
18429 hardcode_automatic_CXX=no
18431 module_expsym_cmds_CXX=
18432 link_all_deplibs_CXX=unknown
18433 old_archive_cmds_CXX=$old_archive_cmds
18434 no_undefined_flag_CXX=
18435 whole_archive_flag_spec_CXX=
18436 enable_shared_with_static_runtimes_CXX=no
18438 # Dependencies to place before and after the object being linked:
18439 predep_objects_CXX=
18440 postdep_objects_CXX=
18443 compiler_lib_search_path_CXX=
18445 # Source file extension for C++ test sources.
18448 # Object file extension for compiled C++ test sources.
18452 # Code to be used in simple compile tests
18453 lt_simple_compile_test_code="int some_variable = 0;\n"
18455 # Code to be used in simple link tests
18456 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18460 # If no C compiler was specified, use CC.
18463 # If no C compiler flags were specified, use CFLAGS.
18464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18466 # Allow CC to be a program name with arguments.
18470 # save warnings/boilerplate of simple test code
18471 ac_outfile=conftest.$ac_objext
18472 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18473 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18474 _lt_compiler_boilerplate=`cat conftest.err
`
18477 ac_outfile=conftest.$ac_objext
18478 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18479 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18480 _lt_linker_boilerplate=`cat conftest.err
`
18484 # Allow CC to be a program name with arguments.
18489 lt_save_with_gnu_ld=$with_gnu_ld
18490 lt_save_path_LD=$lt_cv_path_LD
18491 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18492 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18494 $as_unset lt_cv_prog_gnu_ld
18496 if test -n "${lt_cv_path_LDCXX+set}"; then
18497 lt_cv_path_LD=$lt_cv_path_LDCXX
18499 $as_unset lt_cv_path_LD
18501 test -z "${LDCXX+set}" || LD=$LDCXX
18505 for cc_temp in $compiler""; do
18507 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18508 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18513 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18516 # We don't want -fno-exception wen compiling C++ code, so set the
18517 # no_builtin_flag separately
18518 if test "$GXX" = yes; then
18519 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18521 lt_prog_compiler_no_builtin_flag_CXX=
18524 if test "$GXX" = yes; then
18525 # Set up default GNU C++ configuration
18528 # Check whether --with-gnu-ld was given.
18529 if test "${with_gnu_ld+set}" = set; then
18530 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18536 if test "$GCC" = yes; then
18537 # Check if gcc -print-prog-name=ld gives a path.
18538 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18539 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18542 # gcc leaves a trailing carriage return which upsets mingw
18543 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
18545 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
18548 # Accept absolute paths.
18550 re_direlt='/[^/][^/]*/\.\./'
18551 # Canonicalize the pathname of ld
18552 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
18553 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18554 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
18556 test -z "$LD" && LD="$ac_prog"
18559 # If it fails, then pretend we aren't using GCC.
18563 # If it is relative, then search for the first ld in PATH.
18564 with_gnu_ld=unknown
18567 elif test "$with_gnu_ld" = yes; then
18568 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18569 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18571 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18572 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18574 if test "${lt_cv_path_LD+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 if test -z "$LD"; then
18578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18579 for ac_dir in $PATH; do
18581 test -z "$ac_dir" && ac_dir=.
18582 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18583 lt_cv_path_LD="$ac_dir/$ac_prog"
18584 # Check to see if the program is GNU ld. I'd rather use --version,
18585 # but apparently some variants of GNU ld only accept -v.
18586 # Break only if it was the GNU/non-GNU ld that we prefer.
18587 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
18588 *GNU* | *'with BFD'*)
18589 test "$with_gnu_ld" != no && break
18592 test "$with_gnu_ld" != yes && break
18599 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18603 LD="$lt_cv_path_LD"
18604 if test -n "$LD"; then
18605 { echo "$as_me:$LINENO: result: $LD" >&5
18606 echo "${ECHO_T}$LD" >&6; }
18608 { echo "$as_me:$LINENO: result: no" >&5
18609 echo "${ECHO_T}no" >&6; }
18611 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18612 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18613 { (exit 1); exit 1; }; }
18614 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18615 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18616 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18620 case `$LD -v 2>&1 </dev
/null
` in
18621 *GNU* | *'with BFD'*)
18622 lt_cv_prog_gnu_ld=yes
18625 lt_cv_prog_gnu_ld=no
18629 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18630 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18631 with_gnu_ld=$lt_cv_prog_gnu_ld
18635 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18636 # archiving commands below assume that GNU ld is being used.
18637 if test "$with_gnu_ld" = yes; then
18638 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18639 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'
18641 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18642 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18644 # If archive_cmds runs LD, not CC, wlarc should be empty
18645 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18646 # investigate it a little bit more. (MM)
18649 # ancient GNU ld didn't support --whole-archive et. al.
18650 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18651 grep 'no-whole-archive' > /dev/null; then
18652 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18654 whole_archive_flag_spec_CXX=
18660 # A generic and very simple default shared library creation
18661 # command for GNU C++ for the case where it uses the native
18662 # linker, instead of GNU ld. If possible, this setting should
18663 # overridden to take advantage of the native linker features on
18664 # the platform it is being used on.
18665 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18668 # Commands to make compiler produce verbose output that lists
18669 # what "hidden" libraries, object files and flags are used when
18670 # linking a shared library.
18671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18679 # PORTME: fill in a description of your system's C++ link characteristics
18680 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18681 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18685 # FIXME: insert proper C++ library support
18689 if test "$host_cpu" = ia64; then
18690 # On IA64, the linker does run time linking by default, so we don't
18691 # have to do anything special.
18692 aix_use_runtimelinking=no
18693 exp_sym_flag='-Bexport'
18696 aix_use_runtimelinking=no
18698 # Test if we are trying to use run time linking or normal
18699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18700 # need to do runtime linking.
18701 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18702 for ld_flag in $LDFLAGS; do
18705 aix_use_runtimelinking=yes
18713 exp_sym_flag='-bexport'
18714 no_entry_flag='-bnoentry'
18717 # When large executables or shared objects are built, AIX ld can
18718 # have problems creating the table of contents. If linking a library
18719 # or program results in "error TOC overflow" add -mminimal-toc to
18720 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18721 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18723 archive_cmds_CXX=''
18724 hardcode_direct_CXX=yes
18725 hardcode_libdir_separator_CXX=':'
18726 link_all_deplibs_CXX=yes
18728 if test "$GXX" = yes; then
18729 case $host_os in aix4.[012]|aix4.[012].*)
18730 # We only want to do this on AIX 4.2 and lower, the check
18731 # below for broken collect2 doesn't work under 4.3+
18732 collect2name=`${CC} -print-prog-name=collect2
`
18733 if test -f "$collect2name" && \
18734 strings "$collect2name" | grep resolve_lib_name >/dev/null
18736 # We have reworked collect2
18737 hardcode_direct_CXX=yes
18739 # We have old collect2
18740 hardcode_direct_CXX=unsupported
18741 # It fails to find uninstalled libraries when the uninstalled
18742 # path is not listed in the libpath. Setting hardcode_minus_L
18743 # to unsupported forces relinking
18744 hardcode_minus_L_CXX=yes
18745 hardcode_libdir_flag_spec_CXX='-L$libdir'
18746 hardcode_libdir_separator_CXX=
18750 shared_flag='-shared'
18751 if test "$aix_use_runtimelinking" = yes; then
18752 shared_flag="$shared_flag "'${wl}-G'
18756 if test "$host_cpu" = ia64; then
18757 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18758 # chokes on -Wl,-G. The following line is correct:
18761 if test "$aix_use_runtimelinking" = yes; then
18762 shared_flag='${wl}-G'
18764 shared_flag='${wl}-bM:SRE'
18769 # It seems that -bexpall does not export symbols beginning with
18770 # underscore (_), so it is better to generate a list of symbols to export.
18771 always_export_symbols_CXX=yes
18772 if test "$aix_use_runtimelinking" = yes; then
18773 # Warning - without using the other runtime loading flags (-brtl),
18774 # -berok will link without error, but may produce a broken library.
18775 allow_undefined_flag_CXX='-berok'
18776 # Determine the default libpath from the value encoded in an empty executable.
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (ac_try="$ac_link"
18794 case "(($ac_try" in
18795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18796 *) ac_try_echo
=$ac_try;;
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_link") 2>conftest.er1
18801 grep -v '^ *+' conftest.er1
>conftest.err
18803 cat conftest.err
>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18807 { (case "(($ac_try" in
18808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_try") 2>&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; } &&
18816 { ac_try='test -s conftest$ac_exeext'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18819 *) ac_try_echo
=$ac_try;;
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18827 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18829 # Check for a 64-bit object if we didn't find anything.
18830 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; }
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.
$ac_ext >&5
18839 rm -f core conftest.err conftest.
$ac_objext \
18840 conftest
$ac_exeext conftest.
$ac_ext
18841 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18843 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18845 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"
18847 if test "$host_cpu" = ia64
; then
18848 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18849 allow_undefined_flag_CXX
="-z nodefs"
18850 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"
18852 # Determine the default libpath from the value encoded in an empty executable.
18853 cat >conftest.
$ac_ext <<_ACEOF
18856 cat confdefs.h
>>conftest.
$ac_ext
18857 cat >>conftest.
$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18868 rm -f conftest.
$ac_objext conftest
$ac_exeext
18869 if { (ac_try
="$ac_link"
18870 case "(($ac_try" in
18871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_link") 2>conftest.er1
18877 grep -v '^ *+' conftest.er1 >conftest.err
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18883 { (case "(($ac_try" in
18884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18885 *) ac_try_echo
=$ac_try;;
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_try") 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try
='test -s conftest$ac_exeext'
18893 { (case "(($ac_try" in
18894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_try") 2>&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18903 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18905 # Check for a 64-bit object if we didn't find anything.
18906 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; }
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18915 rm -f core conftest.err conftest.$ac_objext \
18916 conftest$ac_exeext conftest.$ac_ext
18917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18919 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18920 # Warning - without using the other run time loading flags,
18921 # -berok will link without error, but may produce a broken library.
18922 no_undefined_flag_CXX=' ${wl}-bernotok'
18923 allow_undefined_flag_CXX=' ${wl}-berok'
18924 # Exported symbols can be pulled into shared objects from archives
18925 whole_archive_flag_spec_CXX='$convenience'
18926 archive_cmds_need_lc_CXX=yes
18927 # This is similar to how AIX traditionally builds its shared libraries.
18928 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'
18934 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18935 allow_undefined_flag_CXX=unsupported
18936 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18937 # support --undefined. This deserves some investigation. FIXME
18938 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18945 case $cc_basename in
18947 # FIXME: insert proper C++ library support
18953 cygwin* | mingw* | pw32*)
18954 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18955 # as there is no search path for DLLs.
18956 hardcode_libdir_flag_spec_CXX='-L$libdir'
18957 allow_undefined_flag_CXX=unsupported
18958 always_export_symbols_CXX=no
18959 enable_shared_with_static_runtimes_CXX=yes
18961 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18962 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'
18963 # If the export-symbols file already is a .def file (1st line
18964 # is EXPORTS), use it as is; otherwise, prepend...
18965 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
18966 cp $export_symbols $output_objdir/$soname.def;
18968 echo EXPORTS > $output_objdir/$soname.def;
18969 cat $export_symbols >> $output_objdir/$soname.def;
18971 $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'
18976 darwin* | rhapsody*)
18978 rhapsody* | darwin1.[012])
18979 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18982 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18983 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18985 case ${MACOSX_DEPLOYMENT_TARGET} in
18987 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18990 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18996 archive_cmds_need_lc_CXX=no
18997 hardcode_direct_CXX=no
18998 hardcode_automatic_CXX=yes
18999 hardcode_shlibpath_var_CXX=unsupported
19000 whole_archive_flag_spec_CXX=''
19001 link_all_deplibs_CXX=yes
19003 if test "$GXX" = yes ; then
19004 lt_int_apple_cc_single_mod=no
19005 output_verbose_link_cmd='echo'
19006 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19007 lt_int_apple_cc_single_mod=yes
19009 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19010 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19012 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'
19014 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19015 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19016 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19017 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}'
19019 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}'
19021 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}'
19023 case $cc_basename in
19025 output_verbose_link_cmd='echo'
19026 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'
19027 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19028 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19029 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}'
19030 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}'
19040 case $cc_basename in
19042 # FIXME: insert proper C++ library support
19046 # Green Hills C++ Compiler
19047 # FIXME: insert proper C++ library support
19051 # FIXME: insert proper C++ library support
19057 # C++ shared libraries reported to be fairly broken before switch to ELF
19061 archive_cmds_need_lc_CXX=no
19063 freebsd* | kfreebsd*-gnu | dragonfly*)
19064 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19071 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19072 hardcode_libdir_separator_CXX=:
19073 export_dynamic_flag_spec_CXX='${wl}-E'
19074 hardcode_direct_CXX=yes
19075 hardcode_minus_L_CXX=yes # Not in the search PATH,
19076 # but as the default
19077 # location of the library.
19079 case $cc_basename in
19081 # FIXME: insert proper C++ library support
19085 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'
19086 # Commands to make compiler produce verbose output that lists
19087 # what "hidden" libraries, object files and flags are used when
19088 # linking a shared library.
19090 # There doesn't appear to be a way to prevent this compiler from
19091 # explicitly linking system object files so we need to strip them
19092 # from the output so that they don't get included in the library
19094 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'
19097 if test "$GXX" = yes; then
19098 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'
19100 # FIXME: insert proper C++ library support
19107 if test $with_gnu_ld = no; then
19108 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19109 hardcode_libdir_separator_CXX=:
19113 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19116 export_dynamic_flag_spec_CXX='${wl}-E'
19122 hardcode_direct_CXX=no
19123 hardcode_shlibpath_var_CXX=no
19126 hardcode_direct_CXX=yes
19127 hardcode_minus_L_CXX=yes # Not in the search PATH,
19128 # but as the default
19129 # location of the library.
19133 case $cc_basename in
19135 # FIXME: insert proper C++ library support
19141 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19147 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19150 # Commands to make compiler produce verbose output that lists
19151 # what "hidden" libraries, object files and flags are used when
19152 # linking a shared library.
19154 # There doesn't appear to be a way to prevent this compiler from
19155 # explicitly linking system object files so we need to strip them
19156 # from the output so that they don't get included in the library
19158 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'
19161 if test "$GXX" = yes; then
19162 if test $with_gnu_ld = no; then
19165 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19168 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19171 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'
19176 # FIXME: insert proper C++ library support
19183 hardcode_direct_CXX=no
19184 hardcode_shlibpath_var_CXX=no
19185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19186 export_dynamic_flag_spec_CXX='${wl}-E'
19187 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19188 # Instead, shared libraries are loaded at an image base (0x10000000 by
19189 # default) and relocated if they conflict, which is a slow very memory
19190 # consuming and fragmenting process. To avoid this, we pick a random,
19191 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19192 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19193 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'
19194 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'
19197 case $cc_basename in
19200 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'
19202 # Archives containing C++ object files must be created using
19203 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19204 # necessary to make sure instantiated templates are included
19206 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19209 if test "$GXX" = yes; then
19210 if test "$with_gnu_ld" = no; then
19211 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'
19213 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'
19216 link_all_deplibs_CXX=yes
19219 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19220 hardcode_libdir_separator_CXX=:
19223 case $cc_basename in
19225 # Kuck and Associates, Inc. (KAI) C++ Compiler
19227 # KCC will only create a shared library if the output file
19228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19229 # to its proper name (with version) after linking.
19230 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'
19231 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'
19232 # Commands to make compiler produce verbose output that lists
19233 # what "hidden" libraries, object files and flags are used when
19234 # linking a shared library.
19236 # There doesn't appear to be a way to prevent this compiler from
19237 # explicitly linking system object files so we need to strip them
19238 # from the output so that they don't get included in the library
19240 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'
19242 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
19243 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19245 # Archives containing C++ object files must be created using
19246 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19247 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19252 # version 8.0 and above of icpc choke on multiply defined symbols
19253 # if we add $predep_objects and $postdep_objects, however 7.1 and
19254 # earlier do not add the objects themselves.
19255 case `$CC -V 2>&1` in
19257 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19258 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'
19260 *) # Version 8.0 or newer
19263 ia64
*) tmp_idyn
=' -i_dynamic';;
19265 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19266 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'
19269 archive_cmds_need_lc_CXX
=no
19270 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19271 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19272 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19275 # Portland Group C++ compiler
19276 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19277 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'
19279 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19280 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19281 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'
19285 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19286 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'
19288 runpath_var
=LD_RUN_PATH
19289 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19290 hardcode_libdir_separator_CXX
=:
19292 # Commands to make compiler produce verbose output that lists
19293 # what "hidden" libraries, object files and flags are used when
19294 # linking a shared library.
19296 # There doesn't appear to be a way to prevent this compiler from
19297 # explicitly linking system object files so we need to strip them
19298 # from the output so that they don't get included in the library
19300 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'
19305 # FIXME: insert proper C++ library support
19309 # FIXME: insert proper C++ library support
19313 case $cc_basename in
19315 # FIXME: insert proper C++ library support
19319 # FIXME: insert proper C++ library support
19325 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19326 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19328 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19329 hardcode_direct_CXX
=yes
19330 hardcode_shlibpath_var_CXX
=no
19332 # Workaround some broken pre-1.5 toolchains
19333 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19336 # C++ shared libraries are fairly broken
19340 hardcode_direct_CXX
=yes
19341 hardcode_shlibpath_var_CXX
=no
19342 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19343 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19345 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19346 export_dynamic_flag_spec_CXX
='${wl}-E'
19347 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19349 output_verbose_link_cmd
='echo'
19352 case $cc_basename in
19354 # Kuck and Associates, Inc. (KAI) C++ Compiler
19356 # KCC will only create a shared library if the output file
19357 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19358 # to its proper name (with version) after linking.
19359 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'
19361 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19362 hardcode_libdir_separator_CXX
=:
19364 # Archives containing C++ object files must be created using
19365 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19366 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19370 # Rational C++ 2.4.1
19371 # FIXME: insert proper C++ library support
19375 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19376 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'
19378 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19379 hardcode_libdir_separator_CXX
=:
19381 # Commands to make compiler produce verbose output that lists
19382 # what "hidden" libraries, object files and flags are used when
19383 # linking a shared library.
19385 # There doesn't appear to be a way to prevent this compiler from
19386 # explicitly linking system object files so we need to strip them
19387 # from the output so that they don't get included in the library
19389 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'
19392 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19393 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19394 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'
19396 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19397 hardcode_libdir_separator_CXX
=:
19399 # Commands to make compiler produce verbose output that lists
19400 # what "hidden" libraries, object files and flags are used when
19401 # linking a shared library.
19402 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19405 # FIXME: insert proper C++ library support
19412 case $cc_basename in
19414 # Kuck and Associates, Inc. (KAI) C++ Compiler
19416 # KCC will only create a shared library if the output file
19417 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19418 # to its proper name (with version) after linking.
19419 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'
19421 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19422 hardcode_libdir_separator_CXX
=:
19424 # Archives containing C++ object files must be created using
19425 # the KAI C++ compiler.
19426 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
19429 # Rational C++ 2.4.1
19430 # FIXME: insert proper C++ library support
19434 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19435 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'
19436 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19437 echo "-hidden">> $lib.exp~
19438 $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~
19441 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19442 hardcode_libdir_separator_CXX
=:
19444 # Commands to make compiler produce verbose output that lists
19445 # what "hidden" libraries, object files and flags are used when
19446 # linking a shared library.
19448 # There doesn't appear to be a way to prevent this compiler from
19449 # explicitly linking system object files so we need to strip them
19450 # from the output so that they don't get included in the library
19452 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'
19455 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19456 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19457 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'
19459 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19460 hardcode_libdir_separator_CXX
=:
19462 # Commands to make compiler produce verbose output that lists
19463 # what "hidden" libraries, object files and flags are used when
19464 # linking a shared library.
19465 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19468 # FIXME: insert proper C++ library support
19475 # FIXME: insert proper C++ library support
19479 case $cc_basename in
19482 # FIXME: insert proper C++ library support
19487 # FIXME: insert proper C++ library support
19491 # FIXME: insert proper C++ library support
19497 case $cc_basename in
19499 # Sun C++ 4.2, 5.x and Centerline C++
19500 archive_cmds_need_lc_CXX
=yes
19501 no_undefined_flag_CXX
=' -zdefs'
19502 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19503 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19504 $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'
19506 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19507 hardcode_shlibpath_var_CXX
=no
19509 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19511 # The C++ compiler is used as linker so we must use $wl
19512 # flag to pass the commands to the underlying system
19513 # linker. We must also pass each convience library through
19514 # to the system linker between allextract/defaultextract.
19515 # The C++ compiler will combine linker options so we
19516 # cannot just pass the convience library names through
19518 # Supported since Solaris 2.6 (maybe 2.5.1?)
19519 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'
19522 link_all_deplibs_CXX
=yes
19524 output_verbose_link_cmd
='echo'
19526 # Archives containing C++ object files must be created using
19527 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19528 # necessary to make sure instantiated templates are included
19530 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19533 # Green Hills C++ Compiler
19534 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19536 # The C++ compiler must be used to create the archive.
19537 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19540 # GNU C++ compiler with Solaris linker
19541 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19542 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19543 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
19544 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19545 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19546 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19548 # Commands to make compiler produce verbose output that lists
19549 # what "hidden" libraries, object files and flags are used when
19550 # linking a shared library.
19551 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19553 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19555 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19556 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19557 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19559 # Commands to make compiler produce verbose output that lists
19560 # what "hidden" libraries, object files and flags are used when
19561 # linking a shared library.
19562 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19565 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19570 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19571 no_undefined_flag_CXX
='${wl}-z,text'
19572 archive_cmds_need_lc_CXX
=no
19573 hardcode_shlibpath_var_CXX
=no
19574 runpath_var
='LD_RUN_PATH'
19576 case $cc_basename in
19578 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19579 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19582 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19583 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19587 sysv5
* | sco3.2v5
* | sco5v6
*)
19588 # Note: We can NOT use -z defs as we might desire, because we do not
19589 # link with -lc, and that would cause any symbols used from libc to
19590 # always be unresolved, which means just about no library would
19591 # ever link correctly. If we're not using GNU ld we use -z text
19592 # though, which does catch some bad symbols but isn't as heavy-handed
19594 # For security reasons, it is highly recommended that you always
19595 # use absolute paths for naming shared libraries, and exclude the
19596 # DT_RUNPATH tag from executables and libraries. But doing so
19597 # requires that you compile everything twice, which is a pain.
19598 # So that behaviour is only enabled if SCOABSPATH is set to a
19599 # non-empty value in the environment. Most likely only useful for
19600 # creating official distributions of packages.
19601 # This is a hack until libtool officially supports absolute path
19602 # names for shared libraries.
19603 no_undefined_flag_CXX
='${wl}-z,text'
19604 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19605 archive_cmds_need_lc_CXX
=no
19606 hardcode_shlibpath_var_CXX
=no
19607 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19608 hardcode_libdir_separator_CXX
=':'
19609 link_all_deplibs_CXX
=yes
19610 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19611 runpath_var
='LD_RUN_PATH'
19613 case $cc_basename in
19615 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19616 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19619 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19620 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19625 case $cc_basename in
19627 # NonStop-UX NCC 3.20
19628 # FIXME: insert proper C++ library support
19632 # FIXME: insert proper C++ library support
19638 # FIXME: insert proper C++ library support
19642 # FIXME: insert proper C++ library support
19646 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19647 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19648 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19654 cat > conftest.
$ac_ext <<EOF
19658 Foo (void) { a = 0; }
19664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665 (eval $ac_compile) 2>&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; then
19669 # Parse the compiler output and extract the necessary
19670 # objects, libraries and library flags.
19672 # Sentinel used to keep track of whether or not we are before
19673 # the conftest object file.
19674 pre_test_object_deps_done
=no
19676 # The `*' in the case matches for architectures that use `case' in
19677 # $output_verbose_cmd can trigger glob expansion during the loop
19678 # eval without this substitution.
19679 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19681 for p
in `eval $output_verbose_link_cmd`; do
19685 # Some compilers place space between "-{L,R}" and the path.
19686 # Remove the space.
19687 if test $p = "-L" \
19688 ||
test $p = "-R"; then
19695 if test "$pre_test_object_deps_done" = no
; then
19698 # Internal compiler library paths should come after those
19699 # provided the user. The postdeps already come after the
19700 # user supplied libs so there is no need to process them.
19701 if test -z "$compiler_lib_search_path_CXX"; then
19702 compiler_lib_search_path_CXX
="${prev}${p}"
19704 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19707 # The "-l" case would never come before the object being
19708 # linked, so don't bother handling this case.
19711 if test -z "$postdeps_CXX"; then
19712 postdeps_CXX
="${prev}${p}"
19714 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19720 # This assumes that the test object file only shows up
19721 # once in the compiler output.
19722 if test "$p" = "conftest.$objext"; then
19723 pre_test_object_deps_done
=yes
19727 if test "$pre_test_object_deps_done" = no
; then
19728 if test -z "$predep_objects_CXX"; then
19729 predep_objects_CXX
="$p"
19731 predep_objects_CXX
="$predep_objects_CXX $p"
19734 if test -z "$postdep_objects_CXX"; then
19735 postdep_objects_CXX
="$p"
19737 postdep_objects_CXX
="$postdep_objects_CXX $p"
19742 *) ;; # Ignore the rest.
19750 echo "libtool.m4: error: problem compiling CXX test program"
19753 $rm -f confest.
$objext
19755 # PORTME: override above test on systems where it is broken
19758 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19759 # hack all around it, let's just trust "g++" to DTRT.
19760 predep_objects_CXX
=
19761 postdep_objects_CXX
=
19766 case $cc_basename in
19768 # Adding this requires a known-good setup of shared libraries for
19769 # Sun compiler versions before 5.6, else PIC objects from an old
19770 # archive will be linked into the output, leading to subtle bugs.
19771 postdeps_CXX
='-lCstd -lCrun'
19778 case " $postdeps_CXX " in
19779 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19782 lt_prog_compiler_wl_CXX
=
19783 lt_prog_compiler_pic_CXX
=
19784 lt_prog_compiler_static_CXX
=
19786 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19787 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19789 # C++ specific cases for pic, static, wl, etc.
19790 if test "$GXX" = yes; then
19791 lt_prog_compiler_wl_CXX
='-Wl,'
19792 lt_prog_compiler_static_CXX
='-static'
19796 # All AIX code is PIC.
19797 if test "$host_cpu" = ia64
; then
19798 # AIX 5 now supports IA64 processor
19799 lt_prog_compiler_static_CXX
='-Bstatic'
19803 # FIXME: we need at least 68020 code to build shared libraries, but
19804 # adding the `-m68020' flag to GCC prevents building anything better,
19806 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19808 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19809 # PIC is the default for these OSes.
19811 mingw
* | os2
* | pw32
*)
19812 # This hack is so that the source file can tell whether it is being
19813 # built for inclusion in a dll (and should export symbols for example).
19814 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19816 darwin
* | rhapsody
*)
19817 # PIC is the default on this platform
19818 # Common symbols not allowed in MH_DYLIB files
19819 lt_prog_compiler_pic_CXX
='-fno-common'
19822 # DJGPP does not support shared libraries at all
19823 lt_prog_compiler_pic_CXX
=
19826 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19827 # Instead, we relocate shared libraries at runtime.
19830 if test -d /usr
/nec
; then
19831 lt_prog_compiler_pic_CXX
=-Kconform_pic
19835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19836 # not for PA HP-UX.
19841 lt_prog_compiler_pic_CXX
='-fPIC'
19846 lt_prog_compiler_pic_CXX
='-fPIC'
19852 # All AIX code is PIC.
19853 if test "$host_cpu" = ia64
; then
19854 # AIX 5 now supports IA64 processor
19855 lt_prog_compiler_static_CXX
='-Bstatic'
19857 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19861 case $cc_basename in
19863 # Green Hills C++ Compiler
19864 # _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"
19869 # PIC is the default on this platform
19870 # Common symbols not allowed in MH_DYLIB files
19871 case $cc_basename in
19873 lt_prog_compiler_pic_CXX
='-qnocommon'
19874 lt_prog_compiler_wl_CXX
='-Wl,'
19879 case $cc_basename in
19881 lt_prog_compiler_pic_CXX
='-KPIC'
19884 # Green Hills C++ Compiler
19885 lt_prog_compiler_pic_CXX
='-pic'
19891 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19892 # FreeBSD uses GNU C++
19894 hpux9
* | hpux10
* | hpux11
*)
19895 case $cc_basename in
19897 lt_prog_compiler_wl_CXX
='-Wl,'
19898 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19899 if test "$host_cpu" != ia64
; then
19900 lt_prog_compiler_pic_CXX
='+Z'
19904 lt_prog_compiler_wl_CXX
='-Wl,'
19905 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19911 lt_prog_compiler_pic_CXX
='+Z'
19920 # This is c89, which is MS Visual C++ (no shared libs)
19921 # Anyone wants to do a port?
19923 irix5
* | irix6
* | nonstopux
*)
19924 case $cc_basename in
19926 lt_prog_compiler_wl_CXX
='-Wl,'
19927 lt_prog_compiler_static_CXX
='-non_shared'
19928 # CC pic flag -KPIC is the default.
19935 case $cc_basename in
19938 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19939 lt_prog_compiler_pic_CXX
='-fPIC'
19943 lt_prog_compiler_wl_CXX
='-Wl,'
19944 lt_prog_compiler_pic_CXX
='-KPIC'
19945 lt_prog_compiler_static_CXX
='-static'
19948 # Portland Group C++ compiler.
19949 lt_prog_compiler_wl_CXX
='-Wl,'
19950 lt_prog_compiler_pic_CXX
='-fpic'
19951 lt_prog_compiler_static_CXX
='-Bstatic'
19955 # Make sure the PIC flag is empty. It appears that all Alpha
19956 # Linux and Compaq Tru64 Unix objects are PIC.
19957 lt_prog_compiler_pic_CXX
=
19958 lt_prog_compiler_static_CXX
='-non_shared'
19969 case $cc_basename in
19971 lt_prog_compiler_pic_CXX
='-W c,exportall'
19979 osf3
* | osf4
* | osf5
*)
19980 case $cc_basename in
19982 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19985 # Rational C++ 2.4.1
19986 lt_prog_compiler_pic_CXX
='-pic'
19989 # Digital/Compaq C++
19990 lt_prog_compiler_wl_CXX
='-Wl,'
19991 # Make sure the PIC flag is empty. It appears that all Alpha
19992 # Linux and Compaq Tru64 Unix objects are PIC.
19993 lt_prog_compiler_pic_CXX
=
19994 lt_prog_compiler_static_CXX
='-non_shared'
20003 case $cc_basename in
20005 # Sun C++ 4.2, 5.x and Centerline C++
20006 lt_prog_compiler_pic_CXX
='-KPIC'
20007 lt_prog_compiler_static_CXX
='-Bstatic'
20008 lt_prog_compiler_wl_CXX
='-Qoption ld '
20011 # Green Hills C++ Compiler
20012 lt_prog_compiler_pic_CXX
='-PIC'
20019 case $cc_basename in
20022 lt_prog_compiler_pic_CXX
='-pic'
20023 lt_prog_compiler_static_CXX
='-Bstatic'
20027 lt_prog_compiler_pic_CXX
='-pic'
20034 case $cc_basename in
20036 # NonStop-UX NCC 3.20
20037 lt_prog_compiler_pic_CXX
='-KPIC'
20043 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20044 case $cc_basename in
20046 lt_prog_compiler_wl_CXX
='-Wl,'
20047 lt_prog_compiler_pic_CXX
='-KPIC'
20048 lt_prog_compiler_static_CXX
='-Bstatic'
20055 lt_prog_compiler_can_build_shared_CXX
=no
20060 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20061 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20064 # Check to make sure the PIC flag actually works.
20066 if test -n "$lt_prog_compiler_pic_CXX"; then
20068 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20069 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20070 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 lt_prog_compiler_pic_works_CXX
=no
20074 ac_outfile
=conftest.
$ac_objext
20075 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20076 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20077 # Insert the option either (1) after the last *FLAGS variable, or
20078 # (2) before a word containing "conftest.", or (3) at the end.
20079 # Note that $ac_compile itself does not contain backslashes and begins
20080 # with a dollar sign (not a hyphen), so the echo should work correctly.
20081 # The option is referenced via a variable to avoid confusing sed.
20082 lt_compile
=`echo "$ac_compile" | $SED \
20083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20085 -e 's:$: $lt_compiler_flag:'`
20086 (eval echo "\"\$as_me:20086: $lt_compile\"" >&5)
20087 (eval "$lt_compile" 2>conftest.err
)
20089 cat conftest.err
>&5
20090 echo "$as_me:20090: \$? = $ac_status" >&5
20091 if (exit $ac_status) && test -s "$ac_outfile"; then
20092 # The compiler can only warn and ignore the option if not recognized
20093 # So say no if there are warnings other than the usual output.
20094 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
20095 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20096 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20097 lt_prog_compiler_pic_works_CXX
=yes
20103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20104 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20106 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
20107 case $lt_prog_compiler_pic_CXX in
20109 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20112 lt_prog_compiler_pic_CXX
=
20113 lt_prog_compiler_can_build_shared_CXX
=no
20118 # For platforms which do not support PIC, -DPIC is meaningless:
20120 lt_prog_compiler_pic_CXX
=
20123 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20128 # Check to make sure the static flag actually works.
20130 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20131 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20132 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20133 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20136 lt_prog_compiler_static_works_CXX
=no
20137 save_LDFLAGS
="$LDFLAGS"
20138 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20139 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
20140 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20141 # The linker can only warn and ignore the option if not recognized
20142 # So say no if there are warnings
20143 if test -s conftest.err
; then
20144 # Append any errors to the config.log.
20145 cat conftest.err
1>&5
20146 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
20147 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20148 if diff conftest.exp conftest.er2
>/dev
/null
; then
20149 lt_prog_compiler_static_works_CXX
=yes
20152 lt_prog_compiler_static_works_CXX
=yes
20156 LDFLAGS
="$save_LDFLAGS"
20159 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20160 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20162 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
20165 lt_prog_compiler_static_CXX
=
20169 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20170 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20171 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 lt_cv_prog_compiler_c_o_CXX
=no
20175 $rm -r conftest
2>/dev
/null
20179 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20181 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20182 # Insert the option either (1) after the last *FLAGS variable, or
20183 # (2) before a word containing "conftest.", or (3) at the end.
20184 # Note that $ac_compile itself does not contain backslashes and begins
20185 # with a dollar sign (not a hyphen), so the echo should work correctly.
20186 lt_compile
=`echo "$ac_compile" | $SED \
20187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20189 -e 's:$: $lt_compiler_flag:'`
20190 (eval echo "\"\$as_me:20190: $lt_compile\"" >&5)
20191 (eval "$lt_compile" 2>out
/conftest.err
)
20193 cat out
/conftest.err
>&5
20194 echo "$as_me:20194: \$? = $ac_status" >&5
20195 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20197 # The compiler can only warn and ignore the option if not recognized
20198 # So say no if there are warnings
20199 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
20200 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20201 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20202 lt_cv_prog_compiler_c_o_CXX
=yes
20207 # SGI C++ compiler will create directory out/ii_files/ for
20208 # template instantiation
20209 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
20210 $rm out
/* && rmdir out
20216 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20217 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20220 hard_links
="nottested"
20221 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20222 # do not overwrite the value of need_locks provided by the user
20223 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20224 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20227 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20229 ln conftest.a conftest.b
2>&5 || hard_links
=no
20230 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20231 { echo "$as_me:$LINENO: result: $hard_links" >&5
20232 echo "${ECHO_T}$hard_links" >&6; }
20233 if test "$hard_links" = no
; then
20234 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20235 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20242 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20243 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20245 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20248 # If we're using GNU nm, then we don't want the "-C" option.
20249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20250 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
20251 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'
20253 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'
20257 export_symbols_cmds_CXX
="$ltdll_cmds"
20260 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'
20263 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20267 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20268 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20269 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20272 # Do we need to explicitly link libc?
20274 case "x$archive_cmds_need_lc_CXX" in
20276 # Assume -lc should be added
20277 archive_cmds_need_lc_CXX
=yes
20279 if test "$enable_shared" = yes && test "$GCC" = yes; then
20280 case $archive_cmds_CXX in
20282 # FIXME: we may have to deal with multi-command sequences.
20285 # Test whether the compiler implicitly links with -lc since on some
20286 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20287 # to ld, don't add -lc before -lgcc.
20288 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20289 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20291 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20294 (eval $ac_compile) 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } 2>conftest.err
; then
20300 libobjs
=conftest.
$ac_objext
20302 wl
=$lt_prog_compiler_wl_CXX
20303 pic_flag
=$lt_prog_compiler_pic_CXX
20309 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20310 allow_undefined_flag_CXX
=
20311 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20312 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }
20317 archive_cmds_need_lc_CXX
=no
20319 archive_cmds_need_lc_CXX
=yes
20321 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20323 cat conftest.err
1>&5
20326 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20327 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20334 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20335 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20336 library_names_spec
=
20337 libname_spec
='lib$name'
20341 postuninstall_cmds
=
20345 shlibpath_overrides_runpath
=unknown
20347 dynamic_linker
="$host_os ld.so"
20348 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20349 if test "$GCC" = yes; then
20350 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20351 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
20352 # if the path contains ";" then we assume it to be the separator
20353 # otherwise default to the standard path separator (i.e. ":") - it is
20354 # assumed that no part of a normal pathname contains ";" but that should
20355 # okay in the real world where ";" in dirpaths is itself problematic.
20356 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20358 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20361 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20363 need_lib_prefix
=unknown
20364 hardcode_into_libs
=no
20366 # when you set need_version to no, make sure it does not cause -set_version
20367 # flags to be left without arguments
20368 need_version
=unknown
20373 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20374 shlibpath_var
=LIBPATH
20376 # AIX 3 has no versioning support, so we append a major version to the name.
20377 soname_spec
='${libname}${release}${shared_ext}$major'
20384 hardcode_into_libs
=yes
20385 if test "$host_cpu" = ia64
; then
20386 # AIX 5 supports IA64
20387 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20388 shlibpath_var
=LD_LIBRARY_PATH
20390 # With GCC up to 2.95.x, collect2 would create an import file
20391 # for dependence libraries. The import file would start with
20392 # the line `#! .'. This would cause the generated library to
20393 # depend on `.', always an invalid library. This was fixed in
20394 # development snapshots of GCC prior to 3.0.
20396 aix4 | aix4.
[01] | aix4.
[01].
*)
20397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20399 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
20402 can_build_shared
=no
20406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20407 # soname into executable. Probably we can add versioning support to
20408 # collect2, so additional links can be useful in future.
20409 if test "$aix_use_runtimelinking" = yes; then
20410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20411 # instead of lib<name>.a to let people know that these are not
20412 # typical AIX shared libraries.
20413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415 # We preserve .a as extension for shared libraries through AIX4.2
20416 # and later when we are not doing run time linking.
20417 library_names_spec
='${libname}${release}.a $libname.a'
20418 soname_spec
='${libname}${release}${shared_ext}$major'
20420 shlibpath_var
=LIBPATH
20425 library_names_spec
='$libname.ixlibrary $libname.a'
20426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20427 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'
20431 library_names_spec
='${libname}${shared_ext}'
20432 dynamic_linker
="$host_os ld.so"
20433 shlibpath_var
=LIBRARY_PATH
20439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20440 soname_spec
='${libname}${release}${shared_ext}$major'
20441 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20442 shlibpath_var
=LD_LIBRARY_PATH
20443 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20444 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20445 # the default ld.so.conf also contains /usr/contrib/lib and
20446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20447 # libtool to hard-code these into programs
20450 cygwin
* | mingw
* | pw32
*)
20451 version_type
=windows
20456 case $GCC,$host_os in
20457 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
20458 library_names_spec
='$libname.dll.a'
20459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20460 postinstall_cmds
='base_file=`basename \${file}`~
20461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20462 dldir=$destdir/`dirname \$dlpath`~
20463 test -d \$dldir || mkdir -p \$dldir~
20464 $install_prog $dir/$dlname \$dldir/$dlname~
20465 chmod a+x \$dldir/$dlname'
20466 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20467 dlpath=$dir/\$dldll~
20469 shlibpath_overrides_runpath
=yes
20473 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20474 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20475 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20478 # MinGW DLLs use traditional 'lib' prefix
20479 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20480 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20481 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
20482 # It is most probably a Windows format PATH printed by
20483 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20484 # path with ; separators, and with drive letters. We can handle the
20485 # drive letters (cygwin fileutils understands them), so leave them,
20486 # especially as we might pass files found there to a mingw objdump,
20487 # which wouldn't understand a cygwinified path. Ahh.
20488 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20490 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20494 # pw32 DLLs use 'pw' prefix rather than 'lib'
20495 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20501 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20504 dynamic_linker
='Win32 ld.exe'
20505 # FIXME: first we should search . and the directory the executable is in
20509 darwin
* | rhapsody
*)
20510 dynamic_linker
="$host_os dyld"
20511 version_type
=darwin
20514 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20515 soname_spec
='${libname}${release}${major}$shared_ext'
20516 shlibpath_overrides_runpath
=yes
20517 shlibpath_var
=DYLD_LIBRARY_PATH
20518 shrext_cmds
='.dylib'
20519 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20520 if test "$GCC" = yes; then
20521 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"`
20523 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
20525 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20533 soname_spec
='${libname}${release}${shared_ext}$major'
20534 shlibpath_var
=LD_LIBRARY_PATH
20545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20546 soname_spec
='${libname}${release}${shared_ext}$major'
20547 shlibpath_var
=LD_LIBRARY_PATH
20548 shlibpath_overrides_runpath
=no
20549 hardcode_into_libs
=yes
20550 dynamic_linker
='GNU ld.so'
20553 freebsd
* | dragonfly
*)
20554 # DragonFly does not have aout. When/if they implement a new
20555 # versioning mechanism, adjust this.
20556 if test -x /usr
/bin
/objformat
; then
20557 objformat
=`/usr/bin/objformat`
20560 freebsd
[123]*) objformat
=aout
;;
20561 *) objformat
=elf
;;
20564 version_type
=freebsd-
$objformat
20565 case $version_type in
20567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20572 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20576 shlibpath_var
=LD_LIBRARY_PATH
20579 shlibpath_overrides_runpath
=yes
20581 freebsd3.
[01]* | freebsdelf3.
[01]*)
20582 shlibpath_overrides_runpath
=yes
20583 hardcode_into_libs
=yes
20585 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20586 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20587 shlibpath_overrides_runpath
=no
20588 hardcode_into_libs
=yes
20590 freebsd
*) # from 4.6 on
20591 shlibpath_overrides_runpath
=yes
20592 hardcode_into_libs
=yes
20601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20602 soname_spec
='${libname}${release}${shared_ext}$major'
20603 shlibpath_var
=LD_LIBRARY_PATH
20604 hardcode_into_libs
=yes
20607 hpux9
* | hpux10
* | hpux11
*)
20608 # Give a soname corresponding to the major version so that dld.sl refuses to
20609 # link against other versions.
20616 hardcode_into_libs
=yes
20617 dynamic_linker
="$host_os dld.so"
20618 shlibpath_var
=LD_LIBRARY_PATH
20619 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20620 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621 soname_spec
='${libname}${release}${shared_ext}$major'
20622 if test "X$HPUX_IA64_MODE" = X32
; then
20623 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20625 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20627 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20631 hardcode_into_libs
=yes
20632 dynamic_linker
="$host_os dld.sl"
20633 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20634 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20636 soname_spec
='${libname}${release}${shared_ext}$major'
20637 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20638 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20642 dynamic_linker
="$host_os dld.sl"
20643 shlibpath_var
=SHLIB_PATH
20644 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20645 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646 soname_spec
='${libname}${release}${shared_ext}$major'
20649 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20650 postinstall_cmds
='chmod 555 $lib'
20657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20658 soname_spec
='${libname}${release}${shared_ext}$major'
20659 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20660 shlibpath_var
=LD_LIBRARY_PATH
20661 shlibpath_overrides_runpath
=no
20662 hardcode_into_libs
=yes
20665 irix5
* | irix6
* | nonstopux
*)
20667 nonstopux
*) version_type
=nonstopux
;;
20669 if test "$lt_cv_prog_gnu_ld" = yes; then
20677 soname_spec
='${libname}${release}${shared_ext}$major'
20678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20680 irix5
* | nonstopux
*)
20681 libsuff
= shlibsuff
=
20684 case $LD in # libtool.m4 will add one of these switches to LD
20685 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20686 libsuff
= shlibsuff
= libmagic
=32-bit;;
20687 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20688 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20689 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20690 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20691 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20695 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20696 shlibpath_overrides_runpath
=no
20697 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20698 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20699 hardcode_into_libs
=yes
20702 # No shared lib support for Linux oldld, aout, or coff.
20703 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20707 # This must be Linux ELF.
20712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20713 soname_spec
='${libname}${release}${shared_ext}$major'
20714 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20715 shlibpath_var
=LD_LIBRARY_PATH
20716 shlibpath_overrides_runpath
=no
20717 # This implies no fast_install, which is unacceptable.
20718 # Some rework will be needed to allow for fast_install
20719 # before this can be enabled.
20720 hardcode_into_libs
=yes
20722 # Append ld.so.conf contents to the search path
20723 if test -f /etc
/ld.so.conf
; then
20724 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' ' '`
20725 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20728 # We used to test for /lib/ld.so.1 and disable shared libraries on
20729 # powerpc, because MkLinux only supported shared libraries with the
20730 # GNU dynamic linker. Since this was broken with cross compilers,
20731 # most powerpc-linux boxes support dynamic linking these days and
20732 # people can always --disable-shared, the test was removed, and we
20733 # assume the GNU/Linux dynamic linker is in use.
20734 dynamic_linker
='GNU/Linux ld.so'
20741 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20742 soname_spec
='${libname}${release}${shared_ext}$major'
20743 shlibpath_var
=LD_LIBRARY_PATH
20744 shlibpath_overrides_runpath
=no
20745 hardcode_into_libs
=yes
20746 dynamic_linker
='GNU ld.so'
20753 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20754 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20755 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20756 dynamic_linker
='NetBSD (a.out) ld.so'
20758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20759 soname_spec
='${libname}${release}${shared_ext}$major'
20760 dynamic_linker
='NetBSD ld.elf_so'
20762 shlibpath_var
=LD_LIBRARY_PATH
20763 shlibpath_overrides_runpath
=yes
20764 hardcode_into_libs
=yes
20769 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20770 shlibpath_var
=LD_LIBRARY_PATH
20771 shlibpath_overrides_runpath
=yes
20778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 soname_spec
='${libname}${release}${shared_ext}$major'
20780 shlibpath_var
=LD_LIBRARY_PATH
20781 shlibpath_overrides_runpath
=yes
20786 sys_lib_dlsearch_path_spec
="/usr/lib"
20788 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20790 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20791 *) need_version
=no
;;
20793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20794 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20795 shlibpath_var
=LD_LIBRARY_PATH
20796 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20798 openbsd2.
[89] | openbsd2.
[89].
*)
20799 shlibpath_overrides_runpath
=no
20802 shlibpath_overrides_runpath
=yes
20806 shlibpath_overrides_runpath
=yes
20811 libname_spec
='$name'
20814 library_names_spec
='$libname${shared_ext} $libname.a'
20815 dynamic_linker
='OS/2 ld.exe'
20816 shlibpath_var
=LIBPATH
20819 osf3
* | osf4
* | osf5
*)
20823 soname_spec
='${libname}${release}${shared_ext}$major'
20824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20825 shlibpath_var
=LD_LIBRARY_PATH
20826 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20827 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835 soname_spec
='${libname}${release}${shared_ext}$major'
20836 shlibpath_var
=LD_LIBRARY_PATH
20837 shlibpath_overrides_runpath
=yes
20838 hardcode_into_libs
=yes
20839 # ldd complains unless libraries are executable
20840 postinstall_cmds
='chmod +x $lib'
20845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20846 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20847 shlibpath_var
=LD_LIBRARY_PATH
20848 shlibpath_overrides_runpath
=yes
20849 if test "$with_gnu_ld" = yes; then
20857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20858 soname_spec
='${libname}${release}${shared_ext}$major'
20859 shlibpath_var
=LD_LIBRARY_PATH
20860 case $host_vendor in
20862 shlibpath_overrides_runpath
=no
20864 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20865 runpath_var
=LD_RUN_PATH
20873 shlibpath_overrides_runpath
=no
20874 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20880 if test -d /usr
/nec
;then
20882 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20883 soname_spec
='$libname${shared_ext}.$major'
20884 shlibpath_var
=LD_LIBRARY_PATH
20888 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20889 version_type
=freebsd-elf
20892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20893 soname_spec
='${libname}${release}${shared_ext}$major'
20894 shlibpath_var
=LD_LIBRARY_PATH
20895 hardcode_into_libs
=yes
20896 if test "$with_gnu_ld" = yes; then
20897 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20898 shlibpath_overrides_runpath
=no
20900 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20901 shlibpath_overrides_runpath
=yes
20904 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20908 sys_lib_dlsearch_path_spec
='/usr/lib'
20913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20914 soname_spec
='${libname}${release}${shared_ext}$major'
20915 shlibpath_var
=LD_LIBRARY_PATH
20922 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20923 echo "${ECHO_T}$dynamic_linker" >&6; }
20924 test "$dynamic_linker" = no
&& can_build_shared
=no
20926 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20927 if test "$GCC" = yes; then
20928 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20931 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20932 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20933 hardcode_action_CXX
=
20934 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20935 test -n "$runpath_var_CXX" || \
20936 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20938 # We can hardcode non-existant directories.
20939 if test "$hardcode_direct_CXX" != no
&&
20940 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20941 # have to relink, otherwise we might link with an installed library
20942 # when we should be linking with a yet-to-be-installed one
20943 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20944 test "$hardcode_minus_L_CXX" != no
; then
20945 # Linking always hardcodes the temporary library directory.
20946 hardcode_action_CXX
=relink
20948 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20949 hardcode_action_CXX
=immediate
20952 # We cannot hardcode anything, or else we can only hardcode existing
20954 hardcode_action_CXX
=unsupported
20956 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20957 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20959 if test "$hardcode_action_CXX" = relink
; then
20960 # Fast installation is not supported
20961 enable_fast_install
=no
20962 elif test "$shlibpath_overrides_runpath" = yes ||
20963 test "$enable_shared" = no
; then
20964 # Fast installation is not necessary
20965 enable_fast_install
=needless
20969 # The else clause should only fire when bootstrapping the
20970 # libtool distribution, otherwise you forgot to ship ltmain.sh
20971 # with your package, and you will get complaints that there are
20972 # no rules to generate ltmain.sh.
20973 if test -f "$ltmain"; then
20974 # See if we are running on zsh, and set the options which allow our commands through
20975 # without removal of \ escapes.
20976 if test -n "${ZSH_VERSION+set}" ; then
20977 setopt NO_GLOB_SUBST
20979 # Now quote all the things that may contain metacharacters while being
20980 # careful not to overquote the AC_SUBSTed values. We take copies of the
20981 # variables and quote the copies for generation of the libtool script.
20982 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20984 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20985 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20986 deplibs_check_method reload_flag reload_cmds need_locks \
20987 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20988 lt_cv_sys_global_symbol_to_c_name_address \
20989 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20990 old_postinstall_cmds old_postuninstall_cmds \
20994 lt_prog_compiler_wl_CXX \
20995 lt_prog_compiler_pic_CXX \
20996 lt_prog_compiler_static_CXX \
20997 lt_prog_compiler_no_builtin_flag_CXX \
20998 export_dynamic_flag_spec_CXX \
20999 thread_safe_flag_spec_CXX \
21000 whole_archive_flag_spec_CXX \
21001 enable_shared_with_static_runtimes_CXX \
21002 old_archive_cmds_CXX \
21003 old_archive_from_new_cmds_CXX \
21004 predep_objects_CXX \
21005 postdep_objects_CXX \
21008 compiler_lib_search_path_CXX \
21010 archive_expsym_cmds_CXX \
21011 postinstall_cmds_CXX \
21012 postuninstall_cmds_CXX \
21013 old_archive_from_expsyms_cmds_CXX \
21014 allow_undefined_flag_CXX \
21015 no_undefined_flag_CXX \
21016 export_symbols_cmds_CXX \
21017 hardcode_libdir_flag_spec_CXX \
21018 hardcode_libdir_flag_spec_ld_CXX \
21019 hardcode_libdir_separator_CXX \
21020 hardcode_automatic_CXX \
21022 module_expsym_cmds_CXX \
21023 lt_cv_prog_compiler_c_o_CXX \
21024 exclude_expsyms_CXX \
21025 include_expsyms_CXX
; do
21028 old_archive_cmds_CXX | \
21029 old_archive_from_new_cmds_CXX | \
21030 archive_cmds_CXX | \
21031 archive_expsym_cmds_CXX | \
21032 module_cmds_CXX | \
21033 module_expsym_cmds_CXX | \
21034 old_archive_from_expsyms_cmds_CXX | \
21035 export_symbols_cmds_CXX | \
21036 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21037 postinstall_cmds | postuninstall_cmds | \
21038 old_postinstall_cmds | old_postuninstall_cmds | \
21039 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
21040 # Double-quote double-evaled strings.
21041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21044 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21050 *'\$0 --fallback-echo"')
21051 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21057 cat <<__EOF__ >> "$cfgfile"
21058 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21060 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21062 # Shell to use when invoking shell scripts.
21065 # Whether or not to build shared libraries.
21066 build_libtool_libs=$enable_shared
21068 # Whether or not to build static libraries.
21069 build_old_libs=$enable_static
21071 # Whether or not to add -lc for building shared libraries.
21072 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21074 # Whether or not to disallow shared libs when runtime libs are static
21075 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21077 # Whether or not to optimize for fast installation.
21078 fast_install=$enable_fast_install
21081 host_alias=$host_alias
21085 # The build system.
21086 build_alias=$build_alias
21090 # An echo program that does not interpret backslashes.
21095 AR_FLAGS=$lt_AR_FLAGS
21100 # LTCC compiler flags.
21101 LTCFLAGS=$lt_LTCFLAGS
21103 # A language-specific compiler.
21104 CC=$lt_compiler_CXX
21106 # Is the compiler the GNU C compiler?
21112 # The linker used to build libraries.
21115 # Whether we need hard or soft links.
21118 # A BSD-compatible nm program.
21121 # A symbol stripping program
21124 # Used to examine libraries when file_magic_cmd begins "file"
21125 MAGIC_CMD=$MAGIC_CMD
21127 # Used on cygwin: DLL creation program.
21130 # Used on cygwin: object dumper.
21133 # Used on cygwin: assembler.
21136 # The name of the directory that contains temporary libtool files.
21139 # How to create reloadable object files.
21140 reload_flag=$lt_reload_flag
21141 reload_cmds=$lt_reload_cmds
21143 # How to pass a linker flag through the compiler.
21144 wl=$lt_lt_prog_compiler_wl_CXX
21146 # Object file suffix (normally "o").
21147 objext="$ac_objext"
21149 # Old archive suffix (normally "a").
21152 # Shared library suffix (normally ".so").
21153 shrext_cmds='$shrext_cmds'
21155 # Executable file suffix (normally "").
21158 # Additional compiler flags for building library objects.
21159 pic_flag=$lt_lt_prog_compiler_pic_CXX
21162 # What is the maximum length of a command?
21163 max_cmd_len=$lt_cv_sys_max_cmd_len
21165 # Does compiler simultaneously support -c and -o options?
21166 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21168 # Must we lock files when doing compilation?
21169 need_locks=$lt_need_locks
21171 # Do we need the lib prefix for modules?
21172 need_lib_prefix=$need_lib_prefix
21174 # Do we need a version for libraries?
21175 need_version=$need_version
21177 # Whether dlopen is supported.
21178 dlopen_support=$enable_dlopen
21180 # Whether dlopen of programs is supported.
21181 dlopen_self=$enable_dlopen_self
21183 # Whether dlopen of statically linked programs is supported.
21184 dlopen_self_static=$enable_dlopen_self_static
21186 # Compiler flag to prevent dynamic linking.
21187 link_static_flag=$lt_lt_prog_compiler_static_CXX
21189 # Compiler flag to turn off builtin functions.
21190 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21192 # Compiler flag to allow reflexive dlopens.
21193 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21195 # Compiler flag to generate shared objects directly from archives.
21196 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21198 # Compiler flag to generate thread-safe objects.
21199 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21201 # Library versioning type.
21202 version_type=$version_type
21204 # Format of library name prefix.
21205 libname_spec=$lt_libname_spec
21207 # List of archive names. First name is the real one, the rest are links.
21208 # The last name is the one that the linker finds with -lNAME.
21209 library_names_spec=$lt_library_names_spec
21211 # The coded name of the library, if different from the real name.
21212 soname_spec=$lt_soname_spec
21214 # Commands used to build and install an old-style archive.
21216 old_archive_cmds=$lt_old_archive_cmds_CXX
21217 old_postinstall_cmds=$lt_old_postinstall_cmds
21218 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21220 # Create an old-style archive from a shared archive.
21221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21223 # Create a temporary old-style archive to link instead of a shared archive.
21224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21226 # Commands used to build and install a shared archive.
21227 archive_cmds=$lt_archive_cmds_CXX
21228 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21229 postinstall_cmds=$lt_postinstall_cmds
21230 postuninstall_cmds=$lt_postuninstall_cmds
21232 # Commands used to build a loadable module (assumed same as above if empty)
21233 module_cmds=$lt_module_cmds_CXX
21234 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21236 # Commands to strip libraries.
21237 old_striplib=$lt_old_striplib
21238 striplib=$lt_striplib
21240 # Dependencies to place before the objects being linked to create a
21242 predep_objects=$lt_predep_objects_CXX
21244 # Dependencies to place after the objects being linked to create a
21246 postdep_objects=$lt_postdep_objects_CXX
21248 # Dependencies to place before the objects being linked to create a
21250 predeps=$lt_predeps_CXX
21252 # Dependencies to place after the objects being linked to create a
21254 postdeps=$lt_postdeps_CXX
21256 # The library search path used internally by the compiler when linking
21257 # a shared library.
21258 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21260 # Method to check whether dependent libraries are shared objects.
21261 deplibs_check_method=$lt_deplibs_check_method
21263 # Command to use when deplibs_check_method == file_magic.
21264 file_magic_cmd=$lt_file_magic_cmd
21266 # Flag that allows shared libraries with undefined symbols to be built.
21267 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21269 # Flag that forces no undefined symbols.
21270 no_undefined_flag=$lt_no_undefined_flag_CXX
21272 # Commands used to finish a libtool library installation in a directory.
21273 finish_cmds=$lt_finish_cmds
21275 # Same as above, but a single script fragment to be evaled but not shown.
21276 finish_eval=$lt_finish_eval
21278 # Take the output of nm and produce a listing of raw symbols and C names.
21279 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21281 # Transform the output of nm in a proper C declaration
21282 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21284 # Transform the output of nm in a C name address pair
21285 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21287 # This is the shared library runtime path variable.
21288 runpath_var=$runpath_var
21290 # This is the shared library path variable.
21291 shlibpath_var=$shlibpath_var
21293 # Is shlibpath searched before the hard-coded library search path?
21294 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21296 # How to hardcode a shared library path into an executable.
21297 hardcode_action=$hardcode_action_CXX
21299 # Whether we should hardcode library paths into libraries.
21300 hardcode_into_libs=$hardcode_into_libs
21302 # Flag to hardcode \$libdir into a binary during linking.
21303 # This must work even if \$libdir does not exist.
21304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21306 # If ld is used when linking, flag to hardcode \$libdir into
21307 # a binary during linking. This must work even if \$libdir does
21309 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21311 # Whether we need a single -rpath flag with a separated argument.
21312 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21314 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21315 # resulting binary.
21316 hardcode_direct=$hardcode_direct_CXX
21318 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21319 # resulting binary.
21320 hardcode_minus_L=$hardcode_minus_L_CXX
21322 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21323 # the resulting binary.
21324 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21326 # Set to yes if building a shared library automatically hardcodes DIR into the library
21327 # and all subsequent libraries and executables linked against it.
21328 hardcode_automatic=$hardcode_automatic_CXX
21330 # Variables whose values should be saved in libtool wrapper scripts and
21331 # restored at relink time.
21332 variables_saved_for_relink="$variables_saved_for_relink"
21334 # Whether libtool must link a program against all its dependency libraries.
21335 link_all_deplibs=$link_all_deplibs_CXX
21337 # Compile-time system search path for libraries
21338 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21340 # Run-time system search path for libraries
21341 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21343 # Fix the shell variable \$srcfile for the compiler.
21344 fix_srcfile_path="$fix_srcfile_path_CXX"
21346 # Set to yes if exported symbols are required.
21347 always_export_symbols=$always_export_symbols_CXX
21349 # The commands to list exported symbols.
21350 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21352 # The commands to extract the exported symbol list from a shared archive.
21353 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21355 # Symbols that should not be listed in the preloaded symbols.
21356 exclude_expsyms=$lt_exclude_expsyms_CXX
21358 # Symbols that must always be exported.
21359 include_expsyms=$lt_include_expsyms_CXX
21361 # ### END LIBTOOL TAG CONFIG: $tagname
21367 # If there is no Makefile yet, we rely on a make rule to execute
21368 # `config.status --recheck' to rerun these tests and create the
21369 # libtool script then.
21370 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21371 if test -f "$ltmain_in"; then
21372 test -f Makefile
&& make "$ltmain"
21378 ac_cpp
='$CPP $CPPFLAGS'
21379 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21380 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21381 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21387 with_gnu_ldcxx
=$with_gnu_ld
21388 with_gnu_ld
=$lt_save_with_gnu_ld
21389 lt_cv_path_LDCXX
=$lt_cv_path_LD
21390 lt_cv_path_LD
=$lt_save_path_LD
21391 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21392 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21400 if test -n "$F77" && test "X$F77" != "Xno"; then
21403 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21404 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21405 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
21408 archive_cmds_need_lc_F77
=no
21409 allow_undefined_flag_F77
=
21410 always_export_symbols_F77
=no
21411 archive_expsym_cmds_F77
=
21412 export_dynamic_flag_spec_F77
=
21413 hardcode_direct_F77
=no
21414 hardcode_libdir_flag_spec_F77
=
21415 hardcode_libdir_flag_spec_ld_F77
=
21416 hardcode_libdir_separator_F77
=
21417 hardcode_minus_L_F77
=no
21418 hardcode_automatic_F77
=no
21420 module_expsym_cmds_F77
=
21421 link_all_deplibs_F77
=unknown
21422 old_archive_cmds_F77
=$old_archive_cmds
21423 no_undefined_flag_F77
=
21424 whole_archive_flag_spec_F77
=
21425 enable_shared_with_static_runtimes_F77
=no
21427 # Source file extension for f77 test sources.
21430 # Object file extension for compiled f77 test sources.
21434 # Code to be used in simple compile tests
21435 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
21437 # Code to be used in simple link tests
21438 lt_simple_link_test_code
=" program t\n end\n"
21440 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21442 # If no C compiler was specified, use CC.
21445 # If no C compiler flags were specified, use CFLAGS.
21446 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21448 # Allow CC to be a program name with arguments.
21452 # save warnings/boilerplate of simple test code
21453 ac_outfile
=conftest.
$ac_objext
21454 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
21455 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21456 _lt_compiler_boilerplate
=`cat conftest.err`
21459 ac_outfile
=conftest.
$ac_objext
21460 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
21461 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21462 _lt_linker_boilerplate
=`cat conftest.err`
21466 # Allow CC to be a program name with arguments.
21471 for cc_temp
in $compiler""; do
21473 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21474 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21479 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21482 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21483 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21484 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21485 echo "${ECHO_T}$can_build_shared" >&6; }
21487 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21488 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21489 test "$can_build_shared" = "no" && enable_shared
=no
21491 # On AIX, shared libraries and static libraries use the same namespace, and
21492 # are all built from PIC.
21495 test "$enable_shared" = yes && enable_static
=no
21496 if test -n "$RANLIB"; then
21497 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21498 postinstall_cmds
='$RANLIB $lib'
21502 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21503 test "$enable_shared" = yes && enable_static
=no
21507 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21508 echo "${ECHO_T}$enable_shared" >&6; }
21510 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21511 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21512 # Make sure either enable_shared or enable_static is yes.
21513 test "$enable_shared" = yes || enable_static
=yes
21514 { echo "$as_me:$LINENO: result: $enable_static" >&5
21515 echo "${ECHO_T}$enable_static" >&6; }
21520 lt_prog_compiler_wl_F77
=
21521 lt_prog_compiler_pic_F77
=
21522 lt_prog_compiler_static_F77
=
21524 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21527 if test "$GCC" = yes; then
21528 lt_prog_compiler_wl_F77
='-Wl,'
21529 lt_prog_compiler_static_F77
='-static'
21533 # All AIX code is PIC.
21534 if test "$host_cpu" = ia64
; then
21535 # AIX 5 now supports IA64 processor
21536 lt_prog_compiler_static_F77
='-Bstatic'
21541 # FIXME: we need at least 68020 code to build shared libraries, but
21542 # adding the `-m68020' flag to GCC prevents building anything better,
21544 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
21547 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21548 # PIC is the default for these OSes.
21551 mingw
* | pw32
* | os2
*)
21552 # This hack is so that the source file can tell whether it is being
21553 # built for inclusion in a dll (and should export symbols for example).
21554 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21557 darwin
* | rhapsody
*)
21558 # PIC is the default on this platform
21559 # Common symbols not allowed in MH_DYLIB files
21560 lt_prog_compiler_pic_F77
='-fno-common'
21564 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21565 # Instead, we relocate shared libraries at runtime.
21569 # Just because we use GCC doesn't mean we suddenly get shared libraries
21570 # on systems that don't support them.
21571 lt_prog_compiler_can_build_shared_F77
=no
21576 if test -d /usr
/nec
; then
21577 lt_prog_compiler_pic_F77
=-Kconform_pic
21582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21583 # not for PA HP-UX.
21589 lt_prog_compiler_pic_F77
='-fPIC'
21595 lt_prog_compiler_pic_F77
='-fPIC'
21599 # PORTME Check for flag to pass linker flags through the system compiler.
21602 lt_prog_compiler_wl_F77
='-Wl,'
21603 if test "$host_cpu" = ia64
; then
21604 # AIX 5 now supports IA64 processor
21605 lt_prog_compiler_static_F77
='-Bstatic'
21607 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
21611 # PIC is the default on this platform
21612 # Common symbols not allowed in MH_DYLIB files
21613 case $cc_basename in
21615 lt_prog_compiler_pic_F77
='-qnocommon'
21616 lt_prog_compiler_wl_F77
='-Wl,'
21621 mingw
* | pw32
* | os2
*)
21622 # This hack is so that the source file can tell whether it is being
21623 # built for inclusion in a dll (and should export symbols for example).
21624 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21627 hpux9
* | hpux10
* | hpux11
*)
21628 lt_prog_compiler_wl_F77
='-Wl,'
21629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21630 # not for PA HP-UX.
21636 lt_prog_compiler_pic_F77
='+Z'
21639 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21640 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21643 irix5
* | irix6
* | nonstopux
*)
21644 lt_prog_compiler_wl_F77
='-Wl,'
21645 # PIC (with -KPIC) is the default.
21646 lt_prog_compiler_static_F77
='-non_shared'
21650 lt_prog_compiler_pic_F77
='-KPIC'
21651 lt_prog_compiler_static_F77
='-Bstatic'
21655 case $cc_basename in
21657 lt_prog_compiler_wl_F77
='-Wl,'
21658 lt_prog_compiler_pic_F77
='-KPIC'
21659 lt_prog_compiler_static_F77
='-static'
21661 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21662 # Portland Group compilers (*not* the Pentium gcc compiler,
21663 # which looks to be a dead project)
21664 lt_prog_compiler_wl_F77
='-Wl,'
21665 lt_prog_compiler_pic_F77
='-fpic'
21666 lt_prog_compiler_static_F77
='-Bstatic'
21669 lt_prog_compiler_wl_F77
='-Wl,'
21670 # All Alpha code is PIC.
21671 lt_prog_compiler_static_F77
='-non_shared'
21676 osf3
* | osf4
* | osf5
*)
21677 lt_prog_compiler_wl_F77
='-Wl,'
21678 # All OSF/1 code is PIC.
21679 lt_prog_compiler_static_F77
='-non_shared'
21683 lt_prog_compiler_pic_F77
='-KPIC'
21684 lt_prog_compiler_static_F77
='-Bstatic'
21685 case $cc_basename in
21686 f77
* | f90
* | f95
*)
21687 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21689 lt_prog_compiler_wl_F77
='-Wl,';;
21694 lt_prog_compiler_wl_F77
='-Qoption ld '
21695 lt_prog_compiler_pic_F77
='-PIC'
21696 lt_prog_compiler_static_F77
='-Bstatic'
21699 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21700 lt_prog_compiler_wl_F77
='-Wl,'
21701 lt_prog_compiler_pic_F77
='-KPIC'
21702 lt_prog_compiler_static_F77
='-Bstatic'
21706 if test -d /usr
/nec
;then
21707 lt_prog_compiler_pic_F77
='-Kconform_pic'
21708 lt_prog_compiler_static_F77
='-Bstatic'
21712 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21713 lt_prog_compiler_wl_F77
='-Wl,'
21714 lt_prog_compiler_pic_F77
='-KPIC'
21715 lt_prog_compiler_static_F77
='-Bstatic'
21719 lt_prog_compiler_wl_F77
='-Wl,'
21720 lt_prog_compiler_can_build_shared_F77
=no
21724 lt_prog_compiler_pic_F77
='-pic'
21725 lt_prog_compiler_static_F77
='-Bstatic'
21729 lt_prog_compiler_can_build_shared_F77
=no
21734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21735 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21738 # Check to make sure the PIC flag actually works.
21740 if test -n "$lt_prog_compiler_pic_F77"; then
21742 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21743 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21744 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 lt_prog_compiler_pic_works_F77
=no
21748 ac_outfile
=conftest.
$ac_objext
21749 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21750 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21751 # Insert the option either (1) after the last *FLAGS variable, or
21752 # (2) before a word containing "conftest.", or (3) at the end.
21753 # Note that $ac_compile itself does not contain backslashes and begins
21754 # with a dollar sign (not a hyphen), so the echo should work correctly.
21755 # The option is referenced via a variable to avoid confusing sed.
21756 lt_compile
=`echo "$ac_compile" | $SED \
21757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21759 -e 's:$: $lt_compiler_flag:'`
21760 (eval echo "\"\$as_me:21760: $lt_compile\"" >&5)
21761 (eval "$lt_compile" 2>conftest.err
)
21763 cat conftest.err
>&5
21764 echo "$as_me:21764: \$? = $ac_status" >&5
21765 if (exit $ac_status) && test -s "$ac_outfile"; then
21766 # The compiler can only warn and ignore the option if not recognized
21767 # So say no if there are warnings other than the usual output.
21768 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21769 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21770 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21771 lt_prog_compiler_pic_works_F77
=yes
21777 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21778 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21780 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21781 case $lt_prog_compiler_pic_F77 in
21783 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21786 lt_prog_compiler_pic_F77
=
21787 lt_prog_compiler_can_build_shared_F77
=no
21792 # For platforms which do not support PIC, -DPIC is meaningless:
21794 lt_prog_compiler_pic_F77
=
21797 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21802 # Check to make sure the static flag actually works.
21804 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21805 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21806 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21807 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21810 lt_prog_compiler_static_works_F77
=no
21811 save_LDFLAGS
="$LDFLAGS"
21812 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21813 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21814 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21815 # The linker can only warn and ignore the option if not recognized
21816 # So say no if there are warnings
21817 if test -s conftest.err
; then
21818 # Append any errors to the config.log.
21819 cat conftest.err
1>&5
21820 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21821 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21822 if diff conftest.exp conftest.er2
>/dev
/null
; then
21823 lt_prog_compiler_static_works_F77
=yes
21826 lt_prog_compiler_static_works_F77
=yes
21830 LDFLAGS
="$save_LDFLAGS"
21833 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21834 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21836 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21839 lt_prog_compiler_static_F77
=
21843 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21844 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21845 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21848 lt_cv_prog_compiler_c_o_F77
=no
21849 $rm -r conftest
2>/dev
/null
21853 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21855 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21856 # Insert the option either (1) after the last *FLAGS variable, or
21857 # (2) before a word containing "conftest.", or (3) at the end.
21858 # Note that $ac_compile itself does not contain backslashes and begins
21859 # with a dollar sign (not a hyphen), so the echo should work correctly.
21860 lt_compile
=`echo "$ac_compile" | $SED \
21861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21863 -e 's:$: $lt_compiler_flag:'`
21864 (eval echo "\"\$as_me:21864: $lt_compile\"" >&5)
21865 (eval "$lt_compile" 2>out
/conftest.err
)
21867 cat out
/conftest.err
>&5
21868 echo "$as_me:21868: \$? = $ac_status" >&5
21869 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21871 # The compiler can only warn and ignore the option if not recognized
21872 # So say no if there are warnings
21873 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21874 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21875 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21876 lt_cv_prog_compiler_c_o_F77
=yes
21881 # SGI C++ compiler will create directory out/ii_files/ for
21882 # template instantiation
21883 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21884 $rm out
/* && rmdir out
21890 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21891 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21894 hard_links
="nottested"
21895 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
21896 # do not overwrite the value of need_locks provided by the user
21897 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21898 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21901 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21903 ln conftest.a conftest.b
2>&5 || hard_links
=no
21904 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21905 { echo "$as_me:$LINENO: result: $hard_links" >&5
21906 echo "${ECHO_T}$hard_links" >&6; }
21907 if test "$hard_links" = no
; then
21908 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21909 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21916 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21917 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21920 allow_undefined_flag_F77
=
21921 enable_shared_with_static_runtimes_F77
=no
21923 archive_expsym_cmds_F77
=
21924 old_archive_From_new_cmds_F77
=
21925 old_archive_from_expsyms_cmds_F77
=
21926 export_dynamic_flag_spec_F77
=
21927 whole_archive_flag_spec_F77
=
21928 thread_safe_flag_spec_F77
=
21929 hardcode_libdir_flag_spec_F77
=
21930 hardcode_libdir_flag_spec_ld_F77
=
21931 hardcode_libdir_separator_F77
=
21932 hardcode_direct_F77
=no
21933 hardcode_minus_L_F77
=no
21934 hardcode_shlibpath_var_F77
=unsupported
21935 link_all_deplibs_F77
=unknown
21936 hardcode_automatic_F77
=no
21938 module_expsym_cmds_F77
=
21939 always_export_symbols_F77
=no
21940 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21941 # include_expsyms should be a list of space-separated symbols to be *always*
21942 # included in the symbol list
21943 include_expsyms_F77
=
21944 # exclude_expsyms can be an extended regexp of symbols to exclude
21945 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21946 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21947 # as well as any symbol that contains `d'.
21948 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
21949 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21950 # platforms (ab)use it in PIC code, but their linkers get confused if
21951 # the symbol is explicitly referenced. Since portable code cannot
21952 # rely on this symbol name, it's probably fine to never include it in
21953 # preloaded symbol tables.
21954 extract_expsyms_cmds
=
21955 # Just being paranoid about ensuring that cc_basename is set.
21956 for cc_temp
in $compiler""; do
21958 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21959 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21964 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21967 cygwin
* | mingw
* | pw32
*)
21968 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21969 # When not using gcc, we currently assume that we are using
21970 # Microsoft Visual C++.
21971 if test "$GCC" != yes; then
21976 # we just hope/assume this is gcc and not c89 (= MSVC++)
21985 if test "$with_gnu_ld" = yes; then
21986 # If archive_cmds runs LD, not CC, wlarc should be empty
21989 # Set some defaults for GNU ld with shared library support. These
21990 # are reset later if shared libraries are not supported. Putting them
21991 # here allows them to be overridden if necessary.
21992 runpath_var
=LD_RUN_PATH
21993 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
21994 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
21995 # ancient GNU ld didn't support --whole-archive et. al.
21996 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
21997 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21999 whole_archive_flag_spec_F77
=
22001 supports_anon_versioning
=no
22002 case `$LD -v 2>/dev/null` in
22003 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
22004 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
22005 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
22006 *\
2.11.
*) ;; # other 2.11 versions
22007 *) supports_anon_versioning
=yes ;;
22010 # See if GNU ld supports shared libraries.
22012 aix3
* | aix4
* | aix5
*)
22013 # On AIX/PPC, the GNU linker is very broken
22014 if test "$host_cpu" != ia64
; then
22018 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22019 *** to be unable to reliably create shared libraries on AIX.
22020 *** Therefore, libtool is disabling shared libraries support. If you
22021 *** really care for shared libraries, you may want to modify your PATH
22022 *** so that a non-GNU linker is found, and then restart.
22029 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)'
22030 hardcode_libdir_flag_spec_F77
='-L$libdir'
22031 hardcode_minus_L_F77
=yes
22033 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22034 # that the semantics of dynamic libraries on AmigaOS, at least up
22035 # to version 4, is to share data among multiple programs linked
22036 # with the same dynamic library. Since this doesn't match the
22037 # behavior of shared libraries on other platforms, we can't use
22043 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22044 allow_undefined_flag_F77
=unsupported
22045 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22046 # support --undefined. This deserves some investigation. FIXME
22047 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22053 cygwin
* | mingw
* | pw32
*)
22054 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22055 # as there is no search path for DLLs.
22056 hardcode_libdir_flag_spec_F77
='-L$libdir'
22057 allow_undefined_flag_F77
=unsupported
22058 always_export_symbols_F77
=no
22059 enable_shared_with_static_runtimes_F77
=yes
22060 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22062 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
22063 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22064 # If the export-symbols file already is a .def file (1st line
22065 # is EXPORTS), use it as is; otherwise, prepend...
22066 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22067 cp $export_symbols $output_objdir/$soname.def;
22069 echo EXPORTS > $output_objdir/$soname.def;
22070 cat $export_symbols >> $output_objdir/$soname.def;
22072 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22079 hardcode_direct_F77
=no
22080 hardcode_shlibpath_var_F77
=no
22081 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22082 export_dynamic_flag_spec_F77
='${wl}-E'
22083 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22084 # Instead, shared libraries are loaded at an image base (0x10000000 by
22085 # default) and relocated if they conflict, which is a slow very memory
22086 # consuming and fragmenting process. To avoid this, we pick a random,
22087 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22088 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22089 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'
22090 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'
22094 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22096 case $cc_basename,$host_cpu in
22097 pgcc
*) # Portland Group C compiler
22098 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'
22099 tmp_addflag
=' $pic_flag'
22101 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
22102 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'
22103 tmp_addflag
=' $pic_flag -Mnomain' ;;
22104 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
22105 tmp_addflag
=' -i_dynamic' ;;
22106 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
22107 tmp_addflag
=' -i_dynamic -nofor_main' ;;
22108 ifc
* | ifort
*) # Intel Fortran compiler
22109 tmp_addflag
=' -nofor_main' ;;
22111 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22113 if test $supports_anon_versioning = yes; then
22114 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
22115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22116 $echo "local: *; };" >> $output_objdir/$libname.ver~
22117 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22125 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22126 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22129 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22130 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22135 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
22139 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22140 *** create shared libraries on Solaris systems. Therefore, libtool
22141 *** is disabling shared libraries support. We urge you to upgrade GNU
22142 *** binutils to release 2.9.1 or newer. Another option is to modify
22143 *** your PATH or compiler configuration so that the native linker is
22144 *** used, and then restart.
22147 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22148 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22149 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22155 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
22156 case `$LD -v 2>&1` in
22157 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
22161 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22162 *** reliably create shared libraries on SCO systems. Therefore, libtool
22163 *** is disabling shared libraries support. We urge you to upgrade GNU
22164 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22165 *** your PATH or compiler configuration so that the native linker is
22166 *** used, and then restart.
22171 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22172 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22173 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22174 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22183 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22185 hardcode_direct_F77
=yes
22186 hardcode_shlibpath_var_F77
=no
22190 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22191 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22192 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22199 if test "$ld_shlibs_F77" = no
; then
22201 hardcode_libdir_flag_spec_F77
=
22202 export_dynamic_flag_spec_F77
=
22203 whole_archive_flag_spec_F77
=
22206 # PORTME fill in a description of your system's linker (not GNU ld)
22209 allow_undefined_flag_F77
=unsupported
22210 always_export_symbols_F77
=yes
22211 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'
22212 # Note: this linker hardcodes the directories in LIBPATH if there
22213 # are no directories specified by -L.
22214 hardcode_minus_L_F77
=yes
22215 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22216 # Neither direct hardcoding nor static linking is supported with a
22218 hardcode_direct_F77
=unsupported
22223 if test "$host_cpu" = ia64
; then
22224 # On IA64, the linker does run time linking by default, so we don't
22225 # have to do anything special.
22226 aix_use_runtimelinking
=no
22227 exp_sym_flag
='-Bexport'
22230 # If we're using GNU nm, then we don't want the "-C" option.
22231 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22232 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
22233 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'
22235 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'
22237 aix_use_runtimelinking
=no
22239 # Test if we are trying to use run time linking or normal
22240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22241 # need to do runtime linking.
22242 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
22243 for ld_flag
in $LDFLAGS; do
22244 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
22245 aix_use_runtimelinking
=yes
22252 exp_sym_flag
='-bexport'
22253 no_entry_flag
='-bnoentry'
22256 # When large executables or shared objects are built, AIX ld can
22257 # have problems creating the table of contents. If linking a library
22258 # or program results in "error TOC overflow" add -mminimal-toc to
22259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22262 archive_cmds_F77
=''
22263 hardcode_direct_F77
=yes
22264 hardcode_libdir_separator_F77
=':'
22265 link_all_deplibs_F77
=yes
22267 if test "$GCC" = yes; then
22268 case $host_os in aix4.
[012]|aix4.
[012].
*)
22269 # We only want to do this on AIX 4.2 and lower, the check
22270 # below for broken collect2 doesn't work under 4.3+
22271 collect2name
=`${CC} -print-prog-name=collect2`
22272 if test -f "$collect2name" && \
22273 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
22275 # We have reworked collect2
22276 hardcode_direct_F77
=yes
22278 # We have old collect2
22279 hardcode_direct_F77
=unsupported
22280 # It fails to find uninstalled libraries when the uninstalled
22281 # path is not listed in the libpath. Setting hardcode_minus_L
22282 # to unsupported forces relinking
22283 hardcode_minus_L_F77
=yes
22284 hardcode_libdir_flag_spec_F77
='-L$libdir'
22285 hardcode_libdir_separator_F77
=
22289 shared_flag
='-shared'
22290 if test "$aix_use_runtimelinking" = yes; then
22291 shared_flag
="$shared_flag "'${wl}-G'
22295 if test "$host_cpu" = ia64
; then
22296 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22297 # chokes on -Wl,-G. The following line is correct:
22300 if test "$aix_use_runtimelinking" = yes; then
22301 shared_flag
='${wl}-G'
22303 shared_flag
='${wl}-bM:SRE'
22308 # It seems that -bexpall does not export symbols beginning with
22309 # underscore (_), so it is better to generate a list of symbols to export.
22310 always_export_symbols_F77
=yes
22311 if test "$aix_use_runtimelinking" = yes; then
22312 # Warning - without using the other runtime loading flags (-brtl),
22313 # -berok will link without error, but may produce a broken library.
22314 allow_undefined_flag_F77
='-berok'
22315 # Determine the default libpath from the value encoded in an empty executable.
22316 cat >conftest.
$ac_ext <<_ACEOF
22321 rm -f conftest.
$ac_objext conftest
$ac_exeext
22322 if { (ac_try
="$ac_link"
22323 case "(($ac_try" in
22324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_link") 2>conftest.er1
22330 grep -v '^ *+' conftest.er1 >conftest.err
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } &&
22335 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22336 { (case "(($ac_try" in
22337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22338 *) ac_try_echo
=$ac_try;;
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_try") 2>&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); }; } &&
22345 { ac_try
='test -s conftest$ac_exeext'
22346 { (case "(($ac_try" in
22347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_try") 2>&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; }; then
22356 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22358 # Check for a 64-bit object if we didn't find anything.
22359 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; }
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22368 rm -f core conftest.err conftest.$ac_objext \
22369 conftest$ac_exeext conftest.$ac_ext
22370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22372 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22373 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"
22375 if test "$host_cpu" = ia64; then
22376 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22377 allow_undefined_flag_F77="-z nodefs"
22378 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"
22380 # Determine the default libpath from the value encoded in an empty executable.
22381 cat >conftest.$ac_ext <<_ACEOF
22386 rm -f conftest.$ac_objext conftest$ac_exeext
22387 if { (ac_try="$ac_link"
22388 case "(($ac_try" in
22389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22390 *) ac_try_echo
=$ac_try;;
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_link") 2>conftest.er1
22395 grep -v '^ *+' conftest.er1
>conftest.err
22397 cat conftest.err
>&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } &&
22400 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22401 { (case "(($ac_try" in
22402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_try") 2>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest$ac_exeext'
22411 { (case "(($ac_try" in
22412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22413 *) ac_try_echo
=$ac_try;;
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_try") 2>&5
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
22421 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22423 # Check for a 64-bit object if we didn't find anything.
22424 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; }
22427 echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.
$ac_ext >&5
22433 rm -f core conftest.err conftest.
$ac_objext \
22434 conftest
$ac_exeext conftest.
$ac_ext
22435 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22437 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
22438 # Warning - without using the other run time loading flags,
22439 # -berok will link without error, but may produce a broken library.
22440 no_undefined_flag_F77
=' ${wl}-bernotok'
22441 allow_undefined_flag_F77
=' ${wl}-berok'
22442 # Exported symbols can be pulled into shared objects from archives
22443 whole_archive_flag_spec_F77
='$convenience'
22444 archive_cmds_need_lc_F77
=yes
22445 # This is similar to how AIX traditionally builds its shared libraries.
22446 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'
22452 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)'
22453 hardcode_libdir_flag_spec_F77
='-L$libdir'
22454 hardcode_minus_L_F77
=yes
22455 # see comment about different semantics on the GNU ld section
22460 export_dynamic_flag_spec_F77
=-rdynamic
22463 cygwin
* | mingw
* | pw32
*)
22464 # When not using gcc, we currently assume that we are using
22465 # Microsoft Visual C++.
22466 # hardcode_libdir_flag_spec is actually meaningless, as there is
22467 # no search path for DLLs.
22468 hardcode_libdir_flag_spec_F77
=' '
22469 allow_undefined_flag_F77
=unsupported
22470 # Tell ltmain to make .lib files, not .a files.
22472 # Tell ltmain to make .dll files, not .so files.
22474 # FIXME: Setting linknames here is a bad hack.
22475 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22476 # The linker will automatically build a .lib file if we build a DLL.
22477 old_archive_From_new_cmds_F77
='true'
22478 # FIXME: Should let the user specify the lib program.
22479 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
22480 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
22481 enable_shared_with_static_runtimes_F77
=yes
22484 darwin
* | rhapsody
*)
22486 rhapsody
* | darwin1.
[012])
22487 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
22490 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22491 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22493 case ${MACOSX_DEPLOYMENT_TARGET} in
22495 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22498 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
22504 archive_cmds_need_lc_F77
=no
22505 hardcode_direct_F77
=no
22506 hardcode_automatic_F77
=yes
22507 hardcode_shlibpath_var_F77
=unsupported
22508 whole_archive_flag_spec_F77
=''
22509 link_all_deplibs_F77
=yes
22510 if test "$GCC" = yes ; then
22511 output_verbose_link_cmd
='echo'
22512 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22513 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22514 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22515 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}'
22516 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}'
22518 case $cc_basename in
22520 output_verbose_link_cmd
='echo'
22521 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22522 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22523 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22524 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}'
22525 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}'
22535 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22536 hardcode_libdir_flag_spec_F77
='-L$libdir'
22537 hardcode_shlibpath_var_F77
=no
22544 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22545 # support. Future versions do this automatically, but an explicit c++rt0.o
22546 # does not break anything, and helps significantly (at the cost of a little
22549 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22550 hardcode_libdir_flag_spec_F77
='-R$libdir'
22551 hardcode_direct_F77
=yes
22552 hardcode_shlibpath_var_F77
=no
22555 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22557 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22558 hardcode_direct_F77
=yes
22559 hardcode_minus_L_F77
=yes
22560 hardcode_shlibpath_var_F77
=no
22563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22564 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
22565 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22566 hardcode_libdir_flag_spec_F77
='-R$libdir'
22567 hardcode_direct_F77
=yes
22568 hardcode_shlibpath_var_F77
=no
22572 if test "$GCC" = yes; then
22573 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'
22575 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'
22577 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22578 hardcode_libdir_separator_F77
=:
22579 hardcode_direct_F77
=yes
22581 # hardcode_minus_L: Not really in the search PATH,
22582 # but as the default location of the library.
22583 hardcode_minus_L_F77
=yes
22584 export_dynamic_flag_spec_F77
='${wl}-E'
22588 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22589 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22591 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22593 if test "$with_gnu_ld" = no
; then
22594 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22595 hardcode_libdir_separator_F77
=:
22597 hardcode_direct_F77
=yes
22598 export_dynamic_flag_spec_F77
='${wl}-E'
22600 # hardcode_minus_L: Not really in the search PATH,
22601 # but as the default location of the library.
22602 hardcode_minus_L_F77
=yes
22607 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22610 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22613 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22616 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22622 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22625 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22628 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22632 if test "$with_gnu_ld" = no
; then
22633 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22634 hardcode_libdir_separator_F77
=:
22638 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22639 hardcode_direct_F77
=no
22640 hardcode_shlibpath_var_F77
=no
22643 hardcode_direct_F77
=yes
22644 export_dynamic_flag_spec_F77
='${wl}-E'
22646 # hardcode_minus_L: Not really in the search PATH,
22647 # but as the default location of the library.
22648 hardcode_minus_L_F77
=yes
22654 irix5
* | irix6
* | nonstopux
*)
22655 if test "$GCC" = yes; then
22656 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'
22658 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'
22659 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22661 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22662 hardcode_libdir_separator_F77
=:
22663 link_all_deplibs_F77
=yes
22667 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22668 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22670 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22672 hardcode_libdir_flag_spec_F77
='-R$libdir'
22673 hardcode_direct_F77
=yes
22674 hardcode_shlibpath_var_F77
=no
22678 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22679 hardcode_direct_F77
=yes
22680 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22681 hardcode_libdir_separator_F77
=:
22682 hardcode_shlibpath_var_F77
=no
22686 hardcode_direct_F77
=yes
22687 hardcode_shlibpath_var_F77
=no
22688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22689 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22690 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22691 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22692 export_dynamic_flag_spec_F77
='${wl}-E'
22695 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22696 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22697 hardcode_libdir_flag_spec_F77
='-R$libdir'
22700 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22701 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22708 hardcode_libdir_flag_spec_F77
='-L$libdir'
22709 hardcode_minus_L_F77
=yes
22710 allow_undefined_flag_F77
=unsupported
22711 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'
22712 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22716 if test "$GCC" = yes; then
22717 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22718 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'
22720 allow_undefined_flag_F77
=' -expect_unresolved \*'
22721 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'
22723 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22724 hardcode_libdir_separator_F77
=:
22727 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22728 if test "$GCC" = yes; then
22729 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22730 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'
22731 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22733 allow_undefined_flag_F77
=' -expect_unresolved \*'
22734 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'
22735 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~
22736 $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'
22738 # Both c and cxx compiler support -rpath directly
22739 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22741 hardcode_libdir_separator_F77
=:
22745 no_undefined_flag_F77
=' -z text'
22746 if test "$GCC" = yes; then
22748 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22749 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22750 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22753 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22754 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22755 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22757 hardcode_libdir_flag_spec_F77
='-R$libdir'
22758 hardcode_shlibpath_var_F77
=no
22760 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22762 # The compiler driver will combine linker options so we
22763 # cannot just pass the convience library names through
22764 # without $wl, iff we do not link with $LD.
22765 # Luckily, gcc supports the same syntax we need for Sun Studio.
22766 # Supported since Solaris 2.6 (maybe 2.5.1?)
22769 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22771 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' ;;
22774 link_all_deplibs_F77
=yes
22778 if test "x$host_vendor" = xsequent
; then
22779 # Use $CC to link under sequent, because it throws in some extra .o
22780 # files that make .init and .fini sections work.
22781 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22783 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22785 hardcode_libdir_flag_spec_F77
='-L$libdir'
22786 hardcode_direct_F77
=yes
22787 hardcode_minus_L_F77
=yes
22788 hardcode_shlibpath_var_F77
=no
22792 case $host_vendor in
22794 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22795 hardcode_direct_F77
=yes # is this really true???
22798 ## LD is ld it makes a PLAMLIB
22799 ## CC just makes a GrossModule.
22800 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22801 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22802 hardcode_direct_F77
=no
22805 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22806 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22809 runpath_var
='LD_RUN_PATH'
22810 hardcode_shlibpath_var_F77
=no
22814 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22815 hardcode_shlibpath_var_F77
=no
22816 export_dynamic_flag_spec_F77
='-Bexport'
22820 if test -d /usr
/nec
; then
22821 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22822 hardcode_shlibpath_var_F77
=no
22823 runpath_var
=LD_RUN_PATH
22824 hardcode_runpath_var
=yes
22829 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22830 no_undefined_flag_F77
='${wl}-z,text'
22831 archive_cmds_need_lc_F77
=no
22832 hardcode_shlibpath_var_F77
=no
22833 runpath_var
='LD_RUN_PATH'
22835 if test "$GCC" = yes; then
22836 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22837 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22839 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22840 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22844 sysv5
* | sco3.2v5
* | sco5v6
*)
22845 # Note: We can NOT use -z defs as we might desire, because we do not
22846 # link with -lc, and that would cause any symbols used from libc to
22847 # always be unresolved, which means just about no library would
22848 # ever link correctly. If we're not using GNU ld we use -z text
22849 # though, which does catch some bad symbols but isn't as heavy-handed
22851 no_undefined_flag_F77
='${wl}-z,text'
22852 allow_undefined_flag_F77
='${wl}-z,nodefs'
22853 archive_cmds_need_lc_F77
=no
22854 hardcode_shlibpath_var_F77
=no
22855 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22856 hardcode_libdir_separator_F77
=':'
22857 link_all_deplibs_F77
=yes
22858 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22859 runpath_var
='LD_RUN_PATH'
22861 if test "$GCC" = yes; then
22862 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22863 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22865 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22866 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22871 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22872 hardcode_libdir_flag_spec_F77
='-L$libdir'
22873 hardcode_shlibpath_var_F77
=no
22882 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22883 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22884 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22887 # Do we need to explicitly link libc?
22889 case "x$archive_cmds_need_lc_F77" in
22891 # Assume -lc should be added
22892 archive_cmds_need_lc_F77
=yes
22894 if test "$enable_shared" = yes && test "$GCC" = yes; then
22895 case $archive_cmds_F77 in
22897 # FIXME: we may have to deal with multi-command sequences.
22900 # Test whether the compiler implicitly links with -lc since on some
22901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22902 # to ld, don't add -lc before -lgcc.
22903 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22904 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22906 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22909 (eval $ac_compile) 2>&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } 2>conftest.err
; then
22915 libobjs
=conftest.
$ac_objext
22917 wl
=$lt_prog_compiler_wl_F77
22918 pic_flag
=$lt_prog_compiler_pic_F77
22924 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
22925 allow_undefined_flag_F77
=
22926 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22927 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }
22932 archive_cmds_need_lc_F77
=no
22934 archive_cmds_need_lc_F77
=yes
22936 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
22938 cat conftest.err
1>&5
22941 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22942 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22949 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22950 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22951 library_names_spec
=
22952 libname_spec
='lib$name'
22956 postuninstall_cmds
=
22960 shlibpath_overrides_runpath
=unknown
22962 dynamic_linker
="$host_os ld.so"
22963 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22964 if test "$GCC" = yes; then
22965 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22966 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
22967 # if the path contains ";" then we assume it to be the separator
22968 # otherwise default to the standard path separator (i.e. ":") - it is
22969 # assumed that no part of a normal pathname contains ";" but that should
22970 # okay in the real world where ";" in dirpaths is itself problematic.
22971 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22973 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22976 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
22978 need_lib_prefix
=unknown
22979 hardcode_into_libs
=no
22981 # when you set need_version to no, make sure it does not cause -set_version
22982 # flags to be left without arguments
22983 need_version
=unknown
22988 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22989 shlibpath_var
=LIBPATH
22991 # AIX 3 has no versioning support, so we append a major version to the name.
22992 soname_spec
='${libname}${release}${shared_ext}$major'
22999 hardcode_into_libs
=yes
23000 if test "$host_cpu" = ia64
; then
23001 # AIX 5 supports IA64
23002 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23003 shlibpath_var
=LD_LIBRARY_PATH
23005 # With GCC up to 2.95.x, collect2 would create an import file
23006 # for dependence libraries. The import file would start with
23007 # the line `#! .'. This would cause the generated library to
23008 # depend on `.', always an invalid library. This was fixed in
23009 # development snapshots of GCC prior to 3.0.
23011 aix4 | aix4.
[01] | aix4.
[01].
*)
23012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23014 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
23017 can_build_shared
=no
23021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23022 # soname into executable. Probably we can add versioning support to
23023 # collect2, so additional links can be useful in future.
23024 if test "$aix_use_runtimelinking" = yes; then
23025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23026 # instead of lib<name>.a to let people know that these are not
23027 # typical AIX shared libraries.
23028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23030 # We preserve .a as extension for shared libraries through AIX4.2
23031 # and later when we are not doing run time linking.
23032 library_names_spec
='${libname}${release}.a $libname.a'
23033 soname_spec
='${libname}${release}${shared_ext}$major'
23035 shlibpath_var
=LIBPATH
23040 library_names_spec
='$libname.ixlibrary $libname.a'
23041 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23042 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'
23046 library_names_spec
='${libname}${shared_ext}'
23047 dynamic_linker
="$host_os ld.so"
23048 shlibpath_var
=LIBRARY_PATH
23054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23055 soname_spec
='${libname}${release}${shared_ext}$major'
23056 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
23057 shlibpath_var
=LD_LIBRARY_PATH
23058 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23059 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
23060 # the default ld.so.conf also contains /usr/contrib/lib and
23061 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23062 # libtool to hard-code these into programs
23065 cygwin
* | mingw
* | pw32
*)
23066 version_type
=windows
23071 case $GCC,$host_os in
23072 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
23073 library_names_spec
='$libname.dll.a'
23074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23075 postinstall_cmds
='base_file=`basename \${file}`~
23076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23077 dldir=$destdir/`dirname \$dlpath`~
23078 test -d \$dldir || mkdir -p \$dldir~
23079 $install_prog $dir/$dlname \$dldir/$dlname~
23080 chmod a+x \$dldir/$dlname'
23081 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23082 dlpath=$dir/\$dldll~
23084 shlibpath_overrides_runpath
=yes
23088 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23089 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23090 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
23093 # MinGW DLLs use traditional 'lib' prefix
23094 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23095 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23096 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
23097 # It is most probably a Windows format PATH printed by
23098 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23099 # path with ; separators, and with drive letters. We can handle the
23100 # drive letters (cygwin fileutils understands them), so leave them,
23101 # especially as we might pass files found there to a mingw objdump,
23102 # which wouldn't understand a cygwinified path. Ahh.
23103 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23105 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23109 # pw32 DLLs use 'pw' prefix rather than 'lib'
23110 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23116 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23119 dynamic_linker
='Win32 ld.exe'
23120 # FIXME: first we should search . and the directory the executable is in
23124 darwin
* | rhapsody
*)
23125 dynamic_linker
="$host_os dyld"
23126 version_type
=darwin
23129 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23130 soname_spec
='${libname}${release}${major}$shared_ext'
23131 shlibpath_overrides_runpath
=yes
23132 shlibpath_var
=DYLD_LIBRARY_PATH
23133 shrext_cmds
='.dylib'
23134 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23135 if test "$GCC" = yes; then
23136 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"`
23138 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
23140 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
23147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23148 soname_spec
='${libname}${release}${shared_ext}$major'
23149 shlibpath_var
=LD_LIBRARY_PATH
23160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23161 soname_spec
='${libname}${release}${shared_ext}$major'
23162 shlibpath_var
=LD_LIBRARY_PATH
23163 shlibpath_overrides_runpath
=no
23164 hardcode_into_libs
=yes
23165 dynamic_linker
='GNU ld.so'
23168 freebsd
* | dragonfly
*)
23169 # DragonFly does not have aout. When/if they implement a new
23170 # versioning mechanism, adjust this.
23171 if test -x /usr
/bin
/objformat
; then
23172 objformat
=`/usr/bin/objformat`
23175 freebsd
[123]*) objformat
=aout
;;
23176 *) objformat
=elf
;;
23179 version_type
=freebsd-
$objformat
23180 case $version_type in
23182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23187 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23191 shlibpath_var
=LD_LIBRARY_PATH
23194 shlibpath_overrides_runpath
=yes
23196 freebsd3.
[01]* | freebsdelf3.
[01]*)
23197 shlibpath_overrides_runpath
=yes
23198 hardcode_into_libs
=yes
23200 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
23201 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
23202 shlibpath_overrides_runpath
=no
23203 hardcode_into_libs
=yes
23205 freebsd
*) # from 4.6 on
23206 shlibpath_overrides_runpath
=yes
23207 hardcode_into_libs
=yes
23216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23217 soname_spec
='${libname}${release}${shared_ext}$major'
23218 shlibpath_var
=LD_LIBRARY_PATH
23219 hardcode_into_libs
=yes
23222 hpux9
* | hpux10
* | hpux11
*)
23223 # Give a soname corresponding to the major version so that dld.sl refuses to
23224 # link against other versions.
23231 hardcode_into_libs
=yes
23232 dynamic_linker
="$host_os dld.so"
23233 shlibpath_var
=LD_LIBRARY_PATH
23234 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23236 soname_spec
='${libname}${release}${shared_ext}$major'
23237 if test "X$HPUX_IA64_MODE" = X32
; then
23238 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23240 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
23242 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23246 hardcode_into_libs
=yes
23247 dynamic_linker
="$host_os dld.sl"
23248 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
23249 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23251 soname_spec
='${libname}${release}${shared_ext}$major'
23252 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23253 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23257 dynamic_linker
="$host_os dld.sl"
23258 shlibpath_var
=SHLIB_PATH
23259 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
23260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23261 soname_spec
='${libname}${release}${shared_ext}$major'
23264 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23265 postinstall_cmds
='chmod 555 $lib'
23272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23273 soname_spec
='${libname}${release}${shared_ext}$major'
23274 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
23275 shlibpath_var
=LD_LIBRARY_PATH
23276 shlibpath_overrides_runpath
=no
23277 hardcode_into_libs
=yes
23280 irix5
* | irix6
* | nonstopux
*)
23282 nonstopux
*) version_type
=nonstopux
;;
23284 if test "$lt_cv_prog_gnu_ld" = yes; then
23292 soname_spec
='${libname}${release}${shared_ext}$major'
23293 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23295 irix5
* | nonstopux
*)
23296 libsuff
= shlibsuff
=
23299 case $LD in # libtool.m4 will add one of these switches to LD
23300 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
23301 libsuff
= shlibsuff
= libmagic
=32-bit;;
23302 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
23303 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
23304 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
23305 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
23306 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23310 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23311 shlibpath_overrides_runpath
=no
23312 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23313 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23314 hardcode_into_libs
=yes
23317 # No shared lib support for Linux oldld, aout, or coff.
23318 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23322 # This must be Linux ELF.
23327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23328 soname_spec
='${libname}${release}${shared_ext}$major'
23329 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23330 shlibpath_var
=LD_LIBRARY_PATH
23331 shlibpath_overrides_runpath
=no
23332 # This implies no fast_install, which is unacceptable.
23333 # Some rework will be needed to allow for fast_install
23334 # before this can be enabled.
23335 hardcode_into_libs
=yes
23337 # Append ld.so.conf contents to the search path
23338 if test -f /etc
/ld.so.conf
; then
23339 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' ' '`
23340 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23343 # We used to test for /lib/ld.so.1 and disable shared libraries on
23344 # powerpc, because MkLinux only supported shared libraries with the
23345 # GNU dynamic linker. Since this was broken with cross compilers,
23346 # most powerpc-linux boxes support dynamic linking these days and
23347 # people can always --disable-shared, the test was removed, and we
23348 # assume the GNU/Linux dynamic linker is in use.
23349 dynamic_linker
='GNU/Linux ld.so'
23356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23357 soname_spec
='${libname}${release}${shared_ext}$major'
23358 shlibpath_var
=LD_LIBRARY_PATH
23359 shlibpath_overrides_runpath
=no
23360 hardcode_into_libs
=yes
23361 dynamic_linker
='GNU ld.so'
23368 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23370 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23371 dynamic_linker
='NetBSD (a.out) ld.so'
23373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23374 soname_spec
='${libname}${release}${shared_ext}$major'
23375 dynamic_linker
='NetBSD ld.elf_so'
23377 shlibpath_var
=LD_LIBRARY_PATH
23378 shlibpath_overrides_runpath
=yes
23379 hardcode_into_libs
=yes
23384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23385 shlibpath_var
=LD_LIBRARY_PATH
23386 shlibpath_overrides_runpath
=yes
23393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23394 soname_spec
='${libname}${release}${shared_ext}$major'
23395 shlibpath_var
=LD_LIBRARY_PATH
23396 shlibpath_overrides_runpath
=yes
23401 sys_lib_dlsearch_path_spec
="/usr/lib"
23403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23405 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23406 *) need_version
=no
;;
23408 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23409 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23410 shlibpath_var
=LD_LIBRARY_PATH
23411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23413 openbsd2.
[89] | openbsd2.
[89].
*)
23414 shlibpath_overrides_runpath
=no
23417 shlibpath_overrides_runpath
=yes
23421 shlibpath_overrides_runpath
=yes
23426 libname_spec
='$name'
23429 library_names_spec
='$libname${shared_ext} $libname.a'
23430 dynamic_linker
='OS/2 ld.exe'
23431 shlibpath_var
=LIBPATH
23434 osf3
* | osf4
* | osf5
*)
23438 soname_spec
='${libname}${release}${shared_ext}$major'
23439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23440 shlibpath_var
=LD_LIBRARY_PATH
23441 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23442 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23449 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23450 soname_spec
='${libname}${release}${shared_ext}$major'
23451 shlibpath_var
=LD_LIBRARY_PATH
23452 shlibpath_overrides_runpath
=yes
23453 hardcode_into_libs
=yes
23454 # ldd complains unless libraries are executable
23455 postinstall_cmds
='chmod +x $lib'
23460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23461 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23462 shlibpath_var
=LD_LIBRARY_PATH
23463 shlibpath_overrides_runpath
=yes
23464 if test "$with_gnu_ld" = yes; then
23472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23473 soname_spec
='${libname}${release}${shared_ext}$major'
23474 shlibpath_var
=LD_LIBRARY_PATH
23475 case $host_vendor in
23477 shlibpath_overrides_runpath
=no
23479 export_dynamic_flag_spec
='${wl}-Blargedynsym'
23480 runpath_var
=LD_RUN_PATH
23488 shlibpath_overrides_runpath
=no
23489 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23495 if test -d /usr
/nec
;then
23497 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23498 soname_spec
='$libname${shared_ext}.$major'
23499 shlibpath_var
=LD_LIBRARY_PATH
23503 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23504 version_type
=freebsd-elf
23507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23508 soname_spec
='${libname}${release}${shared_ext}$major'
23509 shlibpath_var
=LD_LIBRARY_PATH
23510 hardcode_into_libs
=yes
23511 if test "$with_gnu_ld" = yes; then
23512 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23513 shlibpath_overrides_runpath
=no
23515 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23516 shlibpath_overrides_runpath
=yes
23519 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23523 sys_lib_dlsearch_path_spec
='/usr/lib'
23528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23529 soname_spec
='${libname}${release}${shared_ext}$major'
23530 shlibpath_var
=LD_LIBRARY_PATH
23537 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23538 echo "${ECHO_T}$dynamic_linker" >&6; }
23539 test "$dynamic_linker" = no
&& can_build_shared
=no
23541 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23542 if test "$GCC" = yes; then
23543 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23546 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23547 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23548 hardcode_action_F77
=
23549 if test -n "$hardcode_libdir_flag_spec_F77" || \
23550 test -n "$runpath_var_F77" || \
23551 test "X$hardcode_automatic_F77" = "Xyes" ; then
23553 # We can hardcode non-existant directories.
23554 if test "$hardcode_direct_F77" != no
&&
23555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23556 # have to relink, otherwise we might link with an installed library
23557 # when we should be linking with a yet-to-be-installed one
23558 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23559 test "$hardcode_minus_L_F77" != no
; then
23560 # Linking always hardcodes the temporary library directory.
23561 hardcode_action_F77
=relink
23563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23564 hardcode_action_F77
=immediate
23567 # We cannot hardcode anything, or else we can only hardcode existing
23569 hardcode_action_F77
=unsupported
23571 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23572 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23574 if test "$hardcode_action_F77" = relink
; then
23575 # Fast installation is not supported
23576 enable_fast_install
=no
23577 elif test "$shlibpath_overrides_runpath" = yes ||
23578 test "$enable_shared" = no
; then
23579 # Fast installation is not necessary
23580 enable_fast_install
=needless
23584 # The else clause should only fire when bootstrapping the
23585 # libtool distribution, otherwise you forgot to ship ltmain.sh
23586 # with your package, and you will get complaints that there are
23587 # no rules to generate ltmain.sh.
23588 if test -f "$ltmain"; then
23589 # See if we are running on zsh, and set the options which allow our commands through
23590 # without removal of \ escapes.
23591 if test -n "${ZSH_VERSION+set}" ; then
23592 setopt NO_GLOB_SUBST
23594 # Now quote all the things that may contain metacharacters while being
23595 # careful not to overquote the AC_SUBSTed values. We take copies of the
23596 # variables and quote the copies for generation of the libtool script.
23597 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23599 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23600 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23601 deplibs_check_method reload_flag reload_cmds need_locks \
23602 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23603 lt_cv_sys_global_symbol_to_c_name_address \
23604 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23605 old_postinstall_cmds old_postuninstall_cmds \
23609 lt_prog_compiler_wl_F77 \
23610 lt_prog_compiler_pic_F77 \
23611 lt_prog_compiler_static_F77 \
23612 lt_prog_compiler_no_builtin_flag_F77 \
23613 export_dynamic_flag_spec_F77 \
23614 thread_safe_flag_spec_F77 \
23615 whole_archive_flag_spec_F77 \
23616 enable_shared_with_static_runtimes_F77 \
23617 old_archive_cmds_F77 \
23618 old_archive_from_new_cmds_F77 \
23619 predep_objects_F77 \
23620 postdep_objects_F77 \
23623 compiler_lib_search_path_F77 \
23625 archive_expsym_cmds_F77 \
23626 postinstall_cmds_F77 \
23627 postuninstall_cmds_F77 \
23628 old_archive_from_expsyms_cmds_F77 \
23629 allow_undefined_flag_F77 \
23630 no_undefined_flag_F77 \
23631 export_symbols_cmds_F77 \
23632 hardcode_libdir_flag_spec_F77 \
23633 hardcode_libdir_flag_spec_ld_F77 \
23634 hardcode_libdir_separator_F77 \
23635 hardcode_automatic_F77 \
23637 module_expsym_cmds_F77 \
23638 lt_cv_prog_compiler_c_o_F77 \
23639 exclude_expsyms_F77 \
23640 include_expsyms_F77
; do
23643 old_archive_cmds_F77 | \
23644 old_archive_from_new_cmds_F77 | \
23645 archive_cmds_F77 | \
23646 archive_expsym_cmds_F77 | \
23647 module_cmds_F77 | \
23648 module_expsym_cmds_F77 | \
23649 old_archive_from_expsyms_cmds_F77 | \
23650 export_symbols_cmds_F77 | \
23651 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23652 postinstall_cmds | postuninstall_cmds | \
23653 old_postinstall_cmds | old_postuninstall_cmds | \
23654 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23655 # Double-quote double-evaled strings.
23656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23659 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23665 *'\$0 --fallback-echo"')
23666 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23672 cat <<__EOF__ >> "$cfgfile"
23673 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23675 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23677 # Shell to use when invoking shell scripts.
23680 # Whether or not to build shared libraries.
23681 build_libtool_libs=$enable_shared
23683 # Whether or not to build static libraries.
23684 build_old_libs=$enable_static
23686 # Whether or not to add -lc for building shared libraries.
23687 build_libtool_need_lc=$archive_cmds_need_lc_F77
23689 # Whether or not to disallow shared libs when runtime libs are static
23690 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23692 # Whether or not to optimize for fast installation.
23693 fast_install=$enable_fast_install
23696 host_alias=$host_alias
23700 # The build system.
23701 build_alias=$build_alias
23705 # An echo program that does not interpret backslashes.
23710 AR_FLAGS=$lt_AR_FLAGS
23715 # LTCC compiler flags.
23716 LTCFLAGS=$lt_LTCFLAGS
23718 # A language-specific compiler.
23719 CC=$lt_compiler_F77
23721 # Is the compiler the GNU C compiler?
23727 # The linker used to build libraries.
23730 # Whether we need hard or soft links.
23733 # A BSD-compatible nm program.
23736 # A symbol stripping program
23739 # Used to examine libraries when file_magic_cmd begins "file"
23740 MAGIC_CMD=$MAGIC_CMD
23742 # Used on cygwin: DLL creation program.
23745 # Used on cygwin: object dumper.
23748 # Used on cygwin: assembler.
23751 # The name of the directory that contains temporary libtool files.
23754 # How to create reloadable object files.
23755 reload_flag=$lt_reload_flag
23756 reload_cmds=$lt_reload_cmds
23758 # How to pass a linker flag through the compiler.
23759 wl=$lt_lt_prog_compiler_wl_F77
23761 # Object file suffix (normally "o").
23762 objext="$ac_objext"
23764 # Old archive suffix (normally "a").
23767 # Shared library suffix (normally ".so").
23768 shrext_cmds='$shrext_cmds'
23770 # Executable file suffix (normally "").
23773 # Additional compiler flags for building library objects.
23774 pic_flag=$lt_lt_prog_compiler_pic_F77
23777 # What is the maximum length of a command?
23778 max_cmd_len=$lt_cv_sys_max_cmd_len
23780 # Does compiler simultaneously support -c and -o options?
23781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23783 # Must we lock files when doing compilation?
23784 need_locks=$lt_need_locks
23786 # Do we need the lib prefix for modules?
23787 need_lib_prefix=$need_lib_prefix
23789 # Do we need a version for libraries?
23790 need_version=$need_version
23792 # Whether dlopen is supported.
23793 dlopen_support=$enable_dlopen
23795 # Whether dlopen of programs is supported.
23796 dlopen_self=$enable_dlopen_self
23798 # Whether dlopen of statically linked programs is supported.
23799 dlopen_self_static=$enable_dlopen_self_static
23801 # Compiler flag to prevent dynamic linking.
23802 link_static_flag=$lt_lt_prog_compiler_static_F77
23804 # Compiler flag to turn off builtin functions.
23805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23807 # Compiler flag to allow reflexive dlopens.
23808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23810 # Compiler flag to generate shared objects directly from archives.
23811 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23813 # Compiler flag to generate thread-safe objects.
23814 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23816 # Library versioning type.
23817 version_type=$version_type
23819 # Format of library name prefix.
23820 libname_spec=$lt_libname_spec
23822 # List of archive names. First name is the real one, the rest are links.
23823 # The last name is the one that the linker finds with -lNAME.
23824 library_names_spec=$lt_library_names_spec
23826 # The coded name of the library, if different from the real name.
23827 soname_spec=$lt_soname_spec
23829 # Commands used to build and install an old-style archive.
23831 old_archive_cmds=$lt_old_archive_cmds_F77
23832 old_postinstall_cmds=$lt_old_postinstall_cmds
23833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23835 # Create an old-style archive from a shared archive.
23836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23838 # Create a temporary old-style archive to link instead of a shared archive.
23839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23841 # Commands used to build and install a shared archive.
23842 archive_cmds=$lt_archive_cmds_F77
23843 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23844 postinstall_cmds=$lt_postinstall_cmds
23845 postuninstall_cmds=$lt_postuninstall_cmds
23847 # Commands used to build a loadable module (assumed same as above if empty)
23848 module_cmds=$lt_module_cmds_F77
23849 module_expsym_cmds=$lt_module_expsym_cmds_F77
23851 # Commands to strip libraries.
23852 old_striplib=$lt_old_striplib
23853 striplib=$lt_striplib
23855 # Dependencies to place before the objects being linked to create a
23857 predep_objects=$lt_predep_objects_F77
23859 # Dependencies to place after the objects being linked to create a
23861 postdep_objects=$lt_postdep_objects_F77
23863 # Dependencies to place before the objects being linked to create a
23865 predeps=$lt_predeps_F77
23867 # Dependencies to place after the objects being linked to create a
23869 postdeps=$lt_postdeps_F77
23871 # The library search path used internally by the compiler when linking
23872 # a shared library.
23873 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23875 # Method to check whether dependent libraries are shared objects.
23876 deplibs_check_method=$lt_deplibs_check_method
23878 # Command to use when deplibs_check_method == file_magic.
23879 file_magic_cmd=$lt_file_magic_cmd
23881 # Flag that allows shared libraries with undefined symbols to be built.
23882 allow_undefined_flag=$lt_allow_undefined_flag_F77
23884 # Flag that forces no undefined symbols.
23885 no_undefined_flag=$lt_no_undefined_flag_F77
23887 # Commands used to finish a libtool library installation in a directory.
23888 finish_cmds=$lt_finish_cmds
23890 # Same as above, but a single script fragment to be evaled but not shown.
23891 finish_eval=$lt_finish_eval
23893 # Take the output of nm and produce a listing of raw symbols and C names.
23894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23896 # Transform the output of nm in a proper C declaration
23897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23899 # Transform the output of nm in a C name address pair
23900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23902 # This is the shared library runtime path variable.
23903 runpath_var=$runpath_var
23905 # This is the shared library path variable.
23906 shlibpath_var=$shlibpath_var
23908 # Is shlibpath searched before the hard-coded library search path?
23909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23911 # How to hardcode a shared library path into an executable.
23912 hardcode_action=$hardcode_action_F77
23914 # Whether we should hardcode library paths into libraries.
23915 hardcode_into_libs=$hardcode_into_libs
23917 # Flag to hardcode \$libdir into a binary during linking.
23918 # This must work even if \$libdir does not exist.
23919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23921 # If ld is used when linking, flag to hardcode \$libdir into
23922 # a binary during linking. This must work even if \$libdir does
23924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23926 # Whether we need a single -rpath flag with a separated argument.
23927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23930 # resulting binary.
23931 hardcode_direct=$hardcode_direct_F77
23933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23934 # resulting binary.
23935 hardcode_minus_L=$hardcode_minus_L_F77
23937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23938 # the resulting binary.
23939 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23941 # Set to yes if building a shared library automatically hardcodes DIR into the library
23942 # and all subsequent libraries and executables linked against it.
23943 hardcode_automatic=$hardcode_automatic_F77
23945 # Variables whose values should be saved in libtool wrapper scripts and
23946 # restored at relink time.
23947 variables_saved_for_relink="$variables_saved_for_relink"
23949 # Whether libtool must link a program against all its dependency libraries.
23950 link_all_deplibs=$link_all_deplibs_F77
23952 # Compile-time system search path for libraries
23953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23955 # Run-time system search path for libraries
23956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23958 # Fix the shell variable \$srcfile for the compiler.
23959 fix_srcfile_path="$fix_srcfile_path_F77"
23961 # Set to yes if exported symbols are required.
23962 always_export_symbols=$always_export_symbols_F77
23964 # The commands to list exported symbols.
23965 export_symbols_cmds=$lt_export_symbols_cmds_F77
23967 # The commands to extract the exported symbol list from a shared archive.
23968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23970 # Symbols that should not be listed in the preloaded symbols.
23971 exclude_expsyms=$lt_exclude_expsyms_F77
23973 # Symbols that must always be exported.
23974 include_expsyms=$lt_include_expsyms_F77
23976 # ### END LIBTOOL TAG CONFIG: $tagname
23982 # If there is no Makefile yet, we rely on a make rule to execute
23983 # `config.status --recheck' to rerun these tests and create the
23984 # libtool script then.
23985 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23986 if test -f "$ltmain_in"; then
23987 test -f Makefile
&& make "$ltmain"
23993 ac_cpp
='$CPP $CPPFLAGS'
23994 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23995 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23996 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24006 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24008 ac_cpp
='$CPP $CPPFLAGS'
24009 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24010 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24011 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24014 # Source file extension for Java test sources.
24017 # Object file extension for compiled Java test sources.
24021 # Code to be used in simple compile tests
24022 lt_simple_compile_test_code
="class foo {}\n"
24024 # Code to be used in simple link tests
24025 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
24027 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24029 # If no C compiler was specified, use CC.
24032 # If no C compiler flags were specified, use CFLAGS.
24033 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
24035 # Allow CC to be a program name with arguments.
24039 # save warnings/boilerplate of simple test code
24040 ac_outfile
=conftest.
$ac_objext
24041 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
24042 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24043 _lt_compiler_boilerplate
=`cat conftest.err`
24046 ac_outfile
=conftest.
$ac_objext
24047 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
24048 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24049 _lt_linker_boilerplate
=`cat conftest.err`
24053 # Allow CC to be a program name with arguments.
24058 for cc_temp
in $compiler""; do
24060 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24061 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24066 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24069 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24070 archive_cmds_need_lc_GCJ
=no
24072 old_archive_cmds_GCJ
=$old_archive_cmds
24075 lt_prog_compiler_no_builtin_flag_GCJ
=
24077 if test "$GCC" = yes; then
24078 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
24081 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24082 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24083 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24086 lt_cv_prog_compiler_rtti_exceptions
=no
24087 ac_outfile
=conftest.
$ac_objext
24088 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24089 lt_compiler_flag
="-fno-rtti -fno-exceptions"
24090 # Insert the option either (1) after the last *FLAGS variable, or
24091 # (2) before a word containing "conftest.", or (3) at the end.
24092 # Note that $ac_compile itself does not contain backslashes and begins
24093 # with a dollar sign (not a hyphen), so the echo should work correctly.
24094 # The option is referenced via a variable to avoid confusing sed.
24095 lt_compile
=`echo "$ac_compile" | $SED \
24096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24098 -e 's:$: $lt_compiler_flag:'`
24099 (eval echo "\"\$as_me:24099: $lt_compile\"" >&5)
24100 (eval "$lt_compile" 2>conftest.err
)
24102 cat conftest.err
>&5
24103 echo "$as_me:24103: \$? = $ac_status" >&5
24104 if (exit $ac_status) && test -s "$ac_outfile"; then
24105 # The compiler can only warn and ignore the option if not recognized
24106 # So say no if there are warnings other than the usual output.
24107 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24108 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24109 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24110 lt_cv_prog_compiler_rtti_exceptions
=yes
24116 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24117 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24119 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
24120 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24127 lt_prog_compiler_wl_GCJ
=
24128 lt_prog_compiler_pic_GCJ
=
24129 lt_prog_compiler_static_GCJ
=
24131 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24132 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24134 if test "$GCC" = yes; then
24135 lt_prog_compiler_wl_GCJ
='-Wl,'
24136 lt_prog_compiler_static_GCJ
='-static'
24140 # All AIX code is PIC.
24141 if test "$host_cpu" = ia64
; then
24142 # AIX 5 now supports IA64 processor
24143 lt_prog_compiler_static_GCJ
='-Bstatic'
24148 # FIXME: we need at least 68020 code to build shared libraries, but
24149 # adding the `-m68020' flag to GCC prevents building anything better,
24151 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
24154 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
24155 # PIC is the default for these OSes.
24158 mingw
* | pw32
* | os2
*)
24159 # This hack is so that the source file can tell whether it is being
24160 # built for inclusion in a dll (and should export symbols for example).
24161 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24164 darwin
* | rhapsody
*)
24165 # PIC is the default on this platform
24166 # Common symbols not allowed in MH_DYLIB files
24167 lt_prog_compiler_pic_GCJ
='-fno-common'
24171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24172 # Instead, we relocate shared libraries at runtime.
24176 # Just because we use GCC doesn't mean we suddenly get shared libraries
24177 # on systems that don't support them.
24178 lt_prog_compiler_can_build_shared_GCJ
=no
24183 if test -d /usr
/nec
; then
24184 lt_prog_compiler_pic_GCJ
=-Kconform_pic
24189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24190 # not for PA HP-UX.
24196 lt_prog_compiler_pic_GCJ
='-fPIC'
24202 lt_prog_compiler_pic_GCJ
='-fPIC'
24206 # PORTME Check for flag to pass linker flags through the system compiler.
24209 lt_prog_compiler_wl_GCJ
='-Wl,'
24210 if test "$host_cpu" = ia64
; then
24211 # AIX 5 now supports IA64 processor
24212 lt_prog_compiler_static_GCJ
='-Bstatic'
24214 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
24218 # PIC is the default on this platform
24219 # Common symbols not allowed in MH_DYLIB files
24220 case $cc_basename in
24222 lt_prog_compiler_pic_GCJ
='-qnocommon'
24223 lt_prog_compiler_wl_GCJ
='-Wl,'
24228 mingw
* | pw32
* | os2
*)
24229 # This hack is so that the source file can tell whether it is being
24230 # built for inclusion in a dll (and should export symbols for example).
24231 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24234 hpux9
* | hpux10
* | hpux11
*)
24235 lt_prog_compiler_wl_GCJ
='-Wl,'
24236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24237 # not for PA HP-UX.
24243 lt_prog_compiler_pic_GCJ
='+Z'
24246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24247 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
24250 irix5
* | irix6
* | nonstopux
*)
24251 lt_prog_compiler_wl_GCJ
='-Wl,'
24252 # PIC (with -KPIC) is the default.
24253 lt_prog_compiler_static_GCJ
='-non_shared'
24257 lt_prog_compiler_pic_GCJ
='-KPIC'
24258 lt_prog_compiler_static_GCJ
='-Bstatic'
24262 case $cc_basename in
24264 lt_prog_compiler_wl_GCJ
='-Wl,'
24265 lt_prog_compiler_pic_GCJ
='-KPIC'
24266 lt_prog_compiler_static_GCJ
='-static'
24268 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
24269 # Portland Group compilers (*not* the Pentium gcc compiler,
24270 # which looks to be a dead project)
24271 lt_prog_compiler_wl_GCJ
='-Wl,'
24272 lt_prog_compiler_pic_GCJ
='-fpic'
24273 lt_prog_compiler_static_GCJ
='-Bstatic'
24276 lt_prog_compiler_wl_GCJ
='-Wl,'
24277 # All Alpha code is PIC.
24278 lt_prog_compiler_static_GCJ
='-non_shared'
24283 osf3
* | osf4
* | osf5
*)
24284 lt_prog_compiler_wl_GCJ
='-Wl,'
24285 # All OSF/1 code is PIC.
24286 lt_prog_compiler_static_GCJ
='-non_shared'
24290 lt_prog_compiler_pic_GCJ
='-KPIC'
24291 lt_prog_compiler_static_GCJ
='-Bstatic'
24292 case $cc_basename in
24293 f77
* | f90
* | f95
*)
24294 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
24296 lt_prog_compiler_wl_GCJ
='-Wl,';;
24301 lt_prog_compiler_wl_GCJ
='-Qoption ld '
24302 lt_prog_compiler_pic_GCJ
='-PIC'
24303 lt_prog_compiler_static_GCJ
='-Bstatic'
24306 sysv4 | sysv4.2uw2
* | sysv4.3
*)
24307 lt_prog_compiler_wl_GCJ
='-Wl,'
24308 lt_prog_compiler_pic_GCJ
='-KPIC'
24309 lt_prog_compiler_static_GCJ
='-Bstatic'
24313 if test -d /usr
/nec
;then
24314 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
24315 lt_prog_compiler_static_GCJ
='-Bstatic'
24319 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
24320 lt_prog_compiler_wl_GCJ
='-Wl,'
24321 lt_prog_compiler_pic_GCJ
='-KPIC'
24322 lt_prog_compiler_static_GCJ
='-Bstatic'
24326 lt_prog_compiler_wl_GCJ
='-Wl,'
24327 lt_prog_compiler_can_build_shared_GCJ
=no
24331 lt_prog_compiler_pic_GCJ
='-pic'
24332 lt_prog_compiler_static_GCJ
='-Bstatic'
24336 lt_prog_compiler_can_build_shared_GCJ
=no
24341 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24342 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24345 # Check to make sure the PIC flag actually works.
24347 if test -n "$lt_prog_compiler_pic_GCJ"; then
24349 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24350 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24351 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24352 echo $ECHO_N "(cached) $ECHO_C" >&6
24354 lt_prog_compiler_pic_works_GCJ
=no
24355 ac_outfile
=conftest.
$ac_objext
24356 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24357 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
24358 # Insert the option either (1) after the last *FLAGS variable, or
24359 # (2) before a word containing "conftest.", or (3) at the end.
24360 # Note that $ac_compile itself does not contain backslashes and begins
24361 # with a dollar sign (not a hyphen), so the echo should work correctly.
24362 # The option is referenced via a variable to avoid confusing sed.
24363 lt_compile
=`echo "$ac_compile" | $SED \
24364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24366 -e 's:$: $lt_compiler_flag:'`
24367 (eval echo "\"\$as_me:24367: $lt_compile\"" >&5)
24368 (eval "$lt_compile" 2>conftest.err
)
24370 cat conftest.err
>&5
24371 echo "$as_me:24371: \$? = $ac_status" >&5
24372 if (exit $ac_status) && test -s "$ac_outfile"; then
24373 # The compiler can only warn and ignore the option if not recognized
24374 # So say no if there are warnings other than the usual output.
24375 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24376 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24377 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24378 lt_prog_compiler_pic_works_GCJ
=yes
24384 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24385 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24387 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
24388 case $lt_prog_compiler_pic_GCJ in
24390 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
24393 lt_prog_compiler_pic_GCJ
=
24394 lt_prog_compiler_can_build_shared_GCJ
=no
24399 # For platforms which do not support PIC, -DPIC is meaningless:
24401 lt_prog_compiler_pic_GCJ
=
24404 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
24409 # Check to make sure the static flag actually works.
24411 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
24412 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24413 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24414 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24417 lt_prog_compiler_static_works_GCJ
=no
24418 save_LDFLAGS
="$LDFLAGS"
24419 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
24420 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
24421 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
24422 # The linker can only warn and ignore the option if not recognized
24423 # So say no if there are warnings
24424 if test -s conftest.err
; then
24425 # Append any errors to the config.log.
24426 cat conftest.err
1>&5
24427 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
24428 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24429 if diff conftest.exp conftest.er2
>/dev
/null
; then
24430 lt_prog_compiler_static_works_GCJ
=yes
24433 lt_prog_compiler_static_works_GCJ
=yes
24437 LDFLAGS
="$save_LDFLAGS"
24440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24441 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24443 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
24446 lt_prog_compiler_static_GCJ
=
24450 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24451 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24452 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24455 lt_cv_prog_compiler_c_o_GCJ
=no
24456 $rm -r conftest
2>/dev
/null
24460 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24462 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24463 # Insert the option either (1) after the last *FLAGS variable, or
24464 # (2) before a word containing "conftest.", or (3) at the end.
24465 # Note that $ac_compile itself does not contain backslashes and begins
24466 # with a dollar sign (not a hyphen), so the echo should work correctly.
24467 lt_compile
=`echo "$ac_compile" | $SED \
24468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24470 -e 's:$: $lt_compiler_flag:'`
24471 (eval echo "\"\$as_me:24471: $lt_compile\"" >&5)
24472 (eval "$lt_compile" 2>out
/conftest.err
)
24474 cat out
/conftest.err
>&5
24475 echo "$as_me:24475: \$? = $ac_status" >&5
24476 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24478 # The compiler can only warn and ignore the option if not recognized
24479 # So say no if there are warnings
24480 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
24481 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24482 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24483 lt_cv_prog_compiler_c_o_GCJ
=yes
24488 # SGI C++ compiler will create directory out/ii_files/ for
24489 # template instantiation
24490 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
24491 $rm out
/* && rmdir out
24497 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24498 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24501 hard_links
="nottested"
24502 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
24503 # do not overwrite the value of need_locks provided by the user
24504 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24505 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24508 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24510 ln conftest.a conftest.b
2>&5 || hard_links
=no
24511 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24512 { echo "$as_me:$LINENO: result: $hard_links" >&5
24513 echo "${ECHO_T}$hard_links" >&6; }
24514 if test "$hard_links" = no
; then
24515 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24516 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24523 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24524 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24527 allow_undefined_flag_GCJ
=
24528 enable_shared_with_static_runtimes_GCJ
=no
24530 archive_expsym_cmds_GCJ
=
24531 old_archive_From_new_cmds_GCJ
=
24532 old_archive_from_expsyms_cmds_GCJ
=
24533 export_dynamic_flag_spec_GCJ
=
24534 whole_archive_flag_spec_GCJ
=
24535 thread_safe_flag_spec_GCJ
=
24536 hardcode_libdir_flag_spec_GCJ
=
24537 hardcode_libdir_flag_spec_ld_GCJ
=
24538 hardcode_libdir_separator_GCJ
=
24539 hardcode_direct_GCJ
=no
24540 hardcode_minus_L_GCJ
=no
24541 hardcode_shlibpath_var_GCJ
=unsupported
24542 link_all_deplibs_GCJ
=unknown
24543 hardcode_automatic_GCJ
=no
24545 module_expsym_cmds_GCJ
=
24546 always_export_symbols_GCJ
=no
24547 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24548 # include_expsyms should be a list of space-separated symbols to be *always*
24549 # included in the symbol list
24550 include_expsyms_GCJ
=
24551 # exclude_expsyms can be an extended regexp of symbols to exclude
24552 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24553 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24554 # as well as any symbol that contains `d'.
24555 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
24556 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24557 # platforms (ab)use it in PIC code, but their linkers get confused if
24558 # the symbol is explicitly referenced. Since portable code cannot
24559 # rely on this symbol name, it's probably fine to never include it in
24560 # preloaded symbol tables.
24561 extract_expsyms_cmds
=
24562 # Just being paranoid about ensuring that cc_basename is set.
24563 for cc_temp
in $compiler""; do
24565 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24566 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24571 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24574 cygwin
* | mingw
* | pw32
*)
24575 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24576 # When not using gcc, we currently assume that we are using
24577 # Microsoft Visual C++.
24578 if test "$GCC" != yes; then
24583 # we just hope/assume this is gcc and not c89 (= MSVC++)
24592 if test "$with_gnu_ld" = yes; then
24593 # If archive_cmds runs LD, not CC, wlarc should be empty
24596 # Set some defaults for GNU ld with shared library support. These
24597 # are reset later if shared libraries are not supported. Putting them
24598 # here allows them to be overridden if necessary.
24599 runpath_var
=LD_RUN_PATH
24600 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
24601 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
24602 # ancient GNU ld didn't support --whole-archive et. al.
24603 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
24604 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24606 whole_archive_flag_spec_GCJ
=
24608 supports_anon_versioning
=no
24609 case `$LD -v 2>/dev/null` in
24610 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
24611 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
24612 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
24613 *\
2.11.
*) ;; # other 2.11 versions
24614 *) supports_anon_versioning
=yes ;;
24617 # See if GNU ld supports shared libraries.
24619 aix3
* | aix4
* | aix5
*)
24620 # On AIX/PPC, the GNU linker is very broken
24621 if test "$host_cpu" != ia64
; then
24625 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24626 *** to be unable to reliably create shared libraries on AIX.
24627 *** Therefore, libtool is disabling shared libraries support. If you
24628 *** really care for shared libraries, you may want to modify your PATH
24629 *** so that a non-GNU linker is found, and then restart.
24636 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)'
24637 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24638 hardcode_minus_L_GCJ
=yes
24640 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24641 # that the semantics of dynamic libraries on AmigaOS, at least up
24642 # to version 4, is to share data among multiple programs linked
24643 # with the same dynamic library. Since this doesn't match the
24644 # behavior of shared libraries on other platforms, we can't use
24650 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24651 allow_undefined_flag_GCJ
=unsupported
24652 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24653 # support --undefined. This deserves some investigation. FIXME
24654 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24660 cygwin
* | mingw
* | pw32
*)
24661 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24662 # as there is no search path for DLLs.
24663 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24664 allow_undefined_flag_GCJ
=unsupported
24665 always_export_symbols_GCJ
=no
24666 enable_shared_with_static_runtimes_GCJ
=yes
24667 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24669 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24670 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24671 # If the export-symbols file already is a .def file (1st line
24672 # is EXPORTS), use it as is; otherwise, prepend...
24673 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24674 cp $export_symbols $output_objdir/$soname.def;
24676 echo EXPORTS > $output_objdir/$soname.def;
24677 cat $export_symbols >> $output_objdir/$soname.def;
24679 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24686 hardcode_direct_GCJ
=no
24687 hardcode_shlibpath_var_GCJ
=no
24688 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24689 export_dynamic_flag_spec_GCJ
='${wl}-E'
24690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24691 # Instead, shared libraries are loaded at an image base (0x10000000 by
24692 # default) and relocated if they conflict, which is a slow very memory
24693 # consuming and fragmenting process. To avoid this, we pick a random,
24694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24696 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'
24697 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'
24701 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24703 case $cc_basename,$host_cpu in
24704 pgcc
*) # Portland Group C compiler
24705 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'
24706 tmp_addflag
=' $pic_flag'
24708 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24709 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'
24710 tmp_addflag
=' $pic_flag -Mnomain' ;;
24711 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24712 tmp_addflag
=' -i_dynamic' ;;
24713 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24714 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24715 ifc
* | ifort
*) # Intel Fortran compiler
24716 tmp_addflag
=' -nofor_main' ;;
24718 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24720 if test $supports_anon_versioning = yes; then
24721 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24723 $echo "local: *; };" >> $output_objdir/$libname.ver~
24724 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24732 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24733 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24736 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24737 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24742 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24747 *** create shared libraries on Solaris systems. Therefore, libtool
24748 *** is disabling shared libraries support. We urge you to upgrade GNU
24749 *** binutils to release 2.9.1 or newer. Another option is to modify
24750 *** your PATH or compiler configuration so that the native linker is
24751 *** used, and then restart.
24754 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24755 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24756 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24762 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24763 case `$LD -v 2>&1` in
24764 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24768 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24769 *** reliably create shared libraries on SCO systems. Therefore, libtool
24770 *** is disabling shared libraries support. We urge you to upgrade GNU
24771 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24772 *** your PATH or compiler configuration so that the native linker is
24773 *** used, and then restart.
24778 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24779 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24780 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24781 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24790 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24792 hardcode_direct_GCJ
=yes
24793 hardcode_shlibpath_var_GCJ
=no
24797 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24798 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24799 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24806 if test "$ld_shlibs_GCJ" = no
; then
24808 hardcode_libdir_flag_spec_GCJ
=
24809 export_dynamic_flag_spec_GCJ
=
24810 whole_archive_flag_spec_GCJ
=
24813 # PORTME fill in a description of your system's linker (not GNU ld)
24816 allow_undefined_flag_GCJ
=unsupported
24817 always_export_symbols_GCJ
=yes
24818 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'
24819 # Note: this linker hardcodes the directories in LIBPATH if there
24820 # are no directories specified by -L.
24821 hardcode_minus_L_GCJ
=yes
24822 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24823 # Neither direct hardcoding nor static linking is supported with a
24825 hardcode_direct_GCJ
=unsupported
24830 if test "$host_cpu" = ia64
; then
24831 # On IA64, the linker does run time linking by default, so we don't
24832 # have to do anything special.
24833 aix_use_runtimelinking
=no
24834 exp_sym_flag
='-Bexport'
24837 # If we're using GNU nm, then we don't want the "-C" option.
24838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24839 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24840 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'
24842 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'
24844 aix_use_runtimelinking
=no
24846 # Test if we are trying to use run time linking or normal
24847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24848 # need to do runtime linking.
24849 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24850 for ld_flag
in $LDFLAGS; do
24851 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24852 aix_use_runtimelinking
=yes
24859 exp_sym_flag
='-bexport'
24860 no_entry_flag
='-bnoentry'
24863 # When large executables or shared objects are built, AIX ld can
24864 # have problems creating the table of contents. If linking a library
24865 # or program results in "error TOC overflow" add -mminimal-toc to
24866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24869 archive_cmds_GCJ
=''
24870 hardcode_direct_GCJ
=yes
24871 hardcode_libdir_separator_GCJ
=':'
24872 link_all_deplibs_GCJ
=yes
24874 if test "$GCC" = yes; then
24875 case $host_os in aix4.
[012]|aix4.
[012].
*)
24876 # We only want to do this on AIX 4.2 and lower, the check
24877 # below for broken collect2 doesn't work under 4.3+
24878 collect2name
=`${CC} -print-prog-name=collect2`
24879 if test -f "$collect2name" && \
24880 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24882 # We have reworked collect2
24883 hardcode_direct_GCJ
=yes
24885 # We have old collect2
24886 hardcode_direct_GCJ
=unsupported
24887 # It fails to find uninstalled libraries when the uninstalled
24888 # path is not listed in the libpath. Setting hardcode_minus_L
24889 # to unsupported forces relinking
24890 hardcode_minus_L_GCJ
=yes
24891 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24892 hardcode_libdir_separator_GCJ
=
24896 shared_flag
='-shared'
24897 if test "$aix_use_runtimelinking" = yes; then
24898 shared_flag
="$shared_flag "'${wl}-G'
24902 if test "$host_cpu" = ia64
; then
24903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24904 # chokes on -Wl,-G. The following line is correct:
24907 if test "$aix_use_runtimelinking" = yes; then
24908 shared_flag
='${wl}-G'
24910 shared_flag
='${wl}-bM:SRE'
24915 # It seems that -bexpall does not export symbols beginning with
24916 # underscore (_), so it is better to generate a list of symbols to export.
24917 always_export_symbols_GCJ
=yes
24918 if test "$aix_use_runtimelinking" = yes; then
24919 # Warning - without using the other runtime loading flags (-brtl),
24920 # -berok will link without error, but may produce a broken library.
24921 allow_undefined_flag_GCJ
='-berok'
24922 # Determine the default libpath from the value encoded in an empty executable.
24923 cat >conftest.
$ac_ext <<_ACEOF
24926 cat confdefs.h
>>conftest.
$ac_ext
24927 cat >>conftest.
$ac_ext <<_ACEOF
24928 /* end confdefs.h. */
24938 rm -f conftest.
$ac_objext conftest
$ac_exeext
24939 if { (ac_try
="$ac_link"
24940 case "(($ac_try" in
24941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24942 *) ac_try_echo=$ac_try;;
24944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945 (eval "$ac_link") 2>conftest.er1
24947 grep -v '^ *+' conftest.er1 >conftest.err
24949 cat conftest.err >&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); } &&
24952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24953 { (case "(($ac_try" in
24954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24955 *) ac_try_echo
=$ac_try;;
24957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958 (eval "$ac_try") 2>&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); }; } &&
24962 { ac_try
='test -s conftest$ac_exeext'
24963 { (case "(($ac_try" in
24964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24965 *) ac_try_echo=$ac_try;;
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968 (eval "$ac_try") 2>&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }; }; then
24973 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24975 # Check for a 64-bit object if we didn't find anything.
24976 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; }
24979 echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24985 rm -f core conftest.err conftest.$ac_objext \
24986 conftest$ac_exeext conftest.$ac_ext
24987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24989 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24990 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"
24992 if test "$host_cpu" = ia64; then
24993 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24994 allow_undefined_flag_GCJ="-z nodefs"
24995 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"
24997 # Determine the default libpath from the value encoded in an empty executable.
24998 cat >conftest.$ac_ext <<_ACEOF
25001 cat confdefs.h >>conftest.$ac_ext
25002 cat >>conftest.$ac_ext <<_ACEOF
25003 /* end confdefs.h. */
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (ac_try="$ac_link"
25015 case "(($ac_try" in
25016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25017 *) ac_try_echo
=$ac_try;;
25019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25020 (eval "$ac_link") 2>conftest.er1
25022 grep -v '^ *+' conftest.er1
>conftest.err
25024 cat conftest.err
>&5
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); } &&
25027 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25028 { (case "(($ac_try" in
25029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_try") 2>&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; } &&
25037 { ac_try='test -s conftest$ac_exeext'
25038 { (case "(($ac_try" in
25039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25040 *) ac_try_echo
=$ac_try;;
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043 (eval "$ac_try") 2>&5
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); }; }; then
25048 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25050 # Check for a 64-bit object if we didn't find anything.
25051 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; }
25054 echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.
$ac_ext >&5
25060 rm -f core conftest.err conftest.
$ac_objext \
25061 conftest
$ac_exeext conftest.
$ac_ext
25062 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
25064 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
25065 # Warning - without using the other run time loading flags,
25066 # -berok will link without error, but may produce a broken library.
25067 no_undefined_flag_GCJ
=' ${wl}-bernotok'
25068 allow_undefined_flag_GCJ
=' ${wl}-berok'
25069 # Exported symbols can be pulled into shared objects from archives
25070 whole_archive_flag_spec_GCJ
='$convenience'
25071 archive_cmds_need_lc_GCJ
=yes
25072 # This is similar to how AIX traditionally builds its shared libraries.
25073 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'
25079 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)'
25080 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25081 hardcode_minus_L_GCJ
=yes
25082 # see comment about different semantics on the GNU ld section
25087 export_dynamic_flag_spec_GCJ
=-rdynamic
25090 cygwin
* | mingw
* | pw32
*)
25091 # When not using gcc, we currently assume that we are using
25092 # Microsoft Visual C++.
25093 # hardcode_libdir_flag_spec is actually meaningless, as there is
25094 # no search path for DLLs.
25095 hardcode_libdir_flag_spec_GCJ
=' '
25096 allow_undefined_flag_GCJ
=unsupported
25097 # Tell ltmain to make .lib files, not .a files.
25099 # Tell ltmain to make .dll files, not .so files.
25101 # FIXME: Setting linknames here is a bad hack.
25102 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25103 # The linker will automatically build a .lib file if we build a DLL.
25104 old_archive_From_new_cmds_GCJ
='true'
25105 # FIXME: Should let the user specify the lib program.
25106 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
25107 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
25108 enable_shared_with_static_runtimes_GCJ
=yes
25111 darwin
* | rhapsody
*)
25113 rhapsody
* | darwin1.
[012])
25114 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
25117 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25118 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25120 case ${MACOSX_DEPLOYMENT_TARGET} in
25122 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25125 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
25131 archive_cmds_need_lc_GCJ
=no
25132 hardcode_direct_GCJ
=no
25133 hardcode_automatic_GCJ
=yes
25134 hardcode_shlibpath_var_GCJ
=unsupported
25135 whole_archive_flag_spec_GCJ
=''
25136 link_all_deplibs_GCJ
=yes
25137 if test "$GCC" = yes ; then
25138 output_verbose_link_cmd
='echo'
25139 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25140 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25142 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}'
25143 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}'
25145 case $cc_basename in
25147 output_verbose_link_cmd
='echo'
25148 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25149 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25150 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25151 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}'
25152 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}'
25162 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25163 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25164 hardcode_shlibpath_var_GCJ
=no
25171 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25172 # support. Future versions do this automatically, but an explicit c++rt0.o
25173 # does not break anything, and helps significantly (at the cost of a little
25176 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25177 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25178 hardcode_direct_GCJ
=yes
25179 hardcode_shlibpath_var_GCJ
=no
25182 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25184 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25185 hardcode_direct_GCJ
=yes
25186 hardcode_minus_L_GCJ
=yes
25187 hardcode_shlibpath_var_GCJ
=no
25190 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25191 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
25192 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25193 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25194 hardcode_direct_GCJ
=yes
25195 hardcode_shlibpath_var_GCJ
=no
25199 if test "$GCC" = yes; then
25200 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'
25202 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'
25204 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25205 hardcode_libdir_separator_GCJ
=:
25206 hardcode_direct_GCJ
=yes
25208 # hardcode_minus_L: Not really in the search PATH,
25209 # but as the default location of the library.
25210 hardcode_minus_L_GCJ
=yes
25211 export_dynamic_flag_spec_GCJ
='${wl}-E'
25215 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25216 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25218 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25220 if test "$with_gnu_ld" = no
; then
25221 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25222 hardcode_libdir_separator_GCJ
=:
25224 hardcode_direct_GCJ
=yes
25225 export_dynamic_flag_spec_GCJ
='${wl}-E'
25227 # hardcode_minus_L: Not really in the search PATH,
25228 # but as the default location of the library.
25229 hardcode_minus_L_GCJ
=yes
25234 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25237 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25240 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25243 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25249 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25252 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25255 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25259 if test "$with_gnu_ld" = no
; then
25260 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25261 hardcode_libdir_separator_GCJ
=:
25265 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
25266 hardcode_direct_GCJ
=no
25267 hardcode_shlibpath_var_GCJ
=no
25270 hardcode_direct_GCJ
=yes
25271 export_dynamic_flag_spec_GCJ
='${wl}-E'
25273 # hardcode_minus_L: Not really in the search PATH,
25274 # but as the default location of the library.
25275 hardcode_minus_L_GCJ
=yes
25281 irix5
* | irix6
* | nonstopux
*)
25282 if test "$GCC" = yes; then
25283 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'
25285 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'
25286 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
25288 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25289 hardcode_libdir_separator_GCJ
=:
25290 link_all_deplibs_GCJ
=yes
25294 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25295 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25297 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25299 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25300 hardcode_direct_GCJ
=yes
25301 hardcode_shlibpath_var_GCJ
=no
25305 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25306 hardcode_direct_GCJ
=yes
25307 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25308 hardcode_libdir_separator_GCJ
=:
25309 hardcode_shlibpath_var_GCJ
=no
25313 hardcode_direct_GCJ
=yes
25314 hardcode_shlibpath_var_GCJ
=no
25315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25316 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25317 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25318 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25319 export_dynamic_flag_spec_GCJ
='${wl}-E'
25322 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
25323 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25324 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25327 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25328 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25335 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25336 hardcode_minus_L_GCJ
=yes
25337 allow_undefined_flag_GCJ
=unsupported
25338 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'
25339 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25343 if test "$GCC" = yes; then
25344 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25345 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'
25347 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25348 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'
25350 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25351 hardcode_libdir_separator_GCJ
=:
25354 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
25355 if test "$GCC" = yes; then
25356 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25357 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'
25358 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25360 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25361 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'
25362 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~
25363 $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'
25365 # Both c and cxx compiler support -rpath directly
25366 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
25368 hardcode_libdir_separator_GCJ
=:
25372 no_undefined_flag_GCJ
=' -z text'
25373 if test "$GCC" = yes; then
25375 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25376 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25377 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25380 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25381 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25382 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25384 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25385 hardcode_shlibpath_var_GCJ
=no
25387 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
25389 # The compiler driver will combine linker options so we
25390 # cannot just pass the convience library names through
25391 # without $wl, iff we do not link with $LD.
25392 # Luckily, gcc supports the same syntax we need for Sun Studio.
25393 # Supported since Solaris 2.6 (maybe 2.5.1?)
25396 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
25398 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' ;;
25401 link_all_deplibs_GCJ
=yes
25405 if test "x$host_vendor" = xsequent
; then
25406 # Use $CC to link under sequent, because it throws in some extra .o
25407 # files that make .init and .fini sections work.
25408 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25410 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25412 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25413 hardcode_direct_GCJ
=yes
25414 hardcode_minus_L_GCJ
=yes
25415 hardcode_shlibpath_var_GCJ
=no
25419 case $host_vendor in
25421 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25422 hardcode_direct_GCJ
=yes # is this really true???
25425 ## LD is ld it makes a PLAMLIB
25426 ## CC just makes a GrossModule.
25427 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25428 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
25429 hardcode_direct_GCJ
=no
25432 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25433 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
25436 runpath_var
='LD_RUN_PATH'
25437 hardcode_shlibpath_var_GCJ
=no
25441 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25442 hardcode_shlibpath_var_GCJ
=no
25443 export_dynamic_flag_spec_GCJ
='-Bexport'
25447 if test -d /usr
/nec
; then
25448 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25449 hardcode_shlibpath_var_GCJ
=no
25450 runpath_var
=LD_RUN_PATH
25451 hardcode_runpath_var
=yes
25456 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
25457 no_undefined_flag_GCJ
='${wl}-z,text'
25458 archive_cmds_need_lc_GCJ
=no
25459 hardcode_shlibpath_var_GCJ
=no
25460 runpath_var
='LD_RUN_PATH'
25462 if test "$GCC" = yes; then
25463 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25464 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25466 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25467 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25471 sysv5
* | sco3.2v5
* | sco5v6
*)
25472 # Note: We can NOT use -z defs as we might desire, because we do not
25473 # link with -lc, and that would cause any symbols used from libc to
25474 # always be unresolved, which means just about no library would
25475 # ever link correctly. If we're not using GNU ld we use -z text
25476 # though, which does catch some bad symbols but isn't as heavy-handed
25478 no_undefined_flag_GCJ
='${wl}-z,text'
25479 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
25480 archive_cmds_need_lc_GCJ
=no
25481 hardcode_shlibpath_var_GCJ
=no
25482 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25483 hardcode_libdir_separator_GCJ
=':'
25484 link_all_deplibs_GCJ
=yes
25485 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
25486 runpath_var
='LD_RUN_PATH'
25488 if test "$GCC" = yes; then
25489 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25490 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25492 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25493 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25498 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25499 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25500 hardcode_shlibpath_var_GCJ
=no
25509 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25510 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25511 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
25514 # Do we need to explicitly link libc?
25516 case "x$archive_cmds_need_lc_GCJ" in
25518 # Assume -lc should be added
25519 archive_cmds_need_lc_GCJ
=yes
25521 if test "$enable_shared" = yes && test "$GCC" = yes; then
25522 case $archive_cmds_GCJ in
25524 # FIXME: we may have to deal with multi-command sequences.
25527 # Test whether the compiler implicitly links with -lc since on some
25528 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25529 # to ld, don't add -lc before -lgcc.
25530 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25531 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25533 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
25535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25536 (eval $ac_compile) 2>&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); } 2>conftest.err
; then
25542 libobjs
=conftest.
$ac_objext
25544 wl
=$lt_prog_compiler_wl_GCJ
25545 pic_flag
=$lt_prog_compiler_pic_GCJ
25551 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
25552 allow_undefined_flag_GCJ
=
25553 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25554 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }
25559 archive_cmds_need_lc_GCJ
=no
25561 archive_cmds_need_lc_GCJ
=yes
25563 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
25565 cat conftest.err
1>&5
25568 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25569 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25576 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25577 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25578 library_names_spec
=
25579 libname_spec
='lib$name'
25583 postuninstall_cmds
=
25587 shlibpath_overrides_runpath
=unknown
25589 dynamic_linker
="$host_os ld.so"
25590 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
25591 if test "$GCC" = yes; then
25592 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25593 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
25594 # if the path contains ";" then we assume it to be the separator
25595 # otherwise default to the standard path separator (i.e. ":") - it is
25596 # assumed that no part of a normal pathname contains ";" but that should
25597 # okay in the real world where ";" in dirpaths is itself problematic.
25598 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25600 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25603 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
25605 need_lib_prefix
=unknown
25606 hardcode_into_libs
=no
25608 # when you set need_version to no, make sure it does not cause -set_version
25609 # flags to be left without arguments
25610 need_version
=unknown
25615 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
25616 shlibpath_var
=LIBPATH
25618 # AIX 3 has no versioning support, so we append a major version to the name.
25619 soname_spec
='${libname}${release}${shared_ext}$major'
25626 hardcode_into_libs
=yes
25627 if test "$host_cpu" = ia64
; then
25628 # AIX 5 supports IA64
25629 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25630 shlibpath_var
=LD_LIBRARY_PATH
25632 # With GCC up to 2.95.x, collect2 would create an import file
25633 # for dependence libraries. The import file would start with
25634 # the line `#! .'. This would cause the generated library to
25635 # depend on `.', always an invalid library. This was fixed in
25636 # development snapshots of GCC prior to 3.0.
25638 aix4 | aix4.
[01] | aix4.
[01].
*)
25639 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25641 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25644 can_build_shared
=no
25648 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25649 # soname into executable. Probably we can add versioning support to
25650 # collect2, so additional links can be useful in future.
25651 if test "$aix_use_runtimelinking" = yes; then
25652 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25653 # instead of lib<name>.a to let people know that these are not
25654 # typical AIX shared libraries.
25655 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25657 # We preserve .a as extension for shared libraries through AIX4.2
25658 # and later when we are not doing run time linking.
25659 library_names_spec
='${libname}${release}.a $libname.a'
25660 soname_spec
='${libname}${release}${shared_ext}$major'
25662 shlibpath_var
=LIBPATH
25667 library_names_spec
='$libname.ixlibrary $libname.a'
25668 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25669 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'
25673 library_names_spec
='${libname}${shared_ext}'
25674 dynamic_linker
="$host_os ld.so"
25675 shlibpath_var
=LIBRARY_PATH
25681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25682 soname_spec
='${libname}${release}${shared_ext}$major'
25683 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25684 shlibpath_var
=LD_LIBRARY_PATH
25685 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25686 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25687 # the default ld.so.conf also contains /usr/contrib/lib and
25688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25689 # libtool to hard-code these into programs
25692 cygwin
* | mingw
* | pw32
*)
25693 version_type
=windows
25698 case $GCC,$host_os in
25699 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25700 library_names_spec
='$libname.dll.a'
25701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25702 postinstall_cmds
='base_file=`basename \${file}`~
25703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25704 dldir=$destdir/`dirname \$dlpath`~
25705 test -d \$dldir || mkdir -p \$dldir~
25706 $install_prog $dir/$dlname \$dldir/$dlname~
25707 chmod a+x \$dldir/$dlname'
25708 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25709 dlpath=$dir/\$dldll~
25711 shlibpath_overrides_runpath
=yes
25715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25716 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25717 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25720 # MinGW DLLs use traditional 'lib' prefix
25721 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25722 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25723 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25724 # It is most probably a Windows format PATH printed by
25725 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25726 # path with ; separators, and with drive letters. We can handle the
25727 # drive letters (cygwin fileutils understands them), so leave them,
25728 # especially as we might pass files found there to a mingw objdump,
25729 # which wouldn't understand a cygwinified path. Ahh.
25730 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25732 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25736 # pw32 DLLs use 'pw' prefix rather than 'lib'
25737 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25743 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25746 dynamic_linker
='Win32 ld.exe'
25747 # FIXME: first we should search . and the directory the executable is in
25751 darwin
* | rhapsody
*)
25752 dynamic_linker
="$host_os dyld"
25753 version_type
=darwin
25756 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25757 soname_spec
='${libname}${release}${major}$shared_ext'
25758 shlibpath_overrides_runpath
=yes
25759 shlibpath_var
=DYLD_LIBRARY_PATH
25760 shrext_cmds
='.dylib'
25761 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25762 if test "$GCC" = yes; then
25763 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"`
25765 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25767 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25774 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25775 soname_spec
='${libname}${release}${shared_ext}$major'
25776 shlibpath_var
=LD_LIBRARY_PATH
25787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25788 soname_spec
='${libname}${release}${shared_ext}$major'
25789 shlibpath_var
=LD_LIBRARY_PATH
25790 shlibpath_overrides_runpath
=no
25791 hardcode_into_libs
=yes
25792 dynamic_linker
='GNU ld.so'
25795 freebsd
* | dragonfly
*)
25796 # DragonFly does not have aout. When/if they implement a new
25797 # versioning mechanism, adjust this.
25798 if test -x /usr
/bin
/objformat
; then
25799 objformat
=`/usr/bin/objformat`
25802 freebsd
[123]*) objformat
=aout
;;
25803 *) objformat
=elf
;;
25806 version_type
=freebsd-
$objformat
25807 case $version_type in
25809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25814 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25818 shlibpath_var
=LD_LIBRARY_PATH
25821 shlibpath_overrides_runpath
=yes
25823 freebsd3.
[01]* | freebsdelf3.
[01]*)
25824 shlibpath_overrides_runpath
=yes
25825 hardcode_into_libs
=yes
25827 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25828 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25829 shlibpath_overrides_runpath
=no
25830 hardcode_into_libs
=yes
25832 freebsd
*) # from 4.6 on
25833 shlibpath_overrides_runpath
=yes
25834 hardcode_into_libs
=yes
25843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25844 soname_spec
='${libname}${release}${shared_ext}$major'
25845 shlibpath_var
=LD_LIBRARY_PATH
25846 hardcode_into_libs
=yes
25849 hpux9
* | hpux10
* | hpux11
*)
25850 # Give a soname corresponding to the major version so that dld.sl refuses to
25851 # link against other versions.
25858 hardcode_into_libs
=yes
25859 dynamic_linker
="$host_os dld.so"
25860 shlibpath_var
=LD_LIBRARY_PATH
25861 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25863 soname_spec
='${libname}${release}${shared_ext}$major'
25864 if test "X$HPUX_IA64_MODE" = X32
; then
25865 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25867 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25869 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25873 hardcode_into_libs
=yes
25874 dynamic_linker
="$host_os dld.sl"
25875 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25876 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25878 soname_spec
='${libname}${release}${shared_ext}$major'
25879 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25880 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25884 dynamic_linker
="$host_os dld.sl"
25885 shlibpath_var
=SHLIB_PATH
25886 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25887 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25888 soname_spec
='${libname}${release}${shared_ext}$major'
25891 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25892 postinstall_cmds
='chmod 555 $lib'
25899 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25900 soname_spec
='${libname}${release}${shared_ext}$major'
25901 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
25902 shlibpath_var
=LD_LIBRARY_PATH
25903 shlibpath_overrides_runpath
=no
25904 hardcode_into_libs
=yes
25907 irix5
* | irix6
* | nonstopux
*)
25909 nonstopux
*) version_type
=nonstopux
;;
25911 if test "$lt_cv_prog_gnu_ld" = yes; then
25919 soname_spec
='${libname}${release}${shared_ext}$major'
25920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25922 irix5
* | nonstopux
*)
25923 libsuff
= shlibsuff
=
25926 case $LD in # libtool.m4 will add one of these switches to LD
25927 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
25928 libsuff
= shlibsuff
= libmagic
=32-bit;;
25929 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
25930 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
25931 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
25932 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
25933 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
25937 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
25938 shlibpath_overrides_runpath
=no
25939 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25940 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
25941 hardcode_into_libs
=yes
25944 # No shared lib support for Linux oldld, aout, or coff.
25945 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
25949 # This must be Linux ELF.
25954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25955 soname_spec
='${libname}${release}${shared_ext}$major'
25956 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25957 shlibpath_var
=LD_LIBRARY_PATH
25958 shlibpath_overrides_runpath
=no
25959 # This implies no fast_install, which is unacceptable.
25960 # Some rework will be needed to allow for fast_install
25961 # before this can be enabled.
25962 hardcode_into_libs
=yes
25964 # Append ld.so.conf contents to the search path
25965 if test -f /etc
/ld.so.conf
; then
25966 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' ' '`
25967 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
25970 # We used to test for /lib/ld.so.1 and disable shared libraries on
25971 # powerpc, because MkLinux only supported shared libraries with the
25972 # GNU dynamic linker. Since this was broken with cross compilers,
25973 # most powerpc-linux boxes support dynamic linking these days and
25974 # people can always --disable-shared, the test was removed, and we
25975 # assume the GNU/Linux dynamic linker is in use.
25976 dynamic_linker
='GNU/Linux ld.so'
25983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25984 soname_spec
='${libname}${release}${shared_ext}$major'
25985 shlibpath_var
=LD_LIBRARY_PATH
25986 shlibpath_overrides_runpath
=no
25987 hardcode_into_libs
=yes
25988 dynamic_linker
='GNU ld.so'
25995 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25997 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25998 dynamic_linker
='NetBSD (a.out) ld.so'
26000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26001 soname_spec
='${libname}${release}${shared_ext}$major'
26002 dynamic_linker
='NetBSD ld.elf_so'
26004 shlibpath_var
=LD_LIBRARY_PATH
26005 shlibpath_overrides_runpath
=yes
26006 hardcode_into_libs
=yes
26011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26012 shlibpath_var
=LD_LIBRARY_PATH
26013 shlibpath_overrides_runpath
=yes
26020 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26021 soname_spec
='${libname}${release}${shared_ext}$major'
26022 shlibpath_var
=LD_LIBRARY_PATH
26023 shlibpath_overrides_runpath
=yes
26028 sys_lib_dlsearch_path_spec
="/usr/lib"
26030 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26032 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
26033 *) need_version
=no
;;
26035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26036 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26037 shlibpath_var
=LD_LIBRARY_PATH
26038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26040 openbsd2.
[89] | openbsd2.
[89].
*)
26041 shlibpath_overrides_runpath
=no
26044 shlibpath_overrides_runpath
=yes
26048 shlibpath_overrides_runpath
=yes
26053 libname_spec
='$name'
26056 library_names_spec
='$libname${shared_ext} $libname.a'
26057 dynamic_linker
='OS/2 ld.exe'
26058 shlibpath_var
=LIBPATH
26061 osf3
* | osf4
* | osf5
*)
26065 soname_spec
='${libname}${release}${shared_ext}$major'
26066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26067 shlibpath_var
=LD_LIBRARY_PATH
26068 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26069 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
26076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26077 soname_spec
='${libname}${release}${shared_ext}$major'
26078 shlibpath_var
=LD_LIBRARY_PATH
26079 shlibpath_overrides_runpath
=yes
26080 hardcode_into_libs
=yes
26081 # ldd complains unless libraries are executable
26082 postinstall_cmds
='chmod +x $lib'
26087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26088 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26089 shlibpath_var
=LD_LIBRARY_PATH
26090 shlibpath_overrides_runpath
=yes
26091 if test "$with_gnu_ld" = yes; then
26099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26100 soname_spec
='${libname}${release}${shared_ext}$major'
26101 shlibpath_var
=LD_LIBRARY_PATH
26102 case $host_vendor in
26104 shlibpath_overrides_runpath
=no
26106 export_dynamic_flag_spec
='${wl}-Blargedynsym'
26107 runpath_var
=LD_RUN_PATH
26115 shlibpath_overrides_runpath
=no
26116 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
26122 if test -d /usr
/nec
;then
26124 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26125 soname_spec
='$libname${shared_ext}.$major'
26126 shlibpath_var
=LD_LIBRARY_PATH
26130 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
26131 version_type
=freebsd-elf
26134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26135 soname_spec
='${libname}${release}${shared_ext}$major'
26136 shlibpath_var
=LD_LIBRARY_PATH
26137 hardcode_into_libs
=yes
26138 if test "$with_gnu_ld" = yes; then
26139 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26140 shlibpath_overrides_runpath
=no
26142 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
26143 shlibpath_overrides_runpath
=yes
26146 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
26150 sys_lib_dlsearch_path_spec
='/usr/lib'
26155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26156 soname_spec
='${libname}${release}${shared_ext}$major'
26157 shlibpath_var
=LD_LIBRARY_PATH
26164 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26165 echo "${ECHO_T}$dynamic_linker" >&6; }
26166 test "$dynamic_linker" = no
&& can_build_shared
=no
26168 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
26169 if test "$GCC" = yes; then
26170 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26173 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26174 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26175 hardcode_action_GCJ
=
26176 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26177 test -n "$runpath_var_GCJ" || \
26178 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26180 # We can hardcode non-existant directories.
26181 if test "$hardcode_direct_GCJ" != no
&&
26182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26183 # have to relink, otherwise we might link with an installed library
26184 # when we should be linking with a yet-to-be-installed one
26185 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26186 test "$hardcode_minus_L_GCJ" != no
; then
26187 # Linking always hardcodes the temporary library directory.
26188 hardcode_action_GCJ
=relink
26190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26191 hardcode_action_GCJ
=immediate
26194 # We cannot hardcode anything, or else we can only hardcode existing
26196 hardcode_action_GCJ
=unsupported
26198 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26199 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26201 if test "$hardcode_action_GCJ" = relink
; then
26202 # Fast installation is not supported
26203 enable_fast_install
=no
26204 elif test "$shlibpath_overrides_runpath" = yes ||
26205 test "$enable_shared" = no
; then
26206 # Fast installation is not necessary
26207 enable_fast_install
=needless
26211 # The else clause should only fire when bootstrapping the
26212 # libtool distribution, otherwise you forgot to ship ltmain.sh
26213 # with your package, and you will get complaints that there are
26214 # no rules to generate ltmain.sh.
26215 if test -f "$ltmain"; then
26216 # See if we are running on zsh, and set the options which allow our commands through
26217 # without removal of \ escapes.
26218 if test -n "${ZSH_VERSION+set}" ; then
26219 setopt NO_GLOB_SUBST
26221 # Now quote all the things that may contain metacharacters while being
26222 # careful not to overquote the AC_SUBSTed values. We take copies of the
26223 # variables and quote the copies for generation of the libtool script.
26224 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26226 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26227 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26228 deplibs_check_method reload_flag reload_cmds need_locks \
26229 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26230 lt_cv_sys_global_symbol_to_c_name_address \
26231 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26232 old_postinstall_cmds old_postuninstall_cmds \
26236 lt_prog_compiler_wl_GCJ \
26237 lt_prog_compiler_pic_GCJ \
26238 lt_prog_compiler_static_GCJ \
26239 lt_prog_compiler_no_builtin_flag_GCJ \
26240 export_dynamic_flag_spec_GCJ \
26241 thread_safe_flag_spec_GCJ \
26242 whole_archive_flag_spec_GCJ \
26243 enable_shared_with_static_runtimes_GCJ \
26244 old_archive_cmds_GCJ \
26245 old_archive_from_new_cmds_GCJ \
26246 predep_objects_GCJ \
26247 postdep_objects_GCJ \
26250 compiler_lib_search_path_GCJ \
26252 archive_expsym_cmds_GCJ \
26253 postinstall_cmds_GCJ \
26254 postuninstall_cmds_GCJ \
26255 old_archive_from_expsyms_cmds_GCJ \
26256 allow_undefined_flag_GCJ \
26257 no_undefined_flag_GCJ \
26258 export_symbols_cmds_GCJ \
26259 hardcode_libdir_flag_spec_GCJ \
26260 hardcode_libdir_flag_spec_ld_GCJ \
26261 hardcode_libdir_separator_GCJ \
26262 hardcode_automatic_GCJ \
26264 module_expsym_cmds_GCJ \
26265 lt_cv_prog_compiler_c_o_GCJ \
26266 exclude_expsyms_GCJ \
26267 include_expsyms_GCJ
; do
26270 old_archive_cmds_GCJ | \
26271 old_archive_from_new_cmds_GCJ | \
26272 archive_cmds_GCJ | \
26273 archive_expsym_cmds_GCJ | \
26274 module_cmds_GCJ | \
26275 module_expsym_cmds_GCJ | \
26276 old_archive_from_expsyms_cmds_GCJ | \
26277 export_symbols_cmds_GCJ | \
26278 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26279 postinstall_cmds | postuninstall_cmds | \
26280 old_postinstall_cmds | old_postuninstall_cmds | \
26281 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26282 # Double-quote double-evaled strings.
26283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26292 *'\$0 --fallback-echo"')
26293 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26299 cat <<__EOF__ >> "$cfgfile"
26300 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26304 # Shell to use when invoking shell scripts.
26307 # Whether or not to build shared libraries.
26308 build_libtool_libs=$enable_shared
26310 # Whether or not to build static libraries.
26311 build_old_libs=$enable_static
26313 # Whether or not to add -lc for building shared libraries.
26314 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26316 # Whether or not to disallow shared libs when runtime libs are static
26317 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26319 # Whether or not to optimize for fast installation.
26320 fast_install=$enable_fast_install
26323 host_alias=$host_alias
26327 # The build system.
26328 build_alias=$build_alias
26332 # An echo program that does not interpret backslashes.
26337 AR_FLAGS=$lt_AR_FLAGS
26342 # LTCC compiler flags.
26343 LTCFLAGS=$lt_LTCFLAGS
26345 # A language-specific compiler.
26346 CC=$lt_compiler_GCJ
26348 # Is the compiler the GNU C compiler?
26354 # The linker used to build libraries.
26357 # Whether we need hard or soft links.
26360 # A BSD-compatible nm program.
26363 # A symbol stripping program
26366 # Used to examine libraries when file_magic_cmd begins "file"
26367 MAGIC_CMD=$MAGIC_CMD
26369 # Used on cygwin: DLL creation program.
26372 # Used on cygwin: object dumper.
26375 # Used on cygwin: assembler.
26378 # The name of the directory that contains temporary libtool files.
26381 # How to create reloadable object files.
26382 reload_flag=$lt_reload_flag
26383 reload_cmds=$lt_reload_cmds
26385 # How to pass a linker flag through the compiler.
26386 wl=$lt_lt_prog_compiler_wl_GCJ
26388 # Object file suffix (normally "o").
26389 objext="$ac_objext"
26391 # Old archive suffix (normally "a").
26394 # Shared library suffix (normally ".so").
26395 shrext_cmds='$shrext_cmds'
26397 # Executable file suffix (normally "").
26400 # Additional compiler flags for building library objects.
26401 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26404 # What is the maximum length of a command?
26405 max_cmd_len=$lt_cv_sys_max_cmd_len
26407 # Does compiler simultaneously support -c and -o options?
26408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26410 # Must we lock files when doing compilation?
26411 need_locks=$lt_need_locks
26413 # Do we need the lib prefix for modules?
26414 need_lib_prefix=$need_lib_prefix
26416 # Do we need a version for libraries?
26417 need_version=$need_version
26419 # Whether dlopen is supported.
26420 dlopen_support=$enable_dlopen
26422 # Whether dlopen of programs is supported.
26423 dlopen_self=$enable_dlopen_self
26425 # Whether dlopen of statically linked programs is supported.
26426 dlopen_self_static=$enable_dlopen_self_static
26428 # Compiler flag to prevent dynamic linking.
26429 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26431 # Compiler flag to turn off builtin functions.
26432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26434 # Compiler flag to allow reflexive dlopens.
26435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26437 # Compiler flag to generate shared objects directly from archives.
26438 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26440 # Compiler flag to generate thread-safe objects.
26441 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26443 # Library versioning type.
26444 version_type=$version_type
26446 # Format of library name prefix.
26447 libname_spec=$lt_libname_spec
26449 # List of archive names. First name is the real one, the rest are links.
26450 # The last name is the one that the linker finds with -lNAME.
26451 library_names_spec=$lt_library_names_spec
26453 # The coded name of the library, if different from the real name.
26454 soname_spec=$lt_soname_spec
26456 # Commands used to build and install an old-style archive.
26458 old_archive_cmds=$lt_old_archive_cmds_GCJ
26459 old_postinstall_cmds=$lt_old_postinstall_cmds
26460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26462 # Create an old-style archive from a shared archive.
26463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26465 # Create a temporary old-style archive to link instead of a shared archive.
26466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26468 # Commands used to build and install a shared archive.
26469 archive_cmds=$lt_archive_cmds_GCJ
26470 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26471 postinstall_cmds=$lt_postinstall_cmds
26472 postuninstall_cmds=$lt_postuninstall_cmds
26474 # Commands used to build a loadable module (assumed same as above if empty)
26475 module_cmds=$lt_module_cmds_GCJ
26476 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26478 # Commands to strip libraries.
26479 old_striplib=$lt_old_striplib
26480 striplib=$lt_striplib
26482 # Dependencies to place before the objects being linked to create a
26484 predep_objects=$lt_predep_objects_GCJ
26486 # Dependencies to place after the objects being linked to create a
26488 postdep_objects=$lt_postdep_objects_GCJ
26490 # Dependencies to place before the objects being linked to create a
26492 predeps=$lt_predeps_GCJ
26494 # Dependencies to place after the objects being linked to create a
26496 postdeps=$lt_postdeps_GCJ
26498 # The library search path used internally by the compiler when linking
26499 # a shared library.
26500 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26502 # Method to check whether dependent libraries are shared objects.
26503 deplibs_check_method=$lt_deplibs_check_method
26505 # Command to use when deplibs_check_method == file_magic.
26506 file_magic_cmd=$lt_file_magic_cmd
26508 # Flag that allows shared libraries with undefined symbols to be built.
26509 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26511 # Flag that forces no undefined symbols.
26512 no_undefined_flag=$lt_no_undefined_flag_GCJ
26514 # Commands used to finish a libtool library installation in a directory.
26515 finish_cmds=$lt_finish_cmds
26517 # Same as above, but a single script fragment to be evaled but not shown.
26518 finish_eval=$lt_finish_eval
26520 # Take the output of nm and produce a listing of raw symbols and C names.
26521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26523 # Transform the output of nm in a proper C declaration
26524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26526 # Transform the output of nm in a C name address pair
26527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26529 # This is the shared library runtime path variable.
26530 runpath_var=$runpath_var
26532 # This is the shared library path variable.
26533 shlibpath_var=$shlibpath_var
26535 # Is shlibpath searched before the hard-coded library search path?
26536 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26538 # How to hardcode a shared library path into an executable.
26539 hardcode_action=$hardcode_action_GCJ
26541 # Whether we should hardcode library paths into libraries.
26542 hardcode_into_libs=$hardcode_into_libs
26544 # Flag to hardcode \$libdir into a binary during linking.
26545 # This must work even if \$libdir does not exist.
26546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26548 # If ld is used when linking, flag to hardcode \$libdir into
26549 # a binary during linking. This must work even if \$libdir does
26551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26553 # Whether we need a single -rpath flag with a separated argument.
26554 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26556 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26557 # resulting binary.
26558 hardcode_direct=$hardcode_direct_GCJ
26560 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26561 # resulting binary.
26562 hardcode_minus_L=$hardcode_minus_L_GCJ
26564 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26565 # the resulting binary.
26566 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26568 # Set to yes if building a shared library automatically hardcodes DIR into the library
26569 # and all subsequent libraries and executables linked against it.
26570 hardcode_automatic=$hardcode_automatic_GCJ
26572 # Variables whose values should be saved in libtool wrapper scripts and
26573 # restored at relink time.
26574 variables_saved_for_relink="$variables_saved_for_relink"
26576 # Whether libtool must link a program against all its dependency libraries.
26577 link_all_deplibs=$link_all_deplibs_GCJ
26579 # Compile-time system search path for libraries
26580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26582 # Run-time system search path for libraries
26583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26585 # Fix the shell variable \$srcfile for the compiler.
26586 fix_srcfile_path="$fix_srcfile_path_GCJ"
26588 # Set to yes if exported symbols are required.
26589 always_export_symbols=$always_export_symbols_GCJ
26591 # The commands to list exported symbols.
26592 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26594 # The commands to extract the exported symbol list from a shared archive.
26595 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26597 # Symbols that should not be listed in the preloaded symbols.
26598 exclude_expsyms=$lt_exclude_expsyms_GCJ
26600 # Symbols that must always be exported.
26601 include_expsyms=$lt_include_expsyms_GCJ
26603 # ### END LIBTOOL TAG CONFIG: $tagname
26609 # If there is no Makefile yet, we rely on a make rule to execute
26610 # `config.status --recheck' to rerun these tests and create the
26611 # libtool script then.
26612 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26613 if test -f "$ltmain_in"; then
26614 test -f Makefile
&& make "$ltmain"
26620 ac_cpp
='$CPP $CPPFLAGS'
26621 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26622 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26623 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26634 ac_cpp
='$CPP $CPPFLAGS'
26635 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26636 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26637 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26640 # Source file extension for RC test sources.
26643 # Object file extension for compiled RC test sources.
26647 # Code to be used in simple compile tests
26648 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26650 # Code to be used in simple link tests
26651 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26653 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26655 # If no C compiler was specified, use CC.
26658 # If no C compiler flags were specified, use CFLAGS.
26659 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26661 # Allow CC to be a program name with arguments.
26665 # save warnings/boilerplate of simple test code
26666 ac_outfile
=conftest.
$ac_objext
26667 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26668 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26669 _lt_compiler_boilerplate
=`cat conftest.err`
26672 ac_outfile
=conftest.
$ac_objext
26673 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26674 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26675 _lt_linker_boilerplate
=`cat conftest.err`
26679 # Allow CC to be a program name with arguments.
26684 for cc_temp
in $compiler""; do
26686 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26687 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26692 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26694 lt_cv_prog_compiler_c_o_RC
=yes
26696 # The else clause should only fire when bootstrapping the
26697 # libtool distribution, otherwise you forgot to ship ltmain.sh
26698 # with your package, and you will get complaints that there are
26699 # no rules to generate ltmain.sh.
26700 if test -f "$ltmain"; then
26701 # See if we are running on zsh, and set the options which allow our commands through
26702 # without removal of \ escapes.
26703 if test -n "${ZSH_VERSION+set}" ; then
26704 setopt NO_GLOB_SUBST
26706 # Now quote all the things that may contain metacharacters while being
26707 # careful not to overquote the AC_SUBSTed values. We take copies of the
26708 # variables and quote the copies for generation of the libtool script.
26709 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26713 deplibs_check_method reload_flag reload_cmds need_locks \
26714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26715 lt_cv_sys_global_symbol_to_c_name_address \
26716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26717 old_postinstall_cmds old_postuninstall_cmds \
26721 lt_prog_compiler_wl_RC \
26722 lt_prog_compiler_pic_RC \
26723 lt_prog_compiler_static_RC \
26724 lt_prog_compiler_no_builtin_flag_RC \
26725 export_dynamic_flag_spec_RC \
26726 thread_safe_flag_spec_RC \
26727 whole_archive_flag_spec_RC \
26728 enable_shared_with_static_runtimes_RC \
26729 old_archive_cmds_RC \
26730 old_archive_from_new_cmds_RC \
26731 predep_objects_RC \
26732 postdep_objects_RC \
26735 compiler_lib_search_path_RC \
26737 archive_expsym_cmds_RC \
26738 postinstall_cmds_RC \
26739 postuninstall_cmds_RC \
26740 old_archive_from_expsyms_cmds_RC \
26741 allow_undefined_flag_RC \
26742 no_undefined_flag_RC \
26743 export_symbols_cmds_RC \
26744 hardcode_libdir_flag_spec_RC \
26745 hardcode_libdir_flag_spec_ld_RC \
26746 hardcode_libdir_separator_RC \
26747 hardcode_automatic_RC \
26749 module_expsym_cmds_RC \
26750 lt_cv_prog_compiler_c_o_RC \
26751 exclude_expsyms_RC \
26752 include_expsyms_RC
; do
26755 old_archive_cmds_RC | \
26756 old_archive_from_new_cmds_RC | \
26757 archive_cmds_RC | \
26758 archive_expsym_cmds_RC | \
26760 module_expsym_cmds_RC | \
26761 old_archive_from_expsyms_cmds_RC | \
26762 export_symbols_cmds_RC | \
26763 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26764 postinstall_cmds | postuninstall_cmds | \
26765 old_postinstall_cmds | old_postuninstall_cmds | \
26766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26767 # Double-quote double-evaled strings.
26768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26777 *'\$0 --fallback-echo"')
26778 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26784 cat <<__EOF__ >> "$cfgfile"
26785 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26787 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26789 # Shell to use when invoking shell scripts.
26792 # Whether or not to build shared libraries.
26793 build_libtool_libs=$enable_shared
26795 # Whether or not to build static libraries.
26796 build_old_libs=$enable_static
26798 # Whether or not to add -lc for building shared libraries.
26799 build_libtool_need_lc=$archive_cmds_need_lc_RC
26801 # Whether or not to disallow shared libs when runtime libs are static
26802 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26804 # Whether or not to optimize for fast installation.
26805 fast_install=$enable_fast_install
26808 host_alias=$host_alias
26812 # The build system.
26813 build_alias=$build_alias
26817 # An echo program that does not interpret backslashes.
26822 AR_FLAGS=$lt_AR_FLAGS
26827 # LTCC compiler flags.
26828 LTCFLAGS=$lt_LTCFLAGS
26830 # A language-specific compiler.
26833 # Is the compiler the GNU C compiler?
26839 # The linker used to build libraries.
26842 # Whether we need hard or soft links.
26845 # A BSD-compatible nm program.
26848 # A symbol stripping program
26851 # Used to examine libraries when file_magic_cmd begins "file"
26852 MAGIC_CMD=$MAGIC_CMD
26854 # Used on cygwin: DLL creation program.
26857 # Used on cygwin: object dumper.
26860 # Used on cygwin: assembler.
26863 # The name of the directory that contains temporary libtool files.
26866 # How to create reloadable object files.
26867 reload_flag=$lt_reload_flag
26868 reload_cmds=$lt_reload_cmds
26870 # How to pass a linker flag through the compiler.
26871 wl=$lt_lt_prog_compiler_wl_RC
26873 # Object file suffix (normally "o").
26874 objext="$ac_objext"
26876 # Old archive suffix (normally "a").
26879 # Shared library suffix (normally ".so").
26880 shrext_cmds='$shrext_cmds'
26882 # Executable file suffix (normally "").
26885 # Additional compiler flags for building library objects.
26886 pic_flag=$lt_lt_prog_compiler_pic_RC
26889 # What is the maximum length of a command?
26890 max_cmd_len=$lt_cv_sys_max_cmd_len
26892 # Does compiler simultaneously support -c and -o options?
26893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26895 # Must we lock files when doing compilation?
26896 need_locks=$lt_need_locks
26898 # Do we need the lib prefix for modules?
26899 need_lib_prefix=$need_lib_prefix
26901 # Do we need a version for libraries?
26902 need_version=$need_version
26904 # Whether dlopen is supported.
26905 dlopen_support=$enable_dlopen
26907 # Whether dlopen of programs is supported.
26908 dlopen_self=$enable_dlopen_self
26910 # Whether dlopen of statically linked programs is supported.
26911 dlopen_self_static=$enable_dlopen_self_static
26913 # Compiler flag to prevent dynamic linking.
26914 link_static_flag=$lt_lt_prog_compiler_static_RC
26916 # Compiler flag to turn off builtin functions.
26917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26919 # Compiler flag to allow reflexive dlopens.
26920 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26922 # Compiler flag to generate shared objects directly from archives.
26923 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26925 # Compiler flag to generate thread-safe objects.
26926 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26928 # Library versioning type.
26929 version_type=$version_type
26931 # Format of library name prefix.
26932 libname_spec=$lt_libname_spec
26934 # List of archive names. First name is the real one, the rest are links.
26935 # The last name is the one that the linker finds with -lNAME.
26936 library_names_spec=$lt_library_names_spec
26938 # The coded name of the library, if different from the real name.
26939 soname_spec=$lt_soname_spec
26941 # Commands used to build and install an old-style archive.
26943 old_archive_cmds=$lt_old_archive_cmds_RC
26944 old_postinstall_cmds=$lt_old_postinstall_cmds
26945 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26947 # Create an old-style archive from a shared archive.
26948 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26950 # Create a temporary old-style archive to link instead of a shared archive.
26951 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26953 # Commands used to build and install a shared archive.
26954 archive_cmds=$lt_archive_cmds_RC
26955 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26956 postinstall_cmds=$lt_postinstall_cmds
26957 postuninstall_cmds=$lt_postuninstall_cmds
26959 # Commands used to build a loadable module (assumed same as above if empty)
26960 module_cmds=$lt_module_cmds_RC
26961 module_expsym_cmds=$lt_module_expsym_cmds_RC
26963 # Commands to strip libraries.
26964 old_striplib=$lt_old_striplib
26965 striplib=$lt_striplib
26967 # Dependencies to place before the objects being linked to create a
26969 predep_objects=$lt_predep_objects_RC
26971 # Dependencies to place after the objects being linked to create a
26973 postdep_objects=$lt_postdep_objects_RC
26975 # Dependencies to place before the objects being linked to create a
26977 predeps=$lt_predeps_RC
26979 # Dependencies to place after the objects being linked to create a
26981 postdeps=$lt_postdeps_RC
26983 # The library search path used internally by the compiler when linking
26984 # a shared library.
26985 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26987 # Method to check whether dependent libraries are shared objects.
26988 deplibs_check_method=$lt_deplibs_check_method
26990 # Command to use when deplibs_check_method == file_magic.
26991 file_magic_cmd=$lt_file_magic_cmd
26993 # Flag that allows shared libraries with undefined symbols to be built.
26994 allow_undefined_flag=$lt_allow_undefined_flag_RC
26996 # Flag that forces no undefined symbols.
26997 no_undefined_flag=$lt_no_undefined_flag_RC
26999 # Commands used to finish a libtool library installation in a directory.
27000 finish_cmds=$lt_finish_cmds
27002 # Same as above, but a single script fragment to be evaled but not shown.
27003 finish_eval=$lt_finish_eval
27005 # Take the output of nm and produce a listing of raw symbols and C names.
27006 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27008 # Transform the output of nm in a proper C declaration
27009 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27011 # Transform the output of nm in a C name address pair
27012 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27014 # This is the shared library runtime path variable.
27015 runpath_var=$runpath_var
27017 # This is the shared library path variable.
27018 shlibpath_var=$shlibpath_var
27020 # Is shlibpath searched before the hard-coded library search path?
27021 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27023 # How to hardcode a shared library path into an executable.
27024 hardcode_action=$hardcode_action_RC
27026 # Whether we should hardcode library paths into libraries.
27027 hardcode_into_libs=$hardcode_into_libs
27029 # Flag to hardcode \$libdir into a binary during linking.
27030 # This must work even if \$libdir does not exist.
27031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27033 # If ld is used when linking, flag to hardcode \$libdir into
27034 # a binary during linking. This must work even if \$libdir does
27036 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27038 # Whether we need a single -rpath flag with a separated argument.
27039 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27041 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27042 # resulting binary.
27043 hardcode_direct=$hardcode_direct_RC
27045 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27046 # resulting binary.
27047 hardcode_minus_L=$hardcode_minus_L_RC
27049 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27050 # the resulting binary.
27051 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27053 # Set to yes if building a shared library automatically hardcodes DIR into the library
27054 # and all subsequent libraries and executables linked against it.
27055 hardcode_automatic=$hardcode_automatic_RC
27057 # Variables whose values should be saved in libtool wrapper scripts and
27058 # restored at relink time.
27059 variables_saved_for_relink="$variables_saved_for_relink"
27061 # Whether libtool must link a program against all its dependency libraries.
27062 link_all_deplibs=$link_all_deplibs_RC
27064 # Compile-time system search path for libraries
27065 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27067 # Run-time system search path for libraries
27068 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27070 # Fix the shell variable \$srcfile for the compiler.
27071 fix_srcfile_path="$fix_srcfile_path_RC"
27073 # Set to yes if exported symbols are required.
27074 always_export_symbols=$always_export_symbols_RC
27076 # The commands to list exported symbols.
27077 export_symbols_cmds=$lt_export_symbols_cmds_RC
27079 # The commands to extract the exported symbol list from a shared archive.
27080 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27082 # Symbols that should not be listed in the preloaded symbols.
27083 exclude_expsyms=$lt_exclude_expsyms_RC
27085 # Symbols that must always be exported.
27086 include_expsyms=$lt_include_expsyms_RC
27088 # ### END LIBTOOL TAG CONFIG: $tagname
27094 # If there is no Makefile yet, we rely on a make rule to execute
27095 # `config.status --recheck' to rerun these tests and create the
27096 # libtool script then.
27097 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27098 if test -f "$ltmain_in"; then
27099 test -f Makefile
&& make "$ltmain"
27105 ac_cpp
='$CPP $CPPFLAGS'
27106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27115 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27116 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27117 { (exit 1); exit 1; }; }
27121 # Append the new tag name to the list of available tags.
27122 if test -n "$tagname" ; then
27123 available_tags
="$available_tags $tagname"
27129 # Now substitute the updated list of available tags.
27130 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27131 mv "${ofile}T" "$ofile"
27135 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27136 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27137 { (exit 1); exit 1; }; }
27143 # This can be used to rebuild libtool when needed
27144 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
27146 # Always use our own libtool.
27147 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
27149 # Prevent multiple expansion
27171 if test "$lt_cv_dlopen_self" = "yes" ; then
27173 cat >>confdefs.h
<<\_ACEOF
27174 #define CAN_DLOPEN_SELF 1
27180 if test "$WITH_LLVMGCCDIR" = "default" ; then
27181 LLVMGCC
="llvm-gcc${EXEEXT}"
27182 LLVMGXX
="llvm-g++${EXEEXT}"
27183 LLVMGCCCOMMAND
="$LLVMGCC"
27184 LLVMGXXCOMMAND
="$LLVMGXX"
27185 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27187 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27189 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27190 set dummy
$LLVMGCC; ac_word
=$2
27191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27193 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27194 echo $ECHO_N "(cached) $ECHO_C" >&6
27198 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
27201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27202 for as_dir
in $PATH
27205 test -z "$as_dir" && as_dir
=.
27206 for ac_exec_ext
in '' $ac_executable_extensions; do
27207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27208 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
27209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27219 LLVMGCC
=$ac_cv_path_LLVMGCC
27220 if test -n "$LLVMGCC"; then
27221 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27222 echo "${ECHO_T}$LLVMGCC" >&6; }
27224 { echo "$as_me:$LINENO: result: no" >&5
27225 echo "${ECHO_T}no" >&6; }
27229 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27230 set dummy
$LLVMGXX; ac_word
=$2
27231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27233 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27238 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
27241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27242 for as_dir
in $PATH
27245 test -z "$as_dir" && as_dir
=.
27246 for ac_exec_ext
in '' $ac_executable_extensions; do
27247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27248 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
27249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27259 LLVMGXX
=$ac_cv_path_LLVMGXX
27260 if test -n "$LLVMGXX"; then
27261 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27262 echo "${ECHO_T}$LLVMGXX" >&6; }
27264 { echo "$as_me:$LINENO: result: no" >&5
27265 echo "${ECHO_T}no" >&6; }
27270 if test -z "$LLVMGCC"; then
27271 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27272 LLVMGCCCOMMAND
="$LLVMGCC"
27274 if test -z "$LLVMGXX"; then
27275 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27276 LLVMGXXCOMMAND
="$LLVMGXX"
27283 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27285 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27290 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27291 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27304 if test "$GCC" != "yes" && test "$ICC" != "yes"
27306 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27307 echo "$as_me: error: gcc|icc required but not found" >&2;}
27308 { (exit 1); exit 1; }; }
27311 if test "$GXX" != "yes" && test "$IXX" != "yes"
27313 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27314 echo "$as_me: error: g++|icc required but not found" >&2;}
27315 { (exit 1); exit 1; }; }
27318 if test "$GCC" = "yes"
27320 cat >conftest.
$ac_ext <<_ACEOF
27321 #if !defined(__GNUC__) || __GNUC__ < 3
27322 #error Unsupported GCC version
27326 rm -f conftest.
$ac_objext
27327 if { (ac_try
="$ac_compile"
27328 case "(($ac_try" in
27329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27330 *) ac_try_echo=$ac_try;;
27332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27333 (eval "$ac_compile") 2>conftest.er1
27335 grep -v '^ *+' conftest.er1 >conftest.err
27337 cat conftest.err >&5
27338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339 (exit $ac_status); } &&
27340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27341 { (case "(($ac_try" in
27342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27343 *) ac_try_echo
=$ac_try;;
27345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27346 (eval "$ac_try") 2>&5
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); }; } &&
27350 { ac_try
='test -s conftest.$ac_objext'
27351 { (case "(($ac_try" in
27352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27353 *) ac_try_echo=$ac_try;;
27355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27356 (eval "$ac_try") 2>&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); }; }; then
27362 echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27365 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27366 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27367 { (exit 1); exit 1; }; }
27370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27373 if test -z "$llvm_cv_gnu_make_command"
27375 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27376 echo "$as_me: error: GNU Make required but not found" >&2;}
27377 { (exit 1); exit 1; }; }
27380 { echo "$as_me:$LINENO: result: ok" >&5
27381 echo "${ECHO_T}ok" >&6; }
27385 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27386 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27387 if test "${ac_cv_lib_m_sin+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27390 ac_check_lib_save_LIBS=$LIBS
27392 cat >conftest.$ac_ext <<_ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h. */
27399 /* Override any GCC internal prototype to avoid an error.
27400 Use char because int might match the return type of a GCC
27401 builtin and then its argument prototype would still apply. */
27414 rm -f conftest.$ac_objext conftest$ac_exeext
27415 if { (ac_try="$ac_link"
27416 case "(($ac_try" in
27417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27418 *) ac_try_echo
=$ac_try;;
27420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_link") 2>conftest.er1
27423 grep -v '^ *+' conftest.er1
>conftest.err
27425 cat conftest.err
>&5
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); } &&
27428 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27429 { (case "(($ac_try" in
27430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27431 *) ac_try_echo=$ac_try;;
27433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27434 (eval "$ac_try") 2>&5
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); }; } &&
27438 { ac_try='test -s conftest$ac_exeext'
27439 { (case "(($ac_try" in
27440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27441 *) ac_try_echo
=$ac_try;;
27443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27444 (eval "$ac_try") 2>&5
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); }; }; then
27448 ac_cv_lib_m_sin
=yes
27450 echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.
$ac_ext >&5
27456 rm -f core conftest.err conftest.
$ac_objext \
27457 conftest
$ac_exeext conftest.
$ac_ext
27458 LIBS
=$ac_check_lib_save_LIBS
27460 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27461 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27462 if test $ac_cv_lib_m_sin = yes; then
27463 cat >>confdefs.h
<<_ACEOF
27464 #define HAVE_LIBM 1
27471 if test "$llvm_cv_os_type" = "MingW" ; then
27473 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27474 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27475 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27476 echo $ECHO_N "(cached) $ECHO_C" >&6
27478 ac_check_lib_save_LIBS
=$LIBS
27479 LIBS
="-limagehlp $LIBS"
27480 cat >conftest.
$ac_ext <<_ACEOF
27483 cat confdefs.h
>>conftest.
$ac_ext
27484 cat >>conftest.
$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27496 rm -f conftest.
$ac_objext conftest
$ac_exeext
27497 if { (ac_try
="$ac_link"
27498 case "(($ac_try" in
27499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27500 *) ac_try_echo=$ac_try;;
27502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27503 (eval "$ac_link") 2>conftest.er1
27505 grep -v '^ *+' conftest.er1 >conftest.err
27507 cat conftest.err >&5
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); } &&
27510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27511 { (case "(($ac_try" in
27512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27513 *) ac_try_echo
=$ac_try;;
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516 (eval "$ac_try") 2>&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; } &&
27520 { ac_try
='test -s conftest$ac_exeext'
27521 { (case "(($ac_try" in
27522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27523 *) ac_try_echo=$ac_try;;
27525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27526 (eval "$ac_try") 2>&5
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); }; }; then
27530 ac_cv_lib_imagehlp_main=yes
27532 echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27535 ac_cv_lib_imagehlp_main=no
27538 rm -f core conftest.err conftest.$ac_objext \
27539 conftest$ac_exeext conftest.$ac_ext
27540 LIBS=$ac_check_lib_save_LIBS
27542 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27543 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27544 if test $ac_cv_lib_imagehlp_main = yes; then
27545 cat >>confdefs.h <<_ACEOF
27546 #define HAVE_LIBIMAGEHLP 1
27549 LIBS="-limagehlp $LIBS"
27554 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27555 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27556 if test "${ac_cv_lib_psapi_main+set}" = set; then
27557 echo $ECHO_N "(cached) $ECHO_C" >&6
27559 ac_check_lib_save_LIBS=$LIBS
27560 LIBS="-lpsapi $LIBS"
27561 cat >conftest.$ac_ext <<_ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h. */
27577 rm -f conftest.$ac_objext conftest$ac_exeext
27578 if { (ac_try="$ac_link"
27579 case "(($ac_try" in
27580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27581 *) ac_try_echo
=$ac_try;;
27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584 (eval "$ac_link") 2>conftest.er1
27586 grep -v '^ *+' conftest.er1
>conftest.err
27588 cat conftest.err
>&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); } &&
27591 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27592 { (case "(($ac_try" in
27593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27594 *) ac_try_echo=$ac_try;;
27596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27597 (eval "$ac_try") 2>&5
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); }; } &&
27601 { ac_try='test -s conftest$ac_exeext'
27602 { (case "(($ac_try" in
27603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27604 *) ac_try_echo
=$ac_try;;
27606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27607 (eval "$ac_try") 2>&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); }; }; then
27611 ac_cv_lib_psapi_main
=yes
27613 echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.
$ac_ext >&5
27616 ac_cv_lib_psapi_main
=no
27619 rm -f core conftest.err conftest.
$ac_objext \
27620 conftest
$ac_exeext conftest.
$ac_ext
27621 LIBS
=$ac_check_lib_save_LIBS
27623 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27624 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27625 if test $ac_cv_lib_psapi_main = yes; then
27626 cat >>confdefs.h
<<_ACEOF
27627 #define HAVE_LIBPSAPI 1
27630 LIBS
="-lpsapi $LIBS"
27636 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27637 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27638 if test "${ac_cv_search_dlopen+set}" = set; then
27639 echo $ECHO_N "(cached) $ECHO_C" >&6
27641 ac_func_search_save_LIBS
=$LIBS
27642 cat >conftest.
$ac_ext <<_ACEOF
27645 cat confdefs.h
>>conftest.
$ac_ext
27646 cat >>conftest.
$ac_ext <<_ACEOF
27647 /* end confdefs.h. */
27649 /* Override any GCC internal prototype to avoid an error.
27650 Use char because int might match the return type of a GCC
27651 builtin and then its argument prototype would still apply. */
27664 for ac_lib
in '' dl
; do
27665 if test -z "$ac_lib"; then
27666 ac_res
="none required"
27669 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27671 rm -f conftest.
$ac_objext conftest
$ac_exeext
27672 if { (ac_try
="$ac_link"
27673 case "(($ac_try" in
27674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27675 *) ac_try_echo=$ac_try;;
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678 (eval "$ac_link") 2>conftest.er1
27680 grep -v '^ *+' conftest.er1 >conftest.err
27682 cat conftest.err >&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); } &&
27685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27686 { (case "(($ac_try" in
27687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27688 *) ac_try_echo
=$ac_try;;
27690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27691 (eval "$ac_try") 2>&5
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; } &&
27695 { ac_try
='test -s conftest$ac_exeext'
27696 { (case "(($ac_try" in
27697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27698 *) ac_try_echo=$ac_try;;
27700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27701 (eval "$ac_try") 2>&5
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); }; }; then
27705 ac_cv_search_dlopen=$ac_res
27707 echo "$as_me: failed program was:" >&5
27708 sed 's/^/| /' conftest.$ac_ext >&5
27713 rm -f core conftest.err conftest.$ac_objext \
27715 if test "${ac_cv_search_dlopen+set}" = set; then
27719 if test "${ac_cv_search_dlopen+set}" = set; then
27722 ac_cv_search_dlopen=no
27724 rm conftest.$ac_ext
27725 LIBS=$ac_func_search_save_LIBS
27727 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27728 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27729 ac_res=$ac_cv_search_dlopen
27730 if test "$ac_res" != no; then
27731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27733 cat >>confdefs.h <<\_ACEOF
27734 #define HAVE_DLOPEN 1
27738 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27739 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27743 if test "$llvm_cv_enable_libffi" = "yes" ; then
27744 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27745 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27746 if test "${ac_cv_search_ffi_call+set}" = set; then
27747 echo $ECHO_N "(cached) $ECHO_C" >&6
27749 ac_func_search_save_LIBS=$LIBS
27750 cat >conftest.$ac_ext <<_ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h. */
27757 /* Override any GCC internal prototype to avoid an error.
27758 Use char because int might match the return type of a GCC
27759 builtin and then its argument prototype would still apply. */
27767 return ffi_call ();
27772 for ac_lib in '' ffi; do
27773 if test -z "$ac_lib"; then
27774 ac_res="none required"
27777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27779 rm -f conftest.$ac_objext conftest$ac_exeext
27780 if { (ac_try="$ac_link"
27781 case "(($ac_try" in
27782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27783 *) ac_try_echo
=$ac_try;;
27785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27786 (eval "$ac_link") 2>conftest.er1
27788 grep -v '^ *+' conftest.er1
>conftest.err
27790 cat conftest.err
>&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); } &&
27793 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27794 { (case "(($ac_try" in
27795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27796 *) ac_try_echo=$ac_try;;
27798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27799 (eval "$ac_try") 2>&5
27801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); }; } &&
27803 { ac_try='test -s conftest$ac_exeext'
27804 { (case "(($ac_try" in
27805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27806 *) ac_try_echo
=$ac_try;;
27808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27809 (eval "$ac_try") 2>&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); }; }; then
27813 ac_cv_search_ffi_call
=$ac_res
27815 echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.
$ac_ext >&5
27821 rm -f core conftest.err conftest.
$ac_objext \
27823 if test "${ac_cv_search_ffi_call+set}" = set; then
27827 if test "${ac_cv_search_ffi_call+set}" = set; then
27830 ac_cv_search_ffi_call
=no
27832 rm conftest.
$ac_ext
27833 LIBS
=$ac_func_search_save_LIBS
27835 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27836 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27837 ac_res
=$ac_cv_search_ffi_call
27838 if test "$ac_res" != no
; then
27839 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27841 cat >>confdefs.h
<<\_ACEOF
27842 #define HAVE_FFI_CALL 1
27846 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27847 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27852 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27853 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27854 if test "${ac_cv_search_mallinfo+set}" = set; then
27855 echo $ECHO_N "(cached) $ECHO_C" >&6
27857 ac_func_search_save_LIBS
=$LIBS
27858 cat >conftest.
$ac_ext <<_ACEOF
27861 cat confdefs.h
>>conftest.
$ac_ext
27862 cat >>conftest.
$ac_ext <<_ACEOF
27863 /* end confdefs.h. */
27865 /* Override any GCC internal prototype to avoid an error.
27866 Use char because int might match the return type of a GCC
27867 builtin and then its argument prototype would still apply. */
27875 return mallinfo ();
27880 for ac_lib
in '' malloc
; do
27881 if test -z "$ac_lib"; then
27882 ac_res
="none required"
27885 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27887 rm -f conftest.
$ac_objext conftest
$ac_exeext
27888 if { (ac_try
="$ac_link"
27889 case "(($ac_try" in
27890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894 (eval "$ac_link") 2>conftest.er1
27896 grep -v '^ *+' conftest.er1 >conftest.err
27898 cat conftest.err >&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); } &&
27901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27902 { (case "(($ac_try" in
27903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27904 *) ac_try_echo
=$ac_try;;
27906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27907 (eval "$ac_try") 2>&5
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); }; } &&
27911 { ac_try
='test -s conftest$ac_exeext'
27912 { (case "(($ac_try" in
27913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27914 *) ac_try_echo=$ac_try;;
27916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27917 (eval "$ac_try") 2>&5
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); }; }; then
27921 ac_cv_search_mallinfo=$ac_res
27923 echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27929 rm -f core conftest.err conftest.$ac_objext \
27931 if test "${ac_cv_search_mallinfo+set}" = set; then
27935 if test "${ac_cv_search_mallinfo+set}" = set; then
27938 ac_cv_search_mallinfo=no
27940 rm conftest.$ac_ext
27941 LIBS=$ac_func_search_save_LIBS
27943 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27944 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27945 ac_res=$ac_cv_search_mallinfo
27946 if test "$ac_res" != no; then
27947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27949 cat >>confdefs.h <<\_ACEOF
27950 #define HAVE_MALLINFO 1
27956 if test "$ENABLE_THREADS" -eq 1 ; then
27958 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27959 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27960 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27961 echo $ECHO_N "(cached) $ECHO_C" >&6
27963 ac_check_lib_save_LIBS=$LIBS
27964 LIBS="-lpthread $LIBS"
27965 cat >conftest.$ac_ext <<_ACEOF
27968 cat confdefs.h >>conftest.$ac_ext
27969 cat >>conftest.$ac_ext <<_ACEOF
27970 /* end confdefs.h. */
27972 /* Override any GCC internal prototype to avoid an error.
27973 Use char because int might match the return type of a GCC
27974 builtin and then its argument prototype would still apply. */
27978 char pthread_mutex_init ();
27982 return pthread_mutex_init ();
27987 rm -f conftest.$ac_objext conftest$ac_exeext
27988 if { (ac_try="$ac_link"
27989 case "(($ac_try" in
27990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27991 *) ac_try_echo
=$ac_try;;
27993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994 (eval "$ac_link") 2>conftest.er1
27996 grep -v '^ *+' conftest.er1
>conftest.err
27998 cat conftest.err
>&5
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); } &&
28001 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28002 { (case "(($ac_try" in
28003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28004 *) ac_try_echo=$ac_try;;
28006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007 (eval "$ac_try") 2>&5
28009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); }; } &&
28011 { ac_try='test -s conftest$ac_exeext'
28012 { (case "(($ac_try" in
28013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28014 *) ac_try_echo
=$ac_try;;
28016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28017 (eval "$ac_try") 2>&5
28019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); }; }; then
28021 ac_cv_lib_pthread_pthread_mutex_init
=yes
28023 echo "$as_me: failed program was:" >&5
28024 sed 's/^/| /' conftest.
$ac_ext >&5
28026 ac_cv_lib_pthread_pthread_mutex_init
=no
28029 rm -f core conftest.err conftest.
$ac_objext \
28030 conftest
$ac_exeext conftest.
$ac_ext
28031 LIBS
=$ac_check_lib_save_LIBS
28033 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28034 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28035 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28036 cat >>confdefs.h
<<_ACEOF
28037 #define HAVE_LIBPTHREAD 1
28040 LIBS
="-lpthread $LIBS"
28044 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28045 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28046 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28047 echo $ECHO_N "(cached) $ECHO_C" >&6
28049 ac_func_search_save_LIBS
=$LIBS
28050 cat >conftest.
$ac_ext <<_ACEOF
28053 cat confdefs.h
>>conftest.
$ac_ext
28054 cat >>conftest.
$ac_ext <<_ACEOF
28055 /* end confdefs.h. */
28057 /* Override any GCC internal prototype to avoid an error.
28058 Use char because int might match the return type of a GCC
28059 builtin and then its argument prototype would still apply. */
28063 char pthread_mutex_lock ();
28067 return pthread_mutex_lock ();
28072 for ac_lib
in '' pthread
; do
28073 if test -z "$ac_lib"; then
28074 ac_res
="none required"
28077 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28079 rm -f conftest.
$ac_objext conftest
$ac_exeext
28080 if { (ac_try
="$ac_link"
28081 case "(($ac_try" in
28082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28083 *) ac_try_echo=$ac_try;;
28085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28086 (eval "$ac_link") 2>conftest.er1
28088 grep -v '^ *+' conftest.er1 >conftest.err
28090 cat conftest.err >&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); } &&
28093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28094 { (case "(($ac_try" in
28095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28096 *) ac_try_echo
=$ac_try;;
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099 (eval "$ac_try") 2>&5
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); }; } &&
28103 { ac_try
='test -s conftest$ac_exeext'
28104 { (case "(($ac_try" in
28105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28106 *) ac_try_echo=$ac_try;;
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109 (eval "$ac_try") 2>&5
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); }; }; then
28113 ac_cv_search_pthread_mutex_lock=$ac_res
28115 echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28121 rm -f core conftest.err conftest.$ac_objext \
28123 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28127 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28130 ac_cv_search_pthread_mutex_lock=no
28132 rm conftest.$ac_ext
28133 LIBS=$ac_func_search_save_LIBS
28135 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28136 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28137 ac_res=$ac_cv_search_pthread_mutex_lock
28138 if test "$ac_res" != no; then
28139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28141 cat >>confdefs.h <<\_ACEOF
28142 #define HAVE_PTHREAD_MUTEX_LOCK 1
28147 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28148 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28149 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28150 echo $ECHO_N "(cached) $ECHO_C" >&6
28152 ac_func_search_save_LIBS=$LIBS
28153 cat >conftest.$ac_ext <<_ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h. */
28160 /* Override any GCC internal prototype to avoid an error.
28161 Use char because int might match the return type of a GCC
28162 builtin and then its argument prototype would still apply. */
28166 char pthread_rwlock_init ();
28170 return pthread_rwlock_init ();
28175 for ac_lib in '' pthread; do
28176 if test -z "$ac_lib"; then
28177 ac_res="none required"
28180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28182 rm -f conftest.$ac_objext conftest$ac_exeext
28183 if { (ac_try="$ac_link"
28184 case "(($ac_try" in
28185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28186 *) ac_try_echo
=$ac_try;;
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_link") 2>conftest.er1
28191 grep -v '^ *+' conftest.er1
>conftest.err
28193 cat conftest.err
>&5
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); } &&
28196 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28197 { (case "(($ac_try" in
28198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_try") 2>&5
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; } &&
28206 { ac_try='test -s conftest$ac_exeext'
28207 { (case "(($ac_try" in
28208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28209 *) ac_try_echo
=$ac_try;;
28211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212 (eval "$ac_try") 2>&5
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; }; then
28216 ac_cv_search_pthread_rwlock_init
=$ac_res
28218 echo "$as_me: failed program was:" >&5
28219 sed 's/^/| /' conftest.
$ac_ext >&5
28224 rm -f core conftest.err conftest.
$ac_objext \
28226 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28230 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28233 ac_cv_search_pthread_rwlock_init
=no
28235 rm conftest.
$ac_ext
28236 LIBS
=$ac_func_search_save_LIBS
28238 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28239 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28240 ac_res
=$ac_cv_search_pthread_rwlock_init
28241 if test "$ac_res" != no
; then
28242 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28244 cat >>confdefs.h
<<\_ACEOF
28245 #define HAVE_PTHREAD_RWLOCK_INIT 1
28250 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28251 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28252 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28253 echo $ECHO_N "(cached) $ECHO_C" >&6
28255 ac_func_search_save_LIBS
=$LIBS
28256 cat >conftest.
$ac_ext <<_ACEOF
28259 cat confdefs.h
>>conftest.
$ac_ext
28260 cat >>conftest.
$ac_ext <<_ACEOF
28261 /* end confdefs.h. */
28263 /* Override any GCC internal prototype to avoid an error.
28264 Use char because int might match the return type of a GCC
28265 builtin and then its argument prototype would still apply. */
28269 char pthread_getspecific ();
28273 return pthread_getspecific ();
28278 for ac_lib
in '' pthread
; do
28279 if test -z "$ac_lib"; then
28280 ac_res
="none required"
28283 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28285 rm -f conftest.
$ac_objext conftest
$ac_exeext
28286 if { (ac_try
="$ac_link"
28287 case "(($ac_try" in
28288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28289 *) ac_try_echo=$ac_try;;
28291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292 (eval "$ac_link") 2>conftest.er1
28294 grep -v '^ *+' conftest.er1 >conftest.err
28296 cat conftest.err >&5
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); } &&
28299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28300 { (case "(($ac_try" in
28301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28302 *) ac_try_echo
=$ac_try;;
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305 (eval "$ac_try") 2>&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; } &&
28309 { ac_try
='test -s conftest$ac_exeext'
28310 { (case "(($ac_try" in
28311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_try") 2>&5
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; }; then
28319 ac_cv_search_pthread_getspecific=$ac_res
28321 echo "$as_me: failed program was:" >&5
28322 sed 's/^/| /' conftest.$ac_ext >&5
28327 rm -f core conftest.err conftest.$ac_objext \
28329 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28333 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28336 ac_cv_search_pthread_getspecific=no
28338 rm conftest.$ac_ext
28339 LIBS=$ac_func_search_save_LIBS
28341 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28342 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28343 ac_res=$ac_cv_search_pthread_getspecific
28344 if test "$ac_res" != no; then
28345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28347 cat >>confdefs.h <<\_ACEOF
28348 #define HAVE_PTHREAD_GETSPECIFIC 1
28356 # Check whether --with-udis86 was given.
28357 if test "${with_udis86+set}" = set; then
28358 withval=$with_udis86;
28363 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28366 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28367 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28368 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 ac_check_lib_save_LIBS=$LIBS
28372 LIBS="-ludis86 $LIBS"
28373 cat >conftest.$ac_ext <<_ACEOF
28376 cat confdefs.h >>conftest.$ac_ext
28377 cat >>conftest.$ac_ext <<_ACEOF
28378 /* end confdefs.h. */
28380 /* Override any GCC internal prototype to avoid an error.
28381 Use char because int might match the return type of a GCC
28382 builtin and then its argument prototype would still apply. */
28395 rm -f conftest.$ac_objext conftest$ac_exeext
28396 if { (ac_try="$ac_link"
28397 case "(($ac_try" in
28398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28399 *) ac_try_echo
=$ac_try;;
28401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402 (eval "$ac_link") 2>conftest.er1
28404 grep -v '^ *+' conftest.er1
>conftest.err
28406 cat conftest.err
>&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); } &&
28409 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28410 { (case "(($ac_try" in
28411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28412 *) ac_try_echo=$ac_try;;
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415 (eval "$ac_try") 2>&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; } &&
28419 { ac_try='test -s conftest$ac_exeext'
28420 { (case "(($ac_try" in
28421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28422 *) ac_try_echo
=$ac_try;;
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 ac_cv_lib_udis86_ud_init
=yes
28431 echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.
$ac_ext >&5
28434 ac_cv_lib_udis86_ud_init
=no
28437 rm -f core conftest.err conftest.
$ac_objext \
28438 conftest
$ac_exeext conftest.
$ac_ext
28439 LIBS
=$ac_check_lib_save_LIBS
28441 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28442 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28443 if test $ac_cv_lib_udis86_ud_init = yes; then
28444 cat >>confdefs.h
<<_ACEOF
28445 #define HAVE_LIBUDIS86 1
28448 LIBS
="-ludis86 $LIBS"
28452 echo "Error! You need to have libudis86 around."
28464 cat >>confdefs.h
<<_ACEOF
28465 #define USE_UDIS86 $USE_UDIS86
28470 # Check whether --with-oprofile was given.
28471 if test "${with_oprofile+set}" = set; then
28472 withval
=$with_oprofile;
28476 /usr|
yes) llvm_cv_oppath
=/usr
/lib
/oprofile
;;
28477 *) llvm_cv_oppath
="${withval}/lib/oprofile"
28478 CPPFLAGS
="-I${withval}/include";;
28480 LIBS
="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28481 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28482 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28483 if test "${ac_cv_search_op_open_agent+set}" = set; then
28484 echo $ECHO_N "(cached) $ECHO_C" >&6
28486 ac_func_search_save_LIBS
=$LIBS
28487 cat >conftest.
$ac_ext <<_ACEOF
28490 cat confdefs.h
>>conftest.
$ac_ext
28491 cat >>conftest.
$ac_ext <<_ACEOF
28492 /* end confdefs.h. */
28494 /* Override any GCC internal prototype to avoid an error.
28495 Use char because int might match the return type of a GCC
28496 builtin and then its argument prototype would still apply. */
28500 char op_open_agent ();
28504 return op_open_agent ();
28509 for ac_lib
in '' opagent
; do
28510 if test -z "$ac_lib"; then
28511 ac_res
="none required"
28514 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28516 rm -f conftest.
$ac_objext conftest
$ac_exeext
28517 if { (ac_try
="$ac_link"
28518 case "(($ac_try" in
28519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28520 *) ac_try_echo=$ac_try;;
28522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523 (eval "$ac_link") 2>conftest.er1
28525 grep -v '^ *+' conftest.er1 >conftest.err
28527 cat conftest.err >&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); } &&
28530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28531 { (case "(($ac_try" in
28532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28533 *) ac_try_echo
=$ac_try;;
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_try") 2>&5
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; } &&
28540 { ac_try
='test -s conftest$ac_exeext'
28541 { (case "(($ac_try" in
28542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_try") 2>&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; }; then
28550 ac_cv_search_op_open_agent=$ac_res
28552 echo "$as_me: failed program was:" >&5
28553 sed 's/^/| /' conftest.$ac_ext >&5
28558 rm -f core conftest.err conftest.$ac_objext \
28560 if test "${ac_cv_search_op_open_agent+set}" = set; then
28564 if test "${ac_cv_search_op_open_agent+set}" = set; then
28567 ac_cv_search_op_open_agent=no
28569 rm conftest.$ac_ext
28570 LIBS=$ac_func_search_save_LIBS
28572 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28573 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28574 ac_res=$ac_cv_search_op_open_agent
28575 if test "$ac_res" != no; then
28576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28580 echo "Error! You need to have libopagent around."
28585 if test "${ac_cv_header_opagent_h+set}" = set; then
28586 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28587 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28588 if test "${ac_cv_header_opagent_h+set}" = set; then
28589 echo $ECHO_N "(cached) $ECHO_C" >&6
28591 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28592 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28594 # Is the header compilable?
28595 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28596 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28597 cat >conftest.$ac_ext <<_ACEOF
28600 cat confdefs.h >>conftest.$ac_ext
28601 cat >>conftest.$ac_ext <<_ACEOF
28602 /* end confdefs.h. */
28603 $ac_includes_default
28604 #include <opagent.h>
28606 rm -f conftest.$ac_objext
28607 if { (ac_try="$ac_compile"
28608 case "(($ac_try" in
28609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28610 *) ac_try_echo
=$ac_try;;
28612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28613 (eval "$ac_compile") 2>conftest.er1
28615 grep -v '^ *+' conftest.er1
>conftest.err
28617 cat conftest.err
>&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
28620 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28621 { (case "(($ac_try" in
28622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28623 *) ac_try_echo=$ac_try;;
28625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28626 (eval "$ac_try") 2>&5
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; } &&
28630 { ac_try='test -s conftest.$ac_objext'
28631 { (case "(($ac_try" in
28632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28633 *) ac_try_echo
=$ac_try;;
28635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28636 (eval "$ac_try") 2>&5
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); }; }; then
28640 ac_header_compiler
=yes
28642 echo "$as_me: failed program was:" >&5
28643 sed 's/^/| /' conftest.
$ac_ext >&5
28645 ac_header_compiler
=no
28648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28650 echo "${ECHO_T}$ac_header_compiler" >&6; }
28652 # Is the header present?
28653 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28654 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28655 cat >conftest.
$ac_ext <<_ACEOF
28658 cat confdefs.h
>>conftest.
$ac_ext
28659 cat >>conftest.
$ac_ext <<_ACEOF
28660 /* end confdefs.h. */
28661 #include <opagent.h>
28663 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28664 case "(($ac_try" in
28665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28671 grep -v '^ *+' conftest.er1 >conftest.err
28673 cat conftest.err >&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); } >/dev/null; then
28676 if test -s conftest.err; then
28677 ac_cpp_err=$ac_c_preproc_warn_flag
28678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28685 if test -z "$ac_cpp_err"; then
28686 ac_header_preproc=yes
28688 echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.$ac_ext >&5
28691 ac_header_preproc=no
28694 rm -f conftest.err conftest.$ac_ext
28695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28696 echo "${ECHO_T}$ac_header_preproc" >&6; }
28698 # So? What about this header?
28699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28701 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28702 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28703 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28704 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28705 ac_header_preproc=yes
28708 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28709 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28710 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28711 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28712 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28713 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28714 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28715 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28716 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28717 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28718 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28719 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28721 ## ----------------------------------- ##
28722 ## Report this to llvmbugs@cs.uiuc.edu ##
28723 ## ----------------------------------- ##
28725 ) | sed "s/^/$as_me: WARNING: /" >&2
28728 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28729 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28730 if test "${ac_cv_header_opagent_h+set}" = set; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28733 ac_cv_header_opagent_h=$ac_header_preproc
28735 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28736 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28739 if test $ac_cv_header_opagent_h = yes; then
28743 echo "Error! You need to have opagent.h around."
28752 llvm_cv_old_LIBS="$LIBS"
28753 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28754 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28755 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28756 if test "${ac_cv_search_op_open_agent+set}" = set; then
28757 echo $ECHO_N "(cached) $ECHO_C" >&6
28759 ac_func_search_save_LIBS=$LIBS
28760 cat >conftest.$ac_ext <<_ACEOF
28763 cat confdefs.h >>conftest.$ac_ext
28764 cat >>conftest.$ac_ext <<_ACEOF
28765 /* end confdefs.h. */
28767 /* Override any GCC internal prototype to avoid an error.
28768 Use char because int might match the return type of a GCC
28769 builtin and then its argument prototype would still apply. */
28773 char op_open_agent ();
28777 return op_open_agent ();
28782 for ac_lib in '' opagent; do
28783 if test -z "$ac_lib"; then
28784 ac_res="none required"
28787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28789 rm -f conftest.$ac_objext conftest$ac_exeext
28790 if { (ac_try="$ac_link"
28791 case "(($ac_try" in
28792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28793 *) ac_try_echo
=$ac_try;;
28795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796 (eval "$ac_link") 2>conftest.er1
28798 grep -v '^ *+' conftest.er1
>conftest.err
28800 cat conftest.err
>&5
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); } &&
28803 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28804 { (case "(($ac_try" in
28805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28806 *) ac_try_echo=$ac_try;;
28808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28809 (eval "$ac_try") 2>&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); }; } &&
28813 { ac_try='test -s conftest$ac_exeext'
28814 { (case "(($ac_try" in
28815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28816 *) ac_try_echo
=$ac_try;;
28818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819 (eval "$ac_try") 2>&5
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); }; }; then
28823 ac_cv_search_op_open_agent
=$ac_res
28825 echo "$as_me: failed program was:" >&5
28826 sed 's/^/| /' conftest.
$ac_ext >&5
28831 rm -f core conftest.err conftest.
$ac_objext \
28833 if test "${ac_cv_search_op_open_agent+set}" = set; then
28837 if test "${ac_cv_search_op_open_agent+set}" = set; then
28840 ac_cv_search_op_open_agent
=no
28842 rm conftest.
$ac_ext
28843 LIBS
=$ac_func_search_save_LIBS
28845 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28846 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28847 ac_res
=$ac_cv_search_op_open_agent
28848 if test "$ac_res" != no
; then
28849 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28853 LIBS
="$llvm_cv_old_LIBS"
28858 if test "${ac_cv_header_opagent_h+set}" = set; then
28859 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28860 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28861 if test "${ac_cv_header_opagent_h+set}" = set; then
28862 echo $ECHO_N "(cached) $ECHO_C" >&6
28864 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28865 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28867 # Is the header compilable?
28868 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28869 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28870 cat >conftest.
$ac_ext <<_ACEOF
28873 cat confdefs.h
>>conftest.
$ac_ext
28874 cat >>conftest.
$ac_ext <<_ACEOF
28875 /* end confdefs.h. */
28876 $ac_includes_default
28877 #include <opagent.h>
28879 rm -f conftest.
$ac_objext
28880 if { (ac_try
="$ac_compile"
28881 case "(($ac_try" in
28882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28883 *) ac_try_echo=$ac_try;;
28885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28886 (eval "$ac_compile") 2>conftest.er1
28888 grep -v '^ *+' conftest.er1 >conftest.err
28890 cat conftest.err >&5
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); } &&
28893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28894 { (case "(($ac_try" in
28895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28896 *) ac_try_echo
=$ac_try;;
28898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899 (eval "$ac_try") 2>&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; } &&
28903 { ac_try
='test -s conftest.$ac_objext'
28904 { (case "(($ac_try" in
28905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28906 *) ac_try_echo=$ac_try;;
28908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28909 (eval "$ac_try") 2>&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; }; then
28913 ac_header_compiler=yes
28915 echo "$as_me: failed program was:" >&5
28916 sed 's/^/| /' conftest.$ac_ext >&5
28918 ac_header_compiler=no
28921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28923 echo "${ECHO_T}$ac_header_compiler" >&6; }
28925 # Is the header present?
28926 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28927 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28928 cat >conftest.$ac_ext <<_ACEOF
28931 cat confdefs.h >>conftest.$ac_ext
28932 cat >>conftest.$ac_ext <<_ACEOF
28933 /* end confdefs.h. */
28934 #include <opagent.h>
28936 if { (ac_try="$ac_cpp conftest.$ac_ext"
28937 case "(($ac_try" in
28938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28939 *) ac_try_echo
=$ac_try;;
28941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28944 grep -v '^ *+' conftest.er1
>conftest.err
28946 cat conftest.err
>&5
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); } >/dev
/null
; then
28949 if test -s conftest.err
; then
28950 ac_cpp_err
=$ac_c_preproc_warn_flag
28951 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28958 if test -z "$ac_cpp_err"; then
28959 ac_header_preproc
=yes
28961 echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.
$ac_ext >&5
28964 ac_header_preproc
=no
28967 rm -f conftest.err conftest.
$ac_ext
28968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28969 echo "${ECHO_T}$ac_header_preproc" >&6; }
28971 # So? What about this header?
28972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28974 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28975 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28976 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28977 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28978 ac_header_preproc
=yes
28981 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28982 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28983 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28984 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28985 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28986 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28987 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28988 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28990 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28991 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28992 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28994 ## ----------------------------------- ##
28995 ## Report this to llvmbugs@cs.uiuc.edu ##
28996 ## ----------------------------------- ##
28998 ) |
sed "s/^/$as_me: WARNING: /" >&2
29001 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29002 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29003 if test "${ac_cv_header_opagent_h+set}" = set; then
29004 echo $ECHO_N "(cached) $ECHO_C" >&6
29006 ac_cv_header_opagent_h
=$ac_header_preproc
29008 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29009 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29012 if test $ac_cv_header_opagent_h = yes; then
29016 LIBS
="$llvm_cv_old_LIBS"
29027 cat >>confdefs.h
<<_ACEOF
29028 #define USE_OPROFILE $USE_OPROFILE
29038 ac_header_dirent
=no
29039 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
29040 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29041 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29042 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29043 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29044 echo $ECHO_N "(cached) $ECHO_C" >&6
29046 cat >conftest.
$ac_ext <<_ACEOF
29049 cat confdefs.h
>>conftest.
$ac_ext
29050 cat >>conftest.
$ac_ext <<_ACEOF
29051 /* end confdefs.h. */
29052 #include <sys/types.h>
29064 rm -f conftest.
$ac_objext
29065 if { (ac_try
="$ac_compile"
29066 case "(($ac_try" in
29067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29068 *) ac_try_echo=$ac_try;;
29070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29071 (eval "$ac_compile") 2>conftest.er1
29073 grep -v '^ *+' conftest.er1 >conftest.err
29075 cat conftest.err >&5
29076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077 (exit $ac_status); } &&
29078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29079 { (case "(($ac_try" in
29080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29081 *) ac_try_echo
=$ac_try;;
29083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29084 (eval "$ac_try") 2>&5
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); }; } &&
29088 { ac_try
='test -s conftest.$ac_objext'
29089 { (case "(($ac_try" in
29090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_try") 2>&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); }; }; then
29098 eval "$as_ac_Header=yes"
29100 echo "$as_me: failed program was:" >&5
29101 sed 's/^/| /' conftest.$ac_ext >&5
29103 eval "$as_ac_Header=no"
29106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29108 ac_res=`eval echo '${'$as_ac_Header'}'`
29109 { echo "$as_me:$LINENO: result: $ac_res" >&5
29110 echo "${ECHO_T}$ac_res" >&6; }
29111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29112 cat >>confdefs.h <<_ACEOF
29113 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
29116 ac_header_dirent=$ac_hdr; break
29120 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29121 if test $ac_header_dirent = dirent.h; then
29122 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29123 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29124 if test "${ac_cv_search_opendir+set}" = set; then
29125 echo $ECHO_N "(cached) $ECHO_C" >&6
29127 ac_func_search_save_LIBS=$LIBS
29128 cat >conftest.$ac_ext <<_ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h. */
29135 /* Override any GCC internal prototype to avoid an error.
29136 Use char because int might match the return type of a GCC
29137 builtin and then its argument prototype would still apply. */
29150 for ac_lib in '' dir; do
29151 if test -z "$ac_lib"; then
29152 ac_res="none required"
29155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29157 rm -f conftest.$ac_objext conftest$ac_exeext
29158 if { (ac_try="$ac_link"
29159 case "(($ac_try" in
29160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29161 *) ac_try_echo
=$ac_try;;
29163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164 (eval "$ac_link") 2>conftest.er1
29166 grep -v '^ *+' conftest.er1
>conftest.err
29168 cat conftest.err
>&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } &&
29171 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29172 { (case "(($ac_try" in
29173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29174 *) ac_try_echo=$ac_try;;
29176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177 (eval "$ac_try") 2>&5
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; } &&
29181 { ac_try='test -s conftest$ac_exeext'
29182 { (case "(($ac_try" in
29183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29184 *) ac_try_echo
=$ac_try;;
29186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29187 (eval "$ac_try") 2>&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); }; }; then
29191 ac_cv_search_opendir
=$ac_res
29193 echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.
$ac_ext >&5
29199 rm -f core conftest.err conftest.
$ac_objext \
29201 if test "${ac_cv_search_opendir+set}" = set; then
29205 if test "${ac_cv_search_opendir+set}" = set; then
29208 ac_cv_search_opendir
=no
29210 rm conftest.
$ac_ext
29211 LIBS
=$ac_func_search_save_LIBS
29213 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29214 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29215 ac_res
=$ac_cv_search_opendir
29216 if test "$ac_res" != no
; then
29217 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29222 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29223 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29224 if test "${ac_cv_search_opendir+set}" = set; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
29227 ac_func_search_save_LIBS
=$LIBS
29228 cat >conftest.
$ac_ext <<_ACEOF
29231 cat confdefs.h
>>conftest.
$ac_ext
29232 cat >>conftest.
$ac_ext <<_ACEOF
29233 /* end confdefs.h. */
29235 /* Override any GCC internal prototype to avoid an error.
29236 Use char because int might match the return type of a GCC
29237 builtin and then its argument prototype would still apply. */
29250 for ac_lib
in '' x
; do
29251 if test -z "$ac_lib"; then
29252 ac_res
="none required"
29255 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29257 rm -f conftest.
$ac_objext conftest
$ac_exeext
29258 if { (ac_try
="$ac_link"
29259 case "(($ac_try" in
29260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29261 *) ac_try_echo=$ac_try;;
29263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29264 (eval "$ac_link") 2>conftest.er1
29266 grep -v '^ *+' conftest.er1 >conftest.err
29268 cat conftest.err >&5
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); } &&
29271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29272 { (case "(($ac_try" in
29273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29274 *) ac_try_echo
=$ac_try;;
29276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29277 (eval "$ac_try") 2>&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); }; } &&
29281 { ac_try
='test -s conftest$ac_exeext'
29282 { (case "(($ac_try" in
29283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287 (eval "$ac_try") 2>&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); }; }; then
29291 ac_cv_search_opendir=$ac_res
29293 echo "$as_me: failed program was:" >&5
29294 sed 's/^/| /' conftest.$ac_ext >&5
29299 rm -f core conftest.err conftest.$ac_objext \
29301 if test "${ac_cv_search_opendir+set}" = set; then
29305 if test "${ac_cv_search_opendir+set}" = set; then
29308 ac_cv_search_opendir=no
29310 rm conftest.$ac_ext
29311 LIBS=$ac_func_search_save_LIBS
29313 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29314 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29315 ac_res=$ac_cv_search_opendir
29316 if test "$ac_res" != no; then
29317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29323 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29324 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29325 if test "${ac_cv_header_mmap_anon+set}" = set; then
29326 echo $ECHO_N "(cached) $ECHO_C" >&6
29329 ac_cpp='$CPP $CPPFLAGS'
29330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29334 cat >conftest.$ac_ext <<_ACEOF
29337 cat confdefs.h >>conftest.$ac_ext
29338 cat >>conftest.$ac_ext <<_ACEOF
29339 /* end confdefs.h. */
29340 #include <sys/mman.h>
29341 #include <unistd.h>
29346 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29351 rm -f conftest.$ac_objext
29352 if { (ac_try="$ac_compile"
29353 case "(($ac_try" in
29354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29355 *) ac_try_echo
=$ac_try;;
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_compile") 2>conftest.er1
29360 grep -v '^ *+' conftest.er1
>conftest.err
29362 cat conftest.err
>&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } &&
29365 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29366 { (case "(($ac_try" in
29367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29368 *) ac_try_echo=$ac_try;;
29370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371 (eval "$ac_try") 2>&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); }; } &&
29375 { ac_try='test -s conftest.$ac_objext'
29376 { (case "(($ac_try" in
29377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29378 *) ac_try_echo
=$ac_try;;
29380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29381 (eval "$ac_try") 2>&5
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; }; then
29385 ac_cv_header_mmap_anon
=yes
29387 echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.
$ac_ext >&5
29390 ac_cv_header_mmap_anon
=no
29393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29395 ac_cpp
='$CPP $CPPFLAGS'
29396 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29397 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29398 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
29402 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29403 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29404 if test "$ac_cv_header_mmap_anon" = yes; then
29406 cat >>confdefs.h
<<\_ACEOF
29407 #define HAVE_MMAP_ANONYMOUS 1
29412 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29413 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29414 if test "${ac_cv_header_stat_broken+set}" = set; then
29415 echo $ECHO_N "(cached) $ECHO_C" >&6
29417 cat >conftest.
$ac_ext <<_ACEOF
29420 cat confdefs.h
>>conftest.
$ac_ext
29421 cat >>conftest.
$ac_ext <<_ACEOF
29422 /* end confdefs.h. */
29423 #include <sys/types.h>
29424 #include <sys/stat.h>
29426 #if defined S_ISBLK && defined S_IFDIR
29427 # if S_ISBLK (S_IFDIR)
29432 #if defined S_ISBLK && defined S_IFCHR
29433 # if S_ISBLK (S_IFCHR)
29438 #if defined S_ISLNK && defined S_IFREG
29439 # if S_ISLNK (S_IFREG)
29444 #if defined S_ISSOCK && defined S_IFREG
29445 # if S_ISSOCK (S_IFREG)
29451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29452 $EGREP "You lose" >/dev
/null
2>&1; then
29453 ac_cv_header_stat_broken
=yes
29455 ac_cv_header_stat_broken
=no
29460 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29461 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29462 if test $ac_cv_header_stat_broken = yes; then
29464 cat >>confdefs.h
<<\_ACEOF
29465 #define STAT_MACROS_BROKEN 1
29470 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29472 if test "${ac_cv_header_stdc+set}" = set; then
29473 echo $ECHO_N "(cached) $ECHO_C" >&6
29475 cat >conftest.
$ac_ext <<_ACEOF
29478 cat confdefs.h
>>conftest.
$ac_ext
29479 cat >>conftest.
$ac_ext <<_ACEOF
29480 /* end confdefs.h. */
29481 #include <stdlib.h>
29482 #include <stdarg.h>
29483 #include <string.h>
29494 rm -f conftest.
$ac_objext
29495 if { (ac_try
="$ac_compile"
29496 case "(($ac_try" in
29497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29498 *) ac_try_echo=$ac_try;;
29500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29501 (eval "$ac_compile") 2>conftest.er1
29503 grep -v '^ *+' conftest.er1 >conftest.err
29505 cat conftest.err >&5
29506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); } &&
29508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29509 { (case "(($ac_try" in
29510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29511 *) ac_try_echo
=$ac_try;;
29513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29514 (eval "$ac_try") 2>&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try
='test -s conftest.$ac_objext'
29519 { (case "(($ac_try" in
29520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29521 *) ac_try_echo=$ac_try;;
29523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524 (eval "$ac_try") 2>&5
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; }; then
29528 ac_cv_header_stdc=yes
29530 echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29533 ac_cv_header_stdc=no
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29538 if test $ac_cv_header_stdc = yes; then
29539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29540 cat >conftest.$ac_ext <<_ACEOF
29543 cat confdefs.h >>conftest.$ac_ext
29544 cat >>conftest.$ac_ext <<_ACEOF
29545 /* end confdefs.h. */
29546 #include <string.h>
29549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29550 $EGREP "memchr" >/dev/null 2>&1; then
29553 ac_cv_header_stdc=no
29559 if test $ac_cv_header_stdc = yes; then
29560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29561 cat >conftest.$ac_ext <<_ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h. */
29567 #include <stdlib.h>
29570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29571 $EGREP "free" >/dev/null 2>&1; then
29574 ac_cv_header_stdc=no
29580 if test $ac_cv_header_stdc = yes; then
29581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29582 if test "$cross_compiling" = yes; then
29585 cat >conftest.$ac_ext <<_ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h. */
29592 #include <stdlib.h>
29593 #if ((' ' & 0x0FF) == 0x020)
29594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29597 # define ISLOWER(c) \
29598 (('a' <= (c) && (c) <= 'i') \
29599 || ('j' <= (c) && (c) <= 'r') \
29600 || ('s' <= (c) && (c) <= 'z'))
29601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29609 for (i = 0; i < 256; i++)
29610 if (XOR (islower (i), ISLOWER (i))
29611 || toupper (i) != TOUPPER (i))
29616 rm -f conftest$ac_exeext
29617 if { (ac_try="$ac_link"
29618 case "(($ac_try" in
29619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29620 *) ac_try_echo
=$ac_try;;
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_link") 2>&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29627 { (case "(($ac_try" in
29628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632 (eval "$ac_try") 2>&5
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; }; then
29638 echo "$as_me: program exited with status $ac_status" >&5
29639 echo "$as_me: failed program was:" >&5
29640 sed 's/^/| /' conftest.$ac_ext >&5
29642 ( exit $ac_status )
29643 ac_cv_header_stdc=no
29645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29651 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29652 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29653 if test $ac_cv_header_stdc = yes; then
29655 cat >>confdefs.h <<\_ACEOF
29656 #define STDC_HEADERS 1
29661 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29662 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29663 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29664 echo $ECHO_N "(cached) $ECHO_C" >&6
29666 cat >conftest.$ac_ext <<_ACEOF
29669 cat confdefs.h >>conftest.$ac_ext
29670 cat >>conftest.$ac_ext <<_ACEOF
29671 /* end confdefs.h. */
29672 #include <sys/types.h>
29673 #include <sys/wait.h>
29674 #ifndef WEXITSTATUS
29675 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29678 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29686 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29691 rm -f conftest.$ac_objext
29692 if { (ac_try="$ac_compile"
29693 case "(($ac_try" in
29694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29695 *) ac_try_echo
=$ac_try;;
29697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29698 (eval "$ac_compile") 2>conftest.er1
29700 grep -v '^ *+' conftest.er1
>conftest.err
29702 cat conftest.err
>&5
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); } &&
29705 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29706 { (case "(($ac_try" in
29707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_try") 2>&5
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; } &&
29715 { ac_try='test -s conftest.$ac_objext'
29716 { (case "(($ac_try" in
29717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29718 *) ac_try_echo
=$ac_try;;
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_try") 2>&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
29725 ac_cv_header_sys_wait_h
=yes
29727 echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.
$ac_ext >&5
29730 ac_cv_header_sys_wait_h
=no
29733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29735 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29736 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29737 if test $ac_cv_header_sys_wait_h = yes; then
29739 cat >>confdefs.h
<<\_ACEOF
29740 #define HAVE_SYS_WAIT_H 1
29745 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29746 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29747 if test "${ac_cv_header_time+set}" = set; then
29748 echo $ECHO_N "(cached) $ECHO_C" >&6
29750 cat >conftest.
$ac_ext <<_ACEOF
29753 cat confdefs.h
>>conftest.
$ac_ext
29754 cat >>conftest.
$ac_ext <<_ACEOF
29755 /* end confdefs.h. */
29756 #include <sys/types.h>
29757 #include <sys/time.h>
29763 if ((struct tm *) 0)
29769 rm -f conftest.
$ac_objext
29770 if { (ac_try
="$ac_compile"
29771 case "(($ac_try" in
29772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29773 *) ac_try_echo=$ac_try;;
29775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29776 (eval "$ac_compile") 2>conftest.er1
29778 grep -v '^ *+' conftest.er1 >conftest.err
29780 cat conftest.err >&5
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 (exit $ac_status); } &&
29783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29784 { (case "(($ac_try" in
29785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29786 *) ac_try_echo
=$ac_try;;
29788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789 (eval "$ac_try") 2>&5
29791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); }; } &&
29793 { ac_try
='test -s conftest.$ac_objext'
29794 { (case "(($ac_try" in
29795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29796 *) ac_try_echo=$ac_try;;
29798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29799 (eval "$ac_try") 2>&5
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); }; }; then
29803 ac_cv_header_time=yes
29805 echo "$as_me: failed program was:" >&5
29806 sed 's/^/| /' conftest.$ac_ext >&5
29808 ac_cv_header_time=no
29811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29813 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29814 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29815 if test $ac_cv_header_time = yes; then
29817 cat >>confdefs.h <<\_ACEOF
29818 #define TIME_WITH_SYS_TIME 1
29830 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29832 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29837 echo $ECHO_N "(cached) $ECHO_C" >&6
29839 ac_res=`eval echo '${'$as_ac_Header'}'`
29840 { echo "$as_me:$LINENO: result: $ac_res" >&5
29841 echo "${ECHO_T}$ac_res" >&6; }
29843 # Is the header compilable?
29844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29846 cat >conftest.$ac_ext <<_ACEOF
29849 cat confdefs.h >>conftest.$ac_ext
29850 cat >>conftest.$ac_ext <<_ACEOF
29851 /* end confdefs.h. */
29852 $ac_includes_default
29853 #include <$ac_header>
29855 rm -f conftest.$ac_objext
29856 if { (ac_try="$ac_compile"
29857 case "(($ac_try" in
29858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29859 *) ac_try_echo
=$ac_try;;
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_compile") 2>conftest.er1
29864 grep -v '^ *+' conftest.er1
>conftest.err
29866 cat conftest.err
>&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } &&
29869 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29870 { (case "(($ac_try" in
29871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29872 *) ac_try_echo=$ac_try;;
29874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875 (eval "$ac_try") 2>&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; } &&
29879 { ac_try='test -s conftest.$ac_objext'
29880 { (case "(($ac_try" in
29881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29882 *) ac_try_echo
=$ac_try;;
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_try") 2>&5
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; }; then
29889 ac_header_compiler
=yes
29891 echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.
$ac_ext >&5
29894 ac_header_compiler
=no
29897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29899 echo "${ECHO_T}$ac_header_compiler" >&6; }
29901 # Is the header present?
29902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29904 cat >conftest.
$ac_ext <<_ACEOF
29907 cat confdefs.h
>>conftest.
$ac_ext
29908 cat >>conftest.
$ac_ext <<_ACEOF
29909 /* end confdefs.h. */
29910 #include <$ac_header>
29912 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29913 case "(($ac_try" in
29914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29915 *) ac_try_echo=$ac_try;;
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29920 grep -v '^ *+' conftest.er1 >conftest.err
29922 cat conftest.err >&5
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); } >/dev/null; then
29925 if test -s conftest.err; then
29926 ac_cpp_err=$ac_c_preproc_warn_flag
29927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29934 if test -z "$ac_cpp_err"; then
29935 ac_header_preproc=yes
29937 echo "$as_me: failed program was:" >&5
29938 sed 's/^/| /' conftest.$ac_ext >&5
29940 ac_header_preproc=no
29943 rm -f conftest.err conftest.$ac_ext
29944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29945 echo "${ECHO_T}$ac_header_preproc" >&6; }
29947 # So? What about this header?
29948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29954 ac_header_preproc=yes
29957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29970 ## ----------------------------------- ##
29971 ## Report this to llvmbugs@cs.uiuc.edu ##
29972 ## ----------------------------------- ##
29974 ) | sed "s/^/$as_me: WARNING: /" >&2
29977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29980 echo $ECHO_N "(cached) $ECHO_C" >&6
29982 eval "$as_ac_Header=\$ac_header_preproc"
29984 ac_res=`eval echo '${'$as_ac_Header'}'`
29985 { echo "$as_me:$LINENO: result: $ac_res" >&5
29986 echo "${ECHO_T}$ac_res" >&6; }
29989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29990 cat >>confdefs.h <<_ACEOF
29991 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30004 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30006 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30011 echo $ECHO_N "(cached) $ECHO_C" >&6
30013 ac_res=`eval echo '${'$as_ac_Header'}'`
30014 { echo "$as_me:$LINENO: result: $ac_res" >&5
30015 echo "${ECHO_T}$ac_res" >&6; }
30017 # Is the header compilable?
30018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30020 cat >conftest.$ac_ext <<_ACEOF
30023 cat confdefs.h >>conftest.$ac_ext
30024 cat >>conftest.$ac_ext <<_ACEOF
30025 /* end confdefs.h. */
30026 $ac_includes_default
30027 #include <$ac_header>
30029 rm -f conftest.$ac_objext
30030 if { (ac_try="$ac_compile"
30031 case "(($ac_try" in
30032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30033 *) ac_try_echo
=$ac_try;;
30035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30036 (eval "$ac_compile") 2>conftest.er1
30038 grep -v '^ *+' conftest.er1
>conftest.err
30040 cat conftest.err
>&5
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); } &&
30043 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30044 { (case "(($ac_try" in
30045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_try") 2>&5
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); }; } &&
30053 { ac_try='test -s conftest.$ac_objext'
30054 { (case "(($ac_try" in
30055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30056 *) ac_try_echo
=$ac_try;;
30058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059 (eval "$ac_try") 2>&5
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); }; }; then
30063 ac_header_compiler
=yes
30065 echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.
$ac_ext >&5
30068 ac_header_compiler
=no
30071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30073 echo "${ECHO_T}$ac_header_compiler" >&6; }
30075 # Is the header present?
30076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30078 cat >conftest.
$ac_ext <<_ACEOF
30081 cat confdefs.h
>>conftest.
$ac_ext
30082 cat >>conftest.
$ac_ext <<_ACEOF
30083 /* end confdefs.h. */
30084 #include <$ac_header>
30086 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30087 case "(($ac_try" in
30088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30089 *) ac_try_echo=$ac_try;;
30091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30094 grep -v '^ *+' conftest.er1 >conftest.err
30096 cat conftest.err >&5
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); } >/dev/null; then
30099 if test -s conftest.err; then
30100 ac_cpp_err=$ac_c_preproc_warn_flag
30101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30108 if test -z "$ac_cpp_err"; then
30109 ac_header_preproc=yes
30111 echo "$as_me: failed program was:" >&5
30112 sed 's/^/| /' conftest.$ac_ext >&5
30114 ac_header_preproc=no
30117 rm -f conftest.err conftest.$ac_ext
30118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30119 echo "${ECHO_T}$ac_header_preproc" >&6; }
30121 # So? What about this header?
30122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30128 ac_header_preproc=yes
30131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30144 ## ----------------------------------- ##
30145 ## Report this to llvmbugs@cs.uiuc.edu ##
30146 ## ----------------------------------- ##
30148 ) | sed "s/^/$as_me: WARNING: /" >&2
30151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30154 echo $ECHO_N "(cached) $ECHO_C" >&6
30156 eval "$as_ac_Header=\$ac_header_preproc"
30158 ac_res=`eval echo '${'$as_ac_Header'}'`
30159 { echo "$as_me:$LINENO: result: $ac_res" >&5
30160 echo "${ECHO_T}$ac_res" >&6; }
30163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30164 cat >>confdefs.h <<_ACEOF
30165 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30174 for ac_header in utime.h windows.h
30176 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30181 echo $ECHO_N "(cached) $ECHO_C" >&6
30183 ac_res=`eval echo '${'$as_ac_Header'}'`
30184 { echo "$as_me:$LINENO: result: $ac_res" >&5
30185 echo "${ECHO_T}$ac_res" >&6; }
30187 # Is the header compilable?
30188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30190 cat >conftest.$ac_ext <<_ACEOF
30193 cat confdefs.h >>conftest.$ac_ext
30194 cat >>conftest.$ac_ext <<_ACEOF
30195 /* end confdefs.h. */
30196 $ac_includes_default
30197 #include <$ac_header>
30199 rm -f conftest.$ac_objext
30200 if { (ac_try="$ac_compile"
30201 case "(($ac_try" in
30202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30203 *) ac_try_echo
=$ac_try;;
30205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206 (eval "$ac_compile") 2>conftest.er1
30208 grep -v '^ *+' conftest.er1
>conftest.err
30210 cat conftest.err
>&5
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); } &&
30213 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30214 { (case "(($ac_try" in
30215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30216 *) ac_try_echo=$ac_try;;
30218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30219 (eval "$ac_try") 2>&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; } &&
30223 { ac_try='test -s conftest.$ac_objext'
30224 { (case "(($ac_try" in
30225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30226 *) ac_try_echo
=$ac_try;;
30228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229 (eval "$ac_try") 2>&5
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); }; }; then
30233 ac_header_compiler
=yes
30235 echo "$as_me: failed program was:" >&5
30236 sed 's/^/| /' conftest.
$ac_ext >&5
30238 ac_header_compiler
=no
30241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30243 echo "${ECHO_T}$ac_header_compiler" >&6; }
30245 # Is the header present?
30246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30248 cat >conftest.
$ac_ext <<_ACEOF
30251 cat confdefs.h
>>conftest.
$ac_ext
30252 cat >>conftest.
$ac_ext <<_ACEOF
30253 /* end confdefs.h. */
30254 #include <$ac_header>
30256 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30257 case "(($ac_try" in
30258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30259 *) ac_try_echo=$ac_try;;
30261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30264 grep -v '^ *+' conftest.er1 >conftest.err
30266 cat conftest.err >&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); } >/dev/null; then
30269 if test -s conftest.err; then
30270 ac_cpp_err=$ac_c_preproc_warn_flag
30271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30278 if test -z "$ac_cpp_err"; then
30279 ac_header_preproc=yes
30281 echo "$as_me: failed program was:" >&5
30282 sed 's/^/| /' conftest.$ac_ext >&5
30284 ac_header_preproc=no
30287 rm -f conftest.err conftest.$ac_ext
30288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30289 echo "${ECHO_T}$ac_header_preproc" >&6; }
30291 # So? What about this header?
30292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30298 ac_header_preproc=yes
30301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30314 ## ----------------------------------- ##
30315 ## Report this to llvmbugs@cs.uiuc.edu ##
30316 ## ----------------------------------- ##
30318 ) | sed "s/^/$as_me: WARNING: /" >&2
30321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30324 echo $ECHO_N "(cached) $ECHO_C" >&6
30326 eval "$as_ac_Header=\$ac_header_preproc"
30328 ac_res=`eval echo '${'$as_ac_Header'}'`
30329 { echo "$as_me:$LINENO: result: $ac_res" >&5
30330 echo "${ECHO_T}$ac_res" >&6; }
30333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30334 cat >>confdefs.h <<_ACEOF
30335 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30346 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30348 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30353 echo $ECHO_N "(cached) $ECHO_C" >&6
30355 ac_res=`eval echo '${'$as_ac_Header'}'`
30356 { echo "$as_me:$LINENO: result: $ac_res" >&5
30357 echo "${ECHO_T}$ac_res" >&6; }
30359 # Is the header compilable?
30360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30362 cat >conftest.$ac_ext <<_ACEOF
30365 cat confdefs.h >>conftest.$ac_ext
30366 cat >>conftest.$ac_ext <<_ACEOF
30367 /* end confdefs.h. */
30368 $ac_includes_default
30369 #include <$ac_header>
30371 rm -f conftest.$ac_objext
30372 if { (ac_try="$ac_compile"
30373 case "(($ac_try" in
30374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30375 *) ac_try_echo
=$ac_try;;
30377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30378 (eval "$ac_compile") 2>conftest.er1
30380 grep -v '^ *+' conftest.er1
>conftest.err
30382 cat conftest.err
>&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); } &&
30385 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30386 { (case "(($ac_try" in
30387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30388 *) ac_try_echo=$ac_try;;
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391 (eval "$ac_try") 2>&5
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; } &&
30395 { ac_try='test -s conftest.$ac_objext'
30396 { (case "(($ac_try" in
30397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30398 *) ac_try_echo
=$ac_try;;
30400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30401 (eval "$ac_try") 2>&5
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); }; }; then
30405 ac_header_compiler
=yes
30407 echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.
$ac_ext >&5
30410 ac_header_compiler
=no
30413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30415 echo "${ECHO_T}$ac_header_compiler" >&6; }
30417 # Is the header present?
30418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30420 cat >conftest.
$ac_ext <<_ACEOF
30423 cat confdefs.h
>>conftest.
$ac_ext
30424 cat >>conftest.
$ac_ext <<_ACEOF
30425 /* end confdefs.h. */
30426 #include <$ac_header>
30428 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30429 case "(($ac_try" in
30430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30436 grep -v '^ *+' conftest.er1 >conftest.err
30438 cat conftest.err >&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); } >/dev/null; then
30441 if test -s conftest.err; then
30442 ac_cpp_err=$ac_c_preproc_warn_flag
30443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30450 if test -z "$ac_cpp_err"; then
30451 ac_header_preproc=yes
30453 echo "$as_me: failed program was:" >&5
30454 sed 's/^/| /' conftest.$ac_ext >&5
30456 ac_header_preproc=no
30459 rm -f conftest.err conftest.$ac_ext
30460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30461 echo "${ECHO_T}$ac_header_preproc" >&6; }
30463 # So? What about this header?
30464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30470 ac_header_preproc=yes
30473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30486 ## ----------------------------------- ##
30487 ## Report this to llvmbugs@cs.uiuc.edu ##
30488 ## ----------------------------------- ##
30490 ) | sed "s/^/$as_me: WARNING: /" >&2
30493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30496 echo $ECHO_N "(cached) $ECHO_C" >&6
30498 eval "$as_ac_Header=\$ac_header_preproc"
30500 ac_res=`eval echo '${'$as_ac_Header'}'`
30501 { echo "$as_me:$LINENO: result: $ac_res" >&5
30502 echo "${ECHO_T}$ac_res" >&6; }
30505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30506 cat >>confdefs.h <<_ACEOF
30507 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30518 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30520 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30525 echo $ECHO_N "(cached) $ECHO_C" >&6
30527 ac_res=`eval echo '${'$as_ac_Header'}'`
30528 { echo "$as_me:$LINENO: result: $ac_res" >&5
30529 echo "${ECHO_T}$ac_res" >&6; }
30531 # Is the header compilable?
30532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30534 cat >conftest.$ac_ext <<_ACEOF
30537 cat confdefs.h >>conftest.$ac_ext
30538 cat >>conftest.$ac_ext <<_ACEOF
30539 /* end confdefs.h. */
30540 $ac_includes_default
30541 #include <$ac_header>
30543 rm -f conftest.$ac_objext
30544 if { (ac_try="$ac_compile"
30545 case "(($ac_try" in
30546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30547 *) ac_try_echo
=$ac_try;;
30549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30550 (eval "$ac_compile") 2>conftest.er1
30552 grep -v '^ *+' conftest.er1
>conftest.err
30554 cat conftest.err
>&5
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); } &&
30557 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30558 { (case "(($ac_try" in
30559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30560 *) ac_try_echo=$ac_try;;
30562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30563 (eval "$ac_try") 2>&5
30565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); }; } &&
30567 { ac_try='test -s conftest.$ac_objext'
30568 { (case "(($ac_try" in
30569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30570 *) ac_try_echo
=$ac_try;;
30572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30573 (eval "$ac_try") 2>&5
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); }; }; then
30577 ac_header_compiler
=yes
30579 echo "$as_me: failed program was:" >&5
30580 sed 's/^/| /' conftest.
$ac_ext >&5
30582 ac_header_compiler
=no
30585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30587 echo "${ECHO_T}$ac_header_compiler" >&6; }
30589 # Is the header present?
30590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30592 cat >conftest.
$ac_ext <<_ACEOF
30595 cat confdefs.h
>>conftest.
$ac_ext
30596 cat >>conftest.
$ac_ext <<_ACEOF
30597 /* end confdefs.h. */
30598 #include <$ac_header>
30600 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30601 case "(($ac_try" in
30602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30603 *) ac_try_echo=$ac_try;;
30605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30608 grep -v '^ *+' conftest.er1 >conftest.err
30610 cat conftest.err >&5
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); } >/dev/null; then
30613 if test -s conftest.err; then
30614 ac_cpp_err=$ac_c_preproc_warn_flag
30615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30622 if test -z "$ac_cpp_err"; then
30623 ac_header_preproc=yes
30625 echo "$as_me: failed program was:" >&5
30626 sed 's/^/| /' conftest.$ac_ext >&5
30628 ac_header_preproc=no
30631 rm -f conftest.err conftest.$ac_ext
30632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30633 echo "${ECHO_T}$ac_header_preproc" >&6; }
30635 # So? What about this header?
30636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30642 ac_header_preproc=yes
30645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30658 ## ----------------------------------- ##
30659 ## Report this to llvmbugs@cs.uiuc.edu ##
30660 ## ----------------------------------- ##
30662 ) | sed "s/^/$as_me: WARNING: /" >&2
30665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30668 echo $ECHO_N "(cached) $ECHO_C" >&6
30670 eval "$as_ac_Header=\$ac_header_preproc"
30672 ac_res=`eval echo '${'$as_ac_Header'}'`
30673 { echo "$as_me:$LINENO: result: $ac_res" >&5
30674 echo "${ECHO_T}$ac_res" >&6; }
30677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30678 cat >>confdefs.h <<_ACEOF
30679 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30686 if test "$ENABLE_THREADS" -eq 1 ; then
30688 for ac_header in pthread.h
30690 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30695 echo $ECHO_N "(cached) $ECHO_C" >&6
30697 ac_res=`eval echo '${'$as_ac_Header'}'`
30698 { echo "$as_me:$LINENO: result: $ac_res" >&5
30699 echo "${ECHO_T}$ac_res" >&6; }
30701 # Is the header compilable?
30702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30704 cat >conftest.$ac_ext <<_ACEOF
30707 cat confdefs.h >>conftest.$ac_ext
30708 cat >>conftest.$ac_ext <<_ACEOF
30709 /* end confdefs.h. */
30710 $ac_includes_default
30711 #include <$ac_header>
30713 rm -f conftest.$ac_objext
30714 if { (ac_try="$ac_compile"
30715 case "(($ac_try" in
30716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30717 *) ac_try_echo
=$ac_try;;
30719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720 (eval "$ac_compile") 2>conftest.er1
30722 grep -v '^ *+' conftest.er1
>conftest.err
30724 cat conftest.err
>&5
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); } &&
30727 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30728 { (case "(($ac_try" in
30729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30730 *) ac_try_echo=$ac_try;;
30732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30733 (eval "$ac_try") 2>&5
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); }; } &&
30737 { ac_try='test -s conftest.$ac_objext'
30738 { (case "(($ac_try" in
30739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30740 *) ac_try_echo
=$ac_try;;
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743 (eval "$ac_try") 2>&5
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; }; then
30747 ac_header_compiler
=yes
30749 echo "$as_me: failed program was:" >&5
30750 sed 's/^/| /' conftest.
$ac_ext >&5
30752 ac_header_compiler
=no
30755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30757 echo "${ECHO_T}$ac_header_compiler" >&6; }
30759 # Is the header present?
30760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30762 cat >conftest.
$ac_ext <<_ACEOF
30765 cat confdefs.h
>>conftest.
$ac_ext
30766 cat >>conftest.
$ac_ext <<_ACEOF
30767 /* end confdefs.h. */
30768 #include <$ac_header>
30770 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30771 case "(($ac_try" in
30772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30773 *) ac_try_echo=$ac_try;;
30775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30778 grep -v '^ *+' conftest.er1 >conftest.err
30780 cat conftest.err >&5
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); } >/dev/null; then
30783 if test -s conftest.err; then
30784 ac_cpp_err=$ac_c_preproc_warn_flag
30785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30792 if test -z "$ac_cpp_err"; then
30793 ac_header_preproc=yes
30795 echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30798 ac_header_preproc=no
30801 rm -f conftest.err conftest.$ac_ext
30802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30803 echo "${ECHO_T}$ac_header_preproc" >&6; }
30805 # So? What about this header?
30806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30812 ac_header_preproc=yes
30815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30828 ## ----------------------------------- ##
30829 ## Report this to llvmbugs@cs.uiuc.edu ##
30830 ## ----------------------------------- ##
30832 ) | sed "s/^/$as_me: WARNING: /" >&2
30835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30838 echo $ECHO_N "(cached) $ECHO_C" >&6
30840 eval "$as_ac_Header=\$ac_header_preproc"
30842 ac_res=`eval echo '${'$as_ac_Header'}'`
30843 { echo "$as_me:$LINENO: result: $ac_res" >&5
30844 echo "${ECHO_T}$ac_res" >&6; }
30847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30848 cat >>confdefs.h <<_ACEOF
30849 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30865 if test "$llvm_cv_enable_libffi" = "yes" ; then
30868 for ac_header in ffi.h ffi/ffi.h
30870 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30877 ac_res=`eval echo '${'$as_ac_Header'}'`
30878 { echo "$as_me:$LINENO: result: $ac_res" >&5
30879 echo "${ECHO_T}$ac_res" >&6; }
30881 # Is the header compilable?
30882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30884 cat >conftest.$ac_ext <<_ACEOF
30887 cat confdefs.h >>conftest.$ac_ext
30888 cat >>conftest.$ac_ext <<_ACEOF
30889 /* end confdefs.h. */
30890 $ac_includes_default
30891 #include <$ac_header>
30893 rm -f conftest.$ac_objext
30894 if { (ac_try="$ac_compile"
30895 case "(($ac_try" in
30896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30897 *) ac_try_echo
=$ac_try;;
30899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30900 (eval "$ac_compile") 2>conftest.er1
30902 grep -v '^ *+' conftest.er1
>conftest.err
30904 cat conftest.err
>&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); } &&
30907 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30908 { (case "(($ac_try" in
30909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30910 *) ac_try_echo=$ac_try;;
30912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30913 (eval "$ac_try") 2>&5
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; } &&
30917 { ac_try='test -s conftest.$ac_objext'
30918 { (case "(($ac_try" in
30919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30920 *) ac_try_echo
=$ac_try;;
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923 (eval "$ac_try") 2>&5
30925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); }; }; then
30927 ac_header_compiler
=yes
30929 echo "$as_me: failed program was:" >&5
30930 sed 's/^/| /' conftest.
$ac_ext >&5
30932 ac_header_compiler
=no
30935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30937 echo "${ECHO_T}$ac_header_compiler" >&6; }
30939 # Is the header present?
30940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30942 cat >conftest.
$ac_ext <<_ACEOF
30945 cat confdefs.h
>>conftest.
$ac_ext
30946 cat >>conftest.
$ac_ext <<_ACEOF
30947 /* end confdefs.h. */
30948 #include <$ac_header>
30950 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30951 case "(($ac_try" in
30952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30958 grep -v '^ *+' conftest.er1 >conftest.err
30960 cat conftest.err >&5
30961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962 (exit $ac_status); } >/dev/null; then
30963 if test -s conftest.err; then
30964 ac_cpp_err=$ac_c_preproc_warn_flag
30965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30972 if test -z "$ac_cpp_err"; then
30973 ac_header_preproc=yes
30975 echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30978 ac_header_preproc=no
30981 rm -f conftest.err conftest.$ac_ext
30982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30983 echo "${ECHO_T}$ac_header_preproc" >&6; }
30985 # So? What about this header?
30986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30992 ac_header_preproc=yes
30995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31008 ## ----------------------------------- ##
31009 ## Report this to llvmbugs@cs.uiuc.edu ##
31010 ## ----------------------------------- ##
31012 ) | sed "s/^/$as_me: WARNING: /" >&2
31015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31018 echo $ECHO_N "(cached) $ECHO_C" >&6
31020 eval "$as_ac_Header=\$ac_header_preproc"
31022 ac_res=`eval echo '${'$as_ac_Header'}'`
31023 { echo "$as_me:$LINENO: result: $ac_res" >&5
31024 echo "${ECHO_T}$ac_res" >&6; }
31027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31028 cat >>confdefs.h <<_ACEOF
31029 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
31040 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31041 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31042 if test "${ac_cv_huge_val_sanity+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31047 ac_cpp='$CXXCPP $CPPFLAGS'
31048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31053 if test "$cross_compiling" = yes; then
31054 ac_cv_huge_val_sanity=yes
31056 cat >conftest.$ac_ext <<_ACEOF
31059 cat confdefs.h >>conftest.$ac_ext
31060 cat >>conftest.$ac_ext <<_ACEOF
31061 /* end confdefs.h. */
31066 double x = HUGE_VAL; return x != x;
31071 rm -f conftest$ac_exeext
31072 if { (ac_try="$ac_link"
31073 case "(($ac_try" in
31074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31075 *) ac_try_echo
=$ac_try;;
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078 (eval "$ac_link") 2>&5
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31082 { (case "(($ac_try" in
31083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31084 *) ac_try_echo=$ac_try;;
31086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087 (eval "$ac_try") 2>&5
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); }; }; then
31091 ac_cv_huge_val_sanity=yes
31093 echo "$as_me: program exited with status $ac_status" >&5
31094 echo "$as_me: failed program was:" >&5
31095 sed 's/^/| /' conftest.$ac_ext >&5
31097 ( exit $ac_status )
31098 ac_cv_huge_val_sanity=no
31100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31105 ac_cpp='$CPP $CPPFLAGS'
31106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31112 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31113 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31114 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31117 { echo "$as_me:$LINENO: checking for pid_t" >&5
31118 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31119 if test "${ac_cv_type_pid_t+set}" = set; then
31120 echo $ECHO_N "(cached) $ECHO_C" >&6
31122 cat >conftest.$ac_ext <<_ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h. */
31128 $ac_includes_default
31129 typedef pid_t ac__type_new_;
31133 if ((ac__type_new_ *) 0)
31135 if (sizeof (ac__type_new_))
31141 rm -f conftest.$ac_objext
31142 if { (ac_try="$ac_compile"
31143 case "(($ac_try" in
31144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31145 *) ac_try_echo
=$ac_try;;
31147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148 (eval "$ac_compile") 2>conftest.er1
31150 grep -v '^ *+' conftest.er1
>conftest.err
31152 cat conftest.err
>&5
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); } &&
31155 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31156 { (case "(($ac_try" in
31157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31158 *) ac_try_echo=$ac_try;;
31160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161 (eval "$ac_try") 2>&5
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); }; } &&
31165 { ac_try='test -s conftest.$ac_objext'
31166 { (case "(($ac_try" in
31167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31168 *) ac_try_echo
=$ac_try;;
31170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171 (eval "$ac_try") 2>&5
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; }; then
31175 ac_cv_type_pid_t
=yes
31177 echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.
$ac_ext >&5
31180 ac_cv_type_pid_t
=no
31183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31185 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31186 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31187 if test $ac_cv_type_pid_t = yes; then
31191 cat >>confdefs.h
<<_ACEOF
31197 { echo "$as_me:$LINENO: checking for size_t" >&5
31198 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31199 if test "${ac_cv_type_size_t+set}" = set; then
31200 echo $ECHO_N "(cached) $ECHO_C" >&6
31202 cat >conftest.
$ac_ext <<_ACEOF
31205 cat confdefs.h
>>conftest.
$ac_ext
31206 cat >>conftest.
$ac_ext <<_ACEOF
31207 /* end confdefs.h. */
31208 $ac_includes_default
31209 typedef size_t ac__type_new_;
31213 if ((ac__type_new_ *) 0)
31215 if (sizeof (ac__type_new_))
31221 rm -f conftest.
$ac_objext
31222 if { (ac_try
="$ac_compile"
31223 case "(($ac_try" in
31224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_compile") 2>conftest.er1
31230 grep -v '^ *+' conftest.er1 >conftest.err
31232 cat conftest.err >&5
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); } &&
31235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31236 { (case "(($ac_try" in
31237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31238 *) ac_try_echo
=$ac_try;;
31240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31241 (eval "$ac_try") 2>&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; } &&
31245 { ac_try
='test -s conftest.$ac_objext'
31246 { (case "(($ac_try" in
31247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31248 *) ac_try_echo=$ac_try;;
31250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31251 (eval "$ac_try") 2>&5
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); }; }; then
31255 ac_cv_type_size_t=yes
31257 echo "$as_me: failed program was:" >&5
31258 sed 's/^/| /' conftest.$ac_ext >&5
31260 ac_cv_type_size_t=no
31263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31265 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31266 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31267 if test $ac_cv_type_size_t = yes; then
31271 cat >>confdefs.h <<_ACEOF
31272 #define size_t unsigned int
31277 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31278 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31279 if test "${ac_cv_type_signal+set}" = set; then
31280 echo $ECHO_N "(cached) $ECHO_C" >&6
31282 cat >conftest.$ac_ext <<_ACEOF
31285 cat confdefs.h >>conftest.$ac_ext
31286 cat >>conftest.$ac_ext <<_ACEOF
31287 /* end confdefs.h. */
31288 #include <sys/types.h>
31289 #include <signal.h>
31294 return *(signal (0, 0)) (0) == 1;
31299 rm -f conftest.$ac_objext
31300 if { (ac_try="$ac_compile"
31301 case "(($ac_try" in
31302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31303 *) ac_try_echo
=$ac_try;;
31305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306 (eval "$ac_compile") 2>conftest.er1
31308 grep -v '^ *+' conftest.er1
>conftest.err
31310 cat conftest.err
>&5
31311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312 (exit $ac_status); } &&
31313 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31314 { (case "(($ac_try" in
31315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31316 *) ac_try_echo=$ac_try;;
31318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31319 (eval "$ac_try") 2>&5
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); }; } &&
31323 { ac_try='test -s conftest.$ac_objext'
31324 { (case "(($ac_try" in
31325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31326 *) ac_try_echo
=$ac_try;;
31328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31329 (eval "$ac_try") 2>&5
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); }; }; then
31333 ac_cv_type_signal
=int
31335 echo "$as_me: failed program was:" >&5
31336 sed 's/^/| /' conftest.
$ac_ext >&5
31338 ac_cv_type_signal
=void
31341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31343 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31344 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31346 cat >>confdefs.h
<<_ACEOF
31347 #define RETSIGTYPE $ac_cv_type_signal
31351 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31352 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31353 if test "${ac_cv_struct_tm+set}" = set; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31356 cat >conftest.
$ac_ext <<_ACEOF
31359 cat confdefs.h
>>conftest.
$ac_ext
31360 cat >>conftest.
$ac_ext <<_ACEOF
31361 /* end confdefs.h. */
31362 #include <sys/types.h>
31368 struct tm *tp; tp->tm_sec;
31373 rm -f conftest.
$ac_objext
31374 if { (ac_try
="$ac_compile"
31375 case "(($ac_try" in
31376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31377 *) ac_try_echo=$ac_try;;
31379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31380 (eval "$ac_compile") 2>conftest.er1
31382 grep -v '^ *+' conftest.er1 >conftest.err
31384 cat conftest.err >&5
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); } &&
31387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31388 { (case "(($ac_try" in
31389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31390 *) ac_try_echo
=$ac_try;;
31392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393 (eval "$ac_try") 2>&5
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); }; } &&
31397 { ac_try
='test -s conftest.$ac_objext'
31398 { (case "(($ac_try" in
31399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31400 *) ac_try_echo=$ac_try;;
31402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31403 (eval "$ac_try") 2>&5
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; }; then
31407 ac_cv_struct_tm=time.h
31409 echo "$as_me: failed program was:" >&5
31410 sed 's/^/| /' conftest.$ac_ext >&5
31412 ac_cv_struct_tm=sys/time.h
31415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31417 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31418 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31419 if test $ac_cv_struct_tm = sys/time.h; then
31421 cat >>confdefs.h <<\_ACEOF
31422 #define TM_IN_SYS_TIME 1
31427 { echo "$as_me:$LINENO: checking for int64_t" >&5
31428 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31429 if test "${ac_cv_type_int64_t+set}" = set; then
31430 echo $ECHO_N "(cached) $ECHO_C" >&6
31432 cat >conftest.$ac_ext <<_ACEOF
31435 cat confdefs.h >>conftest.$ac_ext
31436 cat >>conftest.$ac_ext <<_ACEOF
31437 /* end confdefs.h. */
31438 $ac_includes_default
31439 typedef int64_t ac__type_new_;
31443 if ((ac__type_new_ *) 0)
31445 if (sizeof (ac__type_new_))
31451 rm -f conftest.$ac_objext
31452 if { (ac_try="$ac_compile"
31453 case "(($ac_try" in
31454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31455 *) ac_try_echo
=$ac_try;;
31457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458 (eval "$ac_compile") 2>conftest.er1
31460 grep -v '^ *+' conftest.er1
>conftest.err
31462 cat conftest.err
>&5
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); } &&
31465 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31466 { (case "(($ac_try" in
31467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31468 *) ac_try_echo=$ac_try;;
31470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31471 (eval "$ac_try") 2>&5
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); }; } &&
31475 { ac_try='test -s conftest.$ac_objext'
31476 { (case "(($ac_try" in
31477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31478 *) ac_try_echo
=$ac_try;;
31480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31481 (eval "$ac_try") 2>&5
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); }; }; then
31485 ac_cv_type_int64_t
=yes
31487 echo "$as_me: failed program was:" >&5
31488 sed 's/^/| /' conftest.
$ac_ext >&5
31490 ac_cv_type_int64_t
=no
31493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31495 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31496 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31497 if test $ac_cv_type_int64_t = yes; then
31499 cat >>confdefs.h
<<_ACEOF
31500 #define HAVE_INT64_T 1
31505 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31506 echo "$as_me: error: Type int64_t required but not found" >&2;}
31507 { (exit 1); exit 1; }; }
31510 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31511 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31512 if test "${ac_cv_type_uint64_t+set}" = set; then
31513 echo $ECHO_N "(cached) $ECHO_C" >&6
31515 cat >conftest.
$ac_ext <<_ACEOF
31518 cat confdefs.h
>>conftest.
$ac_ext
31519 cat >>conftest.
$ac_ext <<_ACEOF
31520 /* end confdefs.h. */
31521 $ac_includes_default
31522 typedef uint64_t ac__type_new_;
31526 if ((ac__type_new_ *) 0)
31528 if (sizeof (ac__type_new_))
31534 rm -f conftest.
$ac_objext
31535 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
31543 grep -v '^ *+' conftest.er1 >conftest.err
31545 cat conftest.err >&5
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } &&
31548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31549 { (case "(($ac_try" in
31550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31551 *) ac_try_echo
=$ac_try;;
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_try") 2>&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); }; } &&
31558 { ac_try
='test -s conftest.$ac_objext'
31559 { (case "(($ac_try" in
31560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_try") 2>&5
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; }; then
31568 ac_cv_type_uint64_t=yes
31570 echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31573 ac_cv_type_uint64_t=no
31576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31578 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31579 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31580 if test $ac_cv_type_uint64_t = yes; then
31582 cat >>confdefs.h <<_ACEOF
31583 #define HAVE_UINT64_T 1
31588 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31589 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31590 if test "${ac_cv_type_u_int64_t+set}" = set; then
31591 echo $ECHO_N "(cached) $ECHO_C" >&6
31593 cat >conftest.$ac_ext <<_ACEOF
31596 cat confdefs.h >>conftest.$ac_ext
31597 cat >>conftest.$ac_ext <<_ACEOF
31598 /* end confdefs.h. */
31599 $ac_includes_default
31600 typedef u_int64_t ac__type_new_;
31604 if ((ac__type_new_ *) 0)
31606 if (sizeof (ac__type_new_))
31612 rm -f conftest.$ac_objext
31613 if { (ac_try="$ac_compile"
31614 case "(($ac_try" in
31615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31616 *) ac_try_echo
=$ac_try;;
31618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619 (eval "$ac_compile") 2>conftest.er1
31621 grep -v '^ *+' conftest.er1
>conftest.err
31623 cat conftest.err
>&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } &&
31626 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31627 { (case "(($ac_try" in
31628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31629 *) ac_try_echo=$ac_try;;
31631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632 (eval "$ac_try") 2>&5
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); }; } &&
31636 { ac_try='test -s conftest.$ac_objext'
31637 { (case "(($ac_try" in
31638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31639 *) ac_try_echo
=$ac_try;;
31641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31642 (eval "$ac_try") 2>&5
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); }; }; then
31646 ac_cv_type_u_int64_t
=yes
31648 echo "$as_me: failed program was:" >&5
31649 sed 's/^/| /' conftest.
$ac_ext >&5
31651 ac_cv_type_u_int64_t
=no
31654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31656 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31657 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31658 if test $ac_cv_type_u_int64_t = yes; then
31660 cat >>confdefs.h
<<_ACEOF
31661 #define HAVE_U_INT64_T 1
31666 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31667 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31668 { (exit 1); exit 1; }; }
31682 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31684 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31687 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31688 echo $ECHO_N "(cached) $ECHO_C" >&6
31690 cat >conftest.
$ac_ext <<_ACEOF
31693 cat confdefs.h
>>conftest.
$ac_ext
31694 cat >>conftest.
$ac_ext <<_ACEOF
31695 /* end confdefs.h. */
31696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31698 #define $ac_func innocuous_$ac_func
31700 /* System header to define __stub macros and hopefully few prototypes,
31701 which can conflict with char $ac_func (); below.
31702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31703 <limits.h> exists even on freestanding compilers. */
31706 # include <limits.h>
31708 # include <assert.h>
31713 /* Override any GCC internal prototype to avoid an error.
31714 Use char because int might match the return type of a GCC
31715 builtin and then its argument prototype would still apply. */
31720 /* The GNU C library defines this for functions which it implements
31721 to always fail with ENOSYS. Some functions are actually named
31722 something starting with __ and the normal name is an alias. */
31723 #if defined __stub_$ac_func || defined __stub___$ac_func
31730 return $ac_func ();
31735 rm -f conftest.
$ac_objext conftest
$ac_exeext
31736 if { (ac_try
="$ac_link"
31737 case "(($ac_try" in
31738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31739 *) ac_try_echo=$ac_try;;
31741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31742 (eval "$ac_link") 2>conftest.er1
31744 grep -v '^ *+' conftest.er1 >conftest.err
31746 cat conftest.err >&5
31747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748 (exit $ac_status); } &&
31749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31750 { (case "(($ac_try" in
31751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31752 *) ac_try_echo
=$ac_try;;
31754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755 (eval "$ac_try") 2>&5
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); }; } &&
31759 { ac_try
='test -s conftest$ac_exeext'
31760 { (case "(($ac_try" in
31761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31762 *) ac_try_echo=$ac_try;;
31764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765 (eval "$ac_try") 2>&5
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); }; }; then
31769 eval "$as_ac_var=yes"
31771 echo "$as_me: failed program was:" >&5
31772 sed 's/^/| /' conftest.$ac_ext >&5
31774 eval "$as_ac_var=no"
31777 rm -f core conftest.err conftest.$ac_objext \
31778 conftest$ac_exeext conftest.$ac_ext
31780 ac_res=`eval echo '${'$as_ac_var'}'`
31781 { echo "$as_me:$LINENO: result: $ac_res" >&5
31782 echo "${ECHO_T}$ac_res" >&6; }
31783 if test `eval echo '${'$as_ac_var'}'` = yes; then
31784 cat >>confdefs.h <<_ACEOF
31785 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31795 for ac_func in powf fmodf strtof round
31797 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31801 echo $ECHO_N "(cached) $ECHO_C" >&6
31803 cat >conftest.$ac_ext <<_ACEOF
31806 cat confdefs.h >>conftest.$ac_ext
31807 cat >>conftest.$ac_ext <<_ACEOF
31808 /* end confdefs.h. */
31809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31811 #define $ac_func innocuous_$ac_func
31813 /* System header to define __stub macros and hopefully few prototypes,
31814 which can conflict with char $ac_func (); below.
31815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31816 <limits.h> exists even on freestanding compilers. */
31819 # include <limits.h>
31821 # include <assert.h>
31826 /* Override any GCC internal prototype to avoid an error.
31827 Use char because int might match the return type of a GCC
31828 builtin and then its argument prototype would still apply. */
31833 /* The GNU C library defines this for functions which it implements
31834 to always fail with ENOSYS. Some functions are actually named
31835 something starting with __ and the normal name is an alias. */
31836 #if defined __stub_$ac_func || defined __stub___$ac_func
31843 return $ac_func ();
31848 rm -f conftest.$ac_objext conftest$ac_exeext
31849 if { (ac_try="$ac_link"
31850 case "(($ac_try" in
31851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31852 *) ac_try_echo
=$ac_try;;
31854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31855 (eval "$ac_link") 2>conftest.er1
31857 grep -v '^ *+' conftest.er1
>conftest.err
31859 cat conftest.err
>&5
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); } &&
31862 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31863 { (case "(($ac_try" in
31864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31865 *) ac_try_echo=$ac_try;;
31867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31868 (eval "$ac_try") 2>&5
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; } &&
31872 { ac_try='test -s conftest$ac_exeext'
31873 { (case "(($ac_try" in
31874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31875 *) ac_try_echo
=$ac_try;;
31877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878 (eval "$ac_try") 2>&5
31880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881 (exit $ac_status); }; }; then
31882 eval "$as_ac_var=yes"
31884 echo "$as_me: failed program was:" >&5
31885 sed 's/^/| /' conftest.
$ac_ext >&5
31887 eval "$as_ac_var=no"
31890 rm -f core conftest.err conftest.
$ac_objext \
31891 conftest
$ac_exeext conftest.
$ac_ext
31893 ac_res
=`eval echo '${'$as_ac_var'}'`
31894 { echo "$as_me:$LINENO: result: $ac_res" >&5
31895 echo "${ECHO_T}$ac_res" >&6; }
31896 if test `eval echo '${'$as_ac_var'}'` = yes; then
31897 cat >>confdefs.h
<<_ACEOF
31898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31909 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
31911 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31914 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31915 echo $ECHO_N "(cached) $ECHO_C" >&6
31917 cat >conftest.
$ac_ext <<_ACEOF
31920 cat confdefs.h
>>conftest.
$ac_ext
31921 cat >>conftest.
$ac_ext <<_ACEOF
31922 /* end confdefs.h. */
31923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31925 #define $ac_func innocuous_$ac_func
31927 /* System header to define __stub macros and hopefully few prototypes,
31928 which can conflict with char $ac_func (); below.
31929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31930 <limits.h> exists even on freestanding compilers. */
31933 # include <limits.h>
31935 # include <assert.h>
31940 /* Override any GCC internal prototype to avoid an error.
31941 Use char because int might match the return type of a GCC
31942 builtin and then its argument prototype would still apply. */
31947 /* The GNU C library defines this for functions which it implements
31948 to always fail with ENOSYS. Some functions are actually named
31949 something starting with __ and the normal name is an alias. */
31950 #if defined __stub_$ac_func || defined __stub___$ac_func
31957 return $ac_func ();
31962 rm -f conftest.
$ac_objext conftest
$ac_exeext
31963 if { (ac_try
="$ac_link"
31964 case "(($ac_try" in
31965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31966 *) ac_try_echo=$ac_try;;
31968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31969 (eval "$ac_link") 2>conftest.er1
31971 grep -v '^ *+' conftest.er1 >conftest.err
31973 cat conftest.err >&5
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975 (exit $ac_status); } &&
31976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31977 { (case "(($ac_try" in
31978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31979 *) ac_try_echo
=$ac_try;;
31981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31982 (eval "$ac_try") 2>&5
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); }; } &&
31986 { ac_try
='test -s conftest$ac_exeext'
31987 { (case "(($ac_try" in
31988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31989 *) ac_try_echo=$ac_try;;
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992 (eval "$ac_try") 2>&5
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); }; }; then
31996 eval "$as_ac_var=yes"
31998 echo "$as_me: failed program was:" >&5
31999 sed 's/^/| /' conftest.$ac_ext >&5
32001 eval "$as_ac_var=no"
32004 rm -f core conftest.err conftest.$ac_objext \
32005 conftest$ac_exeext conftest.$ac_ext
32007 ac_res=`eval echo '${'$as_ac_var'}'`
32008 { echo "$as_me:$LINENO: result: $ac_res" >&5
32009 echo "${ECHO_T}$ac_res" >&6; }
32010 if test `eval echo '${'$as_ac_var'}'` = yes; then
32011 cat >>confdefs.h <<_ACEOF
32012 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32021 for ac_func in isatty mkdtemp mkstemp
32023 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32027 echo $ECHO_N "(cached) $ECHO_C" >&6
32029 cat >conftest.$ac_ext <<_ACEOF
32032 cat confdefs.h >>conftest.$ac_ext
32033 cat >>conftest.$ac_ext <<_ACEOF
32034 /* end confdefs.h. */
32035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32037 #define $ac_func innocuous_$ac_func
32039 /* System header to define __stub macros and hopefully few prototypes,
32040 which can conflict with char $ac_func (); below.
32041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32042 <limits.h> exists even on freestanding compilers. */
32045 # include <limits.h>
32047 # include <assert.h>
32052 /* Override any GCC internal prototype to avoid an error.
32053 Use char because int might match the return type of a GCC
32054 builtin and then its argument prototype would still apply. */
32059 /* The GNU C library defines this for functions which it implements
32060 to always fail with ENOSYS. Some functions are actually named
32061 something starting with __ and the normal name is an alias. */
32062 #if defined __stub_$ac_func || defined __stub___$ac_func
32069 return $ac_func ();
32074 rm -f conftest.$ac_objext conftest$ac_exeext
32075 if { (ac_try="$ac_link"
32076 case "(($ac_try" in
32077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32078 *) ac_try_echo
=$ac_try;;
32080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081 (eval "$ac_link") 2>conftest.er1
32083 grep -v '^ *+' conftest.er1
>conftest.err
32085 cat conftest.err
>&5
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087 (exit $ac_status); } &&
32088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32089 { (case "(($ac_try" in
32090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_try") 2>&5
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); }; } &&
32098 { ac_try='test -s conftest$ac_exeext'
32099 { (case "(($ac_try" in
32100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32101 *) ac_try_echo
=$ac_try;;
32103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32104 (eval "$ac_try") 2>&5
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); }; }; then
32108 eval "$as_ac_var=yes"
32110 echo "$as_me: failed program was:" >&5
32111 sed 's/^/| /' conftest.
$ac_ext >&5
32113 eval "$as_ac_var=no"
32116 rm -f core conftest.err conftest.
$ac_objext \
32117 conftest
$ac_exeext conftest.
$ac_ext
32119 ac_res
=`eval echo '${'$as_ac_var'}'`
32120 { echo "$as_me:$LINENO: result: $ac_res" >&5
32121 echo "${ECHO_T}$ac_res" >&6; }
32122 if test `eval echo '${'$as_ac_var'}'` = yes; then
32123 cat >>confdefs.h
<<_ACEOF
32124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32135 for ac_func
in mktemp realpath sbrk setrlimit strdup
32137 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32140 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32141 echo $ECHO_N "(cached) $ECHO_C" >&6
32143 cat >conftest.
$ac_ext <<_ACEOF
32146 cat confdefs.h
>>conftest.
$ac_ext
32147 cat >>conftest.
$ac_ext <<_ACEOF
32148 /* end confdefs.h. */
32149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32151 #define $ac_func innocuous_$ac_func
32153 /* System header to define __stub macros and hopefully few prototypes,
32154 which can conflict with char $ac_func (); below.
32155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32156 <limits.h> exists even on freestanding compilers. */
32159 # include <limits.h>
32161 # include <assert.h>
32166 /* Override any GCC internal prototype to avoid an error.
32167 Use char because int might match the return type of a GCC
32168 builtin and then its argument prototype would still apply. */
32173 /* The GNU C library defines this for functions which it implements
32174 to always fail with ENOSYS. Some functions are actually named
32175 something starting with __ and the normal name is an alias. */
32176 #if defined __stub_$ac_func || defined __stub___$ac_func
32183 return $ac_func ();
32188 rm -f conftest.
$ac_objext conftest
$ac_exeext
32189 if { (ac_try
="$ac_link"
32190 case "(($ac_try" in
32191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32192 *) ac_try_echo=$ac_try;;
32194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32195 (eval "$ac_link") 2>conftest.er1
32197 grep -v '^ *+' conftest.er1 >conftest.err
32199 cat conftest.err >&5
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); } &&
32202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32203 { (case "(($ac_try" in
32204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32205 *) ac_try_echo
=$ac_try;;
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_try") 2>&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; } &&
32212 { ac_try
='test -s conftest$ac_exeext'
32213 { (case "(($ac_try" in
32214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; }; then
32222 eval "$as_ac_var=yes"
32224 echo "$as_me: failed program was:" >&5
32225 sed 's/^/| /' conftest.$ac_ext >&5
32227 eval "$as_ac_var=no"
32230 rm -f core conftest.err conftest.$ac_objext \
32231 conftest$ac_exeext conftest.$ac_ext
32233 ac_res=`eval echo '${'$as_ac_var'}'`
32234 { echo "$as_me:$LINENO: result: $ac_res" >&5
32235 echo "${ECHO_T}$ac_res" >&6; }
32236 if test `eval echo '${'$as_ac_var'}'` = yes; then
32237 cat >>confdefs.h <<_ACEOF
32238 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32247 for ac_func in strerror strerror_r strerror_s
32249 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32253 echo $ECHO_N "(cached) $ECHO_C" >&6
32255 cat >conftest.$ac_ext <<_ACEOF
32258 cat confdefs.h >>conftest.$ac_ext
32259 cat >>conftest.$ac_ext <<_ACEOF
32260 /* end confdefs.h. */
32261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32263 #define $ac_func innocuous_$ac_func
32265 /* System header to define __stub macros and hopefully few prototypes,
32266 which can conflict with char $ac_func (); below.
32267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32268 <limits.h> exists even on freestanding compilers. */
32271 # include <limits.h>
32273 # include <assert.h>
32278 /* Override any GCC internal prototype to avoid an error.
32279 Use char because int might match the return type of a GCC
32280 builtin and then its argument prototype would still apply. */
32285 /* The GNU C library defines this for functions which it implements
32286 to always fail with ENOSYS. Some functions are actually named
32287 something starting with __ and the normal name is an alias. */
32288 #if defined __stub_$ac_func || defined __stub___$ac_func
32295 return $ac_func ();
32300 rm -f conftest.$ac_objext conftest$ac_exeext
32301 if { (ac_try="$ac_link"
32302 case "(($ac_try" in
32303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32304 *) ac_try_echo
=$ac_try;;
32306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307 (eval "$ac_link") 2>conftest.er1
32309 grep -v '^ *+' conftest.er1
>conftest.err
32311 cat conftest.err
>&5
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); } &&
32314 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32315 { (case "(($ac_try" in
32316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32317 *) ac_try_echo=$ac_try;;
32319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320 (eval "$ac_try") 2>&5
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); }; } &&
32324 { ac_try='test -s conftest$ac_exeext'
32325 { (case "(($ac_try" in
32326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32327 *) ac_try_echo
=$ac_try;;
32329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32330 (eval "$ac_try") 2>&5
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; }; then
32334 eval "$as_ac_var=yes"
32336 echo "$as_me: failed program was:" >&5
32337 sed 's/^/| /' conftest.
$ac_ext >&5
32339 eval "$as_ac_var=no"
32342 rm -f core conftest.err conftest.
$ac_objext \
32343 conftest
$ac_exeext conftest.
$ac_ext
32345 ac_res
=`eval echo '${'$as_ac_var'}'`
32346 { echo "$as_me:$LINENO: result: $ac_res" >&5
32347 echo "${ECHO_T}$ac_res" >&6; }
32348 if test `eval echo '${'$as_ac_var'}'` = yes; then
32349 cat >>confdefs.h
<<_ACEOF
32350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32360 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
32362 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32365 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32366 echo $ECHO_N "(cached) $ECHO_C" >&6
32368 cat >conftest.
$ac_ext <<_ACEOF
32371 cat confdefs.h
>>conftest.
$ac_ext
32372 cat >>conftest.
$ac_ext <<_ACEOF
32373 /* end confdefs.h. */
32374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32376 #define $ac_func innocuous_$ac_func
32378 /* System header to define __stub macros and hopefully few prototypes,
32379 which can conflict with char $ac_func (); below.
32380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32381 <limits.h> exists even on freestanding compilers. */
32384 # include <limits.h>
32386 # include <assert.h>
32391 /* Override any GCC internal prototype to avoid an error.
32392 Use char because int might match the return type of a GCC
32393 builtin and then its argument prototype would still apply. */
32398 /* The GNU C library defines this for functions which it implements
32399 to always fail with ENOSYS. Some functions are actually named
32400 something starting with __ and the normal name is an alias. */
32401 #if defined __stub_$ac_func || defined __stub___$ac_func
32408 return $ac_func ();
32413 rm -f conftest.
$ac_objext conftest
$ac_exeext
32414 if { (ac_try
="$ac_link"
32415 case "(($ac_try" in
32416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32417 *) ac_try_echo=$ac_try;;
32419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420 (eval "$ac_link") 2>conftest.er1
32422 grep -v '^ *+' conftest.er1 >conftest.err
32424 cat conftest.err >&5
32425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426 (exit $ac_status); } &&
32427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32428 { (case "(($ac_try" in
32429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32430 *) ac_try_echo
=$ac_try;;
32432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433 (eval "$ac_try") 2>&5
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); }; } &&
32437 { ac_try
='test -s conftest$ac_exeext'
32438 { (case "(($ac_try" in
32439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32440 *) ac_try_echo=$ac_try;;
32442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443 (eval "$ac_try") 2>&5
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); }; }; then
32447 eval "$as_ac_var=yes"
32449 echo "$as_me: failed program was:" >&5
32450 sed 's/^/| /' conftest.$ac_ext >&5
32452 eval "$as_ac_var=no"
32455 rm -f core conftest.err conftest.$ac_objext \
32456 conftest$ac_exeext conftest.$ac_ext
32458 ac_res=`eval echo '${'$as_ac_var'}'`
32459 { echo "$as_me:$LINENO: result: $ac_res" >&5
32460 echo "${ECHO_T}$ac_res" >&6; }
32461 if test `eval echo '${'$as_ac_var'}'` = yes; then
32462 cat >>confdefs.h <<_ACEOF
32463 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32473 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32475 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32479 echo $ECHO_N "(cached) $ECHO_C" >&6
32481 cat >conftest.$ac_ext <<_ACEOF
32484 cat confdefs.h >>conftest.$ac_ext
32485 cat >>conftest.$ac_ext <<_ACEOF
32486 /* end confdefs.h. */
32487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32489 #define $ac_func innocuous_$ac_func
32491 /* System header to define __stub macros and hopefully few prototypes,
32492 which can conflict with char $ac_func (); below.
32493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32494 <limits.h> exists even on freestanding compilers. */
32497 # include <limits.h>
32499 # include <assert.h>
32504 /* Override any GCC internal prototype to avoid an error.
32505 Use char because int might match the return type of a GCC
32506 builtin and then its argument prototype would still apply. */
32511 /* The GNU C library defines this for functions which it implements
32512 to always fail with ENOSYS. Some functions are actually named
32513 something starting with __ and the normal name is an alias. */
32514 #if defined __stub_$ac_func || defined __stub___$ac_func
32521 return $ac_func ();
32526 rm -f conftest.$ac_objext conftest$ac_exeext
32527 if { (ac_try="$ac_link"
32528 case "(($ac_try" in
32529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32530 *) ac_try_echo
=$ac_try;;
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_link") 2>conftest.er1
32535 grep -v '^ *+' conftest.er1
>conftest.err
32537 cat conftest.err
>&5
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539 (exit $ac_status); } &&
32540 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32541 { (case "(($ac_try" in
32542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32543 *) ac_try_echo=$ac_try;;
32545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32546 (eval "$ac_try") 2>&5
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; } &&
32550 { ac_try='test -s conftest$ac_exeext'
32551 { (case "(($ac_try" in
32552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32553 *) ac_try_echo
=$ac_try;;
32555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32556 (eval "$ac_try") 2>&5
32558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559 (exit $ac_status); }; }; then
32560 eval "$as_ac_var=yes"
32562 echo "$as_me: failed program was:" >&5
32563 sed 's/^/| /' conftest.
$ac_ext >&5
32565 eval "$as_ac_var=no"
32568 rm -f core conftest.err conftest.
$ac_objext \
32569 conftest
$ac_exeext conftest.
$ac_ext
32571 ac_res
=`eval echo '${'$as_ac_var'}'`
32572 { echo "$as_me:$LINENO: result: $ac_res" >&5
32573 echo "${ECHO_T}$ac_res" >&6; }
32574 if test `eval echo '${'$as_ac_var'}'` = yes; then
32575 cat >>confdefs.h
<<_ACEOF
32576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32582 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32583 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32584 if test "${llvm_cv_c_printf_a+set}" = set; then
32585 echo $ECHO_N "(cached) $ECHO_C" >&6
32588 ac_cpp
='$CPP $CPPFLAGS'
32589 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32593 if test "$cross_compiling" = yes; then
32594 llvmac_cv_c_printf_a
=no
32596 cat >conftest.
$ac_ext <<_ACEOF
32600 cat confdefs.h
>>conftest.
$ac_ext
32601 cat >>conftest.
$ac_ext <<_ACEOF
32602 /* end confdefs.h. */
32605 #include <stdlib.h>
32611 volatile double A, B;
32615 sprintf(Buffer, "%a", A);
32619 if (A != 0x1.999999999999ap-4)
32626 rm -f conftest
$ac_exeext
32627 if { (ac_try
="$ac_link"
32628 case "(($ac_try" in
32629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32630 *) ac_try_echo=$ac_try;;
32632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633 (eval "$ac_link") 2>&5
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32637 { (case "(($ac_try" in
32638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32639 *) ac_try_echo
=$ac_try;;
32641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642 (eval "$ac_try") 2>&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; }; then
32646 llvm_cv_c_printf_a
=yes
32648 echo "$as_me: program exited with status $ac_status" >&5
32649 echo "$as_me: failed program was:" >&5
32650 sed 's/^/| /' conftest.
$ac_ext >&5
32652 ( exit $ac_status )
32653 llvmac_cv_c_printf_a
=no
32655 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32660 ac_cpp
='$CPP $CPPFLAGS'
32661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32666 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32667 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32668 if test "$llvm_cv_c_printf_a" = "yes"; then
32670 cat >>confdefs.h
<<\_ACEOF
32671 #define HAVE_PRINTF_A 1
32676 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32677 # for constant arguments. Useless!
32678 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32679 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32680 if test "${ac_cv_working_alloca_h+set}" = set; then
32681 echo $ECHO_N "(cached) $ECHO_C" >&6
32683 cat >conftest.
$ac_ext <<_ACEOF
32686 cat confdefs.h
>>conftest.
$ac_ext
32687 cat >>conftest.
$ac_ext <<_ACEOF
32688 /* end confdefs.h. */
32689 #include <alloca.h>
32693 char *p = (char *) alloca (2 * sizeof (int));
32699 rm -f conftest.
$ac_objext conftest
$ac_exeext
32700 if { (ac_try
="$ac_link"
32701 case "(($ac_try" in
32702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32703 *) ac_try_echo=$ac_try;;
32705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32706 (eval "$ac_link") 2>conftest.er1
32708 grep -v '^ *+' conftest.er1 >conftest.err
32710 cat conftest.err >&5
32711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); } &&
32713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32714 { (case "(($ac_try" in
32715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32716 *) ac_try_echo
=$ac_try;;
32718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32719 (eval "$ac_try") 2>&5
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); }; } &&
32723 { ac_try
='test -s conftest$ac_exeext'
32724 { (case "(($ac_try" in
32725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32726 *) ac_try_echo=$ac_try;;
32728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32729 (eval "$ac_try") 2>&5
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; }; then
32733 ac_cv_working_alloca_h=yes
32735 echo "$as_me: failed program was:" >&5
32736 sed 's/^/| /' conftest.$ac_ext >&5
32738 ac_cv_working_alloca_h=no
32741 rm -f core conftest.err conftest.$ac_objext \
32742 conftest$ac_exeext conftest.$ac_ext
32744 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32745 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32746 if test $ac_cv_working_alloca_h = yes; then
32748 cat >>confdefs.h <<\_ACEOF
32749 #define HAVE_ALLOCA_H 1
32754 { echo "$as_me:$LINENO: checking for alloca" >&5
32755 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32756 if test "${ac_cv_func_alloca_works+set}" = set; then
32757 echo $ECHO_N "(cached) $ECHO_C" >&6
32759 cat >conftest.$ac_ext <<_ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h. */
32766 # define alloca __builtin_alloca
32769 # include <malloc.h>
32770 # define alloca _alloca
32773 # include <alloca.h>
32778 # ifndef alloca /* predefined by HP cc +Olibcalls */
32789 char *p = (char *) alloca (1);
32795 rm -f conftest.$ac_objext conftest$ac_exeext
32796 if { (ac_try="$ac_link"
32797 case "(($ac_try" in
32798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32799 *) ac_try_echo
=$ac_try;;
32801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802 (eval "$ac_link") 2>conftest.er1
32804 grep -v '^ *+' conftest.er1
>conftest.err
32806 cat conftest.err
>&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); } &&
32809 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32810 { (case "(($ac_try" in
32811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32812 *) ac_try_echo=$ac_try;;
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815 (eval "$ac_try") 2>&5
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); }; } &&
32819 { ac_try='test -s conftest$ac_exeext'
32820 { (case "(($ac_try" in
32821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32822 *) ac_try_echo
=$ac_try;;
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825 (eval "$ac_try") 2>&5
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); }; }; then
32829 ac_cv_func_alloca_works
=yes
32831 echo "$as_me: failed program was:" >&5
32832 sed 's/^/| /' conftest.
$ac_ext >&5
32834 ac_cv_func_alloca_works
=no
32837 rm -f core conftest.err conftest.
$ac_objext \
32838 conftest
$ac_exeext conftest.
$ac_ext
32840 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32841 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32843 if test $ac_cv_func_alloca_works = yes; then
32845 cat >>confdefs.h
<<\_ACEOF
32846 #define HAVE_ALLOCA 1
32850 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32851 # that cause trouble. Some versions do not even contain alloca or
32852 # contain a buggy version. If you still want to use their alloca,
32853 # use ar to extract alloca.o from them instead of compiling alloca.c.
32855 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
32857 cat >>confdefs.h
<<\_ACEOF
32862 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32863 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32864 if test "${ac_cv_os_cray+set}" = set; then
32865 echo $ECHO_N "(cached) $ECHO_C" >&6
32867 cat >conftest.
$ac_ext <<_ACEOF
32870 cat confdefs.h
>>conftest.
$ac_ext
32871 cat >>conftest.
$ac_ext <<_ACEOF
32872 /* end confdefs.h. */
32873 #if defined CRAY && ! defined CRAY2
32880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32881 $EGREP "webecray" >/dev
/null
2>&1; then
32889 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32890 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32891 if test $ac_cv_os_cray = yes; then
32892 for ac_func
in _getb67 GETB67 getb67
; do
32893 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32896 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32897 echo $ECHO_N "(cached) $ECHO_C" >&6
32899 cat >conftest.
$ac_ext <<_ACEOF
32902 cat confdefs.h
>>conftest.
$ac_ext
32903 cat >>conftest.
$ac_ext <<_ACEOF
32904 /* end confdefs.h. */
32905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32907 #define $ac_func innocuous_$ac_func
32909 /* System header to define __stub macros and hopefully few prototypes,
32910 which can conflict with char $ac_func (); below.
32911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32912 <limits.h> exists even on freestanding compilers. */
32915 # include <limits.h>
32917 # include <assert.h>
32922 /* Override any GCC internal prototype to avoid an error.
32923 Use char because int might match the return type of a GCC
32924 builtin and then its argument prototype would still apply. */
32929 /* The GNU C library defines this for functions which it implements
32930 to always fail with ENOSYS. Some functions are actually named
32931 something starting with __ and the normal name is an alias. */
32932 #if defined __stub_$ac_func || defined __stub___$ac_func
32939 return $ac_func ();
32944 rm -f conftest.
$ac_objext conftest
$ac_exeext
32945 if { (ac_try
="$ac_link"
32946 case "(($ac_try" in
32947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32948 *) ac_try_echo=$ac_try;;
32950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951 (eval "$ac_link") 2>conftest.er1
32953 grep -v '^ *+' conftest.er1 >conftest.err
32955 cat conftest.err >&5
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); } &&
32958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32959 { (case "(($ac_try" in
32960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32961 *) ac_try_echo
=$ac_try;;
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964 (eval "$ac_try") 2>&5
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; } &&
32968 { ac_try
='test -s conftest$ac_exeext'
32969 { (case "(($ac_try" in
32970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32971 *) ac_try_echo=$ac_try;;
32973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32974 (eval "$ac_try") 2>&5
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); }; }; then
32978 eval "$as_ac_var=yes"
32980 echo "$as_me: failed program was:" >&5
32981 sed 's/^/| /' conftest.$ac_ext >&5
32983 eval "$as_ac_var=no"
32986 rm -f core conftest.err conftest.$ac_objext \
32987 conftest$ac_exeext conftest.$ac_ext
32989 ac_res=`eval echo '${'$as_ac_var'}'`
32990 { echo "$as_me:$LINENO: result: $ac_res" >&5
32991 echo "${ECHO_T}$ac_res" >&6; }
32992 if test `eval echo '${'$as_ac_var'}'` = yes; then
32994 cat >>confdefs.h <<_ACEOF
32995 #define CRAY_STACKSEG_END $ac_func
33004 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33005 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33006 if test "${ac_cv_c_stack_direction+set}" = set; then
33007 echo $ECHO_N "(cached) $ECHO_C" >&6
33009 if test "$cross_compiling" = yes; then
33010 ac_cv_c_stack_direction=0
33012 cat >conftest.$ac_ext <<_ACEOF
33015 cat confdefs.h >>conftest.$ac_ext
33016 cat >>conftest.$ac_ext <<_ACEOF
33017 /* end confdefs.h. */
33018 $ac_includes_default
33020 find_stack_direction ()
33022 static char *addr = 0;
33027 return find_stack_direction ();
33030 return (&dummy > addr) ? 1 : -1;
33036 return find_stack_direction () < 0;
33039 rm -f conftest$ac_exeext
33040 if { (ac_try="$ac_link"
33041 case "(($ac_try" in
33042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33043 *) ac_try_echo
=$ac_try;;
33045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33046 (eval "$ac_link") 2>&5
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33050 { (case "(($ac_try" in
33051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33052 *) ac_try_echo=$ac_try;;
33054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33055 (eval "$ac_try") 2>&5
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); }; }; then
33059 ac_cv_c_stack_direction=1
33061 echo "$as_me: program exited with status $ac_status" >&5
33062 echo "$as_me: failed program was:" >&5
33063 sed 's/^/| /' conftest.$ac_ext >&5
33065 ( exit $ac_status )
33066 ac_cv_c_stack_direction=-1
33068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33073 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33074 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33076 cat >>confdefs.h <<_ACEOF
33077 #define STACK_DIRECTION $ac_cv_c_stack_direction
33084 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33085 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33086 if test "${ac_cv_func_rand48+set}" = set; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
33090 ac_cpp='$CXXCPP $CPPFLAGS'
33091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33095 cat >conftest.$ac_ext <<_ACEOF
33098 cat confdefs.h >>conftest.$ac_ext
33099 cat >>conftest.$ac_ext <<_ACEOF
33100 /* end confdefs.h. */
33101 #include <stdlib.h>
33105 srand48(0);lrand48();drand48();
33110 rm -f conftest.$ac_objext
33111 if { (ac_try="$ac_compile"
33112 case "(($ac_try" in
33113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33114 *) ac_try_echo
=$ac_try;;
33116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33117 (eval "$ac_compile") 2>conftest.er1
33119 grep -v '^ *+' conftest.er1
>conftest.err
33121 cat conftest.err
>&5
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); } &&
33124 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33125 { (case "(($ac_try" in
33126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33127 *) ac_try_echo=$ac_try;;
33129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130 (eval "$ac_try") 2>&5
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); }; } &&
33134 { ac_try='test -s conftest.$ac_objext'
33135 { (case "(($ac_try" in
33136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33137 *) ac_try_echo
=$ac_try;;
33139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140 (eval "$ac_try") 2>&5
33142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143 (exit $ac_status); }; }; then
33144 ac_cv_func_rand48
=yes
33146 echo "$as_me: failed program was:" >&5
33147 sed 's/^/| /' conftest.
$ac_ext >&5
33149 ac_cv_func_rand48
=no
33152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33154 ac_cpp
='$CPP $CPPFLAGS'
33155 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33156 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33157 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33160 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33161 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33163 if test "$ac_cv_func_rand48" = "yes" ; then
33165 cat >>confdefs.h
<<\_ACEOF
33166 #define HAVE_RAND48 1
33172 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33173 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33174 if test "${ac_cv_cxx_namespaces+set}" = set; then
33175 echo $ECHO_N "(cached) $ECHO_C" >&6
33178 ac_cpp
='$CXXCPP $CPPFLAGS'
33179 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33180 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33181 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33183 cat >conftest.
$ac_ext <<_ACEOF
33186 cat confdefs.h
>>conftest.
$ac_ext
33187 cat >>conftest.
$ac_ext <<_ACEOF
33188 /* end confdefs.h. */
33189 namespace Outer { namespace Inner { int i = 0; }}
33193 using namespace Outer::Inner; return i;
33198 rm -f conftest.
$ac_objext
33199 if { (ac_try
="$ac_compile"
33200 case "(($ac_try" in
33201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33202 *) ac_try_echo=$ac_try;;
33204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33205 (eval "$ac_compile") 2>conftest.er1
33207 grep -v '^ *+' conftest.er1 >conftest.err
33209 cat conftest.err >&5
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); } &&
33212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33213 { (case "(($ac_try" in
33214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33215 *) ac_try_echo
=$ac_try;;
33217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218 (eval "$ac_try") 2>&5
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); }; } &&
33222 { ac_try
='test -s conftest.$ac_objext'
33223 { (case "(($ac_try" in
33224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33225 *) ac_try_echo=$ac_try;;
33227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33228 (eval "$ac_try") 2>&5
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); }; }; then
33232 ac_cv_cxx_namespaces=yes
33234 echo "$as_me: failed program was:" >&5
33235 sed 's/^/| /' conftest.$ac_ext >&5
33237 ac_cv_cxx_namespaces=no
33240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33242 ac_cpp='$CPP $CPPFLAGS'
33243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33249 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33250 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33251 if test "$ac_cv_cxx_namespaces" = yes; then
33253 cat >>confdefs.h <<\_ACEOF
33254 #define HAVE_NAMESPACES
33259 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33260 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33261 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33266 ac_cpp='$CXXCPP $CPPFLAGS'
33267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33271 cat >conftest.$ac_ext <<_ACEOF
33274 cat confdefs.h >>conftest.$ac_ext
33275 cat >>conftest.$ac_ext <<_ACEOF
33276 /* end confdefs.h. */
33277 #include <iterator>
33278 #ifdef HAVE_NAMESPACES
33279 using namespace std;
33284 iterator<int,int,int> t; return 0;
33289 rm -f conftest.$ac_objext
33290 if { (ac_try="$ac_compile"
33291 case "(($ac_try" in
33292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33293 *) ac_try_echo
=$ac_try;;
33295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296 (eval "$ac_compile") 2>conftest.er1
33298 grep -v '^ *+' conftest.er1
>conftest.err
33300 cat conftest.err
>&5
33301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302 (exit $ac_status); } &&
33303 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33304 { (case "(($ac_try" in
33305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33306 *) ac_try_echo=$ac_try;;
33308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309 (eval "$ac_try") 2>&5
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); }; } &&
33313 { ac_try='test -s conftest.$ac_objext'
33314 { (case "(($ac_try" in
33315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33316 *) ac_try_echo
=$ac_try;;
33318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33319 (eval "$ac_try") 2>&5
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); }; }; then
33323 ac_cv_cxx_have_std_iterator
=yes
33325 echo "$as_me: failed program was:" >&5
33326 sed 's/^/| /' conftest.
$ac_ext >&5
33328 ac_cv_cxx_have_std_iterator
=no
33331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33333 ac_cpp
='$CPP $CPPFLAGS'
33334 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33335 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33336 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33340 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33341 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33342 if test "$ac_cv_cxx_have_std_iterator" = yes
33345 cat >>confdefs.h
<<\_ACEOF
33346 #define HAVE_STD_ITERATOR 1
33351 cat >>confdefs.h
<<\_ACEOF
33352 #define HAVE_STD_ITERATOR 0
33357 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33358 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33359 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33360 echo $ECHO_N "(cached) $ECHO_C" >&6
33364 ac_cpp
='$CXXCPP $CPPFLAGS'
33365 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33366 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33367 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33369 cat >conftest.
$ac_ext <<_ACEOF
33372 cat confdefs.h
>>conftest.
$ac_ext
33373 cat >>conftest.
$ac_ext <<_ACEOF
33374 /* end confdefs.h. */
33375 #include <iterator>
33376 #ifdef HAVE_NAMESPACES
33377 using namespace std;
33382 bidirectional_iterator<int,int> t; return 0;
33387 rm -f conftest.
$ac_objext
33388 if { (ac_try
="$ac_compile"
33389 case "(($ac_try" in
33390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33391 *) ac_try_echo=$ac_try;;
33393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394 (eval "$ac_compile") 2>conftest.er1
33396 grep -v '^ *+' conftest.er1 >conftest.err
33398 cat conftest.err >&5
33399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); } &&
33401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33402 { (case "(($ac_try" in
33403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33404 *) ac_try_echo
=$ac_try;;
33406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407 (eval "$ac_try") 2>&5
33409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410 (exit $ac_status); }; } &&
33411 { ac_try
='test -s conftest.$ac_objext'
33412 { (case "(($ac_try" in
33413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33414 *) ac_try_echo=$ac_try;;
33416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417 (eval "$ac_try") 2>&5
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); }; }; then
33421 ac_cv_cxx_have_bi_iterator=yes
33423 echo "$as_me: failed program was:" >&5
33424 sed 's/^/| /' conftest.$ac_ext >&5
33426 ac_cv_cxx_have_bi_iterator=no
33429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33431 ac_cpp='$CPP $CPPFLAGS'
33432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33438 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33439 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33440 if test "$ac_cv_cxx_have_bi_iterator" = yes
33443 cat >>confdefs.h <<\_ACEOF
33444 #define HAVE_BI_ITERATOR 1
33449 cat >>confdefs.h <<\_ACEOF
33450 #define HAVE_BI_ITERATOR 0
33455 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33456 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33457 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33458 echo $ECHO_N "(cached) $ECHO_C" >&6
33462 ac_cpp='$CXXCPP $CPPFLAGS'
33463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33467 cat >conftest.$ac_ext <<_ACEOF
33470 cat confdefs.h >>conftest.$ac_ext
33471 cat >>conftest.$ac_ext <<_ACEOF
33472 /* end confdefs.h. */
33473 #include <iterator>
33474 #ifdef HAVE_NAMESPACES
33475 using namespace std;
33480 forward_iterator<int,int> t; return 0;
33485 rm -f conftest.$ac_objext
33486 if { (ac_try="$ac_compile"
33487 case "(($ac_try" in
33488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33489 *) ac_try_echo
=$ac_try;;
33491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33492 (eval "$ac_compile") 2>conftest.er1
33494 grep -v '^ *+' conftest.er1
>conftest.err
33496 cat conftest.err
>&5
33497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498 (exit $ac_status); } &&
33499 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33500 { (case "(($ac_try" in
33501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33502 *) ac_try_echo=$ac_try;;
33504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33505 (eval "$ac_try") 2>&5
33507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508 (exit $ac_status); }; } &&
33509 { ac_try='test -s conftest.$ac_objext'
33510 { (case "(($ac_try" in
33511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33512 *) ac_try_echo
=$ac_try;;
33514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33515 (eval "$ac_try") 2>&5
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); }; }; then
33519 ac_cv_cxx_have_fwd_iterator
=yes
33521 echo "$as_me: failed program was:" >&5
33522 sed 's/^/| /' conftest.
$ac_ext >&5
33524 ac_cv_cxx_have_fwd_iterator
=no
33527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33529 ac_cpp
='$CPP $CPPFLAGS'
33530 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33531 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33532 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33536 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33537 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33538 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33541 cat >>confdefs.h
<<\_ACEOF
33542 #define HAVE_FWD_ITERATOR 1
33547 cat >>confdefs.h
<<\_ACEOF
33548 #define HAVE_FWD_ITERATOR 0
33554 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33555 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33556 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33557 echo $ECHO_N "(cached) $ECHO_C" >&6
33560 ac_cpp
='$CXXCPP $CPPFLAGS'
33561 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33562 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33563 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33565 cat >conftest.
$ac_ext <<_ACEOF
33568 cat confdefs.h
>>conftest.
$ac_ext
33569 cat >>conftest.
$ac_ext <<_ACEOF
33570 /* end confdefs.h. */
33580 rm -f conftest.
$ac_objext
33581 if { (ac_try
="$ac_compile"
33582 case "(($ac_try" in
33583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33584 *) ac_try_echo=$ac_try;;
33586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33587 (eval "$ac_compile") 2>conftest.er1
33589 grep -v '^ *+' conftest.er1 >conftest.err
33591 cat conftest.err >&5
33592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33593 (exit $ac_status); } &&
33594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33595 { (case "(($ac_try" in
33596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33597 *) ac_try_echo
=$ac_try;;
33599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33600 (eval "$ac_try") 2>&5
33602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); }; } &&
33604 { ac_try
='test -s conftest.$ac_objext'
33605 { (case "(($ac_try" in
33606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33607 *) ac_try_echo=$ac_try;;
33609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33610 (eval "$ac_try") 2>&5
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; }; then
33614 ac_cv_func_isnan_in_math_h=yes
33616 echo "$as_me: failed program was:" >&5
33617 sed 's/^/| /' conftest.$ac_ext >&5
33619 ac_cv_func_isnan_in_math_h=no
33622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33624 ac_cpp='$CPP $CPPFLAGS'
33625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33630 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33631 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33634 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33636 cat >>confdefs.h <<\_ACEOF
33637 #define HAVE_ISNAN_IN_MATH_H 1
33642 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33643 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33644 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33645 echo $ECHO_N "(cached) $ECHO_C" >&6
33648 ac_cpp='$CXXCPP $CPPFLAGS'
33649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33653 cat >conftest.$ac_ext <<_ACEOF
33656 cat confdefs.h >>conftest.$ac_ext
33657 cat >>conftest.$ac_ext <<_ACEOF
33658 /* end confdefs.h. */
33668 rm -f conftest.$ac_objext
33669 if { (ac_try="$ac_compile"
33670 case "(($ac_try" in
33671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33672 *) ac_try_echo
=$ac_try;;
33674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33675 (eval "$ac_compile") 2>conftest.er1
33677 grep -v '^ *+' conftest.er1
>conftest.err
33679 cat conftest.err
>&5
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); } &&
33682 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33683 { (case "(($ac_try" in
33684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33685 *) ac_try_echo=$ac_try;;
33687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688 (eval "$ac_try") 2>&5
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); }; } &&
33692 { ac_try='test -s conftest.$ac_objext'
33693 { (case "(($ac_try" in
33694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33695 *) ac_try_echo
=$ac_try;;
33697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33698 (eval "$ac_try") 2>&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); }; }; then
33702 ac_cv_func_isnan_in_cmath
=yes
33704 echo "$as_me: failed program was:" >&5
33705 sed 's/^/| /' conftest.
$ac_ext >&5
33707 ac_cv_func_isnan_in_cmath
=no
33710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33712 ac_cpp
='$CPP $CPPFLAGS'
33713 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33714 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33715 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33718 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33719 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33721 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33723 cat >>confdefs.h
<<\_ACEOF
33724 #define HAVE_ISNAN_IN_CMATH 1
33729 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33730 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33731 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33732 echo $ECHO_N "(cached) $ECHO_C" >&6
33735 ac_cpp
='$CXXCPP $CPPFLAGS'
33736 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33737 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33738 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33740 cat >conftest.
$ac_ext <<_ACEOF
33743 cat confdefs.h
>>conftest.
$ac_ext
33744 cat >>conftest.
$ac_ext <<_ACEOF
33745 /* end confdefs.h. */
33750 float f; std::isnan(f);
33755 rm -f conftest.
$ac_objext
33756 if { (ac_try
="$ac_compile"
33757 case "(($ac_try" in
33758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33759 *) ac_try_echo=$ac_try;;
33761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33762 (eval "$ac_compile") 2>conftest.er1
33764 grep -v '^ *+' conftest.er1 >conftest.err
33766 cat conftest.err >&5
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); } &&
33769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33770 { (case "(($ac_try" in
33771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33772 *) ac_try_echo
=$ac_try;;
33774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33775 (eval "$ac_try") 2>&5
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); }; } &&
33779 { ac_try
='test -s conftest.$ac_objext'
33780 { (case "(($ac_try" in
33781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33782 *) ac_try_echo=$ac_try;;
33784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33785 (eval "$ac_try") 2>&5
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); }; }; then
33789 ac_cv_func_std_isnan_in_cmath=yes
33791 echo "$as_me: failed program was:" >&5
33792 sed 's/^/| /' conftest.$ac_ext >&5
33794 ac_cv_func_std_isnan_in_cmath=no
33797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33799 ac_cpp='$CPP $CPPFLAGS'
33800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33805 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33806 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33808 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33810 cat >>confdefs.h <<\_ACEOF
33811 #define HAVE_STD_ISNAN_IN_CMATH 1
33817 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33818 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33819 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33820 echo $ECHO_N "(cached) $ECHO_C" >&6
33823 ac_cpp='$CXXCPP $CPPFLAGS'
33824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33828 cat >conftest.$ac_ext <<_ACEOF
33831 cat confdefs.h >>conftest.$ac_ext
33832 cat >>conftest.$ac_ext <<_ACEOF
33833 /* end confdefs.h. */
33843 rm -f conftest.$ac_objext
33844 if { (ac_try="$ac_compile"
33845 case "(($ac_try" in
33846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33847 *) ac_try_echo
=$ac_try;;
33849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850 (eval "$ac_compile") 2>conftest.er1
33852 grep -v '^ *+' conftest.er1
>conftest.err
33854 cat conftest.err
>&5
33855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856 (exit $ac_status); } &&
33857 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33858 { (case "(($ac_try" in
33859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33860 *) ac_try_echo=$ac_try;;
33862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33863 (eval "$ac_try") 2>&5
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); }; } &&
33867 { ac_try='test -s conftest.$ac_objext'
33868 { (case "(($ac_try" in
33869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33870 *) ac_try_echo
=$ac_try;;
33872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33873 (eval "$ac_try") 2>&5
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); }; }; then
33877 ac_cv_func_isinf_in_math_h
=yes
33879 echo "$as_me: failed program was:" >&5
33880 sed 's/^/| /' conftest.
$ac_ext >&5
33882 ac_cv_func_isinf_in_math_h
=no
33885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33887 ac_cpp
='$CPP $CPPFLAGS'
33888 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33889 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33890 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33893 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33894 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33896 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33898 cat >>confdefs.h
<<\_ACEOF
33899 #define HAVE_ISINF_IN_MATH_H 1
33904 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33905 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33906 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33907 echo $ECHO_N "(cached) $ECHO_C" >&6
33910 ac_cpp
='$CXXCPP $CPPFLAGS'
33911 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33912 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33913 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33915 cat >conftest.
$ac_ext <<_ACEOF
33918 cat confdefs.h
>>conftest.
$ac_ext
33919 cat >>conftest.
$ac_ext <<_ACEOF
33920 /* end confdefs.h. */
33930 rm -f conftest.
$ac_objext
33931 if { (ac_try
="$ac_compile"
33932 case "(($ac_try" in
33933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33934 *) ac_try_echo=$ac_try;;
33936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33937 (eval "$ac_compile") 2>conftest.er1
33939 grep -v '^ *+' conftest.er1 >conftest.err
33941 cat conftest.err >&5
33942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); } &&
33944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33945 { (case "(($ac_try" in
33946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33947 *) ac_try_echo
=$ac_try;;
33949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33950 (eval "$ac_try") 2>&5
33952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33953 (exit $ac_status); }; } &&
33954 { ac_try
='test -s conftest.$ac_objext'
33955 { (case "(($ac_try" in
33956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33957 *) ac_try_echo=$ac_try;;
33959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33960 (eval "$ac_try") 2>&5
33962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963 (exit $ac_status); }; }; then
33964 ac_cv_func_isinf_in_cmath=yes
33966 echo "$as_me: failed program was:" >&5
33967 sed 's/^/| /' conftest.$ac_ext >&5
33969 ac_cv_func_isinf_in_cmath=no
33972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33974 ac_cpp='$CPP $CPPFLAGS'
33975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33980 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33981 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33983 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33985 cat >>confdefs.h <<\_ACEOF
33986 #define HAVE_ISINF_IN_CMATH 1
33991 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33992 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33993 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33994 echo $ECHO_N "(cached) $ECHO_C" >&6
33997 ac_cpp='$CXXCPP $CPPFLAGS'
33998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34002 cat >conftest.$ac_ext <<_ACEOF
34005 cat confdefs.h >>conftest.$ac_ext
34006 cat >>conftest.$ac_ext <<_ACEOF
34007 /* end confdefs.h. */
34012 float f; std::isinf(f)}
34017 rm -f conftest.$ac_objext
34018 if { (ac_try="$ac_compile"
34019 case "(($ac_try" in
34020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34021 *) ac_try_echo
=$ac_try;;
34023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34024 (eval "$ac_compile") 2>conftest.er1
34026 grep -v '^ *+' conftest.er1
>conftest.err
34028 cat conftest.err
>&5
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); } &&
34031 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34032 { (case "(($ac_try" in
34033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34034 *) ac_try_echo=$ac_try;;
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037 (eval "$ac_try") 2>&5
34039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); }; } &&
34041 { ac_try='test -s conftest.$ac_objext'
34042 { (case "(($ac_try" in
34043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34044 *) ac_try_echo
=$ac_try;;
34046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34047 (eval "$ac_try") 2>&5
34049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34050 (exit $ac_status); }; }; then
34051 ac_cv_func_std_isinf_in_cmath
=yes
34053 echo "$as_me: failed program was:" >&5
34054 sed 's/^/| /' conftest.
$ac_ext >&5
34056 ac_cv_func_std_isinf_in_cmath
=no
34059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34061 ac_cpp
='$CPP $CPPFLAGS'
34062 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34063 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34067 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34068 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34070 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34072 cat >>confdefs.h
<<\_ACEOF
34073 #define HAVE_STD_ISINF_IN_CMATH 1
34078 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34079 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34080 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34081 echo $ECHO_N "(cached) $ECHO_C" >&6
34084 ac_cpp
='$CXXCPP $CPPFLAGS'
34085 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34086 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34087 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
34089 cat >conftest.
$ac_ext <<_ACEOF
34092 cat confdefs.h
>>conftest.
$ac_ext
34093 cat >>conftest.
$ac_ext <<_ACEOF
34094 /* end confdefs.h. */
34095 #include <ieeefp.h>
34099 float f; finite(f);
34104 rm -f conftest.
$ac_objext
34105 if { (ac_try
="$ac_compile"
34106 case "(($ac_try" in
34107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34108 *) ac_try_echo=$ac_try;;
34110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111 (eval "$ac_compile") 2>conftest.er1
34113 grep -v '^ *+' conftest.er1 >conftest.err
34115 cat conftest.err >&5
34116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); } &&
34118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34119 { (case "(($ac_try" in
34120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34121 *) ac_try_echo
=$ac_try;;
34123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34124 (eval "$ac_try") 2>&5
34126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127 (exit $ac_status); }; } &&
34128 { ac_try
='test -s conftest.$ac_objext'
34129 { (case "(($ac_try" in
34130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34131 *) ac_try_echo=$ac_try;;
34133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34134 (eval "$ac_try") 2>&5
34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137 (exit $ac_status); }; }; then
34138 ac_cv_func_finite_in_ieeefp_h=yes
34140 echo "$as_me: failed program was:" >&5
34141 sed 's/^/| /' conftest.$ac_ext >&5
34143 ac_cv_func_finite_in_ieeefp_h=no
34146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34148 ac_cpp='$CPP $CPPFLAGS'
34149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34154 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34155 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34157 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34159 cat >>confdefs.h <<\_ACEOF
34160 #define HAVE_FINITE_IN_IEEEFP_H 1
34167 if test "$llvm_cv_platform_type" = "Unix" ; then
34170 for ac_header in stdlib.h unistd.h
34172 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
34173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34177 echo $ECHO_N "(cached) $ECHO_C" >&6
34179 ac_res=`eval echo '${'$as_ac_Header'}'`
34180 { echo "$as_me:$LINENO: result: $ac_res" >&5
34181 echo "${ECHO_T}$ac_res" >&6; }
34183 # Is the header compilable?
34184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34186 cat >conftest.$ac_ext <<_ACEOF
34189 cat confdefs.h >>conftest.$ac_ext
34190 cat >>conftest.$ac_ext <<_ACEOF
34191 /* end confdefs.h. */
34192 $ac_includes_default
34193 #include <$ac_header>
34195 rm -f conftest.$ac_objext
34196 if { (ac_try="$ac_compile"
34197 case "(($ac_try" in
34198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34199 *) ac_try_echo
=$ac_try;;
34201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202 (eval "$ac_compile") 2>conftest.er1
34204 grep -v '^ *+' conftest.er1
>conftest.err
34206 cat conftest.err
>&5
34207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208 (exit $ac_status); } &&
34209 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34210 { (case "(($ac_try" in
34211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34212 *) ac_try_echo=$ac_try;;
34214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34215 (eval "$ac_try") 2>&5
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); }; } &&
34219 { ac_try='test -s conftest.$ac_objext'
34220 { (case "(($ac_try" in
34221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34222 *) ac_try_echo
=$ac_try;;
34224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34225 (eval "$ac_try") 2>&5
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; }; then
34229 ac_header_compiler
=yes
34231 echo "$as_me: failed program was:" >&5
34232 sed 's/^/| /' conftest.
$ac_ext >&5
34234 ac_header_compiler
=no
34237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34239 echo "${ECHO_T}$ac_header_compiler" >&6; }
34241 # Is the header present?
34242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34244 cat >conftest.
$ac_ext <<_ACEOF
34247 cat confdefs.h
>>conftest.
$ac_ext
34248 cat >>conftest.
$ac_ext <<_ACEOF
34249 /* end confdefs.h. */
34250 #include <$ac_header>
34252 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34253 case "(($ac_try" in
34254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34255 *) ac_try_echo=$ac_try;;
34257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34260 grep -v '^ *+' conftest.er1 >conftest.err
34262 cat conftest.err >&5
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); } >/dev/null; then
34265 if test -s conftest.err; then
34266 ac_cpp_err=$ac_c_preproc_warn_flag
34267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34274 if test -z "$ac_cpp_err"; then
34275 ac_header_preproc=yes
34277 echo "$as_me: failed program was:" >&5
34278 sed 's/^/| /' conftest.$ac_ext >&5
34280 ac_header_preproc=no
34283 rm -f conftest.err conftest.$ac_ext
34284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34285 echo "${ECHO_T}$ac_header_preproc" >&6; }
34287 # So? What about this header?
34288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34294 ac_header_preproc=yes
34297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34310 ## ----------------------------------- ##
34311 ## Report this to llvmbugs@cs.uiuc.edu ##
34312 ## ----------------------------------- ##
34314 ) | sed "s/^/$as_me: WARNING: /" >&2
34317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34320 echo $ECHO_N "(cached) $ECHO_C" >&6
34322 eval "$as_ac_Header=\$ac_header_preproc"
34324 ac_res=`eval echo '${'$as_ac_Header'}'`
34325 { echo "$as_me:$LINENO: result: $ac_res" >&5
34326 echo "${ECHO_T}$ac_res" >&6; }
34329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34330 cat >>confdefs.h <<_ACEOF
34331 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
34339 for ac_func in getpagesize
34341 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34345 echo $ECHO_N "(cached) $ECHO_C" >&6
34347 cat >conftest.$ac_ext <<_ACEOF
34350 cat confdefs.h >>conftest.$ac_ext
34351 cat >>conftest.$ac_ext <<_ACEOF
34352 /* end confdefs.h. */
34353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34355 #define $ac_func innocuous_$ac_func
34357 /* System header to define __stub macros and hopefully few prototypes,
34358 which can conflict with char $ac_func (); below.
34359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34360 <limits.h> exists even on freestanding compilers. */
34363 # include <limits.h>
34365 # include <assert.h>
34370 /* Override any GCC internal prototype to avoid an error.
34371 Use char because int might match the return type of a GCC
34372 builtin and then its argument prototype would still apply. */
34377 /* The GNU C library defines this for functions which it implements
34378 to always fail with ENOSYS. Some functions are actually named
34379 something starting with __ and the normal name is an alias. */
34380 #if defined __stub_$ac_func || defined __stub___$ac_func
34387 return $ac_func ();
34392 rm -f conftest.$ac_objext conftest$ac_exeext
34393 if { (ac_try="$ac_link"
34394 case "(($ac_try" in
34395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34396 *) ac_try_echo
=$ac_try;;
34398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34399 (eval "$ac_link") 2>conftest.er1
34401 grep -v '^ *+' conftest.er1
>conftest.err
34403 cat conftest.err
>&5
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); } &&
34406 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34407 { (case "(($ac_try" in
34408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34409 *) ac_try_echo=$ac_try;;
34411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34412 (eval "$ac_try") 2>&5
34414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415 (exit $ac_status); }; } &&
34416 { ac_try='test -s conftest$ac_exeext'
34417 { (case "(($ac_try" in
34418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34419 *) ac_try_echo
=$ac_try;;
34421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34422 (eval "$ac_try") 2>&5
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; }; then
34426 eval "$as_ac_var=yes"
34428 echo "$as_me: failed program was:" >&5
34429 sed 's/^/| /' conftest.
$ac_ext >&5
34431 eval "$as_ac_var=no"
34434 rm -f core conftest.err conftest.
$ac_objext \
34435 conftest
$ac_exeext conftest.
$ac_ext
34437 ac_res
=`eval echo '${'$as_ac_var'}'`
34438 { echo "$as_me:$LINENO: result: $ac_res" >&5
34439 echo "${ECHO_T}$ac_res" >&6; }
34440 if test `eval echo '${'$as_ac_var'}'` = yes; then
34441 cat >>confdefs.h
<<_ACEOF
34442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34448 { echo "$as_me:$LINENO: checking for working mmap" >&5
34449 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34450 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34451 echo $ECHO_N "(cached) $ECHO_C" >&6
34453 if test "$cross_compiling" = yes; then
34454 ac_cv_func_mmap_fixed_mapped
=no
34456 cat >conftest.
$ac_ext <<_ACEOF
34459 cat confdefs.h
>>conftest.
$ac_ext
34460 cat >>conftest.
$ac_ext <<_ACEOF
34461 /* end confdefs.h. */
34462 $ac_includes_default
34463 /* malloc might have been renamed as rpl_malloc. */
34466 /* Thanks to Mike Haertel and Jim Avera for this test.
34467 Here is a matrix of mmap possibilities:
34468 mmap private not fixed
34469 mmap private fixed at somewhere currently unmapped
34470 mmap private fixed at somewhere already mapped
34471 mmap shared not fixed
34472 mmap shared fixed at somewhere currently unmapped
34473 mmap shared fixed at somewhere already mapped
34474 For private mappings, we should verify that changes cannot be read()
34475 back from the file, nor mmap's back from the file at a different
34476 address. (There have been systems where private was not correctly
34477 implemented like the infamous i386 svr4.0, and systems where the
34478 VM page cache was not coherent with the file system buffer cache
34479 like early versions of FreeBSD and possibly contemporary NetBSD.)
34480 For shared mappings, we should conversely verify that changes get
34481 propagated back to all the places they're supposed to be.
34483 Grep wants private fixed already mapped.
34484 The main things grep needs to know about mmap are:
34485 * does it exist and is it safe to write into the mmap'd area
34486 * how to use it (BSD variants) */
34489 #include <sys/mman.h>
34491 #if !STDC_HEADERS && !HAVE_STDLIB_H
34495 /* This mess was copied from the GNU getpagesize.h. */
34496 #if !HAVE_GETPAGESIZE
34497 /* Assume that all systems that can run configure have sys/param.h. */
34498 # if !HAVE_SYS_PARAM_H
34499 # define HAVE_SYS_PARAM_H 1
34502 # ifdef _SC_PAGESIZE
34503 # define getpagesize() sysconf(_SC_PAGESIZE)
34504 # else /* no _SC_PAGESIZE */
34505 # if HAVE_SYS_PARAM_H
34506 # include <sys/param.h>
34507 # ifdef EXEC_PAGESIZE
34508 # define getpagesize() EXEC_PAGESIZE
34509 # else /* no EXEC_PAGESIZE */
34511 # define getpagesize() NBPG * CLSIZE
34514 # endif /* no CLSIZE */
34515 # else /* no NBPG */
34517 # define getpagesize() NBPC
34518 # else /* no NBPC */
34520 # define getpagesize() PAGESIZE
34521 # endif /* PAGESIZE */
34522 # endif /* no NBPC */
34523 # endif /* no NBPG */
34524 # endif /* no EXEC_PAGESIZE */
34525 # else /* no HAVE_SYS_PARAM_H */
34526 # define getpagesize() 8192 /* punt totally */
34527 # endif /* no HAVE_SYS_PARAM_H */
34528 # endif /* no _SC_PAGESIZE */
34530 #endif /* no HAVE_GETPAGESIZE */
34535 char *data, *data2, *data3;
34539 pagesize = getpagesize ();
34541 /* First, make a file with some known garbage in it. */
34542 data = (char *) malloc (pagesize);
34545 for (i = 0; i < pagesize; ++i)
34546 *(data + i) = rand ();
34548 fd = creat ("conftest.mmap", 0600);
34551 if (write (fd, data, pagesize) != pagesize)
34555 /* Next, try to mmap the file at a fixed address which already has
34556 something else allocated at it. If we can, also make sure that
34557 we see the same garbage. */
34558 fd = open ("conftest.mmap", O_RDWR);
34561 data2 = (char *) malloc (2 * pagesize);
34564 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34565 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34566 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34568 for (i = 0; i < pagesize; ++i)
34569 if (*(data + i) != *(data2 + i))
34572 /* Finally, make sure that changes to the mapped area do not
34573 percolate back to the file as seen by read(). (This is a bug on
34574 some variants of i386 svr4.0.) */
34575 for (i = 0; i < pagesize; ++i)
34576 *(data2 + i) = *(data2 + i) + 1;
34577 data3 = (char *) malloc (pagesize);
34580 if (read (fd, data3, pagesize) != pagesize)
34582 for (i = 0; i < pagesize; ++i)
34583 if (*(data + i) != *(data3 + i))
34589 rm -f conftest
$ac_exeext
34590 if { (ac_try
="$ac_link"
34591 case "(($ac_try" in
34592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34593 *) ac_try_echo=$ac_try;;
34595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34596 (eval "$ac_link") 2>&5
34598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34600 { (case "(($ac_try" in
34601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34602 *) ac_try_echo
=$ac_try;;
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605 (eval "$ac_try") 2>&5
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); }; }; then
34609 ac_cv_func_mmap_fixed_mapped
=yes
34611 echo "$as_me: program exited with status $ac_status" >&5
34612 echo "$as_me: failed program was:" >&5
34613 sed 's/^/| /' conftest.
$ac_ext >&5
34615 ( exit $ac_status )
34616 ac_cv_func_mmap_fixed_mapped
=no
34618 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34623 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34624 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34625 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34627 cat >>confdefs.h
<<\_ACEOF
34628 #define HAVE_MMAP 1
34632 rm -f conftest.mmap
34634 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34635 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34636 if test "${ac_cv_func_mmap_file+set}" = set; then
34637 echo $ECHO_N "(cached) $ECHO_C" >&6
34640 ac_cpp
='$CPP $CPPFLAGS'
34641 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34642 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34643 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34645 if test "$cross_compiling" = yes; then
34646 ac_cv_func_mmap_file
=no
34648 cat >conftest.
$ac_ext <<_ACEOF
34652 cat confdefs.h
>>conftest.
$ac_ext
34653 cat >>conftest.
$ac_ext <<_ACEOF
34654 /* end confdefs.h. */
34656 #include <sys/types.h>
34657 #include <sys/mman.h>
34665 fd = creat ("foo",0777);
34666 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34668 return (fd != (int) MAP_FAILED);
34673 rm -f conftest
$ac_exeext
34674 if { (ac_try
="$ac_link"
34675 case "(($ac_try" in
34676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34677 *) ac_try_echo=$ac_try;;
34679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34680 (eval "$ac_link") 2>&5
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34684 { (case "(($ac_try" in
34685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34686 *) ac_try_echo
=$ac_try;;
34688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34689 (eval "$ac_try") 2>&5
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); }; }; then
34693 ac_cv_func_mmap_file
=yes
34695 echo "$as_me: program exited with status $ac_status" >&5
34696 echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.
$ac_ext >&5
34699 ( exit $ac_status )
34700 ac_cv_func_mmap_file
=no
34702 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34707 ac_cpp
='$CPP $CPPFLAGS'
34708 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34709 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34710 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34714 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34715 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34716 if test "$ac_cv_func_mmap_file" = yes; then
34718 cat >>confdefs.h
<<\_ACEOF
34719 #define HAVE_MMAP_FILE
34726 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34727 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34728 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34729 echo $ECHO_N "(cached) $ECHO_C" >&6
34731 if test "$llvm_cv_os_type" = "Interix" ; then
34732 ac_cv_need_dev_zero_for_mmap
=yes
34734 ac_cv_need_dev_zero_for_mmap
=no
34738 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34739 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34740 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34742 cat >>confdefs.h
<<\_ACEOF
34743 #define NEED_DEV_ZERO_FOR_MMAP 1
34748 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34750 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34751 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34753 if test "$ac_cv_func_mmap_file" = "no"
34755 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34756 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34760 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34761 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34762 cat >conftest.
$ac_ext <<_ACEOF
34765 cat confdefs.h
>>conftest.
$ac_ext
34766 cat >>conftest.
$ac_ext <<_ACEOF
34767 /* end confdefs.h. */
34769 volatile unsigned long val = 1;
34770 __sync_synchronize();
34771 __sync_val_compare_and_swap(&val, 1, 0);
34772 __sync_add_and_fetch(&val, 1);
34773 __sync_sub_and_fetch(&val, 1);
34778 rm -f conftest.
$ac_objext conftest
$ac_exeext
34779 if { (ac_try
="$ac_link"
34780 case "(($ac_try" in
34781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34782 *) ac_try_echo=$ac_try;;
34784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34785 (eval "$ac_link") 2>conftest.er1
34787 grep -v '^ *+' conftest.er1 >conftest.err
34789 cat conftest.err >&5
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); } &&
34792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34793 { (case "(($ac_try" in
34794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34795 *) ac_try_echo
=$ac_try;;
34797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34798 (eval "$ac_try") 2>&5
34800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801 (exit $ac_status); }; } &&
34802 { ac_try
='test -s conftest$ac_exeext'
34803 { (case "(($ac_try" in
34804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34805 *) ac_try_echo=$ac_try;;
34807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34808 (eval "$ac_try") 2>&5
34810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811 (exit $ac_status); }; }; then
34812 { echo "$as_me:$LINENO: result: yes" >&5
34813 echo "${ECHO_T}yes" >&6; }
34815 cat >>confdefs.h <<\_ACEOF
34816 #define LLVM_MULTITHREADED 1
34820 echo "$as_me: failed program was:" >&5
34821 sed 's/^/| /' conftest.$ac_ext >&5
34823 { echo "$as_me:$LINENO: result: no" >&5
34824 echo "${ECHO_T}no" >&6; }
34826 cat >>confdefs.h <<\_ACEOF
34827 #define LLVM_MULTITHREADED 0
34830 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34831 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34834 rm -f core conftest.err conftest.$ac_objext \
34835 conftest$ac_exeext conftest.$ac_ext
34840 for ac_func in __dso_handle
34842 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34846 echo $ECHO_N "(cached) $ECHO_C" >&6
34848 cat >conftest.$ac_ext <<_ACEOF
34851 cat confdefs.h >>conftest.$ac_ext
34852 cat >>conftest.$ac_ext <<_ACEOF
34853 /* end confdefs.h. */
34854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34856 #define $ac_func innocuous_$ac_func
34858 /* System header to define __stub macros and hopefully few prototypes,
34859 which can conflict with char $ac_func (); below.
34860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34861 <limits.h> exists even on freestanding compilers. */
34864 # include <limits.h>
34866 # include <assert.h>
34871 /* Override any GCC internal prototype to avoid an error.
34872 Use char because int might match the return type of a GCC
34873 builtin and then its argument prototype would still apply. */
34878 /* The GNU C library defines this for functions which it implements
34879 to always fail with ENOSYS. Some functions are actually named
34880 something starting with __ and the normal name is an alias. */
34881 #if defined __stub_$ac_func || defined __stub___$ac_func
34888 return $ac_func ();
34893 rm -f conftest.$ac_objext conftest$ac_exeext
34894 if { (ac_try="$ac_link"
34895 case "(($ac_try" in
34896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34897 *) ac_try_echo
=$ac_try;;
34899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34900 (eval "$ac_link") 2>conftest.er1
34902 grep -v '^ *+' conftest.er1
>conftest.err
34904 cat conftest.err
>&5
34905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906 (exit $ac_status); } &&
34907 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34908 { (case "(($ac_try" in
34909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34910 *) ac_try_echo=$ac_try;;
34912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34913 (eval "$ac_try") 2>&5
34915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916 (exit $ac_status); }; } &&
34917 { ac_try='test -s conftest$ac_exeext'
34918 { (case "(($ac_try" in
34919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34920 *) ac_try_echo
=$ac_try;;
34922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34923 (eval "$ac_try") 2>&5
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); }; }; then
34927 eval "$as_ac_var=yes"
34929 echo "$as_me: failed program was:" >&5
34930 sed 's/^/| /' conftest.
$ac_ext >&5
34932 eval "$as_ac_var=no"
34935 rm -f core conftest.err conftest.
$ac_objext \
34936 conftest
$ac_exeext conftest.
$ac_ext
34938 ac_res
=`eval echo '${'$as_ac_var'}'`
34939 { echo "$as_me:$LINENO: result: $ac_res" >&5
34940 echo "${ECHO_T}$ac_res" >&6; }
34941 if test `eval echo '${'$as_ac_var'}'` = yes; then
34942 cat >>confdefs.h
<<_ACEOF
34943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34950 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34951 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34952 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34953 echo $ECHO_N "(cached) $ECHO_C" >&6
34955 llvm_cv_llvmgcc_sanity
="no"
34956 if test -x "$LLVMGCC" ; then
34957 cp /dev
/null conftest.c
34958 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34959 grep 'target datalayout =' > /dev
/null
2>&1
34960 if test $?
-eq 0 ; then
34961 llvm_cv_llvmgcc_sanity
="yes"
34966 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34967 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34969 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34970 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34971 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34972 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
34973 LLVMCC1
=$llvmcc1path
34975 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
34976 LLVMCC1PLUS
=$llvmcc1pluspath
34978 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34979 LLVMGCCDIR
=$llvmgccdir
34981 llvmgcclibexec
=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34982 LLVMGCCLIBEXEC
=$llvmgcclibexec
34984 llvmgccversion
=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34985 llvmgccmajvers
=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34986 LLVMGCC_VERSION
=$llvmgccversion
34988 LLVMGCC_MAJVERS
=$llvmgccmajvers
34990 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34991 LLVMGCC_LANGS
=$llvmgcclangs
34993 { echo "$as_me:$LINENO: result: ok" >&5
34994 echo "${ECHO_T}ok" >&6; }
34997 SHLIBEXT
=$libltdl_cv_shlibext
35000 # Translate the various configuration directories and other basic
35001 # information into substitutions that will end up in Makefile.config.in
35002 # that these configured values can be used by the makefiles
35003 if test "${prefix}" = "NONE" ; then
35004 prefix
="/usr/local"
35006 eval LLVM_PREFIX
="${prefix}";
35007 eval LLVM_BINDIR
="${prefix}/bin";
35008 eval LLVM_LIBDIR
="${prefix}/lib";
35009 eval LLVM_DATADIR
="${prefix}/share/llvm";
35010 eval LLVM_DOCSDIR
="${prefix}/docs/llvm";
35011 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
35012 eval LLVM_INCLUDEDIR
="${prefix}/include";
35013 eval LLVM_INFODIR
="${prefix}/info";
35014 eval LLVM_MANDIR
="${prefix}/man";
35015 LLVM_CONFIGTIME
=`date`
35027 # Place the various directores into the config.h file as #defines so that we
35028 # can know about the installation paths within LLVM.
35030 cat >>confdefs.h
<<_ACEOF
35031 #define LLVM_PREFIX "$LLVM_PREFIX"
35035 cat >>confdefs.h
<<_ACEOF
35036 #define LLVM_BINDIR "$LLVM_BINDIR"
35040 cat >>confdefs.h
<<_ACEOF
35041 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35045 cat >>confdefs.h
<<_ACEOF
35046 #define LLVM_DATADIR "$LLVM_DATADIR"
35050 cat >>confdefs.h
<<_ACEOF
35051 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35055 cat >>confdefs.h
<<_ACEOF
35056 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35060 cat >>confdefs.h
<<_ACEOF
35061 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35065 cat >>confdefs.h
<<_ACEOF
35066 #define LLVM_INFODIR "$LLVM_INFODIR"
35070 cat >>confdefs.h
<<_ACEOF
35071 #define LLVM_MANDIR "$LLVM_MANDIR"
35075 cat >>confdefs.h
<<_ACEOF
35076 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35080 cat >>confdefs.h
<<_ACEOF
35081 #define LLVM_HOSTTRIPLE "$host"
35085 # Determine which bindings to build.
35086 if test "$BINDINGS_TO_BUILD" = auto
; then
35087 BINDINGS_TO_BUILD
=""
35088 if test "x$OCAMLC" != x
-a "x$OCAMLDEP" != x
; then
35089 BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD"
35092 BINDINGS_TO_BUILD
=$BINDINGS_TO_BUILD
35095 # This isn't really configurey, but it avoids having to repeat the list in
35100 # Do any work necessary to ensure that bindings have what they need.
35101 binding_prereqs_failed
=0
35102 for a_binding
in $BINDINGS_TO_BUILD ; do
35103 case "$a_binding" in
35105 if test "x$OCAMLC" = x
; then
35106 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35107 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35108 binding_prereqs_failed
=1
35110 if test "x$OCAMLDEP" = x
; then
35111 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35112 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35113 binding_prereqs_failed
=1
35115 if test "x$OCAMLOPT" = x
; then
35116 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35117 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35119 if test "x$with_ocaml_libdir" != xauto
; then
35120 OCAML_LIBDIR
=$with_ocaml_libdir
35123 ocaml_stdlib
="`"$OCAMLC" -where`"
35124 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35126 # ocaml stdlib is beneath our prefix; use stdlib
35127 OCAML_LIBDIR
=$ocaml_stdlib
35130 # ocaml stdlib is outside our prefix; use libdir/ocaml
35131 OCAML_LIBDIR
=$LLVM_LIBDIR/ocaml
35138 if test "$binding_prereqs_failed" = 1 ; then
35139 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35140 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35141 { (exit 1); exit 1; }; }
35144 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35145 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35146 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35147 echo $ECHO_N "(cached) $ECHO_C" >&6
35150 ac_cpp
='$CXXCPP $CPPFLAGS'
35151 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35152 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35153 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
35155 oldcxxflags
="$CXXFLAGS"
35156 CXXFLAGS
="$CXXFLAGS -fvisibility-inlines-hidden"
35157 cat >conftest.
$ac_ext <<_ACEOF
35160 cat confdefs.h
>>conftest.
$ac_ext
35161 cat >>conftest.
$ac_ext <<_ACEOF
35162 /* end confdefs.h. */
35172 rm -f conftest.
$ac_objext
35173 if { (ac_try
="$ac_compile"
35174 case "(($ac_try" in
35175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35176 *) ac_try_echo=$ac_try;;
35178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35179 (eval "$ac_compile") 2>conftest.er1
35181 grep -v '^ *+' conftest.er1 >conftest.err
35183 cat conftest.err >&5
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); } &&
35186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35187 { (case "(($ac_try" in
35188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35189 *) ac_try_echo
=$ac_try;;
35191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35192 (eval "$ac_try") 2>&5
35194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 (exit $ac_status); }; } &&
35196 { ac_try
='test -s conftest.$ac_objext'
35197 { (case "(($ac_try" in
35198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35199 *) ac_try_echo=$ac_try;;
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202 (eval "$ac_try") 2>&5
35204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); }; }; then
35206 llvm_cv_cxx_visibility_inlines_hidden=yes
35208 echo "$as_me: failed program was:" >&5
35209 sed 's/^/| /' conftest.$ac_ext >&5
35211 llvm_cv_cxx_visibility_inlines_hidden=no
35214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35215 CXXFLAGS="$oldcxxflags"
35217 ac_cpp='$CPP $CPPFLAGS'
35218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35224 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35225 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35226 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35227 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35230 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35235 if test "$llvm_cv_link_use_r" = "yes" ; then
35242 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35243 RDYNAMIC="-Wl,-export-dynamic"
35250 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35252 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35254 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35256 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35258 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35260 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35263 ac_config_files="$ac_config_files Makefile.config"
35266 ac_config_files="$ac_config_files llvm.spec"
35269 ac_config_files="$ac_config_files docs/doxygen.cfg"
35272 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35275 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35278 ac_config_commands="$ac_config_commands setup"
35280 ac_config_commands="$ac_config_commands Makefile"
35283 ac_config_commands="$ac_config_commands Makefile.common"
35286 ac_config_commands="$ac_config_commands examples/Makefile"
35289 ac_config_commands="$ac_config_commands lib/Makefile"
35292 ac_config_commands="$ac_config_commands runtime/Makefile"
35295 ac_config_commands="$ac_config_commands test/Makefile"
35298 ac_config_commands="$ac_config_commands test/Makefile.tests"
35301 ac_config_commands="$ac_config_commands unittests/Makefile"
35304 ac_config_commands="$ac_config_commands tools/Makefile"
35307 ac_config_commands="$ac_config_commands utils/Makefile"
35310 ac_config_commands="$ac_config_commands projects/Makefile"
35313 ac_config_commands="$ac_config_commands bindings/Makefile"
35316 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35320 cat >confcache <<\_ACEOF
35321 # This file is a shell script that caches the results of configure
35322 # tests run on this system so they can be shared between configure
35323 # scripts and configure runs, see configure's option --config-cache.
35324 # It is not useful on other systems. If it contains results you don't
35325 # want to keep, you may remove or edit it.
35327 # config.status only pays attention to the cache file if you give it
35328 # the --recheck option to rerun configure.
35330 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
35331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35332 # following values.
35336 # The following way of writing the cache mishandles newlines in values,
35337 # but we know of no workaround that is simple, portable, and efficient.
35338 # So, we kill variables containing newlines.
35339 # Ultrix sh set writes to stderr and can't be redirected directly,
35340 # and sets the high bit in the cache file unless we assign to the vars.
35342 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35343 eval ac_val
=\$
$ac_var
35347 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35348 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35351 _ | IFS | as_nl
) ;; #(
35352 *) $as_unset $ac_var ;;
35358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35359 *${as_nl}ac_space
=\
*)
35360 # `set' does not quote correctly, so add quotes (double-quote
35361 # substitution turns \\\\ into \\, and sed turns \\ into \).
35364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35367 # `set' quotes correctly as required by POSIX, so do not add quotes.
35368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35381 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
35382 if test -w "$cache_file"; then
35383 test "x$cache_file" != "x/dev/null" &&
35384 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35385 echo "$as_me: updating cache $cache_file" >&6;}
35386 cat confcache
>$cache_file
35388 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35389 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35394 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35395 # Let make expand exec_prefix.
35396 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35398 DEFS
=-DHAVE_CONFIG_H
35402 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35403 # 1. Remove the extension, and $U if already installed.
35404 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35405 ac_i
=`echo "$ac_i" | sed "$ac_script"`
35406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35407 # will be set to the directory where LIBOBJS objects are built.
35408 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35409 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35411 LIBOBJS
=$ac_libobjs
35413 LTLIBOBJS
=$ac_ltlibobjs
35416 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35417 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35418 Usually this means the macro was only invoked conditionally." >&5
35419 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35420 Usually this means the macro was only invoked conditionally." >&2;}
35421 { (exit 1); exit 1; }; }
35423 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35424 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35425 Usually this means the macro was only invoked conditionally." >&5
35426 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35427 Usually this means the macro was only invoked conditionally." >&2;}
35428 { (exit 1); exit 1; }; }
35431 : ${CONFIG_STATUS=./config.status}
35432 ac_clean_files_save
=$ac_clean_files
35433 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35434 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35435 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35436 cat >$CONFIG_STATUS <<_ACEOF
35438 # Generated by $as_me.
35439 # Run this file to recreate the current configuration.
35440 # Compiler output produced by configure, useful for debugging
35441 # configure, is in config.log if it exists.
35444 ac_cs_recheck=false
35446 SHELL=\${CONFIG_SHELL-$SHELL}
35449 cat >>$CONFIG_STATUS <<\_ACEOF
35450 ## --------------------- ##
35451 ## M4sh Initialization. ##
35452 ## --------------------- ##
35454 # Be Bourne compatible
35455 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
35458 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35459 # is contrary to our usage. Disable this feature.
35460 alias -g '${1+"$@"}'='"$@"'
35461 setopt NO_GLOB_SUBST
35463 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
35465 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
35466 DUALCASE
=1; export DUALCASE
# for MKS sh
35470 # Avoid depending upon Character Ranges.
35471 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35472 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35473 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35474 as_cr_digits
='0123456789'
35475 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35477 # The user is always right.
35478 if test "${PATH_SEPARATOR+set}" != set; then
35479 echo "#! /bin/sh" >conf$$.sh
35480 echo "exit 0" >>conf$$.sh
35482 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
35490 # Support unset when possible.
35491 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35499 # We need space, tab and new line, in precisely that order. Quoting is
35500 # there to prevent editors from complaining about space-tab.
35501 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35502 # splitting by setting IFS to empty value.)
35507 # Find who we are. Look in the path if we contain no directory separator.
35509 *[\\/]* ) as_myself
=$0 ;;
35510 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
35511 for as_dir
in $PATH
35514 test -z "$as_dir" && as_dir
=.
35515 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
35521 # We did not find ourselves, most probably we were run as `sh COMMAND'
35522 # in which case we are not to be found in the path.
35523 if test "x$as_myself" = x
; then
35526 if test ! -f "$as_myself"; then
35527 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35528 { (exit 1); exit 1; }
35531 # Work around bugs in pre-3.0 UWIN ksh.
35532 for as_var
in ENV MAIL MAILPATH
35533 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35541 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35542 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35543 LC_TELEPHONE LC_TIME
35545 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35546 eval $as_var=C
; export $as_var
35548 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35552 # Required to use basename.
35553 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35554 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35560 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35561 as_basename
=basename
35567 # Name of the executable.
35568 as_me
=`$as_basename -- "$0" ||
35569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35570 X"$0" : 'X\(//\)$' \| \
35571 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35573 sed '/^.*\/\([^/][^/]*\)\/*$/{
35592 as_lineno_1
=$LINENO
35593 as_lineno_2
=$LINENO
35594 test "x$as_lineno_1" != "x$as_lineno_2" &&
35595 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
35597 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35598 # uniformly replaced by the line number. The first 'sed' inserts a
35599 # line-number line after each line using $LINENO; the second 'sed'
35600 # does the real work. The second script uses 'N' to pair each
35601 # line-number line with the line containing $LINENO, and appends
35602 # trailing '-' during substitution so that $LINENO is not a special
35603 # case at line end.
35604 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35605 # scripts with optimization help from Paolo Bonzini. Blame Lee
35606 # E. McMahon (1931-1989) for sed's syntax. :-)
35618 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35621 ' >$as_me.lineno
&&
35622 chmod +x
"$as_me.lineno" ||
35623 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35624 { (exit 1); exit 1; }; }
35626 # Don't try to exec as it changes $[0], causing all sort of problems
35627 # (the dirname of $[0] is not the place where we might find the
35628 # original and so on. Autoconf is especially sensitive to this).
35629 .
"./$as_me.lineno"
35630 # Exit status is that of the last command.
35635 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35641 ECHO_C
= ECHO_N
= ECHO_T
=
35642 case `echo -n x` in
35644 case `echo 'x\c'` in
35645 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35652 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35653 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35659 rm -f conf$$ conf$$.exe conf$$.
file
35660 if test -d conf$$.dir
; then
35661 rm -f conf$$.dir
/conf$$.
file
35667 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35669 # ... but there are two gotchas:
35670 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35671 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35672 # In both cases, we have to default to `cp -p'.
35673 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35675 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35680 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35681 rmdir conf$$.dir
2>/dev
/null
35683 if mkdir
-p .
2>/dev
/null
; then
35686 test -d .
/-p && rmdir .
/-p
35690 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35691 # systems may use methods other than mode bits to determine executability.
35692 cat >conf$$.
file <<_ASEOF
35696 chmod +x conf$$.
file
35697 if test -x conf$$.
file >/dev
/null
2>&1; then
35698 as_executable_p
="test -x"
35704 # Sed expression to map a string onto a valid CPP name.
35705 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35707 # Sed expression to map a string onto a valid variable name.
35708 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35713 # Save the log message, to keep $[0] and so on meaningful, and to
35714 # report actual input values of CONFIG_FILES etc. instead of their
35715 # values after options handling.
35717 This file was extended by llvm $as_me 2.6svn, which was
35718 generated by GNU Autoconf 2.60. Invocation command line was
35720 CONFIG_FILES = $CONFIG_FILES
35721 CONFIG_HEADERS = $CONFIG_HEADERS
35722 CONFIG_LINKS = $CONFIG_LINKS
35723 CONFIG_COMMANDS = $CONFIG_COMMANDS
35726 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35731 cat >>$CONFIG_STATUS <<_ACEOF
35732 # Files that config.status was made for.
35733 config_files="$ac_config_files"
35734 config_headers="$ac_config_headers"
35735 config_commands="$ac_config_commands"
35739 cat >>$CONFIG_STATUS <<\_ACEOF
35741 \`$as_me' instantiates files from templates according to the
35742 current configuration.
35744 Usage: $0 [OPTIONS] [FILE]...
35746 -h, --help print this help, then exit
35747 -V, --version print version number, then exit
35748 -q, --quiet do not print progress messages
35749 -d, --debug don't remove temporary files
35750 --recheck update $as_me by reconfiguring in the same conditions
35751 --file=FILE[:TEMPLATE]
35752 instantiate the configuration file FILE
35753 --header=FILE[:TEMPLATE]
35754 instantiate the configuration header FILE
35756 Configuration files:
35759 Configuration headers:
35762 Configuration commands:
35765 Report bugs to <bug-autoconf@gnu.org>."
35768 cat >>$CONFIG_STATUS <<_ACEOF
35770 llvm config.status 2.6svn
35771 configured by $0, generated by GNU Autoconf 2.60,
35772 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35774 Copyright (C) 2006 Free Software Foundation, Inc.
35775 This config.status script is free software; the Free Software Foundation
35776 gives unlimited permission to copy, distribute and modify it."
35783 cat >>$CONFIG_STATUS <<\_ACEOF
35784 # If no file are specified by the user, then we need to provide default
35785 # value. By we need to know if files were specified by the user.
35791 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35792 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35803 # Handling of the options.
35804 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35806 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35807 echo "$ac_cs_version"; exit ;;
35808 --debug |
--debu |
--deb |
--de |
--d |
-d )
35810 --file |
--fil |
--fi |
--f )
35812 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
35813 ac_need_defaults
=false
;;
35814 --header |
--heade |
--head |
--hea )
35816 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
35817 ac_need_defaults
=false
;;
35819 # Conflict between --help and --header
35820 { echo "$as_me: error: ambiguous option: $1
35821 Try \`$0 --help' for more information." >&2
35822 { (exit 1); exit 1; }; };;
35823 --help |
--hel |
-h )
35824 echo "$ac_cs_usage"; exit ;;
35825 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35826 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35829 # This is an error.
35830 -*) { echo "$as_me: error: unrecognized option: $1
35831 Try \`$0 --help' for more information." >&2
35832 { (exit 1); exit 1; }; } ;;
35834 *) ac_config_targets
="$ac_config_targets $1"
35835 ac_need_defaults
=false
;;
35841 ac_configure_extra_args
=
35843 if $ac_cs_silent; then
35845 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35849 cat >>$CONFIG_STATUS <<_ACEOF
35850 if \$ac_cs_recheck; then
35851 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35852 CONFIG_SHELL=$SHELL
35853 export CONFIG_SHELL
35854 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35858 cat >>$CONFIG_STATUS <<\_ACEOF
35862 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35863 ## Running $as_me. ##
35869 cat >>$CONFIG_STATUS <<_ACEOF
35873 llvm_src="${srcdir}"
35877 cat >>$CONFIG_STATUS <<\_ACEOF
35879 # Handling of arguments.
35880 for ac_config_target
in $ac_config_targets
35882 case $ac_config_target in
35883 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35884 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35885 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35886 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35887 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35888 "include/llvm/ADT/iterator.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35889 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
35890 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
35891 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
35892 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35893 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35894 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
35895 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
35896 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
35897 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
35898 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
35899 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
35900 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
35901 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
35902 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
35903 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
35904 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
35905 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
35906 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
35907 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35909 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35910 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35911 { (exit 1); exit 1; }; };;
35916 # If the user did not use the arguments to specify the items to instantiate,
35917 # then the envvar interface is used. Set only those that are not.
35918 # We use the long form for the default assignment because of an extremely
35919 # bizarre bug on SunOS 4.1.3.
35920 if $ac_need_defaults; then
35921 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35922 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35923 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35926 # Have a temporary directory for convenience. Make it in the build tree
35927 # simply because there is no reason against having it here, and in addition,
35928 # creating and moving files from /tmp can sometimes cause problems.
35929 # Hook for its removal unless debugging.
35930 # Note that there is a small window in which the directory will not be cleaned:
35931 # after its creation but before its name has been assigned to `$tmp'.
35935 trap 'exit_status=$?
35936 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35938 trap '{ (exit 1); exit 1; }' 1 2 13 15
35940 # Create a (secure) tmp directory for tmp files.
35943 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35944 test -n "$tmp" && test -d "$tmp"
35947 tmp
=.
/conf$$
-$RANDOM
35948 (umask 077 && mkdir
"$tmp")
35951 echo "$me: cannot create a temporary directory in ." >&2
35952 { (exit 1); exit 1; }
35956 # Set up the sed scripts for CONFIG_FILES section.
35959 # No need to generate the scripts if there are no CONFIG_FILES.
35960 # This happens for instance when ./config.status config.h
35961 if test -n "$CONFIG_FILES"; then
35968 for ac_last_try
in false false false false false
:; do
35969 cat >conf$
$subs.
sed <<_ACEOF
35970 SHELL!$SHELL$ac_delim
35971 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35972 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35973 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35974 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35975 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35976 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35977 exec_prefix!$exec_prefix$ac_delim
35978 prefix!$prefix$ac_delim
35979 program_transform_name!$program_transform_name$ac_delim
35980 bindir!$bindir$ac_delim
35981 sbindir!$sbindir$ac_delim
35982 libexecdir!$libexecdir$ac_delim
35983 datarootdir!$datarootdir$ac_delim
35984 datadir!$datadir$ac_delim
35985 sysconfdir!$sysconfdir$ac_delim
35986 sharedstatedir!$sharedstatedir$ac_delim
35987 localstatedir!$localstatedir$ac_delim
35988 includedir!$includedir$ac_delim
35989 oldincludedir!$oldincludedir$ac_delim
35990 docdir!$docdir$ac_delim
35991 infodir!$infodir$ac_delim
35992 htmldir!$htmldir$ac_delim
35993 dvidir!$dvidir$ac_delim
35994 pdfdir!$pdfdir$ac_delim
35995 psdir!$psdir$ac_delim
35996 libdir!$libdir$ac_delim
35997 localedir!$localedir$ac_delim
35998 mandir!$mandir$ac_delim
35999 DEFS!$DEFS$ac_delim
36000 ECHO_C!$ECHO_C$ac_delim
36001 ECHO_N!$ECHO_N$ac_delim
36002 ECHO_T!$ECHO_T$ac_delim
36003 LIBS!$LIBS$ac_delim
36004 build_alias!$build_alias$ac_delim
36005 host_alias!$host_alias$ac_delim
36006 target_alias!$target_alias$ac_delim
36007 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36008 subdirs!$subdirs$ac_delim
36009 build!$build$ac_delim
36010 build_cpu!$build_cpu$ac_delim
36011 build_vendor!$build_vendor$ac_delim
36012 build_os!$build_os$ac_delim
36013 host!$host$ac_delim
36014 host_cpu!$host_cpu$ac_delim
36015 host_vendor!$host_vendor$ac_delim
36016 host_os!$host_os$ac_delim
36017 target!$target$ac_delim
36018 target_cpu!$target_cpu$ac_delim
36019 target_vendor!$target_vendor$ac_delim
36020 target_os!$target_os$ac_delim
36022 LINKALL!$LINKALL$ac_delim
36023 NOLINKALL!$NOLINKALL$ac_delim
36024 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36025 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36026 ARCH!$ARCH$ac_delim
36027 ENDIAN!$ENDIAN$ac_delim
36029 CFLAGS!$CFLAGS$ac_delim
36030 LDFLAGS!$LDFLAGS$ac_delim
36031 CPPFLAGS!$CPPFLAGS$ac_delim
36032 ac_ct_CC!$ac_ct_CC$ac_delim
36033 EXEEXT!$EXEEXT$ac_delim
36034 OBJEXT!$OBJEXT$ac_delim
36036 GREP!$GREP$ac_delim
36037 EGREP!$EGREP$ac_delim
36038 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36039 BUILD_CC!$BUILD_CC$ac_delim
36040 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36041 BUILD_CXX!$BUILD_CXX$ac_delim
36042 CVSBUILD!$CVSBUILD$ac_delim
36043 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36044 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36045 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36046 LLVM_COMPACT_SENTINELS!$LLVM_COMPACT_SENTINELS$ac_delim
36047 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36048 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36049 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36051 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36052 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36053 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36054 ENABLE_PIC!$ENABLE_PIC$ac_delim
36055 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36056 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36057 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36058 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36059 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36060 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36061 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36062 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36063 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36065 CXXFLAGS!$CXXFLAGS$ac_delim
36066 ac_ct_CXX!$ac_ct_CXX$ac_delim
36069 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36071 elif $ac_last_try; then
36072 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36073 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36074 { (exit 1); exit 1; }; }
36076 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36080 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36081 if test -n "$ac_eof"; then
36082 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36083 ac_eof
=`expr $ac_eof + 1`
36086 cat >>$CONFIG_STATUS <<_ACEOF
36087 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36091 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36092 s/^/s,@/; s/!/@,|#_!!_#|/
36095 s/'"$ac_delim"'$/,g/; t
36097 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36098 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36099 rm -f conf$
$subs.
sed
36100 cat >>$CONFIG_STATUS <<_ACEOF
36106 for ac_last_try
in false false false false false
:; do
36107 cat >conf$
$subs.
sed <<_ACEOF
36109 ifGNUmake!$ifGNUmake$ac_delim
36110 LN_S!$LN_S$ac_delim
36113 DATE!$DATE$ac_delim
36114 FIND!$FIND$ac_delim
36115 MKDIR!$MKDIR$ac_delim
36117 RANLIB!$RANLIB$ac_delim
36121 BINPWD!$BINPWD$ac_delim
36122 GRAPHVIZ!$GRAPHVIZ$ac_delim
36125 NEATO!$NEATO$ac_delim
36126 TWOPI!$TWOPI$ac_delim
36127 CIRCO!$CIRCO$ac_delim
36129 DOTTY!$DOTTY$ac_delim
36130 PERL!$PERL$ac_delim
36131 HAVE_PERL!$HAVE_PERL$ac_delim
36132 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36133 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36134 INSTALL_DATA!$INSTALL_DATA$ac_delim
36135 BZIP2!$BZIP2$ac_delim
36136 DOXYGEN!$DOXYGEN$ac_delim
36137 GROFF!$GROFF$ac_delim
36138 GZIP!$GZIP$ac_delim
36139 POD2HTML!$POD2HTML$ac_delim
36140 POD2MAN!$POD2MAN$ac_delim
36141 RUNTEST!$RUNTEST$ac_delim
36142 TCLSH!$TCLSH$ac_delim
36144 OCAMLC!$OCAMLC$ac_delim
36145 OCAMLOPT!$OCAMLOPT$ac_delim
36146 OCAMLDEP!$OCAMLDEP$ac_delim
36147 OCAMLDOC!$OCAMLDOC$ac_delim
36149 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36150 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36151 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36152 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36153 LIBADD_DL!$LIBADD_DL$ac_delim
36154 ECHO!$ECHO$ac_delim
36156 STRIP!$STRIP$ac_delim
36157 CXXCPP!$CXXCPP$ac_delim
36159 FFLAGS!$FFLAGS$ac_delim
36160 ac_ct_F77!$ac_ct_F77$ac_delim
36161 LIBTOOL!$LIBTOOL$ac_delim
36162 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36163 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36164 LLVMGCC!$LLVMGCC$ac_delim
36165 LLVMGXX!$LLVMGXX$ac_delim
36166 USE_UDIS86!$USE_UDIS86$ac_delim
36167 USE_OPROFILE!$USE_OPROFILE$ac_delim
36168 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36169 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36170 ALLOCA!$ALLOCA$ac_delim
36171 MMAP_FILE!$MMAP_FILE$ac_delim
36172 LLVMCC1!$LLVMCC1$ac_delim
36173 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36174 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36175 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36176 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36177 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36178 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36179 SHLIBEXT!$SHLIBEXT$ac_delim
36180 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36181 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36182 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36183 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36184 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36185 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36186 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36187 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36188 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36189 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36190 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36191 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36192 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36193 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36194 RPATH!$RPATH$ac_delim
36195 RDYNAMIC!$RDYNAMIC$ac_delim
36196 LIBOBJS!$LIBOBJS$ac_delim
36197 LTLIBOBJS!$LTLIBOBJS$ac_delim
36200 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
36202 elif $ac_last_try; then
36203 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36204 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36205 { (exit 1); exit 1; }; }
36207 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36211 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36212 if test -n "$ac_eof"; then
36213 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36214 ac_eof
=`expr $ac_eof + 1`
36217 cat >>$CONFIG_STATUS <<_ACEOF
36218 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36222 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36223 s/^/s,@/; s/!/@,|#_!!_#|/
36226 s/'"$ac_delim"'$/,g/; t
36228 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36229 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36230 rm -f conf$
$subs.
sed
36231 cat >>$CONFIG_STATUS <<_ACEOF
36238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36240 # trailing colons and then remove the whole line if VPATH becomes empty
36241 # (actually we leave an empty line to preserve line numbers).
36242 if test "x$srcdir" = x.
; then
36243 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
36244 s/:*\$(srcdir):*/:/
36245 s/:*\${srcdir}:*/:/
36247 s/^\([^=]*=[ ]*\):*/\1/
36253 cat >>$CONFIG_STATUS <<\_ACEOF
36254 fi # test -n "$CONFIG_FILES"
36257 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
36260 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36262 case $ac_mode$ac_tag in
36264 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36265 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36266 { (exit 1); exit 1; }; };;
36267 :[FH
]-) ac_tag
=-:-;;
36268 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36285 -) ac_f
="$tmp/stdin";;
36286 *) # Look for the file first in the build tree, then in the source tree
36287 # (if the path is not absolute). The absolute path cannot be DOS-style,
36288 # because $ac_f cannot contain `:'.
36292 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36294 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36295 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36296 { (exit 1); exit 1; }; };;
36298 ac_file_inputs
="$ac_file_inputs $ac_f"
36301 # Let's still pretend it is `configure' which instantiates (i.e., don't
36302 # use $as_me), people would be surprised to read:
36303 # /* config.h. Generated by config.status. */
36304 configure_input
="Generated from "`IFS=:
36305 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36306 if test x
"$ac_file" != x-
; then
36307 configure_input
="$ac_file. $configure_input"
36308 { echo "$as_me:$LINENO: creating $ac_file" >&5
36309 echo "$as_me: creating $ac_file" >&6;}
36313 *:-:* |
*:-) cat >"$tmp/stdin";;
36318 ac_dir
=`$as_dirname -- "$ac_file" ||
36319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36320 X"$ac_file" : 'X\(//\)[^/]' \| \
36321 X"$ac_file" : 'X\(//\)$' \| \
36322 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36328 /^X\(\/\/\)[^/].*/{
36343 -*) as_dir
=.
/$as_dir;;
36345 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36349 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36350 *) as_qdir
=$as_dir;;
36352 as_dirs
="'$as_qdir' $as_dirs"
36353 as_dir
=`$as_dirname -- "$as_dir" ||
36354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36355 X"$as_dir" : 'X\(//\)[^/]' \| \
36356 X"$as_dir" : 'X\(//\)$' \| \
36357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36363 /^X\(\/\/\)[^/].*/{
36376 test -d "$as_dir" && break
36378 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36379 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36381 { (exit 1); exit 1; }; }; }
36385 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36387 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36388 # A ".." for each directory in $ac_dir_suffix.
36389 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36390 case $ac_top_builddir_sub in
36391 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36392 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36395 ac_abs_top_builddir
=$ac_pwd
36396 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36397 # for backward compatibility:
36398 ac_top_builddir
=$ac_top_build_prefix
36401 .
) # We are building in place.
36403 ac_top_srcdir
=$ac_top_builddir_sub
36404 ac_abs_top_srcdir
=$ac_pwd ;;
36405 [\\/]* | ?
:[\\/]* ) # Absolute name.
36406 ac_srcdir
=$srcdir$ac_dir_suffix;
36407 ac_top_srcdir
=$srcdir
36408 ac_abs_top_srcdir
=$srcdir ;;
36409 *) # Relative name.
36410 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36411 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36412 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36414 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36424 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36425 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36429 cat >>$CONFIG_STATUS <<\_ACEOF
36430 # If the template does not know about datarootdir, expand it.
36431 # FIXME: This hack should be removed a few years after 2.60.
36432 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36434 case `sed -n '/datarootdir/ {
36443 ' $ac_file_inputs` in
36444 *datarootdir
*) ac_datarootdir_seen
=yes;;
36445 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36446 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36447 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36449 cat >>$CONFIG_STATUS <<_ACEOF
36450 ac_datarootdir_hack='
36451 s&@datadir@&$datadir&g
36452 s&@docdir@&$docdir&g
36453 s&@infodir@&$infodir&g
36454 s&@localedir@&$localedir&g
36455 s&@mandir@&$mandir&g
36456 s&\\\${datarootdir}&$datarootdir&g' ;;
36460 # Neutralize VPATH when `$srcdir' = `.'.
36461 # Shell code in configure.ac might set extrasub.
36462 # FIXME: do we really want to maintain this feature?
36463 cat >>$CONFIG_STATUS <<_ACEOF
36467 cat >>$CONFIG_STATUS <<\_ACEOF
36469 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36470 s
&@configure_input@
&$configure_input&;t t
36471 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36472 s
&@srcdir@
&$ac_srcdir&;t t
36473 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36474 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36475 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36476 s
&@builddir@
&$ac_builddir&;t t
36477 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36478 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36479 s
&@INSTALL@
&$ac_INSTALL&;t t
36480 $ac_datarootdir_hack
36481 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
36483 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36484 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
36485 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
36486 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36487 which seems to be undefined. Please make sure it is defined." >&5
36488 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36489 which seems to be undefined. Please make sure it is defined." >&2;}
36493 -) cat "$tmp/out"; rm -f "$tmp/out";;
36494 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36503 # Transform confdefs.h into a sed script `conftest.defines', that
36504 # substitutes the proper values into config.h.in to produce config.h.
36505 rm -f conftest.defines conftest.
tail
36506 # First, append a space to every undef/define line, to ease matching.
36507 echo 's/$/ /' >conftest.defines
36508 # Then, protect against being on the right side of a sed subst, or in
36509 # an unquoted here document, in config.status. If some macros were
36510 # called several times there might be several #defines for the same
36511 # symbol, which is useless. But do not sort them, since the last
36512 # AC_DEFINE must be honored.
36513 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
36514 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36515 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36516 # PARAMS is the parameter list in the macro definition--in most cases, it's
36517 # just an empty string.
36518 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36519 ac_dB
='\\)[ (].*,\\1define\\2'
36527 s/^[ ]*#[ ]*define[ ][ ]*//
36532 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36533 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36534 ' >>conftest.defines
36536 # Remove the space that was appended to ease matching.
36537 # Then replace #undef with comments. This is necessary, for
36538 # example, in the case of _POSIX_SOURCE, which is predefined and required
36539 # on some systems where configure will not decide to define it.
36540 # (The regexp can be short, since the line contains either #define or #undef.)
36542 s,^[ #]*u.*,/* & */,' >>conftest.defines
36544 # Break up conftest.defines:
36545 ac_max_sed_lines
=50
36547 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36548 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36549 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36551 ac_in
='$ac_file_inputs'
36552 ac_out
='"$tmp/out1"'
36553 ac_nxt
='"$tmp/out2"'
36557 # Write a here document:
36558 cat >>$CONFIG_STATUS <<_ACEOF
36559 # First, check the format of the line:
36560 cat >"\$tmp/defines.sed" <<\\CEOF
36561 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36562 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36566 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
36568 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36569 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
36570 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
36571 grep . conftest.
tail >/dev
/null ||
break
36572 rm -f conftest.defines
36573 mv conftest.
tail conftest.defines
36575 rm -f conftest.defines conftest.
tail
36577 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36578 cat >>$CONFIG_STATUS <<\_ACEOF
36579 if test x
"$ac_file" != x-
; then
36580 echo "/* $configure_input */" >"$tmp/config.h"
36581 cat "$ac_result" >>"$tmp/config.h"
36582 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
36583 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36584 echo "$as_me: $ac_file is unchanged" >&6;}
36587 mv "$tmp/config.h" $ac_file
36590 echo "/* $configure_input */"
36596 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36597 echo "$as_me: executing $ac_file commands" >&6;}
36602 case $ac_file$ac_mode in
36603 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
36604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
36605 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
36606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
36607 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
36608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
36609 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
36610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
36611 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
36612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
36613 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
36614 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
36615 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
36616 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
36617 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
36618 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
36619 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
36620 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
36621 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
36622 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
36623 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
36624 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
36625 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
36626 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
36627 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
36628 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
36634 { (exit 0); exit 0; }
36636 chmod +x
$CONFIG_STATUS
36637 ac_clean_files
=$ac_clean_files_save
36640 # configure is writing to config.log, and then calls config.status.
36641 # config.status does its own redirection, appending to config.log.
36642 # Unfortunately, on DOS this fails, as config.log is still kept open
36643 # by configure, so config.status won't be able to write to it; its
36644 # output is simply discarded. So we exec the FD to /dev/null,
36645 # effectively closing config.log, so it can be properly (re)opened and
36646 # appended to by config.status. When coming back to configure, we
36647 # need to make the FD available again.
36648 if test "$no_create" != yes; then
36650 ac_config_status_args
=
36651 test "$silent" = yes &&
36652 ac_config_status_args
="$ac_config_status_args --quiet"
36654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36657 # would make configure fail if this is the last instruction.
36658 $ac_cs_success ||
{ (exit 1); exit 1; }
36662 # CONFIG_SUBDIRS section.
36664 if test "$no_recursion" != yes; then
36666 # Remove --cache-file and --srcdir arguments so they do not pile up.
36667 ac_sub_configure_args
=
36669 eval "set x $ac_configure_args"
36673 if test -n "$ac_prev"; then
36678 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
36679 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
36680 ac_prev
=cache_file
;;
36681 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
36682 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
36685 --config-cache |
-C)
36687 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
36689 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
36691 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
36693 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
36697 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36699 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
36703 # Always prepend --prefix to ensure using the same prefix
36704 # in subdir configurations.
36705 ac_arg
="--prefix=$prefix"
36707 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36709 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
36712 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
36714 # Do not complain, so a configure script can configure whichever
36715 # parts of a large source tree are present.
36716 test -d "$srcdir/$ac_dir" ||
continue
36718 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36719 echo "$as_me:$LINENO: $ac_msg" >&5
36723 -*) as_dir
=.
/$as_dir;;
36725 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36729 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36730 *) as_qdir
=$as_dir;;
36732 as_dirs
="'$as_qdir' $as_dirs"
36733 as_dir
=`$as_dirname -- "$as_dir" ||
36734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36735 X"$as_dir" : 'X\(//\)[^/]' \| \
36736 X"$as_dir" : 'X\(//\)$' \| \
36737 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36743 /^X\(\/\/\)[^/].*/{
36756 test -d "$as_dir" && break
36758 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36759 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36760 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36761 { (exit 1); exit 1; }; }; }
36765 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36767 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36768 # A ".." for each directory in $ac_dir_suffix.
36769 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36770 case $ac_top_builddir_sub in
36771 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36772 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36775 ac_abs_top_builddir
=$ac_pwd
36776 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36777 # for backward compatibility:
36778 ac_top_builddir
=$ac_top_build_prefix
36781 .
) # We are building in place.
36783 ac_top_srcdir
=$ac_top_builddir_sub
36784 ac_abs_top_srcdir
=$ac_pwd ;;
36785 [\\/]* | ?
:[\\/]* ) # Absolute name.
36786 ac_srcdir
=$srcdir$ac_dir_suffix;
36787 ac_top_srcdir
=$srcdir
36788 ac_abs_top_srcdir
=$srcdir ;;
36789 *) # Relative name.
36790 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36791 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36792 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36794 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36799 # Check for guested configure; otherwise get Cygnus style configure.
36800 if test -f "$ac_srcdir/configure.gnu"; then
36801 ac_sub_configure
=$ac_srcdir/configure.gnu
36802 elif test -f "$ac_srcdir/configure"; then
36803 ac_sub_configure
=$ac_srcdir/configure
36804 elif test -f "$ac_srcdir/configure.in"; then
36805 # This should be Cygnus configure.
36806 ac_sub_configure
=$ac_aux_dir/configure
36808 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36809 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36813 # The recursion is here.
36814 if test -n "$ac_sub_configure"; then
36815 # Make the cache file name correct relative to the subdirectory.
36816 case $cache_file in
36817 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36818 *) # Relative name.
36819 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36822 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36823 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36824 # The eval makes quoting arguments work.
36825 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36826 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36827 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36828 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36829 { (exit 1); exit 1; }; }