2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
28 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
29 DUALCASE
=1; export DUALCASE
# for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
251 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
252 DUALCASE
=1; export DUALCASE
# for MKS sh
257 CONFIG_SHELL
=$as_shell
259 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
271 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
272 DUALCASE
=1; export DUALCASE
# for MKS sh
284 as_func_ret_success
() {
287 as_func_ret_failure
() {
292 if as_func_success
; then
296 echo as_func_success failed.
299 if as_func_failure
; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success
; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure
; then
313 echo as_func_ret_failure succeeded.
316 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) ||
{ (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x
; then
341 for as_var
in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no
; then
350 echo This
script requires a shell
more modern than all the
351 echo shells that I found on your system. Please
install a
352 echo modern shell
, or manually run the
script under such a
353 echo shell
if you
do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") ||
{
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system
,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
470 ECHO_C
= ECHO_N
= ECHO_T
=
474 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
481 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
488 rm -f conf$$ conf$$.exe conf$$.
file
489 if test -d conf$$.dir
; then
490 rm -f conf$$.dir
/conf$$.
file
496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
504 elif ln conf$$.
file conf$$
2>/dev
/null
; then
509 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
510 rmdir conf$$.dir
2>/dev
/null
512 if mkdir
-p .
2>/dev
/null
; then
515 test -d .
/-p && rmdir .
/-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.
file <<_ASEOF
526 if test -x conf$$.
file >/dev
/null
2>&1; then
527 as_executable_p
="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL
=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec
; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo
; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo
; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset
; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
586 echo_test_string
=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
606 for dir
in $PATH /usr
/ucb
; do
608 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho
; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL
=/bin
/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
647 SHELL
="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string
=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames
=${tagnames+${tagnames},}CXX
693 tagnames
=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev
/null
6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix
=/usr
/local
707 ac_config_libobj_dir
=.
713 SHELL
=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME
='-llvm-'
718 PACKAGE_VERSION
='2.6svn'
719 PACKAGE_STRING
='llvm 2.6svn'
720 PACKAGE_BUGREPORT
='llvmbugs@cs.uiuc.edu'
722 ac_unique_file
="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default
="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
835 ENABLE_EXPENSIVE_CHECKS
845 LLVM_ENUM_ASM_PRINTERS
850 ENABLE_LLVMC_DYNAMIC_PLUGINS
897 CONVENIENCE_LTDL_TRUE
898 CONVENIENCE_LTDL_FALSE
939 ENABLE_VISIBILITY_INLINES_HIDDEN
945 ac_precious_vars
='build_alias
959 ac_subdirs_all
='projects/sample
961 projects/llvm-stacker
968 projects/llvm-poolalloc
970 projects/llvm-kernel'
972 # Initialize some variables set by options.
974 ac_init_version
=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
984 program_transform_name
=s
,x
,x
,
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir
='${exec_prefix}/bin'
999 sbindir
='${exec_prefix}/sbin'
1000 libexecdir
='${exec_prefix}/libexec'
1001 datarootdir
='${prefix}/share'
1002 datadir
='${datarootdir}'
1003 sysconfdir
='${prefix}/etc'
1004 sharedstatedir
='${prefix}/com'
1005 localstatedir
='${prefix}/var'
1006 includedir
='${prefix}/include'
1007 oldincludedir
='/usr/include'
1008 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009 infodir
='${datarootdir}/info'
1014 libdir
='${exec_prefix}/lib'
1015 localedir
='${datarootdir}/locale'
1016 mandir
='${datarootdir}/man'
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\
$ac_option
1030 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1040 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1042 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1043 bindir
=$ac_optarg ;;
1045 -build |
--build |
--buil |
--bui |
--bu)
1046 ac_prev
=build_alias
;;
1047 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1048 build_alias
=$ac_optarg ;;
1050 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1051 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1052 ac_prev
=cache_file
;;
1053 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1054 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1055 cache_file
=$ac_optarg ;;
1057 --config-cache |
-C)
1058 cache_file
=config.cache
;;
1060 -datadir |
--datadir |
--datadi |
--datad)
1062 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1063 datadir
=$ac_optarg ;;
1065 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1066 |
--dataroo |
--dataro |
--datar)
1067 ac_prev
=datarootdir
;;
1068 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1069 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1070 datarootdir
=$ac_optarg ;;
1072 -disable-* |
--disable-*)
1073 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1079 eval enable_
$ac_feature=no
;;
1081 -docdir |
--docdir |
--docdi |
--doc |
--do)
1083 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1084 docdir
=$ac_optarg ;;
1086 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1088 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1089 dvidir
=$ac_optarg ;;
1091 -enable-* |
--enable-*)
1092 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1098 eval enable_
$ac_feature=\
$ac_optarg ;;
1100 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1101 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1102 |
--exec |
--exe |
--ex)
1103 ac_prev
=exec_prefix
;;
1104 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1105 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1106 |
--exec=* |
--exe=* |
--ex=*)
1107 exec_prefix
=$ac_optarg ;;
1109 -gas |
--gas |
--ga |
--g)
1110 # Obsolete; use --with-gas.
1113 -help |
--help |
--hel |
--he |
-h)
1114 ac_init_help
=long
;;
1115 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1116 ac_init_help
=recursive
;;
1117 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1118 ac_init_help
=short
;;
1120 -host |
--host |
--hos |
--ho)
1121 ac_prev
=host_alias
;;
1122 -host=* |
--host=* |
--hos=* |
--ho=*)
1123 host_alias
=$ac_optarg ;;
1125 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1127 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1129 htmldir
=$ac_optarg ;;
1131 -includedir |
--includedir |
--includedi |
--included |
--include \
1132 |
--includ |
--inclu |
--incl |
--inc)
1133 ac_prev
=includedir
;;
1134 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1135 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1136 includedir
=$ac_optarg ;;
1138 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1140 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1141 infodir
=$ac_optarg ;;
1143 -libdir |
--libdir |
--libdi |
--libd)
1145 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1146 libdir
=$ac_optarg ;;
1148 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1149 |
--libexe |
--libex |
--libe)
1150 ac_prev
=libexecdir
;;
1151 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1152 |
--libexe=* |
--libex=* |
--libe=*)
1153 libexecdir
=$ac_optarg ;;
1155 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1156 ac_prev
=localedir
;;
1157 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1158 localedir
=$ac_optarg ;;
1160 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1161 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1162 ac_prev
=localstatedir
;;
1163 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1164 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1165 localstatedir
=$ac_optarg ;;
1167 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1169 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1170 mandir
=$ac_optarg ;;
1172 -nfp |
--nfp |
--nf)
1173 # Obsolete; use --without-fp.
1176 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1177 |
--no-cr |
--no-c |
-n)
1180 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1181 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1184 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1185 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1186 |
--oldin |
--oldi |
--old |
--ol |
--o)
1187 ac_prev
=oldincludedir
;;
1188 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1189 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1190 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1191 oldincludedir
=$ac_optarg ;;
1193 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1195 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1196 prefix
=$ac_optarg ;;
1198 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1199 |
--program-pre |
--program-pr |
--program-p)
1200 ac_prev
=program_prefix
;;
1201 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1202 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1203 program_prefix
=$ac_optarg ;;
1205 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1206 |
--program-suf |
--program-su |
--program-s)
1207 ac_prev
=program_suffix
;;
1208 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1209 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1210 program_suffix
=$ac_optarg ;;
1212 -program-transform-name |
--program-transform-name \
1213 |
--program-transform-nam |
--program-transform-na \
1214 |
--program-transform-n |
--program-transform- \
1215 |
--program-transform |
--program-transfor \
1216 |
--program-transfo |
--program-transf \
1217 |
--program-trans |
--program-tran \
1218 |
--progr-tra |
--program-tr |
--program-t)
1219 ac_prev
=program_transform_name
;;
1220 -program-transform-name=* |
--program-transform-name=* \
1221 |
--program-transform-nam=* |
--program-transform-na=* \
1222 |
--program-transform-n=* |
--program-transform-=* \
1223 |
--program-transform=* |
--program-transfor=* \
1224 |
--program-transfo=* |
--program-transf=* \
1225 |
--program-trans=* |
--program-tran=* \
1226 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1227 program_transform_name
=$ac_optarg ;;
1229 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1231 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1232 pdfdir
=$ac_optarg ;;
1234 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1236 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1239 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1240 |
-silent |
--silent |
--silen |
--sile |
--sil)
1243 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1245 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1247 sbindir
=$ac_optarg ;;
1249 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1250 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1251 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1253 ac_prev
=sharedstatedir
;;
1254 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1255 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1256 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1258 sharedstatedir
=$ac_optarg ;;
1260 -site |
--site |
--sit)
1262 -site=* |
--site=* |
--sit=*)
1265 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1267 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1268 srcdir
=$ac_optarg ;;
1270 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1271 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1272 ac_prev
=sysconfdir
;;
1273 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1274 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1275 sysconfdir
=$ac_optarg ;;
1277 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1278 ac_prev
=target_alias
;;
1279 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1280 target_alias
=$ac_optarg ;;
1282 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1285 -version |
--version |
--versio |
--versi |
--vers |
-V)
1286 ac_init_version
=: ;;
1289 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1295 eval with_
$ac_package=\
$ac_optarg ;;
1297 -without-* |
--without-*)
1298 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1304 eval with_
$ac_package=no
;;
1307 # Obsolete; use --with-x.
1310 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1311 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1312 ac_prev
=x_includes
;;
1313 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1314 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1315 x_includes
=$ac_optarg ;;
1317 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1318 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1319 ac_prev
=x_libraries
;;
1320 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1321 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1322 x_libraries
=$ac_optarg ;;
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1330 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
1335 eval $ac_envvar=\
$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1355 # Be sure to have absolute directory names.
1356 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1361 eval ac_val
=\$
$ac_var
1363 [\\/$
]* | ?
:[\\/]* ) continue;;
1364 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1375 target
=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x
; then
1379 if test "x$build_alias" = x
; then
1380 cross_compiling
=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1389 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1391 test "$silent" = yes && exec 6>/dev
/null
1394 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di
=`ls -di .` &&
1396 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted
=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir
=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
1412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1436 ac_srcdir_defaulted
=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441 { (exit 1); exit 1; }; }
1443 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1456 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 for ac_var
in $ac_precious_vars; do
1459 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1461 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1472 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1530 --build=BUILD configure
for building on BUILD
[guessed
]
1531 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1532 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1536 if test -n "$ac_init_help"; then
1537 case $ac_init_help in
1538 short | recursive
) echo "Configuration of llvm 2.6svn:";;
1543 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1544 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1545 --enable-optimized Compile with optimizations enabled
(default is NO
)
1546 --enable-profiling Compile with profiling enabled
(default is NO
)
1547 --enable-assertions Compile with assertion checks enabled
(default is
1549 --enable-expensive-checks
1550 Compile with expensive debug checks enabled
(default
1552 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1554 --enable-jit Enable Just In Time Compiling
(default is YES
)
1555 --enable-doxygen Build doxygen documentation
(default is NO
)
1556 --enable-threads Use threads
if available
(default is YES
)
1557 --enable-pic Build LLVM with Position Independent Code
(default
1559 --enable-targets Build specific
host targets
:
1560 all
,host-only
,{target-name
} (default
=all
)
1561 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1563 --enable-bindings Build specific language bindings
:
1564 all
,auto
,none
,{binding-name
} (default
=auto
)
1565 --enable-libffi Check
for the presence of libffi
(default is YES
)
1566 --enable-llvmc-dynamic Link LLVMC dynamically
(default is NO
, unless on
1568 --enable-llvmc-dynamic-plugins
1569 Enable dynamic LLVMC plugins
(default is YES
)
1570 --enable-ltdl-install install libltdl
1571 --enable-shared[=PKGS
] build shared libraries
1573 --enable-static[=PKGS
] build static libraries
1575 --enable-fast-install[=PKGS
]
1576 optimize
for fast installation
1578 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1581 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1582 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1583 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1585 --with-llvmgcc Specify location of llvm-gcc driver
(default
1587 --with-llvmgxx Specify location of llvm-g
++ driver
(default
1589 --with-extra-options Specify additional options to compile LLVM with
1590 --with-ocaml-libdir Specify
install location
for ocaml bindings
(default
1592 --with-binutils-include Specify path to binutils
/include
/ containing
1593 plugin-api.h
file for gold plugin.
1594 --with-tclinclude directory where tcl headers are
1595 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1596 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1598 --with-tags[=TAGS
] include additional configurations
[automatic
]
1599 --with-udis86=<path
> Use udis86 external x86 disassembler library
1600 --with-oprofile=<prefix
>
1601 Tell OProfile
>= 0.9.4 how to symbolize JIT output
1603 Some influential environment variables
:
1604 CC C compiler
command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1607 nonstandard directory
<lib dir
>
1608 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1609 you have headers
in a nonstandard directory
<include dir
>
1611 CXX C
++ compiler
command
1612 CXXFLAGS C
++ compiler flags
1613 CXXCPP C
++ preprocessor
1614 F77 Fortran
77 compiler
command
1615 FFLAGS Fortran
77 compiler flags
1617 Use these variables to override the choices made by
`configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to <llvmbugs@cs.uiuc.edu>.
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" || continue
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1648 .) # We are building in place.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1681 llvm configure 2.6svn
1682 generated by GNU Autoconf 2.60
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1689 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1693 cat >config.log <<_ACEOF
1694 This file contains any messages produced by compilers while
1695 running configure, to aid debugging if configure makes a mistake.
1697 It was created by llvm $as_me 2.6svn, which was
1698 generated by GNU Autoconf 2.60. Invocation command line was
1710 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1711 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1712 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1713 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1714 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1716 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1717 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1719 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1720 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1721 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1722 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1723 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1724 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1725 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 test -z "$as_dir" && as_dir=.
1734 echo "PATH: $as_dir"
1750 # Keep a trace of the command line.
1751 # Strip out --no-create and --no-recursion so they do not pile up.
1752 # Strip out --silent because we don't want to record it for future runs.
1753 # Also quote any args containing shell meta-characters.
1754 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_must_keep_next=false
1764 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766 | -silent | --silent | --silen | --sile | --sil)
1769 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1772 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1774 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1775 if test $ac_must_keep_next = true; then
1776 ac_must_keep_next=false # Got value, back to normal.
1779 *=* | --config-cache | -C | -disable-* | --disable-* \
1780 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782 | -with-* | --with-* | -without-* | --without-* | --x)
1783 case "$ac_configure_args0 " in
1784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787 -* ) ac_must_keep_next=true ;;
1790 ac_configure_args="$ac_configure_args '$ac_arg'"
1795 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1796 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1798 # When interrupted or exit'd, cleanup temporary files, and complete
1799 # config.log. We remove comments because anyway the quotes in there
1800 # would cause problems or look ugly.
1801 # WARNING: Use '\'' to represent an apostrophe within the trap.
1802 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1803 trap 'exit_status=$?
1804 # Save into config.log some information that might help in debugging.
1809 ## ---------------- ##
1810 ## Cache variables. ##
1811 ## ---------------- ##
1814 # The following way of writing the cache mishandles newlines in values,
1816 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1817 eval ac_val=\$$ac_var
1821 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1822 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1825 _ | IFS | as_nl) ;; #(
1826 *) $as_unset $ac_var ;;
1831 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1832 *${as_nl}ac_space=\ *)
1834 "s/'\''/'\''\\\\'\'''\''/g;
1835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1846 ## ----------------- ##
1847 ## Output variables. ##
1848 ## ----------------- ##
1851 for ac_var in $ac_subst_vars
1853 eval ac_val=\$$ac_var
1855 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 echo "$ac_var='\''$ac_val'\''"
1861 if test -n "$ac_subst_files"; then
1863 ## ------------------- ##
1864 ## File substitutions. ##
1865 ## ------------------- ##
1868 for ac_var in $ac_subst_files
1870 eval ac_val=\$$ac_var
1872 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874 echo "$ac_var='\''$ac_val'\''"
1879 if test -s confdefs.h; then
1889 test "$ac_signal" != 0 &&
1890 echo "$as_me: caught signal $ac_signal"
1891 echo "$as_me: exit $exit_status"
1893 rm -f core *.core core.conftest.* &&
1894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1897 for ac_signal in 1 2 13 15; do
1898 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1903 rm -f -r conftest* confdefs.h
1905 # Predefined preprocessor variables.
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 # Let the site file select an alternate cache file if it wants to.
1933 # Prefer explicitly selected file to automatically selected ones.
1934 if test -n "$CONFIG_SITE"; then
1935 set x "$CONFIG_SITE"
1936 elif test "x$prefix" != xNONE; then
1937 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1939 set x "$ac_default_prefix/share/config.site" \
1940 "$ac_default_prefix/etc/config.site"
1945 if test -r "$ac_site_file"; then
1946 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947 echo "$as_me: loading site script $ac_site_file" >&6;}
1948 sed 's/^/| /' "$ac_site_file" >&5
1953 if test -r "$cache_file"; then
1954 # Some versions of bash will fail to source /dev/null (special
1955 # files actually), so we avoid doing that.
1956 if test -f "$cache_file"; then
1957 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958 echo "$as_me: loading cache $cache_file" >&6;}
1960 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961 *) . "./$cache_file";;
1965 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966 echo "$as_me: creating cache $cache_file" >&6;}
1970 # Check that the precious variables saved in the cache have kept the same
1972 ac_cache_corrupted=false
1973 for ac_var in $ac_precious_vars; do
1974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1975 eval ac_new_set=\$ac_env_${ac_var}_set
1976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1977 eval ac_new_val=\$ac_env_${ac_var}_value
1978 case $ac_old_set,$ac_new_set in
1980 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1981 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1985 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1989 if test "x$ac_old_val" != "x$ac_new_val"; then
1990 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1991 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1992 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1993 echo "$as_me: former value
: $ac_old_val" >&2;}
1994 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1995 echo "$as_me: current value
: $ac_new_val" >&2;}
1996 ac_cache_corrupted=:
1999 # Pass precious variables to config.status.
2000 if test "$ac_new_set" = set; then
2002 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2003 *) ac_arg=$ac_var=$ac_new_val ;;
2005 case " $ac_configure_args " in
2006 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2007 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011 if $ac_cache_corrupted; then
2012 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2013 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2014 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2015 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2016 { (exit 1); exit 1; }; }
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2060 for ac_dir in autoconf "$srcdir"/autoconf; do
2061 if test -f "$ac_dir/install-sh"; then
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2065 elif test -f "$ac_dir/install.sh"; then
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2069 elif test -f "$ac_dir/shtool"; then
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2075 if test -z "$ac_aux_dir"; then
2076 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2077 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2078 { (exit 1); exit 1; }; }
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2091 if test ${srcdir} != "." ; then
2092 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2093 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2094 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2095 { (exit 1); exit 1; }; }
2099 for i in `ls ${srcdir}/projects
`
2101 if test -d ${srcdir}/projects/${i} ; then
2104 sample) subdirs="$subdirs projects/sample"
2106 privbracket) subdirs="$subdirs projects/privbracket"
2108 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2110 # llvm-test is the old name of the test-suite, kept here for backwards
2112 llvm-test) subdirs="$subdirs projects/llvm-test"
2114 test-suite) subdirs="$subdirs projects/test-suite"
2116 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2118 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2120 llvm-java) subdirs="$subdirs projects/llvm-java"
2122 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2124 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2126 poolalloc) subdirs="$subdirs projects/poolalloc"
2128 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2131 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2132 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2139 # Make sure we can run config.sub.
2140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2142 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2143 { (exit 1); exit 1; }; }
2145 { echo "$as_me:$LINENO: checking build system type" >&5
2146 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_build+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 ac_build_alias=$build_alias
2151 test "x$ac_build_alias" = x &&
2152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153 test "x$ac_build_alias" = x &&
2154 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2155 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2156 { (exit 1); exit 1; }; }
2157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2160 { (exit 1); exit 1; }; }
2163 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2164 echo "${ECHO_T}$ac_cv_build" >&6; }
2165 case $ac_cv_build in
2167 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2168 echo "$as_me: error: invalid value of canonical build" >&2;}
2169 { (exit 1); exit 1; }; };;
2172 ac_save_IFS=$IFS; IFS='-'
2178 # Remember, the first character of IFS is used to create $*,
2179 # except with old shells:
2182 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2185 { echo "$as_me:$LINENO: checking host system type" >&5
2186 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2187 if test "${ac_cv_host+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test "x$host_alias" = x; then
2191 ac_cv_host=$ac_cv_build
2193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2194 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2195 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2196 { (exit 1); exit 1; }; }
2200 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2201 echo "${ECHO_T}$ac_cv_host" >&6; }
2204 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2205 echo "$as_me: error: invalid value of canonical host" >&2;}
2206 { (exit 1); exit 1; }; };;
2209 ac_save_IFS=$IFS; IFS='-'
2215 # Remember, the first character of IFS is used to create $*,
2216 # except with old shells:
2219 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2222 { echo "$as_me:$LINENO: checking target system type" >&5
2223 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2224 if test "${ac_cv_target+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 if test "x$target_alias" = x; then
2228 ac_cv_target=$ac_cv_host
2230 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2232 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2233 { (exit 1); exit 1; }; }
2237 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2238 echo "${ECHO_T}$ac_cv_target" >&6; }
2239 case $ac_cv_target in
2241 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2242 echo "$as_me: error: invalid value of canonical target" >&2;}
2243 { (exit 1); exit 1; }; };;
2245 target=$ac_cv_target
2246 ac_save_IFS=$IFS; IFS='-'
2252 # Remember, the first character of IFS is used to create $*,
2253 # except with old shells:
2256 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2259 # The aliases save the names the user supplied, while $host etc.
2260 # will get canonicalized.
2261 test -n "$target_alias" &&
2262 test "$program_prefix$program_suffix$program_transform_name" = \
2264 program_prefix=${target_alias}-
2266 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2267 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2268 if test "${llvm_cv_os_type+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="AIX"
2276 llvm_cv_platform_type="Unix" ;;
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="IRIX"
2281 llvm_cv_platform_type="Unix" ;;
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Cygwin"
2286 llvm_cv_platform_type="Unix" ;;
2288 llvm_cv_link_all_option="-Wl,-all_load"
2289 llvm_cv_no_link_all_option="-Wl,-noall_load"
2290 llvm_cv_os_type="Darwin"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="FreeBSD"
2296 llvm_cv_platform_type="Unix" ;;
2298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300 llvm_cv_os_type="OpenBSD"
2301 llvm_cv_platform_type="Unix" ;;
2303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305 llvm_cv_os_type="NetBSD"
2306 llvm_cv_platform_type="Unix" ;;
2308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310 llvm_cv_os_type="DragonFly"
2311 llvm_cv_platform_type="Unix" ;;
2313 llvm_cv_link_all_option="-Wl,--whole-archive"
2314 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2315 llvm_cv_os_type="HP-UX"
2316 llvm_cv_platform_type="Unix" ;;
2318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2320 llvm_cv_os_type="Interix"
2321 llvm_cv_platform_type="Unix" ;;
2323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325 llvm_cv_os_type="Linux"
2326 llvm_cv_platform_type="Unix" ;;
2328 llvm_cv_link_all_option="-Wl,-z,allextract"
2329 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2330 llvm_cv_os_type="SunOS"
2331 llvm_cv_platform_type="Unix" ;;
2333 llvm_cv_link_all_option="-Wl,--whole-archive"
2334 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2335 llvm_cv_os_type="Win32"
2336 llvm_cv_platform_type="Win32" ;;
2338 llvm_cv_link_all_option="-Wl,--whole-archive"
2339 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2340 llvm_cv_os_type="MingW"
2341 llvm_cv_platform_type="Win32" ;;
2343 llvm_cv_link_all_option=""
2344 llvm_cv_no_link_all_option=""
2345 llvm_cv_os_type="Unknown"
2346 llvm_cv_platform_type="Unknown" ;;
2349 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2350 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2352 if test "$llvm_cv_os_type" = "Unknown" ; then
2353 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2354 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2355 { (exit 1); exit 1; }; }
2361 LINKALL=$llvm_cv_link_all_option
2363 NOLINKALL=$llvm_cv_no_link_all_option
2366 case $llvm_cv_platform_type in
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_UNIX 1
2380 cat >>confdefs.h <<\_ACEOF
2381 #define LLVM_ON_WIN32 1
2391 { echo "$as_me:$LINENO: checking target architecture" >&5
2392 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2393 if test "${llvm_cv_target_arch+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 i?86-*) llvm_cv_target_arch="x86" ;;
2398 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2399 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2400 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2401 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2402 ia64-*) llvm_cv_target_arch="IA64" ;;
2403 arm*-*) llvm_cv_target_arch="ARM" ;;
2404 mips-*) llvm_cv_target_arch="Mips" ;;
2405 pic16-*) llvm_cv_target_arch="PIC16" ;;
2406 xcore-*) llvm_cv_target_arch="XCore" ;;
2407 msp430-*) llvm_cv_target_arch="MSP430" ;;
2408 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2409 *) llvm_cv_target_arch="Unknown" ;;
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2420 # Determine the LLVM native architecture for the target
2421 case "$llvm_cv_target_arch" in
2422 x86) LLVM_NATIVE_ARCH="X86" ;;
2423 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2424 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2427 ARCH=$llvm_cv_target_arch
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_CC"; then
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_CC" = x; then
2515 case $cross_compiling:$ac_tool_warned in
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$CC" && break
2672 if test -z "$CC"; then
2674 for ac_prog in cl.exe
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_CC="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2713 test -n "$ac_ct_CC" && break
2716 if test "x$ac_ct_CC" = x; then
2719 case $cross_compiling:$ac_tool_warned in
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log
' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details.
" >&2;}
2740 { (exit 1); exit 1; }; }
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
2753 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2764 (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2774 (exit $ac_status); }
2776 cat >conftest.$ac_ext <<_ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2796 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2797 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort. b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions. Remove them first so a
2807 # subsequent execution test works.
2809 for ac_file in $ac_files
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 if { (ac_try="$ac_link_default"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
2826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2833 for ac_file in $ac_files
2835 test -f "$ac_file" || continue
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2840 # We found the default executable, but exeext='' is most
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2861 echo "$as_me: failed program was
:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2865 See \
`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log
' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880 # If not cross compiling, check that we can run a simple program.
2881 if test "$cross_compiling" != yes; then
2882 if { ac_try='.
/$ac_file'
2883 { (case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_try") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2894 if test "$cross_compiling" = maybe; then
2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \
`config.log' for more details." >&5
2900 echo "$as_me: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details.
" >&2;}
2903 { (exit 1); exit 1; }; }
2907 { echo "$as_me:$LINENO: result
: yes" >&5
2908 echo "${ECHO_T}yes" >&6; }
2910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 # Check that the compiler produces executables we can run. If not, either
2913 # the compiler is broken, or we cross compile.
2914 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2915 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2916 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2917 echo "${ECHO_T}$cross_compiling" >&6; }
2919 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2920 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2921 if { (ac_try="$ac_link"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_link") 2>&5
2929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2930 (exit $ac_status); }; then
2931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe'), while it won't with
2935 for ac_file in conftest.exe conftest conftest.*; do
2936 test -f "$ac_file" || continue
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2946 See \
`config.log' for more details." >&5
2947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log
' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
2952 rm -f conftest$ac_cv_exeext
2953 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2956 rm -f conftest.$ac_ext
2957 EXEEXT=$ac_cv_exeext
2959 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961 if test "${ac_cv_objext+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.o conftest.obj
2980 if { (ac_try="$ac_compile"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2994 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2999 echo "$as_me: failed program was:" >&5
3000 sed 's
/^
/|
/' conftest.$ac_ext >&5
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details.
" >&5
3004 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3005 See \
`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012 echo "${ECHO_T}$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3042 *) ac_try_echo
=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1
>conftest.err
3049 cat conftest.err
>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3065 *) ac_try_echo
=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.
$ac_ext >&5
3080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3081 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3084 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CFLAGS
=${CFLAGS+set}
3088 ac_save_CFLAGS
=$CFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 ac_save_c_werror_flag
=$ac_c_werror_flag
3095 ac_c_werror_flag
=yes
3098 cat >conftest.
$ac_ext <<_ACEOF
3101 cat confdefs.h
>>conftest.
$ac_ext
3102 cat >>conftest.
$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.
$ac_objext
3114 if { (ac_try
="$ac_compile"
3116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3130 *) ac_try_echo
=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try
='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3172 *) ac_try_echo
=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3177 grep -v '^ *+' conftest.er1
>conftest.err
3179 cat conftest.err
>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3195 *) ac_try_echo
=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.
$ac_ext >&5
3207 ac_c_werror_flag
=$ac_save_c_werror_flag
3209 cat >conftest.
$ac_ext <<_ACEOF
3212 cat confdefs.h
>>conftest.
$ac_ext
3213 cat >>conftest.
$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.
$ac_objext
3225 if { (ac_try
="$ac_compile"
3227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3241 *) ac_try_echo
=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try
='test -s conftest.$ac_objext'
3249 { (case "(($ac_try" in
3250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3275 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3286 if test "$GCC" = yes; then
3292 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_cc_c89+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 ac_cv_prog_cc_c89=no
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3307 #include <sys/types.h>
3308 #include <sys/stat.h>
3309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3310 struct buf { int x; };
3311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312 static char *e (p, i)
3318 static char *f (char * (*g) (char **, int), char **p, ...)
3323 s = g (p, va_arg (v,int));
3328 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3329 function prototypes and stuff, but not '\xHH' hex character constants.
3330 These don't provoke an error unfortunately, instead are silently treated
3331 as 'x'. The following induces an error, until -std is added to get
3332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3333 array size at least. It's necessary to write '\x00'==0 to get something
3334 that's true only with -std. */
3335 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3337 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338 inside strings and character constants. */
3340 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3342 int test (int i, double x);
3343 struct s1 {int (*f) (int a);};
3344 struct s2 {int (*f) (double a);};
3345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3351 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3359 CC="$ac_save_CC $ac_arg"
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3364 *) ac_try_echo
=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1
>conftest.err
3371 cat conftest.err
>&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (case "(($ac_try" in
3376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3387 *) ac_try_echo
=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_cc_c89
=$ac_arg
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.
$ac_ext >&5
3402 rm -f core conftest.err conftest.
$ac_objext
3403 test "x$ac_cv_prog_cc_c89" != "xno" && break
3405 rm -f conftest.
$ac_ext
3410 case "x$ac_cv_prog_cc_c89" in
3412 { echo "$as_me:$LINENO: result: none needed" >&5
3413 echo "${ECHO_T}none needed" >&6; } ;;
3415 { echo "$as_me:$LINENO: result: unsupported" >&5
3416 echo "${ECHO_T}unsupported" >&6; } ;;
3418 CC
="$CC $ac_cv_prog_cc_c89"
3419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3425 ac_cpp
='$CPP $CPPFLAGS'
3426 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3432 ac_cpp
='$CPP $CPPFLAGS'
3433 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3442 if test -z "$CPP"; then
3443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 # Double quotes because CPP needs to be expanded
3447 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3450 for ac_c_preproc_warn_flag
in '' yes
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.
$ac_ext <<_ACEOF
3461 cat confdefs.h
>>conftest.
$ac_ext
3462 cat >>conftest.
$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3465 # include <limits.h>
3467 # include <assert.h>
3471 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 if test -z "$ac_cpp_err"; then
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Broken: fails on valid input.
3503 rm -f conftest.err conftest.$ac_ext
3505 # OK, works on sane cases. Now check whether nonexistent headers
3506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3518 *) ac_try_echo
=$ac_try;;
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1
>conftest.err
3525 cat conftest.err
>&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev
/null
; then
3528 if test -s conftest.err
; then
3529 ac_cpp_err
=$ac_c_preproc_warn_flag
3530 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3537 if test -z "$ac_cpp_err"; then
3538 # Broken: success on invalid input.
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.
$ac_ext >&5
3544 # Passes both tests.
3549 rm -f conftest.err conftest.
$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.
$ac_ext
3554 if $ac_preproc_ok; then
3566 { echo "$as_me:$LINENO: result: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3569 for ac_c_preproc_warn_flag
in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat >conftest.
$ac_ext <<_ACEOF
3580 cat confdefs.h
>>conftest.
$ac_ext
3581 cat >>conftest.
$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3584 # include <limits.h>
3586 # include <assert.h>
3590 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 if test -z "$ac_cpp_err"; then
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Broken: fails on valid input.
3622 rm -f conftest.err conftest.$ac_ext
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <ac_nonexistent.h>
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3637 *) ac_try_echo
=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3642 grep -v '^ *+' conftest.er1
>conftest.err
3644 cat conftest.err
>&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev
/null
; then
3647 if test -s conftest.err
; then
3648 ac_cpp_err
=$ac_c_preproc_warn_flag
3649 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3656 if test -z "$ac_cpp_err"; then
3657 # Broken: success on invalid input.
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.
$ac_ext >&5
3663 # Passes both tests.
3668 rm -f conftest.err conftest.
$ac_ext
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.
$ac_ext
3673 if $ac_preproc_ok; then
3676 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3684 ac_cpp
='$CPP $CPPFLAGS'
3685 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy
grep ggrep
; ac_prog_name
=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 ac_path_GREP_found
=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3704 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3707 test -z "$as_dir" && as_dir
=.
3708 for ac_prog
in grep ggrep
; do
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
3713 # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3716 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'GREP' >> "conftest.nl"
3726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3727 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3728 ac_count
=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP
="$ac_path_GREP"
3732 ac_path_GREP_max
=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3737 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3741 $ac_path_GREP_found && break 3
3751 GREP
="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3759 ac_cv_path_GREP
=$GREP
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766 GREP
="$ac_cv_path_GREP"
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3775 then ac_cv_path_EGREP
="$GREP -E"
3777 # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy
egrep; ac_prog_name
=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 ac_path_EGREP_found
=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3786 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3789 test -z "$as_dir" && as_dir
=.
3790 for ac_prog
in egrep; do
3791 for ac_exec_ext
in '' $ac_executable_extensions; do
3792 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3798 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3809 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3810 ac_count
=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP
="$ac_path_EGREP"
3814 ac_path_EGREP_max
=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3819 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3823 $ac_path_EGREP_found && break 3
3833 EGREP
="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3841 ac_cv_path_EGREP
=$EGREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849 EGREP
="$ac_cv_path_EGREP"
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.
$ac_ext <<_ACEOF
3860 cat confdefs.h
>>conftest.
$ac_ext
3861 cat >>conftest.
$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3876 rm -f conftest.
$ac_objext
3877 if { (ac_try
="$ac_compile"
3879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3893 *) ac_try_echo
=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try
='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_header_stdc=yes
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_cv_header_stdc=no
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932 $EGREP "memchr" >/dev/null 2>&1; then
3935 ac_cv_header_stdc=no
3941 if test $ac_cv_header_stdc = yes; then
3942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 $EGREP "free" >/dev/null 2>&1; then
3956 ac_cv_header_stdc=no
3962 if test $ac_cv_header_stdc = yes; then
3963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3964 if test "$cross_compiling" = yes; then
3967 cat >conftest.$ac_ext <<_ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3998 rm -f conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4002 *) ac_try_echo
=$ac_try;;
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4009 { (case "(($ac_try" in
4010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_cv_header_stdc=no
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4037 cat >>confdefs.h <<\_ACEOF
4038 #define STDC_HEADERS 1
4043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054 inttypes.h stdint.h unistd.h
4056 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4070 #include <$ac_header>
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4076 *) ac_try_echo
=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1
>conftest.err
4083 cat conftest.err
>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4099 *) ac_try_echo
=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 eval "$as_ac_Header=yes"
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.
$ac_ext >&5
4111 eval "$as_ac_Header=no"
4114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4116 ac_res
=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118 echo "${ECHO_T}$ac_res" >&6; }
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h
<<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4129 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131 if test "${ac_cv_c_bigendian+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 # See if sys/param.h defines the BYTE_ORDER macro.
4135 cat >conftest.
$ac_ext <<_ACEOF
4138 cat confdefs.h
>>conftest.
$ac_ext
4139 cat >>conftest.
$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 #include <sys/param.h>
4147 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4155 rm -f conftest.
$ac_objext
4156 if { (ac_try
="$ac_compile"
4158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4164 grep -v '^ *+' conftest.er1 >conftest.err
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4172 *) ac_try_echo
=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try
='test -s conftest.$ac_objext'
4180 { (case "(($ac_try" in
4181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 # It does; now see whether it defined to BIG_ENDIAN or not.
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <sys/types.h>
4197 #include <sys/param.h>
4202 #if BYTE_ORDER != BIG_ENDIAN
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4214 *) ac_try_echo
=$ac_try;;
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4219 grep -v '^ *+' conftest.er1
>conftest.err
4221 cat conftest.err
>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4237 *) ac_try_echo
=$ac_try;;
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_c_bigendian
=yes
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.
$ac_ext >&5
4249 ac_cv_c_bigendian
=no
4252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.
$ac_ext >&5
4257 # It does not; compile a test program.
4258 if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian
=unknown
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4276 _ascii (); _ebcdic ();
4281 rm -f conftest.
$ac_objext
4282 if { (ac_try
="$ac_compile"
4284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4298 *) ac_try_echo
=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try
='test -s conftest.$ac_objext'
4306 { (case "(($ac_try" in
4307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4316 ac_cv_c_bigendian=yes
4318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319 if test "$ac_cv_c_bigendian" = unknown; then
4320 ac_cv_c_bigendian=no
4322 # finding both strings is unlikely to happen, but who knows?
4323 ac_cv_c_bigendian=unknown
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 $ac_includes_default
4346 /* Are we little or big endian? From Harbison&Steele. */
4350 char c[sizeof (long int)];
4353 return u.c[sizeof (long int) - 1] == 1;
4359 rm -f conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4363 *) ac_try_echo
=$ac_try;;
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4370 { (case "(($ac_try" in
4371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_c_bigendian=no
4381 echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_c_bigendian=yes
4388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in
4406 { { echo "$as_me:$LINENO: error: unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408 echo "$as_me: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410 { (exit 1); exit 1; }; } ;;
4414 if test "$cross_compiling" = yes; then
4415 LLVM_CROSS_COMPILING=1
4418 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420 if test "${ac_cv_build_exeext+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424 ac_cv_build_exeext=.exe
4426 ac_build_prefix=${build_alias}-
4428 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429 set dummy ${ac_build_prefix}gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "gcc", so it can be a program name with args.
4467 set dummy gcc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 ac_cv_prog_BUILD_CC="gcc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 BUILD_CC=$ac_cv_prog_BUILD_CC
4494 if test -n "$BUILD_CC"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496 echo "${ECHO_T}$BUILD_CC" >&6; }
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4503 if test -z "$BUILD_CC"; then
4504 # Extract the first word of "cc", so it can be a program name with args.
4505 set dummy cc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 if test -n "$BUILD_CC"; then
4512 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4526 ac_cv_prog_BUILD_CC="cc"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CC
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CC to just the basename; use the full file name.
4543 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548 BUILD_CC=$ac_cv_prog_BUILD_CC
4549 if test -n "$BUILD_CC"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4560 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
4563 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4565 echo 'int main () { return 0; }' > conftest.$ac_ext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4568 (eval $ac_build_link) 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
4572 for file in conftest.*; do
4574 *.c | *.o | *.obj | *.dSYM) ;;
4575 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4579 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581 { (exit 1); exit 1; }; }
4584 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4589 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4590 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4592 ac_build_exeext=$BUILD_EXEEXT
4594 ac_build_prefix=${build_alias}-
4595 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596 set dummy ${ac_build_prefix}g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "g++", so it can be a program name with args.
4634 set dummy g++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_BUILD_CXX="g++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661 if test -n "$BUILD_CXX"; then
4662 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663 echo "${ECHO_T}$BUILD_CXX" >&6; }
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 if test -z "$BUILD_CXX"; then
4671 # Extract the first word of "c++", so it can be a program name with args.
4672 set dummy c++; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 if test -n "$BUILD_CXX"; then
4679 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690 ac_prog_rejected=yes
4693 ac_cv_prog_BUILD_CXX="c++"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_BUILD_CXX
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set BUILD_CXX to just the basename; use the full file name.
4710 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716 if test -n "$BUILD_CXX"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718 echo "${ECHO_T}$BUILD_CXX" >&6; }
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4728 LLVM_CROSS_COMPILING=0
4732 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4743 # Check whether --enable-optimized was given.
4744 if test "${enable_optimized+set}" = set; then
4745 enableval=$enable_optimized;
4750 if test ${enableval} = "no" ; then
4754 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4758 # Check whether --enable-profiling was given.
4759 if test "${enable_profiling+set}" = set; then
4760 enableval=$enable_profiling;
4765 if test ${enableval} = "no" ; then
4769 ENABLE_PROFILING=ENABLE_PROFILING=1
4773 # Check whether --enable-assertions was given.
4774 if test "${enable_assertions+set}" = set; then
4775 enableval=$enable_assertions;
4780 if test ${enableval} = "yes" ; then
4784 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4788 # Check whether --enable-expensive-checks was given.
4789 if test "${enable_expensive_checks+set}" = set; then
4790 enableval=$enable_expensive_checks;
4795 if test ${enableval} = "yes" ; then
4796 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4798 EXPENSIVE_CHECKS=yes
4801 ENABLE_EXPENSIVE_CHECKS=
4807 # Check whether --enable-debug-runtime was given.
4808 if test "${enable_debug_runtime+set}" = set; then
4809 enableval=$enable_debug_runtime;
4814 if test ${enableval} = "no" ; then
4818 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4822 # Check whether --enable-jit was given.
4823 if test "${enable_jit+set}" = set; then
4824 enableval=$enable_jit;
4829 if test ${enableval} = "no"
4834 case "$llvm_cv_target_arch" in
4835 x86) TARGET_HAS_JIT=1
4837 Sparc) TARGET_HAS_JIT=0
4839 PowerPC) TARGET_HAS_JIT=1
4841 x86_64) TARGET_HAS_JIT=1
4843 Alpha) TARGET_HAS_JIT=1
4845 IA64) TARGET_HAS_JIT=0
4847 ARM) TARGET_HAS_JIT=0
4849 Mips) TARGET_HAS_JIT=0
4851 PIC16) TARGET_HAS_JIT=0
4853 XCore) TARGET_HAS_JIT=0
4855 MSP430) TARGET_HAS_JIT=0
4857 SystemZ) TARGET_HAS_JIT=0
4864 # Check whether --enable-doxygen was given.
4865 if test "${enable_doxygen+set}" = set; then
4866 enableval=$enable_doxygen;
4871 case "$enableval" in
4872 yes) ENABLE_DOXYGEN=1
4874 no) ENABLE_DOXYGEN=0
4876 default) ENABLE_DOXYGEN=0
4878 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4879 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4880 { (exit 1); exit 1; }; } ;;
4883 # Check whether --enable-threads was given.
4884 if test "${enable_threads+set}" = set; then
4885 enableval=$enable_threads;
4890 case "$enableval" in
4891 yes) ENABLE_THREADS=1
4893 no) ENABLE_THREADS=0
4895 default) ENABLE_THREADS=1
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4902 cat >>confdefs.h <<_ACEOF
4903 #define ENABLE_THREADS $ENABLE_THREADS
4907 # Check whether --enable-pic was given.
4908 if test "${enable_pic+set}" = set; then
4909 enableval=$enable_pic;
4914 case "$enableval" in
4919 default) ENABLE_PIC=1
4921 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4922 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4926 cat >>confdefs.h <<_ACEOF
4927 #define ENABLE_PIC $ENABLE_PIC
4932 # Check whether --enable-targets was given.
4933 if test "${enable_targets+set}" = set; then
4934 enableval=$enable_targets;
4939 case "$enableval" in
4940 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 SystemZ CBackend MSIL CppBackend" ;;
4942 case "$llvm_cv_target_arch" in
4943 x86) TARGETS_TO_BUILD="X86" ;;
4944 x86_64) TARGETS_TO_BUILD="X86" ;;
4945 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4946 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4947 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4948 IA64) TARGETS_TO_BUILD="IA64" ;;
4949 ARM) TARGETS_TO_BUILD="ARM" ;;
4950 Mips) TARGETS_TO_BUILD="Mips" ;;
4951 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4952 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4953 XCore) TARGETS_TO_BUILD="XCore" ;;
4954 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4955 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
4956 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4957 echo "$as_me: error: Can not set target to build" >&2;}
4958 { (exit 1); exit 1; }; } ;;
4961 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4963 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4964 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4965 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4966 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4967 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4968 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4969 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4970 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4971 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4972 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4973 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4974 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4975 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4976 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4977 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4978 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4979 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4980 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4981 { (exit 1); exit 1; }; } ;;
4986 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4989 # Determine whether we are building LLVM support for the native architecture.
4990 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4991 for a_target in $TARGETS_TO_BUILD; do
4992 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4993 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4995 cat >>confdefs.h <<_ACEOF
4996 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5002 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5003 # Targets.def and AsmPrinters.def.
5004 LLVM_ENUM_TARGETS=""
5005 LLVM_ENUM_ASM_PRINTERS=""
5006 for target_to_build in $TARGETS_TO_BUILD; do
5007 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5009 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5015 # Check whether --enable-cbe-printf-a was given.
5016 if test "${enable_cbe_printf_a+set}" = set; then
5017 enableval=$enable_cbe_printf_a;
5022 case "$enableval" in
5023 yes) ENABLE_CBE_PRINTF_A=1
5025 no) ENABLE_CBE_PRINTF_A=0
5027 default) ENABLE_CBE_PRINTF_A=1
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5034 cat >>confdefs.h <<_ACEOF
5035 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5040 # Check whether --with-llvmgccdir was given.
5041 if test "${with_llvmgccdir+set}" = set; then
5042 withval=$with_llvmgccdir;
5048 default) WITH_LLVMGCCDIR=default ;;
5049 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5050 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5051 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5052 { (exit 1); exit 1; }; } ;;
5056 # Check whether --with-llvmgcc was given.
5057 if test "${with_llvmgcc+set}" = set; then
5058 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5064 # Check whether --with-llvmgxx was given.
5065 if test "${with_llvmgxx+set}" = set; then
5066 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5071 if test -n "$LLVMGCC"; then
5072 LLVMGCCCOMMAND="$LLVMGCC"
5075 if test -n "$LLVMGXX"; then
5076 LLVMGXXCOMMAND="$LLVMGXX"
5079 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5080 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5081 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5082 { (exit 1); exit 1; }; };
5085 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5086 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5087 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5088 { (exit 1); exit 1; }; };
5092 # Check whether --with-extra-options was given.
5093 if test "${with_extra_options+set}" = set; then
5094 withval=$with_extra_options;
5100 default) EXTRA_OPTIONS= ;;
5101 *) EXTRA_OPTIONS=$withval ;;
5103 EXTRA_OPTIONS=$EXTRA_OPTIONS
5106 # Check whether --enable-bindings was given.
5107 if test "${enable_bindings+set}" = set; then
5108 enableval=$enable_bindings;
5113 BINDINGS_TO_BUILD=""
5114 case "$enableval" in
5115 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5116 all ) BINDINGS_TO_BUILD="ocaml" ;;
5117 none | no) BINDINGS_TO_BUILD="" ;;
5118 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5119 case "$a_binding" in
5120 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5121 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5122 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5123 { (exit 1); exit 1; }; } ;;
5130 # Check whether --with-ocaml-libdir was given.
5131 if test "${with_ocaml_libdir+set}" = set; then
5132 withval=$with_ocaml_libdir;
5138 auto) with_ocaml_libdir="$withval" ;;
5139 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5140 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5141 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5142 { (exit 1); exit 1; }; } ;;
5146 # Check whether --with-binutils-include was given.
5147 if test "${with_binutils_include+set}" = set; then
5148 withval=$with_binutils_include;
5154 default) WITH_BINUTILS_INCDIR=default ;;
5155 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5156 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5157 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5160 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5161 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5163 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5164 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5165 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5166 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5167 { (exit 1); exit 1; }; };
5171 # Check whether --enable-libffi was given.
5172 if test "${enable_libffi+set}" = set; then
5173 enableval=$enable_libffi;
5178 case "$enableval" in
5179 yes) llvm_cv_enable_libffi="yes" ;;
5180 no) llvm_cv_enable_libffi="no" ;;
5181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
5186 if test "$llvm_cv_os_type" = "Win32" ; then
5192 # Check whether --enable-llvmc-dynamic was given.
5193 if test "${enable_llvmc_dynamic+set}" = set; then
5194 enableval=$enable_llvmc_dynamic;
5196 enableval=$llvmc_dynamic
5199 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5200 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5203 ENABLE_LLVMC_DYNAMIC=
5207 # Check whether --enable-llvmc-dynamic-plugins was given.
5208 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5209 enableval=$enable_llvmc_dynamic_plugins;
5214 if test ${enableval} = "yes" ; then
5215 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5218 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5224 ac_cpp='$CPP $CPPFLAGS'
5225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5229 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5230 # On Suns, sometimes $CPP names a directory.
5231 if test -n "$CPP" && test -d "$CPP"; then
5234 if test -z "$CPP"; then
5235 if test "${ac_cv_prog_CPP+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 # Double quotes because CPP needs to be expanded
5239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5242 for ac_c_preproc_warn_flag in '' yes
5244 # Use a header file that comes with gcc, so configuring glibc
5245 # with a fresh cross-compiler works.
5246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5247 # <limits.h> exists even on freestanding compilers.
5248 # On the NeXT, cc -E runs the code through the compiler's parser,
5249 # not just through cpp. "Syntax error" is here to catch this case.
5250 cat >conftest.$ac_ext <<_ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5257 # include <limits.h>
5259 # include <assert.h>
5263 if { (ac_try="$ac_cpp conftest.$ac_ext"
5265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5266 *) ac_try_echo
=$ac_try;;
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271 grep -v '^ *+' conftest.er1
>conftest.err
5273 cat conftest.err
>&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev
/null
; then
5276 if test -s conftest.err
; then
5277 ac_cpp_err
=$ac_c_preproc_warn_flag
5278 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5285 if test -z "$ac_cpp_err"; then
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.
$ac_ext >&5
5291 # Broken: fails on valid input.
5295 rm -f conftest.err conftest.
$ac_ext
5297 # OK, works on sane cases. Now check whether nonexistent headers
5298 # can be detected and how.
5299 cat >conftest.
$ac_ext <<_ACEOF
5302 cat confdefs.h
>>conftest.
$ac_ext
5303 cat >>conftest.
$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 #include <ac_nonexistent.h>
5307 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5315 grep -v '^ *+' conftest.er1 >conftest.err
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } >/dev/null; then
5320 if test -s conftest.err; then
5321 ac_cpp_err=$ac_c_preproc_warn_flag
5322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5329 if test -z "$ac_cpp_err"; then
5330 # Broken: success on invalid input.
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5336 # Passes both tests.
5341 rm -f conftest.err conftest.$ac_ext
5344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5345 rm -f conftest.err conftest.
$ac_ext
5346 if $ac_preproc_ok; then
5358 { echo "$as_me:$LINENO: result: $CPP" >&5
5359 echo "${ECHO_T}$CPP" >&6; }
5361 for ac_c_preproc_warn_flag
in '' yes
5363 # Use a header file that comes with gcc, so configuring glibc
5364 # with a fresh cross-compiler works.
5365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5366 # <limits.h> exists even on freestanding compilers.
5367 # On the NeXT, cc -E runs the code through the compiler's parser,
5368 # not just through cpp. "Syntax error" is here to catch this case.
5369 cat >conftest.
$ac_ext <<_ACEOF
5372 cat confdefs.h
>>conftest.
$ac_ext
5373 cat >>conftest.
$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5376 # include <limits.h>
5378 # include <assert.h>
5382 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } >/dev/null; then
5395 if test -s conftest.err; then
5396 ac_cpp_err=$ac_c_preproc_warn_flag
5397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5404 if test -z "$ac_cpp_err"; then
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 # Broken: fails on valid input.
5414 rm -f conftest.err conftest.$ac_ext
5416 # OK, works on sane cases. Now check whether nonexistent headers
5417 # can be detected and how.
5418 cat >conftest.$ac_ext <<_ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424 #include <ac_nonexistent.h>
5426 if { (ac_try="$ac_cpp conftest.$ac_ext"
5428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5429 *) ac_try_echo
=$ac_try;;
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5434 grep -v '^ *+' conftest.er1
>conftest.err
5436 cat conftest.err
>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } >/dev
/null
; then
5439 if test -s conftest.err
; then
5440 ac_cpp_err
=$ac_c_preproc_warn_flag
5441 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5448 if test -z "$ac_cpp_err"; then
5449 # Broken: success on invalid input.
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.
$ac_ext >&5
5455 # Passes both tests.
5460 rm -f conftest.err conftest.
$ac_ext
5463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5464 rm -f conftest.err conftest.
$ac_ext
5465 if $ac_preproc_ok; then
5468 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5469 See \`config.log' for more details." >&5
5470 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5471 See \`config.log' for more details." >&2;}
5472 { (exit 1); exit 1; }; }
5476 ac_cpp
='$CPP $CPPFLAGS'
5477 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5478 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5482 ac_cpp
='$CPP $CPPFLAGS'
5483 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5486 if test -n "$ac_tool_prefix"; then
5489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5490 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5493 if test "${ac_cv_prog_CC+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 if test -n "$CC"; then
5497 ac_cv_prog_CC
="$CC" # Let the user override the test.
5499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5503 test -z "$as_dir" && as_dir
=.
5504 for ac_exec_ext
in '' $ac_executable_extensions; do
5505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5506 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 if test -n "$CC"; then
5518 { echo "$as_me:$LINENO: result: $CC" >&5
5519 echo "${ECHO_T}$CC" >&6; }
5521 { echo "$as_me:$LINENO: result: no" >&5
5522 echo "${ECHO_T}no" >&6; }
5526 test -n "$CC" && break
5529 if test -z "$CC"; then
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy
$ac_prog; ac_word
=$2
5535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 if test -n "$ac_ct_CC"; then
5541 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir
=.
5548 for ac_exec_ext
in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_prog_ac_ct_CC
="$ac_prog"
5551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5561 if test -n "$ac_ct_CC"; then
5562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5563 echo "${ECHO_T}$ac_ct_CC" >&6; }
5565 { echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6; }
5570 test -n "$ac_ct_CC" && break
5573 if test "x$ac_ct_CC" = x
; then
5576 case $cross_compiling:$ac_tool_warned in
5578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5579 whose name does not start with the host triplet. If you think this
5580 configuration is useful to you, please write to autoconf@gnu.org." >&5
5581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5582 whose name does not start with the host triplet. If you think this
5583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5584 ac_tool_warned
=yes ;;
5591 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5592 See \`config.log' for more details." >&5
5593 echo "$as_me: error: no acceptable C compiler found in \$PATH
5594 See \`config.log' for more details." >&2;}
5595 { (exit 1); exit 1; }; }
5597 # Provide some information about the compiler.
5598 echo "$as_me:$LINENO: checking for C compiler version" >&5
5599 ac_compiler
=`set X $ac_compile; echo $2`
5600 { (ac_try
="$ac_compiler --version >&5"
5602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compiler --version >&5") 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }
5610 { (ac_try="$ac_compiler -v >&5"
5612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5613 *) ac_try_echo
=$ac_try;;
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_compiler -v >&5") 2>&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }
5620 { (ac_try
="$ac_compiler -V >&5"
5622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compiler -V >&5") 2>&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }
5631 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5632 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5633 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5658 *) ac_try_echo
=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1
>conftest.err
5665 cat conftest.err
>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5669 { (case "(($ac_try" in
5670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_try") 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (case "(($ac_try" in
5680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5681 *) ac_try_echo
=$ac_try;;
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_try") 2>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.
$ac_ext >&5
5696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5697 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5700 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5701 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5702 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5703 ac_test_CFLAGS
=${CFLAGS+set}
5704 ac_save_CFLAGS
=$CFLAGS
5705 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5706 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5707 if test "${ac_cv_prog_cc_g+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 ac_save_c_werror_flag
=$ac_c_werror_flag
5711 ac_c_werror_flag
=yes
5714 cat >conftest.
$ac_ext <<_ACEOF
5717 cat confdefs.h
>>conftest.
$ac_ext
5718 cat >>conftest.
$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5729 rm -f conftest.
$ac_objext
5730 if { (ac_try
="$ac_compile"
5732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_compile") 2>conftest.er1
5738 grep -v '^ *+' conftest.er1 >conftest.err
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } &&
5743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5744 { (case "(($ac_try" in
5745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5746 *) ac_try_echo
=$ac_try;;
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_try") 2>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try
='test -s conftest.$ac_objext'
5754 { (case "(($ac_try" in
5755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_try") 2>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5784 rm -f conftest.$ac_objext
5785 if { (ac_try="$ac_compile"
5787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5788 *) ac_try_echo
=$ac_try;;
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_compile") 2>conftest.er1
5793 grep -v '^ *+' conftest.er1
>conftest.err
5795 cat conftest.err
>&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5799 { (case "(($ac_try" in
5800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_try") 2>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; } &&
5808 { ac_try='test -s conftest.$ac_objext'
5809 { (case "(($ac_try" in
5810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5811 *) ac_try_echo
=$ac_try;;
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_try") 2>&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.
$ac_ext >&5
5823 ac_c_werror_flag
=$ac_save_c_werror_flag
5825 cat >conftest.
$ac_ext <<_ACEOF
5828 cat confdefs.h
>>conftest.
$ac_ext
5829 cat >>conftest.
$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5840 rm -f conftest.
$ac_objext
5841 if { (ac_try
="$ac_compile"
5843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5849 grep -v '^ *+' conftest.er1 >conftest.err
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5855 { (case "(($ac_try" in
5856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5857 *) ac_try_echo
=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_try") 2>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try
='test -s conftest.$ac_objext'
5865 { (case "(($ac_try" in
5866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_try") 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 ac_c_werror_flag=$ac_save_c_werror_flag
5891 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5892 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5893 if test "$ac_test_CFLAGS" = set; then
5894 CFLAGS=$ac_save_CFLAGS
5895 elif test $ac_cv_prog_cc_g = yes; then
5896 if test "$GCC" = yes; then
5902 if test "$GCC" = yes; then
5908 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5909 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5910 if test "${ac_cv_prog_cc_c89+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 ac_cv_prog_cc_c89=no
5915 cat >conftest.$ac_ext <<_ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5923 #include <sys/types.h>
5924 #include <sys/stat.h>
5925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5926 struct buf { int x; };
5927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5928 static char *e (p, i)
5934 static char *f (char * (*g) (char **, int), char **p, ...)
5939 s = g (p, va_arg (v,int));
5944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5945 function prototypes and stuff, but not '\xHH' hex character constants.
5946 These don't provoke an error unfortunately, instead are silently treated
5947 as 'x'. The following induces an error, until -std is added to get
5948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5949 array size at least. It's necessary to write '\x00'==0 to get something
5950 that's true only with -std. */
5951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5954 inside strings and character constants. */
5956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5958 int test (int i, double x);
5959 struct s1 {int (*f) (int a);};
5960 struct s2 {int (*f) (double a);};
5961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5975 CC="$ac_save_CC $ac_arg"
5976 rm -f conftest.$ac_objext
5977 if { (ac_try="$ac_compile"
5979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5980 *) ac_try_echo
=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_compile") 2>conftest.er1
5985 grep -v '^ *+' conftest.er1
>conftest.err
5987 cat conftest.err
>&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5991 { (case "(($ac_try" in
5992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_try") 2>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; } &&
6000 { ac_try='test -s conftest.$ac_objext'
6001 { (case "(($ac_try" in
6002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6003 *) ac_try_echo
=$ac_try;;
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_try") 2>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 ac_cv_prog_cc_c89
=$ac_arg
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.
$ac_ext >&5
6018 rm -f core conftest.err conftest.
$ac_objext
6019 test "x$ac_cv_prog_cc_c89" != "xno" && break
6021 rm -f conftest.
$ac_ext
6026 case "x$ac_cv_prog_cc_c89" in
6028 { echo "$as_me:$LINENO: result: none needed" >&5
6029 echo "${ECHO_T}none needed" >&6; } ;;
6031 { echo "$as_me:$LINENO: result: unsupported" >&5
6032 echo "${ECHO_T}unsupported" >&6; } ;;
6034 CC
="$CC $ac_cv_prog_cc_c89"
6035 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6036 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6041 ac_cpp
='$CPP $CPPFLAGS'
6042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6047 ac_cpp
='$CXXCPP $CPPFLAGS'
6048 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6051 if test -z "$CXX"; then
6052 if test -n "$CCC"; then
6055 if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_CXX+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 if test -n "$CXX"; then
6066 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir
=.
6073 for ac_exec_ext
in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 if test -n "$CXX"; then
6087 { echo "$as_me:$LINENO: result: $CXX" >&5
6088 echo "${ECHO_T}$CXX" >&6; }
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6095 test -n "$CXX" && break
6098 if test -z "$CXX"; then
6102 # Extract the first word of "$ac_prog", so it can be a program name with args.
6103 set dummy
$ac_prog; ac_word
=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 if test -n "$ac_ct_CXX"; then
6110 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6116 test -z "$as_dir" && as_dir
=.
6117 for ac_exec_ext
in '' $ac_executable_extensions; do
6118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6119 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6130 if test -n "$ac_ct_CXX"; then
6131 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6132 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6134 { echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6; }
6139 test -n "$ac_ct_CXX" && break
6142 if test "x$ac_ct_CXX" = x
; then
6145 case $cross_compiling:$ac_tool_warned in
6147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148 whose name does not start with the host triplet. If you think this
6149 configuration is useful to you, please write to autoconf@gnu.org." >&5
6150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet. If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153 ac_tool_warned
=yes ;;
6161 # Provide some information about the compiler.
6162 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6163 ac_compiler
=`set X $ac_compile; echo $2`
6164 { (ac_try
="$ac_compiler --version >&5"
6166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170 (eval "$ac_compiler --version >&5") 2>&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }
6174 { (ac_try="$ac_compiler -v >&5"
6176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6177 *) ac_try_echo
=$ac_try;;
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_compiler -v >&5") 2>&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }
6184 { (ac_try
="$ac_compiler -V >&5"
6186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_compiler -V >&5") 2>&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }
6195 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6196 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6197 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 cat >conftest.$ac_ext <<_ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6218 rm -f conftest.$ac_objext
6219 if { (ac_try="$ac_compile"
6221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6222 *) ac_try_echo
=$ac_try;;
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225 (eval "$ac_compile") 2>conftest.er1
6227 grep -v '^ *+' conftest.er1
>conftest.err
6229 cat conftest.err
>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6233 { (case "(($ac_try" in
6234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (case "(($ac_try" in
6244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6245 *) ac_try_echo
=$ac_try;;
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_try") 2>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.
$ac_ext >&5
6260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6264 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6265 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6266 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6267 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6268 ac_save_CXXFLAGS
=$CXXFLAGS
6269 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6270 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6271 if test "${ac_cv_prog_cxx_g+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6275 ac_cxx_werror_flag
=yes
6278 cat >conftest.
$ac_ext <<_ACEOF
6281 cat confdefs.h
>>conftest.
$ac_ext
6282 cat >>conftest.
$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6293 rm -f conftest.
$ac_objext
6294 if { (ac_try
="$ac_compile"
6296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6302 grep -v '^ *+' conftest.er1 >conftest.err
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6310 *) ac_try_echo
=$ac_try;;
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try
='test -s conftest.$ac_objext'
6318 { (case "(($ac_try" in
6319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_try") 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_cv_prog_cxx_g=yes
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6352 *) ac_try_echo
=$ac_try;;
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_compile") 2>conftest.er1
6357 grep -v '^ *+' conftest.er1
>conftest.err
6359 cat conftest.err
>&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6363 { (case "(($ac_try" in
6364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368 (eval "$ac_try") 2>&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try='test -s conftest.$ac_objext'
6373 { (case "(($ac_try" in
6374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6375 *) ac_try_echo
=$ac_try;;
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_try") 2>&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.
$ac_ext >&5
6387 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6389 cat >conftest.
$ac_ext <<_ACEOF
6392 cat confdefs.h
>>conftest.
$ac_ext
6393 cat >>conftest.
$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6404 rm -f conftest.
$ac_objext
6405 if { (ac_try
="$ac_compile"
6407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6419 { (case "(($ac_try" in
6420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6421 *) ac_try_echo
=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_try") 2>&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try
='test -s conftest.$ac_objext'
6429 { (case "(($ac_try" in
6430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_try") 2>&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_prog_cxx_g=yes
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6455 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6456 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6457 if test "$ac_test_CXXFLAGS" = set; then
6458 CXXFLAGS=$ac_save_CXXFLAGS
6459 elif test $ac_cv_prog_cxx_g = yes; then
6460 if test "$GXX" = yes; then
6466 if test "$GXX" = yes; then
6473 ac_cpp='$CPP $CPPFLAGS'
6474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6479 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6480 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6481 if test "${lt_cv_path_NM+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 if test -n "$NM"; then
6485 # Let the user override the test.
6488 lt_nm_to_check="${ac_tool_prefix}nm"
6489 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6490 lt_nm_to_check="$lt_nm_to_check nm"
6492 for lt_tmp_nm in $lt_nm_to_check; do
6493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6494 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6496 test -z "$ac_dir" && ac_dir=.
6497 tmp_nm="$ac_dir/$lt_tmp_nm"
6498 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6499 # Check to see if the nm accepts a BSD-compat flag.
6500 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6501 # nm: unknown option "B" ignored
6502 # Tru64's nm complains that
/dev
/null is an invalid object
file
6503 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6504 */dev
/null
* |
*'Invalid file or object type'*)
6505 lt_cv_path_NM
="$tmp_nm -B"
6509 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6511 lt_cv_path_NM
="$tmp_nm -p"
6515 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6516 continue # so that we can try to find one that supports BSD flags
6525 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6528 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6529 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6534 { echo "$as_me:$LINENO: checking for GNU make" >&5
6535 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6536 if test "${llvm_cv_gnu_make_command+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 llvm_cv_gnu_make_command
=''
6540 for a
in "$MAKE" make gmake gnumake
; do
6541 if test -z "$a" ; then continue ; fi ;
6542 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6544 llvm_cv_gnu_make_command
=$a ;
6549 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6550 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6551 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6555 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6556 echo "${ECHO_T}\"Not found\"" >&6; };
6560 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6561 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6563 if test "$LN_S" = "ln -s"; then
6564 { echo "$as_me:$LINENO: result: yes" >&5
6565 echo "${ECHO_T}yes" >&6; }
6567 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6568 echo "${ECHO_T}no, using $LN_S" >&6; }
6571 # Extract the first word of "cmp", so it can be a program name with args.
6572 set dummy
cmp; ac_word
=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_path_CMP+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir
=.
6588 for ac_exec_ext
in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6603 if test -n "$CMP"; then
6604 { echo "$as_me:$LINENO: result: $CMP" >&5
6605 echo "${ECHO_T}$CMP" >&6; }
6607 { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6612 # Extract the first word of "cp", so it can be a program name with args.
6613 set dummy
cp; ac_word
=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_CP+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir
=.
6629 for ac_exec_ext
in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6644 if test -n "$CP"; then
6645 { echo "$as_me:$LINENO: result: $CP" >&5
6646 echo "${ECHO_T}$CP" >&6; }
6648 { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6653 # Extract the first word of "date", so it can be a program name with args.
6654 set dummy
date; ac_word
=$2
6655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657 if test "${ac_cv_path_DATE+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir
=.
6670 for ac_exec_ext
in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6684 DATE
=$ac_cv_path_DATE
6685 if test -n "$DATE"; then
6686 { echo "$as_me:$LINENO: result: $DATE" >&5
6687 echo "${ECHO_T}$DATE" >&6; }
6689 { echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6; }
6694 # Extract the first word of "find", so it can be a program name with args.
6695 set dummy
find; ac_word
=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_path_FIND+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir
=.
6711 for ac_exec_ext
in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6725 FIND
=$ac_cv_path_FIND
6726 if test -n "$FIND"; then
6727 { echo "$as_me:$LINENO: result: $FIND" >&5
6728 echo "${ECHO_T}$FIND" >&6; }
6730 { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6735 # Extract the first word of "grep", so it can be a program name with args.
6736 set dummy
grep; ac_word
=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_path_GREP+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir
=.
6752 for ac_exec_ext
in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6766 GREP
=$ac_cv_path_GREP
6767 if test -n "$GREP"; then
6768 { echo "$as_me:$LINENO: result: $GREP" >&5
6769 echo "${ECHO_T}$GREP" >&6; }
6771 { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6776 # Extract the first word of "mkdir", so it can be a program name with args.
6777 set dummy mkdir
; ac_word
=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_path_MKDIR+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6792 test -z "$as_dir" && as_dir
=.
6793 for ac_exec_ext
in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6807 MKDIR
=$ac_cv_path_MKDIR
6808 if test -n "$MKDIR"; then
6809 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6810 echo "${ECHO_T}$MKDIR" >&6; }
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6817 # Extract the first word of "mv", so it can be a program name with args.
6818 set dummy
mv; ac_word
=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_path_MV+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir
=.
6834 for ac_exec_ext
in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
6849 if test -n "$MV"; then
6850 { echo "$as_me:$LINENO: result: $MV" >&5
6851 echo "${ECHO_T}$MV" >&6; }
6853 { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6858 if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6860 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_prog_RANLIB+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 if test -n "$RANLIB"; then
6867 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir
=.
6874 for ac_exec_ext
in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 RANLIB
=$ac_cv_prog_RANLIB
6887 if test -n "$RANLIB"; then
6888 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6889 echo "${ECHO_T}$RANLIB" >&6; }
6891 { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6897 if test -z "$ac_cv_prog_RANLIB"; then
6898 ac_ct_RANLIB
=$RANLIB
6899 # Extract the first word of "ranlib", so it can be a program name with args.
6900 set dummy ranlib
; ac_word
=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 if test -n "$ac_ct_RANLIB"; then
6907 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir
=.
6914 for ac_exec_ext
in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6927 if test -n "$ac_ct_RANLIB"; then
6928 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6929 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6935 if test "x$ac_ct_RANLIB" = x
; then
6938 case $cross_compiling:$ac_tool_warned in
6940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6941 whose name does not start with the host triplet. If you think this
6942 configuration is useful to you, please write to autoconf@gnu.org." >&5
6943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6944 whose name does not start with the host triplet. If you think this
6945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6946 ac_tool_warned
=yes ;;
6948 RANLIB
=$ac_ct_RANLIB
6951 RANLIB
="$ac_cv_prog_RANLIB"
6954 # Extract the first word of "rm", so it can be a program name with args.
6955 set dummy
rm; ac_word
=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_RM+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
6966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir
=.
6971 for ac_exec_ext
in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
6986 if test -n "$RM"; then
6987 { echo "$as_me:$LINENO: result: $RM" >&5
6988 echo "${ECHO_T}$RM" >&6; }
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6995 # Extract the first word of "sed", so it can be a program name with args.
6996 set dummy
sed; ac_word
=$2
6997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999 if test "${ac_cv_path_SED+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7011 test -z "$as_dir" && as_dir
=.
7012 for ac_exec_ext
in '' $ac_executable_extensions; do
7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7014 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7027 if test -n "$SED"; then
7028 { echo "$as_me:$LINENO: result: $SED" >&5
7029 echo "${ECHO_T}$SED" >&6; }
7031 { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7036 # Extract the first word of "tar", so it can be a program name with args.
7037 set dummy
tar; ac_word
=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_TAR+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir
=.
7053 for ac_exec_ext
in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7068 if test -n "$TAR"; then
7069 { echo "$as_me:$LINENO: result: $TAR" >&5
7070 echo "${ECHO_T}$TAR" >&6; }
7072 { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7077 # Extract the first word of "pwd", so it can be a program name with args.
7078 set dummy
pwd; ac_word
=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_BINPWD+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir
=.
7094 for ac_exec_ext
in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7108 BINPWD
=$ac_cv_path_BINPWD
7109 if test -n "$BINPWD"; then
7110 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7111 echo "${ECHO_T}$BINPWD" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7119 # Extract the first word of "Graphviz", so it can be a program name with args.
7120 set dummy Graphviz
; ac_word
=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir
=.
7136 for ac_exec_ext
in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7150 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7151 if test -n "$GRAPHVIZ"; then
7152 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7153 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7160 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7162 cat >>confdefs.h
<<\_ACEOF
7163 #define HAVE_GRAPHVIZ 1
7166 if test "$llvm_cv_os_type" = "MingW" ; then
7167 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7170 cat >>confdefs.h
<<_ACEOF
7171 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7175 # Extract the first word of "dot", so it can be a program name with args.
7176 set dummy dot
; ac_word
=$2
7177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179 if test "${ac_cv_path_DOT+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7191 test -z "$as_dir" && as_dir
=.
7192 for ac_exec_ext
in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7207 if test -n "$DOT"; then
7208 { echo "$as_me:$LINENO: result: $DOT" >&5
7209 echo "${ECHO_T}$DOT" >&6; }
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7216 if test "$DOT" != "echo dot" ; then
7218 cat >>confdefs.h
<<\_ACEOF
7222 if test "$llvm_cv_os_type" = "MingW" ; then
7223 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7226 cat >>confdefs.h
<<_ACEOF
7227 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7231 # Extract the first word of "fdp", so it can be a program name with args.
7232 set dummy fdp
; ac_word
=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_path_FDP+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir
=.
7248 for ac_exec_ext
in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7263 if test -n "$FDP"; then
7264 { echo "$as_me:$LINENO: result: $FDP" >&5
7265 echo "${ECHO_T}$FDP" >&6; }
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7272 if test "$FDP" != "echo fdp" ; then
7274 cat >>confdefs.h
<<\_ACEOF
7278 if test "$llvm_cv_os_type" = "MingW" ; then
7279 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7282 cat >>confdefs.h
<<_ACEOF
7283 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7287 # Extract the first word of "neato", so it can be a program name with args.
7288 set dummy neato
; ac_word
=$2
7289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7291 if test "${ac_cv_path_NEATO+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir
=.
7304 for ac_exec_ext
in '' $ac_executable_extensions; do
7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7306 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7318 NEATO
=$ac_cv_path_NEATO
7319 if test -n "$NEATO"; then
7320 { echo "$as_me:$LINENO: result: $NEATO" >&5
7321 echo "${ECHO_T}$NEATO" >&6; }
7323 { echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6; }
7328 if test "$NEATO" != "echo neato" ; then
7330 cat >>confdefs.h
<<\_ACEOF
7331 #define HAVE_NEATO 1
7334 if test "$llvm_cv_os_type" = "MingW" ; then
7335 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7338 cat >>confdefs.h
<<_ACEOF
7339 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7343 # Extract the first word of "twopi", so it can be a program name with args.
7344 set dummy twopi
; ac_word
=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_TWOPI+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir
=.
7360 for ac_exec_ext
in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7374 TWOPI
=$ac_cv_path_TWOPI
7375 if test -n "$TWOPI"; then
7376 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7377 echo "${ECHO_T}$TWOPI" >&6; }
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7384 if test "$TWOPI" != "echo twopi" ; then
7386 cat >>confdefs.h
<<\_ACEOF
7387 #define HAVE_TWOPI 1
7390 if test "$llvm_cv_os_type" = "MingW" ; then
7391 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7394 cat >>confdefs.h
<<_ACEOF
7395 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7399 # Extract the first word of "circo", so it can be a program name with args.
7400 set dummy circo
; ac_word
=$2
7401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7403 if test "${ac_cv_path_CIRCO+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir
=.
7416 for ac_exec_ext
in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7430 CIRCO
=$ac_cv_path_CIRCO
7431 if test -n "$CIRCO"; then
7432 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7433 echo "${ECHO_T}$CIRCO" >&6; }
7435 { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7440 if test "$CIRCO" != "echo circo" ; then
7442 cat >>confdefs.h
<<\_ACEOF
7443 #define HAVE_CIRCO 1
7446 if test "$llvm_cv_os_type" = "MingW" ; then
7447 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7450 cat >>confdefs.h
<<_ACEOF
7451 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7455 for ac_prog
in gv gsview32
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy
$ac_prog; ac_word
=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_path_GV+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir
=.
7474 for ac_exec_ext
in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 if test -n "$GV"; then
7489 { echo "$as_me:$LINENO: result: $GV" >&5
7490 echo "${ECHO_T}$GV" >&6; }
7492 { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7497 test -n "$GV" && break
7499 test -n "$GV" || GV
="echo gv"
7501 if test "$GV" != "echo gv" ; then
7503 cat >>confdefs.h
<<\_ACEOF
7507 if test "$llvm_cv_os_type" = "MingW" ; then
7508 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7511 cat >>confdefs.h
<<_ACEOF
7512 #define LLVM_PATH_GV "$GV${EXEEXT}"
7516 # Extract the first word of "dotty", so it can be a program name with args.
7517 set dummy dotty
; ac_word
=$2
7518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7520 if test "${ac_cv_path_DOTTY+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7532 test -z "$as_dir" && as_dir
=.
7533 for ac_exec_ext
in '' $ac_executable_extensions; do
7534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7535 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7547 DOTTY
=$ac_cv_path_DOTTY
7548 if test -n "$DOTTY"; then
7549 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7550 echo "${ECHO_T}$DOTTY" >&6; }
7552 { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7557 if test "$DOTTY" != "echo dotty" ; then
7559 cat >>confdefs.h
<<\_ACEOF
7560 #define HAVE_DOTTY 1
7563 if test "$llvm_cv_os_type" = "MingW" ; then
7564 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7567 cat >>confdefs.h
<<_ACEOF
7568 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7574 # Extract the first word of "perl", so it can be a program name with args.
7575 set dummy perl
; ac_word
=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_PERL+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir
=.
7591 for ac_exec_ext
in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7605 PERL
=$ac_cv_path_PERL
7606 if test -n "$PERL"; then
7607 { echo "$as_me:$LINENO: result: $PERL" >&5
7608 echo "${ECHO_T}$PERL" >&6; }
7610 { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7615 if test "$PERL" != "none"; then
7616 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7617 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7618 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7619 { echo "$as_me:$LINENO: result: yes" >&5
7620 echo "${ECHO_T}yes" >&6; }
7623 { echo "$as_me:$LINENO: result: not found" >&5
7624 echo "${ECHO_T}not found" >&6; }
7629 if test x
"$PERL" = xnone
; then
7632 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7633 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7634 { (exit 1); exit 1; }; }
7640 # Find a good install program. We prefer a C program (faster),
7641 # so one script is as good as another. But avoid the broken or
7642 # incompatible versions:
7643 # SysV /etc/install, /usr/sbin/install
7644 # SunOS /usr/etc/install
7645 # IRIX /sbin/install
7647 # AmigaOS /C/install, which installs bootblocks on floppy discs
7648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7651 # OS/2's system install, which has a completely different semantic
7652 # ./install, which can be erroneously created by make from ./install.sh.
7653 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7654 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7655 if test -z "$INSTALL"; then
7656 if test "${ac_cv_path_install+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7663 test -z "$as_dir" && as_dir
=.
7664 # Account for people who put trailing slashes in PATH elements.
7666 .
/ | .
// |
/cC
/* | \
7667 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7668 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7671 # OSF1 and SCO ODT 3.0 have their own names for install.
7672 # Don't use installbsd from OSF since it installs stuff as root
7674 for ac_prog
in ginstall scoinst
install; do
7675 for ac_exec_ext
in '' $ac_executable_extensions; do
7676 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7677 if test $ac_prog = install &&
7678 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7679 # AIX install. It has an incompatible calling convention.
7681 elif test $ac_prog = install &&
7682 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7683 # program-specific install script used by HP pwplus--don't use.
7686 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7699 if test "${ac_cv_path_install+set}" = set; then
7700 INSTALL
=$ac_cv_path_install
7702 # As a last resort, use the slow shell script. Don't cache a
7703 # value for INSTALL within a source directory, because that will
7704 # break other packages using the cache if that directory is
7705 # removed, or if the value is a relative name.
7706 INSTALL
=$ac_install_sh
7709 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7710 echo "${ECHO_T}$INSTALL" >&6; }
7712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7713 # It thinks the first close brace ends the variable substitution.
7714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7718 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7721 # Extract the first word of "bzip2", so it can be a program name with args.
7722 set dummy
bzip2; ac_word
=$2
7723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725 if test "${ac_cv_path_BZIP2+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7737 test -z "$as_dir" && as_dir
=.
7738 for ac_exec_ext
in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7740 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 BZIP2
=$ac_cv_path_BZIP2
7752 if test -n "$BZIP2"; then
7753 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7754 echo "${ECHO_T}$BZIP2" >&6; }
7756 { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7761 # Extract the first word of "doxygen", so it can be a program name with args.
7762 set dummy doxygen
; ac_word
=$2
7763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7765 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7777 test -z "$as_dir" && as_dir
=.
7778 for ac_exec_ext
in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7780 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 DOXYGEN
=$ac_cv_path_DOXYGEN
7792 if test -n "$DOXYGEN"; then
7793 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7794 echo "${ECHO_T}$DOXYGEN" >&6; }
7796 { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7801 # Extract the first word of "groff", so it can be a program name with args.
7802 set dummy
groff; ac_word
=$2
7803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7805 if test "${ac_cv_path_GROFF+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7817 test -z "$as_dir" && as_dir
=.
7818 for ac_exec_ext
in '' $ac_executable_extensions; do
7819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7820 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 GROFF
=$ac_cv_path_GROFF
7832 if test -n "$GROFF"; then
7833 { echo "$as_me:$LINENO: result: $GROFF" >&5
7834 echo "${ECHO_T}$GROFF" >&6; }
7836 { echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6; }
7841 # Extract the first word of "gzip", so it can be a program name with args.
7842 set dummy
gzip; ac_word
=$2
7843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7845 if test "${ac_cv_path_GZIP+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7857 test -z "$as_dir" && as_dir
=.
7858 for ac_exec_ext
in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 GZIP
=$ac_cv_path_GZIP
7872 if test -n "$GZIP"; then
7873 { echo "$as_me:$LINENO: result: $GZIP" >&5
7874 echo "${ECHO_T}$GZIP" >&6; }
7876 { echo "$as_me:$LINENO: result: no" >&5
7877 echo "${ECHO_T}no" >&6; }
7881 # Extract the first word of "pod2html", so it can be a program name with args.
7882 set dummy pod2html
; ac_word
=$2
7883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7885 if test "${ac_cv_path_POD2HTML+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7897 test -z "$as_dir" && as_dir
=.
7898 for ac_exec_ext
in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 POD2HTML
=$ac_cv_path_POD2HTML
7912 if test -n "$POD2HTML"; then
7913 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7914 echo "${ECHO_T}$POD2HTML" >&6; }
7916 { echo "$as_me:$LINENO: result: no" >&5
7917 echo "${ECHO_T}no" >&6; }
7921 # Extract the first word of "pod2man", so it can be a program name with args.
7922 set dummy pod2man
; ac_word
=$2
7923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925 if test "${ac_cv_path_POD2MAN+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7937 test -z "$as_dir" && as_dir
=.
7938 for ac_exec_ext
in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 POD2MAN
=$ac_cv_path_POD2MAN
7952 if test -n "$POD2MAN"; then
7953 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7954 echo "${ECHO_T}$POD2MAN" >&6; }
7956 { echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6; }
7961 # Extract the first word of "runtest", so it can be a program name with args.
7962 set dummy runtest
; ac_word
=$2
7963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7965 if test "${ac_cv_path_RUNTEST+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
7973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7977 test -z "$as_dir" && as_dir
=.
7978 for ac_exec_ext
in '' $ac_executable_extensions; do
7979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7980 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
7981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 RUNTEST
=$ac_cv_path_RUNTEST
7992 if test -n "$RUNTEST"; then
7993 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7994 echo "${ECHO_T}$RUNTEST" >&6; }
7996 { echo "$as_me:$LINENO: result: no" >&5
7997 echo "${ECHO_T}no" >&6; }
8003 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8004 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8006 # Check whether --with-tclinclude was given.
8007 if test "${with_tclinclude+set}" = set; then
8008 withval
=$with_tclinclude; with_tclinclude
=${withval}
8013 if test "${ac_cv_path_tclsh+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 if test x
"${with_tclinclude}" != x
; then
8018 if test -f ${with_tclinclude}/tclsh
; then
8019 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8020 elif test -f ${with_tclinclude}/src
/tclsh
; then
8021 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8023 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8024 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8025 { (exit 1); exit 1; }; }
8029 if test x
"${ac_cv_path_tclsh}" = x
; then
8030 { echo "$as_me:$LINENO: result: none" >&5
8031 echo "${ECHO_T}none" >&6; }
8032 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
8034 # Extract the first word of "$ac_prog", so it can be a program name with args.
8035 set dummy
$ac_prog; ac_word
=$2
8036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8038 if test "${ac_cv_path_TCLSH+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir
=.
8051 for ac_exec_ext
in '' $ac_executable_extensions; do
8052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8053 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 TCLSH
=$ac_cv_path_TCLSH
8065 if test -n "$TCLSH"; then
8066 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8067 echo "${ECHO_T}$TCLSH" >&6; }
8069 { echo "$as_me:$LINENO: result: no" >&5
8070 echo "${ECHO_T}no" >&6; }
8074 test -n "$TCLSH" && break
8077 if test x
"${TCLSH}" = x
; then
8078 ac_cv_path_tclsh
='';
8080 ac_cv_path_tclsh
="${TCLSH}";
8083 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8084 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8085 TCLSH="${ac_cv_path_tclsh}"
8091 # Extract the first word of "zip", so it can be a program name with args.
8092 set dummy zip; ac_word=$2
8093 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8094 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8095 if test "${ac_cv_path_ZIP+set}" = set; then
8096 echo $ECHO_N "(cached
) $ECHO_C" >&6
8100 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8110 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8111 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8122 if test -n "$ZIP"; then
8123 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8124 echo "${ECHO_T}$ZIP" >&6; }
8126 { echo "$as_me:$LINENO: result
: no
" >&5
8127 echo "${ECHO_T}no
" >&6; }
8131 for ac_prog in ocamlc
8133 # Extract the first word of "$ac_prog", so it can be a program name with args.
8134 set dummy $ac_prog; ac_word=$2
8135 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8136 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8137 if test "${ac_cv_path_OCAMLC+set}" = set; then
8138 echo $ECHO_N "(cached
) $ECHO_C" >&6
8142 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8152 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8153 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8163 OCAMLC=$ac_cv_path_OCAMLC
8164 if test -n "$OCAMLC"; then
8165 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8166 echo "${ECHO_T}$OCAMLC" >&6; }
8168 { echo "$as_me:$LINENO: result
: no
" >&5
8169 echo "${ECHO_T}no
" >&6; }
8173 test -n "$OCAMLC" && break
8176 for ac_prog in ocamlopt
8178 # Extract the first word of "$ac_prog", so it can be a program name with args.
8179 set dummy $ac_prog; ac_word=$2
8180 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8181 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8182 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8183 echo $ECHO_N "(cached
) $ECHO_C" >&6
8187 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8197 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8198 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8208 OCAMLOPT=$ac_cv_path_OCAMLOPT
8209 if test -n "$OCAMLOPT"; then
8210 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8211 echo "${ECHO_T}$OCAMLOPT" >&6; }
8213 { echo "$as_me:$LINENO: result
: no
" >&5
8214 echo "${ECHO_T}no
" >&6; }
8218 test -n "$OCAMLOPT" && break
8221 for ac_prog in ocamldep
8223 # Extract the first word of "$ac_prog", so it can be a program name with args.
8224 set dummy $ac_prog; ac_word=$2
8225 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8226 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8227 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8228 echo $ECHO_N "(cached
) $ECHO_C" >&6
8232 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8242 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8243 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8253 OCAMLDEP=$ac_cv_path_OCAMLDEP
8254 if test -n "$OCAMLDEP"; then
8255 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8256 echo "${ECHO_T}$OCAMLDEP" >&6; }
8258 { echo "$as_me:$LINENO: result
: no
" >&5
8259 echo "${ECHO_T}no
" >&6; }
8263 test -n "$OCAMLDEP" && break
8266 for ac_prog in ocamldoc
8268 # Extract the first word of "$ac_prog", so it can be a program name with args.
8269 set dummy $ac_prog; ac_word=$2
8270 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8271 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8272 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8273 echo $ECHO_N "(cached
) $ECHO_C" >&6
8277 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8287 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8288 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8298 OCAMLDOC=$ac_cv_path_OCAMLDOC
8299 if test -n "$OCAMLDOC"; then
8300 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8301 echo "${ECHO_T}$OCAMLDOC" >&6; }
8303 { echo "$as_me:$LINENO: result
: no
" >&5
8304 echo "${ECHO_T}no
" >&6; }
8308 test -n "$OCAMLDOC" && break
8311 for ac_prog in gas as
8313 # Extract the first word of "$ac_prog", so it can be a program name with args.
8314 set dummy $ac_prog; ac_word=$2
8315 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8316 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8317 if test "${ac_cv_path_GAS+set}" = set; then
8318 echo $ECHO_N "(cached
) $ECHO_C" >&6
8322 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8333 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8344 if test -n "$GAS"; then
8345 { echo "$as_me:$LINENO: result
: $GAS" >&5
8346 echo "${ECHO_T}$GAS" >&6; }
8348 { echo "$as_me:$LINENO: result
: no
" >&5
8349 echo "${ECHO_T}no
" >&6; }
8353 test -n "$GAS" && break
8357 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8358 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8359 if test "${llvm_cv_link_use_r+set}" = set; then
8360 echo $ECHO_N "(cached
) $ECHO_C" >&6
8363 ac_cpp='$CPP $CPPFLAGS'
8364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8369 CFLAGS="$CFLAGS -Wl,-R.
"
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8380 int main() { return 0; }
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (ac_try="$ac_link"
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_link") 2>conftest.er1
8394 grep -v '^ *+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 llvm_cv_link_use_r=yes
8421 echo "$as_me: failed program was
:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 llvm_cv_link_use_r=no
8427 rm -f core conftest.err conftest.$ac_objext \
8428 conftest$ac_exeext conftest.$ac_ext
8431 ac_cpp='$CPP $CPPFLAGS'
8432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8438 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8439 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8440 if test "$llvm_cv_link_use_r" = yes ; then
8442 cat >>confdefs.h <<\_ACEOF
8443 #define HAVE_LINK_R 1
8449 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-export-dynamic option
" >&5
8450 echo $ECHO_N "checking
for compiler
-Wl,-export-dynamic option...
$ECHO_C" >&6; }
8451 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8452 echo $ECHO_N "(cached
) $ECHO_C" >&6
8455 ac_cpp='$CPP $CPPFLAGS'
8456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8461 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8462 cat >conftest.$ac_ext <<_ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8472 int main() { return 0; }
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_link") 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492 { (case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_try") 2>&5
8499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest$ac_exeext'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 llvm_cv_link_use_export_dynamic=yes
8513 echo "$as_me: failed program was
:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 llvm_cv_link_use_export_dynamic=no
8519 rm -f core conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
8523 ac_cpp='$CPP $CPPFLAGS'
8524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8530 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_export_dynamic" >&5
8531 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8532 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8534 cat >>confdefs.h <<\_ACEOF
8535 #define HAVE_LINK_EXPORT_DYNAMIC 1
8543 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8544 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8545 if test "${ac_cv_c_const+set}" = set; then
8546 echo $ECHO_N "(cached
) $ECHO_C" >&6
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8558 /* FIXME: Include the comments suggested by Paul. */
8560 /* Ultrix mips cc rejects this. */
8561 typedef int charset[2];
8563 /* SunOS 4.1.1 cc rejects this. */
8564 char const *const *ccp;
8566 /* NEC SVR4.0.2 mips cc rejects this. */
8567 struct point {int x, y;};
8568 static struct point const zero = {0,0};
8569 /* AIX XL C 1.02.0.0 rejects this.
8570 It does not let you subtract one const X* pointer from another in
8571 an arm of an if-expression whose if-part is not a constant
8573 const char *g = "string
";
8574 ccp = &g + (g ? g-g : 0);
8575 /* HPUX 7.0 cc rejects these. */
8578 ccp = (char const *const *) p;
8579 { /* SCO 3.2v4 cc rejects this. */
8581 char const *s = 0 ? (char *) 0 : (char const *) 0;
8586 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8588 const int *foo = &x[0];
8591 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8592 typedef const int *iptr;
8596 { /* AIX XL C 1.02.0.0 rejects this saying
8597 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8598 struct s { int j; const int *ap[3]; };
8599 struct s *b; b->j = 5;
8601 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8605 return !x[0] && !zero.x;
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8621 grep -v '^ *+' conftest.er1 >conftest.err
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8625 (exit $ac_status); } &&
8626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8627 { (case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_try") 2>&5
8634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8645 (exit $ac_status); }; }; then
8648 echo "$as_me: failed program was
:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8657 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8658 if test $ac_cv_c_const = no; then
8660 cat >>confdefs.h <<\_ACEOF
8672 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8673 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8674 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8675 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8676 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8677 echo $ECHO_N "(cached
) $ECHO_C" >&6
8679 cat >conftest.$ac_ext <<_ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 #include <sys/types.h>
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8706 grep -v '^ *+' conftest.er1 >conftest.err
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712 { (case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_try") 2>&5
8719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8720 (exit $ac_status); }; } &&
8721 { ac_try='test -s conftest.$ac_objext'
8722 { (case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_try") 2>&5
8729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 eval "$as_ac_Header=yes"
8733 echo "$as_me: failed program was
:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 eval "$as_ac_Header=no
"
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 ac_res=`eval echo '${'$as_ac_Header'}'`
8742 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8743 echo "${ECHO_T}$ac_res" >&6; }
8744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8749 ac_header_dirent=$ac_hdr; break
8753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8754 if test $ac_header_dirent = dirent.h; then
8755 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8756 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8757 if test "${ac_cv_search_opendir+set}" = set; then
8758 echo $ECHO_N "(cached
) $ECHO_C" >&6
8760 ac_func_search_save_LIBS=$LIBS
8761 cat >conftest.$ac_ext <<_ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8768 /* Override any GCC internal prototype to avoid an error.
8769 Use char because int might match the return type of a GCC
8770 builtin and then its argument prototype would still apply. */
8783 for ac_lib in '' dir; do
8784 if test -z "$ac_lib"; then
8785 ac_res="none required
"
8788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8790 rm -f conftest.$ac_objext conftest$ac_exeext
8791 if { (ac_try="$ac_link"
8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 *) ac_try_echo=$ac_try;;
8796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8797 (eval "$ac_link") 2>conftest.er1
8799 grep -v '^ *+' conftest.er1 >conftest.err
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8805 { (case "(($ac_try" in
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8810 (eval "$ac_try") 2>&5
8812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest$ac_exeext'
8815 { (case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8820 (eval "$ac_try") 2>&5
8822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8823 (exit $ac_status); }; }; then
8824 ac_cv_search_opendir=$ac_res
8826 echo "$as_me: failed program was
:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8832 rm -f core conftest.err conftest.$ac_objext \
8834 if test "${ac_cv_search_opendir+set}" = set; then
8838 if test "${ac_cv_search_opendir+set}" = set; then
8841 ac_cv_search_opendir=no
8844 LIBS=$ac_func_search_save_LIBS
8846 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8848 ac_res=$ac_cv_search_opendir
8849 if test "$ac_res" != no; then
8850 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8855 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8856 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8857 if test "${ac_cv_search_opendir+set}" = set; then
8858 echo $ECHO_N "(cached
) $ECHO_C" >&6
8860 ac_func_search_save_LIBS=$LIBS
8861 cat >conftest.$ac_ext <<_ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8868 /* Override any GCC internal prototype to avoid an error.
8869 Use char because int might match the return type of a GCC
8870 builtin and then its argument prototype would still apply. */
8883 for ac_lib in '' x; do
8884 if test -z "$ac_lib"; then
8885 ac_res="none required
"
8888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8890 rm -f conftest.$ac_objext conftest$ac_exeext
8891 if { (ac_try="$ac_link"
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_link") 2>conftest.er1
8899 grep -v '^ *+' conftest.er1 >conftest.err
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8905 { (case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_try") 2>&5
8912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8913 (exit $ac_status); }; } &&
8914 { ac_try='test -s conftest$ac_exeext'
8915 { (case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_try") 2>&5
8922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_cv_search_opendir=$ac_res
8926 echo "$as_me: failed program was
:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8932 rm -f core conftest.err conftest.$ac_objext \
8934 if test "${ac_cv_search_opendir+set}" = set; then
8938 if test "${ac_cv_search_opendir+set}" = set; then
8941 ac_cv_search_opendir=no
8944 LIBS=$ac_func_search_save_LIBS
8946 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8947 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8948 ac_res=$ac_cv_search_opendir
8949 if test "$ac_res" != no; then
8950 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8957 for ac_header in dlfcn.h
8959 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8960 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8961 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8962 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8963 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8964 echo $ECHO_N "(cached
) $ECHO_C" >&6
8966 ac_res=`eval echo '${'$as_ac_Header'}'`
8967 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8968 echo "${ECHO_T}$ac_res" >&6; }
8970 # Is the header compilable?
8971 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8972 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8973 cat >conftest.$ac_ext <<_ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 $ac_includes_default
8980 #include <$ac_header>
8982 rm -f conftest.$ac_objext
8983 if { (ac_try="$ac_compile"
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8989 (eval "$ac_compile") 2>conftest.er1
8991 grep -v '^ *+' conftest.er1 >conftest.err
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8995 (exit $ac_status); } &&
8996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8997 { (case "(($ac_try" in
8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999 *) ac_try_echo=$ac_try;;
9001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9002 (eval "$ac_try") 2>&5
9004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9005 (exit $ac_status); }; } &&
9006 { ac_try='test -s conftest.$ac_objext'
9007 { (case "(($ac_try" in
9008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009 *) ac_try_echo=$ac_try;;
9011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9012 (eval "$ac_try") 2>&5
9014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 ac_header_compiler=yes
9018 echo "$as_me: failed program was
:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_header_compiler=no
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9026 echo "${ECHO_T}$ac_header_compiler" >&6; }
9028 # Is the header present?
9029 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9030 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9031 cat >conftest.$ac_ext <<_ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 #include <$ac_header>
9039 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9051 (exit $ac_status); } >/dev/null; then
9052 if test -s conftest.err; then
9053 ac_cpp_err=$ac_c_preproc_warn_flag
9054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9061 if test -z "$ac_cpp_err"; then
9062 ac_header_preproc=yes
9064 echo "$as_me: failed program was
:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 ac_header_preproc=no
9070 rm -f conftest.err conftest.$ac_ext
9071 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9072 echo "${ECHO_T}$ac_header_preproc" >&6; }
9074 # So? What about this header?
9075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9077 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9078 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9079 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9081 ac_header_preproc=yes
9084 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9085 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9086 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9087 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9088 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9089 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9090 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9091 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9092 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9094 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9095 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9097 ## ----------------------------------- ##
9098 ## Report this to llvmbugs@cs.uiuc.edu ##
9099 ## ----------------------------------- ##
9101 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9104 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9105 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9106 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9107 echo $ECHO_N "(cached
) $ECHO_C" >&6
9109 eval "$as_ac_Header=\
$ac_header_preproc"
9111 ac_res=`eval echo '${'$as_ac_Header'}'`
9112 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9113 echo "${ECHO_T}$ac_res" >&6; }
9116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9117 cat >>confdefs.h <<_ACEOF
9118 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9125 # Check whether --enable-ltdl-install was given.
9126 if test "${enable_ltdl_install+set}" = set; then
9127 enableval=$enable_ltdl_install;
9133 if test x"${enable_ltdl_install-no}" != xno; then
9135 INSTALL_LTDL_FALSE='#'
9137 INSTALL_LTDL_TRUE='#'
9143 if test x"${enable_ltdl_convenience-no}" != xno; then
9144 CONVENIENCE_LTDL_TRUE=
9145 CONVENIENCE_LTDL_FALSE='#'
9147 CONVENIENCE_LTDL_TRUE='#'
9148 CONVENIENCE_LTDL_FALSE=
9152 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
9153 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
9155 libname_spec='lib$name'
9163 shlibpath_overrides_runpath=unknown
9165 dynamic_linker="$host_os ld.so
"
9166 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
9167 if test "$GCC" = yes; then
9168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9169 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9170 # if the path contains ";" then we assume it to be the separator
9171 # otherwise default to the standard path separator (i.e. ":") - it is
9172 # assumed that no part of a normal pathname contains ";" but that should
9173 # okay in the real world where ";" in dirpaths is itself problematic.
9174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9179 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
9181 need_lib_prefix=unknown
9182 hardcode_into_libs=no
9184 # when you set need_version to no, make sure it does not cause -set_version
9185 # flags to be left without arguments
9186 need_version=unknown
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9192 shlibpath_var=LIBPATH
9194 # AIX 3 has no versioning support, so we append a major version to the name.
9195 soname_spec='${libname}${release}${shared_ext}$major'
9202 hardcode_into_libs=yes
9203 if test "$host_cpu" = ia64; then
9204 # AIX 5 supports IA64
9205 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9206 shlibpath_var=LD_LIBRARY_PATH
9208 # With GCC up to 2.95.x, collect2 would create an import file
9209 # for dependence libraries. The import file would start with
9210 # the line `#! .'. This would cause the generated library to
9211 # depend on `.', always an invalid library. This was fixed in
9212 # development snapshots of GCC prior to 3.0.
9214 aix4 | aix4.[01] | aix4.[01].*)
9215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9217 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9224 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9225 # soname into executable. Probably we can add versioning support to
9226 # collect2, so additional links can be useful in future.
9227 if test "$aix_use_runtimelinking" = yes; then
9228 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9229 # instead of lib<name>.a to let people know that these are not
9230 # typical AIX shared libraries.
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 # We preserve .a as extension for shared libraries through AIX4.2
9234 # and later when we are not doing run time linking.
9235 library_names_spec='${libname}${release}.a $libname.a'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9238 shlibpath_var=LIBPATH
9243 library_names_spec='$libname.ixlibrary $libname.a'
9244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9245 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'
9249 library_names_spec='${libname}${shared_ext}'
9250 dynamic_linker="$host_os ld.so
"
9251 shlibpath_var=LIBRARY_PATH
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9262 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9263 # the default ld.so.conf also contains /usr/contrib/lib and
9264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9265 # libtool to hard-code these into programs
9268 cygwin* | mingw* | pw32*)
9269 version_type=windows
9274 case $GCC,$host_os in
9275 yes,cygwin* | yes,mingw* | yes,pw32*)
9276 library_names_spec='$libname.dll.a'
9277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9278 postinstall_cmds='base_file=`basename \${file}`~
9279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9280 dldir=$destdir/`dirname \$dlpath`~
9281 test -d \$dldir || mkdir -p \$dldir~
9282 $install_prog $dir/$dlname \$dldir/$dlname~
9283 chmod a+x \$dldir/$dlname'
9284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9285 dlpath=$dir/\$dldll~
9287 shlibpath_overrides_runpath=yes
9291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9296 # MinGW DLLs use traditional 'lib' prefix
9297 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9298 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9299 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9300 # It is most probably a Windows format PATH printed by
9301 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9302 # path with ; separators, and with drive letters. We can handle the
9303 # drive letters (cygwin fileutils understands them), so leave them,
9304 # especially as we might pass files found there to a mingw objdump,
9305 # which wouldn't understand a cygwinified path. Ahh.
9306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9312 # pw32 DLLs use 'pw' prefix rather than 'lib'
9313 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9322 dynamic_linker='Win32 ld.exe'
9323 # FIXME: first we should search . and the directory the executable is in
9327 darwin* | rhapsody*)
9328 dynamic_linker="$host_os dyld
"
9332 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9333 soname_spec='${libname}${release}${major}$shared_ext'
9334 shlibpath_overrides_runpath=yes
9335 shlibpath_var=DYLD_LIBRARY_PATH
9336 shrext_cmds='.dylib'
9337 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9338 if test "$GCC" = yes; then
9339 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
"`
9341 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 shlibpath_overrides_runpath=no
9367 hardcode_into_libs=yes
9368 dynamic_linker='GNU ld.so'
9371 freebsd* | dragonfly*)
9372 # DragonFly does not have aout. When/if they implement a new
9373 # versioning mechanism, adjust this.
9374 if test -x /usr/bin/objformat; then
9375 objformat=`/usr/bin/objformat`
9378 freebsd[123]*) objformat=aout ;;
9382 version_type=freebsd-$objformat
9383 case $version_type in
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9394 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=yes
9399 freebsd3.[01]* | freebsdelf3.[01]*)
9400 shlibpath_overrides_runpath=yes
9401 hardcode_into_libs=yes
9403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9405 shlibpath_overrides_runpath=no
9406 hardcode_into_libs=yes
9408 freebsd*) # from 4.6 on
9409 shlibpath_overrides_runpath=yes
9410 hardcode_into_libs=yes
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 hardcode_into_libs=yes
9425 hpux9* | hpux10* | hpux11*)
9426 # Give a soname corresponding to the major version so that dld.sl refuses to
9427 # link against other versions.
9434 hardcode_into_libs=yes
9435 dynamic_linker="$host_os dld.so
"
9436 shlibpath_var=LD_LIBRARY_PATH
9437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 if test "X
$HPUX_IA64_MODE" = X32; then
9441 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9443 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9449 hardcode_into_libs=yes
9450 dynamic_linker="$host_os dld.sl
"
9451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9460 dynamic_linker="$host_os dld.sl
"
9461 shlibpath_var=SHLIB_PATH
9462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9468 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 shlibpath_overrides_runpath=no
9480 hardcode_into_libs=yes
9483 irix5* | irix6* | nonstopux*)
9485 nonstopux*) version_type=nonstopux ;;
9487 if test "$lt_cv_prog_gnu_ld" = yes; then
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9498 irix5* | nonstopux*)
9502 case $LD in # libtool.m4 will add one of these switches to LD
9503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9504 libsuff= shlibsuff= libmagic=32-bit;;
9505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9506 libsuff=32 shlibsuff=N32 libmagic=N32;;
9507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9509 *) libsuff= shlibsuff= libmagic=never-match;;
9513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9514 shlibpath_overrides_runpath=no
9515 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9516 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9517 hardcode_into_libs=yes
9520 # No shared lib support for Linux oldld, aout, or coff.
9521 linux*oldld* | linux*aout* | linux*coff*)
9525 # This must be Linux ELF.
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 shlibpath_overrides_runpath=no
9535 # This implies no fast_install, which is unacceptable.
9536 # Some rework will be needed to allow for fast_install
9537 # before this can be enabled.
9538 hardcode_into_libs=yes
9540 # Append ld.so.conf contents to the search path
9541 if test -f /etc/ld.so.conf; then
9542 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' ' '`
9543 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9546 # We used to test for /lib/ld.so.1 and disable shared libraries on
9547 # powerpc, because MkLinux only supported shared libraries with the
9548 # GNU dynamic linker. Since this was broken with cross compilers,
9549 # most powerpc-linux boxes support dynamic linking these days and
9550 # people can always --disable-shared, the test was removed, and we
9551 # assume the GNU/Linux dynamic linker is in use.
9552 dynamic_linker='GNU/Linux ld.so'
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 shlibpath_var=LD_LIBRARY_PATH
9562 shlibpath_overrides_runpath=no
9563 hardcode_into_libs=yes
9564 dynamic_linker='GNU ld.so'
9571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9573 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9574 dynamic_linker='NetBSD (a.out) ld.so'
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 dynamic_linker='NetBSD ld.elf_so'
9580 shlibpath_var=LD_LIBRARY_PATH
9581 shlibpath_overrides_runpath=yes
9582 hardcode_into_libs=yes
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588 shlibpath_var=LD_LIBRARY_PATH
9589 shlibpath_overrides_runpath=yes
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597 soname_spec='${libname}${release}${shared_ext}$major'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 shlibpath_overrides_runpath=yes
9604 sys_lib_dlsearch_path_spec="/usr
/lib
"
9606 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9608 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9609 *) need_version=no ;;
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9612 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9616 openbsd2.[89] | openbsd2.[89].*)
9617 shlibpath_overrides_runpath=no
9620 shlibpath_overrides_runpath=yes
9624 shlibpath_overrides_runpath=yes
9629 libname_spec='$name'
9632 library_names_spec='$libname${shared_ext} $libname.a'
9633 dynamic_linker='OS/2 ld.exe'
9634 shlibpath_var=LIBPATH
9637 osf3* | osf4* | osf5*)
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643 shlibpath_var=LD_LIBRARY_PATH
9644 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=yes
9656 hardcode_into_libs=yes
9657 # ldd complains unless libraries are executable
9658 postinstall_cmds='chmod +x $lib'
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=yes
9667 if test "$with_gnu_ld" = yes; then
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 case $host_vendor in
9680 shlibpath_overrides_runpath=no
9682 export_dynamic_flag_spec='${wl}-Blargedynsym'
9683 runpath_var=LD_RUN_PATH
9691 shlibpath_overrides_runpath=no
9692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9698 if test -d /usr/nec ;then
9700 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9701 soname_spec='$libname${shared_ext}.$major'
9702 shlibpath_var=LD_LIBRARY_PATH
9706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9707 version_type=freebsd-elf
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 shlibpath_var=LD_LIBRARY_PATH
9713 hardcode_into_libs=yes
9714 if test "$with_gnu_ld" = yes; then
9715 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9716 shlibpath_overrides_runpath=no
9718 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9719 shlibpath_overrides_runpath=yes
9722 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9726 sys_lib_dlsearch_path_spec='/usr/lib'
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 shlibpath_var=LD_LIBRARY_PATH
9740 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9741 echo "${ECHO_T}$dynamic_linker" >&6; }
9742 test "$dynamic_linker" = no && can_build_shared=no
9744 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9745 if test "$GCC" = yes; then
9746 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9750 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9751 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9752 if test "${libltdl_cv_shlibext+set}" = set; then
9753 echo $ECHO_N "(cached
) $ECHO_C" >&6
9757 eval libltdl_cv_shlibext=$shrext_cmds
9760 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9761 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9762 if test -n "$libltdl_cv_shlibext"; then
9764 cat >>confdefs.h <<_ACEOF
9765 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9771 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9772 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9773 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9774 echo $ECHO_N "(cached
) $ECHO_C" >&6
9776 libltdl_cv_shlibpath_var="$shlibpath_var"
9778 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9779 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9780 if test -n "$libltdl_cv_shlibpath_var"; then
9782 cat >>confdefs.h <<_ACEOF
9783 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9789 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9790 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9791 if test "${libltdl_cv_sys_search_path+set}" = set; then
9792 echo $ECHO_N "(cached
) $ECHO_C" >&6
9794 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9796 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9797 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9798 if test -n "$libltdl_cv_sys_search_path"; then
9800 for dir in $libltdl_cv_sys_search_path; do
9801 if test -z "$sys_search_path"; then
9802 sys_search_path="$dir"
9804 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9808 cat >>confdefs.h <<_ACEOF
9809 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9814 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9815 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9816 if test "${libltdl_cv_objdir+set}" = set; then
9817 echo $ECHO_N "(cached
) $ECHO_C" >&6
9819 libltdl_cv_objdir="$objdir"
9820 if test -n "$objdir"; then
9823 rm -f .libs 2>/dev/null
9824 mkdir .libs 2>/dev/null
9825 if test -d .libs; then
9826 libltdl_cv_objdir=.libs
9828 # MS-DOS does not allow filenames that begin with a dot.
9829 libltdl_cv_objdir=_libs
9831 rmdir .libs 2>/dev/null
9835 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9836 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9838 cat >>confdefs.h <<_ACEOF
9839 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9847 # Check for command to grab the raw symbol name followed by C symbol from nm.
9848 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9849 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9850 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9851 echo $ECHO_N "(cached
) $ECHO_C" >&6
9854 # These are sane defaults that work on at least a few old systems.
9855 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9857 # Character class describing NM global symbol codes.
9858 symcode='[BCDEGRST]'
9860 # Regexp to match symbols that can be accessed directly from C.
9861 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9863 # Transform an extracted symbol line into a proper C declaration
9864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9866 # Transform an extracted symbol line into symbol name and symbol address
9867 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'"
9869 # Define system-specific variables.
9874 cygwin* | mingw* | pw32*)
9875 symcode='[ABCDGISTW]'
9877 hpux*) # Its linker distinguishes data from code symbols
9878 if test "$host_cpu" = ia64; then
9879 symcode='[ABCDEGRST]'
9881 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9882 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'"
9885 if test "$host_cpu" = ia64; then
9886 symcode='[ABCDGIRSTW]'
9887 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9888 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'"
9892 symcode='[BCDEGRST]'
9895 symcode='[BCDEGQRST]'
9906 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9914 # Handle CRLF in mingw tool chain
9918 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9922 # If we're using GNU nm, then use its standard symbol codes.
9923 case `$NM -V 2>&1` in
9924 *GNU* | *'with BFD'*)
9925 symcode='[ABCDGIRSTW]' ;;
9928 # Try without a prefix undercore, then with it.
9929 for ac_symprfx in "" "_
"; do
9931 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9932 symxfrm="\\1 $ac_symprfx\\2 \\2"
9934 # Write the raw and C identifiers.
9935 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9937 # Check to see that the pipe works correctly.
9941 cat > conftest.$ac_ext <<EOF
9946 void nm_test_func(){}
9950 int main(){nm_test_var='a';nm_test_func();return(0);}
9953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954 (eval $ac_compile) 2>&5
9956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9957 (exit $ac_status); }; then
9958 # Now try to grab the symbols.
9960 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
9961 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9964 (exit $ac_status); } && test -s "$nlist"; then
9965 # Try sorting and uniquifying the output.
9966 if sort "$nlist" | uniq > "$nlist"T; then
9967 mv -f "$nlist"T "$nlist"
9972 # Make sure that we snagged all the symbols we need.
9973 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9974 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9975 cat <<EOF > conftest.$ac_ext
9981 # Now generate the symbol file.
9982 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9984 cat <<EOF >> conftest.$ac_ext
9985 #if defined (__STDC__) && __STDC__
9986 # define lt_ptr_t void *
9988 # define lt_ptr_t char *
9992 /* The mapping between symbol names and symbols. */
9997 lt_preloaded_symbols[] =
10000 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10001 cat <<\EOF >> conftest.$ac_ext
10009 # Now try linking the two files.
10010 mv conftest.$ac_objext conftstm.$ac_objext
10011 lt_save_LIBS="$LIBS"
10012 lt_save_CFLAGS="$CFLAGS"
10013 LIBS="conftstm.
$ac_objext"
10014 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>&5
10018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10019 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10022 LIBS="$lt_save_LIBS"
10023 CFLAGS="$lt_save_CFLAGS"
10025 echo "cannot
find nm_test_func
in $nlist" >&5
10028 echo "cannot
find nm_test_var
in $nlist" >&5
10031 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10034 echo "$progname: failed program was
:" >&5
10035 cat conftest.$ac_ext >&5
10037 rm -f conftest* conftst*
10039 # Do not use the global_symbol_pipe unless it works.
10040 if test "$pipe_works" = yes; then
10043 lt_cv_sys_global_symbol_pipe=
10049 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10050 lt_cv_sys_global_symbol_to_cdecl=
10052 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10053 { echo "$as_me:$LINENO: result
: failed
" >&5
10054 echo "${ECHO_T}failed
" >&6; }
10056 { echo "$as_me:$LINENO: result
: ok
" >&5
10057 echo "${ECHO_T}ok
" >&6; }
10061 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
10062 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
10063 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10064 echo $ECHO_N "(cached
) $ECHO_C" >&6
10066 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10067 libltdl_cv_preloaded_symbols=yes
10069 libltdl_cv_preloaded_symbols=no
10073 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
10074 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10075 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10077 cat >>confdefs.h <<\_ACEOF
10078 #define HAVE_PRELOADED_SYMBOLS 1
10086 ac_cpp='$CPP $CPPFLAGS'
10087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10092 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
10093 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
10094 if test "${ac_cv_func_shl_load+set}" = set; then
10095 echo $ECHO_N "(cached
) $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10105 #define shl_load innocuous_shl_load
10107 /* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char shl_load (); below.
10109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110 <limits.h> exists even on freestanding compilers. */
10113 # include <limits.h>
10115 # include <assert.h>
10120 /* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10127 /* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
10130 #if defined __stub_shl_load || defined __stub___shl_load
10137 return shl_load ();
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (ac_try="$ac_link"
10144 case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_link") 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157 { (case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_try") 2>&5
10164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest$ac_exeext'
10167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
10174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 ac_cv_func_shl_load=yes
10178 echo "$as_me: failed program was
:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ac_cv_func_shl_load=no
10184 rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10187 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10188 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10189 if test $ac_cv_func_shl_load = yes; then
10191 cat >>confdefs.h <<\_ACEOF
10192 #define HAVE_SHL_LOAD 1
10196 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10197 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
10198 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10199 echo $ECHO_N "(cached
) $ECHO_C" >&6
10201 ac_check_lib_save_LIBS=$LIBS
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10210 /* Override any GCC internal prototype to avoid an error.
10211 Use char because int might match the return type of a GCC
10212 builtin and then its argument prototype would still apply. */
10220 return shl_load ();
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (ac_try="$ac_link"
10227 case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_link") 2>conftest.er1
10234 grep -v '^ *+' conftest.er1 >conftest.err
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10240 { (case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_try") 2>&5
10247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest$ac_exeext'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 ac_cv_lib_dld_shl_load=yes
10261 echo "$as_me: failed program was
:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ac_cv_lib_dld_shl_load=no
10267 rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10271 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10272 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10273 if test $ac_cv_lib_dld_shl_load = yes; then
10275 cat >>confdefs.h <<\_ACEOF
10276 #define HAVE_SHL_LOAD 1
10279 LIBADD_DL="$LIBADD_DL -ldld"
10281 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10282 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10283 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10284 echo $ECHO_N "(cached
) $ECHO_C" >&6
10286 ac_check_lib_save_LIBS=$LIBS
10288 cat >conftest.$ac_ext <<_ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10295 /* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10319 grep -v '^ *+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_try") 2>&5
10342 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 ac_cv_lib_dl_dlopen=yes
10346 echo "$as_me: failed program was
:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349 ac_cv_lib_dl_dlopen=no
10352 rm -f core conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10356 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10357 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10358 if test $ac_cv_lib_dl_dlopen = yes; then
10360 cat >>confdefs.h <<\_ACEOF
10361 #define HAVE_LIBDL 1
10364 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10373 # include <dlfcn.h>
10384 rm -f conftest.$ac_objext conftest$ac_exeext
10385 if { (ac_try="$ac_link"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_link") 2>conftest.er1
10393 grep -v '^ *+' conftest.er1 >conftest.err
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10399 { (case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_try") 2>&5
10406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10407 (exit $ac_status); }; } &&
10408 { ac_try='test -s conftest$ac_exeext'
10409 { (case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_try") 2>&5
10416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10417 (exit $ac_status); }; }; then
10419 cat >>confdefs.h <<\_ACEOF
10420 #define HAVE_LIBDL 1
10422 libltdl_cv_func_dlopen="yes"
10424 echo "$as_me: failed program was
:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10428 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10429 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10430 echo $ECHO_N "(cached
) $ECHO_C" >&6
10432 ac_check_lib_save_LIBS=$LIBS
10433 LIBS="-lsvld $LIBS"
10434 cat >conftest.$ac_ext <<_ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10441 /* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
10456 rm -f conftest.$ac_objext conftest$ac_exeext
10457 if { (ac_try="$ac_link"
10458 case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10463 (eval "$ac_link") 2>conftest.er1
10465 grep -v '^ *+' conftest.er1 >conftest.err
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10471 { (case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10476 (eval "$ac_try") 2>&5
10478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 { (case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_try") 2>&5
10488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 ac_cv_lib_svld_dlopen=yes
10492 echo "$as_me: failed program was
:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 ac_cv_lib_svld_dlopen=no
10498 rm -f core conftest.err conftest.$ac_objext \
10499 conftest$ac_exeext conftest.$ac_ext
10500 LIBS=$ac_check_lib_save_LIBS
10502 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10503 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10504 if test $ac_cv_lib_svld_dlopen = yes; then
10506 cat >>confdefs.h <<\_ACEOF
10507 #define HAVE_LIBDL 1
10510 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10512 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10513 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10514 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10515 echo $ECHO_N "(cached
) $ECHO_C" >&6
10517 ac_check_lib_save_LIBS=$LIBS
10519 cat >conftest.$ac_ext <<_ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10526 /* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
10536 return dld_link ();
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10547 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>conftest.er1
10550 grep -v '^ *+' conftest.er1 >conftest.err
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10556 { (case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_try") 2>&5
10563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10564 (exit $ac_status); }; } &&
10565 { ac_try='test -s conftest$ac_exeext'
10566 { (case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_try") 2>&5
10573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_lib_dld_dld_link=yes
10577 echo "$as_me: failed program was
:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 ac_cv_lib_dld_dld_link=no
10583 rm -f core conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10585 LIBS=$ac_check_lib_save_LIBS
10587 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10588 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10589 if test $ac_cv_lib_dld_dld_link = yes; then
10591 cat >>confdefs.h <<\_ACEOF
10595 LIBADD_DL="$LIBADD_DL -ldld"
10597 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10598 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10599 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10600 echo $ECHO_N "(cached
) $ECHO_C" >&6
10602 cat >conftest.$ac_ext <<_ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10610 #define _dyld_func_lookup innocuous__dyld_func_lookup
10612 /* System header to define __stub macros and hopefully few prototypes,
10613 which can conflict with char _dyld_func_lookup (); below.
10614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10615 <limits.h> exists even on freestanding compilers. */
10618 # include <limits.h>
10620 # include <assert.h>
10623 #undef _dyld_func_lookup
10625 /* Override any GCC internal prototype to avoid an error.
10626 Use char because int might match the return type of a GCC
10627 builtin and then its argument prototype would still apply. */
10631 char _dyld_func_lookup ();
10632 /* The GNU C library defines this for functions which it implements
10633 to always fail with ENOSYS. Some functions are actually named
10634 something starting with __ and the normal name is an alias. */
10635 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10642 return _dyld_func_lookup ();
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (ac_try="$ac_link"
10649 case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_link") 2>conftest.er1
10656 grep -v '^ *+' conftest.er1 >conftest.err
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10662 { (case "(($ac_try" in
10663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664 *) ac_try_echo=$ac_try;;
10666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10667 (eval "$ac_try") 2>&5
10669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest$ac_exeext'
10672 { (case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_try") 2>&5
10679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_cv_func__dyld_func_lookup=yes
10683 echo "$as_me: failed program was
:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 ac_cv_func__dyld_func_lookup=no
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10692 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10693 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10694 if test $ac_cv_func__dyld_func_lookup = yes; then
10696 cat >>confdefs.h <<\_ACEOF
10697 #define HAVE_DYLD 1
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10723 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10725 lt_save_LIBS="$LIBS"
10726 LIBS="$LIBS $LIBADD_DL"
10728 for ac_func in dlerror
10730 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10731 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10732 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10733 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10734 echo $ECHO_N "(cached
) $ECHO_C" >&6
10736 cat >conftest.$ac_ext <<_ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10744 #define $ac_func innocuous_$ac_func
10746 /* System header to define __stub macros and hopefully few prototypes,
10747 which can conflict with char $ac_func (); below.
10748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749 <limits.h> exists even on freestanding compilers. */
10752 # include <limits.h>
10754 # include <assert.h>
10759 /* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
10766 /* The GNU C library defines this for functions which it implements
10767 to always fail with ENOSYS. Some functions are actually named
10768 something starting with __ and the normal name is an alias. */
10769 #if defined __stub_$ac_func || defined __stub___$ac_func
10776 return $ac_func ();
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (ac_try="$ac_link"
10783 case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_link") 2>conftest.er1
10790 grep -v '^ *+' conftest.er1 >conftest.err
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10796 { (case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_try") 2>&5
10803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest$ac_exeext'
10806 { (case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_try") 2>&5
10813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 eval "$as_ac_var=yes"
10817 echo "$as_me: failed program was
:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 eval "$as_ac_var=no
"
10823 rm -f core conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10826 ac_res=`eval echo '${'$as_ac_var'}'`
10827 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10828 echo "${ECHO_T}$ac_res" >&6; }
10829 if test `eval echo '${'$as_ac_var'}'` = yes; then
10830 cat >>confdefs.h <<_ACEOF
10831 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10837 LIBS="$lt_save_LIBS"
10840 ac_cpp='$CPP $CPPFLAGS'
10841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10847 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10848 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10849 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10850 echo $ECHO_N "(cached
) $ECHO_C" >&6
10852 ac_cv_sys_symbol_underscore=no
10853 cat > conftest.$ac_ext <<EOF
10854 void nm_test_func(){}
10855 int main(){nm_test_func;return 0;}
10857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10858 (eval $ac_compile) 2>&5
10860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10861 (exit $ac_status); }; then
10862 # Now try to grab the symbols.
10863 ac_nlist=conftest.nm
10864 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10865 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10868 (exit $ac_status); } && test -s "$ac_nlist"; then
10869 # See whether the symbols have a leading underscore.
10870 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10871 ac_cv_sys_symbol_underscore=yes
10873 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10876 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10880 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10883 echo "configure
: failed program was
:" >&5
10889 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10890 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10893 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10894 if test x"$libltdl_cv_func_dlopen" = xyes ||
10895 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10896 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10897 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10898 if test "${libltdl_cv_need_uscore+set}" = set; then
10899 echo $ECHO_N "(cached
) $ECHO_C" >&6
10901 libltdl_cv_need_uscore=unknown
10903 LIBS="$LIBS $LIBADD_DL"
10904 if test "$cross_compiling" = yes; then :
10905 libltdl_cv_need_uscore=cross
10907 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10908 lt_status=$lt_dlunknown
10909 cat > conftest.$ac_ext <<EOF
10910 #line 10905 "configure
"
10911 #include "confdefs.h
"
10920 # define LT_DLGLOBAL RTLD_GLOBAL
10923 # define LT_DLGLOBAL DL_GLOBAL
10925 # define LT_DLGLOBAL 0
10929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10930 find out it does not work in some platform. */
10931 #ifndef LT_DLLAZY_OR_NOW
10933 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10936 # define LT_DLLAZY_OR_NOW DL_LAZY
10939 # define LT_DLLAZY_OR_NOW RTLD_NOW
10942 # define LT_DLLAZY_OR_NOW DL_NOW
10944 # define LT_DLLAZY_OR_NOW 0
10952 extern "C
" void exit (int);
10955 void fnord() { int i=42;}
10958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10959 int status = $lt_dlunknown;
10963 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
10964 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
10965 /* dlclose (self); */
10973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10974 (eval $ac_link) 2>&5
10976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10977 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10978 (./conftest; exit; ) >&5 2>/dev/null
10980 case x$lt_status in
10981 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10982 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10983 x$lt_dlunknown|x*) ;;
10986 # compilation failed
10995 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
10996 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11000 if test x"$libltdl_cv_need_uscore" = xyes; then
11002 cat >>confdefs.h <<\_ACEOF
11003 #define NEED_USCORE 1
11009 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
11010 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
11011 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11012 echo $ECHO_N "(cached
) $ECHO_C" >&6
11014 # PORTME does your system automatically load deplibs for dlopen?
11015 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11016 # For now, we just catch OSes we know something about -- in the
11017 # future, we'll try test this programmatically.
11018 libltdl_cv_sys_dlopen_deplibs=unknown
11020 aix3*|aix4.1.*|aix4.2.*)
11021 # Unknown whether this is true for these versions of AIX, but
11022 # we want this `case' here to explicitly catch those versions.
11023 libltdl_cv_sys_dlopen_deplibs=unknown
11026 libltdl_cv_sys_dlopen_deplibs=yes
11029 # Assuming the user has installed a libdl from somewhere, this is true
11030 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11031 libltdl_cv_sys_dlopen_deplibs=yes
11033 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11034 # GNU and its variants, using gnu ld.so (Glibc)
11035 libltdl_cv_sys_dlopen_deplibs=yes
11038 libltdl_cv_sys_dlopen_deplibs=yes
11041 libltdl_cv_sys_dlopen_deplibs=yes
11043 irix[12345]*|irix6.[01]*)
11044 # Catch all versions of IRIX before 6.2, and indicate that we don't
11045 # know how it worked for any of those versions.
11046 libltdl_cv_sys_dlopen_deplibs=unknown
11049 # The case above catches anything before 6.2, and it's known that
11050 # at 6.2 and later dlopen does load deplibs.
11051 libltdl_cv_sys_dlopen_deplibs=yes
11054 libltdl_cv_sys_dlopen_deplibs=yes
11057 libltdl_cv_sys_dlopen_deplibs=yes
11060 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11061 # it did *not* use an RPATH in a shared library to find objects the
11062 # library depends on, so we explictly say `no'.
11063 libltdl_cv_sys_dlopen_deplibs=no
11065 osf5.0|osf5.0a|osf5.1)
11066 # dlopen *does* load deplibs and with the right loader patch applied
11067 # it even uses RPATH in a shared library to search for shared objects
11068 # that the library depends on, but there's no easy way to know if that
11069 # patch is installed. Since this is the case, all we can really
11070 # say is unknown -- it depends on the patch being installed. If
11071 # it is, this changes to `yes'. Without it, it would be `no'.
11072 libltdl_cv_sys_dlopen_deplibs=unknown
11075 # the two cases above should catch all versions of osf <= 5.1. Read
11076 # the comments above for what we know about them.
11077 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11078 # is used to find them so we can finally say `yes'.
11079 libltdl_cv_sys_dlopen_deplibs=yes
11082 libltdl_cv_sys_dlopen_deplibs=yes
11084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11085 libltdl_cv_sys_dlopen_deplibs=yes
11090 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
11091 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11092 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11094 cat >>confdefs.h <<\_ACEOF
11095 #define LTDL_DLOPEN_DEPLIBS 1
11101 for ac_header in argz.h
11103 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11104 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11105 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11106 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11107 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11108 echo $ECHO_N "(cached
) $ECHO_C" >&6
11110 ac_res=`eval echo '${'$as_ac_Header'}'`
11111 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11112 echo "${ECHO_T}$ac_res" >&6; }
11114 # Is the header compilable?
11115 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11116 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11117 cat >conftest.$ac_ext <<_ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11123 $ac_includes_default
11124 #include <$ac_header>
11126 rm -f conftest.$ac_objext
11127 if { (ac_try="$ac_compile"
11128 case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_compile") 2>conftest.er1
11135 grep -v '^ *+' conftest.er1 >conftest.err
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11139 (exit $ac_status); } &&
11140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11149 (exit $ac_status); }; } &&
11150 { ac_try='test -s conftest.$ac_objext'
11151 { (case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_try") 2>&5
11158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 ac_header_compiler=yes
11162 echo "$as_me: failed program was
:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 ac_header_compiler=no
11168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11169 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11170 echo "${ECHO_T}$ac_header_compiler" >&6; }
11172 # Is the header present?
11173 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11174 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 #include <$ac_header>
11183 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11184 case "(($ac_try" in
11185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186 *) ac_try_echo=$ac_try;;
11188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11189 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11191 grep -v '^ *+' conftest.er1 >conftest.err
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11195 (exit $ac_status); } >/dev/null; then
11196 if test -s conftest.err; then
11197 ac_cpp_err=$ac_c_preproc_warn_flag
11198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11205 if test -z "$ac_cpp_err"; then
11206 ac_header_preproc=yes
11208 echo "$as_me: failed program was
:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_header_preproc=no
11214 rm -f conftest.err conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11216 echo "${ECHO_T}$ac_header_preproc" >&6; }
11218 # So? What about this header?
11219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11221 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11222 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11223 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11225 ac_header_preproc=yes
11228 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11229 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11230 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11231 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11232 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11233 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11234 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11235 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11236 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11238 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11239 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11241 ## ----------------------------------- ##
11242 ## Report this to llvmbugs@cs.uiuc.edu ##
11243 ## ----------------------------------- ##
11245 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11248 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11249 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11251 echo $ECHO_N "(cached
) $ECHO_C" >&6
11253 eval "$as_ac_Header=\
$ac_header_preproc"
11255 ac_res=`eval echo '${'$as_ac_Header'}'`
11256 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11257 echo "${ECHO_T}$ac_res" >&6; }
11260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11261 cat >>confdefs.h <<_ACEOF
11262 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11270 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11271 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11272 if test "${ac_cv_type_error_t+set}" = set; then
11273 echo $ECHO_N "(cached
) $ECHO_C" >&6
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11285 typedef error_t ac__type_new_;
11289 if ((ac__type_new_ *) 0)
11291 if (sizeof (ac__type_new_))
11297 rm -f conftest.$ac_objext
11298 if { (ac_try="$ac_compile"
11299 case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_compile") 2>conftest.er1
11306 grep -v '^ *+' conftest.er1 >conftest.err
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11312 { (case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_try") 2>&5
11319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11320 (exit $ac_status); }; } &&
11321 { ac_try='test -s conftest.$ac_objext'
11322 { (case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11327 (eval "$ac_try") 2>&5
11329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 ac_cv_type_error_t=yes
11333 echo "$as_me: failed program was
:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11336 ac_cv_type_error_t=no
11339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11341 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11342 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11343 if test $ac_cv_type_error_t = yes; then
11345 cat >>confdefs.h <<_ACEOF
11346 #define HAVE_ERROR_T 1
11352 cat >>confdefs.h <<\_ACEOF
11353 #define error_t int
11364 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11366 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11367 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11368 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11369 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11370 echo $ECHO_N "(cached
) $ECHO_C" >&6
11372 cat >conftest.$ac_ext <<_ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11380 #define $ac_func innocuous_$ac_func
11382 /* System header to define __stub macros and hopefully few prototypes,
11383 which can conflict with char $ac_func (); below.
11384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11385 <limits.h> exists even on freestanding compilers. */
11388 # include <limits.h>
11390 # include <assert.h>
11395 /* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11402 /* The GNU C library defines this for functions which it implements
11403 to always fail with ENOSYS. Some functions are actually named
11404 something starting with __ and the normal name is an alias. */
11405 #if defined __stub_$ac_func || defined __stub___$ac_func
11412 return $ac_func ();
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (ac_try="$ac_link"
11419 case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_link") 2>conftest.er1
11426 grep -v '^ *+' conftest.er1 >conftest.err
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11430 (exit $ac_status); } &&
11431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11432 { (case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_try") 2>&5
11439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11440 (exit $ac_status); }; } &&
11441 { ac_try='test -s conftest$ac_exeext'
11442 { (case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_try") 2>&5
11449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 eval "$as_ac_var=yes"
11453 echo "$as_me: failed program was
:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 eval "$as_ac_var=no
"
11459 rm -f core conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext conftest.$ac_ext
11462 ac_res=`eval echo '${'$as_ac_var'}'`
11463 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11465 if test `eval echo '${'$as_ac_var'}'` = yes; then
11466 cat >>confdefs.h <<_ACEOF
11467 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11500 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11503 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11504 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11505 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11506 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11507 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11508 echo $ECHO_N "(cached
) $ECHO_C" >&6
11510 ac_res=`eval echo '${'$as_ac_Header'}'`
11511 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11512 echo "${ECHO_T}$ac_res" >&6; }
11514 # Is the header compilable?
11515 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11516 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11517 cat >conftest.$ac_ext <<_ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h. */
11523 $ac_includes_default
11524 #include <$ac_header>
11526 rm -f conftest.$ac_objext
11527 if { (ac_try="$ac_compile"
11528 case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_compile") 2>conftest.er1
11535 grep -v '^ *+' conftest.er1 >conftest.err
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541 { (case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_try") 2>&5
11548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest.$ac_objext'
11551 { (case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_try") 2>&5
11558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_header_compiler=yes
11562 echo "$as_me: failed program was
:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 ac_header_compiler=no
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11570 echo "${ECHO_T}$ac_header_compiler" >&6; }
11572 # Is the header present?
11573 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11574 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11575 cat >conftest.$ac_ext <<_ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581 #include <$ac_header>
11583 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11591 grep -v '^ *+' conftest.er1 >conftest.err
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11595 (exit $ac_status); } >/dev/null; then
11596 if test -s conftest.err; then
11597 ac_cpp_err=$ac_c_preproc_warn_flag
11598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11605 if test -z "$ac_cpp_err"; then
11606 ac_header_preproc=yes
11608 echo "$as_me: failed program was
:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11611 ac_header_preproc=no
11614 rm -f conftest.err conftest.$ac_ext
11615 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11616 echo "${ECHO_T}$ac_header_preproc" >&6; }
11618 # So? What about this header?
11619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11621 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11622 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11623 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11625 ac_header_preproc=yes
11628 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11629 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11630 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11631 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11632 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11633 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11634 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11635 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11636 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11638 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11639 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11641 ## ----------------------------------- ##
11642 ## Report this to llvmbugs@cs.uiuc.edu ##
11643 ## ----------------------------------- ##
11645 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11648 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11649 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11650 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11651 echo $ECHO_N "(cached
) $ECHO_C" >&6
11653 eval "$as_ac_Header=\
$ac_header_preproc"
11655 ac_res=`eval echo '${'$as_ac_Header'}'`
11656 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11657 echo "${ECHO_T}$ac_res" >&6; }
11660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11661 cat >>confdefs.h <<_ACEOF
11662 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11673 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11675 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11676 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11677 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11678 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11679 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11680 echo $ECHO_N "(cached
) $ECHO_C" >&6
11682 ac_res=`eval echo '${'$as_ac_Header'}'`
11683 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11686 # Is the header compilable?
11687 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11688 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 $ac_includes_default
11696 #include <$ac_header>
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_compile") 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713 { (case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5
11720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_try") 2>&5
11730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 ac_header_compiler=yes
11734 echo "$as_me: failed program was
:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11737 ac_header_compiler=no
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11742 echo "${ECHO_T}$ac_header_compiler" >&6; }
11744 # Is the header present?
11745 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11746 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11747 cat >conftest.$ac_ext <<_ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 #include <$ac_header>
11755 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11756 case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11767 (exit $ac_status); } >/dev/null; then
11768 if test -s conftest.err; then
11769 ac_cpp_err=$ac_c_preproc_warn_flag
11770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11777 if test -z "$ac_cpp_err"; then
11778 ac_header_preproc=yes
11780 echo "$as_me: failed program was
:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_header_preproc=no
11786 rm -f conftest.err conftest.$ac_ext
11787 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11788 echo "${ECHO_T}$ac_header_preproc" >&6; }
11790 # So? What about this header?
11791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11793 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11794 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11795 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11797 ac_header_preproc=yes
11800 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11801 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11802 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11803 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11804 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11805 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11806 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11807 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11808 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11810 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11811 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11813 ## ----------------------------------- ##
11814 ## Report this to llvmbugs@cs.uiuc.edu ##
11815 ## ----------------------------------- ##
11817 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11820 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11821 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11822 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11823 echo $ECHO_N "(cached
) $ECHO_C" >&6
11825 eval "$as_ac_Header=\
$ac_header_preproc"
11827 ac_res=`eval echo '${'$as_ac_Header'}'`
11828 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11829 echo "${ECHO_T}$ac_res" >&6; }
11832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11833 cat >>confdefs.h <<_ACEOF
11834 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11843 for ac_header in string.h strings.h
11845 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11846 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11847 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11848 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11849 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11850 echo $ECHO_N "(cached
) $ECHO_C" >&6
11852 ac_res=`eval echo '${'$as_ac_Header'}'`
11853 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11856 # Is the header compilable?
11857 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11858 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11866 #include <$ac_header>
11868 rm -f conftest.$ac_objext
11869 if { (ac_try="$ac_compile"
11870 case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_compile") 2>conftest.er1
11877 grep -v '^ *+' conftest.er1 >conftest.err
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11883 { (case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_try") 2>&5
11890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest.$ac_objext'
11893 { (case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_try") 2>&5
11900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 ac_header_compiler=yes
11904 echo "$as_me: failed program was
:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ac_header_compiler=no
11910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11912 echo "${ECHO_T}$ac_header_compiler" >&6; }
11914 # Is the header present?
11915 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11916 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11917 cat >conftest.$ac_ext <<_ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 #include <$ac_header>
11925 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11926 case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11933 grep -v '^ *+' conftest.er1 >conftest.err
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11937 (exit $ac_status); } >/dev/null; then
11938 if test -s conftest.err; then
11939 ac_cpp_err=$ac_c_preproc_warn_flag
11940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11947 if test -z "$ac_cpp_err"; then
11948 ac_header_preproc=yes
11950 echo "$as_me: failed program was
:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_header_preproc=no
11956 rm -f conftest.err conftest.$ac_ext
11957 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11958 echo "${ECHO_T}$ac_header_preproc" >&6; }
11960 # So? What about this header?
11961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11963 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11964 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11965 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11967 ac_header_preproc=yes
11970 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11971 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11972 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11973 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11974 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11975 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11976 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11977 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11978 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11980 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11981 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11983 ## ----------------------------------- ##
11984 ## Report this to llvmbugs@cs.uiuc.edu ##
11985 ## ----------------------------------- ##
11987 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11990 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11991 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11992 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11993 echo $ECHO_N "(cached
) $ECHO_C" >&6
11995 eval "$as_ac_Header=\
$ac_header_preproc"
11997 ac_res=`eval echo '${'$as_ac_Header'}'`
11998 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12003 cat >>confdefs.h <<_ACEOF
12004 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12014 for ac_func in strchr index
12016 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12017 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12018 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12019 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12020 echo $ECHO_N "(cached
) $ECHO_C" >&6
12022 cat >conftest.$ac_ext <<_ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12030 #define $ac_func innocuous_$ac_func
12032 /* System header to define __stub macros and hopefully few prototypes,
12033 which can conflict with char $ac_func (); below.
12034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035 <limits.h> exists even on freestanding compilers. */
12038 # include <limits.h>
12040 # include <assert.h>
12045 /* Override any GCC internal prototype to avoid an error.
12046 Use char because int might match the return type of a GCC
12047 builtin and then its argument prototype would still apply. */
12052 /* The GNU C library defines this for functions which it implements
12053 to always fail with ENOSYS. Some functions are actually named
12054 something starting with __ and the normal name is an alias. */
12055 #if defined __stub_$ac_func || defined __stub___$ac_func
12062 return $ac_func ();
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082 { (case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_try") 2>&5
12089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try='test -s conftest$ac_exeext'
12092 { (case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_try") 2>&5
12099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 eval "$as_ac_var=yes"
12103 echo "$as_me: failed program was
:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 eval "$as_ac_var=no
"
12109 rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12112 ac_res=`eval echo '${'$as_ac_var'}'`
12113 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12114 echo "${ECHO_T}$ac_res" >&6; }
12115 if test `eval echo '${'$as_ac_var'}'` = yes; then
12116 cat >>confdefs.h <<_ACEOF
12117 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12125 for ac_func in strrchr rindex
12127 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12128 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12129 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12130 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12131 echo $ECHO_N "(cached
) $ECHO_C" >&6
12133 cat >conftest.$ac_ext <<_ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12141 #define $ac_func innocuous_$ac_func
12143 /* System header to define __stub macros and hopefully few prototypes,
12144 which can conflict with char $ac_func (); below.
12145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12146 <limits.h> exists even on freestanding compilers. */
12149 # include <limits.h>
12151 # include <assert.h>
12156 /* Override any GCC internal prototype to avoid an error.
12157 Use char because int might match the return type of a GCC
12158 builtin and then its argument prototype would still apply. */
12163 /* The GNU C library defines this for functions which it implements
12164 to always fail with ENOSYS. Some functions are actually named
12165 something starting with __ and the normal name is an alias. */
12166 #if defined __stub_$ac_func || defined __stub___$ac_func
12173 return $ac_func ();
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (ac_try="$ac_link"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_link") 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12193 { (case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_try") 2>&5
12200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12201 (exit $ac_status); }; } &&
12202 { ac_try='test -s conftest$ac_exeext'
12203 { (case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_try") 2>&5
12210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 eval "$as_ac_var=yes"
12214 echo "$as_me: failed program was
:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 eval "$as_ac_var=no
"
12220 rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12223 ac_res=`eval echo '${'$as_ac_var'}'`
12224 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12225 echo "${ECHO_T}$ac_res" >&6; }
12226 if test `eval echo '${'$as_ac_var'}'` = yes; then
12227 cat >>confdefs.h <<_ACEOF
12228 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12236 for ac_func in memcpy bcopy
12238 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12239 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12240 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12241 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12242 echo $ECHO_N "(cached
) $ECHO_C" >&6
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12252 #define $ac_func innocuous_$ac_func
12254 /* System header to define __stub macros and hopefully few prototypes,
12255 which can conflict with char $ac_func (); below.
12256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257 <limits.h> exists even on freestanding compilers. */
12260 # include <limits.h>
12262 # include <assert.h>
12267 /* Override any GCC internal prototype to avoid an error.
12268 Use char because int might match the return type of a GCC
12269 builtin and then its argument prototype would still apply. */
12274 /* The GNU C library defines this for functions which it implements
12275 to always fail with ENOSYS. Some functions are actually named
12276 something starting with __ and the normal name is an alias. */
12277 #if defined __stub_$ac_func || defined __stub___$ac_func
12284 return $ac_func ();
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (ac_try="$ac_link"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_link") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
12314 { (case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_try") 2>&5
12321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 eval "$as_ac_var=yes"
12325 echo "$as_me: failed program was
:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 eval "$as_ac_var=no
"
12331 rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12334 ac_res=`eval echo '${'$as_ac_var'}'`
12335 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12336 echo "${ECHO_T}$ac_res" >&6; }
12337 if test `eval echo '${'$as_ac_var'}'` = yes; then
12338 cat >>confdefs.h <<_ACEOF
12339 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12347 for ac_func in memmove strcmp
12349 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12350 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12351 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12352 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12353 echo $ECHO_N "(cached
) $ECHO_C" >&6
12355 cat >conftest.$ac_ext <<_ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12363 #define $ac_func innocuous_$ac_func
12365 /* System header to define __stub macros and hopefully few prototypes,
12366 which can conflict with char $ac_func (); below.
12367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12368 <limits.h> exists even on freestanding compilers. */
12371 # include <limits.h>
12373 # include <assert.h>
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12385 /* The GNU C library defines this for functions which it implements
12386 to always fail with ENOSYS. Some functions are actually named
12387 something starting with __ and the normal name is an alias. */
12388 #if defined __stub_$ac_func || defined __stub___$ac_func
12395 return $ac_func ();
12400 rm -f conftest.$ac_objext conftest$ac_exeext
12401 if { (ac_try="$ac_link"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_link") 2>conftest.er1
12409 grep -v '^ *+' conftest.er1 >conftest.err
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12415 { (case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_try") 2>&5
12422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_try") 2>&5
12432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 eval "$as_ac_var=yes"
12436 echo "$as_me: failed program was
:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12439 eval "$as_ac_var=no
"
12442 rm -f core conftest.err conftest.$ac_objext \
12443 conftest$ac_exeext conftest.$ac_ext
12445 ac_res=`eval echo '${'$as_ac_var'}'`
12446 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12447 echo "${ECHO_T}$ac_res" >&6; }
12448 if test `eval echo '${'$as_ac_var'}'` = yes; then
12449 cat >>confdefs.h <<_ACEOF
12450 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12459 for ac_func in closedir opendir readdir
12461 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12462 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12463 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12464 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12465 echo $ECHO_N "(cached
) $ECHO_C" >&6
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12475 #define $ac_func innocuous_$ac_func
12477 /* System header to define __stub macros and hopefully few prototypes,
12478 which can conflict with char $ac_func (); below.
12479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12480 <limits.h> exists even on freestanding compilers. */
12483 # include <limits.h>
12485 # include <assert.h>
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12497 /* The GNU C library defines this for functions which it implements
12498 to always fail with ENOSYS. Some functions are actually named
12499 something starting with __ and the normal name is an alias. */
12500 #if defined __stub_$ac_func || defined __stub___$ac_func
12507 return $ac_func ();
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>conftest.er1
12521 grep -v '^ *+' conftest.er1 >conftest.err
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527 { (case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_try") 2>&5
12534 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest$ac_exeext'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 eval "$as_ac_var=yes"
12548 echo "$as_me: failed program was
:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 eval "$as_ac_var=no
"
12554 rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12557 ac_res=`eval echo '${'$as_ac_var'}'`
12558 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12559 echo "${ECHO_T}$ac_res" >&6; }
12560 if test `eval echo '${'$as_ac_var'}'` = yes; then
12561 cat >>confdefs.h <<_ACEOF
12562 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12569 # Check whether --enable-shared was given.
12570 if test "${enable_shared+set}" = set; then
12571 enableval=$enable_shared; p=${PACKAGE-default}
12573 yes) enable_shared=yes ;;
12574 no) enable_shared=no ;;
12577 # Look at the argument we got. We use all the common list separators.
12578 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12579 for pkg in $enableval; do
12581 if test "X
$pkg" = "X
$p"; then
12593 # Check whether --enable-static was given.
12594 if test "${enable_static+set}" = set; then
12595 enableval=$enable_static; p=${PACKAGE-default}
12597 yes) enable_static=yes ;;
12598 no) enable_static=no ;;
12601 # Look at the argument we got. We use all the common list separators.
12602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12603 for pkg in $enableval; do
12605 if test "X
$pkg" = "X
$p"; then
12617 # Check whether --enable-fast-install was given.
12618 if test "${enable_fast_install+set}" = set; then
12619 enableval=$enable_fast_install; p=${PACKAGE-default}
12621 yes) enable_fast_install=yes ;;
12622 no) enable_fast_install=no ;;
12624 enable_fast_install=no
12625 # Look at the argument we got. We use all the common list separators.
12626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12627 for pkg in $enableval; do
12629 if test "X
$pkg" = "X
$p"; then
12630 enable_fast_install=yes
12637 enable_fast_install=yes
12641 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12642 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12643 if test "${lt_cv_path_SED+set}" = set; then
12644 echo $ECHO_N "(cached
) $ECHO_C" >&6
12646 # Loop through the user's path and test for sed and gsed.
12647 # Then use that list of sed's as ones to test for truncation.
12648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649 for as_dir in $PATH
12652 test -z "$as_dir" && as_dir=.
12653 for lt_ac_prog in sed gsed; do
12654 for ac_exec_ext in '' $ac_executable_extensions; do
12655 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12656 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12663 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12664 # along with /bin/sed that truncates output.
12665 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12666 test ! -f $lt_ac_sed && continue
12667 cat /dev/null > conftest.in
12669 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12670 # Check for GNU sed and select it if it is found.
12671 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12672 lt_cv_path_SED=$lt_ac_sed
12676 cat conftest.in conftest.in >conftest.tmp
12677 mv conftest.tmp conftest.in
12678 cp conftest.in conftest.nl
12680 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12681 cmp -s conftest.out conftest.nl || break
12682 # 10000 chars as input seems more than enough
12683 test $lt_ac_count -gt 10 && break
12684 lt_ac_count=`expr $lt_ac_count + 1`
12685 if test $lt_ac_count -gt $lt_ac_max; then
12686 lt_ac_max=$lt_ac_count
12687 lt_cv_path_SED=$lt_ac_sed
12694 SED=$lt_cv_path_SED
12695 { echo "$as_me:$LINENO: result
: $SED" >&5
12696 echo "${ECHO_T}$SED" >&6; }
12699 # Check whether --with-gnu-ld was given.
12700 if test "${with_gnu_ld+set}" = set; then
12701 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12707 if test "$GCC" = yes; then
12708 # Check if gcc -print-prog-name=ld gives a path.
12709 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12710 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12713 # gcc leaves a trailing carriage return which upsets mingw
12714 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12716 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12719 # Accept absolute paths.
12721 re_direlt='/[^/][^/]*/\.\./'
12722 # Canonicalize the pathname of ld
12723 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12724 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12725 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12727 test -z "$LD" && LD="$ac_prog"
12730 # If it fails, then pretend we aren't using GCC.
12734 # If it is relative, then search for the first ld in PATH.
12735 with_gnu_ld=unknown
12738 elif test "$with_gnu_ld" = yes; then
12739 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12740 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12742 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12743 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12745 if test "${lt_cv_path_LD+set}" = set; then
12746 echo $ECHO_N "(cached
) $ECHO_C" >&6
12748 if test -z "$LD"; then
12749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12750 for ac_dir in $PATH; do
12752 test -z "$ac_dir" && ac_dir=.
12753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12754 lt_cv_path_LD="$ac_dir/$ac_prog"
12755 # Check to see if the program is GNU ld. I'd rather use --version,
12756 # but apparently some variants of GNU ld only accept -v.
12757 # Break only if it was the GNU/non-GNU ld that we prefer.
12758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12759 *GNU* | *'with BFD'*)
12760 test "$with_gnu_ld" != no && break
12763 test "$with_gnu_ld" != yes && break
12770 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12774 LD="$lt_cv_path_LD"
12775 if test -n "$LD"; then
12776 { echo "$as_me:$LINENO: result
: $LD" >&5
12777 echo "${ECHO_T}$LD" >&6; }
12779 { echo "$as_me:$LINENO: result
: no
" >&5
12780 echo "${ECHO_T}no
" >&6; }
12782 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12783 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12784 { (exit 1); exit 1; }; }
12785 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12786 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12787 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12788 echo $ECHO_N "(cached
) $ECHO_C" >&6
12790 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12791 case `$LD -v 2>&1 </dev/null` in
12792 *GNU* | *'with BFD'*)
12793 lt_cv_prog_gnu_ld=yes
12796 lt_cv_prog_gnu_ld=no
12800 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12801 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12802 with_gnu_ld=$lt_cv_prog_gnu_ld
12805 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12806 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12807 if test "${lt_cv_ld_reload_flag+set}" = set; then
12808 echo $ECHO_N "(cached
) $ECHO_C" >&6
12810 lt_cv_ld_reload_flag='-r'
12812 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12813 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12814 reload_flag=$lt_cv_ld_reload_flag
12815 case $reload_flag in
12817 *) reload_flag=" $reload_flag" ;;
12819 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12822 if test "$GCC" = yes; then
12823 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12830 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12831 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12832 if test "${lt_cv_deplibs_check_method+set}" = set; then
12833 echo $ECHO_N "(cached
) $ECHO_C" >&6
12835 lt_cv_file_magic_cmd='$MAGIC_CMD'
12836 lt_cv_file_magic_test_file=
12837 lt_cv_deplibs_check_method='unknown'
12838 # Need to set the preceding variable on all platforms that support
12839 # interlibrary dependencies.
12840 # 'none' -- dependencies not supported.
12841 # `unknown' -- same as none, but documents that we really don't know.
12842 # 'pass_all' -- all dependencies passed with no checks.
12843 # 'test_compile' -- check by making test program.
12844 # 'file_magic [[regex]]' -- check by looking for files in library path
12845 # which responds to the $file_magic_cmd with a given extended regex.
12846 # If you have `file' or equivalent on your system and you're not sure
12847 # whether `pass_all' will *always* work, you probably want this one.
12851 lt_cv_deplibs_check_method=pass_all
12855 lt_cv_deplibs_check_method=pass_all
12859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12860 lt_cv_file_magic_cmd='/usr/bin/file -L'
12861 lt_cv_file_magic_test_file=/shlib/libc.so
12865 # func_win32_libid is a shell function defined in ltmain.sh
12866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12867 lt_cv_file_magic_cmd='func_win32_libid'
12871 # Base MSYS/MinGW do not provide the 'file' command needed by
12872 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12873 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12874 lt_cv_file_magic_cmd='$OBJDUMP -f'
12877 darwin* | rhapsody*)
12878 lt_cv_deplibs_check_method=pass_all
12881 freebsd* | kfreebsd*-gnu | dragonfly*)
12882 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12885 # Not sure whether the presence of OpenBSD here was a mistake.
12886 # Let's accept both of them until this is cleared up.
12887 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12888 lt_cv_file_magic_cmd=/usr/bin/file
12889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12893 lt_cv_deplibs_check_method=pass_all
12898 lt_cv_deplibs_check_method=pass_all
12901 hpux10.20* | hpux11*)
12902 lt_cv_file_magic_cmd=/usr/bin/file
12905 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12906 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12909 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]'
12910 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12914 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12920 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12924 irix5* | irix6* | nonstopux*)
12926 *-32|*"-32 ") libmagic=32-bit;;
12927 *-n32|*"-n32 ") libmagic=N32;;
12928 *-64|*"-64 ") libmagic=64-bit;;
12929 *) libmagic=never-match;;
12931 lt_cv_deplibs_check_method=pass_all
12934 # This must be Linux ELF.
12936 lt_cv_deplibs_check_method=pass_all
12940 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12949 lt_cv_file_magic_cmd=/usr/bin/file
12950 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12954 lt_cv_deplibs_check_method=unknown
12958 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12965 osf3* | osf4* | osf5*)
12966 lt_cv_deplibs_check_method=pass_all
12970 lt_cv_deplibs_check_method=pass_all
12974 case $host_vendor in
12976 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]'
12977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12980 lt_cv_deplibs_check_method=pass_all
12983 lt_cv_file_magic_cmd='/bin/file'
12984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12987 lt_cv_file_magic_cmd='/bin/file'
12988 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12989 lt_cv_file_magic_test_file=/lib/libc.so
12992 lt_cv_deplibs_check_method=pass_all
12995 lt_cv_deplibs_check_method=pass_all
13000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13001 lt_cv_deplibs_check_method=pass_all
13006 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
13007 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13008 file_magic_cmd=$lt_cv_file_magic_cmd
13009 deplibs_check_method=$lt_cv_deplibs_check_method
13010 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13014 # If no C compiler was specified, use CC.
13017 # If no C compiler flags were specified, use CFLAGS.
13018 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13020 # Allow CC to be a program name with arguments.
13023 # Check whether --enable-libtool-lock was given.
13024 if test "${enable_libtool_lock+set}" = set; then
13025 enableval=$enable_libtool_lock;
13028 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13030 # Some flags need to be propagated to the compiler or linker for good
13034 # Find out which ABI we are using.
13035 echo 'int i;' > conftest.$ac_ext
13036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13037 (eval $ac_compile) 2>&5
13039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13040 (exit $ac_status); }; then
13041 case `/usr/bin/file conftest.$ac_objext` in
13043 HPUX_IA64_MODE="32"
13046 HPUX_IA64_MODE="64"
13053 # Find out which ABI we are using.
13054 echo '#line 13049 "configure
"' > conftest.$ac_ext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>&5
13058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13059 (exit $ac_status); }; then
13060 if test "$lt_cv_prog_gnu_ld" = yes; then
13061 case `/usr/bin/file conftest.$ac_objext` in
13063 LD="${LD-ld} -melf32bsmip"
13066 LD="${LD-ld} -melf32bmipn32"
13069 LD="${LD-ld} -melf64bmip"
13073 case `/usr/bin/file conftest.$ac_objext` in
13089 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13090 # Find out which ABI we are using.
13091 echo 'int i;' > conftest.$ac_ext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>&5
13095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13096 (exit $ac_status); }; then
13097 case `/usr/bin/file conftest.o` in
13101 LD="${LD-ld} -m elf_i386
"
13103 ppc64-*linux*|powerpc64-*linux*)
13104 LD="${LD-ld} -m elf32ppclinux
"
13107 LD="${LD-ld} -m elf_s390
"
13110 LD="${LD-ld} -m elf32_sparc
"
13117 LD="${LD-ld} -m elf_x86_64
"
13119 ppc*-*linux*|powerpc*-*linux*)
13120 LD="${LD-ld} -m elf64ppc
"
13123 LD="${LD-ld} -m elf64_s390
"
13126 LD="${LD-ld} -m elf64_sparc
"
13136 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13137 SAVE_CFLAGS="$CFLAGS"
13138 CFLAGS="$CFLAGS -belf"
13139 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
13140 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
13141 if test "${lt_cv_cc_needs_belf+set}" = set; then
13142 echo $ECHO_N "(cached
) $ECHO_C" >&6
13145 ac_cpp='$CPP $CPPFLAGS'
13146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (ac_try="$ac_link"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_link") 2>conftest.er1
13174 grep -v '^ *+' conftest.er1 >conftest.err
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_try") 2>&5
13187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13188 (exit $ac_status); }; } &&
13189 { ac_try='test -s conftest$ac_exeext'
13190 { (case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_try") 2>&5
13197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13198 (exit $ac_status); }; }; then
13199 lt_cv_cc_needs_belf=yes
13201 echo "$as_me: failed program was
:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13204 lt_cv_cc_needs_belf=no
13207 rm -f core conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13210 ac_cpp='$CPP $CPPFLAGS'
13211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13216 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
13217 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13218 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13219 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13220 CFLAGS="$SAVE_CFLAGS"
13224 # Find out which ABI we are using.
13225 echo 'int i;' > conftest.$ac_ext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227 (eval $ac_compile) 2>&5
13229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13230 (exit $ac_status); }; then
13231 case `/usr/bin/file conftest.o` in
13233 case $lt_cv_prog_gnu_ld in
13234 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13235 *) LD="${LD-ld} -64" ;;
13246 need_locks="$enable_libtool_lock"
13251 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
13252 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
13253 (test "X
$CXX" != "Xg
++"))) ; then
13255 ac_cpp='$CXXCPP $CPPFLAGS'
13256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13259 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
13260 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
13261 if test -z "$CXXCPP"; then
13262 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13263 echo $ECHO_N "(cached
) $ECHO_C" >&6
13265 # Double quotes because CXXCPP needs to be expanded
13266 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13268 ac_preproc_ok=false
13269 for ac_cxx_preproc_warn_flag in '' yes
13271 # Use a header file that comes with gcc, so configuring glibc
13272 # with a fresh cross-compiler works.
13273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13274 # <limits.h> exists even on freestanding compilers.
13275 # On the NeXT, cc -E runs the code through the compiler's parser,
13276 # not just through cpp. "Syntax error
" is here to catch this case.
13277 cat >conftest.$ac_ext <<_ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13284 # include <limits.h>
13286 # include <assert.h>
13290 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13298 grep -v '^ *+' conftest.er1 >conftest.err
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13302 (exit $ac_status); } >/dev/null; then
13303 if test -s conftest.err; then
13304 ac_cpp_err=$ac_cxx_preproc_warn_flag
13305 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13312 if test -z "$ac_cpp_err"; then
13315 echo "$as_me: failed program was
:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 # Broken: fails on valid input.
13322 rm -f conftest.err conftest.$ac_ext
13324 # OK, works on sane cases. Now check whether nonexistent headers
13325 # can be detected and how.
13326 cat >conftest.$ac_ext <<_ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13332 #include <ac_nonexistent.h>
13334 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13342 grep -v '^ *+' conftest.er1 >conftest.err
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13346 (exit $ac_status); } >/dev/null; then
13347 if test -s conftest.err; then
13348 ac_cpp_err=$ac_cxx_preproc_warn_flag
13349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13356 if test -z "$ac_cpp_err"; then
13357 # Broken: success on invalid input.
13360 echo "$as_me: failed program was
:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13363 # Passes both tests.
13368 rm -f conftest.err conftest.$ac_ext
13371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13372 rm -f conftest.err conftest.$ac_ext
13373 if $ac_preproc_ok; then
13378 ac_cv_prog_CXXCPP=$CXXCPP
13381 CXXCPP=$ac_cv_prog_CXXCPP
13383 ac_cv_prog_CXXCPP=$CXXCPP
13385 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
13386 echo "${ECHO_T}$CXXCPP" >&6; }
13387 ac_preproc_ok=false
13388 for ac_cxx_preproc_warn_flag in '' yes
13390 # Use a header file that comes with gcc, so configuring glibc
13391 # with a fresh cross-compiler works.
13392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13393 # <limits.h> exists even on freestanding compilers.
13394 # On the NeXT, cc -E runs the code through the compiler's parser,
13395 # not just through cpp. "Syntax error
" is here to catch this case.
13396 cat >conftest.$ac_ext <<_ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13403 # include <limits.h>
13405 # include <assert.h>
13409 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13421 (exit $ac_status); } >/dev/null; then
13422 if test -s conftest.err; then
13423 ac_cpp_err=$ac_cxx_preproc_warn_flag
13424 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13431 if test -z "$ac_cpp_err"; then
13434 echo "$as_me: failed program was
:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 # Broken: fails on valid input.
13441 rm -f conftest.err conftest.$ac_ext
13443 # OK, works on sane cases. Now check whether nonexistent headers
13444 # can be detected and how.
13445 cat >conftest.$ac_ext <<_ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451 #include <ac_nonexistent.h>
13453 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13454 case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13461 grep -v '^ *+' conftest.er1 >conftest.err
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13465 (exit $ac_status); } >/dev/null; then
13466 if test -s conftest.err; then
13467 ac_cpp_err=$ac_cxx_preproc_warn_flag
13468 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13475 if test -z "$ac_cpp_err"; then
13476 # Broken: success on invalid input.
13479 echo "$as_me: failed program was
:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 # Passes both tests.
13487 rm -f conftest.err conftest.$ac_ext
13490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13491 rm -f conftest.err conftest.$ac_ext
13492 if $ac_preproc_ok; then
13495 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
13496 See \
`config.log' for more details." >&5
13497 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13498 See \`config.log
' for more details." >&2;}
13499 { (exit 1); exit 1; }; }
13503 ac_cpp='$CXXCPP $CPPFLAGS'
13504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13505 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13512 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13513 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13515 if test -n "$ac_tool_prefix"; then
13516 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
13518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13522 if test "${ac_cv_prog_F77+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 if test -n "$F77"; then
13526 ac_cv_prog_F77="$F77" # Let the user override the test.
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13535 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 F77=$ac_cv_prog_F77
13546 if test -n "$F77"; then
13547 { echo "$as_me:$LINENO: result: $F77" >&5
13548 echo "${ECHO_T}$F77" >&6; }
13550 { echo "$as_me:$LINENO: result: no" >&5
13551 echo "${ECHO_T}no" >&6; }
13555 test -n "$F77" && break
13558 if test -z "$F77"; then
13560 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
13562 # Extract the first word of "$ac_prog", so it can be a program name with args.
13563 set dummy $ac_prog; ac_word=$2
13564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13566 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 if test -n "$ac_ct_F77"; then
13570 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573 for as_dir in $PATH
13576 test -z "$as_dir" && as_dir=.
13577 for ac_exec_ext in '' $ac_executable_extensions; do
13578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13579 ac_cv_prog_ac_ct_F77="$ac_prog"
13580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13589 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13590 if test -n "$ac_ct_F77"; then
13591 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13592 echo "${ECHO_T}$ac_ct_F77" >&6; }
13594 { echo "$as_me:$LINENO: result: no" >&5
13595 echo "${ECHO_T}no" >&6; }
13599 test -n "$ac_ct_F77" && break
13602 if test "x$ac_ct_F77" = x; then
13605 case $cross_compiling:$ac_tool_warned in
13607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13608 whose name does not start with the host triplet. If you think this
13609 configuration is useful to you, please write to autoconf@gnu.org." >&5
13610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13611 whose name does not start with the host triplet. If you think this
13612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13613 ac_tool_warned=yes ;;
13620 # Provide some information about the compiler.
13621 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13622 ac_compiler=`set X $ac_compile; echo $2`
13623 { (ac_try="$ac_compiler --version >&5"
13624 case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_compiler --version >&5") 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }
13633 { (ac_try="$ac_compiler -v >&5"
13634 case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_compiler -v >&5") 2>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }
13643 { (ac_try="$ac_compiler -V >&5"
13644 case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_compiler -V >&5") 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }
13655 # If we don't use
`.F' as extension, the preprocessor is not run on the
13656 # input file. (Note that this only needs to work for GNU compilers.)
13657 ac_save_ext=$ac_ext
13659 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13660 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13661 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 cat >conftest.$ac_ext <<_ACEOF
13672 rm -f conftest.$ac_objext
13673 if { (ac_try="$ac_compile"
13674 case "(($ac_try" in
13675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13676 *) ac_try_echo
=$ac_try;;
13678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679 (eval "$ac_compile") 2>conftest.er1
13681 grep -v '^ *+' conftest.er1
>conftest.err
13683 cat conftest.err
>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } &&
13686 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13687 { (case "(($ac_try" in
13688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_try") 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; } &&
13696 { ac_try='test -s conftest.$ac_objext'
13697 { (case "(($ac_try" in
13698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13699 *) ac_try_echo
=$ac_try;;
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_try") 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 ac_compiler_gnu
=yes
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.
$ac_ext >&5
13714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13715 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13718 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13719 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13720 ac_ext
=$ac_save_ext
13721 ac_test_FFLAGS
=${FFLAGS+set}
13722 ac_save_FFLAGS
=$FFLAGS
13724 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13725 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13726 if test "${ac_cv_prog_f77_g+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 cat >conftest.
$ac_ext <<_ACEOF
13735 rm -f conftest.
$ac_objext
13736 if { (ac_try
="$ac_compile"
13737 case "(($ac_try" in
13738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_compile") 2>conftest.er1
13744 grep -v '^ *+' conftest.er1 >conftest.err
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13752 *) ac_try_echo
=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try
='test -s conftest.$ac_objext'
13760 { (case "(($ac_try" in
13761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 ac_cv_prog_f77_g=yes
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13774 ac_cv_prog_f77_g=no
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13781 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13782 if test "$ac_test_FFLAGS" = set; then
13783 FFLAGS=$ac_save_FFLAGS
13784 elif test $ac_cv_prog_f77_g = yes; then
13785 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13791 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13798 G77=`test $ac_compiler_gnu = yes && echo yes`
13800 ac_cpp='$CPP $CPPFLAGS'
13801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13807 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13809 # find the maximum length of command line arguments
13810 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13811 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13812 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 # On DJGPP, this test can blow up pretty badly due to problems in libc
13821 # (any single argument exceeding 2000 bytes causes a buffer overrun
13822 # during glob expansion). Even if it were fixed, the result of this
13823 # check would be larger than it should be.
13824 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13828 # Under GNU Hurd, this test is not required because there is
13829 # no limit to the length of command line arguments.
13830 # Libtool will interpret -1 as no limit whatsoever
13831 lt_cv_sys_max_cmd_len=-1;
13835 # On Win9x/ME, this test blows up -- it succeeds, but takes
13836 # about 5 minutes as the teststring grows exponentially.
13837 # Worse, since 9x/ME are not pre-emptively multitasking,
13838 # you end up with a "frozen" computer, even though with patience
13839 # the test eventually succeeds (with a max line length of 256k).
13840 # Instead, let's just punt: use the minimum linelength reported by
13841 # all of the supported platforms: 8192 (on NT/2K/XP).
13842 lt_cv_sys_max_cmd_len=8192;
13846 # On AmigaOS with pdksh, this test takes hours, literally.
13847 # So we just punt and use a minimum line length of 8192.
13848 lt_cv_sys_max_cmd_len=8192;
13851 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13852 # This has been around since 386BSD, at least. Likely further.
13853 if test -x /sbin/sysctl; then
13854 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13855 elif test -x /usr/sbin/sysctl; then
13856 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13858 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13860 # And add a safety zone
13861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13866 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13867 lt_cv_sys_max_cmd_len=196608
13871 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13872 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13873 # nice to cause kernel panics so lets avoid the loop below.
13874 # First set a reasonable default.
13875 lt_cv_sys_max_cmd_len=16384
13877 if test -x /sbin/sysconfig; then
13878 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
13879 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13884 lt_cv_sys_max_cmd_len=102400
13886 sysv5* | sco5v6* | sysv4.2uw2*)
13887 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
13888 if test -n "$kargmax"; then
13889 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
13891 lt_cv_sys_max_cmd_len=32768
13895 # If test is not a shell built-in, we'll probably end up computing a
13896 # maximum length that is only half of the actual maximum length, but
13898 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13899 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
13900 = "XX$teststring") >/dev/null 2>&1 &&
13901 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13902 lt_cv_sys_max_cmd_len=$new_result &&
13903 test $i != 17 # 1/2 MB should be enough
13906 teststring=$teststring$teststring
13909 # Add a significant safety factor because C++ compilers can tack on massive
13910 # amounts of additional arguments before passing them to the linker.
13911 # It appears as though 1/2 is a usable value.
13912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
13918 if test -n $lt_cv_sys_max_cmd_len ; then
13919 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13920 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13922 { echo "$as_me:$LINENO: result: none" >&5
13923 echo "${ECHO_T}none" >&6; }
13929 # Check for command to grab the raw symbol name followed by C symbol from nm.
13930 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13931 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13932 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 # These are sane defaults that work on at least a few old systems.
13937 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13939 # Character class describing NM global symbol codes.
13940 symcode='[BCDEGRST]'
13942 # Regexp to match symbols that can be accessed directly from C.
13943 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13945 # Transform an extracted symbol line into a proper C declaration
13946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13948 # Transform an extracted symbol line into symbol name and symbol address
13949 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'"
13951 # Define system-specific variables.
13956 cygwin* | mingw* | pw32*)
13957 symcode='[ABCDGISTW]'
13959 hpux*) # Its linker distinguishes data from code symbols
13960 if test "$host_cpu" = ia64; then
13961 symcode='[ABCDEGRST]'
13963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13964 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'"
13967 if test "$host_cpu" = ia64; then
13968 symcode='[ABCDGIRSTW]'
13969 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13970 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 irix* | nonstopux*)
13974 symcode='[BCDEGRST]'
13977 symcode='[BCDEGQRST]'
13988 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13996 # Handle CRLF in mingw tool chain
14000 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
14004 # If we're using GNU nm, then use its standard symbol codes.
14005 case `$NM -V 2>&1` in
14006 *GNU* | *'with BFD'*)
14007 symcode='[ABCDGIRSTW]' ;;
14010 # Try without a prefix undercore, then with it.
14011 for ac_symprfx in "" "_"; do
14013 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14014 symxfrm="\\1 $ac_symprfx\\2 \\2"
14016 # Write the raw and C identifiers.
14017 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14019 # Check to see that the pipe works correctly.
14023 cat > conftest.$ac_ext <<EOF
14028 void nm_test_func(){}
14032 int main(){nm_test_var='a';nm_test_func();return(0);}
14035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036 (eval $ac_compile) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; then
14040 # Now try to grab the symbols.
14042 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14043 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } && test -s "$nlist"; then
14047 # Try sorting and uniquifying the output.
14048 if sort "$nlist" | uniq > "$nlist"T; then
14049 mv -f "$nlist"T "$nlist"
14054 # Make sure that we snagged all the symbols we need.
14055 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14056 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14057 cat <<EOF > conftest.$ac_ext
14063 # Now generate the symbol file.
14064 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14066 cat <<EOF >> conftest.$ac_ext
14067 #if defined (__STDC__) && __STDC__
14068 # define lt_ptr_t void *
14070 # define lt_ptr_t char *
14074 /* The mapping between symbol names and symbols. */
14079 lt_preloaded_symbols[] =
14082 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14083 cat <<\EOF >> conftest.$ac_ext
14091 # Now try linking the two files.
14092 mv conftest.$ac_objext conftstm.$ac_objext
14093 lt_save_LIBS="$LIBS"
14094 lt_save_CFLAGS="$CFLAGS"
14095 LIBS="conftstm.$ac_objext"
14096 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14098 (eval $ac_link) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14104 LIBS="$lt_save_LIBS"
14105 CFLAGS="$lt_save_CFLAGS"
14107 echo "cannot find nm_test_func in $nlist" >&5
14110 echo "cannot find nm_test_var in $nlist" >&5
14113 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14116 echo "$progname: failed program was:" >&5
14117 cat conftest.$ac_ext >&5
14119 rm -f conftest* conftst*
14121 # Do not use the global_symbol_pipe unless it works.
14122 if test "$pipe_works" = yes; then
14125 lt_cv_sys_global_symbol_pipe=
14131 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14132 lt_cv_sys_global_symbol_to_cdecl=
14134 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14135 { echo "$as_me:$LINENO: result: failed" >&5
14136 echo "${ECHO_T}failed" >&6; }
14138 { echo "$as_me:$LINENO: result: ok" >&5
14139 echo "${ECHO_T}ok" >&6; }
14142 { echo "$as_me:$LINENO: checking for objdir" >&5
14143 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14144 if test "${lt_cv_objdir+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 rm -f .libs 2>/dev/null
14148 mkdir .libs 2>/dev/null
14149 if test -d .libs; then
14152 # MS-DOS does not allow filenames that begin with a dot.
14155 rmdir .libs 2>/dev/null
14157 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14158 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14159 objdir=$lt_cv_objdir
14167 # AIX sometimes has problems with the GCC collect2 program. For some
14168 # reason, if we set the COLLECT_NAMES environment variable, the problems
14169 # vanish in a puff of smoke.
14170 if test "X${COLLECT_NAMES+set}" != Xset; then
14172 export COLLECT_NAMES
14177 # Sed substitution that helps us do robust quoting. It backslashifies
14178 # metacharacters that are still active within double-quoted strings.
14179 Xsed='sed -e 1s/^X//'
14180 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
14182 # Same as above, but do not quote variable references.
14183 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
14185 # Sed substitution to delay expansion of an escaped shell variable in a
14186 # double_quote_subst'ed string.
14187 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14189 # Sed substitution to avoid accidental globbing in evaled expressions
14190 no_glob_subst='s/\*/\\\*/g'
14195 # Global variables:
14196 default_ofile=mklib
14197 can_build_shared=yes
14199 # All known linkers require a `.a' archive for static linking (except MSVC,
14200 # which needs '.lib').
14202 ltmain="$ac_aux_dir/ltmain.sh
"
14203 ofile="$default_ofile"
14204 with_gnu_ld="$lt_cv_prog_gnu_ld"
14206 if test -n "$ac_tool_prefix"; then
14207 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14208 set dummy ${ac_tool_prefix}ar; ac_word=$2
14209 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14210 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14211 if test "${ac_cv_prog_AR+set}" = set; then
14212 echo $ECHO_N "(cached
) $ECHO_C" >&6
14214 if test -n "$AR"; then
14215 ac_cv_prog_AR="$AR" # Let the user override the test.
14217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218 for as_dir in $PATH
14221 test -z "$as_dir" && as_dir=.
14222 for ac_exec_ext in '' $ac_executable_extensions; do
14223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14224 ac_cv_prog_AR="${ac_tool_prefix}ar"
14225 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14235 if test -n "$AR"; then
14236 { echo "$as_me:$LINENO: result
: $AR" >&5
14237 echo "${ECHO_T}$AR" >&6; }
14239 { echo "$as_me:$LINENO: result
: no
" >&5
14240 echo "${ECHO_T}no
" >&6; }
14245 if test -z "$ac_cv_prog_AR"; then
14247 # Extract the first word of "ar", so it can be a program name with args.
14248 set dummy ar; ac_word=$2
14249 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14250 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14251 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14252 echo $ECHO_N "(cached
) $ECHO_C" >&6
14254 if test -n "$ac_ct_AR"; then
14255 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258 for as_dir in $PATH
14261 test -z "$as_dir" && as_dir=.
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14264 ac_cv_prog_ac_ct_AR="ar"
14265 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14274 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14275 if test -n "$ac_ct_AR"; then
14276 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14277 echo "${ECHO_T}$ac_ct_AR" >&6; }
14279 { echo "$as_me:$LINENO: result
: no
" >&5
14280 echo "${ECHO_T}no
" >&6; }
14283 if test "x
$ac_ct_AR" = x; then
14286 case $cross_compiling:$ac_tool_warned in
14288 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14289 whose name does not start with the
host triplet. If you think this
14290 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14291 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14292 whose name does not start with the
host triplet. If you think this
14293 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14294 ac_tool_warned=yes ;;
14299 AR="$ac_cv_prog_AR"
14302 if test -n "$ac_tool_prefix"; then
14303 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14305 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14306 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14307 if test "${ac_cv_prog_RANLIB+set}" = set; then
14308 echo $ECHO_N "(cached
) $ECHO_C" >&6
14310 if test -n "$RANLIB"; then
14311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314 for as_dir in $PATH
14317 test -z "$as_dir" && as_dir=.
14318 for ac_exec_ext in '' $ac_executable_extensions; do
14319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14321 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14330 RANLIB=$ac_cv_prog_RANLIB
14331 if test -n "$RANLIB"; then
14332 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
14333 echo "${ECHO_T}$RANLIB" >&6; }
14335 { echo "$as_me:$LINENO: result
: no
" >&5
14336 echo "${ECHO_T}no
" >&6; }
14341 if test -z "$ac_cv_prog_RANLIB"; then
14342 ac_ct_RANLIB=$RANLIB
14343 # Extract the first word of "ranlib
", so it can be a program name with args.
14344 set dummy ranlib; ac_word=$2
14345 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14346 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14347 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14348 echo $ECHO_N "(cached
) $ECHO_C" >&6
14350 if test -n "$ac_ct_RANLIB"; then
14351 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14354 for as_dir in $PATH
14357 test -z "$as_dir" && as_dir=.
14358 for ac_exec_ext in '' $ac_executable_extensions; do
14359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14360 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14361 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14370 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14371 if test -n "$ac_ct_RANLIB"; then
14372 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
14373 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14375 { echo "$as_me:$LINENO: result
: no
" >&5
14376 echo "${ECHO_T}no
" >&6; }
14379 if test "x
$ac_ct_RANLIB" = x; then
14382 case $cross_compiling:$ac_tool_warned in
14384 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14385 whose name does not start with the
host triplet. If you think this
14386 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14387 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14388 whose name does not start with the
host triplet. If you think this
14389 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14390 ac_tool_warned=yes ;;
14392 RANLIB=$ac_ct_RANLIB
14395 RANLIB="$ac_cv_prog_RANLIB"
14398 if test -n "$ac_tool_prefix"; then
14399 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14400 set dummy ${ac_tool_prefix}strip; ac_word=$2
14401 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14402 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14403 if test "${ac_cv_prog_STRIP+set}" = set; then
14404 echo $ECHO_N "(cached
) $ECHO_C" >&6
14406 if test -n "$STRIP"; then
14407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14410 for as_dir in $PATH
14413 test -z "$as_dir" && as_dir=.
14414 for ac_exec_ext in '' $ac_executable_extensions; do
14415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14416 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14417 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14426 STRIP=$ac_cv_prog_STRIP
14427 if test -n "$STRIP"; then
14428 { echo "$as_me:$LINENO: result
: $STRIP" >&5
14429 echo "${ECHO_T}$STRIP" >&6; }
14431 { echo "$as_me:$LINENO: result
: no
" >&5
14432 echo "${ECHO_T}no
" >&6; }
14437 if test -z "$ac_cv_prog_STRIP"; then
14439 # Extract the first word of "strip
", so it can be a program name with args.
14440 set dummy strip; ac_word=$2
14441 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14442 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14443 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14444 echo $ECHO_N "(cached
) $ECHO_C" >&6
14446 if test -n "$ac_ct_STRIP"; then
14447 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450 for as_dir in $PATH
14453 test -z "$as_dir" && as_dir=.
14454 for ac_exec_ext in '' $ac_executable_extensions; do
14455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14456 ac_cv_prog_ac_ct_STRIP="strip
"
14457 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14467 if test -n "$ac_ct_STRIP"; then
14468 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
14469 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14471 { echo "$as_me:$LINENO: result
: no
" >&5
14472 echo "${ECHO_T}no
" >&6; }
14475 if test "x
$ac_ct_STRIP" = x; then
14478 case $cross_compiling:$ac_tool_warned in
14480 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14481 whose name does not start with the
host triplet. If you think this
14482 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14483 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14484 whose name does not start with the
host triplet. If you think this
14485 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14486 ac_tool_warned=yes ;;
14491 STRIP="$ac_cv_prog_STRIP"
14496 old_CFLAGS="$CFLAGS"
14498 # Set sane defaults for various variables
14499 test -z "$AR" && AR=ar
14500 test -z "$AR_FLAGS" && AR_FLAGS=cru
14501 test -z "$AS" && AS=as
14502 test -z "$CC" && CC=cc
14503 test -z "$LTCC" && LTCC=$CC
14504 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14505 test -z "$DLLTOOL" && DLLTOOL=dlltool
14506 test -z "$LD" && LD=ld
14507 test -z "$LN_S" && LN_S="ln -s"
14508 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14509 test -z "$NM" && NM=nm
14510 test -z "$SED" && SED=sed
14511 test -z "$OBJDUMP" && OBJDUMP=objdump
14512 test -z "$RANLIB" && RANLIB=:
14513 test -z "$STRIP" && STRIP=:
14514 test -z "$ac_objext" && ac_objext=o
14516 # Determine commands to create old-style static archives.
14517 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14518 old_postinstall_cmds='chmod 644 $oldlib'
14519 old_postuninstall_cmds=
14521 if test -n "$RANLIB"; then
14524 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14527 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14530 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14533 for cc_temp in $compiler""; do
14535 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14536 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14541 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14544 # Only perform the check for file, if the check method requires it
14545 case $deplibs_check_method in
14547 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14548 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
14549 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
14550 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14551 echo $ECHO_N "(cached
) $ECHO_C" >&6
14555 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14558 lt_save_MAGIC_CMD="$MAGIC_CMD"
14559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14560 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14561 for ac_dir in $ac_dummy; do
14563 test -z "$ac_dir" && ac_dir=.
14564 if test -f $ac_dir/${ac_tool_prefix}file; then
14565 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14566 if test -n "$file_magic_test_file"; then
14567 case $deplibs_check_method in
14569 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14571 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14572 $EGREP "$file_magic_regex" > /dev/null; then
14577 *** Warning: the command libtool uses to detect shared libraries,
14578 *** $file_magic_cmd, produces output that libtool cannot recognize.
14579 *** The result is that libtool may fail to recognize shared libraries
14580 *** as such. This will affect the creation of libtool libraries that
14581 *** depend on shared libraries, but programs linked with such libtool
14582 *** libraries will work regardless of this problem. Nevertheless, you
14583 *** may want to report the problem to your system manager and/or to
14584 *** bug-libtool@gnu.org
14594 MAGIC_CMD="$lt_save_MAGIC_CMD"
14599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14600 if test -n "$MAGIC_CMD"; then
14601 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14602 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14604 { echo "$as_me:$LINENO: result
: no
" >&5
14605 echo "${ECHO_T}no
" >&6; }
14608 if test -z "$lt_cv_path_MAGIC_CMD"; then
14609 if test -n "$ac_tool_prefix"; then
14610 { echo "$as_me:$LINENO: checking
for file" >&5
14611 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14612 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14613 echo $ECHO_N "(cached
) $ECHO_C" >&6
14617 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14620 lt_save_MAGIC_CMD="$MAGIC_CMD"
14621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14622 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14623 for ac_dir in $ac_dummy; do
14625 test -z "$ac_dir" && ac_dir=.
14626 if test -f $ac_dir/file; then
14627 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14628 if test -n "$file_magic_test_file"; then
14629 case $deplibs_check_method in
14631 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14633 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14634 $EGREP "$file_magic_regex" > /dev/null; then
14639 *** Warning: the command libtool uses to detect shared libraries,
14640 *** $file_magic_cmd, produces output that libtool cannot recognize.
14641 *** The result is that libtool may fail to recognize shared libraries
14642 *** as such. This will affect the creation of libtool libraries that
14643 *** depend on shared libraries, but programs linked with such libtool
14644 *** libraries will work regardless of this problem. Nevertheless, you
14645 *** may want to report the problem to your system manager and/or to
14646 *** bug-libtool@gnu.org
14656 MAGIC_CMD="$lt_save_MAGIC_CMD"
14661 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14662 if test -n "$MAGIC_CMD"; then
14663 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14664 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14666 { echo "$as_me:$LINENO: result
: no
" >&5
14667 echo "${ECHO_T}no
" >&6; }
14680 enable_win32_dll=no
14682 # Check whether --enable-libtool-lock was given.
14683 if test "${enable_libtool_lock+set}" = set; then
14684 enableval=$enable_libtool_lock;
14687 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14690 # Check whether --with-pic was given.
14691 if test "${with_pic+set}" = set; then
14692 withval=$with_pic; pic_mode="$withval"
14697 test -z "$pic_mode" && pic_mode=default
14699 # Use C for the default configuration in the libtool script
14703 ac_cpp='$CPP $CPPFLAGS'
14704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14709 # Source file extension for C test sources.
14712 # Object file extension for compiled C test sources.
14716 # Code to be used in simple compile tests
14717 lt_simple_compile_test_code="int some_variable
= 0;\n"
14719 # Code to be used in simple link tests
14720 lt_simple_link_test_code='int main(){return(0);}\n'
14723 # If no C compiler was specified, use CC.
14726 # If no C compiler flags were specified, use CFLAGS.
14727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14729 # Allow CC to be a program name with arguments.
14733 # save warnings/boilerplate of simple test code
14734 ac_outfile=conftest.$ac_objext
14735 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14736 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14737 _lt_compiler_boilerplate=`cat conftest.err`
14740 ac_outfile=conftest.$ac_objext
14741 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14742 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14743 _lt_linker_boilerplate=`cat conftest.err`
14748 lt_prog_compiler_no_builtin_flag=
14750 if test "$GCC" = yes; then
14751 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14754 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14755 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14756 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14757 echo $ECHO_N "(cached
) $ECHO_C" >&6
14759 lt_cv_prog_compiler_rtti_exceptions=no
14760 ac_outfile=conftest.$ac_objext
14761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14762 lt_compiler_flag="-fno-rtti -fno-exceptions"
14763 # Insert the option either (1) after the last *FLAGS variable, or
14764 # (2) before a word containing "conftest.
", or (3) at the end.
14765 # Note that $ac_compile itself does not contain backslashes and begins
14766 # with a dollar sign (not a hyphen), so the echo should work correctly.
14767 # The option is referenced via a variable to avoid confusing sed.
14768 lt_compile=`echo "$ac_compile" | $SED \
14769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14771 -e 's:$: $lt_compiler_flag:'`
14772 (eval echo "\"\
$as_me:14767: $lt_compile\"" >&5)
14773 (eval "$lt_compile" 2>conftest.err)
14775 cat conftest.err >&5
14776 echo "$as_me:14771: \$?
= $ac_status" >&5
14777 if (exit $ac_status) && test -s "$ac_outfile"; then
14778 # The compiler can only warn and ignore the option if not recognized
14779 # So say no if there are warnings other than the usual output.
14780 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14783 lt_cv_prog_compiler_rtti_exceptions=yes
14789 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14790 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14792 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14793 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14800 lt_prog_compiler_wl=
14801 lt_prog_compiler_pic=
14802 lt_prog_compiler_static=
14804 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14805 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14807 if test "$GCC" = yes; then
14808 lt_prog_compiler_wl='-Wl,'
14809 lt_prog_compiler_static='-static'
14813 # All AIX code is PIC.
14814 if test "$host_cpu" = ia64; then
14815 # AIX 5 now supports IA64 processor
14816 lt_prog_compiler_static='-Bstatic'
14821 # FIXME: we need at least 68020 code to build shared libraries, but
14822 # adding the `-m68020' flag to GCC prevents building anything better,
14824 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14827 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14828 # PIC is the default for these OSes.
14831 mingw* | pw32* | os2*)
14832 # This hack is so that the source file can tell whether it is being
14833 # built for inclusion in a dll (and should export symbols for example).
14834 lt_prog_compiler_pic='-DDLL_EXPORT'
14837 darwin* | rhapsody*)
14838 # PIC is the default on this platform
14839 # Common symbols not allowed in MH_DYLIB files
14840 lt_prog_compiler_pic='-fno-common'
14844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14845 # Instead, we relocate shared libraries at runtime.
14849 # Just because we use GCC doesn't mean we suddenly get shared libraries
14850 # on systems that don't support them.
14851 lt_prog_compiler_can_build_shared=no
14856 if test -d /usr/nec; then
14857 lt_prog_compiler_pic=-Kconform_pic
14862 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14863 # not for PA HP-UX.
14869 lt_prog_compiler_pic='-fPIC'
14875 lt_prog_compiler_pic='-fPIC'
14879 # PORTME Check for flag to pass linker flags through the system compiler.
14882 lt_prog_compiler_wl='-Wl,'
14883 if test "$host_cpu" = ia64; then
14884 # AIX 5 now supports IA64 processor
14885 lt_prog_compiler_static='-Bstatic'
14887 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14891 # PIC is the default on this platform
14892 # Common symbols not allowed in MH_DYLIB files
14893 case $cc_basename in
14895 lt_prog_compiler_pic='-qnocommon'
14896 lt_prog_compiler_wl='-Wl,'
14901 mingw* | pw32* | os2*)
14902 # This hack is so that the source file can tell whether it is being
14903 # built for inclusion in a dll (and should export symbols for example).
14904 lt_prog_compiler_pic='-DDLL_EXPORT'
14907 hpux9* | hpux10* | hpux11*)
14908 lt_prog_compiler_wl='-Wl,'
14909 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14910 # not for PA HP-UX.
14916 lt_prog_compiler_pic='+Z'
14919 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14920 lt_prog_compiler_static='${wl}-a ${wl}archive'
14923 irix5* | irix6* | nonstopux*)
14924 lt_prog_compiler_wl='-Wl,'
14925 # PIC (with -KPIC) is the default.
14926 lt_prog_compiler_static='-non_shared'
14930 lt_prog_compiler_pic='-KPIC'
14931 lt_prog_compiler_static='-Bstatic'
14935 case $cc_basename in
14937 lt_prog_compiler_wl='-Wl,'
14938 lt_prog_compiler_pic='-KPIC'
14939 lt_prog_compiler_static='-static'
14941 pgcc* | pgf77* | pgf90* | pgf95*)
14942 # Portland Group compilers (*not* the Pentium gcc compiler,
14943 # which looks to be a dead project)
14944 lt_prog_compiler_wl='-Wl,'
14945 lt_prog_compiler_pic='-fpic'
14946 lt_prog_compiler_static='-Bstatic'
14949 lt_prog_compiler_wl='-Wl,'
14950 # All Alpha code is PIC.
14951 lt_prog_compiler_static='-non_shared'
14956 osf3* | osf4* | osf5*)
14957 lt_prog_compiler_wl='-Wl,'
14958 # All OSF/1 code is PIC.
14959 lt_prog_compiler_static='-non_shared'
14963 lt_prog_compiler_pic='-KPIC'
14964 lt_prog_compiler_static='-Bstatic'
14965 case $cc_basename in
14966 f77* | f90* | f95*)
14967 lt_prog_compiler_wl='-Qoption ld ';;
14969 lt_prog_compiler_wl='-Wl,';;
14974 lt_prog_compiler_wl='-Qoption ld '
14975 lt_prog_compiler_pic='-PIC'
14976 lt_prog_compiler_static='-Bstatic'
14979 sysv4 | sysv4.2uw2* | sysv4.3*)
14980 lt_prog_compiler_wl='-Wl,'
14981 lt_prog_compiler_pic='-KPIC'
14982 lt_prog_compiler_static='-Bstatic'
14986 if test -d /usr/nec ;then
14987 lt_prog_compiler_pic='-Kconform_pic'
14988 lt_prog_compiler_static='-Bstatic'
14992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14993 lt_prog_compiler_wl='-Wl,'
14994 lt_prog_compiler_pic='-KPIC'
14995 lt_prog_compiler_static='-Bstatic'
14999 lt_prog_compiler_wl='-Wl,'
15000 lt_prog_compiler_can_build_shared=no
15004 lt_prog_compiler_pic='-pic'
15005 lt_prog_compiler_static='-Bstatic'
15009 lt_prog_compiler_can_build_shared=no
15014 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
15015 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15018 # Check to make sure the PIC flag actually works.
15020 if test -n "$lt_prog_compiler_pic"; then
15022 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15023 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
15024 if test "${lt_prog_compiler_pic_works+set}" = set; then
15025 echo $ECHO_N "(cached
) $ECHO_C" >&6
15027 lt_prog_compiler_pic_works=no
15028 ac_outfile=conftest.$ac_objext
15029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15030 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15031 # Insert the option either (1) after the last *FLAGS variable, or
15032 # (2) before a word containing "conftest.
", or (3) at the end.
15033 # Note that $ac_compile itself does not contain backslashes and begins
15034 # with a dollar sign (not a hyphen), so the echo should work correctly.
15035 # The option is referenced via a variable to avoid confusing sed.
15036 lt_compile=`echo "$ac_compile" | $SED \
15037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15039 -e 's:$: $lt_compiler_flag:'`
15040 (eval echo "\"\
$as_me:15035: $lt_compile\"" >&5)
15041 (eval "$lt_compile" 2>conftest.err)
15043 cat conftest.err >&5
15044 echo "$as_me:15039: \$?
= $ac_status" >&5
15045 if (exit $ac_status) && test -s "$ac_outfile"; then
15046 # The compiler can only warn and ignore the option if not recognized
15047 # So say no if there are warnings other than the usual output.
15048 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15050 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15051 lt_prog_compiler_pic_works=yes
15057 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
15058 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15060 if test x"$lt_prog_compiler_pic_works" = xyes; then
15061 case $lt_prog_compiler_pic in
15063 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15066 lt_prog_compiler_pic=
15067 lt_prog_compiler_can_build_shared=no
15072 # For platforms which do not support PIC, -DPIC is meaningless:
15074 lt_prog_compiler_pic=
15077 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15082 # Check to make sure the static flag actually works.
15084 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15085 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15086 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
15087 if test "${lt_prog_compiler_static_works+set}" = set; then
15088 echo $ECHO_N "(cached
) $ECHO_C" >&6
15090 lt_prog_compiler_static_works=no
15091 save_LDFLAGS="$LDFLAGS"
15092 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15093 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15094 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15095 # The linker can only warn and ignore the option if not recognized
15096 # So say no if there are warnings
15097 if test -s conftest.err; then
15098 # Append any errors to the config.log.
15099 cat conftest.err 1>&5
15100 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15102 if diff conftest.exp conftest.er2 >/dev/null; then
15103 lt_prog_compiler_static_works=yes
15106 lt_prog_compiler_static_works=yes
15110 LDFLAGS="$save_LDFLAGS"
15113 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
15114 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15116 if test x"$lt_prog_compiler_static_works" = xyes; then
15119 lt_prog_compiler_static=
15123 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15124 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
15125 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15126 echo $ECHO_N "(cached
) $ECHO_C" >&6
15128 lt_cv_prog_compiler_c_o=no
15129 $rm -r conftest 2>/dev/null
15133 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15135 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15136 # Insert the option either (1) after the last *FLAGS variable, or
15137 # (2) before a word containing "conftest.
", or (3) at the end.
15138 # Note that $ac_compile itself does not contain backslashes and begins
15139 # with a dollar sign (not a hyphen), so the echo should work correctly.
15140 lt_compile=`echo "$ac_compile" | $SED \
15141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15143 -e 's:$: $lt_compiler_flag:'`
15144 (eval echo "\"\
$as_me:15139: $lt_compile\"" >&5)
15145 (eval "$lt_compile" 2>out/conftest.err)
15147 cat out/conftest.err >&5
15148 echo "$as_me:15143: \$?
= $ac_status" >&5
15149 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15151 # The compiler can only warn and ignore the option if not recognized
15152 # So say no if there are warnings
15153 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15154 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15155 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15156 lt_cv_prog_compiler_c_o=yes
15161 # SGI C++ compiler will create directory out/ii_files/ for
15162 # template instantiation
15163 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15164 $rm out/* && rmdir out
15170 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
15171 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15174 hard_links="nottested
"
15175 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15176 # do not overwrite the value of need_locks provided by the user
15177 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
15178 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
15181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15183 ln conftest.a conftest.b 2>&5 || hard_links=no
15184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15185 { echo "$as_me:$LINENO: result
: $hard_links" >&5
15186 echo "${ECHO_T}$hard_links" >&6; }
15187 if test "$hard_links" = no; then
15188 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15189 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15196 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15197 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
15200 allow_undefined_flag=
15201 enable_shared_with_static_runtimes=no
15203 archive_expsym_cmds=
15204 old_archive_From_new_cmds=
15205 old_archive_from_expsyms_cmds=
15206 export_dynamic_flag_spec=
15207 whole_archive_flag_spec=
15208 thread_safe_flag_spec=
15209 hardcode_libdir_flag_spec=
15210 hardcode_libdir_flag_spec_ld=
15211 hardcode_libdir_separator=
15213 hardcode_minus_L=no
15214 hardcode_shlibpath_var=unsupported
15215 link_all_deplibs=unknown
15216 hardcode_automatic=no
15218 module_expsym_cmds=
15219 always_export_symbols=no
15220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15221 # include_expsyms should be a list of space-separated symbols to be *always*
15222 # included in the symbol list
15224 # exclude_expsyms can be an extended regexp of symbols to exclude
15225 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15226 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15227 # as well as any symbol that contains `d'.
15228 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
15229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15230 # platforms (ab)use it in PIC code, but their linkers get confused if
15231 # the symbol is explicitly referenced. Since portable code cannot
15232 # rely on this symbol name, it's probably fine to never include it in
15233 # preloaded symbol tables.
15234 extract_expsyms_cmds=
15235 # Just being paranoid about ensuring that cc_basename is set.
15236 for cc_temp in $compiler""; do
15238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15244 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
15247 cygwin* | mingw* | pw32*)
15248 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15249 # When not using gcc, we currently assume that we are using
15250 # Microsoft Visual C++.
15251 if test "$GCC" != yes; then
15256 # we just hope/assume this is gcc and not c89 (= MSVC++)
15265 if test "$with_gnu_ld" = yes; then
15266 # If archive_cmds runs LD, not CC, wlarc should be empty
15269 # Set some defaults for GNU ld with shared library support. These
15270 # are reset later if shared libraries are not supported. Putting them
15271 # here allows them to be overridden if necessary.
15272 runpath_var=LD_RUN_PATH
15273 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15274 export_dynamic_flag_spec='${wl}--export-dynamic'
15275 # ancient GNU ld didn't support --whole-archive et. al.
15276 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15277 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15279 whole_archive_flag_spec=
15281 supports_anon_versioning=no
15282 case `$LD -v 2>/dev/null` in
15283 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15284 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15285 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15286 *\ 2.11.*) ;; # other 2.11 versions
15287 *) supports_anon_versioning=yes ;;
15290 # See if GNU ld supports shared libraries.
15292 aix3* | aix4* | aix5*)
15293 # On AIX/PPC, the GNU linker is very broken
15294 if test "$host_cpu" != ia64; then
15298 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15299 *** to be unable to reliably create shared libraries on AIX.
15300 *** Therefore, libtool is disabling shared libraries support. If you
15301 *** really care for shared libraries, you may want to modify your PATH
15302 *** so that a non-GNU linker is found, and then restart.
15309 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)'
15310 hardcode_libdir_flag_spec
='-L$libdir'
15311 hardcode_minus_L
=yes
15313 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15314 # that the semantics of dynamic libraries on AmigaOS, at least up
15315 # to version 4, is to share data among multiple programs linked
15316 # with the same dynamic library. Since this doesn't match the
15317 # behavior of shared libraries on other platforms, we can't use
15323 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15324 allow_undefined_flag
=unsupported
15325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15326 # support --undefined. This deserves some investigation. FIXME
15327 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15333 cygwin
* | mingw
* | pw32
*)
15334 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15335 # as there is no search path for DLLs.
15336 hardcode_libdir_flag_spec
='-L$libdir'
15337 allow_undefined_flag
=unsupported
15338 always_export_symbols
=no
15339 enable_shared_with_static_runtimes
=yes
15340 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15342 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15343 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15344 # If the export-symbols file already is a .def file (1st line
15345 # is EXPORTS), use it as is; otherwise, prepend...
15346 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15347 cp $export_symbols $output_objdir/$soname.def;
15349 echo EXPORTS > $output_objdir/$soname.def;
15350 cat $export_symbols >> $output_objdir/$soname.def;
15352 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15360 hardcode_shlibpath_var
=no
15361 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15362 export_dynamic_flag_spec
='${wl}-E'
15363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15364 # Instead, shared libraries are loaded at an image base (0x10000000 by
15365 # default) and relocated if they conflict, which is a slow very memory
15366 # consuming and fragmenting process. To avoid this, we pick a random,
15367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15369 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15370 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'
15374 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15376 case $cc_basename,$host_cpu in
15377 pgcc
*) # Portland Group C compiler
15378 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'
15379 tmp_addflag
=' $pic_flag'
15381 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15382 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'
15383 tmp_addflag
=' $pic_flag -Mnomain' ;;
15384 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15385 tmp_addflag
=' -i_dynamic' ;;
15386 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15387 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15388 ifc
* | ifort
*) # Intel Fortran compiler
15389 tmp_addflag
=' -nofor_main' ;;
15391 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15393 if test $supports_anon_versioning = yes; then
15394 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
15395 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15396 $echo "local: *; };" >> $output_objdir/$libname.ver~
15397 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15405 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15406 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15409 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15410 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15415 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15419 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15420 *** create shared libraries on Solaris systems. Therefore, libtool
15421 *** is disabling shared libraries support. We urge you to upgrade GNU
15422 *** binutils to release 2.9.1 or newer. Another option is to modify
15423 *** your PATH or compiler configuration so that the native linker is
15424 *** used, and then restart.
15427 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15428 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15429 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15435 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15436 case `$LD -v 2>&1` in
15437 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15441 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15442 *** reliably create shared libraries on SCO systems. Therefore, libtool
15443 *** is disabling shared libraries support. We urge you to upgrade GNU
15444 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15445 *** your PATH or compiler configuration so that the native linker is
15446 *** used, and then restart.
15451 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15452 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15453 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15454 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15463 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15465 hardcode_direct
=yes
15466 hardcode_shlibpath_var
=no
15470 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15471 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15472 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15479 if test "$ld_shlibs" = no
; then
15481 hardcode_libdir_flag_spec
=
15482 export_dynamic_flag_spec
=
15483 whole_archive_flag_spec
=
15486 # PORTME fill in a description of your system's linker (not GNU ld)
15489 allow_undefined_flag
=unsupported
15490 always_export_symbols
=yes
15491 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'
15492 # Note: this linker hardcodes the directories in LIBPATH if there
15493 # are no directories specified by -L.
15494 hardcode_minus_L
=yes
15495 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15496 # Neither direct hardcoding nor static linking is supported with a
15498 hardcode_direct
=unsupported
15503 if test "$host_cpu" = ia64
; then
15504 # On IA64, the linker does run time linking by default, so we don't
15505 # have to do anything special.
15506 aix_use_runtimelinking
=no
15507 exp_sym_flag
='-Bexport'
15510 # If we're using GNU nm, then we don't want the "-C" option.
15511 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15512 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15513 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'
15515 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'
15517 aix_use_runtimelinking
=no
15519 # Test if we are trying to use run time linking or normal
15520 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15521 # need to do runtime linking.
15522 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15523 for ld_flag
in $LDFLAGS; do
15524 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15525 aix_use_runtimelinking
=yes
15532 exp_sym_flag
='-bexport'
15533 no_entry_flag
='-bnoentry'
15536 # When large executables or shared objects are built, AIX ld can
15537 # have problems creating the table of contents. If linking a library
15538 # or program results in "error TOC overflow" add -mminimal-toc to
15539 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15540 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15543 hardcode_direct
=yes
15544 hardcode_libdir_separator
=':'
15545 link_all_deplibs
=yes
15547 if test "$GCC" = yes; then
15548 case $host_os in aix4.
[012]|aix4.
[012].
*)
15549 # We only want to do this on AIX 4.2 and lower, the check
15550 # below for broken collect2 doesn't work under 4.3+
15551 collect2name
=`${CC} -print-prog-name=collect2`
15552 if test -f "$collect2name" && \
15553 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15555 # We have reworked collect2
15556 hardcode_direct
=yes
15558 # We have old collect2
15559 hardcode_direct
=unsupported
15560 # It fails to find uninstalled libraries when the uninstalled
15561 # path is not listed in the libpath. Setting hardcode_minus_L
15562 # to unsupported forces relinking
15563 hardcode_minus_L
=yes
15564 hardcode_libdir_flag_spec
='-L$libdir'
15565 hardcode_libdir_separator
=
15569 shared_flag
='-shared'
15570 if test "$aix_use_runtimelinking" = yes; then
15571 shared_flag
="$shared_flag "'${wl}-G'
15575 if test "$host_cpu" = ia64
; then
15576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15577 # chokes on -Wl,-G. The following line is correct:
15580 if test "$aix_use_runtimelinking" = yes; then
15581 shared_flag
='${wl}-G'
15583 shared_flag
='${wl}-bM:SRE'
15588 # It seems that -bexpall does not export symbols beginning with
15589 # underscore (_), so it is better to generate a list of symbols to export.
15590 always_export_symbols
=yes
15591 if test "$aix_use_runtimelinking" = yes; then
15592 # Warning - without using the other runtime loading flags (-brtl),
15593 # -berok will link without error, but may produce a broken library.
15594 allow_undefined_flag
='-berok'
15595 # Determine the default libpath from the value encoded in an empty executable.
15596 cat >conftest.
$ac_ext <<_ACEOF
15599 cat confdefs.h
>>conftest.
$ac_ext
15600 cat >>conftest.
$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15611 rm -f conftest.
$ac_objext conftest
$ac_exeext
15612 if { (ac_try
="$ac_link"
15613 case "(($ac_try" in
15614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_link") 2>conftest.er1
15620 grep -v '^ *+' conftest.er1 >conftest.err
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626 { (case "(($ac_try" in
15627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15628 *) ac_try_echo
=$ac_try;;
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_try") 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try
='test -s conftest$ac_exeext'
15636 { (case "(($ac_try" in
15637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15646 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15648 # Check for a 64-bit object if we didn't find anything.
15649 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; }
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15658 rm -f core conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15663 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"
15665 if test "$host_cpu" = ia64; then
15666 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15667 allow_undefined_flag="-z nodefs"
15668 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"
15670 # Determine the default libpath from the value encoded in an empty executable.
15671 cat >conftest.$ac_ext <<_ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (ac_try="$ac_link"
15688 case "(($ac_try" in
15689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15690 *) ac_try_echo
=$ac_try;;
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_link") 2>conftest.er1
15695 grep -v '^ *+' conftest.er1
>conftest.err
15697 cat conftest.err
>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15701 { (case "(($ac_try" in
15702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest$ac_exeext'
15711 { (case "(($ac_try" in
15712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15713 *) ac_try_echo
=$ac_try;;
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_try") 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15721 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15723 # Check for a 64-bit object if we didn't find anything.
15724 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; }
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.
$ac_ext >&5
15733 rm -f core conftest.err conftest.
$ac_objext \
15734 conftest
$ac_exeext conftest.
$ac_ext
15735 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15737 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15738 # Warning - without using the other run time loading flags,
15739 # -berok will link without error, but may produce a broken library.
15740 no_undefined_flag
=' ${wl}-bernotok'
15741 allow_undefined_flag
=' ${wl}-berok'
15742 # Exported symbols can be pulled into shared objects from archives
15743 whole_archive_flag_spec
='$convenience'
15744 archive_cmds_need_lc
=yes
15745 # This is similar to how AIX traditionally builds its shared libraries.
15746 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'
15752 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)'
15753 hardcode_libdir_flag_spec
='-L$libdir'
15754 hardcode_minus_L
=yes
15755 # see comment about different semantics on the GNU ld section
15760 export_dynamic_flag_spec
=-rdynamic
15763 cygwin
* | mingw
* | pw32
*)
15764 # When not using gcc, we currently assume that we are using
15765 # Microsoft Visual C++.
15766 # hardcode_libdir_flag_spec is actually meaningless, as there is
15767 # no search path for DLLs.
15768 hardcode_libdir_flag_spec
=' '
15769 allow_undefined_flag
=unsupported
15770 # Tell ltmain to make .lib files, not .a files.
15772 # Tell ltmain to make .dll files, not .so files.
15774 # FIXME: Setting linknames here is a bad hack.
15775 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15776 # The linker will automatically build a .lib file if we build a DLL.
15777 old_archive_From_new_cmds
='true'
15778 # FIXME: Should let the user specify the lib program.
15779 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15780 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15781 enable_shared_with_static_runtimes
=yes
15784 darwin
* | rhapsody
*)
15786 rhapsody
* | darwin1.
[012])
15787 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15790 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15791 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15793 case ${MACOSX_DEPLOYMENT_TARGET} in
15795 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15798 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15804 archive_cmds_need_lc
=no
15806 hardcode_automatic
=yes
15807 hardcode_shlibpath_var
=unsupported
15808 whole_archive_flag_spec
=''
15809 link_all_deplibs
=yes
15810 if test "$GCC" = yes ; then
15811 output_verbose_link_cmd
='echo'
15812 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15813 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15814 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15815 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}'
15816 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}'
15818 case $cc_basename in
15820 output_verbose_link_cmd
='echo'
15821 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15822 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15823 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15824 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}'
15825 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}'
15835 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15836 hardcode_libdir_flag_spec
='-L$libdir'
15837 hardcode_shlibpath_var
=no
15844 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15845 # support. Future versions do this automatically, but an explicit c++rt0.o
15846 # does not break anything, and helps significantly (at the cost of a little
15849 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15850 hardcode_libdir_flag_spec
='-R$libdir'
15851 hardcode_direct
=yes
15852 hardcode_shlibpath_var
=no
15855 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15857 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15858 hardcode_direct
=yes
15859 hardcode_minus_L
=yes
15860 hardcode_shlibpath_var
=no
15863 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15864 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15865 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15866 hardcode_libdir_flag_spec
='-R$libdir'
15867 hardcode_direct
=yes
15868 hardcode_shlibpath_var
=no
15872 if test "$GCC" = yes; then
15873 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'
15875 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'
15877 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15878 hardcode_libdir_separator
=:
15879 hardcode_direct
=yes
15881 # hardcode_minus_L: Not really in the search PATH,
15882 # but as the default location of the library.
15883 hardcode_minus_L
=yes
15884 export_dynamic_flag_spec
='${wl}-E'
15888 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15889 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15891 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15893 if test "$with_gnu_ld" = no
; then
15894 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15895 hardcode_libdir_separator
=:
15897 hardcode_direct
=yes
15898 export_dynamic_flag_spec
='${wl}-E'
15900 # hardcode_minus_L: Not really in the search PATH,
15901 # but as the default location of the library.
15902 hardcode_minus_L
=yes
15907 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15910 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15913 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15916 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15922 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15928 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15932 if test "$with_gnu_ld" = no
; then
15933 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15934 hardcode_libdir_separator
=:
15938 hardcode_libdir_flag_spec_ld
='+b $libdir'
15940 hardcode_shlibpath_var
=no
15943 hardcode_direct
=yes
15944 export_dynamic_flag_spec
='${wl}-E'
15946 # hardcode_minus_L: Not really in the search PATH,
15947 # but as the default location of the library.
15948 hardcode_minus_L
=yes
15954 irix5
* | irix6
* | nonstopux
*)
15955 if test "$GCC" = yes; then
15956 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'
15958 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'
15959 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15961 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15962 hardcode_libdir_separator
=:
15963 link_all_deplibs
=yes
15967 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15968 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15970 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15972 hardcode_libdir_flag_spec
='-R$libdir'
15973 hardcode_direct
=yes
15974 hardcode_shlibpath_var
=no
15978 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15979 hardcode_direct
=yes
15980 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15981 hardcode_libdir_separator
=:
15982 hardcode_shlibpath_var
=no
15986 hardcode_direct
=yes
15987 hardcode_shlibpath_var
=no
15988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15989 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15990 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15991 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15992 export_dynamic_flag_spec
='${wl}-E'
15995 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15996 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15997 hardcode_libdir_flag_spec
='-R$libdir'
16000 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16001 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16008 hardcode_libdir_flag_spec
='-L$libdir'
16009 hardcode_minus_L
=yes
16010 allow_undefined_flag
=unsupported
16011 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'
16012 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16016 if test "$GCC" = yes; then
16017 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16018 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'
16020 allow_undefined_flag
=' -expect_unresolved \*'
16021 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'
16023 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16024 hardcode_libdir_separator
=:
16027 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16028 if test "$GCC" = yes; then
16029 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16030 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'
16031 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16033 allow_undefined_flag
=' -expect_unresolved \*'
16034 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'
16035 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16036 $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'
16038 # Both c and cxx compiler support -rpath directly
16039 hardcode_libdir_flag_spec
='-rpath $libdir'
16041 hardcode_libdir_separator
=:
16045 no_undefined_flag
=' -z text'
16046 if test "$GCC" = yes; then
16048 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16049 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16053 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16054 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16055 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16057 hardcode_libdir_flag_spec
='-R$libdir'
16058 hardcode_shlibpath_var
=no
16060 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16062 # The compiler driver will combine linker options so we
16063 # cannot just pass the convience library names through
16064 # without $wl, iff we do not link with $LD.
16065 # Luckily, gcc supports the same syntax we need for Sun Studio.
16066 # Supported since Solaris 2.6 (maybe 2.5.1?)
16069 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
16071 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' ;;
16074 link_all_deplibs
=yes
16078 if test "x$host_vendor" = xsequent
; then
16079 # Use $CC to link under sequent, because it throws in some extra .o
16080 # files that make .init and .fini sections work.
16081 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16083 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16085 hardcode_libdir_flag_spec
='-L$libdir'
16086 hardcode_direct
=yes
16087 hardcode_minus_L
=yes
16088 hardcode_shlibpath_var
=no
16092 case $host_vendor in
16094 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095 hardcode_direct
=yes # is this really true???
16098 ## LD is ld it makes a PLAMLIB
16099 ## CC just makes a GrossModule.
16100 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16101 reload_cmds
='$CC -r -o $output$reload_objs'
16105 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16106 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16109 runpath_var
='LD_RUN_PATH'
16110 hardcode_shlibpath_var
=no
16114 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_shlibpath_var
=no
16116 export_dynamic_flag_spec
='-Bexport'
16120 if test -d /usr
/nec
; then
16121 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122 hardcode_shlibpath_var
=no
16123 runpath_var
=LD_RUN_PATH
16124 hardcode_runpath_var
=yes
16129 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
16130 no_undefined_flag
='${wl}-z,text'
16131 archive_cmds_need_lc
=no
16132 hardcode_shlibpath_var
=no
16133 runpath_var
='LD_RUN_PATH'
16135 if test "$GCC" = yes; then
16136 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16137 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16139 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16140 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16144 sysv5
* | sco3.2v5
* | sco5v6
*)
16145 # Note: We can NOT use -z defs as we might desire, because we do not
16146 # link with -lc, and that would cause any symbols used from libc to
16147 # always be unresolved, which means just about no library would
16148 # ever link correctly. If we're not using GNU ld we use -z text
16149 # though, which does catch some bad symbols but isn't as heavy-handed
16151 no_undefined_flag
='${wl}-z,text'
16152 allow_undefined_flag
='${wl}-z,nodefs'
16153 archive_cmds_need_lc
=no
16154 hardcode_shlibpath_var
=no
16155 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16156 hardcode_libdir_separator
=':'
16157 link_all_deplibs
=yes
16158 export_dynamic_flag_spec
='${wl}-Bexport'
16159 runpath_var
='LD_RUN_PATH'
16161 if test "$GCC" = yes; then
16162 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16163 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16172 hardcode_libdir_flag_spec
='-L$libdir'
16173 hardcode_shlibpath_var
=no
16182 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16183 echo "${ECHO_T}$ld_shlibs" >&6; }
16184 test "$ld_shlibs" = no
&& can_build_shared
=no
16187 # Do we need to explicitly link libc?
16189 case "x$archive_cmds_need_lc" in
16191 # Assume -lc should be added
16192 archive_cmds_need_lc
=yes
16194 if test "$enable_shared" = yes && test "$GCC" = yes; then
16195 case $archive_cmds in
16197 # FIXME: we may have to deal with multi-command sequences.
16200 # Test whether the compiler implicitly links with -lc since on some
16201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16202 # to ld, don't add -lc before -lgcc.
16203 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16204 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16206 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209 (eval $ac_compile) 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } 2>conftest.err
; then
16215 libobjs
=conftest.
$ac_objext
16217 wl
=$lt_prog_compiler_wl
16218 pic_flag
=$lt_prog_compiler_pic
16224 lt_save_allow_undefined_flag
=$allow_undefined_flag
16225 allow_undefined_flag
=
16226 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16227 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }
16232 archive_cmds_need_lc
=no
16234 archive_cmds_need_lc
=yes
16236 allow_undefined_flag
=$lt_save_allow_undefined_flag
16238 cat conftest.err
1>&5
16241 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16242 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16249 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16250 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16251 library_names_spec
=
16252 libname_spec
='lib$name'
16256 postuninstall_cmds
=
16260 shlibpath_overrides_runpath
=unknown
16262 dynamic_linker
="$host_os ld.so"
16263 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16264 if test "$GCC" = yes; then
16265 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16266 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16267 # if the path contains ";" then we assume it to be the separator
16268 # otherwise default to the standard path separator (i.e. ":") - it is
16269 # assumed that no part of a normal pathname contains ";" but that should
16270 # okay in the real world where ";" in dirpaths is itself problematic.
16271 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16273 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16276 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16278 need_lib_prefix
=unknown
16279 hardcode_into_libs
=no
16281 # when you set need_version to no, make sure it does not cause -set_version
16282 # flags to be left without arguments
16283 need_version
=unknown
16288 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16289 shlibpath_var
=LIBPATH
16291 # AIX 3 has no versioning support, so we append a major version to the name.
16292 soname_spec
='${libname}${release}${shared_ext}$major'
16299 hardcode_into_libs
=yes
16300 if test "$host_cpu" = ia64
; then
16301 # AIX 5 supports IA64
16302 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16303 shlibpath_var
=LD_LIBRARY_PATH
16305 # With GCC up to 2.95.x, collect2 would create an import file
16306 # for dependence libraries. The import file would start with
16307 # the line `#! .'. This would cause the generated library to
16308 # depend on `.', always an invalid library. This was fixed in
16309 # development snapshots of GCC prior to 3.0.
16311 aix4 | aix4.
[01] | aix4.
[01].
*)
16312 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16314 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16317 can_build_shared
=no
16321 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16322 # soname into executable. Probably we can add versioning support to
16323 # collect2, so additional links can be useful in future.
16324 if test "$aix_use_runtimelinking" = yes; then
16325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16326 # instead of lib<name>.a to let people know that these are not
16327 # typical AIX shared libraries.
16328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 # We preserve .a as extension for shared libraries through AIX4.2
16331 # and later when we are not doing run time linking.
16332 library_names_spec
='${libname}${release}.a $libname.a'
16333 soname_spec
='${libname}${release}${shared_ext}$major'
16335 shlibpath_var
=LIBPATH
16340 library_names_spec
='$libname.ixlibrary $libname.a'
16341 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16342 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'
16346 library_names_spec
='${libname}${shared_ext}'
16347 dynamic_linker
="$host_os ld.so"
16348 shlibpath_var
=LIBRARY_PATH
16354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355 soname_spec
='${libname}${release}${shared_ext}$major'
16356 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16357 shlibpath_var
=LD_LIBRARY_PATH
16358 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16359 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16360 # the default ld.so.conf also contains /usr/contrib/lib and
16361 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16362 # libtool to hard-code these into programs
16365 cygwin
* | mingw
* | pw32
*)
16366 version_type
=windows
16371 case $GCC,$host_os in
16372 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16373 library_names_spec
='$libname.dll.a'
16374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16375 postinstall_cmds
='base_file=`basename \${file}`~
16376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16377 dldir=$destdir/`dirname \$dlpath`~
16378 test -d \$dldir || mkdir -p \$dldir~
16379 $install_prog $dir/$dlname \$dldir/$dlname~
16380 chmod a+x \$dldir/$dlname'
16381 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16382 dlpath=$dir/\$dldll~
16384 shlibpath_overrides_runpath
=yes
16388 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16389 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16390 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16393 # MinGW DLLs use traditional 'lib' prefix
16394 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16395 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16396 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16397 # It is most probably a Windows format PATH printed by
16398 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16399 # path with ; separators, and with drive letters. We can handle the
16400 # drive letters (cygwin fileutils understands them), so leave them,
16401 # especially as we might pass files found there to a mingw objdump,
16402 # which wouldn't understand a cygwinified path. Ahh.
16403 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16405 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16409 # pw32 DLLs use 'pw' prefix rather than 'lib'
16410 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16416 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16419 dynamic_linker
='Win32 ld.exe'
16420 # FIXME: first we should search . and the directory the executable is in
16424 darwin
* | rhapsody
*)
16425 dynamic_linker
="$host_os dyld"
16426 version_type
=darwin
16429 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16430 soname_spec
='${libname}${release}${major}$shared_ext'
16431 shlibpath_overrides_runpath
=yes
16432 shlibpath_var
=DYLD_LIBRARY_PATH
16433 shrext_cmds
='.dylib'
16434 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16435 if test "$GCC" = yes; then
16436 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"`
16438 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
16440 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16447 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16448 soname_spec
='${libname}${release}${shared_ext}$major'
16449 shlibpath_var
=LD_LIBRARY_PATH
16460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16461 soname_spec
='${libname}${release}${shared_ext}$major'
16462 shlibpath_var
=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath
=no
16464 hardcode_into_libs
=yes
16465 dynamic_linker
='GNU ld.so'
16468 freebsd
* | dragonfly
*)
16469 # DragonFly does not have aout. When/if they implement a new
16470 # versioning mechanism, adjust this.
16471 if test -x /usr
/bin
/objformat
; then
16472 objformat
=`/usr/bin/objformat`
16475 freebsd
[123]*) objformat
=aout
;;
16476 *) objformat
=elf
;;
16479 version_type
=freebsd-
$objformat
16480 case $version_type in
16482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16487 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16491 shlibpath_var
=LD_LIBRARY_PATH
16494 shlibpath_overrides_runpath
=yes
16496 freebsd3.
[01]* | freebsdelf3.
[01]*)
16497 shlibpath_overrides_runpath
=yes
16498 hardcode_into_libs
=yes
16500 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16501 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16502 shlibpath_overrides_runpath
=no
16503 hardcode_into_libs
=yes
16505 freebsd
*) # from 4.6 on
16506 shlibpath_overrides_runpath
=yes
16507 hardcode_into_libs
=yes
16516 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16517 soname_spec
='${libname}${release}${shared_ext}$major'
16518 shlibpath_var
=LD_LIBRARY_PATH
16519 hardcode_into_libs
=yes
16522 hpux9
* | hpux10
* | hpux11
*)
16523 # Give a soname corresponding to the major version so that dld.sl refuses to
16524 # link against other versions.
16531 hardcode_into_libs
=yes
16532 dynamic_linker
="$host_os dld.so"
16533 shlibpath_var
=LD_LIBRARY_PATH
16534 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536 soname_spec
='${libname}${release}${shared_ext}$major'
16537 if test "X$HPUX_IA64_MODE" = X32
; then
16538 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16540 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16542 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16546 hardcode_into_libs
=yes
16547 dynamic_linker
="$host_os dld.sl"
16548 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16549 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551 soname_spec
='${libname}${release}${shared_ext}$major'
16552 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16553 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16557 dynamic_linker
="$host_os dld.sl"
16558 shlibpath_var
=SHLIB_PATH
16559 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561 soname_spec
='${libname}${release}${shared_ext}$major'
16564 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16565 postinstall_cmds
='chmod 555 $lib'
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 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16575 shlibpath_var
=LD_LIBRARY_PATH
16576 shlibpath_overrides_runpath
=no
16577 hardcode_into_libs
=yes
16580 irix5
* | irix6
* | nonstopux
*)
16582 nonstopux
*) version_type
=nonstopux
;;
16584 if test "$lt_cv_prog_gnu_ld" = yes; then
16592 soname_spec
='${libname}${release}${shared_ext}$major'
16593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16595 irix5
* | nonstopux
*)
16596 libsuff
= shlibsuff
=
16599 case $LD in # libtool.m4 will add one of these switches to LD
16600 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16601 libsuff
= shlibsuff
= libmagic
=32-bit;;
16602 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16603 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16604 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16605 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16606 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16610 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16611 shlibpath_overrides_runpath
=no
16612 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16613 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16614 hardcode_into_libs
=yes
16617 # No shared lib support for Linux oldld, aout, or coff.
16618 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16622 # This must be Linux ELF.
16627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628 soname_spec
='${libname}${release}${shared_ext}$major'
16629 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16630 shlibpath_var
=LD_LIBRARY_PATH
16631 shlibpath_overrides_runpath
=no
16632 # This implies no fast_install, which is unacceptable.
16633 # Some rework will be needed to allow for fast_install
16634 # before this can be enabled.
16635 hardcode_into_libs
=yes
16637 # Append ld.so.conf contents to the search path
16638 if test -f /etc
/ld.so.conf
; then
16639 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' ' '`
16640 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16643 # We used to test for /lib/ld.so.1 and disable shared libraries on
16644 # powerpc, because MkLinux only supported shared libraries with the
16645 # GNU dynamic linker. Since this was broken with cross compilers,
16646 # most powerpc-linux boxes support dynamic linking these days and
16647 # people can always --disable-shared, the test was removed, and we
16648 # assume the GNU/Linux dynamic linker is in use.
16649 dynamic_linker
='GNU/Linux ld.so'
16656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16657 soname_spec
='${libname}${release}${shared_ext}$major'
16658 shlibpath_var
=LD_LIBRARY_PATH
16659 shlibpath_overrides_runpath
=no
16660 hardcode_into_libs
=yes
16661 dynamic_linker
='GNU ld.so'
16668 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16670 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16671 dynamic_linker
='NetBSD (a.out) ld.so'
16673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674 soname_spec
='${libname}${release}${shared_ext}$major'
16675 dynamic_linker
='NetBSD ld.elf_so'
16677 shlibpath_var
=LD_LIBRARY_PATH
16678 shlibpath_overrides_runpath
=yes
16679 hardcode_into_libs
=yes
16684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685 shlibpath_var
=LD_LIBRARY_PATH
16686 shlibpath_overrides_runpath
=yes
16693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694 soname_spec
='${libname}${release}${shared_ext}$major'
16695 shlibpath_var
=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath
=yes
16701 sys_lib_dlsearch_path_spec
="/usr/lib"
16703 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16705 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16706 *) need_version
=no
;;
16708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16709 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16710 shlibpath_var
=LD_LIBRARY_PATH
16711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16713 openbsd2.
[89] | openbsd2.
[89].
*)
16714 shlibpath_overrides_runpath
=no
16717 shlibpath_overrides_runpath
=yes
16721 shlibpath_overrides_runpath
=yes
16726 libname_spec
='$name'
16729 library_names_spec
='$libname${shared_ext} $libname.a'
16730 dynamic_linker
='OS/2 ld.exe'
16731 shlibpath_var
=LIBPATH
16734 osf3
* | osf4
* | osf5
*)
16738 soname_spec
='${libname}${release}${shared_ext}$major'
16739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740 shlibpath_var
=LD_LIBRARY_PATH
16741 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16742 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16749 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 soname_spec
='${libname}${release}${shared_ext}$major'
16751 shlibpath_var
=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath
=yes
16753 hardcode_into_libs
=yes
16754 # ldd complains unless libraries are executable
16755 postinstall_cmds
='chmod +x $lib'
16760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16761 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16762 shlibpath_var
=LD_LIBRARY_PATH
16763 shlibpath_overrides_runpath
=yes
16764 if test "$with_gnu_ld" = yes; then
16772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773 soname_spec
='${libname}${release}${shared_ext}$major'
16774 shlibpath_var
=LD_LIBRARY_PATH
16775 case $host_vendor in
16777 shlibpath_overrides_runpath
=no
16779 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16780 runpath_var
=LD_RUN_PATH
16788 shlibpath_overrides_runpath
=no
16789 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16795 if test -d /usr
/nec
;then
16797 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16798 soname_spec
='$libname${shared_ext}.$major'
16799 shlibpath_var
=LD_LIBRARY_PATH
16803 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16804 version_type
=freebsd-elf
16807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16808 soname_spec
='${libname}${release}${shared_ext}$major'
16809 shlibpath_var
=LD_LIBRARY_PATH
16810 hardcode_into_libs
=yes
16811 if test "$with_gnu_ld" = yes; then
16812 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16813 shlibpath_overrides_runpath
=no
16815 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16816 shlibpath_overrides_runpath
=yes
16819 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16823 sys_lib_dlsearch_path_spec
='/usr/lib'
16828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829 soname_spec
='${libname}${release}${shared_ext}$major'
16830 shlibpath_var
=LD_LIBRARY_PATH
16837 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16838 echo "${ECHO_T}$dynamic_linker" >&6; }
16839 test "$dynamic_linker" = no
&& can_build_shared
=no
16841 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16842 if test "$GCC" = yes; then
16843 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16846 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16847 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16849 if test -n "$hardcode_libdir_flag_spec" || \
16850 test -n "$runpath_var" || \
16851 test "X$hardcode_automatic" = "Xyes" ; then
16853 # We can hardcode non-existant directories.
16854 if test "$hardcode_direct" != no
&&
16855 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16856 # have to relink, otherwise we might link with an installed library
16857 # when we should be linking with a yet-to-be-installed one
16858 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16859 test "$hardcode_minus_L" != no
; then
16860 # Linking always hardcodes the temporary library directory.
16861 hardcode_action
=relink
16863 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16864 hardcode_action
=immediate
16867 # We cannot hardcode anything, or else we can only hardcode existing
16869 hardcode_action
=unsupported
16871 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16872 echo "${ECHO_T}$hardcode_action" >&6; }
16874 if test "$hardcode_action" = relink
; then
16875 # Fast installation is not supported
16876 enable_fast_install
=no
16877 elif test "$shlibpath_overrides_runpath" = yes ||
16878 test "$enable_shared" = no
; then
16879 # Fast installation is not necessary
16880 enable_fast_install
=needless
16885 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16886 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16887 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16888 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16889 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16890 { echo "$as_me:$LINENO: result: yes" >&5
16891 echo "${ECHO_T}yes" >&6; }
16893 # FIXME - insert some real tests, host_os isn't really good enough
16896 if test -n "$STRIP" ; then
16897 striplib
="$STRIP -x"
16898 { echo "$as_me:$LINENO: result: yes" >&5
16899 echo "${ECHO_T}yes" >&6; }
16901 { echo "$as_me:$LINENO: result: no" >&5
16902 echo "${ECHO_T}no" >&6; }
16906 { echo "$as_me:$LINENO: result: no" >&5
16907 echo "${ECHO_T}no" >&6; }
16912 if test "x$enable_dlopen" != xyes
; then
16913 enable_dlopen
=unknown
16914 enable_dlopen_self
=unknown
16915 enable_dlopen_self_static
=unknown
16922 lt_cv_dlopen
="load_add_on"
16924 lt_cv_dlopen_self
=yes
16928 lt_cv_dlopen
="LoadLibrary"
16933 lt_cv_dlopen
="dlopen"
16938 # if libdl is installed we need to link against it
16939 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16940 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16941 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16942 echo $ECHO_N "(cached) $ECHO_C" >&6
16944 ac_check_lib_save_LIBS
=$LIBS
16946 cat >conftest.
$ac_ext <<_ACEOF
16949 cat confdefs.h
>>conftest.
$ac_ext
16950 cat >>conftest.
$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16953 /* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
16968 rm -f conftest.
$ac_objext conftest
$ac_exeext
16969 if { (ac_try
="$ac_link"
16970 case "(($ac_try" in
16971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_link") 2>conftest.er1
16977 grep -v '^ *+' conftest.er1 >conftest.err
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16983 { (case "(($ac_try" in
16984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16985 *) ac_try_echo
=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_try") 2>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; } &&
16992 { ac_try
='test -s conftest$ac_exeext'
16993 { (case "(($ac_try" in
16994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_try") 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_cv_lib_dl_dlopen=yes
17004 echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17007 ac_cv_lib_dl_dlopen=no
17010 rm -f core conftest.err conftest.$ac_objext \
17011 conftest$ac_exeext conftest.$ac_ext
17012 LIBS=$ac_check_lib_save_LIBS
17014 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17015 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17016 if test $ac_cv_lib_dl_dlopen = yes; then
17017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17020 lt_cv_dlopen="dyld"
17022 lt_cv_dlopen_self=yes
17029 { echo "$as_me:$LINENO: checking for shl_load" >&5
17030 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17031 if test "${ac_cv_func_shl_load+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 cat >conftest.$ac_ext <<_ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17040 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17042 #define shl_load innocuous_shl_load
17044 /* System header to define __stub macros and hopefully few prototypes,
17045 which can conflict with char shl_load (); below.
17046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17047 <limits.h> exists even on freestanding compilers. */
17050 # include <limits.h>
17052 # include <assert.h>
17057 /* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17064 /* The GNU C library defines this for functions which it implements
17065 to always fail with ENOSYS. Some functions are actually named
17066 something starting with __ and the normal name is an alias. */
17067 #if defined __stub_shl_load || defined __stub___shl_load
17074 return shl_load ();
17079 rm -f conftest.$ac_objext conftest$ac_exeext
17080 if { (ac_try="$ac_link"
17081 case "(($ac_try" in
17082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17083 *) ac_try_echo
=$ac_try;;
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_link") 2>conftest.er1
17088 grep -v '^ *+' conftest.er1
>conftest.err
17090 cat conftest.err
>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094 { (case "(($ac_try" in
17095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest$ac_exeext'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17106 *) ac_try_echo
=$ac_try;;
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_cv_func_shl_load
=yes
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.
$ac_ext >&5
17118 ac_cv_func_shl_load
=no
17121 rm -f core conftest.err conftest.
$ac_objext \
17122 conftest
$ac_exeext conftest.
$ac_ext
17124 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17125 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17126 if test $ac_cv_func_shl_load = yes; then
17127 lt_cv_dlopen
="shl_load"
17129 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17130 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17131 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 ac_check_lib_save_LIBS
=$LIBS
17136 cat >conftest.
$ac_ext <<_ACEOF
17139 cat confdefs.h
>>conftest.
$ac_ext
17140 cat >>conftest.
$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17153 return shl_load ();
17158 rm -f conftest.
$ac_objext conftest
$ac_exeext
17159 if { (ac_try
="$ac_link"
17160 case "(($ac_try" in
17161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17175 *) ac_try_echo
=$ac_try;;
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try
='test -s conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_lib_dld_shl_load=yes
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 ac_cv_lib_dld_shl_load=no
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17202 LIBS=$ac_check_lib_save_LIBS
17204 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17205 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17206 if test $ac_cv_lib_dld_shl_load = yes; then
17207 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17209 { echo "$as_me:$LINENO: checking for dlopen" >&5
17210 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17211 if test "${ac_cv_func_dlopen+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17214 cat >conftest.$ac_ext <<_ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h. */
17220 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17222 #define dlopen innocuous_dlopen
17224 /* System header to define __stub macros and hopefully few prototypes,
17225 which can conflict with char dlopen (); below.
17226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17227 <limits.h> exists even on freestanding compilers. */
17230 # include <limits.h>
17232 # include <assert.h>
17237 /* Override any GCC internal prototype to avoid an error.
17238 Use char because int might match the return type of a GCC
17239 builtin and then its argument prototype would still apply. */
17244 /* The GNU C library defines this for functions which it implements
17245 to always fail with ENOSYS. Some functions are actually named
17246 something starting with __ and the normal name is an alias. */
17247 #if defined __stub_dlopen || defined __stub___dlopen
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17263 *) ac_try_echo
=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_link") 2>conftest.er1
17268 grep -v '^ *+' conftest.er1
>conftest.err
17270 cat conftest.err
>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } &&
17273 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17274 { (case "(($ac_try" in
17275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_try") 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest$ac_exeext'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17286 *) ac_try_echo
=$ac_try;;
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_cv_func_dlopen
=yes
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.
$ac_ext >&5
17298 ac_cv_func_dlopen
=no
17301 rm -f core conftest.err conftest.
$ac_objext \
17302 conftest
$ac_exeext conftest.
$ac_ext
17304 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17305 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17306 if test $ac_cv_func_dlopen = yes; then
17307 lt_cv_dlopen
="dlopen"
17309 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 ac_check_lib_save_LIBS
=$LIBS
17316 cat >conftest.
$ac_ext <<_ACEOF
17319 cat confdefs.h
>>conftest.
$ac_ext
17320 cat >>conftest.
$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17323 /* Override any GCC internal prototype to avoid an error.
17324 Use char because int might match the return type of a GCC
17325 builtin and then its argument prototype would still apply. */
17338 rm -f conftest.
$ac_objext conftest
$ac_exeext
17339 if { (ac_try
="$ac_link"
17340 case "(($ac_try" in
17341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_link") 2>conftest.er1
17347 grep -v '^ *+' conftest.er1 >conftest.err
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17353 { (case "(($ac_try" in
17354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17355 *) ac_try_echo
=$ac_try;;
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_try") 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try
='test -s conftest$ac_exeext'
17363 { (case "(($ac_try" in
17364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_try") 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 ac_cv_lib_dl_dlopen=yes
17374 echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17377 ac_cv_lib_dl_dlopen=no
17380 rm -f core conftest.err conftest.$ac_objext \
17381 conftest$ac_exeext conftest.$ac_ext
17382 LIBS=$ac_check_lib_save_LIBS
17384 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17385 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17386 if test $ac_cv_lib_dl_dlopen = yes; then
17387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17389 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17390 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17391 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 ac_check_lib_save_LIBS=$LIBS
17395 LIBS="-lsvld $LIBS"
17396 cat >conftest.$ac_ext <<_ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17403 /* Override any GCC internal prototype to avoid an error.
17404 Use char because int might match the return type of a GCC
17405 builtin and then its argument prototype would still apply. */
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17422 *) ac_try_echo
=$ac_try;;
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_link") 2>conftest.er1
17427 grep -v '^ *+' conftest.er1
>conftest.err
17429 cat conftest.err
>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433 { (case "(($ac_try" in
17434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest$ac_exeext'
17443 { (case "(($ac_try" in
17444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17445 *) ac_try_echo
=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_try") 2>&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_cv_lib_svld_dlopen
=yes
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.
$ac_ext >&5
17457 ac_cv_lib_svld_dlopen
=no
17460 rm -f core conftest.err conftest.
$ac_objext \
17461 conftest
$ac_exeext conftest.
$ac_ext
17462 LIBS
=$ac_check_lib_save_LIBS
17464 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17465 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17466 if test $ac_cv_lib_svld_dlopen = yes; then
17467 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17469 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17470 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17471 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 ac_check_lib_save_LIBS
=$LIBS
17476 cat >conftest.
$ac_ext <<_ACEOF
17479 cat confdefs.h
>>conftest.
$ac_ext
17480 cat >>conftest.
$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17483 /* Override any GCC internal prototype to avoid an error.
17484 Use char because int might match the return type of a GCC
17485 builtin and then its argument prototype would still apply. */
17493 return dld_link ();
17498 rm -f conftest.
$ac_objext conftest
$ac_exeext
17499 if { (ac_try
="$ac_link"
17500 case "(($ac_try" in
17501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_link") 2>conftest.er1
17507 grep -v '^ *+' conftest.er1 >conftest.err
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17513 { (case "(($ac_try" in
17514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17515 *) ac_try_echo
=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_try") 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try
='test -s conftest$ac_exeext'
17523 { (case "(($ac_try" in
17524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_cv_lib_dld_dld_link=yes
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_cv_lib_dld_dld_link=no
17540 rm -f core conftest.err conftest.$ac_objext \
17541 conftest$ac_exeext conftest.$ac_ext
17542 LIBS=$ac_check_lib_save_LIBS
17544 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17545 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17546 if test $ac_cv_lib_dld_dld_link = yes; then
17547 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17568 if test "x$lt_cv_dlopen" != xno; then
17574 case $lt_cv_dlopen in
17576 save_CPPFLAGS="$CPPFLAGS"
17577 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17579 save_LDFLAGS="$LDFLAGS"
17580 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17583 LIBS="$lt_cv_dlopen_libs $LIBS"
17585 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17586 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17587 if test "${lt_cv_dlopen_self+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 if test "$cross_compiling" = yes; then :
17591 lt_cv_dlopen_self=cross
17593 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17594 lt_status=$lt_dlunknown
17595 cat > conftest.$ac_ext <<EOF
17596 #line 17591 "configure"
17597 #include "confdefs.h"
17606 # define LT_DLGLOBAL RTLD_GLOBAL
17609 # define LT_DLGLOBAL DL_GLOBAL
17611 # define LT_DLGLOBAL 0
17615 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17616 find out it does not work in some platform. */
17617 #ifndef LT_DLLAZY_OR_NOW
17619 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17622 # define LT_DLLAZY_OR_NOW DL_LAZY
17625 # define LT_DLLAZY_OR_NOW RTLD_NOW
17628 # define LT_DLLAZY_OR_NOW DL_NOW
17630 # define LT_DLLAZY_OR_NOW 0
17638 extern "C" void exit (int);
17641 void fnord() { int i=42;}
17644 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17645 int status = $lt_dlunknown;
17649 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17650 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17651 /* dlclose (self); */
17659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17660 (eval $ac_link) 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17664 (./conftest; exit; ) >&5 2>/dev/null
17666 case x$lt_status in
17667 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17668 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17669 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17672 # compilation failed
17673 lt_cv_dlopen_self=no
17680 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17681 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17683 if test "x$lt_cv_dlopen_self" = xyes; then
17684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17685 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17686 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17687 if test "${lt_cv_dlopen_self_static+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 if test "$cross_compiling" = yes; then :
17691 lt_cv_dlopen_self_static=cross
17693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17694 lt_status=$lt_dlunknown
17695 cat > conftest.$ac_ext <<EOF
17696 #line 17691 "configure"
17697 #include "confdefs.h"
17706 # define LT_DLGLOBAL RTLD_GLOBAL
17709 # define LT_DLGLOBAL DL_GLOBAL
17711 # define LT_DLGLOBAL 0
17715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17716 find out it does not work in some platform. */
17717 #ifndef LT_DLLAZY_OR_NOW
17719 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17722 # define LT_DLLAZY_OR_NOW DL_LAZY
17725 # define LT_DLLAZY_OR_NOW RTLD_NOW
17728 # define LT_DLLAZY_OR_NOW DL_NOW
17730 # define LT_DLLAZY_OR_NOW 0
17738 extern "C" void exit (int);
17741 void fnord() { int i=42;}
17744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17745 int status = $lt_dlunknown;
17749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17750 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17751 /* dlclose (self); */
17759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760 (eval $ac_link) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17764 (./conftest; exit; ) >&5 2>/dev/null
17766 case x$lt_status in
17767 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17768 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17769 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17772 # compilation failed
17773 lt_cv_dlopen_self_static=no
17780 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17781 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17784 CPPFLAGS="$save_CPPFLAGS"
17785 LDFLAGS="$save_LDFLAGS"
17790 case $lt_cv_dlopen_self in
17791 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17792 *) enable_dlopen_self=unknown ;;
17795 case $lt_cv_dlopen_self_static in
17796 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17797 *) enable_dlopen_self_static=unknown ;;
17802 # Report which library types will actually be built
17803 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17804 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17805 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17806 echo "${ECHO_T}$can_build_shared" >&6; }
17808 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17809 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17810 test "$can_build_shared" = "no" && enable_shared=no
17812 # On AIX, shared libraries and static libraries use the same namespace, and
17813 # are all built from PIC.
17816 test "$enable_shared" = yes && enable_static=no
17817 if test -n "$RANLIB"; then
17818 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17819 postinstall_cmds='$RANLIB $lib'
17824 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17825 test "$enable_shared" = yes && enable_static=no
17829 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17830 echo "${ECHO_T}$enable_shared" >&6; }
17832 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17833 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17834 # Make sure either enable_shared or enable_static is yes.
17835 test "$enable_shared" = yes || enable_static=yes
17836 { echo "$as_me:$LINENO: result: $enable_static" >&5
17837 echo "${ECHO_T}$enable_static" >&6; }
17839 # The else clause should only fire when bootstrapping the
17840 # libtool distribution, otherwise you forgot to ship ltmain.sh
17841 # with your package, and you will get complaints that there are
17842 # no rules to generate ltmain.sh.
17843 if test -f "$ltmain"; then
17844 # See if we are running on zsh, and set the options which allow our commands through
17845 # without removal of \ escapes.
17846 if test -n "${ZSH_VERSION+set}" ; then
17847 setopt NO_GLOB_SUBST
17849 # Now quote all the things that may contain metacharacters while being
17850 # careful not to overquote the AC_SUBSTed values. We take copies of the
17851 # variables and quote the copies for generation of the libtool script.
17852 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17854 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17855 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17856 deplibs_check_method reload_flag reload_cmds need_locks \
17857 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17858 lt_cv_sys_global_symbol_to_c_name_address \
17859 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17860 old_postinstall_cmds old_postuninstall_cmds \
17864 lt_prog_compiler_wl \
17865 lt_prog_compiler_pic \
17866 lt_prog_compiler_static \
17867 lt_prog_compiler_no_builtin_flag \
17868 export_dynamic_flag_spec \
17869 thread_safe_flag_spec \
17870 whole_archive_flag_spec \
17871 enable_shared_with_static_runtimes \
17873 old_archive_from_new_cmds \
17878 compiler_lib_search_path \
17880 archive_expsym_cmds \
17882 postuninstall_cmds \
17883 old_archive_from_expsyms_cmds \
17884 allow_undefined_flag \
17885 no_undefined_flag \
17886 export_symbols_cmds \
17887 hardcode_libdir_flag_spec \
17888 hardcode_libdir_flag_spec_ld \
17889 hardcode_libdir_separator \
17890 hardcode_automatic \
17892 module_expsym_cmds \
17893 lt_cv_prog_compiler_c_o \
17895 include_expsyms; do
17898 old_archive_cmds | \
17899 old_archive_from_new_cmds | \
17901 archive_expsym_cmds | \
17903 module_expsym_cmds | \
17904 old_archive_from_expsyms_cmds | \
17905 export_symbols_cmds | \
17906 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17907 postinstall_cmds | postuninstall_cmds | \
17908 old_postinstall_cmds | old_postuninstall_cmds | \
17909 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17910 # Double-quote double-evaled strings.
17911 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
17914 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
17920 *'\$0 --fallback-echo"')
17921 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17925 cfgfile="${ofile}T"
17926 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17928 { echo "$as_me:$LINENO: creating $ofile" >&5
17929 echo "$as_me: creating $ofile" >&6;}
17931 cat <<__EOF__ >> "$cfgfile"
17934 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
17935 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17936 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17938 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17939 # Free Software Foundation, Inc.
17941 # This file is part of GNU Libtool:
17942 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17944 # This program is free software; you can redistribute it and/or modify
17945 # it under the terms of the GNU General Public License as published by
17946 # the Free Software Foundation; either version 2 of the License, or
17947 # (at your option) any later version.
17949 # This program is distributed in the hope that it will be useful, but
17950 # WITHOUT ANY WARRANTY; without even the implied warranty of
17951 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17952 # General Public License for more details.
17954 # You should have received a copy of the GNU General Public License
17955 # along with this program; if not, write to the Free Software
17956 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17958 # As a special exception to the GNU General Public License, if you
17959 # distribute this file as part of a program that contains a
17960 # configuration script generated by Autoconf, you may include it under
17961 # the same distribution terms that you use for the rest of that program.
17963 # A sed program that does not truncate output.
17966 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17967 Xsed="$SED -e 1s/^X//"
17969 # The HP-UX ksh and POSIX shell print the target directory to stdout
17970 # if CDPATH is set.
17971 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17973 # The names of the tagged configurations supported by this script.
17976 # ### BEGIN LIBTOOL CONFIG
17978 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
17980 # Shell to use when invoking shell scripts.
17983 # Whether or not to build shared libraries.
17984 build_libtool_libs=$enable_shared
17986 # Whether or not to build static libraries.
17987 build_old_libs=$enable_static
17989 # Whether or not to add -lc for building shared libraries.
17990 build_libtool_need_lc=$archive_cmds_need_lc
17992 # Whether or not to disallow shared libs when runtime libs are static
17993 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17995 # Whether or not to optimize for fast installation.
17996 fast_install=$enable_fast_install
17999 host_alias=$host_alias
18003 # The build system.
18004 build_alias=$build_alias
18008 # An echo program that does not interpret backslashes.
18013 AR_FLAGS=$lt_AR_FLAGS
18018 # LTCC compiler flags.
18019 LTCFLAGS=$lt_LTCFLAGS
18021 # A language-specific compiler.
18024 # Is the compiler the GNU C compiler?
18030 # The linker used to build libraries.
18033 # Whether we need hard or soft links.
18036 # A BSD-compatible nm program.
18039 # A symbol stripping program
18042 # Used to examine libraries when file_magic_cmd begins "file"
18043 MAGIC_CMD=$MAGIC_CMD
18045 # Used on cygwin: DLL creation program.
18048 # Used on cygwin: object dumper.
18051 # Used on cygwin: assembler.
18054 # The name of the directory that contains temporary libtool files.
18057 # How to create reloadable object files.
18058 reload_flag=$lt_reload_flag
18059 reload_cmds=$lt_reload_cmds
18061 # How to pass a linker flag through the compiler.
18062 wl=$lt_lt_prog_compiler_wl
18064 # Object file suffix (normally "o").
18065 objext="$ac_objext"
18067 # Old archive suffix (normally "a").
18070 # Shared library suffix (normally ".so").
18071 shrext_cmds='$shrext_cmds'
18073 # Executable file suffix (normally "").
18076 # Additional compiler flags for building library objects.
18077 pic_flag=$lt_lt_prog_compiler_pic
18080 # What is the maximum length of a command?
18081 max_cmd_len=$lt_cv_sys_max_cmd_len
18083 # Does compiler simultaneously support -c and -o options?
18084 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18086 # Must we lock files when doing compilation?
18087 need_locks=$lt_need_locks
18089 # Do we need the lib prefix for modules?
18090 need_lib_prefix=$need_lib_prefix
18092 # Do we need a version for libraries?
18093 need_version=$need_version
18095 # Whether dlopen is supported.
18096 dlopen_support=$enable_dlopen
18098 # Whether dlopen of programs is supported.
18099 dlopen_self=$enable_dlopen_self
18101 # Whether dlopen of statically linked programs is supported.
18102 dlopen_self_static=$enable_dlopen_self_static
18104 # Compiler flag to prevent dynamic linking.
18105 link_static_flag=$lt_lt_prog_compiler_static
18107 # Compiler flag to turn off builtin functions.
18108 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18110 # Compiler flag to allow reflexive dlopens.
18111 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18113 # Compiler flag to generate shared objects directly from archives.
18114 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18116 # Compiler flag to generate thread-safe objects.
18117 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18119 # Library versioning type.
18120 version_type=$version_type
18122 # Format of library name prefix.
18123 libname_spec=$lt_libname_spec
18125 # List of archive names. First name is the real one, the rest are links.
18126 # The last name is the one that the linker finds with -lNAME.
18127 library_names_spec=$lt_library_names_spec
18129 # The coded name of the library, if different from the real name.
18130 soname_spec=$lt_soname_spec
18132 # Commands used to build and install an old-style archive.
18134 old_archive_cmds=$lt_old_archive_cmds
18135 old_postinstall_cmds=$lt_old_postinstall_cmds
18136 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18138 # Create an old-style archive from a shared archive.
18139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18141 # Create a temporary old-style archive to link instead of a shared archive.
18142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18144 # Commands used to build and install a shared archive.
18145 archive_cmds=$lt_archive_cmds
18146 archive_expsym_cmds=$lt_archive_expsym_cmds
18147 postinstall_cmds=$lt_postinstall_cmds
18148 postuninstall_cmds=$lt_postuninstall_cmds
18150 # Commands used to build a loadable module (assumed same as above if empty)
18151 module_cmds=$lt_module_cmds
18152 module_expsym_cmds=$lt_module_expsym_cmds
18154 # Commands to strip libraries.
18155 old_striplib=$lt_old_striplib
18156 striplib=$lt_striplib
18158 # Dependencies to place before the objects being linked to create a
18160 predep_objects=$lt_predep_objects
18162 # Dependencies to place after the objects being linked to create a
18164 postdep_objects=$lt_postdep_objects
18166 # Dependencies to place before the objects being linked to create a
18168 predeps=$lt_predeps
18170 # Dependencies to place after the objects being linked to create a
18172 postdeps=$lt_postdeps
18174 # The library search path used internally by the compiler when linking
18175 # a shared library.
18176 compiler_lib_search_path=$lt_compiler_lib_search_path
18178 # Method to check whether dependent libraries are shared objects.
18179 deplibs_check_method=$lt_deplibs_check_method
18181 # Command to use when deplibs_check_method == file_magic.
18182 file_magic_cmd=$lt_file_magic_cmd
18184 # Flag that allows shared libraries with undefined symbols to be built.
18185 allow_undefined_flag=$lt_allow_undefined_flag
18187 # Flag that forces no undefined symbols.
18188 no_undefined_flag=$lt_no_undefined_flag
18190 # Commands used to finish a libtool library installation in a directory.
18191 finish_cmds=$lt_finish_cmds
18193 # Same as above, but a single script fragment to be evaled but not shown.
18194 finish_eval=$lt_finish_eval
18196 # Take the output of nm and produce a listing of raw symbols and C names.
18197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18199 # Transform the output of nm in a proper C declaration
18200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18202 # Transform the output of nm in a C name address pair
18203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18205 # This is the shared library runtime path variable.
18206 runpath_var=$runpath_var
18208 # This is the shared library path variable.
18209 shlibpath_var=$shlibpath_var
18211 # Is shlibpath searched before the hard-coded library search path?
18212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18214 # How to hardcode a shared library path into an executable.
18215 hardcode_action=$hardcode_action
18217 # Whether we should hardcode library paths into libraries.
18218 hardcode_into_libs=$hardcode_into_libs
18220 # Flag to hardcode \$libdir into a binary during linking.
18221 # This must work even if \$libdir does not exist.
18222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18224 # If ld is used when linking, flag to hardcode \$libdir into
18225 # a binary during linking. This must work even if \$libdir does
18227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18229 # Whether we need a single -rpath flag with a separated argument.
18230 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18232 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18233 # resulting binary.
18234 hardcode_direct=$hardcode_direct
18236 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18237 # resulting binary.
18238 hardcode_minus_L=$hardcode_minus_L
18240 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18241 # the resulting binary.
18242 hardcode_shlibpath_var=$hardcode_shlibpath_var
18244 # Set to yes if building a shared library automatically hardcodes DIR into the library
18245 # and all subsequent libraries and executables linked against it.
18246 hardcode_automatic=$hardcode_automatic
18248 # Variables whose values should be saved in libtool wrapper scripts and
18249 # restored at relink time.
18250 variables_saved_for_relink="$variables_saved_for_relink"
18252 # Whether libtool must link a program against all its dependency libraries.
18253 link_all_deplibs=$link_all_deplibs
18255 # Compile-time system search path for libraries
18256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18258 # Run-time system search path for libraries
18259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18261 # Fix the shell variable \$srcfile for the compiler.
18262 fix_srcfile_path="$fix_srcfile_path"
18264 # Set to yes if exported symbols are required.
18265 always_export_symbols=$always_export_symbols
18267 # The commands to list exported symbols.
18268 export_symbols_cmds=$lt_export_symbols_cmds
18270 # The commands to extract the exported symbol list from a shared archive.
18271 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18273 # Symbols that should not be listed in the preloaded symbols.
18274 exclude_expsyms=$lt_exclude_expsyms
18276 # Symbols that must always be exported.
18277 include_expsyms=$lt_include_expsyms
18279 # ### END LIBTOOL CONFIG
18286 cat <<\EOF >> "$cfgfile"
18288 # AIX sometimes has problems with the GCC collect2 program. For some
18289 # reason, if we set the COLLECT_NAMES environment variable, the problems
18290 # vanish in a puff of smoke.
18291 if test "X${COLLECT_NAMES+set}" != Xset; then
18293 export COLLECT_NAMES
18299 # We use sed instead of cat because bash on DJGPP gets confused if
18300 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18301 # text mode, it properly converts lines to CR/LF. This bash problem
18302 # is reportedly fixed, but why not run on old versions too?
18303 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18305 mv -f "$cfgfile" "$ofile" || \
18306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18310 # If there is no Makefile yet, we rely on a make rule to execute
18311 # `config.status
--recheck' to rerun these tests and create the
18312 # libtool script then.
18313 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
18314 if test -f "$ltmain_in"; then
18315 test -f Makefile && make "$ltmain"
18321 ac_cpp='$CPP $CPPFLAGS'
18322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18323 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18329 # Check whether --with-tags was given.
18330 if test "${with_tags+set}" = set; then
18331 withval=$with_tags; tagnames="$withval"
18335 if test -f "$ltmain" && test -n "$tagnames"; then
18336 if test ! -f "${ofile}"; then
18337 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
18338 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
18341 if test -z "$LTCC"; then
18342 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
18343 if test -z "$LTCC"; then
18344 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18345 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
18347 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
18348 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
18351 if test -z "$LTCFLAGS"; then
18352 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
18355 # Extract list of available tagged configurations in $ofile.
18356 # Note that this assumes the entire list is on one line.
18357 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18360 for tagname in $tagnames; do
18362 # Check whether tagname contains only valid characters
18363 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18365 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18366 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18367 { (exit 1); exit 1; }; }
18371 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18373 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18374 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18375 { (exit 1); exit 1; }; }
18378 # Update the list of available tags.
18379 if test -n "$tagname"; then
18380 echo appending configuration tag \"$tagname\" to $ofile
18384 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18385 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
18386 (test "X$CXX" != "Xg++"))) ; then
18388 ac_cpp='$CXXCPP $CPPFLAGS'
18389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18396 archive_cmds_need_lc_CXX=no
18397 allow_undefined_flag_CXX=
18398 always_export_symbols_CXX=no
18399 archive_expsym_cmds_CXX=
18400 export_dynamic_flag_spec_CXX=
18401 hardcode_direct_CXX=no
18402 hardcode_libdir_flag_spec_CXX=
18403 hardcode_libdir_flag_spec_ld_CXX=
18404 hardcode_libdir_separator_CXX=
18405 hardcode_minus_L_CXX=no
18406 hardcode_shlibpath_var_CXX=unsupported
18407 hardcode_automatic_CXX=no
18409 module_expsym_cmds_CXX=
18410 link_all_deplibs_CXX=unknown
18411 old_archive_cmds_CXX=$old_archive_cmds
18412 no_undefined_flag_CXX=
18413 whole_archive_flag_spec_CXX=
18414 enable_shared_with_static_runtimes_CXX=no
18416 # Dependencies to place before and after the object being linked:
18417 predep_objects_CXX=
18418 postdep_objects_CXX=
18421 compiler_lib_search_path_CXX=
18423 # Source file extension for C++ test sources.
18426 # Object file extension for compiled C++ test sources.
18430 # Code to be used in simple compile tests
18431 lt_simple_compile_test_code="int some_variable = 0;\n"
18433 # Code to be used in simple link tests
18434 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18436 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18438 # If no C compiler was specified, use CC.
18441 # If no C compiler flags were specified, use CFLAGS.
18442 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18444 # Allow CC to be a program name with arguments.
18448 # save warnings/boilerplate of simple test code
18449 ac_outfile=conftest.$ac_objext
18450 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18451 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18452 _lt_compiler_boilerplate=`cat conftest.err
`
18455 ac_outfile=conftest.$ac_objext
18456 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18457 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18458 _lt_linker_boilerplate=`cat conftest.err
`
18462 # Allow CC to be a program name with arguments.
18467 lt_save_with_gnu_ld=$with_gnu_ld
18468 lt_save_path_LD=$lt_cv_path_LD
18469 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18470 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18472 $as_unset lt_cv_prog_gnu_ld
18474 if test -n "${lt_cv_path_LDCXX+set}"; then
18475 lt_cv_path_LD=$lt_cv_path_LDCXX
18477 $as_unset lt_cv_path_LD
18479 test -z "${LDCXX+set}" || LD=$LDCXX
18483 for cc_temp in $compiler""; do
18485 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18486 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18491 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18494 # We don't want -fno-exception wen compiling C++ code, so set the
18495 # no_builtin_flag separately
18496 if test "$GXX" = yes; then
18497 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18499 lt_prog_compiler_no_builtin_flag_CXX=
18502 if test "$GXX" = yes; then
18503 # Set up default GNU C++ configuration
18506 # Check whether --with-gnu-ld was given.
18507 if test "${with_gnu_ld+set}" = set; then
18508 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18514 if test "$GCC" = yes; then
18515 # Check if gcc -print-prog-name=ld gives a path.
18516 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18517 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18520 # gcc leaves a trailing carriage return which upsets mingw
18521 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
18523 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
18526 # Accept absolute paths.
18528 re_direlt='/[^/][^/]*/\.\./'
18529 # Canonicalize the pathname of ld
18530 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
18531 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18532 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
18534 test -z "$LD" && LD="$ac_prog"
18537 # If it fails, then pretend we aren't using GCC.
18541 # If it is relative, then search for the first ld in PATH.
18542 with_gnu_ld=unknown
18545 elif test "$with_gnu_ld" = yes; then
18546 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18547 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18549 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18550 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18552 if test "${lt_cv_path_LD+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 if test -z "$LD"; then
18556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18557 for ac_dir in $PATH; do
18559 test -z "$ac_dir" && ac_dir=.
18560 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18561 lt_cv_path_LD="$ac_dir/$ac_prog"
18562 # Check to see if the program is GNU ld. I'd rather use --version,
18563 # but apparently some variants of GNU ld only accept -v.
18564 # Break only if it was the GNU/non-GNU ld that we prefer.
18565 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
18566 *GNU* | *'with BFD'*)
18567 test "$with_gnu_ld" != no && break
18570 test "$with_gnu_ld" != yes && break
18577 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18581 LD="$lt_cv_path_LD"
18582 if test -n "$LD"; then
18583 { echo "$as_me:$LINENO: result: $LD" >&5
18584 echo "${ECHO_T}$LD" >&6; }
18586 { echo "$as_me:$LINENO: result: no" >&5
18587 echo "${ECHO_T}no" >&6; }
18589 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18590 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18591 { (exit 1); exit 1; }; }
18592 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18593 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18594 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18598 case `$LD -v 2>&1 </dev
/null
` in
18599 *GNU* | *'with BFD'*)
18600 lt_cv_prog_gnu_ld=yes
18603 lt_cv_prog_gnu_ld=no
18607 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18608 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18609 with_gnu_ld=$lt_cv_prog_gnu_ld
18613 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18614 # archiving commands below assume that GNU ld is being used.
18615 if test "$with_gnu_ld" = yes; then
18616 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18617 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'
18619 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18622 # If archive_cmds runs LD, not CC, wlarc should be empty
18623 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18624 # investigate it a little bit more. (MM)
18627 # ancient GNU ld didn't support --whole-archive et. al.
18628 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18629 grep 'no-whole-archive' > /dev/null; then
18630 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18632 whole_archive_flag_spec_CXX=
18638 # A generic and very simple default shared library creation
18639 # command for GNU C++ for the case where it uses the native
18640 # linker, instead of GNU ld. If possible, this setting should
18641 # overridden to take advantage of the native linker features on
18642 # the platform it is being used on.
18643 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18646 # Commands to make compiler produce verbose output that lists
18647 # what "hidden" libraries, object files and flags are used when
18648 # linking a shared library.
18649 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18657 # PORTME: fill in a description of your system's C++ link characteristics
18658 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18659 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18663 # FIXME: insert proper C++ library support
18667 if test "$host_cpu" = ia64; then
18668 # On IA64, the linker does run time linking by default, so we don't
18669 # have to do anything special.
18670 aix_use_runtimelinking=no
18671 exp_sym_flag='-Bexport'
18674 aix_use_runtimelinking=no
18676 # Test if we are trying to use run time linking or normal
18677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18678 # need to do runtime linking.
18679 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18680 for ld_flag in $LDFLAGS; do
18683 aix_use_runtimelinking=yes
18691 exp_sym_flag='-bexport'
18692 no_entry_flag='-bnoentry'
18695 # When large executables or shared objects are built, AIX ld can
18696 # have problems creating the table of contents. If linking a library
18697 # or program results in "error TOC overflow" add -mminimal-toc to
18698 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18699 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18701 archive_cmds_CXX=''
18702 hardcode_direct_CXX=yes
18703 hardcode_libdir_separator_CXX=':'
18704 link_all_deplibs_CXX=yes
18706 if test "$GXX" = yes; then
18707 case $host_os in aix4.[012]|aix4.[012].*)
18708 # We only want to do this on AIX 4.2 and lower, the check
18709 # below for broken collect2 doesn't work under 4.3+
18710 collect2name=`${CC} -print-prog-name=collect2
`
18711 if test -f "$collect2name" && \
18712 strings "$collect2name" | grep resolve_lib_name >/dev/null
18714 # We have reworked collect2
18715 hardcode_direct_CXX=yes
18717 # We have old collect2
18718 hardcode_direct_CXX=unsupported
18719 # It fails to find uninstalled libraries when the uninstalled
18720 # path is not listed in the libpath. Setting hardcode_minus_L
18721 # to unsupported forces relinking
18722 hardcode_minus_L_CXX=yes
18723 hardcode_libdir_flag_spec_CXX='-L$libdir'
18724 hardcode_libdir_separator_CXX=
18728 shared_flag='-shared'
18729 if test "$aix_use_runtimelinking" = yes; then
18730 shared_flag="$shared_flag "'${wl}-G'
18734 if test "$host_cpu" = ia64; then
18735 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18736 # chokes on -Wl,-G. The following line is correct:
18739 if test "$aix_use_runtimelinking" = yes; then
18740 shared_flag='${wl}-G'
18742 shared_flag='${wl}-bM:SRE'
18747 # It seems that -bexpall does not export symbols beginning with
18748 # underscore (_), so it is better to generate a list of symbols to export.
18749 always_export_symbols_CXX=yes
18750 if test "$aix_use_runtimelinking" = yes; then
18751 # Warning - without using the other runtime loading flags (-brtl),
18752 # -berok will link without error, but may produce a broken library.
18753 allow_undefined_flag_CXX='-berok'
18754 # Determine the default libpath from the value encoded in an empty executable.
18755 cat >conftest.$ac_ext <<_ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18770 rm -f conftest.$ac_objext conftest$ac_exeext
18771 if { (ac_try="$ac_link"
18772 case "(($ac_try" in
18773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18774 *) ac_try_echo
=$ac_try;;
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777 (eval "$ac_link") 2>conftest.er1
18779 grep -v '^ *+' conftest.er1
>conftest.err
18781 cat conftest.err
>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } &&
18784 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18785 { (case "(($ac_try" in
18786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest$ac_exeext'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18797 *) ac_try_echo
=$ac_try;;
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18805 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18807 # Check for a 64-bit object if we didn't find anything.
18808 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; }
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.
$ac_ext >&5
18817 rm -f core conftest.err conftest.
$ac_objext \
18818 conftest
$ac_exeext conftest.
$ac_ext
18819 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18821 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18823 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"
18825 if test "$host_cpu" = ia64
; then
18826 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18827 allow_undefined_flag_CXX
="-z nodefs"
18828 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"
18830 # Determine the default libpath from the value encoded in an empty executable.
18831 cat >conftest.
$ac_ext <<_ACEOF
18834 cat confdefs.h
>>conftest.
$ac_ext
18835 cat >>conftest.
$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18846 rm -f conftest.
$ac_objext conftest
$ac_exeext
18847 if { (ac_try
="$ac_link"
18848 case "(($ac_try" in
18849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_link") 2>conftest.er1
18855 grep -v '^ *+' conftest.er1 >conftest.err
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
18860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18861 { (case "(($ac_try" in
18862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18863 *) ac_try_echo
=$ac_try;;
18865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_try") 2>&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; } &&
18870 { ac_try
='test -s conftest$ac_exeext'
18871 { (case "(($ac_try" in
18872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_try") 2>&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; }; then
18881 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18883 # Check for a 64-bit object if we didn't find anything.
18884 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; }
18887 echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18893 rm -f core conftest.err conftest.$ac_objext \
18894 conftest$ac_exeext conftest.$ac_ext
18895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18897 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18898 # Warning - without using the other run time loading flags,
18899 # -berok will link without error, but may produce a broken library.
18900 no_undefined_flag_CXX=' ${wl}-bernotok'
18901 allow_undefined_flag_CXX=' ${wl}-berok'
18902 # Exported symbols can be pulled into shared objects from archives
18903 whole_archive_flag_spec_CXX='$convenience'
18904 archive_cmds_need_lc_CXX=yes
18905 # This is similar to how AIX traditionally builds its shared libraries.
18906 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'
18912 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18913 allow_undefined_flag_CXX=unsupported
18914 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18915 # support --undefined. This deserves some investigation. FIXME
18916 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18923 case $cc_basename in
18925 # FIXME: insert proper C++ library support
18931 cygwin* | mingw* | pw32*)
18932 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18933 # as there is no search path for DLLs.
18934 hardcode_libdir_flag_spec_CXX='-L$libdir'
18935 allow_undefined_flag_CXX=unsupported
18936 always_export_symbols_CXX=no
18937 enable_shared_with_static_runtimes_CXX=yes
18939 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18940 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'
18941 # If the export-symbols file already is a .def file (1st line
18942 # is EXPORTS), use it as is; otherwise, prepend...
18943 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
18944 cp $export_symbols $output_objdir/$soname.def;
18946 echo EXPORTS > $output_objdir/$soname.def;
18947 cat $export_symbols >> $output_objdir/$soname.def;
18949 $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'
18954 darwin* | rhapsody*)
18956 rhapsody* | darwin1.[012])
18957 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18960 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18961 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18963 case ${MACOSX_DEPLOYMENT_TARGET} in
18965 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18968 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18974 archive_cmds_need_lc_CXX=no
18975 hardcode_direct_CXX=no
18976 hardcode_automatic_CXX=yes
18977 hardcode_shlibpath_var_CXX=unsupported
18978 whole_archive_flag_spec_CXX=''
18979 link_all_deplibs_CXX=yes
18981 if test "$GXX" = yes ; then
18982 lt_int_apple_cc_single_mod=no
18983 output_verbose_link_cmd='echo'
18984 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18985 lt_int_apple_cc_single_mod=yes
18987 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18988 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18990 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'
18992 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18993 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18994 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18995 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}'
18997 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}'
18999 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}'
19001 case $cc_basename in
19003 output_verbose_link_cmd='echo'
19004 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'
19005 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19006 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19007 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}'
19008 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}'
19018 case $cc_basename in
19020 # FIXME: insert proper C++ library support
19024 # Green Hills C++ Compiler
19025 # FIXME: insert proper C++ library support
19029 # FIXME: insert proper C++ library support
19035 # C++ shared libraries reported to be fairly broken before switch to ELF
19039 archive_cmds_need_lc_CXX=no
19041 freebsd* | kfreebsd*-gnu | dragonfly*)
19042 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19049 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19050 hardcode_libdir_separator_CXX=:
19051 export_dynamic_flag_spec_CXX='${wl}-E'
19052 hardcode_direct_CXX=yes
19053 hardcode_minus_L_CXX=yes # Not in the search PATH,
19054 # but as the default
19055 # location of the library.
19057 case $cc_basename in
19059 # FIXME: insert proper C++ library support
19063 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'
19064 # Commands to make compiler produce verbose output that lists
19065 # what "hidden" libraries, object files and flags are used when
19066 # linking a shared library.
19068 # There doesn't appear to be a way to prevent this compiler from
19069 # explicitly linking system object files so we need to strip them
19070 # from the output so that they don't get included in the library
19072 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'
19075 if test "$GXX" = yes; then
19076 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'
19078 # FIXME: insert proper C++ library support
19085 if test $with_gnu_ld = no; then
19086 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19087 hardcode_libdir_separator_CXX=:
19091 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19094 export_dynamic_flag_spec_CXX='${wl}-E'
19100 hardcode_direct_CXX=no
19101 hardcode_shlibpath_var_CXX=no
19104 hardcode_direct_CXX=yes
19105 hardcode_minus_L_CXX=yes # Not in the search PATH,
19106 # but as the default
19107 # location of the library.
19111 case $cc_basename in
19113 # FIXME: insert proper C++ library support
19119 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19122 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19125 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19128 # Commands to make compiler produce verbose output that lists
19129 # what "hidden" libraries, object files and flags are used when
19130 # linking a shared library.
19132 # There doesn't appear to be a way to prevent this compiler from
19133 # explicitly linking system object files so we need to strip them
19134 # from the output so that they don't get included in the library
19136 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'
19139 if test "$GXX" = yes; then
19140 if test $with_gnu_ld = no; then
19143 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19146 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19149 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'
19154 # FIXME: insert proper C++ library support
19161 hardcode_direct_CXX=no
19162 hardcode_shlibpath_var_CXX=no
19163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19164 export_dynamic_flag_spec_CXX='${wl}-E'
19165 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19166 # Instead, shared libraries are loaded at an image base (0x10000000 by
19167 # default) and relocated if they conflict, which is a slow very memory
19168 # consuming and fragmenting process. To avoid this, we pick a random,
19169 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19170 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19171 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'
19172 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'
19175 case $cc_basename in
19178 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'
19180 # Archives containing C++ object files must be created using
19181 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19182 # necessary to make sure instantiated templates are included
19184 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19187 if test "$GXX" = yes; then
19188 if test "$with_gnu_ld" = no; then
19189 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'
19191 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'
19194 link_all_deplibs_CXX=yes
19197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19198 hardcode_libdir_separator_CXX=:
19201 case $cc_basename in
19203 # Kuck and Associates, Inc. (KAI) C++ Compiler
19205 # KCC will only create a shared library if the output file
19206 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19207 # to its proper name (with version) after linking.
19208 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'
19209 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'
19210 # Commands to make compiler produce verbose output that lists
19211 # what "hidden" libraries, object files and flags are used when
19212 # linking a shared library.
19214 # There doesn't appear to be a way to prevent this compiler from
19215 # explicitly linking system object files so we need to strip them
19216 # from the output so that they don't get included in the library
19218 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'
19220 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
19221 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19223 # Archives containing C++ object files must be created using
19224 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19225 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19230 # version 8.0 and above of icpc choke on multiply defined symbols
19231 # if we add $predep_objects and $postdep_objects, however 7.1 and
19232 # earlier do not add the objects themselves.
19233 case `$CC -V 2>&1` in
19235 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236 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'
19238 *) # Version 8.0 or newer
19241 ia64
*) tmp_idyn
=' -i_dynamic';;
19243 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19244 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'
19247 archive_cmds_need_lc_CXX
=no
19248 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19249 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19250 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19253 # Portland Group C++ compiler
19254 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19255 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'
19257 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19258 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19259 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'
19263 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19264 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'
19266 runpath_var
=LD_RUN_PATH
19267 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19268 hardcode_libdir_separator_CXX
=:
19270 # Commands to make compiler produce verbose output that lists
19271 # what "hidden" libraries, object files and flags are used when
19272 # linking a shared library.
19274 # There doesn't appear to be a way to prevent this compiler from
19275 # explicitly linking system object files so we need to strip them
19276 # from the output so that they don't get included in the library
19278 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'
19283 # FIXME: insert proper C++ library support
19287 # FIXME: insert proper C++ library support
19291 case $cc_basename in
19293 # FIXME: insert proper C++ library support
19297 # FIXME: insert proper C++ library support
19303 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19304 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19306 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19307 hardcode_direct_CXX
=yes
19308 hardcode_shlibpath_var_CXX
=no
19310 # Workaround some broken pre-1.5 toolchains
19311 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19314 # C++ shared libraries are fairly broken
19318 hardcode_direct_CXX
=yes
19319 hardcode_shlibpath_var_CXX
=no
19320 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19321 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19323 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19324 export_dynamic_flag_spec_CXX
='${wl}-E'
19325 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19327 output_verbose_link_cmd
='echo'
19330 case $cc_basename in
19332 # Kuck and Associates, Inc. (KAI) C++ Compiler
19334 # KCC will only create a shared library if the output file
19335 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19336 # to its proper name (with version) after linking.
19337 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'
19339 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19340 hardcode_libdir_separator_CXX
=:
19342 # Archives containing C++ object files must be created using
19343 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19344 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19348 # Rational C++ 2.4.1
19349 # FIXME: insert proper C++ library support
19353 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19354 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'
19356 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19357 hardcode_libdir_separator_CXX
=:
19359 # Commands to make compiler produce verbose output that lists
19360 # what "hidden" libraries, object files and flags are used when
19361 # linking a shared library.
19363 # There doesn't appear to be a way to prevent this compiler from
19364 # explicitly linking system object files so we need to strip them
19365 # from the output so that they don't get included in the library
19367 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'
19370 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19371 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19372 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'
19374 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19375 hardcode_libdir_separator_CXX
=:
19377 # Commands to make compiler produce verbose output that lists
19378 # what "hidden" libraries, object files and flags are used when
19379 # linking a shared library.
19380 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19383 # FIXME: insert proper C++ library support
19390 case $cc_basename in
19392 # Kuck and Associates, Inc. (KAI) C++ Compiler
19394 # KCC will only create a shared library if the output file
19395 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19396 # to its proper name (with version) after linking.
19397 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'
19399 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19400 hardcode_libdir_separator_CXX
=:
19402 # Archives containing C++ object files must be created using
19403 # the KAI C++ compiler.
19404 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
19407 # Rational C++ 2.4.1
19408 # FIXME: insert proper C++ library support
19412 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19413 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'
19414 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19415 echo "-hidden">> $lib.exp~
19416 $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~
19419 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19420 hardcode_libdir_separator_CXX
=:
19422 # Commands to make compiler produce verbose output that lists
19423 # what "hidden" libraries, object files and flags are used when
19424 # linking a shared library.
19426 # There doesn't appear to be a way to prevent this compiler from
19427 # explicitly linking system object files so we need to strip them
19428 # from the output so that they don't get included in the library
19430 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'
19433 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19434 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19435 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'
19437 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19438 hardcode_libdir_separator_CXX
=:
19440 # Commands to make compiler produce verbose output that lists
19441 # what "hidden" libraries, object files and flags are used when
19442 # linking a shared library.
19443 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19446 # FIXME: insert proper C++ library support
19453 # FIXME: insert proper C++ library support
19457 case $cc_basename in
19460 # FIXME: insert proper C++ library support
19465 # FIXME: insert proper C++ library support
19469 # FIXME: insert proper C++ library support
19475 case $cc_basename in
19477 # Sun C++ 4.2, 5.x and Centerline C++
19478 archive_cmds_need_lc_CXX
=yes
19479 no_undefined_flag_CXX
=' -zdefs'
19480 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19481 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19482 $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'
19484 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19485 hardcode_shlibpath_var_CXX
=no
19487 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19489 # The C++ compiler is used as linker so we must use $wl
19490 # flag to pass the commands to the underlying system
19491 # linker. We must also pass each convience library through
19492 # to the system linker between allextract/defaultextract.
19493 # The C++ compiler will combine linker options so we
19494 # cannot just pass the convience library names through
19496 # Supported since Solaris 2.6 (maybe 2.5.1?)
19497 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'
19500 link_all_deplibs_CXX
=yes
19502 output_verbose_link_cmd
='echo'
19504 # Archives containing C++ object files must be created using
19505 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19506 # necessary to make sure instantiated templates are included
19508 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19511 # Green Hills C++ Compiler
19512 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19514 # The C++ compiler must be used to create the archive.
19515 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19518 # GNU C++ compiler with Solaris linker
19519 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19520 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19521 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
19522 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19523 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19524 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19526 # Commands to make compiler produce verbose output that lists
19527 # what "hidden" libraries, object files and flags are used when
19528 # linking a shared library.
19529 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19531 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19533 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19534 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19535 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19537 # Commands to make compiler produce verbose output that lists
19538 # what "hidden" libraries, object files and flags are used when
19539 # linking a shared library.
19540 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19543 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19548 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19549 no_undefined_flag_CXX
='${wl}-z,text'
19550 archive_cmds_need_lc_CXX
=no
19551 hardcode_shlibpath_var_CXX
=no
19552 runpath_var
='LD_RUN_PATH'
19554 case $cc_basename in
19556 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19560 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19565 sysv5
* | sco3.2v5
* | sco5v6
*)
19566 # Note: We can NOT use -z defs as we might desire, because we do not
19567 # link with -lc, and that would cause any symbols used from libc to
19568 # always be unresolved, which means just about no library would
19569 # ever link correctly. If we're not using GNU ld we use -z text
19570 # though, which does catch some bad symbols but isn't as heavy-handed
19572 # For security reasons, it is highly recommended that you always
19573 # use absolute paths for naming shared libraries, and exclude the
19574 # DT_RUNPATH tag from executables and libraries. But doing so
19575 # requires that you compile everything twice, which is a pain.
19576 # So that behaviour is only enabled if SCOABSPATH is set to a
19577 # non-empty value in the environment. Most likely only useful for
19578 # creating official distributions of packages.
19579 # This is a hack until libtool officially supports absolute path
19580 # names for shared libraries.
19581 no_undefined_flag_CXX
='${wl}-z,text'
19582 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19583 archive_cmds_need_lc_CXX
=no
19584 hardcode_shlibpath_var_CXX
=no
19585 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19586 hardcode_libdir_separator_CXX
=':'
19587 link_all_deplibs_CXX
=yes
19588 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19589 runpath_var
='LD_RUN_PATH'
19591 case $cc_basename in
19593 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19594 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19597 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19598 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19603 case $cc_basename in
19605 # NonStop-UX NCC 3.20
19606 # FIXME: insert proper C++ library support
19610 # FIXME: insert proper C++ library support
19616 # FIXME: insert proper C++ library support
19620 # FIXME: insert proper C++ library support
19624 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19625 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19626 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19632 cat > conftest.
$ac_ext <<EOF
19636 Foo (void) { a = 0; }
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643 (eval $ac_compile) 2>&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; then
19647 # Parse the compiler output and extract the necessary
19648 # objects, libraries and library flags.
19650 # Sentinel used to keep track of whether or not we are before
19651 # the conftest object file.
19652 pre_test_object_deps_done
=no
19654 # The `*' in the case matches for architectures that use `case' in
19655 # $output_verbose_cmd can trigger glob expansion during the loop
19656 # eval without this substitution.
19657 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19659 for p
in `eval $output_verbose_link_cmd`; do
19663 # Some compilers place space between "-{L,R}" and the path.
19664 # Remove the space.
19665 if test $p = "-L" \
19666 ||
test $p = "-R"; then
19673 if test "$pre_test_object_deps_done" = no
; then
19676 # Internal compiler library paths should come after those
19677 # provided the user. The postdeps already come after the
19678 # user supplied libs so there is no need to process them.
19679 if test -z "$compiler_lib_search_path_CXX"; then
19680 compiler_lib_search_path_CXX
="${prev}${p}"
19682 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19685 # The "-l" case would never come before the object being
19686 # linked, so don't bother handling this case.
19689 if test -z "$postdeps_CXX"; then
19690 postdeps_CXX
="${prev}${p}"
19692 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19698 # This assumes that the test object file only shows up
19699 # once in the compiler output.
19700 if test "$p" = "conftest.$objext"; then
19701 pre_test_object_deps_done
=yes
19705 if test "$pre_test_object_deps_done" = no
; then
19706 if test -z "$predep_objects_CXX"; then
19707 predep_objects_CXX
="$p"
19709 predep_objects_CXX
="$predep_objects_CXX $p"
19712 if test -z "$postdep_objects_CXX"; then
19713 postdep_objects_CXX
="$p"
19715 postdep_objects_CXX
="$postdep_objects_CXX $p"
19720 *) ;; # Ignore the rest.
19728 echo "libtool.m4: error: problem compiling CXX test program"
19731 $rm -f confest.
$objext
19733 # PORTME: override above test on systems where it is broken
19736 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19737 # hack all around it, let's just trust "g++" to DTRT.
19738 predep_objects_CXX
=
19739 postdep_objects_CXX
=
19744 case $cc_basename in
19746 # Adding this requires a known-good setup of shared libraries for
19747 # Sun compiler versions before 5.6, else PIC objects from an old
19748 # archive will be linked into the output, leading to subtle bugs.
19749 postdeps_CXX
='-lCstd -lCrun'
19756 case " $postdeps_CXX " in
19757 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19760 lt_prog_compiler_wl_CXX
=
19761 lt_prog_compiler_pic_CXX
=
19762 lt_prog_compiler_static_CXX
=
19764 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19765 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19767 # C++ specific cases for pic, static, wl, etc.
19768 if test "$GXX" = yes; then
19769 lt_prog_compiler_wl_CXX
='-Wl,'
19770 lt_prog_compiler_static_CXX
='-static'
19774 # All AIX code is PIC.
19775 if test "$host_cpu" = ia64
; then
19776 # AIX 5 now supports IA64 processor
19777 lt_prog_compiler_static_CXX
='-Bstatic'
19781 # FIXME: we need at least 68020 code to build shared libraries, but
19782 # adding the `-m68020' flag to GCC prevents building anything better,
19784 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19786 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19787 # PIC is the default for these OSes.
19789 mingw
* | os2
* | pw32
*)
19790 # This hack is so that the source file can tell whether it is being
19791 # built for inclusion in a dll (and should export symbols for example).
19792 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19794 darwin
* | rhapsody
*)
19795 # PIC is the default on this platform
19796 # Common symbols not allowed in MH_DYLIB files
19797 lt_prog_compiler_pic_CXX
='-fno-common'
19800 # DJGPP does not support shared libraries at all
19801 lt_prog_compiler_pic_CXX
=
19804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19805 # Instead, we relocate shared libraries at runtime.
19808 if test -d /usr
/nec
; then
19809 lt_prog_compiler_pic_CXX
=-Kconform_pic
19813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19814 # not for PA HP-UX.
19819 lt_prog_compiler_pic_CXX
='-fPIC'
19824 lt_prog_compiler_pic_CXX
='-fPIC'
19830 # All AIX code is PIC.
19831 if test "$host_cpu" = ia64
; then
19832 # AIX 5 now supports IA64 processor
19833 lt_prog_compiler_static_CXX
='-Bstatic'
19835 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19839 case $cc_basename in
19841 # Green Hills C++ Compiler
19842 # _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"
19847 # PIC is the default on this platform
19848 # Common symbols not allowed in MH_DYLIB files
19849 case $cc_basename in
19851 lt_prog_compiler_pic_CXX
='-qnocommon'
19852 lt_prog_compiler_wl_CXX
='-Wl,'
19857 case $cc_basename in
19859 lt_prog_compiler_pic_CXX
='-KPIC'
19862 # Green Hills C++ Compiler
19863 lt_prog_compiler_pic_CXX
='-pic'
19869 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19870 # FreeBSD uses GNU C++
19872 hpux9
* | hpux10
* | hpux11
*)
19873 case $cc_basename in
19875 lt_prog_compiler_wl_CXX
='-Wl,'
19876 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19877 if test "$host_cpu" != ia64
; then
19878 lt_prog_compiler_pic_CXX
='+Z'
19882 lt_prog_compiler_wl_CXX
='-Wl,'
19883 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19889 lt_prog_compiler_pic_CXX
='+Z'
19898 # This is c89, which is MS Visual C++ (no shared libs)
19899 # Anyone wants to do a port?
19901 irix5
* | irix6
* | nonstopux
*)
19902 case $cc_basename in
19904 lt_prog_compiler_wl_CXX
='-Wl,'
19905 lt_prog_compiler_static_CXX
='-non_shared'
19906 # CC pic flag -KPIC is the default.
19913 case $cc_basename in
19916 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19917 lt_prog_compiler_pic_CXX
='-fPIC'
19921 lt_prog_compiler_wl_CXX
='-Wl,'
19922 lt_prog_compiler_pic_CXX
='-KPIC'
19923 lt_prog_compiler_static_CXX
='-static'
19926 # Portland Group C++ compiler.
19927 lt_prog_compiler_wl_CXX
='-Wl,'
19928 lt_prog_compiler_pic_CXX
='-fpic'
19929 lt_prog_compiler_static_CXX
='-Bstatic'
19933 # Make sure the PIC flag is empty. It appears that all Alpha
19934 # Linux and Compaq Tru64 Unix objects are PIC.
19935 lt_prog_compiler_pic_CXX
=
19936 lt_prog_compiler_static_CXX
='-non_shared'
19947 case $cc_basename in
19949 lt_prog_compiler_pic_CXX
='-W c,exportall'
19957 osf3
* | osf4
* | osf5
*)
19958 case $cc_basename in
19960 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19963 # Rational C++ 2.4.1
19964 lt_prog_compiler_pic_CXX
='-pic'
19967 # Digital/Compaq C++
19968 lt_prog_compiler_wl_CXX
='-Wl,'
19969 # Make sure the PIC flag is empty. It appears that all Alpha
19970 # Linux and Compaq Tru64 Unix objects are PIC.
19971 lt_prog_compiler_pic_CXX
=
19972 lt_prog_compiler_static_CXX
='-non_shared'
19981 case $cc_basename in
19983 # Sun C++ 4.2, 5.x and Centerline C++
19984 lt_prog_compiler_pic_CXX
='-KPIC'
19985 lt_prog_compiler_static_CXX
='-Bstatic'
19986 lt_prog_compiler_wl_CXX
='-Qoption ld '
19989 # Green Hills C++ Compiler
19990 lt_prog_compiler_pic_CXX
='-PIC'
19997 case $cc_basename in
20000 lt_prog_compiler_pic_CXX
='-pic'
20001 lt_prog_compiler_static_CXX
='-Bstatic'
20005 lt_prog_compiler_pic_CXX
='-pic'
20012 case $cc_basename in
20014 # NonStop-UX NCC 3.20
20015 lt_prog_compiler_pic_CXX
='-KPIC'
20021 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20022 case $cc_basename in
20024 lt_prog_compiler_wl_CXX
='-Wl,'
20025 lt_prog_compiler_pic_CXX
='-KPIC'
20026 lt_prog_compiler_static_CXX
='-Bstatic'
20033 lt_prog_compiler_can_build_shared_CXX
=no
20038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20039 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20042 # Check to make sure the PIC flag actually works.
20044 if test -n "$lt_prog_compiler_pic_CXX"; then
20046 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20048 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 lt_prog_compiler_pic_works_CXX
=no
20052 ac_outfile
=conftest.
$ac_objext
20053 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20054 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20055 # Insert the option either (1) after the last *FLAGS variable, or
20056 # (2) before a word containing "conftest.", or (3) at the end.
20057 # Note that $ac_compile itself does not contain backslashes and begins
20058 # with a dollar sign (not a hyphen), so the echo should work correctly.
20059 # The option is referenced via a variable to avoid confusing sed.
20060 lt_compile
=`echo "$ac_compile" | $SED \
20061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20063 -e 's:$: $lt_compiler_flag:'`
20064 (eval echo "\"\$as_me:20059: $lt_compile\"" >&5)
20065 (eval "$lt_compile" 2>conftest.err
)
20067 cat conftest.err
>&5
20068 echo "$as_me:20063: \$? = $ac_status" >&5
20069 if (exit $ac_status) && test -s "$ac_outfile"; then
20070 # The compiler can only warn and ignore the option if not recognized
20071 # So say no if there are warnings other than the usual output.
20072 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
20073 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20074 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20075 lt_prog_compiler_pic_works_CXX
=yes
20081 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20082 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20084 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
20085 case $lt_prog_compiler_pic_CXX in
20087 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20090 lt_prog_compiler_pic_CXX
=
20091 lt_prog_compiler_can_build_shared_CXX
=no
20096 # For platforms which do not support PIC, -DPIC is meaningless:
20098 lt_prog_compiler_pic_CXX
=
20101 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20106 # Check to make sure the static flag actually works.
20108 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20109 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20110 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20111 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20114 lt_prog_compiler_static_works_CXX
=no
20115 save_LDFLAGS
="$LDFLAGS"
20116 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20117 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
20118 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20119 # The linker can only warn and ignore the option if not recognized
20120 # So say no if there are warnings
20121 if test -s conftest.err
; then
20122 # Append any errors to the config.log.
20123 cat conftest.err
1>&5
20124 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
20125 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20126 if diff conftest.exp conftest.er2
>/dev
/null
; then
20127 lt_prog_compiler_static_works_CXX
=yes
20130 lt_prog_compiler_static_works_CXX
=yes
20134 LDFLAGS
="$save_LDFLAGS"
20137 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20138 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20140 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
20143 lt_prog_compiler_static_CXX
=
20147 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20148 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20149 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 lt_cv_prog_compiler_c_o_CXX
=no
20153 $rm -r conftest
2>/dev
/null
20157 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20159 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20160 # Insert the option either (1) after the last *FLAGS variable, or
20161 # (2) before a word containing "conftest.", or (3) at the end.
20162 # Note that $ac_compile itself does not contain backslashes and begins
20163 # with a dollar sign (not a hyphen), so the echo should work correctly.
20164 lt_compile
=`echo "$ac_compile" | $SED \
20165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20167 -e 's:$: $lt_compiler_flag:'`
20168 (eval echo "\"\$as_me:20163: $lt_compile\"" >&5)
20169 (eval "$lt_compile" 2>out
/conftest.err
)
20171 cat out
/conftest.err
>&5
20172 echo "$as_me:20167: \$? = $ac_status" >&5
20173 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20175 # The compiler can only warn and ignore the option if not recognized
20176 # So say no if there are warnings
20177 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
20178 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20179 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20180 lt_cv_prog_compiler_c_o_CXX
=yes
20185 # SGI C++ compiler will create directory out/ii_files/ for
20186 # template instantiation
20187 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
20188 $rm out
/* && rmdir out
20194 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20195 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20198 hard_links
="nottested"
20199 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20200 # do not overwrite the value of need_locks provided by the user
20201 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20202 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20205 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20207 ln conftest.a conftest.b
2>&5 || hard_links
=no
20208 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20209 { echo "$as_me:$LINENO: result: $hard_links" >&5
20210 echo "${ECHO_T}$hard_links" >&6; }
20211 if test "$hard_links" = no
; then
20212 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20213 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20220 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20223 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20226 # If we're using GNU nm, then we don't want the "-C" option.
20227 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20228 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
20229 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'
20231 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'
20235 export_symbols_cmds_CXX
="$ltdll_cmds"
20238 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'
20241 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20245 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20246 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20247 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20250 # Do we need to explicitly link libc?
20252 case "x$archive_cmds_need_lc_CXX" in
20254 # Assume -lc should be added
20255 archive_cmds_need_lc_CXX
=yes
20257 if test "$enable_shared" = yes && test "$GCC" = yes; then
20258 case $archive_cmds_CXX in
20260 # FIXME: we may have to deal with multi-command sequences.
20263 # Test whether the compiler implicitly links with -lc since on some
20264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20265 # to ld, don't add -lc before -lgcc.
20266 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20267 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20269 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272 (eval $ac_compile) 2>&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } 2>conftest.err
; then
20278 libobjs
=conftest.
$ac_objext
20280 wl
=$lt_prog_compiler_wl_CXX
20281 pic_flag
=$lt_prog_compiler_pic_CXX
20287 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20288 allow_undefined_flag_CXX
=
20289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20290 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }
20295 archive_cmds_need_lc_CXX
=no
20297 archive_cmds_need_lc_CXX
=yes
20299 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20301 cat conftest.err
1>&5
20304 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20305 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20312 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20314 library_names_spec
=
20315 libname_spec
='lib$name'
20319 postuninstall_cmds
=
20323 shlibpath_overrides_runpath
=unknown
20325 dynamic_linker
="$host_os ld.so"
20326 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20327 if test "$GCC" = yes; then
20328 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20329 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
20330 # if the path contains ";" then we assume it to be the separator
20331 # otherwise default to the standard path separator (i.e. ":") - it is
20332 # assumed that no part of a normal pathname contains ";" but that should
20333 # okay in the real world where ";" in dirpaths is itself problematic.
20334 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20336 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20339 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20341 need_lib_prefix
=unknown
20342 hardcode_into_libs
=no
20344 # when you set need_version to no, make sure it does not cause -set_version
20345 # flags to be left without arguments
20346 need_version
=unknown
20351 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20352 shlibpath_var
=LIBPATH
20354 # AIX 3 has no versioning support, so we append a major version to the name.
20355 soname_spec
='${libname}${release}${shared_ext}$major'
20362 hardcode_into_libs
=yes
20363 if test "$host_cpu" = ia64
; then
20364 # AIX 5 supports IA64
20365 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20366 shlibpath_var
=LD_LIBRARY_PATH
20368 # With GCC up to 2.95.x, collect2 would create an import file
20369 # for dependence libraries. The import file would start with
20370 # the line `#! .'. This would cause the generated library to
20371 # depend on `.', always an invalid library. This was fixed in
20372 # development snapshots of GCC prior to 3.0.
20374 aix4 | aix4.
[01] | aix4.
[01].
*)
20375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20377 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
20380 can_build_shared
=no
20384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20385 # soname into executable. Probably we can add versioning support to
20386 # collect2, so additional links can be useful in future.
20387 if test "$aix_use_runtimelinking" = yes; then
20388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20389 # instead of lib<name>.a to let people know that these are not
20390 # typical AIX shared libraries.
20391 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393 # We preserve .a as extension for shared libraries through AIX4.2
20394 # and later when we are not doing run time linking.
20395 library_names_spec
='${libname}${release}.a $libname.a'
20396 soname_spec
='${libname}${release}${shared_ext}$major'
20398 shlibpath_var
=LIBPATH
20403 library_names_spec
='$libname.ixlibrary $libname.a'
20404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20405 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'
20409 library_names_spec
='${libname}${shared_ext}'
20410 dynamic_linker
="$host_os ld.so"
20411 shlibpath_var
=LIBRARY_PATH
20417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20418 soname_spec
='${libname}${release}${shared_ext}$major'
20419 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20420 shlibpath_var
=LD_LIBRARY_PATH
20421 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20422 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20423 # the default ld.so.conf also contains /usr/contrib/lib and
20424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20425 # libtool to hard-code these into programs
20428 cygwin
* | mingw
* | pw32
*)
20429 version_type
=windows
20434 case $GCC,$host_os in
20435 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
20436 library_names_spec
='$libname.dll.a'
20437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20438 postinstall_cmds
='base_file=`basename \${file}`~
20439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20440 dldir=$destdir/`dirname \$dlpath`~
20441 test -d \$dldir || mkdir -p \$dldir~
20442 $install_prog $dir/$dlname \$dldir/$dlname~
20443 chmod a+x \$dldir/$dlname'
20444 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20445 dlpath=$dir/\$dldll~
20447 shlibpath_overrides_runpath
=yes
20451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20452 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20453 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20456 # MinGW DLLs use traditional 'lib' prefix
20457 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20458 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20459 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
20460 # It is most probably a Windows format PATH printed by
20461 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20462 # path with ; separators, and with drive letters. We can handle the
20463 # drive letters (cygwin fileutils understands them), so leave them,
20464 # especially as we might pass files found there to a mingw objdump,
20465 # which wouldn't understand a cygwinified path. Ahh.
20466 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20468 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20472 # pw32 DLLs use 'pw' prefix rather than 'lib'
20473 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20479 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20482 dynamic_linker
='Win32 ld.exe'
20483 # FIXME: first we should search . and the directory the executable is in
20487 darwin
* | rhapsody
*)
20488 dynamic_linker
="$host_os dyld"
20489 version_type
=darwin
20492 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20493 soname_spec
='${libname}${release}${major}$shared_ext'
20494 shlibpath_overrides_runpath
=yes
20495 shlibpath_var
=DYLD_LIBRARY_PATH
20496 shrext_cmds
='.dylib'
20497 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20498 if test "$GCC" = yes; then
20499 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"`
20501 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
20503 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20511 soname_spec
='${libname}${release}${shared_ext}$major'
20512 shlibpath_var
=LD_LIBRARY_PATH
20523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20524 soname_spec
='${libname}${release}${shared_ext}$major'
20525 shlibpath_var
=LD_LIBRARY_PATH
20526 shlibpath_overrides_runpath
=no
20527 hardcode_into_libs
=yes
20528 dynamic_linker
='GNU ld.so'
20531 freebsd
* | dragonfly
*)
20532 # DragonFly does not have aout. When/if they implement a new
20533 # versioning mechanism, adjust this.
20534 if test -x /usr
/bin
/objformat
; then
20535 objformat
=`/usr/bin/objformat`
20538 freebsd
[123]*) objformat
=aout
;;
20539 *) objformat
=elf
;;
20542 version_type
=freebsd-
$objformat
20543 case $version_type in
20545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20550 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20554 shlibpath_var
=LD_LIBRARY_PATH
20557 shlibpath_overrides_runpath
=yes
20559 freebsd3.
[01]* | freebsdelf3.
[01]*)
20560 shlibpath_overrides_runpath
=yes
20561 hardcode_into_libs
=yes
20563 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20564 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20565 shlibpath_overrides_runpath
=no
20566 hardcode_into_libs
=yes
20568 freebsd
*) # from 4.6 on
20569 shlibpath_overrides_runpath
=yes
20570 hardcode_into_libs
=yes
20579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20580 soname_spec
='${libname}${release}${shared_ext}$major'
20581 shlibpath_var
=LD_LIBRARY_PATH
20582 hardcode_into_libs
=yes
20585 hpux9
* | hpux10
* | hpux11
*)
20586 # Give a soname corresponding to the major version so that dld.sl refuses to
20587 # link against other versions.
20594 hardcode_into_libs
=yes
20595 dynamic_linker
="$host_os dld.so"
20596 shlibpath_var
=LD_LIBRARY_PATH
20597 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20599 soname_spec
='${libname}${release}${shared_ext}$major'
20600 if test "X$HPUX_IA64_MODE" = X32
; then
20601 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20603 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20605 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20609 hardcode_into_libs
=yes
20610 dynamic_linker
="$host_os dld.sl"
20611 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20612 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 soname_spec
='${libname}${release}${shared_ext}$major'
20615 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20616 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20620 dynamic_linker
="$host_os dld.sl"
20621 shlibpath_var
=SHLIB_PATH
20622 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624 soname_spec
='${libname}${release}${shared_ext}$major'
20627 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20628 postinstall_cmds
='chmod 555 $lib'
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 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20638 shlibpath_var
=LD_LIBRARY_PATH
20639 shlibpath_overrides_runpath
=no
20640 hardcode_into_libs
=yes
20643 irix5
* | irix6
* | nonstopux
*)
20645 nonstopux
*) version_type
=nonstopux
;;
20647 if test "$lt_cv_prog_gnu_ld" = yes; then
20655 soname_spec
='${libname}${release}${shared_ext}$major'
20656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20658 irix5
* | nonstopux
*)
20659 libsuff
= shlibsuff
=
20662 case $LD in # libtool.m4 will add one of these switches to LD
20663 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20664 libsuff
= shlibsuff
= libmagic
=32-bit;;
20665 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20666 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20667 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20668 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20669 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20673 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20674 shlibpath_overrides_runpath
=no
20675 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20676 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20677 hardcode_into_libs
=yes
20680 # No shared lib support for Linux oldld, aout, or coff.
20681 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20685 # This must be Linux ELF.
20690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20691 soname_spec
='${libname}${release}${shared_ext}$major'
20692 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20693 shlibpath_var
=LD_LIBRARY_PATH
20694 shlibpath_overrides_runpath
=no
20695 # This implies no fast_install, which is unacceptable.
20696 # Some rework will be needed to allow for fast_install
20697 # before this can be enabled.
20698 hardcode_into_libs
=yes
20700 # Append ld.so.conf contents to the search path
20701 if test -f /etc
/ld.so.conf
; then
20702 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' ' '`
20703 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20706 # We used to test for /lib/ld.so.1 and disable shared libraries on
20707 # powerpc, because MkLinux only supported shared libraries with the
20708 # GNU dynamic linker. Since this was broken with cross compilers,
20709 # most powerpc-linux boxes support dynamic linking these days and
20710 # people can always --disable-shared, the test was removed, and we
20711 # assume the GNU/Linux dynamic linker is in use.
20712 dynamic_linker
='GNU/Linux ld.so'
20719 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20720 soname_spec
='${libname}${release}${shared_ext}$major'
20721 shlibpath_var
=LD_LIBRARY_PATH
20722 shlibpath_overrides_runpath
=no
20723 hardcode_into_libs
=yes
20724 dynamic_linker
='GNU ld.so'
20731 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20733 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20734 dynamic_linker
='NetBSD (a.out) ld.so'
20736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20737 soname_spec
='${libname}${release}${shared_ext}$major'
20738 dynamic_linker
='NetBSD ld.elf_so'
20740 shlibpath_var
=LD_LIBRARY_PATH
20741 shlibpath_overrides_runpath
=yes
20742 hardcode_into_libs
=yes
20747 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20748 shlibpath_var
=LD_LIBRARY_PATH
20749 shlibpath_overrides_runpath
=yes
20756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757 soname_spec
='${libname}${release}${shared_ext}$major'
20758 shlibpath_var
=LD_LIBRARY_PATH
20759 shlibpath_overrides_runpath
=yes
20764 sys_lib_dlsearch_path_spec
="/usr/lib"
20766 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20768 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20769 *) need_version
=no
;;
20771 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20772 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20773 shlibpath_var
=LD_LIBRARY_PATH
20774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20776 openbsd2.
[89] | openbsd2.
[89].
*)
20777 shlibpath_overrides_runpath
=no
20780 shlibpath_overrides_runpath
=yes
20784 shlibpath_overrides_runpath
=yes
20789 libname_spec
='$name'
20792 library_names_spec
='$libname${shared_ext} $libname.a'
20793 dynamic_linker
='OS/2 ld.exe'
20794 shlibpath_var
=LIBPATH
20797 osf3
* | osf4
* | osf5
*)
20801 soname_spec
='${libname}${release}${shared_ext}$major'
20802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20803 shlibpath_var
=LD_LIBRARY_PATH
20804 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20805 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20812 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 soname_spec
='${libname}${release}${shared_ext}$major'
20814 shlibpath_var
=LD_LIBRARY_PATH
20815 shlibpath_overrides_runpath
=yes
20816 hardcode_into_libs
=yes
20817 # ldd complains unless libraries are executable
20818 postinstall_cmds
='chmod +x $lib'
20823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20824 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20825 shlibpath_var
=LD_LIBRARY_PATH
20826 shlibpath_overrides_runpath
=yes
20827 if test "$with_gnu_ld" = yes; then
20835 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836 soname_spec
='${libname}${release}${shared_ext}$major'
20837 shlibpath_var
=LD_LIBRARY_PATH
20838 case $host_vendor in
20840 shlibpath_overrides_runpath
=no
20842 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20843 runpath_var
=LD_RUN_PATH
20851 shlibpath_overrides_runpath
=no
20852 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20858 if test -d /usr
/nec
;then
20860 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20861 soname_spec
='$libname${shared_ext}.$major'
20862 shlibpath_var
=LD_LIBRARY_PATH
20866 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20867 version_type
=freebsd-elf
20870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20871 soname_spec
='${libname}${release}${shared_ext}$major'
20872 shlibpath_var
=LD_LIBRARY_PATH
20873 hardcode_into_libs
=yes
20874 if test "$with_gnu_ld" = yes; then
20875 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20876 shlibpath_overrides_runpath
=no
20878 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20879 shlibpath_overrides_runpath
=yes
20882 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20886 sys_lib_dlsearch_path_spec
='/usr/lib'
20891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20892 soname_spec
='${libname}${release}${shared_ext}$major'
20893 shlibpath_var
=LD_LIBRARY_PATH
20900 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20901 echo "${ECHO_T}$dynamic_linker" >&6; }
20902 test "$dynamic_linker" = no
&& can_build_shared
=no
20904 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20905 if test "$GCC" = yes; then
20906 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20909 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20910 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20911 hardcode_action_CXX
=
20912 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20913 test -n "$runpath_var_CXX" || \
20914 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20916 # We can hardcode non-existant directories.
20917 if test "$hardcode_direct_CXX" != no
&&
20918 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20919 # have to relink, otherwise we might link with an installed library
20920 # when we should be linking with a yet-to-be-installed one
20921 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20922 test "$hardcode_minus_L_CXX" != no
; then
20923 # Linking always hardcodes the temporary library directory.
20924 hardcode_action_CXX
=relink
20926 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20927 hardcode_action_CXX
=immediate
20930 # We cannot hardcode anything, or else we can only hardcode existing
20932 hardcode_action_CXX
=unsupported
20934 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20935 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20937 if test "$hardcode_action_CXX" = relink
; then
20938 # Fast installation is not supported
20939 enable_fast_install
=no
20940 elif test "$shlibpath_overrides_runpath" = yes ||
20941 test "$enable_shared" = no
; then
20942 # Fast installation is not necessary
20943 enable_fast_install
=needless
20947 # The else clause should only fire when bootstrapping the
20948 # libtool distribution, otherwise you forgot to ship ltmain.sh
20949 # with your package, and you will get complaints that there are
20950 # no rules to generate ltmain.sh.
20951 if test -f "$ltmain"; then
20952 # See if we are running on zsh, and set the options which allow our commands through
20953 # without removal of \ escapes.
20954 if test -n "${ZSH_VERSION+set}" ; then
20955 setopt NO_GLOB_SUBST
20957 # Now quote all the things that may contain metacharacters while being
20958 # careful not to overquote the AC_SUBSTed values. We take copies of the
20959 # variables and quote the copies for generation of the libtool script.
20960 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20962 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20963 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20964 deplibs_check_method reload_flag reload_cmds need_locks \
20965 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20966 lt_cv_sys_global_symbol_to_c_name_address \
20967 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20968 old_postinstall_cmds old_postuninstall_cmds \
20972 lt_prog_compiler_wl_CXX \
20973 lt_prog_compiler_pic_CXX \
20974 lt_prog_compiler_static_CXX \
20975 lt_prog_compiler_no_builtin_flag_CXX \
20976 export_dynamic_flag_spec_CXX \
20977 thread_safe_flag_spec_CXX \
20978 whole_archive_flag_spec_CXX \
20979 enable_shared_with_static_runtimes_CXX \
20980 old_archive_cmds_CXX \
20981 old_archive_from_new_cmds_CXX \
20982 predep_objects_CXX \
20983 postdep_objects_CXX \
20986 compiler_lib_search_path_CXX \
20988 archive_expsym_cmds_CXX \
20989 postinstall_cmds_CXX \
20990 postuninstall_cmds_CXX \
20991 old_archive_from_expsyms_cmds_CXX \
20992 allow_undefined_flag_CXX \
20993 no_undefined_flag_CXX \
20994 export_symbols_cmds_CXX \
20995 hardcode_libdir_flag_spec_CXX \
20996 hardcode_libdir_flag_spec_ld_CXX \
20997 hardcode_libdir_separator_CXX \
20998 hardcode_automatic_CXX \
21000 module_expsym_cmds_CXX \
21001 lt_cv_prog_compiler_c_o_CXX \
21002 exclude_expsyms_CXX \
21003 include_expsyms_CXX
; do
21006 old_archive_cmds_CXX | \
21007 old_archive_from_new_cmds_CXX | \
21008 archive_cmds_CXX | \
21009 archive_expsym_cmds_CXX | \
21010 module_cmds_CXX | \
21011 module_expsym_cmds_CXX | \
21012 old_archive_from_expsyms_cmds_CXX | \
21013 export_symbols_cmds_CXX | \
21014 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21015 postinstall_cmds | postuninstall_cmds | \
21016 old_postinstall_cmds | old_postuninstall_cmds | \
21017 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
21018 # Double-quote double-evaled strings.
21019 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21022 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21028 *'\$0 --fallback-echo"')
21029 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21035 cat <<__EOF__ >> "$cfgfile"
21036 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21038 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21040 # Shell to use when invoking shell scripts.
21043 # Whether or not to build shared libraries.
21044 build_libtool_libs=$enable_shared
21046 # Whether or not to build static libraries.
21047 build_old_libs=$enable_static
21049 # Whether or not to add -lc for building shared libraries.
21050 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21052 # Whether or not to disallow shared libs when runtime libs are static
21053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21055 # Whether or not to optimize for fast installation.
21056 fast_install=$enable_fast_install
21059 host_alias=$host_alias
21063 # The build system.
21064 build_alias=$build_alias
21068 # An echo program that does not interpret backslashes.
21073 AR_FLAGS=$lt_AR_FLAGS
21078 # LTCC compiler flags.
21079 LTCFLAGS=$lt_LTCFLAGS
21081 # A language-specific compiler.
21082 CC=$lt_compiler_CXX
21084 # Is the compiler the GNU C compiler?
21090 # The linker used to build libraries.
21093 # Whether we need hard or soft links.
21096 # A BSD-compatible nm program.
21099 # A symbol stripping program
21102 # Used to examine libraries when file_magic_cmd begins "file"
21103 MAGIC_CMD=$MAGIC_CMD
21105 # Used on cygwin: DLL creation program.
21108 # Used on cygwin: object dumper.
21111 # Used on cygwin: assembler.
21114 # The name of the directory that contains temporary libtool files.
21117 # How to create reloadable object files.
21118 reload_flag=$lt_reload_flag
21119 reload_cmds=$lt_reload_cmds
21121 # How to pass a linker flag through the compiler.
21122 wl=$lt_lt_prog_compiler_wl_CXX
21124 # Object file suffix (normally "o").
21125 objext="$ac_objext"
21127 # Old archive suffix (normally "a").
21130 # Shared library suffix (normally ".so").
21131 shrext_cmds='$shrext_cmds'
21133 # Executable file suffix (normally "").
21136 # Additional compiler flags for building library objects.
21137 pic_flag=$lt_lt_prog_compiler_pic_CXX
21140 # What is the maximum length of a command?
21141 max_cmd_len=$lt_cv_sys_max_cmd_len
21143 # Does compiler simultaneously support -c and -o options?
21144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21146 # Must we lock files when doing compilation?
21147 need_locks=$lt_need_locks
21149 # Do we need the lib prefix for modules?
21150 need_lib_prefix=$need_lib_prefix
21152 # Do we need a version for libraries?
21153 need_version=$need_version
21155 # Whether dlopen is supported.
21156 dlopen_support=$enable_dlopen
21158 # Whether dlopen of programs is supported.
21159 dlopen_self=$enable_dlopen_self
21161 # Whether dlopen of statically linked programs is supported.
21162 dlopen_self_static=$enable_dlopen_self_static
21164 # Compiler flag to prevent dynamic linking.
21165 link_static_flag=$lt_lt_prog_compiler_static_CXX
21167 # Compiler flag to turn off builtin functions.
21168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21170 # Compiler flag to allow reflexive dlopens.
21171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21173 # Compiler flag to generate shared objects directly from archives.
21174 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21176 # Compiler flag to generate thread-safe objects.
21177 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21179 # Library versioning type.
21180 version_type=$version_type
21182 # Format of library name prefix.
21183 libname_spec=$lt_libname_spec
21185 # List of archive names. First name is the real one, the rest are links.
21186 # The last name is the one that the linker finds with -lNAME.
21187 library_names_spec=$lt_library_names_spec
21189 # The coded name of the library, if different from the real name.
21190 soname_spec=$lt_soname_spec
21192 # Commands used to build and install an old-style archive.
21194 old_archive_cmds=$lt_old_archive_cmds_CXX
21195 old_postinstall_cmds=$lt_old_postinstall_cmds
21196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21198 # Create an old-style archive from a shared archive.
21199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21201 # Create a temporary old-style archive to link instead of a shared archive.
21202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21204 # Commands used to build and install a shared archive.
21205 archive_cmds=$lt_archive_cmds_CXX
21206 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21207 postinstall_cmds=$lt_postinstall_cmds
21208 postuninstall_cmds=$lt_postuninstall_cmds
21210 # Commands used to build a loadable module (assumed same as above if empty)
21211 module_cmds=$lt_module_cmds_CXX
21212 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21214 # Commands to strip libraries.
21215 old_striplib=$lt_old_striplib
21216 striplib=$lt_striplib
21218 # Dependencies to place before the objects being linked to create a
21220 predep_objects=$lt_predep_objects_CXX
21222 # Dependencies to place after the objects being linked to create a
21224 postdep_objects=$lt_postdep_objects_CXX
21226 # Dependencies to place before the objects being linked to create a
21228 predeps=$lt_predeps_CXX
21230 # Dependencies to place after the objects being linked to create a
21232 postdeps=$lt_postdeps_CXX
21234 # The library search path used internally by the compiler when linking
21235 # a shared library.
21236 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21238 # Method to check whether dependent libraries are shared objects.
21239 deplibs_check_method=$lt_deplibs_check_method
21241 # Command to use when deplibs_check_method == file_magic.
21242 file_magic_cmd=$lt_file_magic_cmd
21244 # Flag that allows shared libraries with undefined symbols to be built.
21245 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21247 # Flag that forces no undefined symbols.
21248 no_undefined_flag=$lt_no_undefined_flag_CXX
21250 # Commands used to finish a libtool library installation in a directory.
21251 finish_cmds=$lt_finish_cmds
21253 # Same as above, but a single script fragment to be evaled but not shown.
21254 finish_eval=$lt_finish_eval
21256 # Take the output of nm and produce a listing of raw symbols and C names.
21257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21259 # Transform the output of nm in a proper C declaration
21260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21262 # Transform the output of nm in a C name address pair
21263 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21265 # This is the shared library runtime path variable.
21266 runpath_var=$runpath_var
21268 # This is the shared library path variable.
21269 shlibpath_var=$shlibpath_var
21271 # Is shlibpath searched before the hard-coded library search path?
21272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21274 # How to hardcode a shared library path into an executable.
21275 hardcode_action=$hardcode_action_CXX
21277 # Whether we should hardcode library paths into libraries.
21278 hardcode_into_libs=$hardcode_into_libs
21280 # Flag to hardcode \$libdir into a binary during linking.
21281 # This must work even if \$libdir does not exist.
21282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21284 # If ld is used when linking, flag to hardcode \$libdir into
21285 # a binary during linking. This must work even if \$libdir does
21287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21289 # Whether we need a single -rpath flag with a separated argument.
21290 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21292 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21293 # resulting binary.
21294 hardcode_direct=$hardcode_direct_CXX
21296 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21297 # resulting binary.
21298 hardcode_minus_L=$hardcode_minus_L_CXX
21300 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21301 # the resulting binary.
21302 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21304 # Set to yes if building a shared library automatically hardcodes DIR into the library
21305 # and all subsequent libraries and executables linked against it.
21306 hardcode_automatic=$hardcode_automatic_CXX
21308 # Variables whose values should be saved in libtool wrapper scripts and
21309 # restored at relink time.
21310 variables_saved_for_relink="$variables_saved_for_relink"
21312 # Whether libtool must link a program against all its dependency libraries.
21313 link_all_deplibs=$link_all_deplibs_CXX
21315 # Compile-time system search path for libraries
21316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21318 # Run-time system search path for libraries
21319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21321 # Fix the shell variable \$srcfile for the compiler.
21322 fix_srcfile_path="$fix_srcfile_path_CXX"
21324 # Set to yes if exported symbols are required.
21325 always_export_symbols=$always_export_symbols_CXX
21327 # The commands to list exported symbols.
21328 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21330 # The commands to extract the exported symbol list from a shared archive.
21331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21333 # Symbols that should not be listed in the preloaded symbols.
21334 exclude_expsyms=$lt_exclude_expsyms_CXX
21336 # Symbols that must always be exported.
21337 include_expsyms=$lt_include_expsyms_CXX
21339 # ### END LIBTOOL TAG CONFIG: $tagname
21345 # If there is no Makefile yet, we rely on a make rule to execute
21346 # `config.status --recheck' to rerun these tests and create the
21347 # libtool script then.
21348 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21349 if test -f "$ltmain_in"; then
21350 test -f Makefile
&& make "$ltmain"
21356 ac_cpp
='$CPP $CPPFLAGS'
21357 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21365 with_gnu_ldcxx
=$with_gnu_ld
21366 with_gnu_ld
=$lt_save_with_gnu_ld
21367 lt_cv_path_LDCXX
=$lt_cv_path_LD
21368 lt_cv_path_LD
=$lt_save_path_LD
21369 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21370 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21378 if test -n "$F77" && test "X$F77" != "Xno"; then
21381 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21382 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
21386 archive_cmds_need_lc_F77
=no
21387 allow_undefined_flag_F77
=
21388 always_export_symbols_F77
=no
21389 archive_expsym_cmds_F77
=
21390 export_dynamic_flag_spec_F77
=
21391 hardcode_direct_F77
=no
21392 hardcode_libdir_flag_spec_F77
=
21393 hardcode_libdir_flag_spec_ld_F77
=
21394 hardcode_libdir_separator_F77
=
21395 hardcode_minus_L_F77
=no
21396 hardcode_automatic_F77
=no
21398 module_expsym_cmds_F77
=
21399 link_all_deplibs_F77
=unknown
21400 old_archive_cmds_F77
=$old_archive_cmds
21401 no_undefined_flag_F77
=
21402 whole_archive_flag_spec_F77
=
21403 enable_shared_with_static_runtimes_F77
=no
21405 # Source file extension for f77 test sources.
21408 # Object file extension for compiled f77 test sources.
21412 # Code to be used in simple compile tests
21413 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
21415 # Code to be used in simple link tests
21416 lt_simple_link_test_code
=" program t\n end\n"
21418 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21420 # If no C compiler was specified, use CC.
21423 # If no C compiler flags were specified, use CFLAGS.
21424 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21426 # Allow CC to be a program name with arguments.
21430 # save warnings/boilerplate of simple test code
21431 ac_outfile
=conftest.
$ac_objext
21432 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
21433 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21434 _lt_compiler_boilerplate
=`cat conftest.err`
21437 ac_outfile
=conftest.
$ac_objext
21438 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
21439 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21440 _lt_linker_boilerplate
=`cat conftest.err`
21444 # Allow CC to be a program name with arguments.
21449 for cc_temp
in $compiler""; do
21451 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21452 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21457 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21460 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21461 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21462 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21463 echo "${ECHO_T}$can_build_shared" >&6; }
21465 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21466 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21467 test "$can_build_shared" = "no" && enable_shared
=no
21469 # On AIX, shared libraries and static libraries use the same namespace, and
21470 # are all built from PIC.
21473 test "$enable_shared" = yes && enable_static
=no
21474 if test -n "$RANLIB"; then
21475 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21476 postinstall_cmds
='$RANLIB $lib'
21480 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21481 test "$enable_shared" = yes && enable_static
=no
21485 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21486 echo "${ECHO_T}$enable_shared" >&6; }
21488 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21489 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21490 # Make sure either enable_shared or enable_static is yes.
21491 test "$enable_shared" = yes || enable_static
=yes
21492 { echo "$as_me:$LINENO: result: $enable_static" >&5
21493 echo "${ECHO_T}$enable_static" >&6; }
21498 lt_prog_compiler_wl_F77
=
21499 lt_prog_compiler_pic_F77
=
21500 lt_prog_compiler_static_F77
=
21502 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21503 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21505 if test "$GCC" = yes; then
21506 lt_prog_compiler_wl_F77
='-Wl,'
21507 lt_prog_compiler_static_F77
='-static'
21511 # All AIX code is PIC.
21512 if test "$host_cpu" = ia64
; then
21513 # AIX 5 now supports IA64 processor
21514 lt_prog_compiler_static_F77
='-Bstatic'
21519 # FIXME: we need at least 68020 code to build shared libraries, but
21520 # adding the `-m68020' flag to GCC prevents building anything better,
21522 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
21525 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21526 # PIC is the default for these OSes.
21529 mingw
* | pw32
* | os2
*)
21530 # This hack is so that the source file can tell whether it is being
21531 # built for inclusion in a dll (and should export symbols for example).
21532 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21535 darwin
* | rhapsody
*)
21536 # PIC is the default on this platform
21537 # Common symbols not allowed in MH_DYLIB files
21538 lt_prog_compiler_pic_F77
='-fno-common'
21542 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21543 # Instead, we relocate shared libraries at runtime.
21547 # Just because we use GCC doesn't mean we suddenly get shared libraries
21548 # on systems that don't support them.
21549 lt_prog_compiler_can_build_shared_F77
=no
21554 if test -d /usr
/nec
; then
21555 lt_prog_compiler_pic_F77
=-Kconform_pic
21560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21561 # not for PA HP-UX.
21567 lt_prog_compiler_pic_F77
='-fPIC'
21573 lt_prog_compiler_pic_F77
='-fPIC'
21577 # PORTME Check for flag to pass linker flags through the system compiler.
21580 lt_prog_compiler_wl_F77
='-Wl,'
21581 if test "$host_cpu" = ia64
; then
21582 # AIX 5 now supports IA64 processor
21583 lt_prog_compiler_static_F77
='-Bstatic'
21585 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
21589 # PIC is the default on this platform
21590 # Common symbols not allowed in MH_DYLIB files
21591 case $cc_basename in
21593 lt_prog_compiler_pic_F77
='-qnocommon'
21594 lt_prog_compiler_wl_F77
='-Wl,'
21599 mingw
* | pw32
* | os2
*)
21600 # This hack is so that the source file can tell whether it is being
21601 # built for inclusion in a dll (and should export symbols for example).
21602 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21605 hpux9
* | hpux10
* | hpux11
*)
21606 lt_prog_compiler_wl_F77
='-Wl,'
21607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21608 # not for PA HP-UX.
21614 lt_prog_compiler_pic_F77
='+Z'
21617 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21618 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21621 irix5
* | irix6
* | nonstopux
*)
21622 lt_prog_compiler_wl_F77
='-Wl,'
21623 # PIC (with -KPIC) is the default.
21624 lt_prog_compiler_static_F77
='-non_shared'
21628 lt_prog_compiler_pic_F77
='-KPIC'
21629 lt_prog_compiler_static_F77
='-Bstatic'
21633 case $cc_basename in
21635 lt_prog_compiler_wl_F77
='-Wl,'
21636 lt_prog_compiler_pic_F77
='-KPIC'
21637 lt_prog_compiler_static_F77
='-static'
21639 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21640 # Portland Group compilers (*not* the Pentium gcc compiler,
21641 # which looks to be a dead project)
21642 lt_prog_compiler_wl_F77
='-Wl,'
21643 lt_prog_compiler_pic_F77
='-fpic'
21644 lt_prog_compiler_static_F77
='-Bstatic'
21647 lt_prog_compiler_wl_F77
='-Wl,'
21648 # All Alpha code is PIC.
21649 lt_prog_compiler_static_F77
='-non_shared'
21654 osf3
* | osf4
* | osf5
*)
21655 lt_prog_compiler_wl_F77
='-Wl,'
21656 # All OSF/1 code is PIC.
21657 lt_prog_compiler_static_F77
='-non_shared'
21661 lt_prog_compiler_pic_F77
='-KPIC'
21662 lt_prog_compiler_static_F77
='-Bstatic'
21663 case $cc_basename in
21664 f77
* | f90
* | f95
*)
21665 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21667 lt_prog_compiler_wl_F77
='-Wl,';;
21672 lt_prog_compiler_wl_F77
='-Qoption ld '
21673 lt_prog_compiler_pic_F77
='-PIC'
21674 lt_prog_compiler_static_F77
='-Bstatic'
21677 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21678 lt_prog_compiler_wl_F77
='-Wl,'
21679 lt_prog_compiler_pic_F77
='-KPIC'
21680 lt_prog_compiler_static_F77
='-Bstatic'
21684 if test -d /usr
/nec
;then
21685 lt_prog_compiler_pic_F77
='-Kconform_pic'
21686 lt_prog_compiler_static_F77
='-Bstatic'
21690 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21691 lt_prog_compiler_wl_F77
='-Wl,'
21692 lt_prog_compiler_pic_F77
='-KPIC'
21693 lt_prog_compiler_static_F77
='-Bstatic'
21697 lt_prog_compiler_wl_F77
='-Wl,'
21698 lt_prog_compiler_can_build_shared_F77
=no
21702 lt_prog_compiler_pic_F77
='-pic'
21703 lt_prog_compiler_static_F77
='-Bstatic'
21707 lt_prog_compiler_can_build_shared_F77
=no
21712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21713 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21716 # Check to make sure the PIC flag actually works.
21718 if test -n "$lt_prog_compiler_pic_F77"; then
21720 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21721 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21722 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21725 lt_prog_compiler_pic_works_F77
=no
21726 ac_outfile
=conftest.
$ac_objext
21727 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21728 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21729 # Insert the option either (1) after the last *FLAGS variable, or
21730 # (2) before a word containing "conftest.", or (3) at the end.
21731 # Note that $ac_compile itself does not contain backslashes and begins
21732 # with a dollar sign (not a hyphen), so the echo should work correctly.
21733 # The option is referenced via a variable to avoid confusing sed.
21734 lt_compile
=`echo "$ac_compile" | $SED \
21735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21737 -e 's:$: $lt_compiler_flag:'`
21738 (eval echo "\"\$as_me:21733: $lt_compile\"" >&5)
21739 (eval "$lt_compile" 2>conftest.err
)
21741 cat conftest.err
>&5
21742 echo "$as_me:21737: \$? = $ac_status" >&5
21743 if (exit $ac_status) && test -s "$ac_outfile"; then
21744 # The compiler can only warn and ignore the option if not recognized
21745 # So say no if there are warnings other than the usual output.
21746 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21747 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21748 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21749 lt_prog_compiler_pic_works_F77
=yes
21755 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21756 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21758 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21759 case $lt_prog_compiler_pic_F77 in
21761 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21764 lt_prog_compiler_pic_F77
=
21765 lt_prog_compiler_can_build_shared_F77
=no
21770 # For platforms which do not support PIC, -DPIC is meaningless:
21772 lt_prog_compiler_pic_F77
=
21775 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21780 # Check to make sure the static flag actually works.
21782 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21783 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21784 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21785 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21786 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 lt_prog_compiler_static_works_F77
=no
21789 save_LDFLAGS
="$LDFLAGS"
21790 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21791 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21792 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21793 # The linker can only warn and ignore the option if not recognized
21794 # So say no if there are warnings
21795 if test -s conftest.err
; then
21796 # Append any errors to the config.log.
21797 cat conftest.err
1>&5
21798 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21799 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21800 if diff conftest.exp conftest.er2
>/dev
/null
; then
21801 lt_prog_compiler_static_works_F77
=yes
21804 lt_prog_compiler_static_works_F77
=yes
21808 LDFLAGS
="$save_LDFLAGS"
21811 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21812 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21814 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21817 lt_prog_compiler_static_F77
=
21821 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21823 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 lt_cv_prog_compiler_c_o_F77
=no
21827 $rm -r conftest
2>/dev
/null
21831 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21833 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21834 # Insert the option either (1) after the last *FLAGS variable, or
21835 # (2) before a word containing "conftest.", or (3) at the end.
21836 # Note that $ac_compile itself does not contain backslashes and begins
21837 # with a dollar sign (not a hyphen), so the echo should work correctly.
21838 lt_compile
=`echo "$ac_compile" | $SED \
21839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21841 -e 's:$: $lt_compiler_flag:'`
21842 (eval echo "\"\$as_me:21837: $lt_compile\"" >&5)
21843 (eval "$lt_compile" 2>out
/conftest.err
)
21845 cat out
/conftest.err
>&5
21846 echo "$as_me:21841: \$? = $ac_status" >&5
21847 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21849 # The compiler can only warn and ignore the option if not recognized
21850 # So say no if there are warnings
21851 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21852 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21853 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21854 lt_cv_prog_compiler_c_o_F77
=yes
21859 # SGI C++ compiler will create directory out/ii_files/ for
21860 # template instantiation
21861 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21862 $rm out
/* && rmdir out
21868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21869 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21872 hard_links
="nottested"
21873 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
21874 # do not overwrite the value of need_locks provided by the user
21875 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21876 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21879 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21881 ln conftest.a conftest.b
2>&5 || hard_links
=no
21882 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21883 { echo "$as_me:$LINENO: result: $hard_links" >&5
21884 echo "${ECHO_T}$hard_links" >&6; }
21885 if test "$hard_links" = no
; then
21886 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21887 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21894 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21895 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21898 allow_undefined_flag_F77
=
21899 enable_shared_with_static_runtimes_F77
=no
21901 archive_expsym_cmds_F77
=
21902 old_archive_From_new_cmds_F77
=
21903 old_archive_from_expsyms_cmds_F77
=
21904 export_dynamic_flag_spec_F77
=
21905 whole_archive_flag_spec_F77
=
21906 thread_safe_flag_spec_F77
=
21907 hardcode_libdir_flag_spec_F77
=
21908 hardcode_libdir_flag_spec_ld_F77
=
21909 hardcode_libdir_separator_F77
=
21910 hardcode_direct_F77
=no
21911 hardcode_minus_L_F77
=no
21912 hardcode_shlibpath_var_F77
=unsupported
21913 link_all_deplibs_F77
=unknown
21914 hardcode_automatic_F77
=no
21916 module_expsym_cmds_F77
=
21917 always_export_symbols_F77
=no
21918 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21919 # include_expsyms should be a list of space-separated symbols to be *always*
21920 # included in the symbol list
21921 include_expsyms_F77
=
21922 # exclude_expsyms can be an extended regexp of symbols to exclude
21923 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21924 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21925 # as well as any symbol that contains `d'.
21926 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
21927 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21928 # platforms (ab)use it in PIC code, but their linkers get confused if
21929 # the symbol is explicitly referenced. Since portable code cannot
21930 # rely on this symbol name, it's probably fine to never include it in
21931 # preloaded symbol tables.
21932 extract_expsyms_cmds
=
21933 # Just being paranoid about ensuring that cc_basename is set.
21934 for cc_temp
in $compiler""; do
21936 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21937 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21942 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21945 cygwin
* | mingw
* | pw32
*)
21946 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21947 # When not using gcc, we currently assume that we are using
21948 # Microsoft Visual C++.
21949 if test "$GCC" != yes; then
21954 # we just hope/assume this is gcc and not c89 (= MSVC++)
21963 if test "$with_gnu_ld" = yes; then
21964 # If archive_cmds runs LD, not CC, wlarc should be empty
21967 # Set some defaults for GNU ld with shared library support. These
21968 # are reset later if shared libraries are not supported. Putting them
21969 # here allows them to be overridden if necessary.
21970 runpath_var
=LD_RUN_PATH
21971 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
21972 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
21973 # ancient GNU ld didn't support --whole-archive et. al.
21974 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
21975 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21977 whole_archive_flag_spec_F77
=
21979 supports_anon_versioning
=no
21980 case `$LD -v 2>/dev/null` in
21981 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
21982 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
21983 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
21984 *\
2.11.
*) ;; # other 2.11 versions
21985 *) supports_anon_versioning
=yes ;;
21988 # See if GNU ld supports shared libraries.
21990 aix3
* | aix4
* | aix5
*)
21991 # On AIX/PPC, the GNU linker is very broken
21992 if test "$host_cpu" != ia64
; then
21996 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21997 *** to be unable to reliably create shared libraries on AIX.
21998 *** Therefore, libtool is disabling shared libraries support. If you
21999 *** really care for shared libraries, you may want to modify your PATH
22000 *** so that a non-GNU linker is found, and then restart.
22007 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)'
22008 hardcode_libdir_flag_spec_F77
='-L$libdir'
22009 hardcode_minus_L_F77
=yes
22011 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22012 # that the semantics of dynamic libraries on AmigaOS, at least up
22013 # to version 4, is to share data among multiple programs linked
22014 # with the same dynamic library. Since this doesn't match the
22015 # behavior of shared libraries on other platforms, we can't use
22021 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22022 allow_undefined_flag_F77
=unsupported
22023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22024 # support --undefined. This deserves some investigation. FIXME
22025 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22031 cygwin
* | mingw
* | pw32
*)
22032 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22033 # as there is no search path for DLLs.
22034 hardcode_libdir_flag_spec_F77
='-L$libdir'
22035 allow_undefined_flag_F77
=unsupported
22036 always_export_symbols_F77
=no
22037 enable_shared_with_static_runtimes_F77
=yes
22038 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22040 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
22041 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22042 # If the export-symbols file already is a .def file (1st line
22043 # is EXPORTS), use it as is; otherwise, prepend...
22044 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22045 cp $export_symbols $output_objdir/$soname.def;
22047 echo EXPORTS > $output_objdir/$soname.def;
22048 cat $export_symbols >> $output_objdir/$soname.def;
22050 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22057 hardcode_direct_F77
=no
22058 hardcode_shlibpath_var_F77
=no
22059 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22060 export_dynamic_flag_spec_F77
='${wl}-E'
22061 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22062 # Instead, shared libraries are loaded at an image base (0x10000000 by
22063 # default) and relocated if they conflict, which is a slow very memory
22064 # consuming and fragmenting process. To avoid this, we pick a random,
22065 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22066 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22067 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'
22068 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'
22072 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22074 case $cc_basename,$host_cpu in
22075 pgcc
*) # Portland Group C compiler
22076 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'
22077 tmp_addflag
=' $pic_flag'
22079 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
22080 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'
22081 tmp_addflag
=' $pic_flag -Mnomain' ;;
22082 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
22083 tmp_addflag
=' -i_dynamic' ;;
22084 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
22085 tmp_addflag
=' -i_dynamic -nofor_main' ;;
22086 ifc
* | ifort
*) # Intel Fortran compiler
22087 tmp_addflag
=' -nofor_main' ;;
22089 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22091 if test $supports_anon_versioning = yes; then
22092 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
22093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22094 $echo "local: *; };" >> $output_objdir/$libname.ver~
22095 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22103 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22104 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22107 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22108 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22113 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
22117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22118 *** create shared libraries on Solaris systems. Therefore, libtool
22119 *** is disabling shared libraries support. We urge you to upgrade GNU
22120 *** binutils to release 2.9.1 or newer. Another option is to modify
22121 *** your PATH or compiler configuration so that the native linker is
22122 *** used, and then restart.
22125 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22126 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22127 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22133 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
22134 case `$LD -v 2>&1` in
22135 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
22139 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22140 *** reliably create shared libraries on SCO systems. Therefore, libtool
22141 *** is disabling shared libraries support. We urge you to upgrade GNU
22142 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22143 *** your PATH or compiler configuration so that the native linker is
22144 *** used, and then restart.
22149 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22150 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22151 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22152 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22161 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22163 hardcode_direct_F77
=yes
22164 hardcode_shlibpath_var_F77
=no
22168 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22169 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22170 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22177 if test "$ld_shlibs_F77" = no
; then
22179 hardcode_libdir_flag_spec_F77
=
22180 export_dynamic_flag_spec_F77
=
22181 whole_archive_flag_spec_F77
=
22184 # PORTME fill in a description of your system's linker (not GNU ld)
22187 allow_undefined_flag_F77
=unsupported
22188 always_export_symbols_F77
=yes
22189 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'
22190 # Note: this linker hardcodes the directories in LIBPATH if there
22191 # are no directories specified by -L.
22192 hardcode_minus_L_F77
=yes
22193 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22194 # Neither direct hardcoding nor static linking is supported with a
22196 hardcode_direct_F77
=unsupported
22201 if test "$host_cpu" = ia64
; then
22202 # On IA64, the linker does run time linking by default, so we don't
22203 # have to do anything special.
22204 aix_use_runtimelinking
=no
22205 exp_sym_flag
='-Bexport'
22208 # If we're using GNU nm, then we don't want the "-C" option.
22209 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22210 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
22211 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'
22213 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'
22215 aix_use_runtimelinking
=no
22217 # Test if we are trying to use run time linking or normal
22218 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22219 # need to do runtime linking.
22220 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
22221 for ld_flag
in $LDFLAGS; do
22222 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
22223 aix_use_runtimelinking
=yes
22230 exp_sym_flag
='-bexport'
22231 no_entry_flag
='-bnoentry'
22234 # When large executables or shared objects are built, AIX ld can
22235 # have problems creating the table of contents. If linking a library
22236 # or program results in "error TOC overflow" add -mminimal-toc to
22237 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22238 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22240 archive_cmds_F77
=''
22241 hardcode_direct_F77
=yes
22242 hardcode_libdir_separator_F77
=':'
22243 link_all_deplibs_F77
=yes
22245 if test "$GCC" = yes; then
22246 case $host_os in aix4.
[012]|aix4.
[012].
*)
22247 # We only want to do this on AIX 4.2 and lower, the check
22248 # below for broken collect2 doesn't work under 4.3+
22249 collect2name
=`${CC} -print-prog-name=collect2`
22250 if test -f "$collect2name" && \
22251 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
22253 # We have reworked collect2
22254 hardcode_direct_F77
=yes
22256 # We have old collect2
22257 hardcode_direct_F77
=unsupported
22258 # It fails to find uninstalled libraries when the uninstalled
22259 # path is not listed in the libpath. Setting hardcode_minus_L
22260 # to unsupported forces relinking
22261 hardcode_minus_L_F77
=yes
22262 hardcode_libdir_flag_spec_F77
='-L$libdir'
22263 hardcode_libdir_separator_F77
=
22267 shared_flag
='-shared'
22268 if test "$aix_use_runtimelinking" = yes; then
22269 shared_flag
="$shared_flag "'${wl}-G'
22273 if test "$host_cpu" = ia64
; then
22274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22275 # chokes on -Wl,-G. The following line is correct:
22278 if test "$aix_use_runtimelinking" = yes; then
22279 shared_flag
='${wl}-G'
22281 shared_flag
='${wl}-bM:SRE'
22286 # It seems that -bexpall does not export symbols beginning with
22287 # underscore (_), so it is better to generate a list of symbols to export.
22288 always_export_symbols_F77
=yes
22289 if test "$aix_use_runtimelinking" = yes; then
22290 # Warning - without using the other runtime loading flags (-brtl),
22291 # -berok will link without error, but may produce a broken library.
22292 allow_undefined_flag_F77
='-berok'
22293 # Determine the default libpath from the value encoded in an empty executable.
22294 cat >conftest.
$ac_ext <<_ACEOF
22299 rm -f conftest.
$ac_objext conftest
$ac_exeext
22300 if { (ac_try
="$ac_link"
22301 case "(($ac_try" in
22302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22303 *) ac_try_echo=$ac_try;;
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_link") 2>conftest.er1
22308 grep -v '^ *+' conftest.er1 >conftest.err
22310 cat conftest.err >&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } &&
22313 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22314 { (case "(($ac_try" in
22315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22316 *) ac_try_echo
=$ac_try;;
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_try") 2>&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; } &&
22323 { ac_try
='test -s conftest$ac_exeext'
22324 { (case "(($ac_try" in
22325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22326 *) ac_try_echo=$ac_try;;
22328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22329 (eval "$ac_try") 2>&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; }; then
22334 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22336 # Check for a 64-bit object if we didn't find anything.
22337 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; }
22340 echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22346 rm -f core conftest.err conftest.$ac_objext \
22347 conftest$ac_exeext conftest.$ac_ext
22348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22350 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22351 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"
22353 if test "$host_cpu" = ia64; then
22354 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22355 allow_undefined_flag_F77="-z nodefs"
22356 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"
22358 # Determine the default libpath from the value encoded in an empty executable.
22359 cat >conftest.$ac_ext <<_ACEOF
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (ac_try="$ac_link"
22366 case "(($ac_try" in
22367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22368 *) ac_try_echo
=$ac_try;;
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_link") 2>conftest.er1
22373 grep -v '^ *+' conftest.er1
>conftest.err
22375 cat conftest.err
>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } &&
22378 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22379 { (case "(($ac_try" in
22380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_try") 2>&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; } &&
22388 { ac_try='test -s conftest$ac_exeext'
22389 { (case "(($ac_try" in
22390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22391 *) ac_try_echo
=$ac_try;;
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_try") 2>&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
22399 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22401 # Check for a 64-bit object if we didn't find anything.
22402 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; }
22405 echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.
$ac_ext >&5
22411 rm -f core conftest.err conftest.
$ac_objext \
22412 conftest
$ac_exeext conftest.
$ac_ext
22413 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22415 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
22416 # Warning - without using the other run time loading flags,
22417 # -berok will link without error, but may produce a broken library.
22418 no_undefined_flag_F77
=' ${wl}-bernotok'
22419 allow_undefined_flag_F77
=' ${wl}-berok'
22420 # Exported symbols can be pulled into shared objects from archives
22421 whole_archive_flag_spec_F77
='$convenience'
22422 archive_cmds_need_lc_F77
=yes
22423 # This is similar to how AIX traditionally builds its shared libraries.
22424 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'
22430 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)'
22431 hardcode_libdir_flag_spec_F77
='-L$libdir'
22432 hardcode_minus_L_F77
=yes
22433 # see comment about different semantics on the GNU ld section
22438 export_dynamic_flag_spec_F77
=-rdynamic
22441 cygwin
* | mingw
* | pw32
*)
22442 # When not using gcc, we currently assume that we are using
22443 # Microsoft Visual C++.
22444 # hardcode_libdir_flag_spec is actually meaningless, as there is
22445 # no search path for DLLs.
22446 hardcode_libdir_flag_spec_F77
=' '
22447 allow_undefined_flag_F77
=unsupported
22448 # Tell ltmain to make .lib files, not .a files.
22450 # Tell ltmain to make .dll files, not .so files.
22452 # FIXME: Setting linknames here is a bad hack.
22453 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22454 # The linker will automatically build a .lib file if we build a DLL.
22455 old_archive_From_new_cmds_F77
='true'
22456 # FIXME: Should let the user specify the lib program.
22457 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
22458 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
22459 enable_shared_with_static_runtimes_F77
=yes
22462 darwin
* | rhapsody
*)
22464 rhapsody
* | darwin1.
[012])
22465 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
22468 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22469 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22471 case ${MACOSX_DEPLOYMENT_TARGET} in
22473 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22476 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
22482 archive_cmds_need_lc_F77
=no
22483 hardcode_direct_F77
=no
22484 hardcode_automatic_F77
=yes
22485 hardcode_shlibpath_var_F77
=unsupported
22486 whole_archive_flag_spec_F77
=''
22487 link_all_deplibs_F77
=yes
22488 if test "$GCC" = yes ; then
22489 output_verbose_link_cmd
='echo'
22490 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22491 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22492 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22493 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}'
22494 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}'
22496 case $cc_basename in
22498 output_verbose_link_cmd
='echo'
22499 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22500 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22501 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22502 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}'
22503 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}'
22513 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22514 hardcode_libdir_flag_spec_F77
='-L$libdir'
22515 hardcode_shlibpath_var_F77
=no
22522 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22523 # support. Future versions do this automatically, but an explicit c++rt0.o
22524 # does not break anything, and helps significantly (at the cost of a little
22527 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22528 hardcode_libdir_flag_spec_F77
='-R$libdir'
22529 hardcode_direct_F77
=yes
22530 hardcode_shlibpath_var_F77
=no
22533 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22535 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22536 hardcode_direct_F77
=yes
22537 hardcode_minus_L_F77
=yes
22538 hardcode_shlibpath_var_F77
=no
22541 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22542 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
22543 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22544 hardcode_libdir_flag_spec_F77
='-R$libdir'
22545 hardcode_direct_F77
=yes
22546 hardcode_shlibpath_var_F77
=no
22550 if test "$GCC" = yes; then
22551 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'
22553 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'
22555 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22556 hardcode_libdir_separator_F77
=:
22557 hardcode_direct_F77
=yes
22559 # hardcode_minus_L: Not really in the search PATH,
22560 # but as the default location of the library.
22561 hardcode_minus_L_F77
=yes
22562 export_dynamic_flag_spec_F77
='${wl}-E'
22566 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22567 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22569 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22571 if test "$with_gnu_ld" = no
; then
22572 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22573 hardcode_libdir_separator_F77
=:
22575 hardcode_direct_F77
=yes
22576 export_dynamic_flag_spec_F77
='${wl}-E'
22578 # hardcode_minus_L: Not really in the search PATH,
22579 # but as the default location of the library.
22580 hardcode_minus_L_F77
=yes
22585 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22588 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22591 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22594 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22600 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22603 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22606 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22610 if test "$with_gnu_ld" = no
; then
22611 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22612 hardcode_libdir_separator_F77
=:
22616 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22617 hardcode_direct_F77
=no
22618 hardcode_shlibpath_var_F77
=no
22621 hardcode_direct_F77
=yes
22622 export_dynamic_flag_spec_F77
='${wl}-E'
22624 # hardcode_minus_L: Not really in the search PATH,
22625 # but as the default location of the library.
22626 hardcode_minus_L_F77
=yes
22632 irix5
* | irix6
* | nonstopux
*)
22633 if test "$GCC" = yes; then
22634 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'
22636 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'
22637 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22639 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22640 hardcode_libdir_separator_F77
=:
22641 link_all_deplibs_F77
=yes
22645 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22646 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22648 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22650 hardcode_libdir_flag_spec_F77
='-R$libdir'
22651 hardcode_direct_F77
=yes
22652 hardcode_shlibpath_var_F77
=no
22656 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22657 hardcode_direct_F77
=yes
22658 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22659 hardcode_libdir_separator_F77
=:
22660 hardcode_shlibpath_var_F77
=no
22664 hardcode_direct_F77
=yes
22665 hardcode_shlibpath_var_F77
=no
22666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22667 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22668 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22669 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22670 export_dynamic_flag_spec_F77
='${wl}-E'
22673 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22674 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22675 hardcode_libdir_flag_spec_F77
='-R$libdir'
22678 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22679 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22686 hardcode_libdir_flag_spec_F77
='-L$libdir'
22687 hardcode_minus_L_F77
=yes
22688 allow_undefined_flag_F77
=unsupported
22689 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'
22690 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22694 if test "$GCC" = yes; then
22695 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22696 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'
22698 allow_undefined_flag_F77
=' -expect_unresolved \*'
22699 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'
22701 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22702 hardcode_libdir_separator_F77
=:
22705 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22706 if test "$GCC" = yes; then
22707 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22708 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'
22709 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22711 allow_undefined_flag_F77
=' -expect_unresolved \*'
22712 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'
22713 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~
22714 $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'
22716 # Both c and cxx compiler support -rpath directly
22717 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22719 hardcode_libdir_separator_F77
=:
22723 no_undefined_flag_F77
=' -z text'
22724 if test "$GCC" = yes; then
22726 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22727 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22728 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22731 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22732 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22735 hardcode_libdir_flag_spec_F77
='-R$libdir'
22736 hardcode_shlibpath_var_F77
=no
22738 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22740 # The compiler driver will combine linker options so we
22741 # cannot just pass the convience library names through
22742 # without $wl, iff we do not link with $LD.
22743 # Luckily, gcc supports the same syntax we need for Sun Studio.
22744 # Supported since Solaris 2.6 (maybe 2.5.1?)
22747 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22749 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' ;;
22752 link_all_deplibs_F77
=yes
22756 if test "x$host_vendor" = xsequent
; then
22757 # Use $CC to link under sequent, because it throws in some extra .o
22758 # files that make .init and .fini sections work.
22759 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22761 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22763 hardcode_libdir_flag_spec_F77
='-L$libdir'
22764 hardcode_direct_F77
=yes
22765 hardcode_minus_L_F77
=yes
22766 hardcode_shlibpath_var_F77
=no
22770 case $host_vendor in
22772 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22773 hardcode_direct_F77
=yes # is this really true???
22776 ## LD is ld it makes a PLAMLIB
22777 ## CC just makes a GrossModule.
22778 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22779 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22780 hardcode_direct_F77
=no
22783 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22784 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22787 runpath_var
='LD_RUN_PATH'
22788 hardcode_shlibpath_var_F77
=no
22792 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22793 hardcode_shlibpath_var_F77
=no
22794 export_dynamic_flag_spec_F77
='-Bexport'
22798 if test -d /usr
/nec
; then
22799 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22800 hardcode_shlibpath_var_F77
=no
22801 runpath_var
=LD_RUN_PATH
22802 hardcode_runpath_var
=yes
22807 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22808 no_undefined_flag_F77
='${wl}-z,text'
22809 archive_cmds_need_lc_F77
=no
22810 hardcode_shlibpath_var_F77
=no
22811 runpath_var
='LD_RUN_PATH'
22813 if test "$GCC" = yes; then
22814 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22815 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22817 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22818 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22822 sysv5
* | sco3.2v5
* | sco5v6
*)
22823 # Note: We can NOT use -z defs as we might desire, because we do not
22824 # link with -lc, and that would cause any symbols used from libc to
22825 # always be unresolved, which means just about no library would
22826 # ever link correctly. If we're not using GNU ld we use -z text
22827 # though, which does catch some bad symbols but isn't as heavy-handed
22829 no_undefined_flag_F77
='${wl}-z,text'
22830 allow_undefined_flag_F77
='${wl}-z,nodefs'
22831 archive_cmds_need_lc_F77
=no
22832 hardcode_shlibpath_var_F77
=no
22833 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22834 hardcode_libdir_separator_F77
=':'
22835 link_all_deplibs_F77
=yes
22836 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22837 runpath_var
='LD_RUN_PATH'
22839 if test "$GCC" = yes; then
22840 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22841 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22843 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22844 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22849 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22850 hardcode_libdir_flag_spec_F77
='-L$libdir'
22851 hardcode_shlibpath_var_F77
=no
22860 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22861 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22862 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22865 # Do we need to explicitly link libc?
22867 case "x$archive_cmds_need_lc_F77" in
22869 # Assume -lc should be added
22870 archive_cmds_need_lc_F77
=yes
22872 if test "$enable_shared" = yes && test "$GCC" = yes; then
22873 case $archive_cmds_F77 in
22875 # FIXME: we may have to deal with multi-command sequences.
22878 # Test whether the compiler implicitly links with -lc since on some
22879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22880 # to ld, don't add -lc before -lgcc.
22881 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22882 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22884 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22887 (eval $ac_compile) 2>&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } 2>conftest.err
; then
22893 libobjs
=conftest.
$ac_objext
22895 wl
=$lt_prog_compiler_wl_F77
22896 pic_flag
=$lt_prog_compiler_pic_F77
22902 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
22903 allow_undefined_flag_F77
=
22904 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22905 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }
22910 archive_cmds_need_lc_F77
=no
22912 archive_cmds_need_lc_F77
=yes
22914 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
22916 cat conftest.err
1>&5
22919 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22920 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22927 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22928 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22929 library_names_spec
=
22930 libname_spec
='lib$name'
22934 postuninstall_cmds
=
22938 shlibpath_overrides_runpath
=unknown
22940 dynamic_linker
="$host_os ld.so"
22941 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22942 if test "$GCC" = yes; then
22943 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22944 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
22945 # if the path contains ";" then we assume it to be the separator
22946 # otherwise default to the standard path separator (i.e. ":") - it is
22947 # assumed that no part of a normal pathname contains ";" but that should
22948 # okay in the real world where ";" in dirpaths is itself problematic.
22949 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22951 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22954 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
22956 need_lib_prefix
=unknown
22957 hardcode_into_libs
=no
22959 # when you set need_version to no, make sure it does not cause -set_version
22960 # flags to be left without arguments
22961 need_version
=unknown
22966 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22967 shlibpath_var
=LIBPATH
22969 # AIX 3 has no versioning support, so we append a major version to the name.
22970 soname_spec
='${libname}${release}${shared_ext}$major'
22977 hardcode_into_libs
=yes
22978 if test "$host_cpu" = ia64
; then
22979 # AIX 5 supports IA64
22980 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22981 shlibpath_var
=LD_LIBRARY_PATH
22983 # With GCC up to 2.95.x, collect2 would create an import file
22984 # for dependence libraries. The import file would start with
22985 # the line `#! .'. This would cause the generated library to
22986 # depend on `.', always an invalid library. This was fixed in
22987 # development snapshots of GCC prior to 3.0.
22989 aix4 | aix4.
[01] | aix4.
[01].
*)
22990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22992 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
22995 can_build_shared
=no
22999 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23000 # soname into executable. Probably we can add versioning support to
23001 # collect2, so additional links can be useful in future.
23002 if test "$aix_use_runtimelinking" = yes; then
23003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23004 # instead of lib<name>.a to let people know that these are not
23005 # typical AIX shared libraries.
23006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23008 # We preserve .a as extension for shared libraries through AIX4.2
23009 # and later when we are not doing run time linking.
23010 library_names_spec
='${libname}${release}.a $libname.a'
23011 soname_spec
='${libname}${release}${shared_ext}$major'
23013 shlibpath_var
=LIBPATH
23018 library_names_spec
='$libname.ixlibrary $libname.a'
23019 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23020 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'
23024 library_names_spec
='${libname}${shared_ext}'
23025 dynamic_linker
="$host_os ld.so"
23026 shlibpath_var
=LIBRARY_PATH
23032 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23033 soname_spec
='${libname}${release}${shared_ext}$major'
23034 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
23035 shlibpath_var
=LD_LIBRARY_PATH
23036 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23037 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
23038 # the default ld.so.conf also contains /usr/contrib/lib and
23039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23040 # libtool to hard-code these into programs
23043 cygwin
* | mingw
* | pw32
*)
23044 version_type
=windows
23049 case $GCC,$host_os in
23050 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
23051 library_names_spec
='$libname.dll.a'
23052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23053 postinstall_cmds
='base_file=`basename \${file}`~
23054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23055 dldir=$destdir/`dirname \$dlpath`~
23056 test -d \$dldir || mkdir -p \$dldir~
23057 $install_prog $dir/$dlname \$dldir/$dlname~
23058 chmod a+x \$dldir/$dlname'
23059 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23060 dlpath=$dir/\$dldll~
23062 shlibpath_overrides_runpath
=yes
23066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23067 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23068 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
23071 # MinGW DLLs use traditional 'lib' prefix
23072 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23073 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23074 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
23075 # It is most probably a Windows format PATH printed by
23076 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23077 # path with ; separators, and with drive letters. We can handle the
23078 # drive letters (cygwin fileutils understands them), so leave them,
23079 # especially as we might pass files found there to a mingw objdump,
23080 # which wouldn't understand a cygwinified path. Ahh.
23081 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23083 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23087 # pw32 DLLs use 'pw' prefix rather than 'lib'
23088 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23094 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23097 dynamic_linker
='Win32 ld.exe'
23098 # FIXME: first we should search . and the directory the executable is in
23102 darwin
* | rhapsody
*)
23103 dynamic_linker
="$host_os dyld"
23104 version_type
=darwin
23107 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23108 soname_spec
='${libname}${release}${major}$shared_ext'
23109 shlibpath_overrides_runpath
=yes
23110 shlibpath_var
=DYLD_LIBRARY_PATH
23111 shrext_cmds
='.dylib'
23112 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23113 if test "$GCC" = yes; then
23114 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"`
23116 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
23118 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
23125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23126 soname_spec
='${libname}${release}${shared_ext}$major'
23127 shlibpath_var
=LD_LIBRARY_PATH
23138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23139 soname_spec
='${libname}${release}${shared_ext}$major'
23140 shlibpath_var
=LD_LIBRARY_PATH
23141 shlibpath_overrides_runpath
=no
23142 hardcode_into_libs
=yes
23143 dynamic_linker
='GNU ld.so'
23146 freebsd
* | dragonfly
*)
23147 # DragonFly does not have aout. When/if they implement a new
23148 # versioning mechanism, adjust this.
23149 if test -x /usr
/bin
/objformat
; then
23150 objformat
=`/usr/bin/objformat`
23153 freebsd
[123]*) objformat
=aout
;;
23154 *) objformat
=elf
;;
23157 version_type
=freebsd-
$objformat
23158 case $version_type in
23160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23165 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23169 shlibpath_var
=LD_LIBRARY_PATH
23172 shlibpath_overrides_runpath
=yes
23174 freebsd3.
[01]* | freebsdelf3.
[01]*)
23175 shlibpath_overrides_runpath
=yes
23176 hardcode_into_libs
=yes
23178 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
23179 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
23180 shlibpath_overrides_runpath
=no
23181 hardcode_into_libs
=yes
23183 freebsd
*) # from 4.6 on
23184 shlibpath_overrides_runpath
=yes
23185 hardcode_into_libs
=yes
23194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23195 soname_spec
='${libname}${release}${shared_ext}$major'
23196 shlibpath_var
=LD_LIBRARY_PATH
23197 hardcode_into_libs
=yes
23200 hpux9
* | hpux10
* | hpux11
*)
23201 # Give a soname corresponding to the major version so that dld.sl refuses to
23202 # link against other versions.
23209 hardcode_into_libs
=yes
23210 dynamic_linker
="$host_os dld.so"
23211 shlibpath_var
=LD_LIBRARY_PATH
23212 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23214 soname_spec
='${libname}${release}${shared_ext}$major'
23215 if test "X$HPUX_IA64_MODE" = X32
; then
23216 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23218 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
23220 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23224 hardcode_into_libs
=yes
23225 dynamic_linker
="$host_os dld.sl"
23226 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
23227 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23229 soname_spec
='${libname}${release}${shared_ext}$major'
23230 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23231 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23235 dynamic_linker
="$host_os dld.sl"
23236 shlibpath_var
=SHLIB_PATH
23237 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
23238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23239 soname_spec
='${libname}${release}${shared_ext}$major'
23242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23243 postinstall_cmds
='chmod 555 $lib'
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 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
23253 shlibpath_var
=LD_LIBRARY_PATH
23254 shlibpath_overrides_runpath
=no
23255 hardcode_into_libs
=yes
23258 irix5
* | irix6
* | nonstopux
*)
23260 nonstopux
*) version_type
=nonstopux
;;
23262 if test "$lt_cv_prog_gnu_ld" = yes; then
23270 soname_spec
='${libname}${release}${shared_ext}$major'
23271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23273 irix5
* | nonstopux
*)
23274 libsuff
= shlibsuff
=
23277 case $LD in # libtool.m4 will add one of these switches to LD
23278 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
23279 libsuff
= shlibsuff
= libmagic
=32-bit;;
23280 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
23281 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
23282 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
23283 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
23284 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23288 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23289 shlibpath_overrides_runpath
=no
23290 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23291 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23292 hardcode_into_libs
=yes
23295 # No shared lib support for Linux oldld, aout, or coff.
23296 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23300 # This must be Linux ELF.
23305 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23306 soname_spec
='${libname}${release}${shared_ext}$major'
23307 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23308 shlibpath_var
=LD_LIBRARY_PATH
23309 shlibpath_overrides_runpath
=no
23310 # This implies no fast_install, which is unacceptable.
23311 # Some rework will be needed to allow for fast_install
23312 # before this can be enabled.
23313 hardcode_into_libs
=yes
23315 # Append ld.so.conf contents to the search path
23316 if test -f /etc
/ld.so.conf
; then
23317 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' ' '`
23318 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23321 # We used to test for /lib/ld.so.1 and disable shared libraries on
23322 # powerpc, because MkLinux only supported shared libraries with the
23323 # GNU dynamic linker. Since this was broken with cross compilers,
23324 # most powerpc-linux boxes support dynamic linking these days and
23325 # people can always --disable-shared, the test was removed, and we
23326 # assume the GNU/Linux dynamic linker is in use.
23327 dynamic_linker
='GNU/Linux ld.so'
23334 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23335 soname_spec
='${libname}${release}${shared_ext}$major'
23336 shlibpath_var
=LD_LIBRARY_PATH
23337 shlibpath_overrides_runpath
=no
23338 hardcode_into_libs
=yes
23339 dynamic_linker
='GNU ld.so'
23346 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23348 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23349 dynamic_linker
='NetBSD (a.out) ld.so'
23351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23352 soname_spec
='${libname}${release}${shared_ext}$major'
23353 dynamic_linker
='NetBSD ld.elf_so'
23355 shlibpath_var
=LD_LIBRARY_PATH
23356 shlibpath_overrides_runpath
=yes
23357 hardcode_into_libs
=yes
23362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23363 shlibpath_var
=LD_LIBRARY_PATH
23364 shlibpath_overrides_runpath
=yes
23371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23372 soname_spec
='${libname}${release}${shared_ext}$major'
23373 shlibpath_var
=LD_LIBRARY_PATH
23374 shlibpath_overrides_runpath
=yes
23379 sys_lib_dlsearch_path_spec
="/usr/lib"
23381 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23383 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23384 *) need_version
=no
;;
23386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23387 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23388 shlibpath_var
=LD_LIBRARY_PATH
23389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23391 openbsd2.
[89] | openbsd2.
[89].
*)
23392 shlibpath_overrides_runpath
=no
23395 shlibpath_overrides_runpath
=yes
23399 shlibpath_overrides_runpath
=yes
23404 libname_spec
='$name'
23407 library_names_spec
='$libname${shared_ext} $libname.a'
23408 dynamic_linker
='OS/2 ld.exe'
23409 shlibpath_var
=LIBPATH
23412 osf3
* | osf4
* | osf5
*)
23416 soname_spec
='${libname}${release}${shared_ext}$major'
23417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23418 shlibpath_var
=LD_LIBRARY_PATH
23419 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23420 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23427 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23428 soname_spec
='${libname}${release}${shared_ext}$major'
23429 shlibpath_var
=LD_LIBRARY_PATH
23430 shlibpath_overrides_runpath
=yes
23431 hardcode_into_libs
=yes
23432 # ldd complains unless libraries are executable
23433 postinstall_cmds
='chmod +x $lib'
23438 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23439 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23440 shlibpath_var
=LD_LIBRARY_PATH
23441 shlibpath_overrides_runpath
=yes
23442 if test "$with_gnu_ld" = yes; then
23450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23451 soname_spec
='${libname}${release}${shared_ext}$major'
23452 shlibpath_var
=LD_LIBRARY_PATH
23453 case $host_vendor in
23455 shlibpath_overrides_runpath
=no
23457 export_dynamic_flag_spec
='${wl}-Blargedynsym'
23458 runpath_var
=LD_RUN_PATH
23466 shlibpath_overrides_runpath
=no
23467 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23473 if test -d /usr
/nec
;then
23475 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23476 soname_spec
='$libname${shared_ext}.$major'
23477 shlibpath_var
=LD_LIBRARY_PATH
23481 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23482 version_type
=freebsd-elf
23485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23486 soname_spec
='${libname}${release}${shared_ext}$major'
23487 shlibpath_var
=LD_LIBRARY_PATH
23488 hardcode_into_libs
=yes
23489 if test "$with_gnu_ld" = yes; then
23490 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23491 shlibpath_overrides_runpath
=no
23493 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23494 shlibpath_overrides_runpath
=yes
23497 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23501 sys_lib_dlsearch_path_spec
='/usr/lib'
23506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23507 soname_spec
='${libname}${release}${shared_ext}$major'
23508 shlibpath_var
=LD_LIBRARY_PATH
23515 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23516 echo "${ECHO_T}$dynamic_linker" >&6; }
23517 test "$dynamic_linker" = no
&& can_build_shared
=no
23519 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23520 if test "$GCC" = yes; then
23521 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23524 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23525 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23526 hardcode_action_F77
=
23527 if test -n "$hardcode_libdir_flag_spec_F77" || \
23528 test -n "$runpath_var_F77" || \
23529 test "X$hardcode_automatic_F77" = "Xyes" ; then
23531 # We can hardcode non-existant directories.
23532 if test "$hardcode_direct_F77" != no
&&
23533 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23534 # have to relink, otherwise we might link with an installed library
23535 # when we should be linking with a yet-to-be-installed one
23536 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23537 test "$hardcode_minus_L_F77" != no
; then
23538 # Linking always hardcodes the temporary library directory.
23539 hardcode_action_F77
=relink
23541 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23542 hardcode_action_F77
=immediate
23545 # We cannot hardcode anything, or else we can only hardcode existing
23547 hardcode_action_F77
=unsupported
23549 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23550 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23552 if test "$hardcode_action_F77" = relink
; then
23553 # Fast installation is not supported
23554 enable_fast_install
=no
23555 elif test "$shlibpath_overrides_runpath" = yes ||
23556 test "$enable_shared" = no
; then
23557 # Fast installation is not necessary
23558 enable_fast_install
=needless
23562 # The else clause should only fire when bootstrapping the
23563 # libtool distribution, otherwise you forgot to ship ltmain.sh
23564 # with your package, and you will get complaints that there are
23565 # no rules to generate ltmain.sh.
23566 if test -f "$ltmain"; then
23567 # See if we are running on zsh, and set the options which allow our commands through
23568 # without removal of \ escapes.
23569 if test -n "${ZSH_VERSION+set}" ; then
23570 setopt NO_GLOB_SUBST
23572 # Now quote all the things that may contain metacharacters while being
23573 # careful not to overquote the AC_SUBSTed values. We take copies of the
23574 # variables and quote the copies for generation of the libtool script.
23575 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23579 deplibs_check_method reload_flag reload_cmds need_locks \
23580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23581 lt_cv_sys_global_symbol_to_c_name_address \
23582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23583 old_postinstall_cmds old_postuninstall_cmds \
23587 lt_prog_compiler_wl_F77 \
23588 lt_prog_compiler_pic_F77 \
23589 lt_prog_compiler_static_F77 \
23590 lt_prog_compiler_no_builtin_flag_F77 \
23591 export_dynamic_flag_spec_F77 \
23592 thread_safe_flag_spec_F77 \
23593 whole_archive_flag_spec_F77 \
23594 enable_shared_with_static_runtimes_F77 \
23595 old_archive_cmds_F77 \
23596 old_archive_from_new_cmds_F77 \
23597 predep_objects_F77 \
23598 postdep_objects_F77 \
23601 compiler_lib_search_path_F77 \
23603 archive_expsym_cmds_F77 \
23604 postinstall_cmds_F77 \
23605 postuninstall_cmds_F77 \
23606 old_archive_from_expsyms_cmds_F77 \
23607 allow_undefined_flag_F77 \
23608 no_undefined_flag_F77 \
23609 export_symbols_cmds_F77 \
23610 hardcode_libdir_flag_spec_F77 \
23611 hardcode_libdir_flag_spec_ld_F77 \
23612 hardcode_libdir_separator_F77 \
23613 hardcode_automatic_F77 \
23615 module_expsym_cmds_F77 \
23616 lt_cv_prog_compiler_c_o_F77 \
23617 exclude_expsyms_F77 \
23618 include_expsyms_F77
; do
23621 old_archive_cmds_F77 | \
23622 old_archive_from_new_cmds_F77 | \
23623 archive_cmds_F77 | \
23624 archive_expsym_cmds_F77 | \
23625 module_cmds_F77 | \
23626 module_expsym_cmds_F77 | \
23627 old_archive_from_expsyms_cmds_F77 | \
23628 export_symbols_cmds_F77 | \
23629 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23630 postinstall_cmds | postuninstall_cmds | \
23631 old_postinstall_cmds | old_postuninstall_cmds | \
23632 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23633 # Double-quote double-evaled strings.
23634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23643 *'\$0 --fallback-echo"')
23644 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23650 cat <<__EOF__ >> "$cfgfile"
23651 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23653 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23655 # Shell to use when invoking shell scripts.
23658 # Whether or not to build shared libraries.
23659 build_libtool_libs=$enable_shared
23661 # Whether or not to build static libraries.
23662 build_old_libs=$enable_static
23664 # Whether or not to add -lc for building shared libraries.
23665 build_libtool_need_lc=$archive_cmds_need_lc_F77
23667 # Whether or not to disallow shared libs when runtime libs are static
23668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23670 # Whether or not to optimize for fast installation.
23671 fast_install=$enable_fast_install
23674 host_alias=$host_alias
23678 # The build system.
23679 build_alias=$build_alias
23683 # An echo program that does not interpret backslashes.
23688 AR_FLAGS=$lt_AR_FLAGS
23693 # LTCC compiler flags.
23694 LTCFLAGS=$lt_LTCFLAGS
23696 # A language-specific compiler.
23697 CC=$lt_compiler_F77
23699 # Is the compiler the GNU C compiler?
23705 # The linker used to build libraries.
23708 # Whether we need hard or soft links.
23711 # A BSD-compatible nm program.
23714 # A symbol stripping program
23717 # Used to examine libraries when file_magic_cmd begins "file"
23718 MAGIC_CMD=$MAGIC_CMD
23720 # Used on cygwin: DLL creation program.
23723 # Used on cygwin: object dumper.
23726 # Used on cygwin: assembler.
23729 # The name of the directory that contains temporary libtool files.
23732 # How to create reloadable object files.
23733 reload_flag=$lt_reload_flag
23734 reload_cmds=$lt_reload_cmds
23736 # How to pass a linker flag through the compiler.
23737 wl=$lt_lt_prog_compiler_wl_F77
23739 # Object file suffix (normally "o").
23740 objext="$ac_objext"
23742 # Old archive suffix (normally "a").
23745 # Shared library suffix (normally ".so").
23746 shrext_cmds='$shrext_cmds'
23748 # Executable file suffix (normally "").
23751 # Additional compiler flags for building library objects.
23752 pic_flag=$lt_lt_prog_compiler_pic_F77
23755 # What is the maximum length of a command?
23756 max_cmd_len=$lt_cv_sys_max_cmd_len
23758 # Does compiler simultaneously support -c and -o options?
23759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23761 # Must we lock files when doing compilation?
23762 need_locks=$lt_need_locks
23764 # Do we need the lib prefix for modules?
23765 need_lib_prefix=$need_lib_prefix
23767 # Do we need a version for libraries?
23768 need_version=$need_version
23770 # Whether dlopen is supported.
23771 dlopen_support=$enable_dlopen
23773 # Whether dlopen of programs is supported.
23774 dlopen_self=$enable_dlopen_self
23776 # Whether dlopen of statically linked programs is supported.
23777 dlopen_self_static=$enable_dlopen_self_static
23779 # Compiler flag to prevent dynamic linking.
23780 link_static_flag=$lt_lt_prog_compiler_static_F77
23782 # Compiler flag to turn off builtin functions.
23783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23785 # Compiler flag to allow reflexive dlopens.
23786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23788 # Compiler flag to generate shared objects directly from archives.
23789 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23791 # Compiler flag to generate thread-safe objects.
23792 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23794 # Library versioning type.
23795 version_type=$version_type
23797 # Format of library name prefix.
23798 libname_spec=$lt_libname_spec
23800 # List of archive names. First name is the real one, the rest are links.
23801 # The last name is the one that the linker finds with -lNAME.
23802 library_names_spec=$lt_library_names_spec
23804 # The coded name of the library, if different from the real name.
23805 soname_spec=$lt_soname_spec
23807 # Commands used to build and install an old-style archive.
23809 old_archive_cmds=$lt_old_archive_cmds_F77
23810 old_postinstall_cmds=$lt_old_postinstall_cmds
23811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23813 # Create an old-style archive from a shared archive.
23814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23816 # Create a temporary old-style archive to link instead of a shared archive.
23817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23819 # Commands used to build and install a shared archive.
23820 archive_cmds=$lt_archive_cmds_F77
23821 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23822 postinstall_cmds=$lt_postinstall_cmds
23823 postuninstall_cmds=$lt_postuninstall_cmds
23825 # Commands used to build a loadable module (assumed same as above if empty)
23826 module_cmds=$lt_module_cmds_F77
23827 module_expsym_cmds=$lt_module_expsym_cmds_F77
23829 # Commands to strip libraries.
23830 old_striplib=$lt_old_striplib
23831 striplib=$lt_striplib
23833 # Dependencies to place before the objects being linked to create a
23835 predep_objects=$lt_predep_objects_F77
23837 # Dependencies to place after the objects being linked to create a
23839 postdep_objects=$lt_postdep_objects_F77
23841 # Dependencies to place before the objects being linked to create a
23843 predeps=$lt_predeps_F77
23845 # Dependencies to place after the objects being linked to create a
23847 postdeps=$lt_postdeps_F77
23849 # The library search path used internally by the compiler when linking
23850 # a shared library.
23851 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23853 # Method to check whether dependent libraries are shared objects.
23854 deplibs_check_method=$lt_deplibs_check_method
23856 # Command to use when deplibs_check_method == file_magic.
23857 file_magic_cmd=$lt_file_magic_cmd
23859 # Flag that allows shared libraries with undefined symbols to be built.
23860 allow_undefined_flag=$lt_allow_undefined_flag_F77
23862 # Flag that forces no undefined symbols.
23863 no_undefined_flag=$lt_no_undefined_flag_F77
23865 # Commands used to finish a libtool library installation in a directory.
23866 finish_cmds=$lt_finish_cmds
23868 # Same as above, but a single script fragment to be evaled but not shown.
23869 finish_eval=$lt_finish_eval
23871 # Take the output of nm and produce a listing of raw symbols and C names.
23872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23874 # Transform the output of nm in a proper C declaration
23875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23877 # Transform the output of nm in a C name address pair
23878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23880 # This is the shared library runtime path variable.
23881 runpath_var=$runpath_var
23883 # This is the shared library path variable.
23884 shlibpath_var=$shlibpath_var
23886 # Is shlibpath searched before the hard-coded library search path?
23887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23889 # How to hardcode a shared library path into an executable.
23890 hardcode_action=$hardcode_action_F77
23892 # Whether we should hardcode library paths into libraries.
23893 hardcode_into_libs=$hardcode_into_libs
23895 # Flag to hardcode \$libdir into a binary during linking.
23896 # This must work even if \$libdir does not exist.
23897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23899 # If ld is used when linking, flag to hardcode \$libdir into
23900 # a binary during linking. This must work even if \$libdir does
23902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23904 # Whether we need a single -rpath flag with a separated argument.
23905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23908 # resulting binary.
23909 hardcode_direct=$hardcode_direct_F77
23911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23912 # resulting binary.
23913 hardcode_minus_L=$hardcode_minus_L_F77
23915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23916 # the resulting binary.
23917 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23919 # Set to yes if building a shared library automatically hardcodes DIR into the library
23920 # and all subsequent libraries and executables linked against it.
23921 hardcode_automatic=$hardcode_automatic_F77
23923 # Variables whose values should be saved in libtool wrapper scripts and
23924 # restored at relink time.
23925 variables_saved_for_relink="$variables_saved_for_relink"
23927 # Whether libtool must link a program against all its dependency libraries.
23928 link_all_deplibs=$link_all_deplibs_F77
23930 # Compile-time system search path for libraries
23931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23933 # Run-time system search path for libraries
23934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23936 # Fix the shell variable \$srcfile for the compiler.
23937 fix_srcfile_path="$fix_srcfile_path_F77"
23939 # Set to yes if exported symbols are required.
23940 always_export_symbols=$always_export_symbols_F77
23942 # The commands to list exported symbols.
23943 export_symbols_cmds=$lt_export_symbols_cmds_F77
23945 # The commands to extract the exported symbol list from a shared archive.
23946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23948 # Symbols that should not be listed in the preloaded symbols.
23949 exclude_expsyms=$lt_exclude_expsyms_F77
23951 # Symbols that must always be exported.
23952 include_expsyms=$lt_include_expsyms_F77
23954 # ### END LIBTOOL TAG CONFIG: $tagname
23960 # If there is no Makefile yet, we rely on a make rule to execute
23961 # `config.status --recheck' to rerun these tests and create the
23962 # libtool script then.
23963 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23964 if test -f "$ltmain_in"; then
23965 test -f Makefile
&& make "$ltmain"
23971 ac_cpp
='$CPP $CPPFLAGS'
23972 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23973 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23974 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23984 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23986 ac_cpp
='$CPP $CPPFLAGS'
23987 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23988 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23989 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23992 # Source file extension for Java test sources.
23995 # Object file extension for compiled Java test sources.
23999 # Code to be used in simple compile tests
24000 lt_simple_compile_test_code
="class foo {}\n"
24002 # Code to be used in simple link tests
24003 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
24005 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24007 # If no C compiler was specified, use CC.
24010 # If no C compiler flags were specified, use CFLAGS.
24011 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
24013 # Allow CC to be a program name with arguments.
24017 # save warnings/boilerplate of simple test code
24018 ac_outfile
=conftest.
$ac_objext
24019 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
24020 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24021 _lt_compiler_boilerplate
=`cat conftest.err`
24024 ac_outfile
=conftest.
$ac_objext
24025 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
24026 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24027 _lt_linker_boilerplate
=`cat conftest.err`
24031 # Allow CC to be a program name with arguments.
24036 for cc_temp
in $compiler""; do
24038 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24039 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24044 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24047 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24048 archive_cmds_need_lc_GCJ
=no
24050 old_archive_cmds_GCJ
=$old_archive_cmds
24053 lt_prog_compiler_no_builtin_flag_GCJ
=
24055 if test "$GCC" = yes; then
24056 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
24059 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24060 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24061 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24062 echo $ECHO_N "(cached) $ECHO_C" >&6
24064 lt_cv_prog_compiler_rtti_exceptions
=no
24065 ac_outfile
=conftest.
$ac_objext
24066 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24067 lt_compiler_flag
="-fno-rtti -fno-exceptions"
24068 # Insert the option either (1) after the last *FLAGS variable, or
24069 # (2) before a word containing "conftest.", or (3) at the end.
24070 # Note that $ac_compile itself does not contain backslashes and begins
24071 # with a dollar sign (not a hyphen), so the echo should work correctly.
24072 # The option is referenced via a variable to avoid confusing sed.
24073 lt_compile
=`echo "$ac_compile" | $SED \
24074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24076 -e 's:$: $lt_compiler_flag:'`
24077 (eval echo "\"\$as_me:24072: $lt_compile\"" >&5)
24078 (eval "$lt_compile" 2>conftest.err
)
24080 cat conftest.err
>&5
24081 echo "$as_me:24076: \$? = $ac_status" >&5
24082 if (exit $ac_status) && test -s "$ac_outfile"; then
24083 # The compiler can only warn and ignore the option if not recognized
24084 # So say no if there are warnings other than the usual output.
24085 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24086 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24087 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24088 lt_cv_prog_compiler_rtti_exceptions
=yes
24094 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24095 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24097 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
24098 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24105 lt_prog_compiler_wl_GCJ
=
24106 lt_prog_compiler_pic_GCJ
=
24107 lt_prog_compiler_static_GCJ
=
24109 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24110 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24112 if test "$GCC" = yes; then
24113 lt_prog_compiler_wl_GCJ
='-Wl,'
24114 lt_prog_compiler_static_GCJ
='-static'
24118 # All AIX code is PIC.
24119 if test "$host_cpu" = ia64
; then
24120 # AIX 5 now supports IA64 processor
24121 lt_prog_compiler_static_GCJ
='-Bstatic'
24126 # FIXME: we need at least 68020 code to build shared libraries, but
24127 # adding the `-m68020' flag to GCC prevents building anything better,
24129 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
24132 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
24133 # PIC is the default for these OSes.
24136 mingw
* | pw32
* | os2
*)
24137 # This hack is so that the source file can tell whether it is being
24138 # built for inclusion in a dll (and should export symbols for example).
24139 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24142 darwin
* | rhapsody
*)
24143 # PIC is the default on this platform
24144 # Common symbols not allowed in MH_DYLIB files
24145 lt_prog_compiler_pic_GCJ
='-fno-common'
24149 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24150 # Instead, we relocate shared libraries at runtime.
24154 # Just because we use GCC doesn't mean we suddenly get shared libraries
24155 # on systems that don't support them.
24156 lt_prog_compiler_can_build_shared_GCJ
=no
24161 if test -d /usr
/nec
; then
24162 lt_prog_compiler_pic_GCJ
=-Kconform_pic
24167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24168 # not for PA HP-UX.
24174 lt_prog_compiler_pic_GCJ
='-fPIC'
24180 lt_prog_compiler_pic_GCJ
='-fPIC'
24184 # PORTME Check for flag to pass linker flags through the system compiler.
24187 lt_prog_compiler_wl_GCJ
='-Wl,'
24188 if test "$host_cpu" = ia64
; then
24189 # AIX 5 now supports IA64 processor
24190 lt_prog_compiler_static_GCJ
='-Bstatic'
24192 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
24196 # PIC is the default on this platform
24197 # Common symbols not allowed in MH_DYLIB files
24198 case $cc_basename in
24200 lt_prog_compiler_pic_GCJ
='-qnocommon'
24201 lt_prog_compiler_wl_GCJ
='-Wl,'
24206 mingw
* | pw32
* | os2
*)
24207 # This hack is so that the source file can tell whether it is being
24208 # built for inclusion in a dll (and should export symbols for example).
24209 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24212 hpux9
* | hpux10
* | hpux11
*)
24213 lt_prog_compiler_wl_GCJ
='-Wl,'
24214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24215 # not for PA HP-UX.
24221 lt_prog_compiler_pic_GCJ
='+Z'
24224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24225 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
24228 irix5
* | irix6
* | nonstopux
*)
24229 lt_prog_compiler_wl_GCJ
='-Wl,'
24230 # PIC (with -KPIC) is the default.
24231 lt_prog_compiler_static_GCJ
='-non_shared'
24235 lt_prog_compiler_pic_GCJ
='-KPIC'
24236 lt_prog_compiler_static_GCJ
='-Bstatic'
24240 case $cc_basename in
24242 lt_prog_compiler_wl_GCJ
='-Wl,'
24243 lt_prog_compiler_pic_GCJ
='-KPIC'
24244 lt_prog_compiler_static_GCJ
='-static'
24246 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
24247 # Portland Group compilers (*not* the Pentium gcc compiler,
24248 # which looks to be a dead project)
24249 lt_prog_compiler_wl_GCJ
='-Wl,'
24250 lt_prog_compiler_pic_GCJ
='-fpic'
24251 lt_prog_compiler_static_GCJ
='-Bstatic'
24254 lt_prog_compiler_wl_GCJ
='-Wl,'
24255 # All Alpha code is PIC.
24256 lt_prog_compiler_static_GCJ
='-non_shared'
24261 osf3
* | osf4
* | osf5
*)
24262 lt_prog_compiler_wl_GCJ
='-Wl,'
24263 # All OSF/1 code is PIC.
24264 lt_prog_compiler_static_GCJ
='-non_shared'
24268 lt_prog_compiler_pic_GCJ
='-KPIC'
24269 lt_prog_compiler_static_GCJ
='-Bstatic'
24270 case $cc_basename in
24271 f77
* | f90
* | f95
*)
24272 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
24274 lt_prog_compiler_wl_GCJ
='-Wl,';;
24279 lt_prog_compiler_wl_GCJ
='-Qoption ld '
24280 lt_prog_compiler_pic_GCJ
='-PIC'
24281 lt_prog_compiler_static_GCJ
='-Bstatic'
24284 sysv4 | sysv4.2uw2
* | sysv4.3
*)
24285 lt_prog_compiler_wl_GCJ
='-Wl,'
24286 lt_prog_compiler_pic_GCJ
='-KPIC'
24287 lt_prog_compiler_static_GCJ
='-Bstatic'
24291 if test -d /usr
/nec
;then
24292 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
24293 lt_prog_compiler_static_GCJ
='-Bstatic'
24297 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
24298 lt_prog_compiler_wl_GCJ
='-Wl,'
24299 lt_prog_compiler_pic_GCJ
='-KPIC'
24300 lt_prog_compiler_static_GCJ
='-Bstatic'
24304 lt_prog_compiler_wl_GCJ
='-Wl,'
24305 lt_prog_compiler_can_build_shared_GCJ
=no
24309 lt_prog_compiler_pic_GCJ
='-pic'
24310 lt_prog_compiler_static_GCJ
='-Bstatic'
24314 lt_prog_compiler_can_build_shared_GCJ
=no
24319 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24320 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24323 # Check to make sure the PIC flag actually works.
24325 if test -n "$lt_prog_compiler_pic_GCJ"; then
24327 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24328 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24329 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24332 lt_prog_compiler_pic_works_GCJ
=no
24333 ac_outfile
=conftest.
$ac_objext
24334 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24335 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
24336 # Insert the option either (1) after the last *FLAGS variable, or
24337 # (2) before a word containing "conftest.", or (3) at the end.
24338 # Note that $ac_compile itself does not contain backslashes and begins
24339 # with a dollar sign (not a hyphen), so the echo should work correctly.
24340 # The option is referenced via a variable to avoid confusing sed.
24341 lt_compile
=`echo "$ac_compile" | $SED \
24342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24344 -e 's:$: $lt_compiler_flag:'`
24345 (eval echo "\"\$as_me:24340: $lt_compile\"" >&5)
24346 (eval "$lt_compile" 2>conftest.err
)
24348 cat conftest.err
>&5
24349 echo "$as_me:24344: \$? = $ac_status" >&5
24350 if (exit $ac_status) && test -s "$ac_outfile"; then
24351 # The compiler can only warn and ignore the option if not recognized
24352 # So say no if there are warnings other than the usual output.
24353 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24354 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24355 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24356 lt_prog_compiler_pic_works_GCJ
=yes
24362 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24363 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24365 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
24366 case $lt_prog_compiler_pic_GCJ in
24368 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
24371 lt_prog_compiler_pic_GCJ
=
24372 lt_prog_compiler_can_build_shared_GCJ
=no
24377 # For platforms which do not support PIC, -DPIC is meaningless:
24379 lt_prog_compiler_pic_GCJ
=
24382 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
24387 # Check to make sure the static flag actually works.
24389 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
24390 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24391 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24392 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24393 echo $ECHO_N "(cached) $ECHO_C" >&6
24395 lt_prog_compiler_static_works_GCJ
=no
24396 save_LDFLAGS
="$LDFLAGS"
24397 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
24398 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
24399 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
24400 # The linker can only warn and ignore the option if not recognized
24401 # So say no if there are warnings
24402 if test -s conftest.err
; then
24403 # Append any errors to the config.log.
24404 cat conftest.err
1>&5
24405 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
24406 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24407 if diff conftest.exp conftest.er2
>/dev
/null
; then
24408 lt_prog_compiler_static_works_GCJ
=yes
24411 lt_prog_compiler_static_works_GCJ
=yes
24415 LDFLAGS
="$save_LDFLAGS"
24418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24419 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24421 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
24424 lt_prog_compiler_static_GCJ
=
24428 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24430 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24431 echo $ECHO_N "(cached) $ECHO_C" >&6
24433 lt_cv_prog_compiler_c_o_GCJ
=no
24434 $rm -r conftest
2>/dev
/null
24438 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24440 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24441 # Insert the option either (1) after the last *FLAGS variable, or
24442 # (2) before a word containing "conftest.", or (3) at the end.
24443 # Note that $ac_compile itself does not contain backslashes and begins
24444 # with a dollar sign (not a hyphen), so the echo should work correctly.
24445 lt_compile
=`echo "$ac_compile" | $SED \
24446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24448 -e 's:$: $lt_compiler_flag:'`
24449 (eval echo "\"\$as_me:24444: $lt_compile\"" >&5)
24450 (eval "$lt_compile" 2>out
/conftest.err
)
24452 cat out
/conftest.err
>&5
24453 echo "$as_me:24448: \$? = $ac_status" >&5
24454 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24456 # The compiler can only warn and ignore the option if not recognized
24457 # So say no if there are warnings
24458 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
24459 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24460 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24461 lt_cv_prog_compiler_c_o_GCJ
=yes
24466 # SGI C++ compiler will create directory out/ii_files/ for
24467 # template instantiation
24468 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
24469 $rm out
/* && rmdir out
24475 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24476 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24479 hard_links
="nottested"
24480 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
24481 # do not overwrite the value of need_locks provided by the user
24482 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24483 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24486 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24488 ln conftest.a conftest.b
2>&5 || hard_links
=no
24489 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24490 { echo "$as_me:$LINENO: result: $hard_links" >&5
24491 echo "${ECHO_T}$hard_links" >&6; }
24492 if test "$hard_links" = no
; then
24493 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24494 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24501 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24502 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24505 allow_undefined_flag_GCJ
=
24506 enable_shared_with_static_runtimes_GCJ
=no
24508 archive_expsym_cmds_GCJ
=
24509 old_archive_From_new_cmds_GCJ
=
24510 old_archive_from_expsyms_cmds_GCJ
=
24511 export_dynamic_flag_spec_GCJ
=
24512 whole_archive_flag_spec_GCJ
=
24513 thread_safe_flag_spec_GCJ
=
24514 hardcode_libdir_flag_spec_GCJ
=
24515 hardcode_libdir_flag_spec_ld_GCJ
=
24516 hardcode_libdir_separator_GCJ
=
24517 hardcode_direct_GCJ
=no
24518 hardcode_minus_L_GCJ
=no
24519 hardcode_shlibpath_var_GCJ
=unsupported
24520 link_all_deplibs_GCJ
=unknown
24521 hardcode_automatic_GCJ
=no
24523 module_expsym_cmds_GCJ
=
24524 always_export_symbols_GCJ
=no
24525 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24526 # include_expsyms should be a list of space-separated symbols to be *always*
24527 # included in the symbol list
24528 include_expsyms_GCJ
=
24529 # exclude_expsyms can be an extended regexp of symbols to exclude
24530 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24531 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24532 # as well as any symbol that contains `d'.
24533 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
24534 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24535 # platforms (ab)use it in PIC code, but their linkers get confused if
24536 # the symbol is explicitly referenced. Since portable code cannot
24537 # rely on this symbol name, it's probably fine to never include it in
24538 # preloaded symbol tables.
24539 extract_expsyms_cmds
=
24540 # Just being paranoid about ensuring that cc_basename is set.
24541 for cc_temp
in $compiler""; do
24543 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24544 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24549 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24552 cygwin
* | mingw
* | pw32
*)
24553 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24554 # When not using gcc, we currently assume that we are using
24555 # Microsoft Visual C++.
24556 if test "$GCC" != yes; then
24561 # we just hope/assume this is gcc and not c89 (= MSVC++)
24570 if test "$with_gnu_ld" = yes; then
24571 # If archive_cmds runs LD, not CC, wlarc should be empty
24574 # Set some defaults for GNU ld with shared library support. These
24575 # are reset later if shared libraries are not supported. Putting them
24576 # here allows them to be overridden if necessary.
24577 runpath_var
=LD_RUN_PATH
24578 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
24579 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
24580 # ancient GNU ld didn't support --whole-archive et. al.
24581 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
24582 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24584 whole_archive_flag_spec_GCJ
=
24586 supports_anon_versioning
=no
24587 case `$LD -v 2>/dev/null` in
24588 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
24589 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
24590 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
24591 *\
2.11.
*) ;; # other 2.11 versions
24592 *) supports_anon_versioning
=yes ;;
24595 # See if GNU ld supports shared libraries.
24597 aix3
* | aix4
* | aix5
*)
24598 # On AIX/PPC, the GNU linker is very broken
24599 if test "$host_cpu" != ia64
; then
24603 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24604 *** to be unable to reliably create shared libraries on AIX.
24605 *** Therefore, libtool is disabling shared libraries support. If you
24606 *** really care for shared libraries, you may want to modify your PATH
24607 *** so that a non-GNU linker is found, and then restart.
24614 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)'
24615 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24616 hardcode_minus_L_GCJ
=yes
24618 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24619 # that the semantics of dynamic libraries on AmigaOS, at least up
24620 # to version 4, is to share data among multiple programs linked
24621 # with the same dynamic library. Since this doesn't match the
24622 # behavior of shared libraries on other platforms, we can't use
24628 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24629 allow_undefined_flag_GCJ
=unsupported
24630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24631 # support --undefined. This deserves some investigation. FIXME
24632 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24638 cygwin
* | mingw
* | pw32
*)
24639 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24640 # as there is no search path for DLLs.
24641 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24642 allow_undefined_flag_GCJ
=unsupported
24643 always_export_symbols_GCJ
=no
24644 enable_shared_with_static_runtimes_GCJ
=yes
24645 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24647 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24648 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24649 # If the export-symbols file already is a .def file (1st line
24650 # is EXPORTS), use it as is; otherwise, prepend...
24651 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24652 cp $export_symbols $output_objdir/$soname.def;
24654 echo EXPORTS > $output_objdir/$soname.def;
24655 cat $export_symbols >> $output_objdir/$soname.def;
24657 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24664 hardcode_direct_GCJ
=no
24665 hardcode_shlibpath_var_GCJ
=no
24666 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24667 export_dynamic_flag_spec_GCJ
='${wl}-E'
24668 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24669 # Instead, shared libraries are loaded at an image base (0x10000000 by
24670 # default) and relocated if they conflict, which is a slow very memory
24671 # consuming and fragmenting process. To avoid this, we pick a random,
24672 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24673 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24674 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'
24675 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'
24679 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24681 case $cc_basename,$host_cpu in
24682 pgcc
*) # Portland Group C compiler
24683 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'
24684 tmp_addflag
=' $pic_flag'
24686 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24687 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'
24688 tmp_addflag
=' $pic_flag -Mnomain' ;;
24689 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24690 tmp_addflag
=' -i_dynamic' ;;
24691 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24692 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24693 ifc
* | ifort
*) # Intel Fortran compiler
24694 tmp_addflag
=' -nofor_main' ;;
24696 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24698 if test $supports_anon_versioning = yes; then
24699 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24701 $echo "local: *; };" >> $output_objdir/$libname.ver~
24702 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24710 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24711 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24714 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24715 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24720 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24724 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24725 *** create shared libraries on Solaris systems. Therefore, libtool
24726 *** is disabling shared libraries support. We urge you to upgrade GNU
24727 *** binutils to release 2.9.1 or newer. Another option is to modify
24728 *** your PATH or compiler configuration so that the native linker is
24729 *** used, and then restart.
24732 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24733 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24734 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24740 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24741 case `$LD -v 2>&1` in
24742 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24746 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24747 *** reliably create shared libraries on SCO systems. Therefore, libtool
24748 *** is disabling shared libraries support. We urge you to upgrade GNU
24749 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24750 *** your PATH or compiler configuration so that the native linker is
24751 *** used, and then restart.
24756 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24757 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24758 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24759 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24768 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24770 hardcode_direct_GCJ
=yes
24771 hardcode_shlibpath_var_GCJ
=no
24775 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24776 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24777 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24784 if test "$ld_shlibs_GCJ" = no
; then
24786 hardcode_libdir_flag_spec_GCJ
=
24787 export_dynamic_flag_spec_GCJ
=
24788 whole_archive_flag_spec_GCJ
=
24791 # PORTME fill in a description of your system's linker (not GNU ld)
24794 allow_undefined_flag_GCJ
=unsupported
24795 always_export_symbols_GCJ
=yes
24796 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'
24797 # Note: this linker hardcodes the directories in LIBPATH if there
24798 # are no directories specified by -L.
24799 hardcode_minus_L_GCJ
=yes
24800 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24801 # Neither direct hardcoding nor static linking is supported with a
24803 hardcode_direct_GCJ
=unsupported
24808 if test "$host_cpu" = ia64
; then
24809 # On IA64, the linker does run time linking by default, so we don't
24810 # have to do anything special.
24811 aix_use_runtimelinking
=no
24812 exp_sym_flag
='-Bexport'
24815 # If we're using GNU nm, then we don't want the "-C" option.
24816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24817 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24818 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'
24820 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'
24822 aix_use_runtimelinking
=no
24824 # Test if we are trying to use run time linking or normal
24825 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24826 # need to do runtime linking.
24827 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24828 for ld_flag
in $LDFLAGS; do
24829 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24830 aix_use_runtimelinking
=yes
24837 exp_sym_flag
='-bexport'
24838 no_entry_flag
='-bnoentry'
24841 # When large executables or shared objects are built, AIX ld can
24842 # have problems creating the table of contents. If linking a library
24843 # or program results in "error TOC overflow" add -mminimal-toc to
24844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24847 archive_cmds_GCJ
=''
24848 hardcode_direct_GCJ
=yes
24849 hardcode_libdir_separator_GCJ
=':'
24850 link_all_deplibs_GCJ
=yes
24852 if test "$GCC" = yes; then
24853 case $host_os in aix4.
[012]|aix4.
[012].
*)
24854 # We only want to do this on AIX 4.2 and lower, the check
24855 # below for broken collect2 doesn't work under 4.3+
24856 collect2name
=`${CC} -print-prog-name=collect2`
24857 if test -f "$collect2name" && \
24858 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24860 # We have reworked collect2
24861 hardcode_direct_GCJ
=yes
24863 # We have old collect2
24864 hardcode_direct_GCJ
=unsupported
24865 # It fails to find uninstalled libraries when the uninstalled
24866 # path is not listed in the libpath. Setting hardcode_minus_L
24867 # to unsupported forces relinking
24868 hardcode_minus_L_GCJ
=yes
24869 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24870 hardcode_libdir_separator_GCJ
=
24874 shared_flag
='-shared'
24875 if test "$aix_use_runtimelinking" = yes; then
24876 shared_flag
="$shared_flag "'${wl}-G'
24880 if test "$host_cpu" = ia64
; then
24881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24882 # chokes on -Wl,-G. The following line is correct:
24885 if test "$aix_use_runtimelinking" = yes; then
24886 shared_flag
='${wl}-G'
24888 shared_flag
='${wl}-bM:SRE'
24893 # It seems that -bexpall does not export symbols beginning with
24894 # underscore (_), so it is better to generate a list of symbols to export.
24895 always_export_symbols_GCJ
=yes
24896 if test "$aix_use_runtimelinking" = yes; then
24897 # Warning - without using the other runtime loading flags (-brtl),
24898 # -berok will link without error, but may produce a broken library.
24899 allow_undefined_flag_GCJ
='-berok'
24900 # Determine the default libpath from the value encoded in an empty executable.
24901 cat >conftest.
$ac_ext <<_ACEOF
24904 cat confdefs.h
>>conftest.
$ac_ext
24905 cat >>conftest.
$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24916 rm -f conftest.
$ac_objext conftest
$ac_exeext
24917 if { (ac_try
="$ac_link"
24918 case "(($ac_try" in
24919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_link") 2>conftest.er1
24925 grep -v '^ *+' conftest.er1 >conftest.err
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24931 { (case "(($ac_try" in
24932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24933 *) ac_try_echo
=$ac_try;;
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_try") 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; } &&
24940 { ac_try
='test -s conftest$ac_exeext'
24941 { (case "(($ac_try" in
24942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24943 *) ac_try_echo=$ac_try;;
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946 (eval "$ac_try") 2>&5
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; }; then
24951 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24953 # Check for a 64-bit object if we didn't find anything.
24954 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; }
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24963 rm -f core conftest.err conftest.$ac_objext \
24964 conftest$ac_exeext conftest.$ac_ext
24965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24967 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24968 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"
24970 if test "$host_cpu" = ia64; then
24971 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24972 allow_undefined_flag_GCJ="-z nodefs"
24973 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"
24975 # Determine the default libpath from the value encoded in an empty executable.
24976 cat >conftest.$ac_ext <<_ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h. */
24991 rm -f conftest.$ac_objext conftest$ac_exeext
24992 if { (ac_try="$ac_link"
24993 case "(($ac_try" in
24994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24995 *) ac_try_echo
=$ac_try;;
24997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24998 (eval "$ac_link") 2>conftest.er1
25000 grep -v '^ *+' conftest.er1
>conftest.err
25002 cat conftest.err
>&5
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); } &&
25005 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25006 { (case "(($ac_try" in
25007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25011 (eval "$ac_try") 2>&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; } &&
25015 { ac_try='test -s conftest$ac_exeext'
25016 { (case "(($ac_try" in
25017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25018 *) ac_try_echo
=$ac_try;;
25020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021 (eval "$ac_try") 2>&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; }; then
25026 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25028 # Check for a 64-bit object if we didn't find anything.
25029 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; }
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.
$ac_ext >&5
25038 rm -f core conftest.err conftest.
$ac_objext \
25039 conftest
$ac_exeext conftest.
$ac_ext
25040 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
25042 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
25043 # Warning - without using the other run time loading flags,
25044 # -berok will link without error, but may produce a broken library.
25045 no_undefined_flag_GCJ
=' ${wl}-bernotok'
25046 allow_undefined_flag_GCJ
=' ${wl}-berok'
25047 # Exported symbols can be pulled into shared objects from archives
25048 whole_archive_flag_spec_GCJ
='$convenience'
25049 archive_cmds_need_lc_GCJ
=yes
25050 # This is similar to how AIX traditionally builds its shared libraries.
25051 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'
25057 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)'
25058 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25059 hardcode_minus_L_GCJ
=yes
25060 # see comment about different semantics on the GNU ld section
25065 export_dynamic_flag_spec_GCJ
=-rdynamic
25068 cygwin
* | mingw
* | pw32
*)
25069 # When not using gcc, we currently assume that we are using
25070 # Microsoft Visual C++.
25071 # hardcode_libdir_flag_spec is actually meaningless, as there is
25072 # no search path for DLLs.
25073 hardcode_libdir_flag_spec_GCJ
=' '
25074 allow_undefined_flag_GCJ
=unsupported
25075 # Tell ltmain to make .lib files, not .a files.
25077 # Tell ltmain to make .dll files, not .so files.
25079 # FIXME: Setting linknames here is a bad hack.
25080 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25081 # The linker will automatically build a .lib file if we build a DLL.
25082 old_archive_From_new_cmds_GCJ
='true'
25083 # FIXME: Should let the user specify the lib program.
25084 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
25085 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
25086 enable_shared_with_static_runtimes_GCJ
=yes
25089 darwin
* | rhapsody
*)
25091 rhapsody
* | darwin1.
[012])
25092 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
25095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25096 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25098 case ${MACOSX_DEPLOYMENT_TARGET} in
25100 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25103 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
25109 archive_cmds_need_lc_GCJ
=no
25110 hardcode_direct_GCJ
=no
25111 hardcode_automatic_GCJ
=yes
25112 hardcode_shlibpath_var_GCJ
=unsupported
25113 whole_archive_flag_spec_GCJ
=''
25114 link_all_deplibs_GCJ
=yes
25115 if test "$GCC" = yes ; then
25116 output_verbose_link_cmd
='echo'
25117 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25118 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25120 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}'
25121 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}'
25123 case $cc_basename in
25125 output_verbose_link_cmd
='echo'
25126 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25127 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25129 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}'
25130 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}'
25140 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25141 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25142 hardcode_shlibpath_var_GCJ
=no
25149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25150 # support. Future versions do this automatically, but an explicit c++rt0.o
25151 # does not break anything, and helps significantly (at the cost of a little
25154 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25155 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25156 hardcode_direct_GCJ
=yes
25157 hardcode_shlibpath_var_GCJ
=no
25160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25162 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25163 hardcode_direct_GCJ
=yes
25164 hardcode_minus_L_GCJ
=yes
25165 hardcode_shlibpath_var_GCJ
=no
25168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25169 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
25170 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25171 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25172 hardcode_direct_GCJ
=yes
25173 hardcode_shlibpath_var_GCJ
=no
25177 if test "$GCC" = yes; then
25178 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'
25180 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'
25182 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25183 hardcode_libdir_separator_GCJ
=:
25184 hardcode_direct_GCJ
=yes
25186 # hardcode_minus_L: Not really in the search PATH,
25187 # but as the default location of the library.
25188 hardcode_minus_L_GCJ
=yes
25189 export_dynamic_flag_spec_GCJ
='${wl}-E'
25193 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25194 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25196 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25198 if test "$with_gnu_ld" = no
; then
25199 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25200 hardcode_libdir_separator_GCJ
=:
25202 hardcode_direct_GCJ
=yes
25203 export_dynamic_flag_spec_GCJ
='${wl}-E'
25205 # hardcode_minus_L: Not really in the search PATH,
25206 # but as the default location of the library.
25207 hardcode_minus_L_GCJ
=yes
25212 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25215 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25218 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25221 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25227 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25230 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25233 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25237 if test "$with_gnu_ld" = no
; then
25238 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25239 hardcode_libdir_separator_GCJ
=:
25243 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
25244 hardcode_direct_GCJ
=no
25245 hardcode_shlibpath_var_GCJ
=no
25248 hardcode_direct_GCJ
=yes
25249 export_dynamic_flag_spec_GCJ
='${wl}-E'
25251 # hardcode_minus_L: Not really in the search PATH,
25252 # but as the default location of the library.
25253 hardcode_minus_L_GCJ
=yes
25259 irix5
* | irix6
* | nonstopux
*)
25260 if test "$GCC" = yes; then
25261 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'
25263 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'
25264 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
25266 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25267 hardcode_libdir_separator_GCJ
=:
25268 link_all_deplibs_GCJ
=yes
25272 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25273 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25275 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25277 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25278 hardcode_direct_GCJ
=yes
25279 hardcode_shlibpath_var_GCJ
=no
25283 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25284 hardcode_direct_GCJ
=yes
25285 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25286 hardcode_libdir_separator_GCJ
=:
25287 hardcode_shlibpath_var_GCJ
=no
25291 hardcode_direct_GCJ
=yes
25292 hardcode_shlibpath_var_GCJ
=no
25293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25294 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25295 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25296 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25297 export_dynamic_flag_spec_GCJ
='${wl}-E'
25300 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
25301 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25302 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25305 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25306 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25313 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25314 hardcode_minus_L_GCJ
=yes
25315 allow_undefined_flag_GCJ
=unsupported
25316 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'
25317 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25321 if test "$GCC" = yes; then
25322 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25323 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'
25325 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25326 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'
25328 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25329 hardcode_libdir_separator_GCJ
=:
25332 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
25333 if test "$GCC" = yes; then
25334 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25335 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'
25336 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25338 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25339 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'
25340 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~
25341 $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'
25343 # Both c and cxx compiler support -rpath directly
25344 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
25346 hardcode_libdir_separator_GCJ
=:
25350 no_undefined_flag_GCJ
=' -z text'
25351 if test "$GCC" = yes; then
25353 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25354 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25355 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25358 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25359 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25360 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25362 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25363 hardcode_shlibpath_var_GCJ
=no
25365 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
25367 # The compiler driver will combine linker options so we
25368 # cannot just pass the convience library names through
25369 # without $wl, iff we do not link with $LD.
25370 # Luckily, gcc supports the same syntax we need for Sun Studio.
25371 # Supported since Solaris 2.6 (maybe 2.5.1?)
25374 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
25376 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' ;;
25379 link_all_deplibs_GCJ
=yes
25383 if test "x$host_vendor" = xsequent
; then
25384 # Use $CC to link under sequent, because it throws in some extra .o
25385 # files that make .init and .fini sections work.
25386 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25388 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25390 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25391 hardcode_direct_GCJ
=yes
25392 hardcode_minus_L_GCJ
=yes
25393 hardcode_shlibpath_var_GCJ
=no
25397 case $host_vendor in
25399 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25400 hardcode_direct_GCJ
=yes # is this really true???
25403 ## LD is ld it makes a PLAMLIB
25404 ## CC just makes a GrossModule.
25405 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25406 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
25407 hardcode_direct_GCJ
=no
25410 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25411 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
25414 runpath_var
='LD_RUN_PATH'
25415 hardcode_shlibpath_var_GCJ
=no
25419 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25420 hardcode_shlibpath_var_GCJ
=no
25421 export_dynamic_flag_spec_GCJ
='-Bexport'
25425 if test -d /usr
/nec
; then
25426 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25427 hardcode_shlibpath_var_GCJ
=no
25428 runpath_var
=LD_RUN_PATH
25429 hardcode_runpath_var
=yes
25434 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
25435 no_undefined_flag_GCJ
='${wl}-z,text'
25436 archive_cmds_need_lc_GCJ
=no
25437 hardcode_shlibpath_var_GCJ
=no
25438 runpath_var
='LD_RUN_PATH'
25440 if test "$GCC" = yes; then
25441 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25442 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25444 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25445 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25449 sysv5
* | sco3.2v5
* | sco5v6
*)
25450 # Note: We can NOT use -z defs as we might desire, because we do not
25451 # link with -lc, and that would cause any symbols used from libc to
25452 # always be unresolved, which means just about no library would
25453 # ever link correctly. If we're not using GNU ld we use -z text
25454 # though, which does catch some bad symbols but isn't as heavy-handed
25456 no_undefined_flag_GCJ
='${wl}-z,text'
25457 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
25458 archive_cmds_need_lc_GCJ
=no
25459 hardcode_shlibpath_var_GCJ
=no
25460 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25461 hardcode_libdir_separator_GCJ
=':'
25462 link_all_deplibs_GCJ
=yes
25463 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
25464 runpath_var
='LD_RUN_PATH'
25466 if test "$GCC" = yes; then
25467 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25468 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25470 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25471 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25476 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25477 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25478 hardcode_shlibpath_var_GCJ
=no
25487 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25488 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25489 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
25492 # Do we need to explicitly link libc?
25494 case "x$archive_cmds_need_lc_GCJ" in
25496 # Assume -lc should be added
25497 archive_cmds_need_lc_GCJ
=yes
25499 if test "$enable_shared" = yes && test "$GCC" = yes; then
25500 case $archive_cmds_GCJ in
25502 # FIXME: we may have to deal with multi-command sequences.
25505 # Test whether the compiler implicitly links with -lc since on some
25506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25507 # to ld, don't add -lc before -lgcc.
25508 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25509 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25511 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
25513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25514 (eval $ac_compile) 2>&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } 2>conftest.err
; then
25520 libobjs
=conftest.
$ac_objext
25522 wl
=$lt_prog_compiler_wl_GCJ
25523 pic_flag
=$lt_prog_compiler_pic_GCJ
25529 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
25530 allow_undefined_flag_GCJ
=
25531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25532 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }
25537 archive_cmds_need_lc_GCJ
=no
25539 archive_cmds_need_lc_GCJ
=yes
25541 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
25543 cat conftest.err
1>&5
25546 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25547 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25554 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25555 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25556 library_names_spec
=
25557 libname_spec
='lib$name'
25561 postuninstall_cmds
=
25565 shlibpath_overrides_runpath
=unknown
25567 dynamic_linker
="$host_os ld.so"
25568 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
25569 if test "$GCC" = yes; then
25570 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25571 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
25572 # if the path contains ";" then we assume it to be the separator
25573 # otherwise default to the standard path separator (i.e. ":") - it is
25574 # assumed that no part of a normal pathname contains ";" but that should
25575 # okay in the real world where ";" in dirpaths is itself problematic.
25576 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25578 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25581 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
25583 need_lib_prefix
=unknown
25584 hardcode_into_libs
=no
25586 # when you set need_version to no, make sure it does not cause -set_version
25587 # flags to be left without arguments
25588 need_version
=unknown
25593 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
25594 shlibpath_var
=LIBPATH
25596 # AIX 3 has no versioning support, so we append a major version to the name.
25597 soname_spec
='${libname}${release}${shared_ext}$major'
25604 hardcode_into_libs
=yes
25605 if test "$host_cpu" = ia64
; then
25606 # AIX 5 supports IA64
25607 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25608 shlibpath_var
=LD_LIBRARY_PATH
25610 # With GCC up to 2.95.x, collect2 would create an import file
25611 # for dependence libraries. The import file would start with
25612 # the line `#! .'. This would cause the generated library to
25613 # depend on `.', always an invalid library. This was fixed in
25614 # development snapshots of GCC prior to 3.0.
25616 aix4 | aix4.
[01] | aix4.
[01].
*)
25617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25619 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25622 can_build_shared
=no
25626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25627 # soname into executable. Probably we can add versioning support to
25628 # collect2, so additional links can be useful in future.
25629 if test "$aix_use_runtimelinking" = yes; then
25630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25631 # instead of lib<name>.a to let people know that these are not
25632 # typical AIX shared libraries.
25633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25635 # We preserve .a as extension for shared libraries through AIX4.2
25636 # and later when we are not doing run time linking.
25637 library_names_spec
='${libname}${release}.a $libname.a'
25638 soname_spec
='${libname}${release}${shared_ext}$major'
25640 shlibpath_var
=LIBPATH
25645 library_names_spec
='$libname.ixlibrary $libname.a'
25646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25647 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'
25651 library_names_spec
='${libname}${shared_ext}'
25652 dynamic_linker
="$host_os ld.so"
25653 shlibpath_var
=LIBRARY_PATH
25659 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25660 soname_spec
='${libname}${release}${shared_ext}$major'
25661 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25662 shlibpath_var
=LD_LIBRARY_PATH
25663 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25664 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25665 # the default ld.so.conf also contains /usr/contrib/lib and
25666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25667 # libtool to hard-code these into programs
25670 cygwin
* | mingw
* | pw32
*)
25671 version_type
=windows
25676 case $GCC,$host_os in
25677 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25678 library_names_spec
='$libname.dll.a'
25679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25680 postinstall_cmds
='base_file=`basename \${file}`~
25681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25682 dldir=$destdir/`dirname \$dlpath`~
25683 test -d \$dldir || mkdir -p \$dldir~
25684 $install_prog $dir/$dlname \$dldir/$dlname~
25685 chmod a+x \$dldir/$dlname'
25686 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25687 dlpath=$dir/\$dldll~
25689 shlibpath_overrides_runpath
=yes
25693 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25694 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25695 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25698 # MinGW DLLs use traditional 'lib' prefix
25699 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25700 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25701 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25702 # It is most probably a Windows format PATH printed by
25703 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25704 # path with ; separators, and with drive letters. We can handle the
25705 # drive letters (cygwin fileutils understands them), so leave them,
25706 # especially as we might pass files found there to a mingw objdump,
25707 # which wouldn't understand a cygwinified path. Ahh.
25708 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25710 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25714 # pw32 DLLs use 'pw' prefix rather than 'lib'
25715 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25721 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25724 dynamic_linker
='Win32 ld.exe'
25725 # FIXME: first we should search . and the directory the executable is in
25729 darwin
* | rhapsody
*)
25730 dynamic_linker
="$host_os dyld"
25731 version_type
=darwin
25734 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25735 soname_spec
='${libname}${release}${major}$shared_ext'
25736 shlibpath_overrides_runpath
=yes
25737 shlibpath_var
=DYLD_LIBRARY_PATH
25738 shrext_cmds
='.dylib'
25739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25740 if test "$GCC" = yes; then
25741 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"`
25743 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25745 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25753 soname_spec
='${libname}${release}${shared_ext}$major'
25754 shlibpath_var
=LD_LIBRARY_PATH
25765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25766 soname_spec
='${libname}${release}${shared_ext}$major'
25767 shlibpath_var
=LD_LIBRARY_PATH
25768 shlibpath_overrides_runpath
=no
25769 hardcode_into_libs
=yes
25770 dynamic_linker
='GNU ld.so'
25773 freebsd
* | dragonfly
*)
25774 # DragonFly does not have aout. When/if they implement a new
25775 # versioning mechanism, adjust this.
25776 if test -x /usr
/bin
/objformat
; then
25777 objformat
=`/usr/bin/objformat`
25780 freebsd
[123]*) objformat
=aout
;;
25781 *) objformat
=elf
;;
25784 version_type
=freebsd-
$objformat
25785 case $version_type in
25787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25792 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25796 shlibpath_var
=LD_LIBRARY_PATH
25799 shlibpath_overrides_runpath
=yes
25801 freebsd3.
[01]* | freebsdelf3.
[01]*)
25802 shlibpath_overrides_runpath
=yes
25803 hardcode_into_libs
=yes
25805 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25806 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25807 shlibpath_overrides_runpath
=no
25808 hardcode_into_libs
=yes
25810 freebsd
*) # from 4.6 on
25811 shlibpath_overrides_runpath
=yes
25812 hardcode_into_libs
=yes
25821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25822 soname_spec
='${libname}${release}${shared_ext}$major'
25823 shlibpath_var
=LD_LIBRARY_PATH
25824 hardcode_into_libs
=yes
25827 hpux9
* | hpux10
* | hpux11
*)
25828 # Give a soname corresponding to the major version so that dld.sl refuses to
25829 # link against other versions.
25836 hardcode_into_libs
=yes
25837 dynamic_linker
="$host_os dld.so"
25838 shlibpath_var
=LD_LIBRARY_PATH
25839 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25841 soname_spec
='${libname}${release}${shared_ext}$major'
25842 if test "X$HPUX_IA64_MODE" = X32
; then
25843 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25845 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25847 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25851 hardcode_into_libs
=yes
25852 dynamic_linker
="$host_os dld.sl"
25853 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25854 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25856 soname_spec
='${libname}${release}${shared_ext}$major'
25857 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25858 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25862 dynamic_linker
="$host_os dld.sl"
25863 shlibpath_var
=SHLIB_PATH
25864 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25866 soname_spec
='${libname}${release}${shared_ext}$major'
25869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25870 postinstall_cmds
='chmod 555 $lib'
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 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
25880 shlibpath_var
=LD_LIBRARY_PATH
25881 shlibpath_overrides_runpath
=no
25882 hardcode_into_libs
=yes
25885 irix5
* | irix6
* | nonstopux
*)
25887 nonstopux
*) version_type
=nonstopux
;;
25889 if test "$lt_cv_prog_gnu_ld" = yes; then
25897 soname_spec
='${libname}${release}${shared_ext}$major'
25898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25900 irix5
* | nonstopux
*)
25901 libsuff
= shlibsuff
=
25904 case $LD in # libtool.m4 will add one of these switches to LD
25905 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
25906 libsuff
= shlibsuff
= libmagic
=32-bit;;
25907 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
25908 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
25909 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
25910 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
25911 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
25915 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
25916 shlibpath_overrides_runpath
=no
25917 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25918 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
25919 hardcode_into_libs
=yes
25922 # No shared lib support for Linux oldld, aout, or coff.
25923 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
25927 # This must be Linux ELF.
25932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25933 soname_spec
='${libname}${release}${shared_ext}$major'
25934 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25935 shlibpath_var
=LD_LIBRARY_PATH
25936 shlibpath_overrides_runpath
=no
25937 # This implies no fast_install, which is unacceptable.
25938 # Some rework will be needed to allow for fast_install
25939 # before this can be enabled.
25940 hardcode_into_libs
=yes
25942 # Append ld.so.conf contents to the search path
25943 if test -f /etc
/ld.so.conf
; then
25944 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' ' '`
25945 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
25948 # We used to test for /lib/ld.so.1 and disable shared libraries on
25949 # powerpc, because MkLinux only supported shared libraries with the
25950 # GNU dynamic linker. Since this was broken with cross compilers,
25951 # most powerpc-linux boxes support dynamic linking these days and
25952 # people can always --disable-shared, the test was removed, and we
25953 # assume the GNU/Linux dynamic linker is in use.
25954 dynamic_linker
='GNU/Linux ld.so'
25961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25962 soname_spec
='${libname}${release}${shared_ext}$major'
25963 shlibpath_var
=LD_LIBRARY_PATH
25964 shlibpath_overrides_runpath
=no
25965 hardcode_into_libs
=yes
25966 dynamic_linker
='GNU ld.so'
25973 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25975 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25976 dynamic_linker
='NetBSD (a.out) ld.so'
25978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25979 soname_spec
='${libname}${release}${shared_ext}$major'
25980 dynamic_linker
='NetBSD ld.elf_so'
25982 shlibpath_var
=LD_LIBRARY_PATH
25983 shlibpath_overrides_runpath
=yes
25984 hardcode_into_libs
=yes
25989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25990 shlibpath_var
=LD_LIBRARY_PATH
25991 shlibpath_overrides_runpath
=yes
25998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25999 soname_spec
='${libname}${release}${shared_ext}$major'
26000 shlibpath_var
=LD_LIBRARY_PATH
26001 shlibpath_overrides_runpath
=yes
26006 sys_lib_dlsearch_path_spec
="/usr/lib"
26008 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26010 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
26011 *) need_version
=no
;;
26013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26014 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26015 shlibpath_var
=LD_LIBRARY_PATH
26016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26018 openbsd2.
[89] | openbsd2.
[89].
*)
26019 shlibpath_overrides_runpath
=no
26022 shlibpath_overrides_runpath
=yes
26026 shlibpath_overrides_runpath
=yes
26031 libname_spec
='$name'
26034 library_names_spec
='$libname${shared_ext} $libname.a'
26035 dynamic_linker
='OS/2 ld.exe'
26036 shlibpath_var
=LIBPATH
26039 osf3
* | osf4
* | osf5
*)
26043 soname_spec
='${libname}${release}${shared_ext}$major'
26044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26045 shlibpath_var
=LD_LIBRARY_PATH
26046 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26047 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
26054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26055 soname_spec
='${libname}${release}${shared_ext}$major'
26056 shlibpath_var
=LD_LIBRARY_PATH
26057 shlibpath_overrides_runpath
=yes
26058 hardcode_into_libs
=yes
26059 # ldd complains unless libraries are executable
26060 postinstall_cmds
='chmod +x $lib'
26065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26066 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26067 shlibpath_var
=LD_LIBRARY_PATH
26068 shlibpath_overrides_runpath
=yes
26069 if test "$with_gnu_ld" = yes; then
26077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26078 soname_spec
='${libname}${release}${shared_ext}$major'
26079 shlibpath_var
=LD_LIBRARY_PATH
26080 case $host_vendor in
26082 shlibpath_overrides_runpath
=no
26084 export_dynamic_flag_spec
='${wl}-Blargedynsym'
26085 runpath_var
=LD_RUN_PATH
26093 shlibpath_overrides_runpath
=no
26094 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
26100 if test -d /usr
/nec
;then
26102 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26103 soname_spec
='$libname${shared_ext}.$major'
26104 shlibpath_var
=LD_LIBRARY_PATH
26108 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
26109 version_type
=freebsd-elf
26112 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26113 soname_spec
='${libname}${release}${shared_ext}$major'
26114 shlibpath_var
=LD_LIBRARY_PATH
26115 hardcode_into_libs
=yes
26116 if test "$with_gnu_ld" = yes; then
26117 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26118 shlibpath_overrides_runpath
=no
26120 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
26121 shlibpath_overrides_runpath
=yes
26124 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
26128 sys_lib_dlsearch_path_spec
='/usr/lib'
26133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26134 soname_spec
='${libname}${release}${shared_ext}$major'
26135 shlibpath_var
=LD_LIBRARY_PATH
26142 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26143 echo "${ECHO_T}$dynamic_linker" >&6; }
26144 test "$dynamic_linker" = no
&& can_build_shared
=no
26146 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
26147 if test "$GCC" = yes; then
26148 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26151 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26152 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26153 hardcode_action_GCJ
=
26154 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26155 test -n "$runpath_var_GCJ" || \
26156 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26158 # We can hardcode non-existant directories.
26159 if test "$hardcode_direct_GCJ" != no
&&
26160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26161 # have to relink, otherwise we might link with an installed library
26162 # when we should be linking with a yet-to-be-installed one
26163 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26164 test "$hardcode_minus_L_GCJ" != no
; then
26165 # Linking always hardcodes the temporary library directory.
26166 hardcode_action_GCJ
=relink
26168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26169 hardcode_action_GCJ
=immediate
26172 # We cannot hardcode anything, or else we can only hardcode existing
26174 hardcode_action_GCJ
=unsupported
26176 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26177 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26179 if test "$hardcode_action_GCJ" = relink
; then
26180 # Fast installation is not supported
26181 enable_fast_install
=no
26182 elif test "$shlibpath_overrides_runpath" = yes ||
26183 test "$enable_shared" = no
; then
26184 # Fast installation is not necessary
26185 enable_fast_install
=needless
26189 # The else clause should only fire when bootstrapping the
26190 # libtool distribution, otherwise you forgot to ship ltmain.sh
26191 # with your package, and you will get complaints that there are
26192 # no rules to generate ltmain.sh.
26193 if test -f "$ltmain"; then
26194 # See if we are running on zsh, and set the options which allow our commands through
26195 # without removal of \ escapes.
26196 if test -n "${ZSH_VERSION+set}" ; then
26197 setopt NO_GLOB_SUBST
26199 # Now quote all the things that may contain metacharacters while being
26200 # careful not to overquote the AC_SUBSTed values. We take copies of the
26201 # variables and quote the copies for generation of the libtool script.
26202 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26206 deplibs_check_method reload_flag reload_cmds need_locks \
26207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26208 lt_cv_sys_global_symbol_to_c_name_address \
26209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26210 old_postinstall_cmds old_postuninstall_cmds \
26214 lt_prog_compiler_wl_GCJ \
26215 lt_prog_compiler_pic_GCJ \
26216 lt_prog_compiler_static_GCJ \
26217 lt_prog_compiler_no_builtin_flag_GCJ \
26218 export_dynamic_flag_spec_GCJ \
26219 thread_safe_flag_spec_GCJ \
26220 whole_archive_flag_spec_GCJ \
26221 enable_shared_with_static_runtimes_GCJ \
26222 old_archive_cmds_GCJ \
26223 old_archive_from_new_cmds_GCJ \
26224 predep_objects_GCJ \
26225 postdep_objects_GCJ \
26228 compiler_lib_search_path_GCJ \
26230 archive_expsym_cmds_GCJ \
26231 postinstall_cmds_GCJ \
26232 postuninstall_cmds_GCJ \
26233 old_archive_from_expsyms_cmds_GCJ \
26234 allow_undefined_flag_GCJ \
26235 no_undefined_flag_GCJ \
26236 export_symbols_cmds_GCJ \
26237 hardcode_libdir_flag_spec_GCJ \
26238 hardcode_libdir_flag_spec_ld_GCJ \
26239 hardcode_libdir_separator_GCJ \
26240 hardcode_automatic_GCJ \
26242 module_expsym_cmds_GCJ \
26243 lt_cv_prog_compiler_c_o_GCJ \
26244 exclude_expsyms_GCJ \
26245 include_expsyms_GCJ
; do
26248 old_archive_cmds_GCJ | \
26249 old_archive_from_new_cmds_GCJ | \
26250 archive_cmds_GCJ | \
26251 archive_expsym_cmds_GCJ | \
26252 module_cmds_GCJ | \
26253 module_expsym_cmds_GCJ | \
26254 old_archive_from_expsyms_cmds_GCJ | \
26255 export_symbols_cmds_GCJ | \
26256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26257 postinstall_cmds | postuninstall_cmds | \
26258 old_postinstall_cmds | old_postuninstall_cmds | \
26259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26260 # Double-quote double-evaled strings.
26261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26270 *'\$0 --fallback-echo"')
26271 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26277 cat <<__EOF__ >> "$cfgfile"
26278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26282 # Shell to use when invoking shell scripts.
26285 # Whether or not to build shared libraries.
26286 build_libtool_libs=$enable_shared
26288 # Whether or not to build static libraries.
26289 build_old_libs=$enable_static
26291 # Whether or not to add -lc for building shared libraries.
26292 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26294 # Whether or not to disallow shared libs when runtime libs are static
26295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26297 # Whether or not to optimize for fast installation.
26298 fast_install=$enable_fast_install
26301 host_alias=$host_alias
26305 # The build system.
26306 build_alias=$build_alias
26310 # An echo program that does not interpret backslashes.
26315 AR_FLAGS=$lt_AR_FLAGS
26320 # LTCC compiler flags.
26321 LTCFLAGS=$lt_LTCFLAGS
26323 # A language-specific compiler.
26324 CC=$lt_compiler_GCJ
26326 # Is the compiler the GNU C compiler?
26332 # The linker used to build libraries.
26335 # Whether we need hard or soft links.
26338 # A BSD-compatible nm program.
26341 # A symbol stripping program
26344 # Used to examine libraries when file_magic_cmd begins "file"
26345 MAGIC_CMD=$MAGIC_CMD
26347 # Used on cygwin: DLL creation program.
26350 # Used on cygwin: object dumper.
26353 # Used on cygwin: assembler.
26356 # The name of the directory that contains temporary libtool files.
26359 # How to create reloadable object files.
26360 reload_flag=$lt_reload_flag
26361 reload_cmds=$lt_reload_cmds
26363 # How to pass a linker flag through the compiler.
26364 wl=$lt_lt_prog_compiler_wl_GCJ
26366 # Object file suffix (normally "o").
26367 objext="$ac_objext"
26369 # Old archive suffix (normally "a").
26372 # Shared library suffix (normally ".so").
26373 shrext_cmds='$shrext_cmds'
26375 # Executable file suffix (normally "").
26378 # Additional compiler flags for building library objects.
26379 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26382 # What is the maximum length of a command?
26383 max_cmd_len=$lt_cv_sys_max_cmd_len
26385 # Does compiler simultaneously support -c and -o options?
26386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26388 # Must we lock files when doing compilation?
26389 need_locks=$lt_need_locks
26391 # Do we need the lib prefix for modules?
26392 need_lib_prefix=$need_lib_prefix
26394 # Do we need a version for libraries?
26395 need_version=$need_version
26397 # Whether dlopen is supported.
26398 dlopen_support=$enable_dlopen
26400 # Whether dlopen of programs is supported.
26401 dlopen_self=$enable_dlopen_self
26403 # Whether dlopen of statically linked programs is supported.
26404 dlopen_self_static=$enable_dlopen_self_static
26406 # Compiler flag to prevent dynamic linking.
26407 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26409 # Compiler flag to turn off builtin functions.
26410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26412 # Compiler flag to allow reflexive dlopens.
26413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26415 # Compiler flag to generate shared objects directly from archives.
26416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26418 # Compiler flag to generate thread-safe objects.
26419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26421 # Library versioning type.
26422 version_type=$version_type
26424 # Format of library name prefix.
26425 libname_spec=$lt_libname_spec
26427 # List of archive names. First name is the real one, the rest are links.
26428 # The last name is the one that the linker finds with -lNAME.
26429 library_names_spec=$lt_library_names_spec
26431 # The coded name of the library, if different from the real name.
26432 soname_spec=$lt_soname_spec
26434 # Commands used to build and install an old-style archive.
26436 old_archive_cmds=$lt_old_archive_cmds_GCJ
26437 old_postinstall_cmds=$lt_old_postinstall_cmds
26438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26440 # Create an old-style archive from a shared archive.
26441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26443 # Create a temporary old-style archive to link instead of a shared archive.
26444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26446 # Commands used to build and install a shared archive.
26447 archive_cmds=$lt_archive_cmds_GCJ
26448 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26449 postinstall_cmds=$lt_postinstall_cmds
26450 postuninstall_cmds=$lt_postuninstall_cmds
26452 # Commands used to build a loadable module (assumed same as above if empty)
26453 module_cmds=$lt_module_cmds_GCJ
26454 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26456 # Commands to strip libraries.
26457 old_striplib=$lt_old_striplib
26458 striplib=$lt_striplib
26460 # Dependencies to place before the objects being linked to create a
26462 predep_objects=$lt_predep_objects_GCJ
26464 # Dependencies to place after the objects being linked to create a
26466 postdep_objects=$lt_postdep_objects_GCJ
26468 # Dependencies to place before the objects being linked to create a
26470 predeps=$lt_predeps_GCJ
26472 # Dependencies to place after the objects being linked to create a
26474 postdeps=$lt_postdeps_GCJ
26476 # The library search path used internally by the compiler when linking
26477 # a shared library.
26478 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26480 # Method to check whether dependent libraries are shared objects.
26481 deplibs_check_method=$lt_deplibs_check_method
26483 # Command to use when deplibs_check_method == file_magic.
26484 file_magic_cmd=$lt_file_magic_cmd
26486 # Flag that allows shared libraries with undefined symbols to be built.
26487 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26489 # Flag that forces no undefined symbols.
26490 no_undefined_flag=$lt_no_undefined_flag_GCJ
26492 # Commands used to finish a libtool library installation in a directory.
26493 finish_cmds=$lt_finish_cmds
26495 # Same as above, but a single script fragment to be evaled but not shown.
26496 finish_eval=$lt_finish_eval
26498 # Take the output of nm and produce a listing of raw symbols and C names.
26499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26501 # Transform the output of nm in a proper C declaration
26502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26504 # Transform the output of nm in a C name address pair
26505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26507 # This is the shared library runtime path variable.
26508 runpath_var=$runpath_var
26510 # This is the shared library path variable.
26511 shlibpath_var=$shlibpath_var
26513 # Is shlibpath searched before the hard-coded library search path?
26514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26516 # How to hardcode a shared library path into an executable.
26517 hardcode_action=$hardcode_action_GCJ
26519 # Whether we should hardcode library paths into libraries.
26520 hardcode_into_libs=$hardcode_into_libs
26522 # Flag to hardcode \$libdir into a binary during linking.
26523 # This must work even if \$libdir does not exist.
26524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26526 # If ld is used when linking, flag to hardcode \$libdir into
26527 # a binary during linking. This must work even if \$libdir does
26529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26531 # Whether we need a single -rpath flag with a separated argument.
26532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26535 # resulting binary.
26536 hardcode_direct=$hardcode_direct_GCJ
26538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26539 # resulting binary.
26540 hardcode_minus_L=$hardcode_minus_L_GCJ
26542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26543 # the resulting binary.
26544 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26546 # Set to yes if building a shared library automatically hardcodes DIR into the library
26547 # and all subsequent libraries and executables linked against it.
26548 hardcode_automatic=$hardcode_automatic_GCJ
26550 # Variables whose values should be saved in libtool wrapper scripts and
26551 # restored at relink time.
26552 variables_saved_for_relink="$variables_saved_for_relink"
26554 # Whether libtool must link a program against all its dependency libraries.
26555 link_all_deplibs=$link_all_deplibs_GCJ
26557 # Compile-time system search path for libraries
26558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26560 # Run-time system search path for libraries
26561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26563 # Fix the shell variable \$srcfile for the compiler.
26564 fix_srcfile_path="$fix_srcfile_path_GCJ"
26566 # Set to yes if exported symbols are required.
26567 always_export_symbols=$always_export_symbols_GCJ
26569 # The commands to list exported symbols.
26570 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26572 # The commands to extract the exported symbol list from a shared archive.
26573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26575 # Symbols that should not be listed in the preloaded symbols.
26576 exclude_expsyms=$lt_exclude_expsyms_GCJ
26578 # Symbols that must always be exported.
26579 include_expsyms=$lt_include_expsyms_GCJ
26581 # ### END LIBTOOL TAG CONFIG: $tagname
26587 # If there is no Makefile yet, we rely on a make rule to execute
26588 # `config.status --recheck' to rerun these tests and create the
26589 # libtool script then.
26590 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26591 if test -f "$ltmain_in"; then
26592 test -f Makefile
&& make "$ltmain"
26598 ac_cpp
='$CPP $CPPFLAGS'
26599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26612 ac_cpp
='$CPP $CPPFLAGS'
26613 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26614 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26615 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26618 # Source file extension for RC test sources.
26621 # Object file extension for compiled RC test sources.
26625 # Code to be used in simple compile tests
26626 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26628 # Code to be used in simple link tests
26629 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26631 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26633 # If no C compiler was specified, use CC.
26636 # If no C compiler flags were specified, use CFLAGS.
26637 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26639 # Allow CC to be a program name with arguments.
26643 # save warnings/boilerplate of simple test code
26644 ac_outfile
=conftest.
$ac_objext
26645 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26646 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26647 _lt_compiler_boilerplate
=`cat conftest.err`
26650 ac_outfile
=conftest.
$ac_objext
26651 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26652 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26653 _lt_linker_boilerplate
=`cat conftest.err`
26657 # Allow CC to be a program name with arguments.
26662 for cc_temp
in $compiler""; do
26664 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26665 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26670 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26672 lt_cv_prog_compiler_c_o_RC
=yes
26674 # The else clause should only fire when bootstrapping the
26675 # libtool distribution, otherwise you forgot to ship ltmain.sh
26676 # with your package, and you will get complaints that there are
26677 # no rules to generate ltmain.sh.
26678 if test -f "$ltmain"; then
26679 # See if we are running on zsh, and set the options which allow our commands through
26680 # without removal of \ escapes.
26681 if test -n "${ZSH_VERSION+set}" ; then
26682 setopt NO_GLOB_SUBST
26684 # Now quote all the things that may contain metacharacters while being
26685 # careful not to overquote the AC_SUBSTed values. We take copies of the
26686 # variables and quote the copies for generation of the libtool script.
26687 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26691 deplibs_check_method reload_flag reload_cmds need_locks \
26692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26693 lt_cv_sys_global_symbol_to_c_name_address \
26694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26695 old_postinstall_cmds old_postuninstall_cmds \
26699 lt_prog_compiler_wl_RC \
26700 lt_prog_compiler_pic_RC \
26701 lt_prog_compiler_static_RC \
26702 lt_prog_compiler_no_builtin_flag_RC \
26703 export_dynamic_flag_spec_RC \
26704 thread_safe_flag_spec_RC \
26705 whole_archive_flag_spec_RC \
26706 enable_shared_with_static_runtimes_RC \
26707 old_archive_cmds_RC \
26708 old_archive_from_new_cmds_RC \
26709 predep_objects_RC \
26710 postdep_objects_RC \
26713 compiler_lib_search_path_RC \
26715 archive_expsym_cmds_RC \
26716 postinstall_cmds_RC \
26717 postuninstall_cmds_RC \
26718 old_archive_from_expsyms_cmds_RC \
26719 allow_undefined_flag_RC \
26720 no_undefined_flag_RC \
26721 export_symbols_cmds_RC \
26722 hardcode_libdir_flag_spec_RC \
26723 hardcode_libdir_flag_spec_ld_RC \
26724 hardcode_libdir_separator_RC \
26725 hardcode_automatic_RC \
26727 module_expsym_cmds_RC \
26728 lt_cv_prog_compiler_c_o_RC \
26729 exclude_expsyms_RC \
26730 include_expsyms_RC
; do
26733 old_archive_cmds_RC | \
26734 old_archive_from_new_cmds_RC | \
26735 archive_cmds_RC | \
26736 archive_expsym_cmds_RC | \
26738 module_expsym_cmds_RC | \
26739 old_archive_from_expsyms_cmds_RC | \
26740 export_symbols_cmds_RC | \
26741 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26742 postinstall_cmds | postuninstall_cmds | \
26743 old_postinstall_cmds | old_postuninstall_cmds | \
26744 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26745 # Double-quote double-evaled strings.
26746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26755 *'\$0 --fallback-echo"')
26756 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26762 cat <<__EOF__ >> "$cfgfile"
26763 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26767 # Shell to use when invoking shell scripts.
26770 # Whether or not to build shared libraries.
26771 build_libtool_libs=$enable_shared
26773 # Whether or not to build static libraries.
26774 build_old_libs=$enable_static
26776 # Whether or not to add -lc for building shared libraries.
26777 build_libtool_need_lc=$archive_cmds_need_lc_RC
26779 # Whether or not to disallow shared libs when runtime libs are static
26780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26782 # Whether or not to optimize for fast installation.
26783 fast_install=$enable_fast_install
26786 host_alias=$host_alias
26790 # The build system.
26791 build_alias=$build_alias
26795 # An echo program that does not interpret backslashes.
26800 AR_FLAGS=$lt_AR_FLAGS
26805 # LTCC compiler flags.
26806 LTCFLAGS=$lt_LTCFLAGS
26808 # A language-specific compiler.
26811 # Is the compiler the GNU C compiler?
26817 # The linker used to build libraries.
26820 # Whether we need hard or soft links.
26823 # A BSD-compatible nm program.
26826 # A symbol stripping program
26829 # Used to examine libraries when file_magic_cmd begins "file"
26830 MAGIC_CMD=$MAGIC_CMD
26832 # Used on cygwin: DLL creation program.
26835 # Used on cygwin: object dumper.
26838 # Used on cygwin: assembler.
26841 # The name of the directory that contains temporary libtool files.
26844 # How to create reloadable object files.
26845 reload_flag=$lt_reload_flag
26846 reload_cmds=$lt_reload_cmds
26848 # How to pass a linker flag through the compiler.
26849 wl=$lt_lt_prog_compiler_wl_RC
26851 # Object file suffix (normally "o").
26852 objext="$ac_objext"
26854 # Old archive suffix (normally "a").
26857 # Shared library suffix (normally ".so").
26858 shrext_cmds='$shrext_cmds'
26860 # Executable file suffix (normally "").
26863 # Additional compiler flags for building library objects.
26864 pic_flag=$lt_lt_prog_compiler_pic_RC
26867 # What is the maximum length of a command?
26868 max_cmd_len=$lt_cv_sys_max_cmd_len
26870 # Does compiler simultaneously support -c and -o options?
26871 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26873 # Must we lock files when doing compilation?
26874 need_locks=$lt_need_locks
26876 # Do we need the lib prefix for modules?
26877 need_lib_prefix=$need_lib_prefix
26879 # Do we need a version for libraries?
26880 need_version=$need_version
26882 # Whether dlopen is supported.
26883 dlopen_support=$enable_dlopen
26885 # Whether dlopen of programs is supported.
26886 dlopen_self=$enable_dlopen_self
26888 # Whether dlopen of statically linked programs is supported.
26889 dlopen_self_static=$enable_dlopen_self_static
26891 # Compiler flag to prevent dynamic linking.
26892 link_static_flag=$lt_lt_prog_compiler_static_RC
26894 # Compiler flag to turn off builtin functions.
26895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26897 # Compiler flag to allow reflexive dlopens.
26898 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26900 # Compiler flag to generate shared objects directly from archives.
26901 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26903 # Compiler flag to generate thread-safe objects.
26904 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26906 # Library versioning type.
26907 version_type=$version_type
26909 # Format of library name prefix.
26910 libname_spec=$lt_libname_spec
26912 # List of archive names. First name is the real one, the rest are links.
26913 # The last name is the one that the linker finds with -lNAME.
26914 library_names_spec=$lt_library_names_spec
26916 # The coded name of the library, if different from the real name.
26917 soname_spec=$lt_soname_spec
26919 # Commands used to build and install an old-style archive.
26921 old_archive_cmds=$lt_old_archive_cmds_RC
26922 old_postinstall_cmds=$lt_old_postinstall_cmds
26923 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26925 # Create an old-style archive from a shared archive.
26926 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26928 # Create a temporary old-style archive to link instead of a shared archive.
26929 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26931 # Commands used to build and install a shared archive.
26932 archive_cmds=$lt_archive_cmds_RC
26933 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26934 postinstall_cmds=$lt_postinstall_cmds
26935 postuninstall_cmds=$lt_postuninstall_cmds
26937 # Commands used to build a loadable module (assumed same as above if empty)
26938 module_cmds=$lt_module_cmds_RC
26939 module_expsym_cmds=$lt_module_expsym_cmds_RC
26941 # Commands to strip libraries.
26942 old_striplib=$lt_old_striplib
26943 striplib=$lt_striplib
26945 # Dependencies to place before the objects being linked to create a
26947 predep_objects=$lt_predep_objects_RC
26949 # Dependencies to place after the objects being linked to create a
26951 postdep_objects=$lt_postdep_objects_RC
26953 # Dependencies to place before the objects being linked to create a
26955 predeps=$lt_predeps_RC
26957 # Dependencies to place after the objects being linked to create a
26959 postdeps=$lt_postdeps_RC
26961 # The library search path used internally by the compiler when linking
26962 # a shared library.
26963 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26965 # Method to check whether dependent libraries are shared objects.
26966 deplibs_check_method=$lt_deplibs_check_method
26968 # Command to use when deplibs_check_method == file_magic.
26969 file_magic_cmd=$lt_file_magic_cmd
26971 # Flag that allows shared libraries with undefined symbols to be built.
26972 allow_undefined_flag=$lt_allow_undefined_flag_RC
26974 # Flag that forces no undefined symbols.
26975 no_undefined_flag=$lt_no_undefined_flag_RC
26977 # Commands used to finish a libtool library installation in a directory.
26978 finish_cmds=$lt_finish_cmds
26980 # Same as above, but a single script fragment to be evaled but not shown.
26981 finish_eval=$lt_finish_eval
26983 # Take the output of nm and produce a listing of raw symbols and C names.
26984 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26986 # Transform the output of nm in a proper C declaration
26987 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26989 # Transform the output of nm in a C name address pair
26990 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26992 # This is the shared library runtime path variable.
26993 runpath_var=$runpath_var
26995 # This is the shared library path variable.
26996 shlibpath_var=$shlibpath_var
26998 # Is shlibpath searched before the hard-coded library search path?
26999 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27001 # How to hardcode a shared library path into an executable.
27002 hardcode_action=$hardcode_action_RC
27004 # Whether we should hardcode library paths into libraries.
27005 hardcode_into_libs=$hardcode_into_libs
27007 # Flag to hardcode \$libdir into a binary during linking.
27008 # This must work even if \$libdir does not exist.
27009 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27011 # If ld is used when linking, flag to hardcode \$libdir into
27012 # a binary during linking. This must work even if \$libdir does
27014 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27016 # Whether we need a single -rpath flag with a separated argument.
27017 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27019 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27020 # resulting binary.
27021 hardcode_direct=$hardcode_direct_RC
27023 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27024 # resulting binary.
27025 hardcode_minus_L=$hardcode_minus_L_RC
27027 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27028 # the resulting binary.
27029 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27031 # Set to yes if building a shared library automatically hardcodes DIR into the library
27032 # and all subsequent libraries and executables linked against it.
27033 hardcode_automatic=$hardcode_automatic_RC
27035 # Variables whose values should be saved in libtool wrapper scripts and
27036 # restored at relink time.
27037 variables_saved_for_relink="$variables_saved_for_relink"
27039 # Whether libtool must link a program against all its dependency libraries.
27040 link_all_deplibs=$link_all_deplibs_RC
27042 # Compile-time system search path for libraries
27043 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27045 # Run-time system search path for libraries
27046 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27048 # Fix the shell variable \$srcfile for the compiler.
27049 fix_srcfile_path="$fix_srcfile_path_RC"
27051 # Set to yes if exported symbols are required.
27052 always_export_symbols=$always_export_symbols_RC
27054 # The commands to list exported symbols.
27055 export_symbols_cmds=$lt_export_symbols_cmds_RC
27057 # The commands to extract the exported symbol list from a shared archive.
27058 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27060 # Symbols that should not be listed in the preloaded symbols.
27061 exclude_expsyms=$lt_exclude_expsyms_RC
27063 # Symbols that must always be exported.
27064 include_expsyms=$lt_include_expsyms_RC
27066 # ### END LIBTOOL TAG CONFIG: $tagname
27072 # If there is no Makefile yet, we rely on a make rule to execute
27073 # `config.status --recheck' to rerun these tests and create the
27074 # libtool script then.
27075 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27076 if test -f "$ltmain_in"; then
27077 test -f Makefile
&& make "$ltmain"
27083 ac_cpp
='$CPP $CPPFLAGS'
27084 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27085 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27086 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27093 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27094 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27095 { (exit 1); exit 1; }; }
27099 # Append the new tag name to the list of available tags.
27100 if test -n "$tagname" ; then
27101 available_tags
="$available_tags $tagname"
27107 # Now substitute the updated list of available tags.
27108 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27109 mv "${ofile}T" "$ofile"
27113 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27114 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27115 { (exit 1); exit 1; }; }
27121 # This can be used to rebuild libtool when needed
27122 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
27124 # Always use our own libtool.
27125 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
27127 # Prevent multiple expansion
27149 if test "$lt_cv_dlopen_self" = "yes" ; then
27151 cat >>confdefs.h
<<\_ACEOF
27152 #define CAN_DLOPEN_SELF 1
27158 if test "$WITH_LLVMGCCDIR" = "default" ; then
27159 LLVMGCC
="llvm-gcc${EXEEXT}"
27160 LLVMGXX
="llvm-g++${EXEEXT}"
27161 LLVMGCCCOMMAND
="$LLVMGCC"
27162 LLVMGXXCOMMAND
="$LLVMGXX"
27163 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27165 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27167 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27168 set dummy
$LLVMGCC; ac_word
=$2
27169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27171 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27172 echo $ECHO_N "(cached) $ECHO_C" >&6
27176 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
27179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27180 for as_dir
in $PATH
27183 test -z "$as_dir" && as_dir
=.
27184 for ac_exec_ext
in '' $ac_executable_extensions; do
27185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27186 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
27187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27197 LLVMGCC
=$ac_cv_path_LLVMGCC
27198 if test -n "$LLVMGCC"; then
27199 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27200 echo "${ECHO_T}$LLVMGCC" >&6; }
27202 { echo "$as_me:$LINENO: result: no" >&5
27203 echo "${ECHO_T}no" >&6; }
27207 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27208 set dummy
$LLVMGXX; ac_word
=$2
27209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27211 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27212 echo $ECHO_N "(cached) $ECHO_C" >&6
27216 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
27219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27220 for as_dir
in $PATH
27223 test -z "$as_dir" && as_dir
=.
27224 for ac_exec_ext
in '' $ac_executable_extensions; do
27225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27226 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
27227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27237 LLVMGXX
=$ac_cv_path_LLVMGXX
27238 if test -n "$LLVMGXX"; then
27239 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27240 echo "${ECHO_T}$LLVMGXX" >&6; }
27242 { echo "$as_me:$LINENO: result: no" >&5
27243 echo "${ECHO_T}no" >&6; }
27248 if test -z "$LLVMGCC"; then
27249 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27250 LLVMGCCCOMMAND
="$LLVMGCC"
27252 if test -z "$LLVMGXX"; then
27253 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27254 LLVMGXXCOMMAND
="$LLVMGXX"
27261 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27263 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27268 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27269 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27282 if test "$GCC" != "yes" && test "$ICC" != "yes"
27284 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27285 echo "$as_me: error: gcc|icc required but not found" >&2;}
27286 { (exit 1); exit 1; }; }
27289 if test "$GXX" != "yes" && test "$IXX" != "yes"
27291 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27292 echo "$as_me: error: g++|icc required but not found" >&2;}
27293 { (exit 1); exit 1; }; }
27296 if test "$GCC" = "yes"
27298 cat >conftest.
$ac_ext <<_ACEOF
27299 #if !defined(__GNUC__) || __GNUC__ < 3
27300 #error Unsupported GCC version
27304 rm -f conftest.
$ac_objext
27305 if { (ac_try
="$ac_compile"
27306 case "(($ac_try" in
27307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27308 *) ac_try_echo=$ac_try;;
27310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27311 (eval "$ac_compile") 2>conftest.er1
27313 grep -v '^ *+' conftest.er1 >conftest.err
27315 cat conftest.err >&5
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); } &&
27318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27319 { (case "(($ac_try" in
27320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27321 *) ac_try_echo
=$ac_try;;
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324 (eval "$ac_try") 2>&5
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; } &&
27328 { ac_try
='test -s conftest.$ac_objext'
27329 { (case "(($ac_try" in
27330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27331 *) ac_try_echo=$ac_try;;
27333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27334 (eval "$ac_try") 2>&5
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); }; }; then
27340 echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27343 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27344 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27345 { (exit 1); exit 1; }; }
27348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27351 if test -z "$llvm_cv_gnu_make_command"
27353 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27354 echo "$as_me: error: GNU Make required but not found" >&2;}
27355 { (exit 1); exit 1; }; }
27358 { echo "$as_me:$LINENO: result: ok" >&5
27359 echo "${ECHO_T}ok" >&6; }
27361 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27362 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27363 if test "${ac_cv_lib_m_sin+set}" = set; then
27364 echo $ECHO_N "(cached) $ECHO_C" >&6
27366 ac_check_lib_save_LIBS=$LIBS
27368 cat >conftest.$ac_ext <<_ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h. */
27375 /* Override any GCC internal prototype to avoid an error.
27376 Use char because int might match the return type of a GCC
27377 builtin and then its argument prototype would still apply. */
27390 rm -f conftest.$ac_objext conftest$ac_exeext
27391 if { (ac_try="$ac_link"
27392 case "(($ac_try" in
27393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27394 *) ac_try_echo
=$ac_try;;
27396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397 (eval "$ac_link") 2>conftest.er1
27399 grep -v '^ *+' conftest.er1
>conftest.err
27401 cat conftest.err
>&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); } &&
27404 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27405 { (case "(($ac_try" in
27406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27407 *) ac_try_echo=$ac_try;;
27409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27410 (eval "$ac_try") 2>&5
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; } &&
27414 { ac_try='test -s conftest$ac_exeext'
27415 { (case "(($ac_try" in
27416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27417 *) ac_try_echo
=$ac_try;;
27419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420 (eval "$ac_try") 2>&5
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); }; }; then
27424 ac_cv_lib_m_sin
=yes
27426 echo "$as_me: failed program was:" >&5
27427 sed 's/^/| /' conftest.
$ac_ext >&5
27432 rm -f core conftest.err conftest.
$ac_objext \
27433 conftest
$ac_exeext conftest.
$ac_ext
27434 LIBS
=$ac_check_lib_save_LIBS
27436 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27437 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27438 if test $ac_cv_lib_m_sin = yes; then
27439 cat >>confdefs.h
<<_ACEOF
27440 #define HAVE_LIBM 1
27447 if test "$llvm_cv_os_type" = "MingW" ; then
27449 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27450 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27451 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27452 echo $ECHO_N "(cached) $ECHO_C" >&6
27454 ac_check_lib_save_LIBS
=$LIBS
27455 LIBS
="-limagehlp $LIBS"
27456 cat >conftest.
$ac_ext <<_ACEOF
27459 cat confdefs.h
>>conftest.
$ac_ext
27460 cat >>conftest.
$ac_ext <<_ACEOF
27461 /* end confdefs.h. */
27472 rm -f conftest.
$ac_objext conftest
$ac_exeext
27473 if { (ac_try
="$ac_link"
27474 case "(($ac_try" in
27475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27476 *) ac_try_echo=$ac_try;;
27478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479 (eval "$ac_link") 2>conftest.er1
27481 grep -v '^ *+' conftest.er1 >conftest.err
27483 cat conftest.err >&5
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); } &&
27486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27487 { (case "(($ac_try" in
27488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27489 *) ac_try_echo
=$ac_try;;
27491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27492 (eval "$ac_try") 2>&5
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); }; } &&
27496 { ac_try
='test -s conftest$ac_exeext'
27497 { (case "(($ac_try" in
27498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27499 *) ac_try_echo=$ac_try;;
27501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502 (eval "$ac_try") 2>&5
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); }; }; then
27506 ac_cv_lib_imagehlp_main=yes
27508 echo "$as_me: failed program was:" >&5
27509 sed 's/^/| /' conftest.$ac_ext >&5
27511 ac_cv_lib_imagehlp_main=no
27514 rm -f core conftest.err conftest.$ac_objext \
27515 conftest$ac_exeext conftest.$ac_ext
27516 LIBS=$ac_check_lib_save_LIBS
27518 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27519 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27520 if test $ac_cv_lib_imagehlp_main = yes; then
27521 cat >>confdefs.h <<_ACEOF
27522 #define HAVE_LIBIMAGEHLP 1
27525 LIBS="-limagehlp $LIBS"
27530 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27531 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27532 if test "${ac_cv_lib_psapi_main+set}" = set; then
27533 echo $ECHO_N "(cached) $ECHO_C" >&6
27535 ac_check_lib_save_LIBS=$LIBS
27536 LIBS="-lpsapi $LIBS"
27537 cat >conftest.$ac_ext <<_ACEOF
27540 cat confdefs.h >>conftest.$ac_ext
27541 cat >>conftest.$ac_ext <<_ACEOF
27542 /* end confdefs.h. */
27553 rm -f conftest.$ac_objext conftest$ac_exeext
27554 if { (ac_try="$ac_link"
27555 case "(($ac_try" in
27556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27557 *) ac_try_echo
=$ac_try;;
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_link") 2>conftest.er1
27562 grep -v '^ *+' conftest.er1
>conftest.err
27564 cat conftest.err
>&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } &&
27567 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27568 { (case "(($ac_try" in
27569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_try") 2>&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; } &&
27577 { ac_try='test -s conftest$ac_exeext'
27578 { (case "(($ac_try" in
27579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27580 *) ac_try_echo
=$ac_try;;
27582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583 (eval "$ac_try") 2>&5
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; }; then
27587 ac_cv_lib_psapi_main
=yes
27589 echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.
$ac_ext >&5
27592 ac_cv_lib_psapi_main
=no
27595 rm -f core conftest.err conftest.
$ac_objext \
27596 conftest
$ac_exeext conftest.
$ac_ext
27597 LIBS
=$ac_check_lib_save_LIBS
27599 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27600 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27601 if test $ac_cv_lib_psapi_main = yes; then
27602 cat >>confdefs.h
<<_ACEOF
27603 #define HAVE_LIBPSAPI 1
27606 LIBS
="-lpsapi $LIBS"
27612 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27613 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27614 if test "${ac_cv_search_dlopen+set}" = set; then
27615 echo $ECHO_N "(cached) $ECHO_C" >&6
27617 ac_func_search_save_LIBS
=$LIBS
27618 cat >conftest.
$ac_ext <<_ACEOF
27621 cat confdefs.h
>>conftest.
$ac_ext
27622 cat >>conftest.
$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27625 /* Override any GCC internal prototype to avoid an error.
27626 Use char because int might match the return type of a GCC
27627 builtin and then its argument prototype would still apply. */
27640 for ac_lib
in '' dl
; do
27641 if test -z "$ac_lib"; then
27642 ac_res
="none required"
27645 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27647 rm -f conftest.
$ac_objext conftest
$ac_exeext
27648 if { (ac_try
="$ac_link"
27649 case "(($ac_try" in
27650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_link") 2>conftest.er1
27656 grep -v '^ *+' conftest.er1 >conftest.err
27658 cat conftest.err >&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } &&
27661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27662 { (case "(($ac_try" in
27663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27664 *) ac_try_echo
=$ac_try;;
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_try") 2>&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; } &&
27671 { ac_try
='test -s conftest$ac_exeext'
27672 { (case "(($ac_try" in
27673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27674 *) ac_try_echo=$ac_try;;
27676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27677 (eval "$ac_try") 2>&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; }; then
27681 ac_cv_search_dlopen=$ac_res
27683 echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27689 rm -f core conftest.err conftest.$ac_objext \
27691 if test "${ac_cv_search_dlopen+set}" = set; then
27695 if test "${ac_cv_search_dlopen+set}" = set; then
27698 ac_cv_search_dlopen=no
27700 rm conftest.$ac_ext
27701 LIBS=$ac_func_search_save_LIBS
27703 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27704 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27705 ac_res=$ac_cv_search_dlopen
27706 if test "$ac_res" != no; then
27707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27709 cat >>confdefs.h <<\_ACEOF
27710 #define HAVE_DLOPEN 1
27714 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27715 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27719 if test "$llvm_cv_enable_libffi" = "yes" ; then
27720 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27721 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27722 if test "${ac_cv_search_ffi_call+set}" = set; then
27723 echo $ECHO_N "(cached) $ECHO_C" >&6
27725 ac_func_search_save_LIBS=$LIBS
27726 cat >conftest.$ac_ext <<_ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h. */
27733 /* Override any GCC internal prototype to avoid an error.
27734 Use char because int might match the return type of a GCC
27735 builtin and then its argument prototype would still apply. */
27743 return ffi_call ();
27748 for ac_lib in '' ffi; do
27749 if test -z "$ac_lib"; then
27750 ac_res="none required"
27753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27755 rm -f conftest.$ac_objext conftest$ac_exeext
27756 if { (ac_try="$ac_link"
27757 case "(($ac_try" in
27758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27759 *) ac_try_echo
=$ac_try;;
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762 (eval "$ac_link") 2>conftest.er1
27764 grep -v '^ *+' conftest.er1
>conftest.err
27766 cat conftest.err
>&5
27767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768 (exit $ac_status); } &&
27769 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27770 { (case "(($ac_try" in
27771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27772 *) ac_try_echo=$ac_try;;
27774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775 (eval "$ac_try") 2>&5
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); }; } &&
27779 { ac_try='test -s conftest$ac_exeext'
27780 { (case "(($ac_try" in
27781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27782 *) ac_try_echo
=$ac_try;;
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785 (eval "$ac_try") 2>&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; }; then
27789 ac_cv_search_ffi_call
=$ac_res
27791 echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.
$ac_ext >&5
27797 rm -f core conftest.err conftest.
$ac_objext \
27799 if test "${ac_cv_search_ffi_call+set}" = set; then
27803 if test "${ac_cv_search_ffi_call+set}" = set; then
27806 ac_cv_search_ffi_call
=no
27808 rm conftest.
$ac_ext
27809 LIBS
=$ac_func_search_save_LIBS
27811 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27812 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27813 ac_res
=$ac_cv_search_ffi_call
27814 if test "$ac_res" != no
; then
27815 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27817 cat >>confdefs.h
<<\_ACEOF
27818 #define HAVE_FFI_CALL 1
27822 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27823 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27828 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27829 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27830 if test "${ac_cv_search_mallinfo+set}" = set; then
27831 echo $ECHO_N "(cached) $ECHO_C" >&6
27833 ac_func_search_save_LIBS
=$LIBS
27834 cat >conftest.
$ac_ext <<_ACEOF
27837 cat confdefs.h
>>conftest.
$ac_ext
27838 cat >>conftest.
$ac_ext <<_ACEOF
27839 /* end confdefs.h. */
27841 /* Override any GCC internal prototype to avoid an error.
27842 Use char because int might match the return type of a GCC
27843 builtin and then its argument prototype would still apply. */
27851 return mallinfo ();
27856 for ac_lib
in '' malloc
; do
27857 if test -z "$ac_lib"; then
27858 ac_res
="none required"
27861 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27863 rm -f conftest.
$ac_objext conftest
$ac_exeext
27864 if { (ac_try
="$ac_link"
27865 case "(($ac_try" in
27866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27867 *) ac_try_echo=$ac_try;;
27869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870 (eval "$ac_link") 2>conftest.er1
27872 grep -v '^ *+' conftest.er1 >conftest.err
27874 cat conftest.err >&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } &&
27877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27878 { (case "(($ac_try" in
27879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27880 *) ac_try_echo
=$ac_try;;
27882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883 (eval "$ac_try") 2>&5
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; } &&
27887 { ac_try
='test -s conftest$ac_exeext'
27888 { (case "(($ac_try" in
27889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893 (eval "$ac_try") 2>&5
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; }; then
27897 ac_cv_search_mallinfo=$ac_res
27899 echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27905 rm -f core conftest.err conftest.$ac_objext \
27907 if test "${ac_cv_search_mallinfo+set}" = set; then
27911 if test "${ac_cv_search_mallinfo+set}" = set; then
27914 ac_cv_search_mallinfo=no
27916 rm conftest.$ac_ext
27917 LIBS=$ac_func_search_save_LIBS
27919 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27920 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27921 ac_res=$ac_cv_search_mallinfo
27922 if test "$ac_res" != no; then
27923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27925 cat >>confdefs.h <<\_ACEOF
27926 #define HAVE_MALLINFO 1
27932 if test "$ENABLE_THREADS" -eq 1 ; then
27934 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27935 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27936 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27939 ac_check_lib_save_LIBS=$LIBS
27940 LIBS="-lpthread $LIBS"
27941 cat >conftest.$ac_ext <<_ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h. */
27948 /* Override any GCC internal prototype to avoid an error.
27949 Use char because int might match the return type of a GCC
27950 builtin and then its argument prototype would still apply. */
27954 char pthread_mutex_init ();
27958 return pthread_mutex_init ();
27963 rm -f conftest.$ac_objext conftest$ac_exeext
27964 if { (ac_try="$ac_link"
27965 case "(($ac_try" in
27966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27967 *) ac_try_echo
=$ac_try;;
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970 (eval "$ac_link") 2>conftest.er1
27972 grep -v '^ *+' conftest.er1
>conftest.err
27974 cat conftest.err
>&5
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } &&
27977 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27978 { (case "(($ac_try" in
27979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27980 *) ac_try_echo=$ac_try;;
27982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27983 (eval "$ac_try") 2>&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); }; } &&
27987 { ac_try='test -s conftest$ac_exeext'
27988 { (case "(($ac_try" in
27989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27990 *) ac_try_echo
=$ac_try;;
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993 (eval "$ac_try") 2>&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
27997 ac_cv_lib_pthread_pthread_mutex_init
=yes
27999 echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.
$ac_ext >&5
28002 ac_cv_lib_pthread_pthread_mutex_init
=no
28005 rm -f core conftest.err conftest.
$ac_objext \
28006 conftest
$ac_exeext conftest.
$ac_ext
28007 LIBS
=$ac_check_lib_save_LIBS
28009 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28010 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28011 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28012 cat >>confdefs.h
<<_ACEOF
28013 #define HAVE_LIBPTHREAD 1
28016 LIBS
="-lpthread $LIBS"
28020 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28021 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28022 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28023 echo $ECHO_N "(cached) $ECHO_C" >&6
28025 ac_func_search_save_LIBS
=$LIBS
28026 cat >conftest.
$ac_ext <<_ACEOF
28029 cat confdefs.h
>>conftest.
$ac_ext
28030 cat >>conftest.
$ac_ext <<_ACEOF
28031 /* end confdefs.h. */
28033 /* Override any GCC internal prototype to avoid an error.
28034 Use char because int might match the return type of a GCC
28035 builtin and then its argument prototype would still apply. */
28039 char pthread_mutex_lock ();
28043 return pthread_mutex_lock ();
28048 for ac_lib
in '' pthread
; do
28049 if test -z "$ac_lib"; then
28050 ac_res
="none required"
28053 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28055 rm -f conftest.
$ac_objext conftest
$ac_exeext
28056 if { (ac_try
="$ac_link"
28057 case "(($ac_try" in
28058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28059 *) ac_try_echo=$ac_try;;
28061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062 (eval "$ac_link") 2>conftest.er1
28064 grep -v '^ *+' conftest.er1 >conftest.err
28066 cat conftest.err >&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); } &&
28069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28070 { (case "(($ac_try" in
28071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28072 *) ac_try_echo
=$ac_try;;
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_try") 2>&5
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; } &&
28079 { ac_try
='test -s conftest$ac_exeext'
28080 { (case "(($ac_try" in
28081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_try") 2>&5
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }; }; then
28089 ac_cv_search_pthread_mutex_lock=$ac_res
28091 echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.$ac_ext >&5
28097 rm -f core conftest.err conftest.$ac_objext \
28099 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28103 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28106 ac_cv_search_pthread_mutex_lock=no
28108 rm conftest.$ac_ext
28109 LIBS=$ac_func_search_save_LIBS
28111 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28112 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28113 ac_res=$ac_cv_search_pthread_mutex_lock
28114 if test "$ac_res" != no; then
28115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28117 cat >>confdefs.h <<\_ACEOF
28118 #define HAVE_PTHREAD_MUTEX_LOCK 1
28123 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28124 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28125 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28126 echo $ECHO_N "(cached) $ECHO_C" >&6
28128 ac_func_search_save_LIBS=$LIBS
28129 cat >conftest.$ac_ext <<_ACEOF
28132 cat confdefs.h >>conftest.$ac_ext
28133 cat >>conftest.$ac_ext <<_ACEOF
28134 /* end confdefs.h. */
28136 /* Override any GCC internal prototype to avoid an error.
28137 Use char because int might match the return type of a GCC
28138 builtin and then its argument prototype would still apply. */
28142 char pthread_rwlock_init ();
28146 return pthread_rwlock_init ();
28151 for ac_lib in '' pthread; do
28152 if test -z "$ac_lib"; then
28153 ac_res="none required"
28156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28158 rm -f conftest.$ac_objext conftest$ac_exeext
28159 if { (ac_try="$ac_link"
28160 case "(($ac_try" in
28161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28162 *) ac_try_echo
=$ac_try;;
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_link") 2>conftest.er1
28167 grep -v '^ *+' conftest.er1
>conftest.err
28169 cat conftest.err
>&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } &&
28172 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173 { (case "(($ac_try" in
28174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178 (eval "$ac_try") 2>&5
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; } &&
28182 { ac_try='test -s conftest$ac_exeext'
28183 { (case "(($ac_try" in
28184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28185 *) ac_try_echo
=$ac_try;;
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_try") 2>&5
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; }; then
28192 ac_cv_search_pthread_rwlock_init
=$ac_res
28194 echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.
$ac_ext >&5
28200 rm -f core conftest.err conftest.
$ac_objext \
28202 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28206 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28209 ac_cv_search_pthread_rwlock_init
=no
28211 rm conftest.
$ac_ext
28212 LIBS
=$ac_func_search_save_LIBS
28214 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28215 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28216 ac_res
=$ac_cv_search_pthread_rwlock_init
28217 if test "$ac_res" != no
; then
28218 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28220 cat >>confdefs.h
<<\_ACEOF
28221 #define HAVE_PTHREAD_RWLOCK_INIT 1
28226 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28227 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28228 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28229 echo $ECHO_N "(cached) $ECHO_C" >&6
28231 ac_func_search_save_LIBS
=$LIBS
28232 cat >conftest.
$ac_ext <<_ACEOF
28235 cat confdefs.h
>>conftest.
$ac_ext
28236 cat >>conftest.
$ac_ext <<_ACEOF
28237 /* end confdefs.h. */
28239 /* Override any GCC internal prototype to avoid an error.
28240 Use char because int might match the return type of a GCC
28241 builtin and then its argument prototype would still apply. */
28245 char pthread_getspecific ();
28249 return pthread_getspecific ();
28254 for ac_lib
in '' pthread
; do
28255 if test -z "$ac_lib"; then
28256 ac_res
="none required"
28259 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28261 rm -f conftest.
$ac_objext conftest
$ac_exeext
28262 if { (ac_try
="$ac_link"
28263 case "(($ac_try" in
28264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28265 *) ac_try_echo=$ac_try;;
28267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268 (eval "$ac_link") 2>conftest.er1
28270 grep -v '^ *+' conftest.er1 >conftest.err
28272 cat conftest.err >&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } &&
28275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28276 { (case "(($ac_try" in
28277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28278 *) ac_try_echo
=$ac_try;;
28280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28281 (eval "$ac_try") 2>&5
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; } &&
28285 { ac_try
='test -s conftest$ac_exeext'
28286 { (case "(($ac_try" in
28287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28288 *) ac_try_echo=$ac_try;;
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291 (eval "$ac_try") 2>&5
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; }; then
28295 ac_cv_search_pthread_getspecific=$ac_res
28297 echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28303 rm -f core conftest.err conftest.$ac_objext \
28305 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28309 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28312 ac_cv_search_pthread_getspecific=no
28314 rm conftest.$ac_ext
28315 LIBS=$ac_func_search_save_LIBS
28317 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28318 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28319 ac_res=$ac_cv_search_pthread_getspecific
28320 if test "$ac_res" != no; then
28321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_PTHREAD_GETSPECIFIC 1
28332 # Check whether --with-udis86 was given.
28333 if test "${with_udis86+set}" = set; then
28334 withval=$with_udis86;
28339 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28342 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28343 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28344 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28347 ac_check_lib_save_LIBS=$LIBS
28348 LIBS="-ludis86 $LIBS"
28349 cat >conftest.$ac_ext <<_ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h. */
28356 /* Override any GCC internal prototype to avoid an error.
28357 Use char because int might match the return type of a GCC
28358 builtin and then its argument prototype would still apply. */
28371 rm -f conftest.$ac_objext conftest$ac_exeext
28372 if { (ac_try="$ac_link"
28373 case "(($ac_try" in
28374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28375 *) ac_try_echo
=$ac_try;;
28377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28378 (eval "$ac_link") 2>conftest.er1
28380 grep -v '^ *+' conftest.er1
>conftest.err
28382 cat conftest.err
>&5
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); } &&
28385 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28386 { (case "(($ac_try" in
28387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28388 *) ac_try_echo=$ac_try;;
28390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28391 (eval "$ac_try") 2>&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); }; } &&
28395 { ac_try='test -s conftest$ac_exeext'
28396 { (case "(($ac_try" in
28397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28398 *) ac_try_echo
=$ac_try;;
28400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28401 (eval "$ac_try") 2>&5
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
28405 ac_cv_lib_udis86_ud_init
=yes
28407 echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.
$ac_ext >&5
28410 ac_cv_lib_udis86_ud_init
=no
28413 rm -f core conftest.err conftest.
$ac_objext \
28414 conftest
$ac_exeext conftest.
$ac_ext
28415 LIBS
=$ac_check_lib_save_LIBS
28417 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28418 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28419 if test $ac_cv_lib_udis86_ud_init = yes; then
28420 cat >>confdefs.h
<<_ACEOF
28421 #define HAVE_LIBUDIS86 1
28424 LIBS
="-ludis86 $LIBS"
28428 echo "Error! You need to have libudis86 around."
28440 cat >>confdefs.h
<<_ACEOF
28441 #define USE_UDIS86 $USE_UDIS86
28446 # Check whether --with-oprofile was given.
28447 if test "${with_oprofile+set}" = set; then
28448 withval
=$with_oprofile;
28452 /usr|
yes) llvm_cv_oppath
=/usr
/lib
/oprofile
;;
28453 *) llvm_cv_oppath
="${withval}/lib/oprofile"
28454 CPPFLAGS
="-I${withval}/include";;
28456 LIBS
="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28457 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28458 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28459 if test "${ac_cv_search_op_open_agent+set}" = set; then
28460 echo $ECHO_N "(cached) $ECHO_C" >&6
28462 ac_func_search_save_LIBS
=$LIBS
28463 cat >conftest.
$ac_ext <<_ACEOF
28466 cat confdefs.h
>>conftest.
$ac_ext
28467 cat >>conftest.
$ac_ext <<_ACEOF
28468 /* end confdefs.h. */
28470 /* Override any GCC internal prototype to avoid an error.
28471 Use char because int might match the return type of a GCC
28472 builtin and then its argument prototype would still apply. */
28476 char op_open_agent ();
28480 return op_open_agent ();
28485 for ac_lib
in '' opagent
; do
28486 if test -z "$ac_lib"; then
28487 ac_res
="none required"
28490 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28492 rm -f conftest.
$ac_objext conftest
$ac_exeext
28493 if { (ac_try
="$ac_link"
28494 case "(($ac_try" in
28495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_link") 2>conftest.er1
28501 grep -v '^ *+' conftest.er1 >conftest.err
28503 cat conftest.err >&5
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); } &&
28506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28507 { (case "(($ac_try" in
28508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28509 *) ac_try_echo
=$ac_try;;
28511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28512 (eval "$ac_try") 2>&5
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); }; } &&
28516 { ac_try
='test -s conftest$ac_exeext'
28517 { (case "(($ac_try" in
28518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28519 *) ac_try_echo=$ac_try;;
28521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28522 (eval "$ac_try") 2>&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); }; }; then
28526 ac_cv_search_op_open_agent=$ac_res
28528 echo "$as_me: failed program was:" >&5
28529 sed 's/^/| /' conftest.$ac_ext >&5
28534 rm -f core conftest.err conftest.$ac_objext \
28536 if test "${ac_cv_search_op_open_agent+set}" = set; then
28540 if test "${ac_cv_search_op_open_agent+set}" = set; then
28543 ac_cv_search_op_open_agent=no
28545 rm conftest.$ac_ext
28546 LIBS=$ac_func_search_save_LIBS
28548 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28549 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28550 ac_res=$ac_cv_search_op_open_agent
28551 if test "$ac_res" != no; then
28552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28556 echo "Error! You need to have libopagent around."
28561 if test "${ac_cv_header_opagent_h+set}" = set; then
28562 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28563 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28564 if test "${ac_cv_header_opagent_h+set}" = set; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28567 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28568 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28570 # Is the header compilable?
28571 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28572 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28573 cat >conftest.$ac_ext <<_ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h. */
28579 $ac_includes_default
28580 #include <opagent.h>
28582 rm -f conftest.$ac_objext
28583 if { (ac_try="$ac_compile"
28584 case "(($ac_try" in
28585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28586 *) ac_try_echo
=$ac_try;;
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_compile") 2>conftest.er1
28591 grep -v '^ *+' conftest.er1
>conftest.err
28593 cat conftest.err
>&5
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); } &&
28596 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28597 { (case "(($ac_try" in
28598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_try") 2>&5
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); }; } &&
28606 { ac_try='test -s conftest.$ac_objext'
28607 { (case "(($ac_try" in
28608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28609 *) ac_try_echo
=$ac_try;;
28611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612 (eval "$ac_try") 2>&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); }; }; then
28616 ac_header_compiler
=yes
28618 echo "$as_me: failed program was:" >&5
28619 sed 's/^/| /' conftest.
$ac_ext >&5
28621 ac_header_compiler
=no
28624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28626 echo "${ECHO_T}$ac_header_compiler" >&6; }
28628 # Is the header present?
28629 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28630 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28631 cat >conftest.
$ac_ext <<_ACEOF
28634 cat confdefs.h
>>conftest.
$ac_ext
28635 cat >>conftest.
$ac_ext <<_ACEOF
28636 /* end confdefs.h. */
28637 #include <opagent.h>
28639 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28640 case "(($ac_try" in
28641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28642 *) ac_try_echo=$ac_try;;
28644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28647 grep -v '^ *+' conftest.er1 >conftest.err
28649 cat conftest.err >&5
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); } >/dev/null; then
28652 if test -s conftest.err; then
28653 ac_cpp_err=$ac_c_preproc_warn_flag
28654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28661 if test -z "$ac_cpp_err"; then
28662 ac_header_preproc=yes
28664 echo "$as_me: failed program was:" >&5
28665 sed 's/^/| /' conftest.$ac_ext >&5
28667 ac_header_preproc=no
28670 rm -f conftest.err conftest.$ac_ext
28671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28672 echo "${ECHO_T}$ac_header_preproc" >&6; }
28674 # So? What about this header?
28675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28677 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28678 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28679 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28680 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28681 ac_header_preproc=yes
28684 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28685 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28686 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28687 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28688 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28689 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28690 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28691 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28692 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28693 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28694 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28695 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28697 ## ----------------------------------- ##
28698 ## Report this to llvmbugs@cs.uiuc.edu ##
28699 ## ----------------------------------- ##
28701 ) | sed "s/^/$as_me: WARNING: /" >&2
28704 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28705 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28706 if test "${ac_cv_header_opagent_h+set}" = set; then
28707 echo $ECHO_N "(cached) $ECHO_C" >&6
28709 ac_cv_header_opagent_h=$ac_header_preproc
28711 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28712 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28715 if test $ac_cv_header_opagent_h = yes; then
28719 echo "Error! You need to have opagent.h around."
28728 llvm_cv_old_LIBS="$LIBS"
28729 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28730 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28731 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28732 if test "${ac_cv_search_op_open_agent+set}" = set; then
28733 echo $ECHO_N "(cached) $ECHO_C" >&6
28735 ac_func_search_save_LIBS=$LIBS
28736 cat >conftest.$ac_ext <<_ACEOF
28739 cat confdefs.h >>conftest.$ac_ext
28740 cat >>conftest.$ac_ext <<_ACEOF
28741 /* end confdefs.h. */
28743 /* Override any GCC internal prototype to avoid an error.
28744 Use char because int might match the return type of a GCC
28745 builtin and then its argument prototype would still apply. */
28749 char op_open_agent ();
28753 return op_open_agent ();
28758 for ac_lib in '' opagent; do
28759 if test -z "$ac_lib"; then
28760 ac_res="none required"
28763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28765 rm -f conftest.$ac_objext conftest$ac_exeext
28766 if { (ac_try="$ac_link"
28767 case "(($ac_try" in
28768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28769 *) ac_try_echo
=$ac_try;;
28771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772 (eval "$ac_link") 2>conftest.er1
28774 grep -v '^ *+' conftest.er1
>conftest.err
28776 cat conftest.err
>&5
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); } &&
28779 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28780 { (case "(($ac_try" in
28781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28782 *) ac_try_echo=$ac_try;;
28784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28785 (eval "$ac_try") 2>&5
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); }; } &&
28789 { ac_try='test -s conftest$ac_exeext'
28790 { (case "(($ac_try" in
28791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28792 *) ac_try_echo
=$ac_try;;
28794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28795 (eval "$ac_try") 2>&5
28797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798 (exit $ac_status); }; }; then
28799 ac_cv_search_op_open_agent
=$ac_res
28801 echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.
$ac_ext >&5
28807 rm -f core conftest.err conftest.
$ac_objext \
28809 if test "${ac_cv_search_op_open_agent+set}" = set; then
28813 if test "${ac_cv_search_op_open_agent+set}" = set; then
28816 ac_cv_search_op_open_agent
=no
28818 rm conftest.
$ac_ext
28819 LIBS
=$ac_func_search_save_LIBS
28821 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28822 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28823 ac_res
=$ac_cv_search_op_open_agent
28824 if test "$ac_res" != no
; then
28825 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28829 LIBS
="$llvm_cv_old_LIBS"
28834 if test "${ac_cv_header_opagent_h+set}" = set; then
28835 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28836 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28837 if test "${ac_cv_header_opagent_h+set}" = set; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28840 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28841 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28843 # Is the header compilable?
28844 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28845 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28846 cat >conftest.
$ac_ext <<_ACEOF
28849 cat confdefs.h
>>conftest.
$ac_ext
28850 cat >>conftest.
$ac_ext <<_ACEOF
28851 /* end confdefs.h. */
28852 $ac_includes_default
28853 #include <opagent.h>
28855 rm -f conftest.
$ac_objext
28856 if { (ac_try
="$ac_compile"
28857 case "(($ac_try" in
28858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28859 *) ac_try_echo=$ac_try;;
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862 (eval "$ac_compile") 2>conftest.er1
28864 grep -v '^ *+' conftest.er1 >conftest.err
28866 cat conftest.err >&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); } &&
28869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28870 { (case "(($ac_try" in
28871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28872 *) ac_try_echo
=$ac_try;;
28874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875 (eval "$ac_try") 2>&5
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; } &&
28879 { ac_try
='test -s conftest.$ac_objext'
28880 { (case "(($ac_try" in
28881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28882 *) ac_try_echo=$ac_try;;
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885 (eval "$ac_try") 2>&5
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); }; }; then
28889 ac_header_compiler=yes
28891 echo "$as_me: failed program was:" >&5
28892 sed 's/^/| /' conftest.$ac_ext >&5
28894 ac_header_compiler=no
28897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28899 echo "${ECHO_T}$ac_header_compiler" >&6; }
28901 # Is the header present?
28902 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28903 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28904 cat >conftest.$ac_ext <<_ACEOF
28907 cat confdefs.h >>conftest.$ac_ext
28908 cat >>conftest.$ac_ext <<_ACEOF
28909 /* end confdefs.h. */
28910 #include <opagent.h>
28912 if { (ac_try="$ac_cpp conftest.$ac_ext"
28913 case "(($ac_try" in
28914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28915 *) ac_try_echo
=$ac_try;;
28917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28920 grep -v '^ *+' conftest.er1
>conftest.err
28922 cat conftest.err
>&5
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); } >/dev
/null
; then
28925 if test -s conftest.err
; then
28926 ac_cpp_err
=$ac_c_preproc_warn_flag
28927 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28934 if test -z "$ac_cpp_err"; then
28935 ac_header_preproc
=yes
28937 echo "$as_me: failed program was:" >&5
28938 sed 's/^/| /' conftest.
$ac_ext >&5
28940 ac_header_preproc
=no
28943 rm -f conftest.err conftest.
$ac_ext
28944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28945 echo "${ECHO_T}$ac_header_preproc" >&6; }
28947 # So? What about this header?
28948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28950 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28951 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28952 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28953 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28954 ac_header_preproc
=yes
28957 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28958 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28959 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28960 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28961 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28962 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28963 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28964 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28965 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28966 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28967 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28968 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28970 ## ----------------------------------- ##
28971 ## Report this to llvmbugs@cs.uiuc.edu ##
28972 ## ----------------------------------- ##
28974 ) |
sed "s/^/$as_me: WARNING: /" >&2
28977 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28978 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28979 if test "${ac_cv_header_opagent_h+set}" = set; then
28980 echo $ECHO_N "(cached) $ECHO_C" >&6
28982 ac_cv_header_opagent_h
=$ac_header_preproc
28984 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28985 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28988 if test $ac_cv_header_opagent_h = yes; then
28992 LIBS
="$llvm_cv_old_LIBS"
29003 cat >>confdefs.h
<<_ACEOF
29004 #define USE_OPROFILE $USE_OPROFILE
29014 ac_header_dirent
=no
29015 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
29016 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29017 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29018 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29019 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29020 echo $ECHO_N "(cached) $ECHO_C" >&6
29022 cat >conftest.
$ac_ext <<_ACEOF
29025 cat confdefs.h
>>conftest.
$ac_ext
29026 cat >>conftest.
$ac_ext <<_ACEOF
29027 /* end confdefs.h. */
29028 #include <sys/types.h>
29040 rm -f conftest.
$ac_objext
29041 if { (ac_try
="$ac_compile"
29042 case "(($ac_try" in
29043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29044 *) ac_try_echo=$ac_try;;
29046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29047 (eval "$ac_compile") 2>conftest.er1
29049 grep -v '^ *+' conftest.er1 >conftest.err
29051 cat conftest.err >&5
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); } &&
29054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29055 { (case "(($ac_try" in
29056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29057 *) ac_try_echo
=$ac_try;;
29059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29060 (eval "$ac_try") 2>&5
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; } &&
29064 { ac_try
='test -s conftest.$ac_objext'
29065 { (case "(($ac_try" in
29066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29067 *) ac_try_echo=$ac_try;;
29069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29070 (eval "$ac_try") 2>&5
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); }; }; then
29074 eval "$as_ac_Header=yes"
29076 echo "$as_me: failed program was:" >&5
29077 sed 's/^/| /' conftest.$ac_ext >&5
29079 eval "$as_ac_Header=no"
29082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29084 ac_res=`eval echo '${'$as_ac_Header'}'`
29085 { echo "$as_me:$LINENO: result: $ac_res" >&5
29086 echo "${ECHO_T}$ac_res" >&6; }
29087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29088 cat >>confdefs.h <<_ACEOF
29089 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
29092 ac_header_dirent=$ac_hdr; break
29096 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29097 if test $ac_header_dirent = dirent.h; then
29098 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29099 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29100 if test "${ac_cv_search_opendir+set}" = set; then
29101 echo $ECHO_N "(cached) $ECHO_C" >&6
29103 ac_func_search_save_LIBS=$LIBS
29104 cat >conftest.$ac_ext <<_ACEOF
29107 cat confdefs.h >>conftest.$ac_ext
29108 cat >>conftest.$ac_ext <<_ACEOF
29109 /* end confdefs.h. */
29111 /* Override any GCC internal prototype to avoid an error.
29112 Use char because int might match the return type of a GCC
29113 builtin and then its argument prototype would still apply. */
29126 for ac_lib in '' dir; do
29127 if test -z "$ac_lib"; then
29128 ac_res="none required"
29131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29133 rm -f conftest.$ac_objext conftest$ac_exeext
29134 if { (ac_try="$ac_link"
29135 case "(($ac_try" in
29136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29137 *) ac_try_echo
=$ac_try;;
29139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140 (eval "$ac_link") 2>conftest.er1
29142 grep -v '^ *+' conftest.er1
>conftest.err
29144 cat conftest.err
>&5
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); } &&
29147 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29148 { (case "(($ac_try" in
29149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29150 *) ac_try_echo=$ac_try;;
29152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29153 (eval "$ac_try") 2>&5
29155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156 (exit $ac_status); }; } &&
29157 { ac_try='test -s conftest$ac_exeext'
29158 { (case "(($ac_try" in
29159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29160 *) ac_try_echo
=$ac_try;;
29162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163 (eval "$ac_try") 2>&5
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); }; }; then
29167 ac_cv_search_opendir
=$ac_res
29169 echo "$as_me: failed program was:" >&5
29170 sed 's/^/| /' conftest.
$ac_ext >&5
29175 rm -f core conftest.err conftest.
$ac_objext \
29177 if test "${ac_cv_search_opendir+set}" = set; then
29181 if test "${ac_cv_search_opendir+set}" = set; then
29184 ac_cv_search_opendir
=no
29186 rm conftest.
$ac_ext
29187 LIBS
=$ac_func_search_save_LIBS
29189 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29190 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29191 ac_res
=$ac_cv_search_opendir
29192 if test "$ac_res" != no
; then
29193 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29198 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29199 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29200 if test "${ac_cv_search_opendir+set}" = set; then
29201 echo $ECHO_N "(cached) $ECHO_C" >&6
29203 ac_func_search_save_LIBS
=$LIBS
29204 cat >conftest.
$ac_ext <<_ACEOF
29207 cat confdefs.h
>>conftest.
$ac_ext
29208 cat >>conftest.
$ac_ext <<_ACEOF
29209 /* end confdefs.h. */
29211 /* Override any GCC internal prototype to avoid an error.
29212 Use char because int might match the return type of a GCC
29213 builtin and then its argument prototype would still apply. */
29226 for ac_lib
in '' x
; do
29227 if test -z "$ac_lib"; then
29228 ac_res
="none required"
29231 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29233 rm -f conftest.
$ac_objext conftest
$ac_exeext
29234 if { (ac_try
="$ac_link"
29235 case "(($ac_try" in
29236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29237 *) ac_try_echo=$ac_try;;
29239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29240 (eval "$ac_link") 2>conftest.er1
29242 grep -v '^ *+' conftest.er1 >conftest.err
29244 cat conftest.err >&5
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); } &&
29247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29248 { (case "(($ac_try" in
29249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29250 *) ac_try_echo
=$ac_try;;
29252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29253 (eval "$ac_try") 2>&5
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); }; } &&
29257 { ac_try
='test -s conftest$ac_exeext'
29258 { (case "(($ac_try" in
29259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29260 *) ac_try_echo=$ac_try;;
29262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29263 (eval "$ac_try") 2>&5
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); }; }; then
29267 ac_cv_search_opendir=$ac_res
29269 echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29275 rm -f core conftest.err conftest.$ac_objext \
29277 if test "${ac_cv_search_opendir+set}" = set; then
29281 if test "${ac_cv_search_opendir+set}" = set; then
29284 ac_cv_search_opendir=no
29286 rm conftest.$ac_ext
29287 LIBS=$ac_func_search_save_LIBS
29289 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29290 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29291 ac_res=$ac_cv_search_opendir
29292 if test "$ac_res" != no; then
29293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29299 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29300 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29301 if test "${ac_cv_header_mmap_anon+set}" = set; then
29302 echo $ECHO_N "(cached) $ECHO_C" >&6
29305 ac_cpp='$CPP $CPPFLAGS'
29306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29310 cat >conftest.$ac_ext <<_ACEOF
29313 cat confdefs.h >>conftest.$ac_ext
29314 cat >>conftest.$ac_ext <<_ACEOF
29315 /* end confdefs.h. */
29316 #include <sys/mman.h>
29317 #include <unistd.h>
29322 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29327 rm -f conftest.$ac_objext
29328 if { (ac_try="$ac_compile"
29329 case "(($ac_try" in
29330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29331 *) ac_try_echo
=$ac_try;;
29333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334 (eval "$ac_compile") 2>conftest.er1
29336 grep -v '^ *+' conftest.er1
>conftest.err
29338 cat conftest.err
>&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } &&
29341 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29342 { (case "(($ac_try" in
29343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29344 *) ac_try_echo=$ac_try;;
29346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29347 (eval "$ac_try") 2>&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); }; } &&
29351 { ac_try='test -s conftest.$ac_objext'
29352 { (case "(($ac_try" in
29353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29354 *) ac_try_echo
=$ac_try;;
29356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357 (eval "$ac_try") 2>&5
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); }; }; then
29361 ac_cv_header_mmap_anon
=yes
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.
$ac_ext >&5
29366 ac_cv_header_mmap_anon
=no
29369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29371 ac_cpp
='$CPP $CPPFLAGS'
29372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
29378 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29379 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29380 if test "$ac_cv_header_mmap_anon" = yes; then
29382 cat >>confdefs.h
<<\_ACEOF
29383 #define HAVE_MMAP_ANONYMOUS 1
29388 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29389 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29390 if test "${ac_cv_header_stat_broken+set}" = set; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29393 cat >conftest.
$ac_ext <<_ACEOF
29396 cat confdefs.h
>>conftest.
$ac_ext
29397 cat >>conftest.
$ac_ext <<_ACEOF
29398 /* end confdefs.h. */
29399 #include <sys/types.h>
29400 #include <sys/stat.h>
29402 #if defined S_ISBLK && defined S_IFDIR
29403 # if S_ISBLK (S_IFDIR)
29408 #if defined S_ISBLK && defined S_IFCHR
29409 # if S_ISBLK (S_IFCHR)
29414 #if defined S_ISLNK && defined S_IFREG
29415 # if S_ISLNK (S_IFREG)
29420 #if defined S_ISSOCK && defined S_IFREG
29421 # if S_ISSOCK (S_IFREG)
29427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29428 $EGREP "You lose" >/dev
/null
2>&1; then
29429 ac_cv_header_stat_broken
=yes
29431 ac_cv_header_stat_broken
=no
29436 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29437 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29438 if test $ac_cv_header_stat_broken = yes; then
29440 cat >>confdefs.h
<<\_ACEOF
29441 #define STAT_MACROS_BROKEN 1
29446 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29447 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29448 if test "${ac_cv_header_stdc+set}" = set; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29451 cat >conftest.
$ac_ext <<_ACEOF
29454 cat confdefs.h
>>conftest.
$ac_ext
29455 cat >>conftest.
$ac_ext <<_ACEOF
29456 /* end confdefs.h. */
29457 #include <stdlib.h>
29458 #include <stdarg.h>
29459 #include <string.h>
29470 rm -f conftest.
$ac_objext
29471 if { (ac_try
="$ac_compile"
29472 case "(($ac_try" in
29473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29474 *) ac_try_echo=$ac_try;;
29476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_compile") 2>conftest.er1
29479 grep -v '^ *+' conftest.er1 >conftest.err
29481 cat conftest.err >&5
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); } &&
29484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29485 { (case "(($ac_try" in
29486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29487 *) ac_try_echo
=$ac_try;;
29489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29490 (eval "$ac_try") 2>&5
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try
='test -s conftest.$ac_objext'
29495 { (case "(($ac_try" in
29496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29497 *) ac_try_echo=$ac_try;;
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_try") 2>&5
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; }; then
29504 ac_cv_header_stdc=yes
29506 echo "$as_me: failed program was:" >&5
29507 sed 's/^/| /' conftest.$ac_ext >&5
29509 ac_cv_header_stdc=no
29512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29514 if test $ac_cv_header_stdc = yes; then
29515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29516 cat >conftest.$ac_ext <<_ACEOF
29519 cat confdefs.h >>conftest.$ac_ext
29520 cat >>conftest.$ac_ext <<_ACEOF
29521 /* end confdefs.h. */
29522 #include <string.h>
29525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29526 $EGREP "memchr" >/dev/null 2>&1; then
29529 ac_cv_header_stdc=no
29535 if test $ac_cv_header_stdc = yes; then
29536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29537 cat >conftest.$ac_ext <<_ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h. */
29543 #include <stdlib.h>
29546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29547 $EGREP "free" >/dev/null 2>&1; then
29550 ac_cv_header_stdc=no
29556 if test $ac_cv_header_stdc = yes; then
29557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29558 if test "$cross_compiling" = yes; then
29561 cat >conftest.$ac_ext <<_ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h. */
29568 #include <stdlib.h>
29569 #if ((' ' & 0x0FF) == 0x020)
29570 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29571 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29573 # define ISLOWER(c) \
29574 (('a' <= (c) && (c) <= 'i') \
29575 || ('j' <= (c) && (c) <= 'r') \
29576 || ('s' <= (c) && (c) <= 'z'))
29577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29585 for (i = 0; i < 256; i++)
29586 if (XOR (islower (i), ISLOWER (i))
29587 || toupper (i) != TOUPPER (i))
29592 rm -f conftest$ac_exeext
29593 if { (ac_try="$ac_link"
29594 case "(($ac_try" in
29595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29596 *) ac_try_echo
=$ac_try;;
29598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599 (eval "$ac_link") 2>&5
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29603 { (case "(($ac_try" in
29604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29605 *) ac_try_echo=$ac_try;;
29607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29608 (eval "$ac_try") 2>&5
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); }; }; then
29614 echo "$as_me: program exited with status $ac_status" >&5
29615 echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29618 ( exit $ac_status )
29619 ac_cv_header_stdc=no
29621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29627 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29628 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29629 if test $ac_cv_header_stdc = yes; then
29631 cat >>confdefs.h <<\_ACEOF
29632 #define STDC_HEADERS 1
29637 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29638 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29639 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29640 echo $ECHO_N "(cached) $ECHO_C" >&6
29642 cat >conftest.$ac_ext <<_ACEOF
29645 cat confdefs.h >>conftest.$ac_ext
29646 cat >>conftest.$ac_ext <<_ACEOF
29647 /* end confdefs.h. */
29648 #include <sys/types.h>
29649 #include <sys/wait.h>
29650 #ifndef WEXITSTATUS
29651 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29654 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29662 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29667 rm -f conftest.$ac_objext
29668 if { (ac_try="$ac_compile"
29669 case "(($ac_try" in
29670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29671 *) ac_try_echo
=$ac_try;;
29673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674 (eval "$ac_compile") 2>conftest.er1
29676 grep -v '^ *+' conftest.er1
>conftest.err
29678 cat conftest.err
>&5
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); } &&
29681 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29682 { (case "(($ac_try" in
29683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29684 *) ac_try_echo=$ac_try;;
29686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29687 (eval "$ac_try") 2>&5
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; } &&
29691 { ac_try='test -s conftest.$ac_objext'
29692 { (case "(($ac_try" in
29693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29694 *) ac_try_echo
=$ac_try;;
29696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29697 (eval "$ac_try") 2>&5
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; }; then
29701 ac_cv_header_sys_wait_h
=yes
29703 echo "$as_me: failed program was:" >&5
29704 sed 's/^/| /' conftest.
$ac_ext >&5
29706 ac_cv_header_sys_wait_h
=no
29709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29711 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29712 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29713 if test $ac_cv_header_sys_wait_h = yes; then
29715 cat >>confdefs.h
<<\_ACEOF
29716 #define HAVE_SYS_WAIT_H 1
29721 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29722 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29723 if test "${ac_cv_header_time+set}" = set; then
29724 echo $ECHO_N "(cached) $ECHO_C" >&6
29726 cat >conftest.
$ac_ext <<_ACEOF
29729 cat confdefs.h
>>conftest.
$ac_ext
29730 cat >>conftest.
$ac_ext <<_ACEOF
29731 /* end confdefs.h. */
29732 #include <sys/types.h>
29733 #include <sys/time.h>
29739 if ((struct tm *) 0)
29745 rm -f conftest.
$ac_objext
29746 if { (ac_try
="$ac_compile"
29747 case "(($ac_try" in
29748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29749 *) ac_try_echo=$ac_try;;
29751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29752 (eval "$ac_compile") 2>conftest.er1
29754 grep -v '^ *+' conftest.er1 >conftest.err
29756 cat conftest.err >&5
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); } &&
29759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29760 { (case "(($ac_try" in
29761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29762 *) ac_try_echo
=$ac_try;;
29764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29765 (eval "$ac_try") 2>&5
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); }; } &&
29769 { ac_try
='test -s conftest.$ac_objext'
29770 { (case "(($ac_try" in
29771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29772 *) ac_try_echo=$ac_try;;
29774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29775 (eval "$ac_try") 2>&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; }; then
29779 ac_cv_header_time=yes
29781 echo "$as_me: failed program was:" >&5
29782 sed 's/^/| /' conftest.$ac_ext >&5
29784 ac_cv_header_time=no
29787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29789 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29790 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29791 if test $ac_cv_header_time = yes; then
29793 cat >>confdefs.h <<\_ACEOF
29794 #define TIME_WITH_SYS_TIME 1
29806 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29808 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29813 echo $ECHO_N "(cached) $ECHO_C" >&6
29815 ac_res=`eval echo '${'$as_ac_Header'}'`
29816 { echo "$as_me:$LINENO: result: $ac_res" >&5
29817 echo "${ECHO_T}$ac_res" >&6; }
29819 # Is the header compilable?
29820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29822 cat >conftest.$ac_ext <<_ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h. */
29828 $ac_includes_default
29829 #include <$ac_header>
29831 rm -f conftest.$ac_objext
29832 if { (ac_try="$ac_compile"
29833 case "(($ac_try" in
29834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29835 *) ac_try_echo
=$ac_try;;
29837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838 (eval "$ac_compile") 2>conftest.er1
29840 grep -v '^ *+' conftest.er1
>conftest.err
29842 cat conftest.err
>&5
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); } &&
29845 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29846 { (case "(($ac_try" in
29847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29848 *) ac_try_echo=$ac_try;;
29850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29851 (eval "$ac_try") 2>&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); }; } &&
29855 { ac_try='test -s conftest.$ac_objext'
29856 { (case "(($ac_try" in
29857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29858 *) ac_try_echo
=$ac_try;;
29860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29861 (eval "$ac_try") 2>&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); }; }; then
29865 ac_header_compiler
=yes
29867 echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.
$ac_ext >&5
29870 ac_header_compiler
=no
29873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29875 echo "${ECHO_T}$ac_header_compiler" >&6; }
29877 # Is the header present?
29878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29880 cat >conftest.
$ac_ext <<_ACEOF
29883 cat confdefs.h
>>conftest.
$ac_ext
29884 cat >>conftest.
$ac_ext <<_ACEOF
29885 /* end confdefs.h. */
29886 #include <$ac_header>
29888 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29889 case "(($ac_try" in
29890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29891 *) ac_try_echo=$ac_try;;
29893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29896 grep -v '^ *+' conftest.er1 >conftest.err
29898 cat conftest.err >&5
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); } >/dev/null; then
29901 if test -s conftest.err; then
29902 ac_cpp_err=$ac_c_preproc_warn_flag
29903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29910 if test -z "$ac_cpp_err"; then
29911 ac_header_preproc=yes
29913 echo "$as_me: failed program was:" >&5
29914 sed 's/^/| /' conftest.$ac_ext >&5
29916 ac_header_preproc=no
29919 rm -f conftest.err conftest.$ac_ext
29920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29921 echo "${ECHO_T}$ac_header_preproc" >&6; }
29923 # So? What about this header?
29924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29930 ac_header_preproc=yes
29933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29946 ## ----------------------------------- ##
29947 ## Report this to llvmbugs@cs.uiuc.edu ##
29948 ## ----------------------------------- ##
29950 ) | sed "s/^/$as_me: WARNING: /" >&2
29953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29956 echo $ECHO_N "(cached) $ECHO_C" >&6
29958 eval "$as_ac_Header=\$ac_header_preproc"
29960 ac_res=`eval echo '${'$as_ac_Header'}'`
29961 { echo "$as_me:$LINENO: result: $ac_res" >&5
29962 echo "${ECHO_T}$ac_res" >&6; }
29965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29966 cat >>confdefs.h <<_ACEOF
29967 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29980 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29982 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29987 echo $ECHO_N "(cached) $ECHO_C" >&6
29989 ac_res=`eval echo '${'$as_ac_Header'}'`
29990 { echo "$as_me:$LINENO: result: $ac_res" >&5
29991 echo "${ECHO_T}$ac_res" >&6; }
29993 # Is the header compilable?
29994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29996 cat >conftest.$ac_ext <<_ACEOF
29999 cat confdefs.h >>conftest.$ac_ext
30000 cat >>conftest.$ac_ext <<_ACEOF
30001 /* end confdefs.h. */
30002 $ac_includes_default
30003 #include <$ac_header>
30005 rm -f conftest.$ac_objext
30006 if { (ac_try="$ac_compile"
30007 case "(($ac_try" in
30008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30009 *) ac_try_echo
=$ac_try;;
30011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30012 (eval "$ac_compile") 2>conftest.er1
30014 grep -v '^ *+' conftest.er1
>conftest.err
30016 cat conftest.err
>&5
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); } &&
30019 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30020 { (case "(($ac_try" in
30021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30022 *) ac_try_echo=$ac_try;;
30024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30025 (eval "$ac_try") 2>&5
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; } &&
30029 { ac_try='test -s conftest.$ac_objext'
30030 { (case "(($ac_try" in
30031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30032 *) ac_try_echo
=$ac_try;;
30034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035 (eval "$ac_try") 2>&5
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); }; }; then
30039 ac_header_compiler
=yes
30041 echo "$as_me: failed program was:" >&5
30042 sed 's/^/| /' conftest.
$ac_ext >&5
30044 ac_header_compiler
=no
30047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30049 echo "${ECHO_T}$ac_header_compiler" >&6; }
30051 # Is the header present?
30052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30054 cat >conftest.
$ac_ext <<_ACEOF
30057 cat confdefs.h
>>conftest.
$ac_ext
30058 cat >>conftest.
$ac_ext <<_ACEOF
30059 /* end confdefs.h. */
30060 #include <$ac_header>
30062 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30063 case "(($ac_try" in
30064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30065 *) ac_try_echo=$ac_try;;
30067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30070 grep -v '^ *+' conftest.er1 >conftest.err
30072 cat conftest.err >&5
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); } >/dev/null; then
30075 if test -s conftest.err; then
30076 ac_cpp_err=$ac_c_preproc_warn_flag
30077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30084 if test -z "$ac_cpp_err"; then
30085 ac_header_preproc=yes
30087 echo "$as_me: failed program was:" >&5
30088 sed 's/^/| /' conftest.$ac_ext >&5
30090 ac_header_preproc=no
30093 rm -f conftest.err conftest.$ac_ext
30094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30095 echo "${ECHO_T}$ac_header_preproc" >&6; }
30097 # So? What about this header?
30098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30104 ac_header_preproc=yes
30107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30120 ## ----------------------------------- ##
30121 ## Report this to llvmbugs@cs.uiuc.edu ##
30122 ## ----------------------------------- ##
30124 ) | sed "s/^/$as_me: WARNING: /" >&2
30127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30130 echo $ECHO_N "(cached) $ECHO_C" >&6
30132 eval "$as_ac_Header=\$ac_header_preproc"
30134 ac_res=`eval echo '${'$as_ac_Header'}'`
30135 { echo "$as_me:$LINENO: result: $ac_res" >&5
30136 echo "${ECHO_T}$ac_res" >&6; }
30139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30140 cat >>confdefs.h <<_ACEOF
30141 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30150 for ac_header in utime.h windows.h
30152 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30157 echo $ECHO_N "(cached) $ECHO_C" >&6
30159 ac_res=`eval echo '${'$as_ac_Header'}'`
30160 { echo "$as_me:$LINENO: result: $ac_res" >&5
30161 echo "${ECHO_T}$ac_res" >&6; }
30163 # Is the header compilable?
30164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30166 cat >conftest.$ac_ext <<_ACEOF
30169 cat confdefs.h >>conftest.$ac_ext
30170 cat >>conftest.$ac_ext <<_ACEOF
30171 /* end confdefs.h. */
30172 $ac_includes_default
30173 #include <$ac_header>
30175 rm -f conftest.$ac_objext
30176 if { (ac_try="$ac_compile"
30177 case "(($ac_try" in
30178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30179 *) ac_try_echo
=$ac_try;;
30181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30182 (eval "$ac_compile") 2>conftest.er1
30184 grep -v '^ *+' conftest.er1
>conftest.err
30186 cat conftest.err
>&5
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); } &&
30189 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30190 { (case "(($ac_try" in
30191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30192 *) ac_try_echo=$ac_try;;
30194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30195 (eval "$ac_try") 2>&5
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); }; } &&
30199 { ac_try='test -s conftest.$ac_objext'
30200 { (case "(($ac_try" in
30201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30202 *) ac_try_echo
=$ac_try;;
30204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30205 (eval "$ac_try") 2>&5
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); }; }; then
30209 ac_header_compiler
=yes
30211 echo "$as_me: failed program was:" >&5
30212 sed 's/^/| /' conftest.
$ac_ext >&5
30214 ac_header_compiler
=no
30217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30219 echo "${ECHO_T}$ac_header_compiler" >&6; }
30221 # Is the header present?
30222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30224 cat >conftest.
$ac_ext <<_ACEOF
30227 cat confdefs.h
>>conftest.
$ac_ext
30228 cat >>conftest.
$ac_ext <<_ACEOF
30229 /* end confdefs.h. */
30230 #include <$ac_header>
30232 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30233 case "(($ac_try" in
30234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30235 *) ac_try_echo=$ac_try;;
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30240 grep -v '^ *+' conftest.er1 >conftest.err
30242 cat conftest.err >&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); } >/dev/null; then
30245 if test -s conftest.err; then
30246 ac_cpp_err=$ac_c_preproc_warn_flag
30247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30254 if test -z "$ac_cpp_err"; then
30255 ac_header_preproc=yes
30257 echo "$as_me: failed program was:" >&5
30258 sed 's/^/| /' conftest.$ac_ext >&5
30260 ac_header_preproc=no
30263 rm -f conftest.err conftest.$ac_ext
30264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30265 echo "${ECHO_T}$ac_header_preproc" >&6; }
30267 # So? What about this header?
30268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30274 ac_header_preproc=yes
30277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30290 ## ----------------------------------- ##
30291 ## Report this to llvmbugs@cs.uiuc.edu ##
30292 ## ----------------------------------- ##
30294 ) | sed "s/^/$as_me: WARNING: /" >&2
30297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30300 echo $ECHO_N "(cached) $ECHO_C" >&6
30302 eval "$as_ac_Header=\$ac_header_preproc"
30304 ac_res=`eval echo '${'$as_ac_Header'}'`
30305 { echo "$as_me:$LINENO: result: $ac_res" >&5
30306 echo "${ECHO_T}$ac_res" >&6; }
30309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30310 cat >>confdefs.h <<_ACEOF
30311 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30322 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30324 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30329 echo $ECHO_N "(cached) $ECHO_C" >&6
30331 ac_res=`eval echo '${'$as_ac_Header'}'`
30332 { echo "$as_me:$LINENO: result: $ac_res" >&5
30333 echo "${ECHO_T}$ac_res" >&6; }
30335 # Is the header compilable?
30336 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30338 cat >conftest.$ac_ext <<_ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h. */
30344 $ac_includes_default
30345 #include <$ac_header>
30347 rm -f conftest.$ac_objext
30348 if { (ac_try="$ac_compile"
30349 case "(($ac_try" in
30350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30351 *) ac_try_echo
=$ac_try;;
30353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354 (eval "$ac_compile") 2>conftest.er1
30356 grep -v '^ *+' conftest.er1
>conftest.err
30358 cat conftest.err
>&5
30359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360 (exit $ac_status); } &&
30361 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30362 { (case "(($ac_try" in
30363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30364 *) ac_try_echo=$ac_try;;
30366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367 (eval "$ac_try") 2>&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); }; } &&
30371 { ac_try='test -s conftest.$ac_objext'
30372 { (case "(($ac_try" in
30373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30374 *) ac_try_echo
=$ac_try;;
30376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30377 (eval "$ac_try") 2>&5
30379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380 (exit $ac_status); }; }; then
30381 ac_header_compiler
=yes
30383 echo "$as_me: failed program was:" >&5
30384 sed 's/^/| /' conftest.
$ac_ext >&5
30386 ac_header_compiler
=no
30389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30391 echo "${ECHO_T}$ac_header_compiler" >&6; }
30393 # Is the header present?
30394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30396 cat >conftest.
$ac_ext <<_ACEOF
30399 cat confdefs.h
>>conftest.
$ac_ext
30400 cat >>conftest.
$ac_ext <<_ACEOF
30401 /* end confdefs.h. */
30402 #include <$ac_header>
30404 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30405 case "(($ac_try" in
30406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30407 *) ac_try_echo=$ac_try;;
30409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30412 grep -v '^ *+' conftest.er1 >conftest.err
30414 cat conftest.err >&5
30415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30416 (exit $ac_status); } >/dev/null; then
30417 if test -s conftest.err; then
30418 ac_cpp_err=$ac_c_preproc_warn_flag
30419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30426 if test -z "$ac_cpp_err"; then
30427 ac_header_preproc=yes
30429 echo "$as_me: failed program was:" >&5
30430 sed 's/^/| /' conftest.$ac_ext >&5
30432 ac_header_preproc=no
30435 rm -f conftest.err conftest.$ac_ext
30436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30437 echo "${ECHO_T}$ac_header_preproc" >&6; }
30439 # So? What about this header?
30440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30446 ac_header_preproc=yes
30449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30462 ## ----------------------------------- ##
30463 ## Report this to llvmbugs@cs.uiuc.edu ##
30464 ## ----------------------------------- ##
30466 ) | sed "s/^/$as_me: WARNING: /" >&2
30469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30472 echo $ECHO_N "(cached) $ECHO_C" >&6
30474 eval "$as_ac_Header=\$ac_header_preproc"
30476 ac_res=`eval echo '${'$as_ac_Header'}'`
30477 { echo "$as_me:$LINENO: result: $ac_res" >&5
30478 echo "${ECHO_T}$ac_res" >&6; }
30481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30482 cat >>confdefs.h <<_ACEOF
30483 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30494 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30496 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30501 echo $ECHO_N "(cached) $ECHO_C" >&6
30503 ac_res=`eval echo '${'$as_ac_Header'}'`
30504 { echo "$as_me:$LINENO: result: $ac_res" >&5
30505 echo "${ECHO_T}$ac_res" >&6; }
30507 # Is the header compilable?
30508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30510 cat >conftest.$ac_ext <<_ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h. */
30516 $ac_includes_default
30517 #include <$ac_header>
30519 rm -f conftest.$ac_objext
30520 if { (ac_try="$ac_compile"
30521 case "(($ac_try" in
30522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30523 *) ac_try_echo
=$ac_try;;
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526 (eval "$ac_compile") 2>conftest.er1
30528 grep -v '^ *+' conftest.er1
>conftest.err
30530 cat conftest.err
>&5
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } &&
30533 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30534 { (case "(($ac_try" in
30535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30536 *) ac_try_echo=$ac_try;;
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539 (eval "$ac_try") 2>&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); }; } &&
30543 { ac_try='test -s conftest.$ac_objext'
30544 { (case "(($ac_try" in
30545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30546 *) ac_try_echo
=$ac_try;;
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549 (eval "$ac_try") 2>&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); }; }; then
30553 ac_header_compiler
=yes
30555 echo "$as_me: failed program was:" >&5
30556 sed 's/^/| /' conftest.
$ac_ext >&5
30558 ac_header_compiler
=no
30561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30563 echo "${ECHO_T}$ac_header_compiler" >&6; }
30565 # Is the header present?
30566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30568 cat >conftest.
$ac_ext <<_ACEOF
30571 cat confdefs.h
>>conftest.
$ac_ext
30572 cat >>conftest.
$ac_ext <<_ACEOF
30573 /* end confdefs.h. */
30574 #include <$ac_header>
30576 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30577 case "(($ac_try" in
30578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30579 *) ac_try_echo=$ac_try;;
30581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30584 grep -v '^ *+' conftest.er1 >conftest.err
30586 cat conftest.err >&5
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); } >/dev/null; then
30589 if test -s conftest.err; then
30590 ac_cpp_err=$ac_c_preproc_warn_flag
30591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30598 if test -z "$ac_cpp_err"; then
30599 ac_header_preproc=yes
30601 echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.$ac_ext >&5
30604 ac_header_preproc=no
30607 rm -f conftest.err conftest.$ac_ext
30608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30609 echo "${ECHO_T}$ac_header_preproc" >&6; }
30611 # So? What about this header?
30612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30618 ac_header_preproc=yes
30621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30634 ## ----------------------------------- ##
30635 ## Report this to llvmbugs@cs.uiuc.edu ##
30636 ## ----------------------------------- ##
30638 ) | sed "s/^/$as_me: WARNING: /" >&2
30641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30644 echo $ECHO_N "(cached) $ECHO_C" >&6
30646 eval "$as_ac_Header=\$ac_header_preproc"
30648 ac_res=`eval echo '${'$as_ac_Header'}'`
30649 { echo "$as_me:$LINENO: result: $ac_res" >&5
30650 echo "${ECHO_T}$ac_res" >&6; }
30653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30654 cat >>confdefs.h <<_ACEOF
30655 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30662 if test "$ENABLE_THREADS" -eq 1 ; then
30664 for ac_header in pthread.h
30666 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30671 echo $ECHO_N "(cached) $ECHO_C" >&6
30673 ac_res=`eval echo '${'$as_ac_Header'}'`
30674 { echo "$as_me:$LINENO: result: $ac_res" >&5
30675 echo "${ECHO_T}$ac_res" >&6; }
30677 # Is the header compilable?
30678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30680 cat >conftest.$ac_ext <<_ACEOF
30683 cat confdefs.h >>conftest.$ac_ext
30684 cat >>conftest.$ac_ext <<_ACEOF
30685 /* end confdefs.h. */
30686 $ac_includes_default
30687 #include <$ac_header>
30689 rm -f conftest.$ac_objext
30690 if { (ac_try="$ac_compile"
30691 case "(($ac_try" in
30692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30693 *) ac_try_echo
=$ac_try;;
30695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30696 (eval "$ac_compile") 2>conftest.er1
30698 grep -v '^ *+' conftest.er1
>conftest.err
30700 cat conftest.err
>&5
30701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702 (exit $ac_status); } &&
30703 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30704 { (case "(($ac_try" in
30705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30706 *) ac_try_echo=$ac_try;;
30708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30709 (eval "$ac_try") 2>&5
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); }; } &&
30713 { ac_try='test -s conftest.$ac_objext'
30714 { (case "(($ac_try" in
30715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30716 *) ac_try_echo
=$ac_try;;
30718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719 (eval "$ac_try") 2>&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; }; then
30723 ac_header_compiler
=yes
30725 echo "$as_me: failed program was:" >&5
30726 sed 's/^/| /' conftest.
$ac_ext >&5
30728 ac_header_compiler
=no
30731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30733 echo "${ECHO_T}$ac_header_compiler" >&6; }
30735 # Is the header present?
30736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30738 cat >conftest.
$ac_ext <<_ACEOF
30741 cat confdefs.h
>>conftest.
$ac_ext
30742 cat >>conftest.
$ac_ext <<_ACEOF
30743 /* end confdefs.h. */
30744 #include <$ac_header>
30746 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30747 case "(($ac_try" in
30748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30749 *) ac_try_echo=$ac_try;;
30751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30754 grep -v '^ *+' conftest.er1 >conftest.err
30756 cat conftest.err >&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } >/dev/null; then
30759 if test -s conftest.err; then
30760 ac_cpp_err=$ac_c_preproc_warn_flag
30761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30768 if test -z "$ac_cpp_err"; then
30769 ac_header_preproc=yes
30771 echo "$as_me: failed program was:" >&5
30772 sed 's/^/| /' conftest.$ac_ext >&5
30774 ac_header_preproc=no
30777 rm -f conftest.err conftest.$ac_ext
30778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30779 echo "${ECHO_T}$ac_header_preproc" >&6; }
30781 # So? What about this header?
30782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30788 ac_header_preproc=yes
30791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30804 ## ----------------------------------- ##
30805 ## Report this to llvmbugs@cs.uiuc.edu ##
30806 ## ----------------------------------- ##
30808 ) | sed "s/^/$as_me: WARNING: /" >&2
30811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30814 echo $ECHO_N "(cached) $ECHO_C" >&6
30816 eval "$as_ac_Header=\$ac_header_preproc"
30818 ac_res=`eval echo '${'$as_ac_Header'}'`
30819 { echo "$as_me:$LINENO: result: $ac_res" >&5
30820 echo "${ECHO_T}$ac_res" >&6; }
30823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30824 cat >>confdefs.h <<_ACEOF
30825 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30841 if test "$llvm_cv_enable_libffi" = "yes" ; then
30844 for ac_header in ffi.h ffi/ffi.h
30846 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30851 echo $ECHO_N "(cached) $ECHO_C" >&6
30853 ac_res=`eval echo '${'$as_ac_Header'}'`
30854 { echo "$as_me:$LINENO: result: $ac_res" >&5
30855 echo "${ECHO_T}$ac_res" >&6; }
30857 # Is the header compilable?
30858 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30860 cat >conftest.$ac_ext <<_ACEOF
30863 cat confdefs.h >>conftest.$ac_ext
30864 cat >>conftest.$ac_ext <<_ACEOF
30865 /* end confdefs.h. */
30866 $ac_includes_default
30867 #include <$ac_header>
30869 rm -f conftest.$ac_objext
30870 if { (ac_try="$ac_compile"
30871 case "(($ac_try" in
30872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30873 *) ac_try_echo
=$ac_try;;
30875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30876 (eval "$ac_compile") 2>conftest.er1
30878 grep -v '^ *+' conftest.er1
>conftest.err
30880 cat conftest.err
>&5
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882 (exit $ac_status); } &&
30883 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30884 { (case "(($ac_try" in
30885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889 (eval "$ac_try") 2>&5
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; } &&
30893 { ac_try='test -s conftest.$ac_objext'
30894 { (case "(($ac_try" in
30895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30896 *) ac_try_echo
=$ac_try;;
30898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_try") 2>&5
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); }; }; then
30903 ac_header_compiler
=yes
30905 echo "$as_me: failed program was:" >&5
30906 sed 's/^/| /' conftest.
$ac_ext >&5
30908 ac_header_compiler
=no
30911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30913 echo "${ECHO_T}$ac_header_compiler" >&6; }
30915 # Is the header present?
30916 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30918 cat >conftest.
$ac_ext <<_ACEOF
30921 cat confdefs.h
>>conftest.
$ac_ext
30922 cat >>conftest.
$ac_ext <<_ACEOF
30923 /* end confdefs.h. */
30924 #include <$ac_header>
30926 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30927 case "(($ac_try" in
30928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30929 *) ac_try_echo=$ac_try;;
30931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30934 grep -v '^ *+' conftest.er1 >conftest.err
30936 cat conftest.err >&5
30937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938 (exit $ac_status); } >/dev/null; then
30939 if test -s conftest.err; then
30940 ac_cpp_err=$ac_c_preproc_warn_flag
30941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30948 if test -z "$ac_cpp_err"; then
30949 ac_header_preproc=yes
30951 echo "$as_me: failed program was:" >&5
30952 sed 's/^/| /' conftest.$ac_ext >&5
30954 ac_header_preproc=no
30957 rm -f conftest.err conftest.$ac_ext
30958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30959 echo "${ECHO_T}$ac_header_preproc" >&6; }
30961 # So? What about this header?
30962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30968 ac_header_preproc=yes
30971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30984 ## ----------------------------------- ##
30985 ## Report this to llvmbugs@cs.uiuc.edu ##
30986 ## ----------------------------------- ##
30988 ) | sed "s/^/$as_me: WARNING: /" >&2
30991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30994 echo $ECHO_N "(cached) $ECHO_C" >&6
30996 eval "$as_ac_Header=\$ac_header_preproc"
30998 ac_res=`eval echo '${'$as_ac_Header'}'`
30999 { echo "$as_me:$LINENO: result: $ac_res" >&5
31000 echo "${ECHO_T}$ac_res" >&6; }
31003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31004 cat >>confdefs.h <<_ACEOF
31005 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
31016 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31017 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31018 if test "${ac_cv_huge_val_sanity+set}" = set; then
31019 echo $ECHO_N "(cached) $ECHO_C" >&6
31023 ac_cpp='$CXXCPP $CPPFLAGS'
31024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31029 if test "$cross_compiling" = yes; then
31030 ac_cv_huge_val_sanity=yes
31032 cat >conftest.$ac_ext <<_ACEOF
31035 cat confdefs.h >>conftest.$ac_ext
31036 cat >>conftest.$ac_ext <<_ACEOF
31037 /* end confdefs.h. */
31042 double x = HUGE_VAL; return x != x;
31047 rm -f conftest$ac_exeext
31048 if { (ac_try="$ac_link"
31049 case "(($ac_try" in
31050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31051 *) ac_try_echo
=$ac_try;;
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_link") 2>&5
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31058 { (case "(($ac_try" in
31059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31060 *) ac_try_echo=$ac_try;;
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_try") 2>&5
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); }; }; then
31067 ac_cv_huge_val_sanity=yes
31069 echo "$as_me: program exited with status $ac_status" >&5
31070 echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31073 ( exit $ac_status )
31074 ac_cv_huge_val_sanity=no
31076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31081 ac_cpp='$CPP $CPPFLAGS'
31082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31088 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31089 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31090 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31093 { echo "$as_me:$LINENO: checking for pid_t" >&5
31094 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31095 if test "${ac_cv_type_pid_t+set}" = set; then
31096 echo $ECHO_N "(cached) $ECHO_C" >&6
31098 cat >conftest.$ac_ext <<_ACEOF
31101 cat confdefs.h >>conftest.$ac_ext
31102 cat >>conftest.$ac_ext <<_ACEOF
31103 /* end confdefs.h. */
31104 $ac_includes_default
31105 typedef pid_t ac__type_new_;
31109 if ((ac__type_new_ *) 0)
31111 if (sizeof (ac__type_new_))
31117 rm -f conftest.$ac_objext
31118 if { (ac_try="$ac_compile"
31119 case "(($ac_try" in
31120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31121 *) ac_try_echo
=$ac_try;;
31123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31124 (eval "$ac_compile") 2>conftest.er1
31126 grep -v '^ *+' conftest.er1
>conftest.err
31128 cat conftest.err
>&5
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); } &&
31131 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31132 { (case "(($ac_try" in
31133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31134 *) ac_try_echo=$ac_try;;
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137 (eval "$ac_try") 2>&5
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); }; } &&
31141 { ac_try='test -s conftest.$ac_objext'
31142 { (case "(($ac_try" in
31143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31144 *) ac_try_echo
=$ac_try;;
31146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31147 (eval "$ac_try") 2>&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; }; then
31151 ac_cv_type_pid_t
=yes
31153 echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.
$ac_ext >&5
31156 ac_cv_type_pid_t
=no
31159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31161 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31162 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31163 if test $ac_cv_type_pid_t = yes; then
31167 cat >>confdefs.h
<<_ACEOF
31173 { echo "$as_me:$LINENO: checking for size_t" >&5
31174 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31175 if test "${ac_cv_type_size_t+set}" = set; then
31176 echo $ECHO_N "(cached) $ECHO_C" >&6
31178 cat >conftest.
$ac_ext <<_ACEOF
31181 cat confdefs.h
>>conftest.
$ac_ext
31182 cat >>conftest.
$ac_ext <<_ACEOF
31183 /* end confdefs.h. */
31184 $ac_includes_default
31185 typedef size_t ac__type_new_;
31189 if ((ac__type_new_ *) 0)
31191 if (sizeof (ac__type_new_))
31197 rm -f conftest.
$ac_objext
31198 if { (ac_try
="$ac_compile"
31199 case "(($ac_try" in
31200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31201 *) ac_try_echo=$ac_try;;
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204 (eval "$ac_compile") 2>conftest.er1
31206 grep -v '^ *+' conftest.er1 >conftest.err
31208 cat conftest.err >&5
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); } &&
31211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31212 { (case "(($ac_try" in
31213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31214 *) ac_try_echo
=$ac_try;;
31216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31217 (eval "$ac_try") 2>&5
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); }; } &&
31221 { ac_try
='test -s conftest.$ac_objext'
31222 { (case "(($ac_try" in
31223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31224 *) ac_try_echo=$ac_try;;
31226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227 (eval "$ac_try") 2>&5
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; }; then
31231 ac_cv_type_size_t=yes
31233 echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31236 ac_cv_type_size_t=no
31239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31241 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31242 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31243 if test $ac_cv_type_size_t = yes; then
31247 cat >>confdefs.h <<_ACEOF
31248 #define size_t unsigned int
31253 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31254 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31255 if test "${ac_cv_type_signal+set}" = set; then
31256 echo $ECHO_N "(cached) $ECHO_C" >&6
31258 cat >conftest.$ac_ext <<_ACEOF
31261 cat confdefs.h >>conftest.$ac_ext
31262 cat >>conftest.$ac_ext <<_ACEOF
31263 /* end confdefs.h. */
31264 #include <sys/types.h>
31265 #include <signal.h>
31270 return *(signal (0, 0)) (0) == 1;
31275 rm -f conftest.$ac_objext
31276 if { (ac_try="$ac_compile"
31277 case "(($ac_try" in
31278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31279 *) ac_try_echo
=$ac_try;;
31281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31282 (eval "$ac_compile") 2>conftest.er1
31284 grep -v '^ *+' conftest.er1
>conftest.err
31286 cat conftest.err
>&5
31287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288 (exit $ac_status); } &&
31289 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31290 { (case "(($ac_try" in
31291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31292 *) ac_try_echo=$ac_try;;
31294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31295 (eval "$ac_try") 2>&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); }; } &&
31299 { ac_try='test -s conftest.$ac_objext'
31300 { (case "(($ac_try" in
31301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31302 *) ac_try_echo
=$ac_try;;
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_try") 2>&5
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; }; then
31309 ac_cv_type_signal
=int
31311 echo "$as_me: failed program was:" >&5
31312 sed 's/^/| /' conftest.
$ac_ext >&5
31314 ac_cv_type_signal
=void
31317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31319 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31320 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31322 cat >>confdefs.h
<<_ACEOF
31323 #define RETSIGTYPE $ac_cv_type_signal
31327 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31328 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31329 if test "${ac_cv_struct_tm+set}" = set; then
31330 echo $ECHO_N "(cached) $ECHO_C" >&6
31332 cat >conftest.
$ac_ext <<_ACEOF
31335 cat confdefs.h
>>conftest.
$ac_ext
31336 cat >>conftest.
$ac_ext <<_ACEOF
31337 /* end confdefs.h. */
31338 #include <sys/types.h>
31344 struct tm *tp; tp->tm_sec;
31349 rm -f conftest.
$ac_objext
31350 if { (ac_try
="$ac_compile"
31351 case "(($ac_try" in
31352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31353 *) ac_try_echo=$ac_try;;
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356 (eval "$ac_compile") 2>conftest.er1
31358 grep -v '^ *+' conftest.er1 >conftest.err
31360 cat conftest.err >&5
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); } &&
31363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31364 { (case "(($ac_try" in
31365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31366 *) ac_try_echo
=$ac_try;;
31368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369 (eval "$ac_try") 2>&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; } &&
31373 { ac_try
='test -s conftest.$ac_objext'
31374 { (case "(($ac_try" in
31375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31376 *) ac_try_echo=$ac_try;;
31378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31379 (eval "$ac_try") 2>&5
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); }; }; then
31383 ac_cv_struct_tm=time.h
31385 echo "$as_me: failed program was:" >&5
31386 sed 's/^/| /' conftest.$ac_ext >&5
31388 ac_cv_struct_tm=sys/time.h
31391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31393 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31394 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31395 if test $ac_cv_struct_tm = sys/time.h; then
31397 cat >>confdefs.h <<\_ACEOF
31398 #define TM_IN_SYS_TIME 1
31403 { echo "$as_me:$LINENO: checking for int64_t" >&5
31404 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31405 if test "${ac_cv_type_int64_t+set}" = set; then
31406 echo $ECHO_N "(cached) $ECHO_C" >&6
31408 cat >conftest.$ac_ext <<_ACEOF
31411 cat confdefs.h >>conftest.$ac_ext
31412 cat >>conftest.$ac_ext <<_ACEOF
31413 /* end confdefs.h. */
31414 $ac_includes_default
31415 typedef int64_t ac__type_new_;
31419 if ((ac__type_new_ *) 0)
31421 if (sizeof (ac__type_new_))
31427 rm -f conftest.$ac_objext
31428 if { (ac_try="$ac_compile"
31429 case "(($ac_try" in
31430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31431 *) ac_try_echo
=$ac_try;;
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_compile") 2>conftest.er1
31436 grep -v '^ *+' conftest.er1
>conftest.err
31438 cat conftest.err
>&5
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); } &&
31441 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31442 { (case "(($ac_try" in
31443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31444 *) ac_try_echo=$ac_try;;
31446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31447 (eval "$ac_try") 2>&5
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); }; } &&
31451 { ac_try='test -s conftest.$ac_objext'
31452 { (case "(($ac_try" in
31453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31454 *) ac_try_echo
=$ac_try;;
31456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457 (eval "$ac_try") 2>&5
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); }; }; then
31461 ac_cv_type_int64_t
=yes
31463 echo "$as_me: failed program was:" >&5
31464 sed 's/^/| /' conftest.
$ac_ext >&5
31466 ac_cv_type_int64_t
=no
31469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31471 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31472 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31473 if test $ac_cv_type_int64_t = yes; then
31475 cat >>confdefs.h
<<_ACEOF
31476 #define HAVE_INT64_T 1
31481 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31482 echo "$as_me: error: Type int64_t required but not found" >&2;}
31483 { (exit 1); exit 1; }; }
31486 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31487 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31488 if test "${ac_cv_type_uint64_t+set}" = set; then
31489 echo $ECHO_N "(cached) $ECHO_C" >&6
31491 cat >conftest.
$ac_ext <<_ACEOF
31494 cat confdefs.h
>>conftest.
$ac_ext
31495 cat >>conftest.
$ac_ext <<_ACEOF
31496 /* end confdefs.h. */
31497 $ac_includes_default
31498 typedef uint64_t ac__type_new_;
31502 if ((ac__type_new_ *) 0)
31504 if (sizeof (ac__type_new_))
31510 rm -f conftest.
$ac_objext
31511 if { (ac_try
="$ac_compile"
31512 case "(($ac_try" in
31513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31514 *) ac_try_echo=$ac_try;;
31516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31517 (eval "$ac_compile") 2>conftest.er1
31519 grep -v '^ *+' conftest.er1 >conftest.err
31521 cat conftest.err >&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); } &&
31524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31525 { (case "(($ac_try" in
31526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31527 *) ac_try_echo
=$ac_try;;
31529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31530 (eval "$ac_try") 2>&5
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); }; } &&
31534 { ac_try
='test -s conftest.$ac_objext'
31535 { (case "(($ac_try" in
31536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31537 *) ac_try_echo=$ac_try;;
31539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31540 (eval "$ac_try") 2>&5
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; }; then
31544 ac_cv_type_uint64_t=yes
31546 echo "$as_me: failed program was:" >&5
31547 sed 's/^/| /' conftest.$ac_ext >&5
31549 ac_cv_type_uint64_t=no
31552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31554 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31555 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31556 if test $ac_cv_type_uint64_t = yes; then
31558 cat >>confdefs.h <<_ACEOF
31559 #define HAVE_UINT64_T 1
31564 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31565 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31566 if test "${ac_cv_type_u_int64_t+set}" = set; then
31567 echo $ECHO_N "(cached) $ECHO_C" >&6
31569 cat >conftest.$ac_ext <<_ACEOF
31572 cat confdefs.h >>conftest.$ac_ext
31573 cat >>conftest.$ac_ext <<_ACEOF
31574 /* end confdefs.h. */
31575 $ac_includes_default
31576 typedef u_int64_t ac__type_new_;
31580 if ((ac__type_new_ *) 0)
31582 if (sizeof (ac__type_new_))
31588 rm -f conftest.$ac_objext
31589 if { (ac_try="$ac_compile"
31590 case "(($ac_try" in
31591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31592 *) ac_try_echo
=$ac_try;;
31594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 (eval "$ac_compile") 2>conftest.er1
31597 grep -v '^ *+' conftest.er1
>conftest.err
31599 cat conftest.err
>&5
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); } &&
31602 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31603 { (case "(($ac_try" in
31604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_try") 2>&5
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; } &&
31612 { ac_try='test -s conftest.$ac_objext'
31613 { (case "(($ac_try" in
31614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31615 *) ac_try_echo
=$ac_try;;
31617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618 (eval "$ac_try") 2>&5
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); }; }; then
31622 ac_cv_type_u_int64_t
=yes
31624 echo "$as_me: failed program was:" >&5
31625 sed 's/^/| /' conftest.
$ac_ext >&5
31627 ac_cv_type_u_int64_t
=no
31630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31632 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31633 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31634 if test $ac_cv_type_u_int64_t = yes; then
31636 cat >>confdefs.h
<<_ACEOF
31637 #define HAVE_U_INT64_T 1
31642 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31643 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31644 { (exit 1); exit 1; }; }
31658 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31660 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31663 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31664 echo $ECHO_N "(cached) $ECHO_C" >&6
31666 cat >conftest.
$ac_ext <<_ACEOF
31669 cat confdefs.h
>>conftest.
$ac_ext
31670 cat >>conftest.
$ac_ext <<_ACEOF
31671 /* end confdefs.h. */
31672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31674 #define $ac_func innocuous_$ac_func
31676 /* System header to define __stub macros and hopefully few prototypes,
31677 which can conflict with char $ac_func (); below.
31678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31679 <limits.h> exists even on freestanding compilers. */
31682 # include <limits.h>
31684 # include <assert.h>
31689 /* Override any GCC internal prototype to avoid an error.
31690 Use char because int might match the return type of a GCC
31691 builtin and then its argument prototype would still apply. */
31696 /* The GNU C library defines this for functions which it implements
31697 to always fail with ENOSYS. Some functions are actually named
31698 something starting with __ and the normal name is an alias. */
31699 #if defined __stub_$ac_func || defined __stub___$ac_func
31706 return $ac_func ();
31711 rm -f conftest.
$ac_objext conftest
$ac_exeext
31712 if { (ac_try
="$ac_link"
31713 case "(($ac_try" in
31714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31715 *) ac_try_echo=$ac_try;;
31717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31718 (eval "$ac_link") 2>conftest.er1
31720 grep -v '^ *+' conftest.er1 >conftest.err
31722 cat conftest.err >&5
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); } &&
31725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31726 { (case "(($ac_try" in
31727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31728 *) ac_try_echo
=$ac_try;;
31730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731 (eval "$ac_try") 2>&5
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); }; } &&
31735 { ac_try
='test -s conftest$ac_exeext'
31736 { (case "(($ac_try" in
31737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31738 *) ac_try_echo=$ac_try;;
31740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741 (eval "$ac_try") 2>&5
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; }; then
31745 eval "$as_ac_var=yes"
31747 echo "$as_me: failed program was:" >&5
31748 sed 's/^/| /' conftest.$ac_ext >&5
31750 eval "$as_ac_var=no"
31753 rm -f core conftest.err conftest.$ac_objext \
31754 conftest$ac_exeext conftest.$ac_ext
31756 ac_res=`eval echo '${'$as_ac_var'}'`
31757 { echo "$as_me:$LINENO: result: $ac_res" >&5
31758 echo "${ECHO_T}$ac_res" >&6; }
31759 if test `eval echo '${'$as_ac_var'}'` = yes; then
31760 cat >>confdefs.h <<_ACEOF
31761 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31771 for ac_func in powf fmodf strtof round
31773 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31777 echo $ECHO_N "(cached) $ECHO_C" >&6
31779 cat >conftest.$ac_ext <<_ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h. */
31785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31787 #define $ac_func innocuous_$ac_func
31789 /* System header to define __stub macros and hopefully few prototypes,
31790 which can conflict with char $ac_func (); below.
31791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31792 <limits.h> exists even on freestanding compilers. */
31795 # include <limits.h>
31797 # include <assert.h>
31802 /* Override any GCC internal prototype to avoid an error.
31803 Use char because int might match the return type of a GCC
31804 builtin and then its argument prototype would still apply. */
31809 /* The GNU C library defines this for functions which it implements
31810 to always fail with ENOSYS. Some functions are actually named
31811 something starting with __ and the normal name is an alias. */
31812 #if defined __stub_$ac_func || defined __stub___$ac_func
31819 return $ac_func ();
31824 rm -f conftest.$ac_objext conftest$ac_exeext
31825 if { (ac_try="$ac_link"
31826 case "(($ac_try" in
31827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31828 *) ac_try_echo
=$ac_try;;
31830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831 (eval "$ac_link") 2>conftest.er1
31833 grep -v '^ *+' conftest.er1
>conftest.err
31835 cat conftest.err
>&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } &&
31838 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31839 { (case "(($ac_try" in
31840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31841 *) ac_try_echo=$ac_try;;
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844 (eval "$ac_try") 2>&5
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); }; } &&
31848 { ac_try='test -s conftest$ac_exeext'
31849 { (case "(($ac_try" in
31850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31851 *) ac_try_echo
=$ac_try;;
31853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31854 (eval "$ac_try") 2>&5
31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857 (exit $ac_status); }; }; then
31858 eval "$as_ac_var=yes"
31860 echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.
$ac_ext >&5
31863 eval "$as_ac_var=no"
31866 rm -f core conftest.err conftest.
$ac_objext \
31867 conftest
$ac_exeext conftest.
$ac_ext
31869 ac_res
=`eval echo '${'$as_ac_var'}'`
31870 { echo "$as_me:$LINENO: result: $ac_res" >&5
31871 echo "${ECHO_T}$ac_res" >&6; }
31872 if test `eval echo '${'$as_ac_var'}'` = yes; then
31873 cat >>confdefs.h
<<_ACEOF
31874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31885 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
31887 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31890 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31891 echo $ECHO_N "(cached) $ECHO_C" >&6
31893 cat >conftest.
$ac_ext <<_ACEOF
31896 cat confdefs.h
>>conftest.
$ac_ext
31897 cat >>conftest.
$ac_ext <<_ACEOF
31898 /* end confdefs.h. */
31899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31901 #define $ac_func innocuous_$ac_func
31903 /* System header to define __stub macros and hopefully few prototypes,
31904 which can conflict with char $ac_func (); below.
31905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31906 <limits.h> exists even on freestanding compilers. */
31909 # include <limits.h>
31911 # include <assert.h>
31916 /* Override any GCC internal prototype to avoid an error.
31917 Use char because int might match the return type of a GCC
31918 builtin and then its argument prototype would still apply. */
31923 /* The GNU C library defines this for functions which it implements
31924 to always fail with ENOSYS. Some functions are actually named
31925 something starting with __ and the normal name is an alias. */
31926 #if defined __stub_$ac_func || defined __stub___$ac_func
31933 return $ac_func ();
31938 rm -f conftest.
$ac_objext conftest
$ac_exeext
31939 if { (ac_try
="$ac_link"
31940 case "(($ac_try" in
31941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31942 *) ac_try_echo=$ac_try;;
31944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31945 (eval "$ac_link") 2>conftest.er1
31947 grep -v '^ *+' conftest.er1 >conftest.err
31949 cat conftest.err >&5
31950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951 (exit $ac_status); } &&
31952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31953 { (case "(($ac_try" in
31954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31955 *) ac_try_echo
=$ac_try;;
31957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31958 (eval "$ac_try") 2>&5
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); }; } &&
31962 { ac_try
='test -s conftest$ac_exeext'
31963 { (case "(($ac_try" in
31964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31965 *) ac_try_echo=$ac_try;;
31967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31968 (eval "$ac_try") 2>&5
31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 (exit $ac_status); }; }; then
31972 eval "$as_ac_var=yes"
31974 echo "$as_me: failed program was:" >&5
31975 sed 's/^/| /' conftest.$ac_ext >&5
31977 eval "$as_ac_var=no"
31980 rm -f core conftest.err conftest.$ac_objext \
31981 conftest$ac_exeext conftest.$ac_ext
31983 ac_res=`eval echo '${'$as_ac_var'}'`
31984 { echo "$as_me:$LINENO: result: $ac_res" >&5
31985 echo "${ECHO_T}$ac_res" >&6; }
31986 if test `eval echo '${'$as_ac_var'}'` = yes; then
31987 cat >>confdefs.h <<_ACEOF
31988 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31997 for ac_func in isatty mkdtemp mkstemp
31999 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32003 echo $ECHO_N "(cached) $ECHO_C" >&6
32005 cat >conftest.$ac_ext <<_ACEOF
32008 cat confdefs.h >>conftest.$ac_ext
32009 cat >>conftest.$ac_ext <<_ACEOF
32010 /* end confdefs.h. */
32011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32013 #define $ac_func innocuous_$ac_func
32015 /* System header to define __stub macros and hopefully few prototypes,
32016 which can conflict with char $ac_func (); below.
32017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32018 <limits.h> exists even on freestanding compilers. */
32021 # include <limits.h>
32023 # include <assert.h>
32028 /* Override any GCC internal prototype to avoid an error.
32029 Use char because int might match the return type of a GCC
32030 builtin and then its argument prototype would still apply. */
32035 /* The GNU C library defines this for functions which it implements
32036 to always fail with ENOSYS. Some functions are actually named
32037 something starting with __ and the normal name is an alias. */
32038 #if defined __stub_$ac_func || defined __stub___$ac_func
32045 return $ac_func ();
32050 rm -f conftest.$ac_objext conftest$ac_exeext
32051 if { (ac_try="$ac_link"
32052 case "(($ac_try" in
32053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32054 *) ac_try_echo
=$ac_try;;
32056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057 (eval "$ac_link") 2>conftest.er1
32059 grep -v '^ *+' conftest.er1
>conftest.err
32061 cat conftest.err
>&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); } &&
32064 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32065 { (case "(($ac_try" in
32066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32067 *) ac_try_echo=$ac_try;;
32069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070 (eval "$ac_try") 2>&5
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; } &&
32074 { ac_try='test -s conftest$ac_exeext'
32075 { (case "(($ac_try" in
32076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32077 *) ac_try_echo
=$ac_try;;
32079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32080 (eval "$ac_try") 2>&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; }; then
32084 eval "$as_ac_var=yes"
32086 echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.
$ac_ext >&5
32089 eval "$as_ac_var=no"
32092 rm -f core conftest.err conftest.
$ac_objext \
32093 conftest
$ac_exeext conftest.
$ac_ext
32095 ac_res
=`eval echo '${'$as_ac_var'}'`
32096 { echo "$as_me:$LINENO: result: $ac_res" >&5
32097 echo "${ECHO_T}$ac_res" >&6; }
32098 if test `eval echo '${'$as_ac_var'}'` = yes; then
32099 cat >>confdefs.h
<<_ACEOF
32100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32111 for ac_func
in mktemp realpath sbrk setrlimit strdup
32113 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32116 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32117 echo $ECHO_N "(cached) $ECHO_C" >&6
32119 cat >conftest.
$ac_ext <<_ACEOF
32122 cat confdefs.h
>>conftest.
$ac_ext
32123 cat >>conftest.
$ac_ext <<_ACEOF
32124 /* end confdefs.h. */
32125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32127 #define $ac_func innocuous_$ac_func
32129 /* System header to define __stub macros and hopefully few prototypes,
32130 which can conflict with char $ac_func (); below.
32131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32132 <limits.h> exists even on freestanding compilers. */
32135 # include <limits.h>
32137 # include <assert.h>
32142 /* Override any GCC internal prototype to avoid an error.
32143 Use char because int might match the return type of a GCC
32144 builtin and then its argument prototype would still apply. */
32149 /* The GNU C library defines this for functions which it implements
32150 to always fail with ENOSYS. Some functions are actually named
32151 something starting with __ and the normal name is an alias. */
32152 #if defined __stub_$ac_func || defined __stub___$ac_func
32159 return $ac_func ();
32164 rm -f conftest.
$ac_objext conftest
$ac_exeext
32165 if { (ac_try
="$ac_link"
32166 case "(($ac_try" in
32167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32168 *) ac_try_echo=$ac_try;;
32170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171 (eval "$ac_link") 2>conftest.er1
32173 grep -v '^ *+' conftest.er1 >conftest.err
32175 cat conftest.err >&5
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); } &&
32178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32179 { (case "(($ac_try" in
32180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32181 *) ac_try_echo
=$ac_try;;
32183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32184 (eval "$ac_try") 2>&5
32186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187 (exit $ac_status); }; } &&
32188 { ac_try
='test -s conftest$ac_exeext'
32189 { (case "(($ac_try" in
32190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32191 *) ac_try_echo=$ac_try;;
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194 (eval "$ac_try") 2>&5
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); }; }; then
32198 eval "$as_ac_var=yes"
32200 echo "$as_me: failed program was:" >&5
32201 sed 's/^/| /' conftest.$ac_ext >&5
32203 eval "$as_ac_var=no"
32206 rm -f core conftest.err conftest.$ac_objext \
32207 conftest$ac_exeext conftest.$ac_ext
32209 ac_res=`eval echo '${'$as_ac_var'}'`
32210 { echo "$as_me:$LINENO: result: $ac_res" >&5
32211 echo "${ECHO_T}$ac_res" >&6; }
32212 if test `eval echo '${'$as_ac_var'}'` = yes; then
32213 cat >>confdefs.h <<_ACEOF
32214 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32223 for ac_func in strerror strerror_r strerror_s
32225 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32229 echo $ECHO_N "(cached) $ECHO_C" >&6
32231 cat >conftest.$ac_ext <<_ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h. */
32237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32239 #define $ac_func innocuous_$ac_func
32241 /* System header to define __stub macros and hopefully few prototypes,
32242 which can conflict with char $ac_func (); below.
32243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32244 <limits.h> exists even on freestanding compilers. */
32247 # include <limits.h>
32249 # include <assert.h>
32254 /* Override any GCC internal prototype to avoid an error.
32255 Use char because int might match the return type of a GCC
32256 builtin and then its argument prototype would still apply. */
32261 /* The GNU C library defines this for functions which it implements
32262 to always fail with ENOSYS. Some functions are actually named
32263 something starting with __ and the normal name is an alias. */
32264 #if defined __stub_$ac_func || defined __stub___$ac_func
32271 return $ac_func ();
32276 rm -f conftest.$ac_objext conftest$ac_exeext
32277 if { (ac_try="$ac_link"
32278 case "(($ac_try" in
32279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32280 *) ac_try_echo
=$ac_try;;
32282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283 (eval "$ac_link") 2>conftest.er1
32285 grep -v '^ *+' conftest.er1
>conftest.err
32287 cat conftest.err
>&5
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); } &&
32290 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32291 { (case "(($ac_try" in
32292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_try") 2>&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; } &&
32300 { ac_try='test -s conftest$ac_exeext'
32301 { (case "(($ac_try" in
32302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32303 *) ac_try_echo
=$ac_try;;
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306 (eval "$ac_try") 2>&5
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); }; }; then
32310 eval "$as_ac_var=yes"
32312 echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.
$ac_ext >&5
32315 eval "$as_ac_var=no"
32318 rm -f core conftest.err conftest.
$ac_objext \
32319 conftest
$ac_exeext conftest.
$ac_ext
32321 ac_res
=`eval echo '${'$as_ac_var'}'`
32322 { echo "$as_me:$LINENO: result: $ac_res" >&5
32323 echo "${ECHO_T}$ac_res" >&6; }
32324 if test `eval echo '${'$as_ac_var'}'` = yes; then
32325 cat >>confdefs.h
<<_ACEOF
32326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32336 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
32338 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32341 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32342 echo $ECHO_N "(cached) $ECHO_C" >&6
32344 cat >conftest.
$ac_ext <<_ACEOF
32347 cat confdefs.h
>>conftest.
$ac_ext
32348 cat >>conftest.
$ac_ext <<_ACEOF
32349 /* end confdefs.h. */
32350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32352 #define $ac_func innocuous_$ac_func
32354 /* System header to define __stub macros and hopefully few prototypes,
32355 which can conflict with char $ac_func (); below.
32356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32357 <limits.h> exists even on freestanding compilers. */
32360 # include <limits.h>
32362 # include <assert.h>
32367 /* Override any GCC internal prototype to avoid an error.
32368 Use char because int might match the return type of a GCC
32369 builtin and then its argument prototype would still apply. */
32374 /* The GNU C library defines this for functions which it implements
32375 to always fail with ENOSYS. Some functions are actually named
32376 something starting with __ and the normal name is an alias. */
32377 #if defined __stub_$ac_func || defined __stub___$ac_func
32384 return $ac_func ();
32389 rm -f conftest.
$ac_objext conftest
$ac_exeext
32390 if { (ac_try
="$ac_link"
32391 case "(($ac_try" in
32392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_link") 2>conftest.er1
32398 grep -v '^ *+' conftest.er1 >conftest.err
32400 cat conftest.err >&5
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); } &&
32403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32404 { (case "(($ac_try" in
32405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32406 *) ac_try_echo
=$ac_try;;
32408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_try") 2>&5
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); }; } &&
32413 { ac_try
='test -s conftest$ac_exeext'
32414 { (case "(($ac_try" in
32415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32416 *) ac_try_echo=$ac_try;;
32418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32419 (eval "$ac_try") 2>&5
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
32423 eval "$as_ac_var=yes"
32425 echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32428 eval "$as_ac_var=no"
32431 rm -f core conftest.err conftest.$ac_objext \
32432 conftest$ac_exeext conftest.$ac_ext
32434 ac_res=`eval echo '${'$as_ac_var'}'`
32435 { echo "$as_me:$LINENO: result: $ac_res" >&5
32436 echo "${ECHO_T}$ac_res" >&6; }
32437 if test `eval echo '${'$as_ac_var'}'` = yes; then
32438 cat >>confdefs.h <<_ACEOF
32439 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32449 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32451 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32455 echo $ECHO_N "(cached) $ECHO_C" >&6
32457 cat >conftest.$ac_ext <<_ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h. */
32463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32465 #define $ac_func innocuous_$ac_func
32467 /* System header to define __stub macros and hopefully few prototypes,
32468 which can conflict with char $ac_func (); below.
32469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32470 <limits.h> exists even on freestanding compilers. */
32473 # include <limits.h>
32475 # include <assert.h>
32480 /* Override any GCC internal prototype to avoid an error.
32481 Use char because int might match the return type of a GCC
32482 builtin and then its argument prototype would still apply. */
32487 /* The GNU C library defines this for functions which it implements
32488 to always fail with ENOSYS. Some functions are actually named
32489 something starting with __ and the normal name is an alias. */
32490 #if defined __stub_$ac_func || defined __stub___$ac_func
32497 return $ac_func ();
32502 rm -f conftest.$ac_objext conftest$ac_exeext
32503 if { (ac_try="$ac_link"
32504 case "(($ac_try" in
32505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32506 *) ac_try_echo
=$ac_try;;
32508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509 (eval "$ac_link") 2>conftest.er1
32511 grep -v '^ *+' conftest.er1
>conftest.err
32513 cat conftest.err
>&5
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); } &&
32516 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32517 { (case "(($ac_try" in
32518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_try") 2>&5
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); }; } &&
32526 { ac_try='test -s conftest$ac_exeext'
32527 { (case "(($ac_try" in
32528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32529 *) ac_try_echo
=$ac_try;;
32531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532 (eval "$ac_try") 2>&5
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; }; then
32536 eval "$as_ac_var=yes"
32538 echo "$as_me: failed program was:" >&5
32539 sed 's/^/| /' conftest.
$ac_ext >&5
32541 eval "$as_ac_var=no"
32544 rm -f core conftest.err conftest.
$ac_objext \
32545 conftest
$ac_exeext conftest.
$ac_ext
32547 ac_res
=`eval echo '${'$as_ac_var'}'`
32548 { echo "$as_me:$LINENO: result: $ac_res" >&5
32549 echo "${ECHO_T}$ac_res" >&6; }
32550 if test `eval echo '${'$as_ac_var'}'` = yes; then
32551 cat >>confdefs.h
<<_ACEOF
32552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32558 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32559 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32560 if test "${llvm_cv_c_printf_a+set}" = set; then
32561 echo $ECHO_N "(cached) $ECHO_C" >&6
32564 ac_cpp
='$CPP $CPPFLAGS'
32565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32569 if test "$cross_compiling" = yes; then
32570 llvmac_cv_c_printf_a
=no
32572 cat >conftest.
$ac_ext <<_ACEOF
32576 cat confdefs.h
>>conftest.
$ac_ext
32577 cat >>conftest.
$ac_ext <<_ACEOF
32578 /* end confdefs.h. */
32581 #include <stdlib.h>
32587 volatile double A, B;
32591 sprintf(Buffer, "%a", A);
32595 if (A != 0x1.999999999999ap-4)
32602 rm -f conftest
$ac_exeext
32603 if { (ac_try
="$ac_link"
32604 case "(($ac_try" in
32605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32606 *) ac_try_echo=$ac_try;;
32608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609 (eval "$ac_link") 2>&5
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32613 { (case "(($ac_try" in
32614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32615 *) ac_try_echo
=$ac_try;;
32617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618 (eval "$ac_try") 2>&5
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); }; }; then
32622 llvm_cv_c_printf_a
=yes
32624 echo "$as_me: program exited with status $ac_status" >&5
32625 echo "$as_me: failed program was:" >&5
32626 sed 's/^/| /' conftest.
$ac_ext >&5
32628 ( exit $ac_status )
32629 llvmac_cv_c_printf_a
=no
32631 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32636 ac_cpp
='$CPP $CPPFLAGS'
32637 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32638 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32639 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32642 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32643 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32644 if test "$llvm_cv_c_printf_a" = "yes"; then
32646 cat >>confdefs.h
<<\_ACEOF
32647 #define HAVE_PRINTF_A 1
32652 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32653 # for constant arguments. Useless!
32654 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32655 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32656 if test "${ac_cv_working_alloca_h+set}" = set; then
32657 echo $ECHO_N "(cached) $ECHO_C" >&6
32659 cat >conftest.
$ac_ext <<_ACEOF
32662 cat confdefs.h
>>conftest.
$ac_ext
32663 cat >>conftest.
$ac_ext <<_ACEOF
32664 /* end confdefs.h. */
32665 #include <alloca.h>
32669 char *p = (char *) alloca (2 * sizeof (int));
32675 rm -f conftest.
$ac_objext conftest
$ac_exeext
32676 if { (ac_try
="$ac_link"
32677 case "(($ac_try" in
32678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32679 *) ac_try_echo=$ac_try;;
32681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32682 (eval "$ac_link") 2>conftest.er1
32684 grep -v '^ *+' conftest.er1 >conftest.err
32686 cat conftest.err >&5
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); } &&
32689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32690 { (case "(($ac_try" in
32691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32692 *) ac_try_echo
=$ac_try;;
32694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695 (eval "$ac_try") 2>&5
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); }; } &&
32699 { ac_try
='test -s conftest$ac_exeext'
32700 { (case "(($ac_try" in
32701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32702 *) ac_try_echo=$ac_try;;
32704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32705 (eval "$ac_try") 2>&5
32707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); }; }; then
32709 ac_cv_working_alloca_h=yes
32711 echo "$as_me: failed program was:" >&5
32712 sed 's/^/| /' conftest.$ac_ext >&5
32714 ac_cv_working_alloca_h=no
32717 rm -f core conftest.err conftest.$ac_objext \
32718 conftest$ac_exeext conftest.$ac_ext
32720 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32721 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32722 if test $ac_cv_working_alloca_h = yes; then
32724 cat >>confdefs.h <<\_ACEOF
32725 #define HAVE_ALLOCA_H 1
32730 { echo "$as_me:$LINENO: checking for alloca" >&5
32731 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32732 if test "${ac_cv_func_alloca_works+set}" = set; then
32733 echo $ECHO_N "(cached) $ECHO_C" >&6
32735 cat >conftest.$ac_ext <<_ACEOF
32738 cat confdefs.h >>conftest.$ac_ext
32739 cat >>conftest.$ac_ext <<_ACEOF
32740 /* end confdefs.h. */
32742 # define alloca __builtin_alloca
32745 # include <malloc.h>
32746 # define alloca _alloca
32749 # include <alloca.h>
32754 # ifndef alloca /* predefined by HP cc +Olibcalls */
32765 char *p = (char *) alloca (1);
32771 rm -f conftest.$ac_objext conftest$ac_exeext
32772 if { (ac_try="$ac_link"
32773 case "(($ac_try" in
32774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32775 *) ac_try_echo
=$ac_try;;
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778 (eval "$ac_link") 2>conftest.er1
32780 grep -v '^ *+' conftest.er1
>conftest.err
32782 cat conftest.err
>&5
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); } &&
32785 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32786 { (case "(($ac_try" in
32787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32788 *) ac_try_echo=$ac_try;;
32790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32791 (eval "$ac_try") 2>&5
32793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794 (exit $ac_status); }; } &&
32795 { ac_try='test -s conftest$ac_exeext'
32796 { (case "(($ac_try" in
32797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32798 *) ac_try_echo
=$ac_try;;
32800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801 (eval "$ac_try") 2>&5
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); }; }; then
32805 ac_cv_func_alloca_works
=yes
32807 echo "$as_me: failed program was:" >&5
32808 sed 's/^/| /' conftest.
$ac_ext >&5
32810 ac_cv_func_alloca_works
=no
32813 rm -f core conftest.err conftest.
$ac_objext \
32814 conftest
$ac_exeext conftest.
$ac_ext
32816 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32817 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32819 if test $ac_cv_func_alloca_works = yes; then
32821 cat >>confdefs.h
<<\_ACEOF
32822 #define HAVE_ALLOCA 1
32826 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32827 # that cause trouble. Some versions do not even contain alloca or
32828 # contain a buggy version. If you still want to use their alloca,
32829 # use ar to extract alloca.o from them instead of compiling alloca.c.
32831 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
32833 cat >>confdefs.h
<<\_ACEOF
32838 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32839 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32840 if test "${ac_cv_os_cray+set}" = set; then
32841 echo $ECHO_N "(cached) $ECHO_C" >&6
32843 cat >conftest.
$ac_ext <<_ACEOF
32846 cat confdefs.h
>>conftest.
$ac_ext
32847 cat >>conftest.
$ac_ext <<_ACEOF
32848 /* end confdefs.h. */
32849 #if defined CRAY && ! defined CRAY2
32856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32857 $EGREP "webecray" >/dev
/null
2>&1; then
32865 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32866 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32867 if test $ac_cv_os_cray = yes; then
32868 for ac_func
in _getb67 GETB67 getb67
; do
32869 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32872 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32873 echo $ECHO_N "(cached) $ECHO_C" >&6
32875 cat >conftest.
$ac_ext <<_ACEOF
32878 cat confdefs.h
>>conftest.
$ac_ext
32879 cat >>conftest.
$ac_ext <<_ACEOF
32880 /* end confdefs.h. */
32881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32883 #define $ac_func innocuous_$ac_func
32885 /* System header to define __stub macros and hopefully few prototypes,
32886 which can conflict with char $ac_func (); below.
32887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32888 <limits.h> exists even on freestanding compilers. */
32891 # include <limits.h>
32893 # include <assert.h>
32898 /* Override any GCC internal prototype to avoid an error.
32899 Use char because int might match the return type of a GCC
32900 builtin and then its argument prototype would still apply. */
32905 /* The GNU C library defines this for functions which it implements
32906 to always fail with ENOSYS. Some functions are actually named
32907 something starting with __ and the normal name is an alias. */
32908 #if defined __stub_$ac_func || defined __stub___$ac_func
32915 return $ac_func ();
32920 rm -f conftest.
$ac_objext conftest
$ac_exeext
32921 if { (ac_try
="$ac_link"
32922 case "(($ac_try" in
32923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32924 *) ac_try_echo=$ac_try;;
32926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32927 (eval "$ac_link") 2>conftest.er1
32929 grep -v '^ *+' conftest.er1 >conftest.err
32931 cat conftest.err >&5
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); } &&
32934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32935 { (case "(($ac_try" in
32936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32937 *) ac_try_echo
=$ac_try;;
32939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32940 (eval "$ac_try") 2>&5
32942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); }; } &&
32944 { ac_try
='test -s conftest$ac_exeext'
32945 { (case "(($ac_try" in
32946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32947 *) ac_try_echo=$ac_try;;
32949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32950 (eval "$ac_try") 2>&5
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; }; then
32954 eval "$as_ac_var=yes"
32956 echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32959 eval "$as_ac_var=no"
32962 rm -f core conftest.err conftest.$ac_objext \
32963 conftest$ac_exeext conftest.$ac_ext
32965 ac_res=`eval echo '${'$as_ac_var'}'`
32966 { echo "$as_me:$LINENO: result: $ac_res" >&5
32967 echo "${ECHO_T}$ac_res" >&6; }
32968 if test `eval echo '${'$as_ac_var'}'` = yes; then
32970 cat >>confdefs.h <<_ACEOF
32971 #define CRAY_STACKSEG_END $ac_func
32980 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32981 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32982 if test "${ac_cv_c_stack_direction+set}" = set; then
32983 echo $ECHO_N "(cached) $ECHO_C" >&6
32985 if test "$cross_compiling" = yes; then
32986 ac_cv_c_stack_direction=0
32988 cat >conftest.$ac_ext <<_ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h. */
32994 $ac_includes_default
32996 find_stack_direction ()
32998 static char *addr = 0;
33003 return find_stack_direction ();
33006 return (&dummy > addr) ? 1 : -1;
33012 return find_stack_direction () < 0;
33015 rm -f conftest$ac_exeext
33016 if { (ac_try="$ac_link"
33017 case "(($ac_try" in
33018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33019 *) ac_try_echo
=$ac_try;;
33021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33022 (eval "$ac_link") 2>&5
33024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33026 { (case "(($ac_try" in
33027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_try") 2>&5
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); }; }; then
33035 ac_cv_c_stack_direction=1
33037 echo "$as_me: program exited with status $ac_status" >&5
33038 echo "$as_me: failed program was:" >&5
33039 sed 's/^/| /' conftest.$ac_ext >&5
33041 ( exit $ac_status )
33042 ac_cv_c_stack_direction=-1
33044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33049 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33050 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33052 cat >>confdefs.h <<_ACEOF
33053 #define STACK_DIRECTION $ac_cv_c_stack_direction
33060 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33061 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33062 if test "${ac_cv_func_rand48+set}" = set; then
33063 echo $ECHO_N "(cached) $ECHO_C" >&6
33066 ac_cpp='$CXXCPP $CPPFLAGS'
33067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33071 cat >conftest.$ac_ext <<_ACEOF
33074 cat confdefs.h >>conftest.$ac_ext
33075 cat >>conftest.$ac_ext <<_ACEOF
33076 /* end confdefs.h. */
33077 #include <stdlib.h>
33081 srand48(0);lrand48();drand48();
33086 rm -f conftest.$ac_objext
33087 if { (ac_try="$ac_compile"
33088 case "(($ac_try" in
33089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33090 *) ac_try_echo
=$ac_try;;
33092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093 (eval "$ac_compile") 2>conftest.er1
33095 grep -v '^ *+' conftest.er1
>conftest.err
33097 cat conftest.err
>&5
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); } &&
33100 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33101 { (case "(($ac_try" in
33102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_try") 2>&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); }; } &&
33110 { ac_try='test -s conftest.$ac_objext'
33111 { (case "(($ac_try" in
33112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33113 *) ac_try_echo
=$ac_try;;
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116 (eval "$ac_try") 2>&5
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); }; }; then
33120 ac_cv_func_rand48
=yes
33122 echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.
$ac_ext >&5
33125 ac_cv_func_rand48
=no
33128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33130 ac_cpp
='$CPP $CPPFLAGS'
33131 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33132 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33133 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33136 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33137 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33139 if test "$ac_cv_func_rand48" = "yes" ; then
33141 cat >>confdefs.h
<<\_ACEOF
33142 #define HAVE_RAND48 1
33148 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33149 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33150 if test "${ac_cv_cxx_namespaces+set}" = set; then
33151 echo $ECHO_N "(cached) $ECHO_C" >&6
33154 ac_cpp
='$CXXCPP $CPPFLAGS'
33155 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33156 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33157 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33159 cat >conftest.
$ac_ext <<_ACEOF
33162 cat confdefs.h
>>conftest.
$ac_ext
33163 cat >>conftest.
$ac_ext <<_ACEOF
33164 /* end confdefs.h. */
33165 namespace Outer { namespace Inner { int i = 0; }}
33169 using namespace Outer::Inner; return i;
33174 rm -f conftest.
$ac_objext
33175 if { (ac_try
="$ac_compile"
33176 case "(($ac_try" in
33177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33178 *) ac_try_echo=$ac_try;;
33180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33181 (eval "$ac_compile") 2>conftest.er1
33183 grep -v '^ *+' conftest.er1 >conftest.err
33185 cat conftest.err >&5
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); } &&
33188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33189 { (case "(($ac_try" in
33190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33191 *) ac_try_echo
=$ac_try;;
33193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33194 (eval "$ac_try") 2>&5
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); }; } &&
33198 { ac_try
='test -s conftest.$ac_objext'
33199 { (case "(($ac_try" in
33200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33201 *) ac_try_echo=$ac_try;;
33203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33204 (eval "$ac_try") 2>&5
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); }; }; then
33208 ac_cv_cxx_namespaces=yes
33210 echo "$as_me: failed program was:" >&5
33211 sed 's/^/| /' conftest.$ac_ext >&5
33213 ac_cv_cxx_namespaces=no
33216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33218 ac_cpp='$CPP $CPPFLAGS'
33219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33225 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33226 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33227 if test "$ac_cv_cxx_namespaces" = yes; then
33229 cat >>confdefs.h <<\_ACEOF
33230 #define HAVE_NAMESPACES
33235 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33236 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33237 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33238 echo $ECHO_N "(cached) $ECHO_C" >&6
33242 ac_cpp='$CXXCPP $CPPFLAGS'
33243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33247 cat >conftest.$ac_ext <<_ACEOF
33250 cat confdefs.h >>conftest.$ac_ext
33251 cat >>conftest.$ac_ext <<_ACEOF
33252 /* end confdefs.h. */
33253 #include <iterator>
33254 #ifdef HAVE_NAMESPACES
33255 using namespace std;
33260 iterator<int,int,int> t; return 0;
33265 rm -f conftest.$ac_objext
33266 if { (ac_try="$ac_compile"
33267 case "(($ac_try" in
33268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33269 *) ac_try_echo
=$ac_try;;
33271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33272 (eval "$ac_compile") 2>conftest.er1
33274 grep -v '^ *+' conftest.er1
>conftest.err
33276 cat conftest.err
>&5
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); } &&
33279 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33280 { (case "(($ac_try" in
33281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33282 *) ac_try_echo=$ac_try;;
33284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33285 (eval "$ac_try") 2>&5
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); }; } &&
33289 { ac_try='test -s conftest.$ac_objext'
33290 { (case "(($ac_try" in
33291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33292 *) ac_try_echo
=$ac_try;;
33294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33295 (eval "$ac_try") 2>&5
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); }; }; then
33299 ac_cv_cxx_have_std_iterator
=yes
33301 echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.
$ac_ext >&5
33304 ac_cv_cxx_have_std_iterator
=no
33307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33309 ac_cpp
='$CPP $CPPFLAGS'
33310 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33311 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33312 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33316 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33317 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33318 if test "$ac_cv_cxx_have_std_iterator" = yes
33321 cat >>confdefs.h
<<\_ACEOF
33322 #define HAVE_STD_ITERATOR 1
33327 cat >>confdefs.h
<<\_ACEOF
33328 #define HAVE_STD_ITERATOR 0
33333 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33334 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33335 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33336 echo $ECHO_N "(cached) $ECHO_C" >&6
33340 ac_cpp
='$CXXCPP $CPPFLAGS'
33341 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33342 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33343 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33345 cat >conftest.
$ac_ext <<_ACEOF
33348 cat confdefs.h
>>conftest.
$ac_ext
33349 cat >>conftest.
$ac_ext <<_ACEOF
33350 /* end confdefs.h. */
33351 #include <iterator>
33352 #ifdef HAVE_NAMESPACES
33353 using namespace std;
33358 bidirectional_iterator<int,int> t; return 0;
33363 rm -f conftest.
$ac_objext
33364 if { (ac_try
="$ac_compile"
33365 case "(($ac_try" in
33366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33367 *) ac_try_echo=$ac_try;;
33369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370 (eval "$ac_compile") 2>conftest.er1
33372 grep -v '^ *+' conftest.er1 >conftest.err
33374 cat conftest.err >&5
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); } &&
33377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33378 { (case "(($ac_try" in
33379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33380 *) ac_try_echo
=$ac_try;;
33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383 (eval "$ac_try") 2>&5
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); }; } &&
33387 { ac_try
='test -s conftest.$ac_objext'
33388 { (case "(($ac_try" in
33389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33390 *) ac_try_echo=$ac_try;;
33392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393 (eval "$ac_try") 2>&5
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); }; }; then
33397 ac_cv_cxx_have_bi_iterator=yes
33399 echo "$as_me: failed program was:" >&5
33400 sed 's/^/| /' conftest.$ac_ext >&5
33402 ac_cv_cxx_have_bi_iterator=no
33405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33407 ac_cpp='$CPP $CPPFLAGS'
33408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33414 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33415 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33416 if test "$ac_cv_cxx_have_bi_iterator" = yes
33419 cat >>confdefs.h <<\_ACEOF
33420 #define HAVE_BI_ITERATOR 1
33425 cat >>confdefs.h <<\_ACEOF
33426 #define HAVE_BI_ITERATOR 0
33431 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33432 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33433 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33434 echo $ECHO_N "(cached) $ECHO_C" >&6
33438 ac_cpp='$CXXCPP $CPPFLAGS'
33439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33443 cat >conftest.$ac_ext <<_ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h. */
33449 #include <iterator>
33450 #ifdef HAVE_NAMESPACES
33451 using namespace std;
33456 forward_iterator<int,int> t; return 0;
33461 rm -f conftest.$ac_objext
33462 if { (ac_try="$ac_compile"
33463 case "(($ac_try" in
33464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33465 *) ac_try_echo
=$ac_try;;
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468 (eval "$ac_compile") 2>conftest.er1
33470 grep -v '^ *+' conftest.er1
>conftest.err
33472 cat conftest.err
>&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); } &&
33475 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33476 { (case "(($ac_try" in
33477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33478 *) ac_try_echo=$ac_try;;
33480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481 (eval "$ac_try") 2>&5
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; } &&
33485 { ac_try='test -s conftest.$ac_objext'
33486 { (case "(($ac_try" in
33487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33488 *) ac_try_echo
=$ac_try;;
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491 (eval "$ac_try") 2>&5
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; }; then
33495 ac_cv_cxx_have_fwd_iterator
=yes
33497 echo "$as_me: failed program was:" >&5
33498 sed 's/^/| /' conftest.
$ac_ext >&5
33500 ac_cv_cxx_have_fwd_iterator
=no
33503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33505 ac_cpp
='$CPP $CPPFLAGS'
33506 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33507 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33508 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33512 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33513 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33514 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33517 cat >>confdefs.h
<<\_ACEOF
33518 #define HAVE_FWD_ITERATOR 1
33523 cat >>confdefs.h
<<\_ACEOF
33524 #define HAVE_FWD_ITERATOR 0
33530 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33531 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33532 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33533 echo $ECHO_N "(cached) $ECHO_C" >&6
33536 ac_cpp
='$CXXCPP $CPPFLAGS'
33537 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33538 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33539 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33541 cat >conftest.
$ac_ext <<_ACEOF
33544 cat confdefs.h
>>conftest.
$ac_ext
33545 cat >>conftest.
$ac_ext <<_ACEOF
33546 /* end confdefs.h. */
33556 rm -f conftest.
$ac_objext
33557 if { (ac_try
="$ac_compile"
33558 case "(($ac_try" in
33559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33560 *) ac_try_echo=$ac_try;;
33562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33563 (eval "$ac_compile") 2>conftest.er1
33565 grep -v '^ *+' conftest.er1 >conftest.err
33567 cat conftest.err >&5
33568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569 (exit $ac_status); } &&
33570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33571 { (case "(($ac_try" in
33572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33573 *) ac_try_echo
=$ac_try;;
33575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33576 (eval "$ac_try") 2>&5
33578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33579 (exit $ac_status); }; } &&
33580 { ac_try
='test -s conftest.$ac_objext'
33581 { (case "(($ac_try" in
33582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33583 *) ac_try_echo=$ac_try;;
33585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586 (eval "$ac_try") 2>&5
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); }; }; then
33590 ac_cv_func_isnan_in_math_h=yes
33592 echo "$as_me: failed program was:" >&5
33593 sed 's/^/| /' conftest.$ac_ext >&5
33595 ac_cv_func_isnan_in_math_h=no
33598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33600 ac_cpp='$CPP $CPPFLAGS'
33601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33606 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33607 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33610 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33612 cat >>confdefs.h <<\_ACEOF
33613 #define HAVE_ISNAN_IN_MATH_H 1
33618 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33619 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33620 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33621 echo $ECHO_N "(cached) $ECHO_C" >&6
33624 ac_cpp='$CXXCPP $CPPFLAGS'
33625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33629 cat >conftest.$ac_ext <<_ACEOF
33632 cat confdefs.h >>conftest.$ac_ext
33633 cat >>conftest.$ac_ext <<_ACEOF
33634 /* end confdefs.h. */
33644 rm -f conftest.$ac_objext
33645 if { (ac_try="$ac_compile"
33646 case "(($ac_try" in
33647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33648 *) ac_try_echo
=$ac_try;;
33650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33651 (eval "$ac_compile") 2>conftest.er1
33653 grep -v '^ *+' conftest.er1
>conftest.err
33655 cat conftest.err
>&5
33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657 (exit $ac_status); } &&
33658 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33659 { (case "(($ac_try" in
33660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33661 *) ac_try_echo=$ac_try;;
33663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33664 (eval "$ac_try") 2>&5
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); }; } &&
33668 { ac_try='test -s conftest.$ac_objext'
33669 { (case "(($ac_try" in
33670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33671 *) ac_try_echo
=$ac_try;;
33673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33674 (eval "$ac_try") 2>&5
33676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677 (exit $ac_status); }; }; then
33678 ac_cv_func_isnan_in_cmath
=yes
33680 echo "$as_me: failed program was:" >&5
33681 sed 's/^/| /' conftest.
$ac_ext >&5
33683 ac_cv_func_isnan_in_cmath
=no
33686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33688 ac_cpp
='$CPP $CPPFLAGS'
33689 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33690 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33691 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33694 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33695 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33697 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33699 cat >>confdefs.h
<<\_ACEOF
33700 #define HAVE_ISNAN_IN_CMATH 1
33705 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33706 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33707 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33708 echo $ECHO_N "(cached) $ECHO_C" >&6
33711 ac_cpp
='$CXXCPP $CPPFLAGS'
33712 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33713 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33714 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33716 cat >conftest.
$ac_ext <<_ACEOF
33719 cat confdefs.h
>>conftest.
$ac_ext
33720 cat >>conftest.
$ac_ext <<_ACEOF
33721 /* end confdefs.h. */
33726 float f; std::isnan(f);
33731 rm -f conftest.
$ac_objext
33732 if { (ac_try
="$ac_compile"
33733 case "(($ac_try" in
33734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33735 *) ac_try_echo=$ac_try;;
33737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33738 (eval "$ac_compile") 2>conftest.er1
33740 grep -v '^ *+' conftest.er1 >conftest.err
33742 cat conftest.err >&5
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); } &&
33745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33746 { (case "(($ac_try" in
33747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33748 *) ac_try_echo
=$ac_try;;
33750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33751 (eval "$ac_try") 2>&5
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); }; } &&
33755 { ac_try
='test -s conftest.$ac_objext'
33756 { (case "(($ac_try" in
33757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33758 *) ac_try_echo=$ac_try;;
33760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33761 (eval "$ac_try") 2>&5
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); }; }; then
33765 ac_cv_func_std_isnan_in_cmath=yes
33767 echo "$as_me: failed program was:" >&5
33768 sed 's/^/| /' conftest.$ac_ext >&5
33770 ac_cv_func_std_isnan_in_cmath=no
33773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33775 ac_cpp='$CPP $CPPFLAGS'
33776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33781 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33782 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33784 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33786 cat >>confdefs.h <<\_ACEOF
33787 #define HAVE_STD_ISNAN_IN_CMATH 1
33793 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33794 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33795 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33796 echo $ECHO_N "(cached) $ECHO_C" >&6
33799 ac_cpp='$CXXCPP $CPPFLAGS'
33800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33804 cat >conftest.$ac_ext <<_ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h. */
33819 rm -f conftest.$ac_objext
33820 if { (ac_try="$ac_compile"
33821 case "(($ac_try" in
33822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33823 *) ac_try_echo
=$ac_try;;
33825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33826 (eval "$ac_compile") 2>conftest.er1
33828 grep -v '^ *+' conftest.er1
>conftest.err
33830 cat conftest.err
>&5
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); } &&
33833 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33834 { (case "(($ac_try" in
33835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33836 *) ac_try_echo=$ac_try;;
33838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33839 (eval "$ac_try") 2>&5
33841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842 (exit $ac_status); }; } &&
33843 { ac_try='test -s conftest.$ac_objext'
33844 { (case "(($ac_try" in
33845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33846 *) ac_try_echo
=$ac_try;;
33848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33849 (eval "$ac_try") 2>&5
33851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 (exit $ac_status); }; }; then
33853 ac_cv_func_isinf_in_math_h
=yes
33855 echo "$as_me: failed program was:" >&5
33856 sed 's/^/| /' conftest.
$ac_ext >&5
33858 ac_cv_func_isinf_in_math_h
=no
33861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33863 ac_cpp
='$CPP $CPPFLAGS'
33864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33869 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33870 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33872 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33874 cat >>confdefs.h
<<\_ACEOF
33875 #define HAVE_ISINF_IN_MATH_H 1
33880 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33881 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33882 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33883 echo $ECHO_N "(cached) $ECHO_C" >&6
33886 ac_cpp
='$CXXCPP $CPPFLAGS'
33887 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33888 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33889 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33891 cat >conftest.
$ac_ext <<_ACEOF
33894 cat confdefs.h
>>conftest.
$ac_ext
33895 cat >>conftest.
$ac_ext <<_ACEOF
33896 /* end confdefs.h. */
33906 rm -f conftest.
$ac_objext
33907 if { (ac_try
="$ac_compile"
33908 case "(($ac_try" in
33909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33910 *) ac_try_echo=$ac_try;;
33912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33913 (eval "$ac_compile") 2>conftest.er1
33915 grep -v '^ *+' conftest.er1 >conftest.err
33917 cat conftest.err >&5
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); } &&
33920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33921 { (case "(($ac_try" in
33922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33923 *) ac_try_echo
=$ac_try;;
33925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33926 (eval "$ac_try") 2>&5
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); }; } &&
33930 { ac_try
='test -s conftest.$ac_objext'
33931 { (case "(($ac_try" in
33932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33933 *) ac_try_echo=$ac_try;;
33935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33936 (eval "$ac_try") 2>&5
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); }; }; then
33940 ac_cv_func_isinf_in_cmath=yes
33942 echo "$as_me: failed program was:" >&5
33943 sed 's/^/| /' conftest.$ac_ext >&5
33945 ac_cv_func_isinf_in_cmath=no
33948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33950 ac_cpp='$CPP $CPPFLAGS'
33951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33956 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33957 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33959 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33961 cat >>confdefs.h <<\_ACEOF
33962 #define HAVE_ISINF_IN_CMATH 1
33967 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33968 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33969 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33970 echo $ECHO_N "(cached) $ECHO_C" >&6
33973 ac_cpp='$CXXCPP $CPPFLAGS'
33974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33978 cat >conftest.$ac_ext <<_ACEOF
33981 cat confdefs.h >>conftest.$ac_ext
33982 cat >>conftest.$ac_ext <<_ACEOF
33983 /* end confdefs.h. */
33988 float f; std::isinf(f)}
33993 rm -f conftest.$ac_objext
33994 if { (ac_try="$ac_compile"
33995 case "(($ac_try" in
33996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33997 *) ac_try_echo
=$ac_try;;
33999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34000 (eval "$ac_compile") 2>conftest.er1
34002 grep -v '^ *+' conftest.er1
>conftest.err
34004 cat conftest.err
>&5
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); } &&
34007 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34008 { (case "(($ac_try" in
34009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34010 *) ac_try_echo=$ac_try;;
34012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013 (eval "$ac_try") 2>&5
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); }; } &&
34017 { ac_try='test -s conftest.$ac_objext'
34018 { (case "(($ac_try" in
34019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34020 *) ac_try_echo
=$ac_try;;
34022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34023 (eval "$ac_try") 2>&5
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); }; }; then
34027 ac_cv_func_std_isinf_in_cmath
=yes
34029 echo "$as_me: failed program was:" >&5
34030 sed 's/^/| /' conftest.
$ac_ext >&5
34032 ac_cv_func_std_isinf_in_cmath
=no
34035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34037 ac_cpp
='$CPP $CPPFLAGS'
34038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34043 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34044 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34046 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34048 cat >>confdefs.h
<<\_ACEOF
34049 #define HAVE_STD_ISINF_IN_CMATH 1
34054 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34055 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34056 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34060 ac_cpp
='$CXXCPP $CPPFLAGS'
34061 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34062 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34063 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
34065 cat >conftest.
$ac_ext <<_ACEOF
34068 cat confdefs.h
>>conftest.
$ac_ext
34069 cat >>conftest.
$ac_ext <<_ACEOF
34070 /* end confdefs.h. */
34071 #include <ieeefp.h>
34075 float f; finite(f);
34080 rm -f conftest.
$ac_objext
34081 if { (ac_try
="$ac_compile"
34082 case "(($ac_try" in
34083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34084 *) ac_try_echo=$ac_try;;
34086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34087 (eval "$ac_compile") 2>conftest.er1
34089 grep -v '^ *+' conftest.er1 >conftest.err
34091 cat conftest.err >&5
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); } &&
34094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34095 { (case "(($ac_try" in
34096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34097 *) ac_try_echo
=$ac_try;;
34099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34100 (eval "$ac_try") 2>&5
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); }; } &&
34104 { ac_try
='test -s conftest.$ac_objext'
34105 { (case "(($ac_try" in
34106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34107 *) ac_try_echo=$ac_try;;
34109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34110 (eval "$ac_try") 2>&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
34114 ac_cv_func_finite_in_ieeefp_h=yes
34116 echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34119 ac_cv_func_finite_in_ieeefp_h=no
34122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34124 ac_cpp='$CPP $CPPFLAGS'
34125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34130 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34131 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34133 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34135 cat >>confdefs.h <<\_ACEOF
34136 #define HAVE_FINITE_IN_IEEEFP_H 1
34143 if test "$llvm_cv_platform_type" = "Unix" ; then
34146 for ac_header in stdlib.h unistd.h
34148 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
34149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34153 echo $ECHO_N "(cached) $ECHO_C" >&6
34155 ac_res=`eval echo '${'$as_ac_Header'}'`
34156 { echo "$as_me:$LINENO: result: $ac_res" >&5
34157 echo "${ECHO_T}$ac_res" >&6; }
34159 # Is the header compilable?
34160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34162 cat >conftest.$ac_ext <<_ACEOF
34165 cat confdefs.h >>conftest.$ac_ext
34166 cat >>conftest.$ac_ext <<_ACEOF
34167 /* end confdefs.h. */
34168 $ac_includes_default
34169 #include <$ac_header>
34171 rm -f conftest.$ac_objext
34172 if { (ac_try="$ac_compile"
34173 case "(($ac_try" in
34174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34175 *) ac_try_echo
=$ac_try;;
34177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178 (eval "$ac_compile") 2>conftest.er1
34180 grep -v '^ *+' conftest.er1
>conftest.err
34182 cat conftest.err
>&5
34183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); } &&
34185 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34186 { (case "(($ac_try" in
34187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34188 *) ac_try_echo=$ac_try;;
34190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34191 (eval "$ac_try") 2>&5
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); }; } &&
34195 { ac_try='test -s conftest.$ac_objext'
34196 { (case "(($ac_try" in
34197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34198 *) ac_try_echo
=$ac_try;;
34200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34201 (eval "$ac_try") 2>&5
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); }; }; then
34205 ac_header_compiler
=yes
34207 echo "$as_me: failed program was:" >&5
34208 sed 's/^/| /' conftest.
$ac_ext >&5
34210 ac_header_compiler
=no
34213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34215 echo "${ECHO_T}$ac_header_compiler" >&6; }
34217 # Is the header present?
34218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34220 cat >conftest.
$ac_ext <<_ACEOF
34223 cat confdefs.h
>>conftest.
$ac_ext
34224 cat >>conftest.
$ac_ext <<_ACEOF
34225 /* end confdefs.h. */
34226 #include <$ac_header>
34228 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34229 case "(($ac_try" in
34230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34231 *) ac_try_echo=$ac_try;;
34233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34236 grep -v '^ *+' conftest.er1 >conftest.err
34238 cat conftest.err >&5
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); } >/dev/null; then
34241 if test -s conftest.err; then
34242 ac_cpp_err=$ac_c_preproc_warn_flag
34243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34250 if test -z "$ac_cpp_err"; then
34251 ac_header_preproc=yes
34253 echo "$as_me: failed program was:" >&5
34254 sed 's/^/| /' conftest.$ac_ext >&5
34256 ac_header_preproc=no
34259 rm -f conftest.err conftest.$ac_ext
34260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34261 echo "${ECHO_T}$ac_header_preproc" >&6; }
34263 # So? What about this header?
34264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34270 ac_header_preproc=yes
34273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34286 ## ----------------------------------- ##
34287 ## Report this to llvmbugs@cs.uiuc.edu ##
34288 ## ----------------------------------- ##
34290 ) | sed "s/^/$as_me: WARNING: /" >&2
34293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34296 echo $ECHO_N "(cached) $ECHO_C" >&6
34298 eval "$as_ac_Header=\$ac_header_preproc"
34300 ac_res=`eval echo '${'$as_ac_Header'}'`
34301 { echo "$as_me:$LINENO: result: $ac_res" >&5
34302 echo "${ECHO_T}$ac_res" >&6; }
34305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34306 cat >>confdefs.h <<_ACEOF
34307 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
34315 for ac_func in getpagesize
34317 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34321 echo $ECHO_N "(cached) $ECHO_C" >&6
34323 cat >conftest.$ac_ext <<_ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h. */
34329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34331 #define $ac_func innocuous_$ac_func
34333 /* System header to define __stub macros and hopefully few prototypes,
34334 which can conflict with char $ac_func (); below.
34335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34336 <limits.h> exists even on freestanding compilers. */
34339 # include <limits.h>
34341 # include <assert.h>
34346 /* Override any GCC internal prototype to avoid an error.
34347 Use char because int might match the return type of a GCC
34348 builtin and then its argument prototype would still apply. */
34353 /* The GNU C library defines this for functions which it implements
34354 to always fail with ENOSYS. Some functions are actually named
34355 something starting with __ and the normal name is an alias. */
34356 #if defined __stub_$ac_func || defined __stub___$ac_func
34363 return $ac_func ();
34368 rm -f conftest.$ac_objext conftest$ac_exeext
34369 if { (ac_try="$ac_link"
34370 case "(($ac_try" in
34371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34372 *) ac_try_echo
=$ac_try;;
34374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34375 (eval "$ac_link") 2>conftest.er1
34377 grep -v '^ *+' conftest.er1
>conftest.err
34379 cat conftest.err
>&5
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); } &&
34382 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34383 { (case "(($ac_try" in
34384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34385 *) ac_try_echo=$ac_try;;
34387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34388 (eval "$ac_try") 2>&5
34390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391 (exit $ac_status); }; } &&
34392 { ac_try='test -s conftest$ac_exeext'
34393 { (case "(($ac_try" in
34394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34395 *) ac_try_echo
=$ac_try;;
34397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34398 (eval "$ac_try") 2>&5
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); }; }; then
34402 eval "$as_ac_var=yes"
34404 echo "$as_me: failed program was:" >&5
34405 sed 's/^/| /' conftest.
$ac_ext >&5
34407 eval "$as_ac_var=no"
34410 rm -f core conftest.err conftest.
$ac_objext \
34411 conftest
$ac_exeext conftest.
$ac_ext
34413 ac_res
=`eval echo '${'$as_ac_var'}'`
34414 { echo "$as_me:$LINENO: result: $ac_res" >&5
34415 echo "${ECHO_T}$ac_res" >&6; }
34416 if test `eval echo '${'$as_ac_var'}'` = yes; then
34417 cat >>confdefs.h
<<_ACEOF
34418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34424 { echo "$as_me:$LINENO: checking for working mmap" >&5
34425 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34426 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34427 echo $ECHO_N "(cached) $ECHO_C" >&6
34429 if test "$cross_compiling" = yes; then
34430 ac_cv_func_mmap_fixed_mapped
=no
34432 cat >conftest.
$ac_ext <<_ACEOF
34435 cat confdefs.h
>>conftest.
$ac_ext
34436 cat >>conftest.
$ac_ext <<_ACEOF
34437 /* end confdefs.h. */
34438 $ac_includes_default
34439 /* malloc might have been renamed as rpl_malloc. */
34442 /* Thanks to Mike Haertel and Jim Avera for this test.
34443 Here is a matrix of mmap possibilities:
34444 mmap private not fixed
34445 mmap private fixed at somewhere currently unmapped
34446 mmap private fixed at somewhere already mapped
34447 mmap shared not fixed
34448 mmap shared fixed at somewhere currently unmapped
34449 mmap shared fixed at somewhere already mapped
34450 For private mappings, we should verify that changes cannot be read()
34451 back from the file, nor mmap's back from the file at a different
34452 address. (There have been systems where private was not correctly
34453 implemented like the infamous i386 svr4.0, and systems where the
34454 VM page cache was not coherent with the file system buffer cache
34455 like early versions of FreeBSD and possibly contemporary NetBSD.)
34456 For shared mappings, we should conversely verify that changes get
34457 propagated back to all the places they're supposed to be.
34459 Grep wants private fixed already mapped.
34460 The main things grep needs to know about mmap are:
34461 * does it exist and is it safe to write into the mmap'd area
34462 * how to use it (BSD variants) */
34465 #include <sys/mman.h>
34467 #if !STDC_HEADERS && !HAVE_STDLIB_H
34471 /* This mess was copied from the GNU getpagesize.h. */
34472 #if !HAVE_GETPAGESIZE
34473 /* Assume that all systems that can run configure have sys/param.h. */
34474 # if !HAVE_SYS_PARAM_H
34475 # define HAVE_SYS_PARAM_H 1
34478 # ifdef _SC_PAGESIZE
34479 # define getpagesize() sysconf(_SC_PAGESIZE)
34480 # else /* no _SC_PAGESIZE */
34481 # if HAVE_SYS_PARAM_H
34482 # include <sys/param.h>
34483 # ifdef EXEC_PAGESIZE
34484 # define getpagesize() EXEC_PAGESIZE
34485 # else /* no EXEC_PAGESIZE */
34487 # define getpagesize() NBPG * CLSIZE
34490 # endif /* no CLSIZE */
34491 # else /* no NBPG */
34493 # define getpagesize() NBPC
34494 # else /* no NBPC */
34496 # define getpagesize() PAGESIZE
34497 # endif /* PAGESIZE */
34498 # endif /* no NBPC */
34499 # endif /* no NBPG */
34500 # endif /* no EXEC_PAGESIZE */
34501 # else /* no HAVE_SYS_PARAM_H */
34502 # define getpagesize() 8192 /* punt totally */
34503 # endif /* no HAVE_SYS_PARAM_H */
34504 # endif /* no _SC_PAGESIZE */
34506 #endif /* no HAVE_GETPAGESIZE */
34511 char *data, *data2, *data3;
34515 pagesize = getpagesize ();
34517 /* First, make a file with some known garbage in it. */
34518 data = (char *) malloc (pagesize);
34521 for (i = 0; i < pagesize; ++i)
34522 *(data + i) = rand ();
34524 fd = creat ("conftest.mmap", 0600);
34527 if (write (fd, data, pagesize) != pagesize)
34531 /* Next, try to mmap the file at a fixed address which already has
34532 something else allocated at it. If we can, also make sure that
34533 we see the same garbage. */
34534 fd = open ("conftest.mmap", O_RDWR);
34537 data2 = (char *) malloc (2 * pagesize);
34540 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34541 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34542 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34544 for (i = 0; i < pagesize; ++i)
34545 if (*(data + i) != *(data2 + i))
34548 /* Finally, make sure that changes to the mapped area do not
34549 percolate back to the file as seen by read(). (This is a bug on
34550 some variants of i386 svr4.0.) */
34551 for (i = 0; i < pagesize; ++i)
34552 *(data2 + i) = *(data2 + i) + 1;
34553 data3 = (char *) malloc (pagesize);
34556 if (read (fd, data3, pagesize) != pagesize)
34558 for (i = 0; i < pagesize; ++i)
34559 if (*(data + i) != *(data3 + i))
34565 rm -f conftest
$ac_exeext
34566 if { (ac_try
="$ac_link"
34567 case "(($ac_try" in
34568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34569 *) ac_try_echo=$ac_try;;
34571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34572 (eval "$ac_link") 2>&5
34574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34576 { (case "(($ac_try" in
34577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34578 *) ac_try_echo
=$ac_try;;
34580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34581 (eval "$ac_try") 2>&5
34583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584 (exit $ac_status); }; }; then
34585 ac_cv_func_mmap_fixed_mapped
=yes
34587 echo "$as_me: program exited with status $ac_status" >&5
34588 echo "$as_me: failed program was:" >&5
34589 sed 's/^/| /' conftest.
$ac_ext >&5
34591 ( exit $ac_status )
34592 ac_cv_func_mmap_fixed_mapped
=no
34594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34599 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34600 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34601 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34603 cat >>confdefs.h
<<\_ACEOF
34604 #define HAVE_MMAP 1
34608 rm -f conftest.mmap
34610 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34611 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34612 if test "${ac_cv_func_mmap_file+set}" = set; then
34613 echo $ECHO_N "(cached) $ECHO_C" >&6
34616 ac_cpp
='$CPP $CPPFLAGS'
34617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34621 if test "$cross_compiling" = yes; then
34622 ac_cv_func_mmap_file
=no
34624 cat >conftest.
$ac_ext <<_ACEOF
34628 cat confdefs.h
>>conftest.
$ac_ext
34629 cat >>conftest.
$ac_ext <<_ACEOF
34630 /* end confdefs.h. */
34632 #include <sys/types.h>
34633 #include <sys/mman.h>
34641 fd = creat ("foo",0777);
34642 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34644 return (fd != (int) MAP_FAILED);
34649 rm -f conftest
$ac_exeext
34650 if { (ac_try
="$ac_link"
34651 case "(($ac_try" in
34652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34653 *) ac_try_echo=$ac_try;;
34655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34656 (eval "$ac_link") 2>&5
34658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34660 { (case "(($ac_try" in
34661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34662 *) ac_try_echo
=$ac_try;;
34664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34665 (eval "$ac_try") 2>&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; }; then
34669 ac_cv_func_mmap_file
=yes
34671 echo "$as_me: program exited with status $ac_status" >&5
34672 echo "$as_me: failed program was:" >&5
34673 sed 's/^/| /' conftest.
$ac_ext >&5
34675 ( exit $ac_status )
34676 ac_cv_func_mmap_file
=no
34678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34683 ac_cpp
='$CPP $CPPFLAGS'
34684 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34685 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34686 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34690 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34691 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34692 if test "$ac_cv_func_mmap_file" = yes; then
34694 cat >>confdefs.h
<<\_ACEOF
34695 #define HAVE_MMAP_FILE
34702 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34703 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34704 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34705 echo $ECHO_N "(cached) $ECHO_C" >&6
34707 if test "$llvm_cv_os_type" = "Interix" ; then
34708 ac_cv_need_dev_zero_for_mmap
=yes
34710 ac_cv_need_dev_zero_for_mmap
=no
34714 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34715 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34716 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34718 cat >>confdefs.h
<<\_ACEOF
34719 #define NEED_DEV_ZERO_FOR_MMAP 1
34724 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34726 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34727 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34729 if test "$ac_cv_func_mmap_file" = "no"
34731 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34732 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34736 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34737 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34738 cat >conftest.
$ac_ext <<_ACEOF
34741 cat confdefs.h
>>conftest.
$ac_ext
34742 cat >>conftest.
$ac_ext <<_ACEOF
34743 /* end confdefs.h. */
34745 volatile unsigned long val = 1;
34746 __sync_synchronize();
34747 __sync_val_compare_and_swap(&val, 1, 0);
34748 __sync_add_and_fetch(&val, 1);
34749 __sync_sub_and_fetch(&val, 1);
34754 rm -f conftest.
$ac_objext conftest
$ac_exeext
34755 if { (ac_try
="$ac_link"
34756 case "(($ac_try" in
34757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34758 *) ac_try_echo=$ac_try;;
34760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34761 (eval "$ac_link") 2>conftest.er1
34763 grep -v '^ *+' conftest.er1 >conftest.err
34765 cat conftest.err >&5
34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767 (exit $ac_status); } &&
34768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34769 { (case "(($ac_try" in
34770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34771 *) ac_try_echo
=$ac_try;;
34773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34774 (eval "$ac_try") 2>&5
34776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777 (exit $ac_status); }; } &&
34778 { ac_try
='test -s conftest$ac_exeext'
34779 { (case "(($ac_try" in
34780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34781 *) ac_try_echo=$ac_try;;
34783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34784 (eval "$ac_try") 2>&5
34786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34787 (exit $ac_status); }; }; then
34788 { echo "$as_me:$LINENO: result: yes" >&5
34789 echo "${ECHO_T}yes" >&6; }
34791 cat >>confdefs.h <<\_ACEOF
34792 #define LLVM_MULTITHREADED 1
34796 echo "$as_me: failed program was:" >&5
34797 sed 's/^/| /' conftest.$ac_ext >&5
34799 { echo "$as_me:$LINENO: result: no" >&5
34800 echo "${ECHO_T}no" >&6; }
34802 cat >>confdefs.h <<\_ACEOF
34803 #define LLVM_MULTITHREADED 0
34806 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34807 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34810 rm -f core conftest.err conftest.$ac_objext \
34811 conftest$ac_exeext conftest.$ac_ext
34816 for ac_func in __dso_handle
34818 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34822 echo $ECHO_N "(cached) $ECHO_C" >&6
34824 cat >conftest.$ac_ext <<_ACEOF
34827 cat confdefs.h >>conftest.$ac_ext
34828 cat >>conftest.$ac_ext <<_ACEOF
34829 /* end confdefs.h. */
34830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34832 #define $ac_func innocuous_$ac_func
34834 /* System header to define __stub macros and hopefully few prototypes,
34835 which can conflict with char $ac_func (); below.
34836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34837 <limits.h> exists even on freestanding compilers. */
34840 # include <limits.h>
34842 # include <assert.h>
34847 /* Override any GCC internal prototype to avoid an error.
34848 Use char because int might match the return type of a GCC
34849 builtin and then its argument prototype would still apply. */
34854 /* The GNU C library defines this for functions which it implements
34855 to always fail with ENOSYS. Some functions are actually named
34856 something starting with __ and the normal name is an alias. */
34857 #if defined __stub_$ac_func || defined __stub___$ac_func
34864 return $ac_func ();
34869 rm -f conftest.$ac_objext conftest$ac_exeext
34870 if { (ac_try="$ac_link"
34871 case "(($ac_try" in
34872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34873 *) ac_try_echo
=$ac_try;;
34875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34876 (eval "$ac_link") 2>conftest.er1
34878 grep -v '^ *+' conftest.er1
>conftest.err
34880 cat conftest.err
>&5
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); } &&
34883 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34884 { (case "(($ac_try" in
34885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34886 *) ac_try_echo=$ac_try;;
34888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34889 (eval "$ac_try") 2>&5
34891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892 (exit $ac_status); }; } &&
34893 { ac_try='test -s conftest$ac_exeext'
34894 { (case "(($ac_try" in
34895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34896 *) ac_try_echo
=$ac_try;;
34898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34899 (eval "$ac_try") 2>&5
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); }; }; then
34903 eval "$as_ac_var=yes"
34905 echo "$as_me: failed program was:" >&5
34906 sed 's/^/| /' conftest.
$ac_ext >&5
34908 eval "$as_ac_var=no"
34911 rm -f core conftest.err conftest.
$ac_objext \
34912 conftest
$ac_exeext conftest.
$ac_ext
34914 ac_res
=`eval echo '${'$as_ac_var'}'`
34915 { echo "$as_me:$LINENO: result: $ac_res" >&5
34916 echo "${ECHO_T}$ac_res" >&6; }
34917 if test `eval echo '${'$as_ac_var'}'` = yes; then
34918 cat >>confdefs.h
<<_ACEOF
34919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34926 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34927 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34928 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34929 echo $ECHO_N "(cached) $ECHO_C" >&6
34931 llvm_cv_llvmgcc_sanity
="no"
34932 if test -x "$LLVMGCC" ; then
34933 cp /dev
/null conftest.c
34934 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34935 grep 'target datalayout =' > /dev
/null
2>&1
34936 if test $?
-eq 0 ; then
34937 llvm_cv_llvmgcc_sanity
="yes"
34942 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34943 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34945 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34946 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34947 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34948 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
34949 LLVMCC1
=$llvmcc1path
34951 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
34952 LLVMCC1PLUS
=$llvmcc1pluspath
34954 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34955 LLVMGCCDIR
=$llvmgccdir
34957 llvmgcclibexec
=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34958 LLVMGCCLIBEXEC
=$llvmgcclibexec
34960 llvmgccversion
=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34961 llvmgccmajvers
=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34962 LLVMGCC_VERSION
=$llvmgccversion
34964 LLVMGCC_MAJVERS
=$llvmgccmajvers
34966 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34967 LLVMGCC_LANGS
=$llvmgcclangs
34969 { echo "$as_me:$LINENO: result: ok" >&5
34970 echo "${ECHO_T}ok" >&6; }
34973 SHLIBEXT
=$libltdl_cv_shlibext
34976 # Translate the various configuration directories and other basic
34977 # information into substitutions that will end up in Makefile.config.in
34978 # that these configured values can be used by the makefiles
34979 if test "${prefix}" = "NONE" ; then
34980 prefix
="/usr/local"
34982 eval LLVM_PREFIX
="${prefix}";
34983 eval LLVM_BINDIR
="${prefix}/bin";
34984 eval LLVM_LIBDIR
="${prefix}/lib";
34985 eval LLVM_DATADIR
="${prefix}/share/llvm";
34986 eval LLVM_DOCSDIR
="${prefix}/docs/llvm";
34987 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
34988 eval LLVM_INCLUDEDIR
="${prefix}/include";
34989 eval LLVM_INFODIR
="${prefix}/info";
34990 eval LLVM_MANDIR
="${prefix}/man";
34991 LLVM_CONFIGTIME
=`date`
35003 # Place the various directores into the config.h file as #defines so that we
35004 # can know about the installation paths within LLVM.
35006 cat >>confdefs.h
<<_ACEOF
35007 #define LLVM_PREFIX "$LLVM_PREFIX"
35011 cat >>confdefs.h
<<_ACEOF
35012 #define LLVM_BINDIR "$LLVM_BINDIR"
35016 cat >>confdefs.h
<<_ACEOF
35017 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35021 cat >>confdefs.h
<<_ACEOF
35022 #define LLVM_DATADIR "$LLVM_DATADIR"
35026 cat >>confdefs.h
<<_ACEOF
35027 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35031 cat >>confdefs.h
<<_ACEOF
35032 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35036 cat >>confdefs.h
<<_ACEOF
35037 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35041 cat >>confdefs.h
<<_ACEOF
35042 #define LLVM_INFODIR "$LLVM_INFODIR"
35046 cat >>confdefs.h
<<_ACEOF
35047 #define LLVM_MANDIR "$LLVM_MANDIR"
35051 cat >>confdefs.h
<<_ACEOF
35052 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35056 cat >>confdefs.h
<<_ACEOF
35057 #define LLVM_HOSTTRIPLE "$host"
35061 # Determine which bindings to build.
35062 if test "$BINDINGS_TO_BUILD" = auto
; then
35063 BINDINGS_TO_BUILD
=""
35064 if test "x$OCAMLC" != x
-a "x$OCAMLDEP" != x
; then
35065 BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD"
35068 BINDINGS_TO_BUILD
=$BINDINGS_TO_BUILD
35071 # This isn't really configurey, but it avoids having to repeat the list in
35076 # Do any work necessary to ensure that bindings have what they need.
35077 binding_prereqs_failed
=0
35078 for a_binding
in $BINDINGS_TO_BUILD ; do
35079 case "$a_binding" in
35081 if test "x$OCAMLC" = x
; then
35082 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35083 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35084 binding_prereqs_failed
=1
35086 if test "x$OCAMLDEP" = x
; then
35087 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35088 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35089 binding_prereqs_failed
=1
35091 if test "x$OCAMLOPT" = x
; then
35092 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35093 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35095 if test "x$with_ocaml_libdir" != xauto
; then
35096 OCAML_LIBDIR
=$with_ocaml_libdir
35099 ocaml_stdlib
="`"$OCAMLC" -where`"
35100 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35102 # ocaml stdlib is beneath our prefix; use stdlib
35103 OCAML_LIBDIR
=$ocaml_stdlib
35106 # ocaml stdlib is outside our prefix; use libdir/ocaml
35107 OCAML_LIBDIR
=$LLVM_LIBDIR/ocaml
35114 if test "$binding_prereqs_failed" = 1 ; then
35115 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35116 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35117 { (exit 1); exit 1; }; }
35120 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35121 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35122 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35123 echo $ECHO_N "(cached) $ECHO_C" >&6
35126 ac_cpp
='$CXXCPP $CPPFLAGS'
35127 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35128 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35129 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
35131 oldcxxflags
="$CXXFLAGS"
35132 CXXFLAGS
="$CXXFLAGS -fvisibility-inlines-hidden"
35133 cat >conftest.
$ac_ext <<_ACEOF
35136 cat confdefs.h
>>conftest.
$ac_ext
35137 cat >>conftest.
$ac_ext <<_ACEOF
35138 /* end confdefs.h. */
35148 rm -f conftest.
$ac_objext
35149 if { (ac_try
="$ac_compile"
35150 case "(($ac_try" in
35151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35152 *) ac_try_echo=$ac_try;;
35154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35155 (eval "$ac_compile") 2>conftest.er1
35157 grep -v '^ *+' conftest.er1 >conftest.err
35159 cat conftest.err >&5
35160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161 (exit $ac_status); } &&
35162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35163 { (case "(($ac_try" in
35164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35165 *) ac_try_echo
=$ac_try;;
35167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35168 (eval "$ac_try") 2>&5
35170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); }; } &&
35172 { ac_try
='test -s conftest.$ac_objext'
35173 { (case "(($ac_try" in
35174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35175 *) ac_try_echo=$ac_try;;
35177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35178 (eval "$ac_try") 2>&5
35180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); }; }; then
35182 llvm_cv_cxx_visibility_inlines_hidden=yes
35184 echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35187 llvm_cv_cxx_visibility_inlines_hidden=no
35190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35191 CXXFLAGS="$oldcxxflags"
35193 ac_cpp='$CPP $CPPFLAGS'
35194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35200 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35201 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35202 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35203 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35206 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35211 if test "$llvm_cv_link_use_r" = "yes" ; then
35218 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35219 RDYNAMIC="-Wl,-export-dynamic"
35226 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35228 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35230 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35232 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35234 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35237 ac_config_files="$ac_config_files Makefile.config"
35240 ac_config_files="$ac_config_files llvm.spec"
35243 ac_config_files="$ac_config_files docs/doxygen.cfg"
35246 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35249 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35252 ac_config_commands="$ac_config_commands setup"
35254 ac_config_commands="$ac_config_commands Makefile"
35257 ac_config_commands="$ac_config_commands Makefile.common"
35260 ac_config_commands="$ac_config_commands examples/Makefile"
35263 ac_config_commands="$ac_config_commands lib/Makefile"
35266 ac_config_commands="$ac_config_commands runtime/Makefile"
35269 ac_config_commands="$ac_config_commands test/Makefile"
35272 ac_config_commands="$ac_config_commands test/Makefile.tests"
35275 ac_config_commands="$ac_config_commands unittests/Makefile"
35278 ac_config_commands="$ac_config_commands tools/Makefile"
35281 ac_config_commands="$ac_config_commands utils/Makefile"
35284 ac_config_commands="$ac_config_commands projects/Makefile"
35287 ac_config_commands="$ac_config_commands bindings/Makefile"
35290 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35294 cat >confcache <<\_ACEOF
35295 # This file is a shell script that caches the results of configure
35296 # tests run on this system so they can be shared between configure
35297 # scripts and configure runs, see configure's option --config-cache.
35298 # It is not useful on other systems. If it contains results you don't
35299 # want to keep, you may remove or edit it.
35301 # config.status only pays attention to the cache file if you give it
35302 # the --recheck option to rerun configure.
35304 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
35305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35306 # following values.
35310 # The following way of writing the cache mishandles newlines in values,
35311 # but we know of no workaround that is simple, portable, and efficient.
35312 # So, we kill variables containing newlines.
35313 # Ultrix sh set writes to stderr and can't be redirected directly,
35314 # and sets the high bit in the cache file unless we assign to the vars.
35316 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35317 eval ac_val
=\$
$ac_var
35321 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35322 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35325 _ | IFS | as_nl
) ;; #(
35326 *) $as_unset $ac_var ;;
35332 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35333 *${as_nl}ac_space
=\
*)
35334 # `set' does not quote correctly, so add quotes (double-quote
35335 # substitution turns \\\\ into \\, and sed turns \\ into \).
35338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35341 # `set' quotes correctly as required by POSIX, so do not add quotes.
35342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35355 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
35356 if test -w "$cache_file"; then
35357 test "x$cache_file" != "x/dev/null" &&
35358 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35359 echo "$as_me: updating cache $cache_file" >&6;}
35360 cat confcache
>$cache_file
35362 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35363 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35368 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35369 # Let make expand exec_prefix.
35370 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35372 DEFS
=-DHAVE_CONFIG_H
35376 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35377 # 1. Remove the extension, and $U if already installed.
35378 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35379 ac_i
=`echo "$ac_i" | sed "$ac_script"`
35380 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35381 # will be set to the directory where LIBOBJS objects are built.
35382 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35383 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35385 LIBOBJS
=$ac_libobjs
35387 LTLIBOBJS
=$ac_ltlibobjs
35390 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35391 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35392 Usually this means the macro was only invoked conditionally." >&5
35393 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35394 Usually this means the macro was only invoked conditionally." >&2;}
35395 { (exit 1); exit 1; }; }
35397 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35398 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35399 Usually this means the macro was only invoked conditionally." >&5
35400 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35401 Usually this means the macro was only invoked conditionally." >&2;}
35402 { (exit 1); exit 1; }; }
35405 : ${CONFIG_STATUS=./config.status}
35406 ac_clean_files_save
=$ac_clean_files
35407 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35408 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35409 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35410 cat >$CONFIG_STATUS <<_ACEOF
35412 # Generated by $as_me.
35413 # Run this file to recreate the current configuration.
35414 # Compiler output produced by configure, useful for debugging
35415 # configure, is in config.log if it exists.
35418 ac_cs_recheck=false
35420 SHELL=\${CONFIG_SHELL-$SHELL}
35423 cat >>$CONFIG_STATUS <<\_ACEOF
35424 ## --------------------- ##
35425 ## M4sh Initialization. ##
35426 ## --------------------- ##
35428 # Be Bourne compatible
35429 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
35432 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35433 # is contrary to our usage. Disable this feature.
35434 alias -g '${1+"$@"}'='"$@"'
35435 setopt NO_GLOB_SUBST
35437 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
35439 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
35440 DUALCASE
=1; export DUALCASE
# for MKS sh
35444 # Avoid depending upon Character Ranges.
35445 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35446 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35447 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35448 as_cr_digits
='0123456789'
35449 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35451 # The user is always right.
35452 if test "${PATH_SEPARATOR+set}" != set; then
35453 echo "#! /bin/sh" >conf$$.sh
35454 echo "exit 0" >>conf$$.sh
35456 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
35464 # Support unset when possible.
35465 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35473 # We need space, tab and new line, in precisely that order. Quoting is
35474 # there to prevent editors from complaining about space-tab.
35475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35476 # splitting by setting IFS to empty value.)
35481 # Find who we are. Look in the path if we contain no directory separator.
35483 *[\\/]* ) as_myself
=$0 ;;
35484 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
35485 for as_dir
in $PATH
35488 test -z "$as_dir" && as_dir
=.
35489 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
35495 # We did not find ourselves, most probably we were run as `sh COMMAND'
35496 # in which case we are not to be found in the path.
35497 if test "x$as_myself" = x
; then
35500 if test ! -f "$as_myself"; then
35501 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35502 { (exit 1); exit 1; }
35505 # Work around bugs in pre-3.0 UWIN ksh.
35506 for as_var
in ENV MAIL MAILPATH
35507 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35515 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35516 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35517 LC_TELEPHONE LC_TIME
35519 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35520 eval $as_var=C
; export $as_var
35522 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35526 # Required to use basename.
35527 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35528 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35534 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35535 as_basename
=basename
35541 # Name of the executable.
35542 as_me
=`$as_basename -- "$0" ||
35543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35544 X"$0" : 'X\(//\)$' \| \
35545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35547 sed '/^.*\/\([^/][^/]*\)\/*$/{
35566 as_lineno_1
=$LINENO
35567 as_lineno_2
=$LINENO
35568 test "x$as_lineno_1" != "x$as_lineno_2" &&
35569 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
35571 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35572 # uniformly replaced by the line number. The first 'sed' inserts a
35573 # line-number line after each line using $LINENO; the second 'sed'
35574 # does the real work. The second script uses 'N' to pair each
35575 # line-number line with the line containing $LINENO, and appends
35576 # trailing '-' during substitution so that $LINENO is not a special
35577 # case at line end.
35578 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35579 # scripts with optimization help from Paolo Bonzini. Blame Lee
35580 # E. McMahon (1931-1989) for sed's syntax. :-)
35592 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35595 ' >$as_me.lineno
&&
35596 chmod +x
"$as_me.lineno" ||
35597 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35598 { (exit 1); exit 1; }; }
35600 # Don't try to exec as it changes $[0], causing all sort of problems
35601 # (the dirname of $[0] is not the place where we might find the
35602 # original and so on. Autoconf is especially sensitive to this).
35603 .
"./$as_me.lineno"
35604 # Exit status is that of the last command.
35609 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35615 ECHO_C
= ECHO_N
= ECHO_T
=
35616 case `echo -n x` in
35618 case `echo 'x\c'` in
35619 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35626 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35627 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35633 rm -f conf$$ conf$$.exe conf$$.
file
35634 if test -d conf$$.dir
; then
35635 rm -f conf$$.dir
/conf$$.
file
35641 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35643 # ... but there are two gotchas:
35644 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35645 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35646 # In both cases, we have to default to `cp -p'.
35647 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35649 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35654 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35655 rmdir conf$$.dir
2>/dev
/null
35657 if mkdir
-p .
2>/dev
/null
; then
35660 test -d .
/-p && rmdir .
/-p
35664 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35665 # systems may use methods other than mode bits to determine executability.
35666 cat >conf$$.
file <<_ASEOF
35670 chmod +x conf$$.
file
35671 if test -x conf$$.
file >/dev
/null
2>&1; then
35672 as_executable_p
="test -x"
35678 # Sed expression to map a string onto a valid CPP name.
35679 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35681 # Sed expression to map a string onto a valid variable name.
35682 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35687 # Save the log message, to keep $[0] and so on meaningful, and to
35688 # report actual input values of CONFIG_FILES etc. instead of their
35689 # values after options handling.
35691 This file was extended by llvm $as_me 2.6svn, which was
35692 generated by GNU Autoconf 2.60. Invocation command line was
35694 CONFIG_FILES = $CONFIG_FILES
35695 CONFIG_HEADERS = $CONFIG_HEADERS
35696 CONFIG_LINKS = $CONFIG_LINKS
35697 CONFIG_COMMANDS = $CONFIG_COMMANDS
35700 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35705 cat >>$CONFIG_STATUS <<_ACEOF
35706 # Files that config.status was made for.
35707 config_files="$ac_config_files"
35708 config_headers="$ac_config_headers"
35709 config_commands="$ac_config_commands"
35713 cat >>$CONFIG_STATUS <<\_ACEOF
35715 \`$as_me' instantiates files from templates according to the
35716 current configuration.
35718 Usage: $0 [OPTIONS] [FILE]...
35720 -h, --help print this help, then exit
35721 -V, --version print version number, then exit
35722 -q, --quiet do not print progress messages
35723 -d, --debug don't remove temporary files
35724 --recheck update $as_me by reconfiguring in the same conditions
35725 --file=FILE[:TEMPLATE]
35726 instantiate the configuration file FILE
35727 --header=FILE[:TEMPLATE]
35728 instantiate the configuration header FILE
35730 Configuration files:
35733 Configuration headers:
35736 Configuration commands:
35739 Report bugs to <bug-autoconf@gnu.org>."
35742 cat >>$CONFIG_STATUS <<_ACEOF
35744 llvm config.status 2.6svn
35745 configured by $0, generated by GNU Autoconf 2.60,
35746 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35748 Copyright (C) 2006 Free Software Foundation, Inc.
35749 This config.status script is free software; the Free Software Foundation
35750 gives unlimited permission to copy, distribute and modify it."
35757 cat >>$CONFIG_STATUS <<\_ACEOF
35758 # If no file are specified by the user, then we need to provide default
35759 # value. By we need to know if files were specified by the user.
35765 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35766 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35777 # Handling of the options.
35778 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35780 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35781 echo "$ac_cs_version"; exit ;;
35782 --debug |
--debu |
--deb |
--de |
--d |
-d )
35784 --file |
--fil |
--fi |
--f )
35786 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
35787 ac_need_defaults
=false
;;
35788 --header |
--heade |
--head |
--hea )
35790 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
35791 ac_need_defaults
=false
;;
35793 # Conflict between --help and --header
35794 { echo "$as_me: error: ambiguous option: $1
35795 Try \`$0 --help' for more information." >&2
35796 { (exit 1); exit 1; }; };;
35797 --help |
--hel |
-h )
35798 echo "$ac_cs_usage"; exit ;;
35799 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35800 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35803 # This is an error.
35804 -*) { echo "$as_me: error: unrecognized option: $1
35805 Try \`$0 --help' for more information." >&2
35806 { (exit 1); exit 1; }; } ;;
35808 *) ac_config_targets
="$ac_config_targets $1"
35809 ac_need_defaults
=false
;;
35815 ac_configure_extra_args
=
35817 if $ac_cs_silent; then
35819 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35823 cat >>$CONFIG_STATUS <<_ACEOF
35824 if \$ac_cs_recheck; then
35825 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35826 CONFIG_SHELL=$SHELL
35827 export CONFIG_SHELL
35828 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35832 cat >>$CONFIG_STATUS <<\_ACEOF
35836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35837 ## Running $as_me. ##
35843 cat >>$CONFIG_STATUS <<_ACEOF
35847 llvm_src="${srcdir}"
35851 cat >>$CONFIG_STATUS <<\_ACEOF
35853 # Handling of arguments.
35854 for ac_config_target
in $ac_config_targets
35856 case $ac_config_target in
35857 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35858 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35859 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35860 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35861 "include/llvm/ADT/iterator.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35862 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
35863 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
35864 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
35865 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35866 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35867 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
35868 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
35869 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
35870 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
35871 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
35872 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
35873 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
35874 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
35875 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
35876 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
35877 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
35878 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
35879 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
35880 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35882 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35883 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35884 { (exit 1); exit 1; }; };;
35889 # If the user did not use the arguments to specify the items to instantiate,
35890 # then the envvar interface is used. Set only those that are not.
35891 # We use the long form for the default assignment because of an extremely
35892 # bizarre bug on SunOS 4.1.3.
35893 if $ac_need_defaults; then
35894 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35895 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35896 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35899 # Have a temporary directory for convenience. Make it in the build tree
35900 # simply because there is no reason against having it here, and in addition,
35901 # creating and moving files from /tmp can sometimes cause problems.
35902 # Hook for its removal unless debugging.
35903 # Note that there is a small window in which the directory will not be cleaned:
35904 # after its creation but before its name has been assigned to `$tmp'.
35908 trap 'exit_status=$?
35909 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35911 trap '{ (exit 1); exit 1; }' 1 2 13 15
35913 # Create a (secure) tmp directory for tmp files.
35916 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35917 test -n "$tmp" && test -d "$tmp"
35920 tmp
=.
/conf$$
-$RANDOM
35921 (umask 077 && mkdir
"$tmp")
35924 echo "$me: cannot create a temporary directory in ." >&2
35925 { (exit 1); exit 1; }
35929 # Set up the sed scripts for CONFIG_FILES section.
35932 # No need to generate the scripts if there are no CONFIG_FILES.
35933 # This happens for instance when ./config.status config.h
35934 if test -n "$CONFIG_FILES"; then
35941 for ac_last_try
in false false false false false
:; do
35942 cat >conf$
$subs.
sed <<_ACEOF
35943 SHELL!$SHELL$ac_delim
35944 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35945 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35946 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35947 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35948 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35949 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35950 exec_prefix!$exec_prefix$ac_delim
35951 prefix!$prefix$ac_delim
35952 program_transform_name!$program_transform_name$ac_delim
35953 bindir!$bindir$ac_delim
35954 sbindir!$sbindir$ac_delim
35955 libexecdir!$libexecdir$ac_delim
35956 datarootdir!$datarootdir$ac_delim
35957 datadir!$datadir$ac_delim
35958 sysconfdir!$sysconfdir$ac_delim
35959 sharedstatedir!$sharedstatedir$ac_delim
35960 localstatedir!$localstatedir$ac_delim
35961 includedir!$includedir$ac_delim
35962 oldincludedir!$oldincludedir$ac_delim
35963 docdir!$docdir$ac_delim
35964 infodir!$infodir$ac_delim
35965 htmldir!$htmldir$ac_delim
35966 dvidir!$dvidir$ac_delim
35967 pdfdir!$pdfdir$ac_delim
35968 psdir!$psdir$ac_delim
35969 libdir!$libdir$ac_delim
35970 localedir!$localedir$ac_delim
35971 mandir!$mandir$ac_delim
35972 DEFS!$DEFS$ac_delim
35973 ECHO_C!$ECHO_C$ac_delim
35974 ECHO_N!$ECHO_N$ac_delim
35975 ECHO_T!$ECHO_T$ac_delim
35976 LIBS!$LIBS$ac_delim
35977 build_alias!$build_alias$ac_delim
35978 host_alias!$host_alias$ac_delim
35979 target_alias!$target_alias$ac_delim
35980 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35981 subdirs!$subdirs$ac_delim
35982 build!$build$ac_delim
35983 build_cpu!$build_cpu$ac_delim
35984 build_vendor!$build_vendor$ac_delim
35985 build_os!$build_os$ac_delim
35986 host!$host$ac_delim
35987 host_cpu!$host_cpu$ac_delim
35988 host_vendor!$host_vendor$ac_delim
35989 host_os!$host_os$ac_delim
35990 target!$target$ac_delim
35991 target_cpu!$target_cpu$ac_delim
35992 target_vendor!$target_vendor$ac_delim
35993 target_os!$target_os$ac_delim
35995 LINKALL!$LINKALL$ac_delim
35996 NOLINKALL!$NOLINKALL$ac_delim
35997 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35998 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35999 ARCH!$ARCH$ac_delim
36000 ENDIAN!$ENDIAN$ac_delim
36002 CFLAGS!$CFLAGS$ac_delim
36003 LDFLAGS!$LDFLAGS$ac_delim
36004 CPPFLAGS!$CPPFLAGS$ac_delim
36005 ac_ct_CC!$ac_ct_CC$ac_delim
36006 EXEEXT!$EXEEXT$ac_delim
36007 OBJEXT!$OBJEXT$ac_delim
36009 GREP!$GREP$ac_delim
36010 EGREP!$EGREP$ac_delim
36011 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36012 BUILD_CC!$BUILD_CC$ac_delim
36013 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36014 BUILD_CXX!$BUILD_CXX$ac_delim
36015 CVSBUILD!$CVSBUILD$ac_delim
36016 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36017 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36018 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36019 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36020 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36021 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36023 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36024 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36025 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36026 ENABLE_PIC!$ENABLE_PIC$ac_delim
36027 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36028 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36029 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36030 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36031 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36032 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36033 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36034 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36036 CXXFLAGS!$CXXFLAGS$ac_delim
36037 ac_ct_CXX!$ac_ct_CXX$ac_delim
36039 ifGNUmake!$ifGNUmake$ac_delim
36042 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36044 elif $ac_last_try; then
36045 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36046 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36047 { (exit 1); exit 1; }; }
36049 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36053 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36054 if test -n "$ac_eof"; then
36055 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36056 ac_eof
=`expr $ac_eof + 1`
36059 cat >>$CONFIG_STATUS <<_ACEOF
36060 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36064 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36065 s/^/s,@/; s/!/@,|#_!!_#|/
36068 s/'"$ac_delim"'$/,g/; t
36070 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36071 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36072 rm -f conf$
$subs.
sed
36073 cat >>$CONFIG_STATUS <<_ACEOF
36079 for ac_last_try
in false false false false false
:; do
36080 cat >conf$
$subs.
sed <<_ACEOF
36081 LN_S!$LN_S$ac_delim
36084 DATE!$DATE$ac_delim
36085 FIND!$FIND$ac_delim
36086 MKDIR!$MKDIR$ac_delim
36088 RANLIB!$RANLIB$ac_delim
36092 BINPWD!$BINPWD$ac_delim
36093 GRAPHVIZ!$GRAPHVIZ$ac_delim
36096 NEATO!$NEATO$ac_delim
36097 TWOPI!$TWOPI$ac_delim
36098 CIRCO!$CIRCO$ac_delim
36100 DOTTY!$DOTTY$ac_delim
36101 PERL!$PERL$ac_delim
36102 HAVE_PERL!$HAVE_PERL$ac_delim
36103 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36104 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36105 INSTALL_DATA!$INSTALL_DATA$ac_delim
36106 BZIP2!$BZIP2$ac_delim
36107 DOXYGEN!$DOXYGEN$ac_delim
36108 GROFF!$GROFF$ac_delim
36109 GZIP!$GZIP$ac_delim
36110 POD2HTML!$POD2HTML$ac_delim
36111 POD2MAN!$POD2MAN$ac_delim
36112 RUNTEST!$RUNTEST$ac_delim
36113 TCLSH!$TCLSH$ac_delim
36115 OCAMLC!$OCAMLC$ac_delim
36116 OCAMLOPT!$OCAMLOPT$ac_delim
36117 OCAMLDEP!$OCAMLDEP$ac_delim
36118 OCAMLDOC!$OCAMLDOC$ac_delim
36120 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36121 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36122 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36123 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36124 LIBADD_DL!$LIBADD_DL$ac_delim
36125 ECHO!$ECHO$ac_delim
36127 STRIP!$STRIP$ac_delim
36128 CXXCPP!$CXXCPP$ac_delim
36130 FFLAGS!$FFLAGS$ac_delim
36131 ac_ct_F77!$ac_ct_F77$ac_delim
36132 LIBTOOL!$LIBTOOL$ac_delim
36133 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36134 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36135 LLVMGCC!$LLVMGCC$ac_delim
36136 LLVMGXX!$LLVMGXX$ac_delim
36137 USE_UDIS86!$USE_UDIS86$ac_delim
36138 USE_OPROFILE!$USE_OPROFILE$ac_delim
36139 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36140 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36141 ALLOCA!$ALLOCA$ac_delim
36142 MMAP_FILE!$MMAP_FILE$ac_delim
36143 LLVMCC1!$LLVMCC1$ac_delim
36144 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36145 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36146 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36147 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36148 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36149 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36150 SHLIBEXT!$SHLIBEXT$ac_delim
36151 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36152 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36153 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36154 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36155 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36156 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36157 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36158 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36159 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36160 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36161 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36162 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36163 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36164 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36165 RPATH!$RPATH$ac_delim
36166 RDYNAMIC!$RDYNAMIC$ac_delim
36167 LIBOBJS!$LIBOBJS$ac_delim
36168 LTLIBOBJS!$LTLIBOBJS$ac_delim
36171 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
36173 elif $ac_last_try; then
36174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36175 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36176 { (exit 1); exit 1; }; }
36178 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36182 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36183 if test -n "$ac_eof"; then
36184 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36185 ac_eof
=`expr $ac_eof + 1`
36188 cat >>$CONFIG_STATUS <<_ACEOF
36189 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36193 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36194 s/^/s,@/; s/!/@,|#_!!_#|/
36197 s/'"$ac_delim"'$/,g/; t
36199 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36200 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36201 rm -f conf$
$subs.
sed
36202 cat >>$CONFIG_STATUS <<_ACEOF
36209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36211 # trailing colons and then remove the whole line if VPATH becomes empty
36212 # (actually we leave an empty line to preserve line numbers).
36213 if test "x$srcdir" = x.
; then
36214 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
36215 s/:*\$(srcdir):*/:/
36216 s/:*\${srcdir}:*/:/
36218 s/^\([^=]*=[ ]*\):*/\1/
36224 cat >>$CONFIG_STATUS <<\_ACEOF
36225 fi # test -n "$CONFIG_FILES"
36228 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
36231 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36233 case $ac_mode$ac_tag in
36235 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36236 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36237 { (exit 1); exit 1; }; };;
36238 :[FH
]-) ac_tag
=-:-;;
36239 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36256 -) ac_f
="$tmp/stdin";;
36257 *) # Look for the file first in the build tree, then in the source tree
36258 # (if the path is not absolute). The absolute path cannot be DOS-style,
36259 # because $ac_f cannot contain `:'.
36263 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36265 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36266 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36267 { (exit 1); exit 1; }; };;
36269 ac_file_inputs
="$ac_file_inputs $ac_f"
36272 # Let's still pretend it is `configure' which instantiates (i.e., don't
36273 # use $as_me), people would be surprised to read:
36274 # /* config.h. Generated by config.status. */
36275 configure_input
="Generated from "`IFS=:
36276 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36277 if test x
"$ac_file" != x-
; then
36278 configure_input
="$ac_file. $configure_input"
36279 { echo "$as_me:$LINENO: creating $ac_file" >&5
36280 echo "$as_me: creating $ac_file" >&6;}
36284 *:-:* |
*:-) cat >"$tmp/stdin";;
36289 ac_dir
=`$as_dirname -- "$ac_file" ||
36290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36291 X"$ac_file" : 'X\(//\)[^/]' \| \
36292 X"$ac_file" : 'X\(//\)$' \| \
36293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36299 /^X\(\/\/\)[^/].*/{
36314 -*) as_dir
=.
/$as_dir;;
36316 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36320 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36321 *) as_qdir
=$as_dir;;
36323 as_dirs
="'$as_qdir' $as_dirs"
36324 as_dir
=`$as_dirname -- "$as_dir" ||
36325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36326 X"$as_dir" : 'X\(//\)[^/]' \| \
36327 X"$as_dir" : 'X\(//\)$' \| \
36328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36334 /^X\(\/\/\)[^/].*/{
36347 test -d "$as_dir" && break
36349 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36350 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36351 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36352 { (exit 1); exit 1; }; }; }
36356 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36358 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36359 # A ".." for each directory in $ac_dir_suffix.
36360 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36361 case $ac_top_builddir_sub in
36362 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36363 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36366 ac_abs_top_builddir
=$ac_pwd
36367 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36368 # for backward compatibility:
36369 ac_top_builddir
=$ac_top_build_prefix
36372 .
) # We are building in place.
36374 ac_top_srcdir
=$ac_top_builddir_sub
36375 ac_abs_top_srcdir
=$ac_pwd ;;
36376 [\\/]* | ?
:[\\/]* ) # Absolute name.
36377 ac_srcdir
=$srcdir$ac_dir_suffix;
36378 ac_top_srcdir
=$srcdir
36379 ac_abs_top_srcdir
=$srcdir ;;
36380 *) # Relative name.
36381 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36382 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36383 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36385 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36395 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36396 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36400 cat >>$CONFIG_STATUS <<\_ACEOF
36401 # If the template does not know about datarootdir, expand it.
36402 # FIXME: This hack should be removed a few years after 2.60.
36403 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36405 case `sed -n '/datarootdir/ {
36414 ' $ac_file_inputs` in
36415 *datarootdir
*) ac_datarootdir_seen
=yes;;
36416 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36417 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36418 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36420 cat >>$CONFIG_STATUS <<_ACEOF
36421 ac_datarootdir_hack='
36422 s&@datadir@&$datadir&g
36423 s&@docdir@&$docdir&g
36424 s&@infodir@&$infodir&g
36425 s&@localedir@&$localedir&g
36426 s&@mandir@&$mandir&g
36427 s&\\\${datarootdir}&$datarootdir&g' ;;
36431 # Neutralize VPATH when `$srcdir' = `.'.
36432 # Shell code in configure.ac might set extrasub.
36433 # FIXME: do we really want to maintain this feature?
36434 cat >>$CONFIG_STATUS <<_ACEOF
36438 cat >>$CONFIG_STATUS <<\_ACEOF
36440 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36441 s
&@configure_input@
&$configure_input&;t t
36442 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36443 s
&@srcdir@
&$ac_srcdir&;t t
36444 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36445 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36446 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36447 s
&@builddir@
&$ac_builddir&;t t
36448 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36449 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36450 s
&@INSTALL@
&$ac_INSTALL&;t t
36451 $ac_datarootdir_hack
36452 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
36454 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36455 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
36456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
36457 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36458 which seems to be undefined. Please make sure it is defined." >&5
36459 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36460 which seems to be undefined. Please make sure it is defined." >&2;}
36464 -) cat "$tmp/out"; rm -f "$tmp/out";;
36465 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36474 # Transform confdefs.h into a sed script `conftest.defines', that
36475 # substitutes the proper values into config.h.in to produce config.h.
36476 rm -f conftest.defines conftest.
tail
36477 # First, append a space to every undef/define line, to ease matching.
36478 echo 's/$/ /' >conftest.defines
36479 # Then, protect against being on the right side of a sed subst, or in
36480 # an unquoted here document, in config.status. If some macros were
36481 # called several times there might be several #defines for the same
36482 # symbol, which is useless. But do not sort them, since the last
36483 # AC_DEFINE must be honored.
36484 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
36485 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36486 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36487 # PARAMS is the parameter list in the macro definition--in most cases, it's
36488 # just an empty string.
36489 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36490 ac_dB
='\\)[ (].*,\\1define\\2'
36498 s/^[ ]*#[ ]*define[ ][ ]*//
36503 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36504 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36505 ' >>conftest.defines
36507 # Remove the space that was appended to ease matching.
36508 # Then replace #undef with comments. This is necessary, for
36509 # example, in the case of _POSIX_SOURCE, which is predefined and required
36510 # on some systems where configure will not decide to define it.
36511 # (The regexp can be short, since the line contains either #define or #undef.)
36513 s,^[ #]*u.*,/* & */,' >>conftest.defines
36515 # Break up conftest.defines:
36516 ac_max_sed_lines
=50
36518 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36519 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36520 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36522 ac_in
='$ac_file_inputs'
36523 ac_out
='"$tmp/out1"'
36524 ac_nxt
='"$tmp/out2"'
36528 # Write a here document:
36529 cat >>$CONFIG_STATUS <<_ACEOF
36530 # First, check the format of the line:
36531 cat >"\$tmp/defines.sed" <<\\CEOF
36532 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36533 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36537 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
36539 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36540 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
36541 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
36542 grep . conftest.
tail >/dev
/null ||
break
36543 rm -f conftest.defines
36544 mv conftest.
tail conftest.defines
36546 rm -f conftest.defines conftest.
tail
36548 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36549 cat >>$CONFIG_STATUS <<\_ACEOF
36550 if test x
"$ac_file" != x-
; then
36551 echo "/* $configure_input */" >"$tmp/config.h"
36552 cat "$ac_result" >>"$tmp/config.h"
36553 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
36554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36555 echo "$as_me: $ac_file is unchanged" >&6;}
36558 mv "$tmp/config.h" $ac_file
36561 echo "/* $configure_input */"
36567 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36568 echo "$as_me: executing $ac_file commands" >&6;}
36573 case $ac_file$ac_mode in
36574 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
36575 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
36576 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
36577 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
36578 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
36579 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
36580 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
36581 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
36582 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
36583 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
36584 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
36585 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
36586 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
36587 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
36588 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
36589 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
36590 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
36591 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
36592 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
36593 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
36594 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
36595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
36596 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
36597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
36598 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
36599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
36605 { (exit 0); exit 0; }
36607 chmod +x
$CONFIG_STATUS
36608 ac_clean_files
=$ac_clean_files_save
36611 # configure is writing to config.log, and then calls config.status.
36612 # config.status does its own redirection, appending to config.log.
36613 # Unfortunately, on DOS this fails, as config.log is still kept open
36614 # by configure, so config.status won't be able to write to it; its
36615 # output is simply discarded. So we exec the FD to /dev/null,
36616 # effectively closing config.log, so it can be properly (re)opened and
36617 # appended to by config.status. When coming back to configure, we
36618 # need to make the FD available again.
36619 if test "$no_create" != yes; then
36621 ac_config_status_args
=
36622 test "$silent" = yes &&
36623 ac_config_status_args
="$ac_config_status_args --quiet"
36625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36628 # would make configure fail if this is the last instruction.
36629 $ac_cs_success ||
{ (exit 1); exit 1; }
36633 # CONFIG_SUBDIRS section.
36635 if test "$no_recursion" != yes; then
36637 # Remove --cache-file and --srcdir arguments so they do not pile up.
36638 ac_sub_configure_args
=
36640 eval "set x $ac_configure_args"
36644 if test -n "$ac_prev"; then
36649 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
36650 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
36651 ac_prev
=cache_file
;;
36652 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
36653 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
36656 --config-cache |
-C)
36658 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
36660 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
36662 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
36664 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
36668 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36670 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
36674 # Always prepend --prefix to ensure using the same prefix
36675 # in subdir configurations.
36676 ac_arg
="--prefix=$prefix"
36678 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36680 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
36683 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
36685 # Do not complain, so a configure script can configure whichever
36686 # parts of a large source tree are present.
36687 test -d "$srcdir/$ac_dir" ||
continue
36689 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36690 echo "$as_me:$LINENO: $ac_msg" >&5
36694 -*) as_dir
=.
/$as_dir;;
36696 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36700 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36701 *) as_qdir
=$as_dir;;
36703 as_dirs
="'$as_qdir' $as_dirs"
36704 as_dir
=`$as_dirname -- "$as_dir" ||
36705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36706 X"$as_dir" : 'X\(//\)[^/]' \| \
36707 X"$as_dir" : 'X\(//\)$' \| \
36708 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36714 /^X\(\/\/\)[^/].*/{
36727 test -d "$as_dir" && break
36729 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36730 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36731 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36732 { (exit 1); exit 1; }; }; }
36736 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36738 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36739 # A ".." for each directory in $ac_dir_suffix.
36740 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36741 case $ac_top_builddir_sub in
36742 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36743 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36746 ac_abs_top_builddir
=$ac_pwd
36747 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36748 # for backward compatibility:
36749 ac_top_builddir
=$ac_top_build_prefix
36752 .
) # We are building in place.
36754 ac_top_srcdir
=$ac_top_builddir_sub
36755 ac_abs_top_srcdir
=$ac_pwd ;;
36756 [\\/]* | ?
:[\\/]* ) # Absolute name.
36757 ac_srcdir
=$srcdir$ac_dir_suffix;
36758 ac_top_srcdir
=$srcdir
36759 ac_abs_top_srcdir
=$srcdir ;;
36760 *) # Relative name.
36761 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36762 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36763 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36765 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36770 # Check for guested configure; otherwise get Cygnus style configure.
36771 if test -f "$ac_srcdir/configure.gnu"; then
36772 ac_sub_configure
=$ac_srcdir/configure.gnu
36773 elif test -f "$ac_srcdir/configure"; then
36774 ac_sub_configure
=$ac_srcdir/configure
36775 elif test -f "$ac_srcdir/configure.in"; then
36776 # This should be Cygnus configure.
36777 ac_sub_configure
=$ac_aux_dir/configure
36779 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36780 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36784 # The recursion is here.
36785 if test -n "$ac_sub_configure"; then
36786 # Make the cache file name correct relative to the subdirectory.
36787 case $cache_file in
36788 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36789 *) # Relative name.
36790 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36793 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36794 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36795 # The eval makes quoting arguments work.
36796 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36797 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36798 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36799 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36800 { (exit 1); exit 1; }; }