2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
28 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
29 DUALCASE
=1; export DUALCASE
# for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
251 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
252 DUALCASE
=1; export DUALCASE
# for MKS sh
257 CONFIG_SHELL
=$as_shell
259 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
271 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
272 DUALCASE
=1; export DUALCASE
# for MKS sh
284 as_func_ret_success
() {
287 as_func_ret_failure
() {
292 if as_func_success
; then
296 echo as_func_success failed.
299 if as_func_failure
; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success
; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure
; then
313 echo as_func_ret_failure succeeded.
316 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) ||
{ (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x
; then
341 for as_var
in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no
; then
350 echo This
script requires a shell
more modern than all the
351 echo shells that I found on your system. Please
install a
352 echo modern shell
, or manually run the
script under such a
353 echo shell
if you
do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") ||
{
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system
,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
470 ECHO_C
= ECHO_N
= ECHO_T
=
474 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
481 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
488 rm -f conf$$ conf$$.exe conf$$.
file
489 if test -d conf$$.dir
; then
490 rm -f conf$$.dir
/conf$$.
file
496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
504 elif ln conf$$.
file conf$$
2>/dev
/null
; then
509 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
510 rmdir conf$$.dir
2>/dev
/null
512 if mkdir
-p .
2>/dev
/null
; then
515 test -d .
/-p && rmdir .
/-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.
file <<_ASEOF
526 if test -x conf$$.
file >/dev
/null
2>&1; then
527 as_executable_p
="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL
=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec
; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo
; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo
; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset
; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
586 echo_test_string
=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
606 for dir
in $PATH /usr
/ucb
; do
608 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho
; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL
=/bin
/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
647 SHELL
="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string
=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames
=${tagnames+${tagnames},}CXX
693 tagnames
=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev
/null
6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix
=/usr
/local
707 ac_config_libobj_dir
=.
713 SHELL
=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME
='-llvm-'
718 PACKAGE_VERSION
='2.7svn'
719 PACKAGE_STRING
='llvm 2.7svn'
720 PACKAGE_BUGREPORT
='llvmbugs@cs.uiuc.edu'
722 ac_unique_file
="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default
="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
837 LLVM_COMPACT_SENTINELS
838 ENABLE_EXPENSIVE_CHECKS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
854 ENABLE_LLVMC_DYNAMIC_PLUGINS
901 CONVENIENCE_LTDL_TRUE
902 CONVENIENCE_LTDL_FALSE
943 ENABLE_VISIBILITY_INLINES_HIDDEN
949 ac_precious_vars
='build_alias
963 ac_subdirs_all
='projects/sample
965 projects/llvm-stacker
972 projects/llvm-poolalloc
974 projects/llvm-kernel'
976 # Initialize some variables set by options.
978 ac_init_version
=false
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name
=s
,x
,x
,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir
='${exec_prefix}/bin'
1003 sbindir
='${exec_prefix}/sbin'
1004 libexecdir
='${exec_prefix}/libexec'
1005 datarootdir
='${prefix}/share'
1006 datadir
='${datarootdir}'
1007 sysconfdir
='${prefix}/etc'
1008 sharedstatedir
='${prefix}/com'
1009 localstatedir
='${prefix}/var'
1010 includedir
='${prefix}/include'
1011 oldincludedir
='/usr/include'
1012 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir
='${datarootdir}/info'
1018 libdir
='${exec_prefix}/lib'
1019 localedir
='${datarootdir}/locale'
1020 mandir
='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\
$ac_option
1034 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1044 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1046 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1047 bindir
=$ac_optarg ;;
1049 -build |
--build |
--buil |
--bui |
--bu)
1050 ac_prev
=build_alias
;;
1051 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1052 build_alias
=$ac_optarg ;;
1054 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1055 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1056 ac_prev
=cache_file
;;
1057 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1058 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1059 cache_file
=$ac_optarg ;;
1061 --config-cache |
-C)
1062 cache_file
=config.cache
;;
1064 -datadir |
--datadir |
--datadi |
--datad)
1066 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1067 datadir
=$ac_optarg ;;
1069 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1070 |
--dataroo |
--dataro |
--datar)
1071 ac_prev
=datarootdir
;;
1072 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1073 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1074 datarootdir
=$ac_optarg ;;
1076 -disable-* |
--disable-*)
1077 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1083 eval enable_
$ac_feature=no
;;
1085 -docdir |
--docdir |
--docdi |
--doc |
--do)
1087 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1088 docdir
=$ac_optarg ;;
1090 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1092 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1093 dvidir
=$ac_optarg ;;
1095 -enable-* |
--enable-*)
1096 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1102 eval enable_
$ac_feature=\
$ac_optarg ;;
1104 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1105 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1106 |
--exec |
--exe |
--ex)
1107 ac_prev
=exec_prefix
;;
1108 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1109 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1110 |
--exec=* |
--exe=* |
--ex=*)
1111 exec_prefix
=$ac_optarg ;;
1113 -gas |
--gas |
--ga |
--g)
1114 # Obsolete; use --with-gas.
1117 -help |
--help |
--hel |
--he |
-h)
1118 ac_init_help
=long
;;
1119 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1120 ac_init_help
=recursive
;;
1121 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1122 ac_init_help
=short
;;
1124 -host |
--host |
--hos |
--ho)
1125 ac_prev
=host_alias
;;
1126 -host=* |
--host=* |
--hos=* |
--ho=*)
1127 host_alias
=$ac_optarg ;;
1129 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1131 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1133 htmldir
=$ac_optarg ;;
1135 -includedir |
--includedir |
--includedi |
--included |
--include \
1136 |
--includ |
--inclu |
--incl |
--inc)
1137 ac_prev
=includedir
;;
1138 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1139 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1140 includedir
=$ac_optarg ;;
1142 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1144 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1145 infodir
=$ac_optarg ;;
1147 -libdir |
--libdir |
--libdi |
--libd)
1149 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1150 libdir
=$ac_optarg ;;
1152 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1153 |
--libexe |
--libex |
--libe)
1154 ac_prev
=libexecdir
;;
1155 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1156 |
--libexe=* |
--libex=* |
--libe=*)
1157 libexecdir
=$ac_optarg ;;
1159 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1160 ac_prev
=localedir
;;
1161 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1162 localedir
=$ac_optarg ;;
1164 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1165 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1166 ac_prev
=localstatedir
;;
1167 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1168 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1169 localstatedir
=$ac_optarg ;;
1171 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1173 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1174 mandir
=$ac_optarg ;;
1176 -nfp |
--nfp |
--nf)
1177 # Obsolete; use --without-fp.
1180 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1181 |
--no-cr |
--no-c |
-n)
1184 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1185 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1188 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1189 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1190 |
--oldin |
--oldi |
--old |
--ol |
--o)
1191 ac_prev
=oldincludedir
;;
1192 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1193 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1194 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1195 oldincludedir
=$ac_optarg ;;
1197 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1199 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1200 prefix
=$ac_optarg ;;
1202 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1203 |
--program-pre |
--program-pr |
--program-p)
1204 ac_prev
=program_prefix
;;
1205 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1206 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1207 program_prefix
=$ac_optarg ;;
1209 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1210 |
--program-suf |
--program-su |
--program-s)
1211 ac_prev
=program_suffix
;;
1212 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1213 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1214 program_suffix
=$ac_optarg ;;
1216 -program-transform-name |
--program-transform-name \
1217 |
--program-transform-nam |
--program-transform-na \
1218 |
--program-transform-n |
--program-transform- \
1219 |
--program-transform |
--program-transfor \
1220 |
--program-transfo |
--program-transf \
1221 |
--program-trans |
--program-tran \
1222 |
--progr-tra |
--program-tr |
--program-t)
1223 ac_prev
=program_transform_name
;;
1224 -program-transform-name=* |
--program-transform-name=* \
1225 |
--program-transform-nam=* |
--program-transform-na=* \
1226 |
--program-transform-n=* |
--program-transform-=* \
1227 |
--program-transform=* |
--program-transfor=* \
1228 |
--program-transfo=* |
--program-transf=* \
1229 |
--program-trans=* |
--program-tran=* \
1230 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1231 program_transform_name
=$ac_optarg ;;
1233 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1235 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1236 pdfdir
=$ac_optarg ;;
1238 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1240 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1243 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1244 |
-silent |
--silent |
--silen |
--sile |
--sil)
1247 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1249 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1251 sbindir
=$ac_optarg ;;
1253 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1254 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1255 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1257 ac_prev
=sharedstatedir
;;
1258 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1259 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1260 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1262 sharedstatedir
=$ac_optarg ;;
1264 -site |
--site |
--sit)
1266 -site=* |
--site=* |
--sit=*)
1269 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1271 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1272 srcdir
=$ac_optarg ;;
1274 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1275 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1276 ac_prev
=sysconfdir
;;
1277 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1278 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1279 sysconfdir
=$ac_optarg ;;
1281 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1282 ac_prev
=target_alias
;;
1283 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1284 target_alias
=$ac_optarg ;;
1286 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1289 -version |
--version |
--versio |
--versi |
--vers |
-V)
1290 ac_init_version
=: ;;
1293 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1299 eval with_
$ac_package=\
$ac_optarg ;;
1301 -without-* |
--without-*)
1302 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
1307 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1308 eval with_
$ac_package=no
;;
1311 # Obsolete; use --with-x.
1314 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1315 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1316 ac_prev
=x_includes
;;
1317 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1318 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1319 x_includes
=$ac_optarg ;;
1321 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1322 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1323 ac_prev
=x_libraries
;;
1324 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1325 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1326 x_libraries
=$ac_optarg ;;
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1334 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\
$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 if test -n "$ac_prev"; then
1354 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1359 # Be sure to have absolute directory names.
1360 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val
=\$
$ac_var
1367 [\\/$
]* | ?
:[\\/]* ) continue;;
1368 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1379 target
=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x
; then
1383 if test "x$build_alias" = x
; then
1384 cross_compiling
=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1393 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1395 test "$silent" = yes && exec 6>/dev
/null
1398 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di
=`ls -di .` &&
1400 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted
=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir
=`$as_dirname -- "$0" ||
1413 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
1416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1440 ac_srcdir_defaulted
=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445 { (exit 1); exit 1; }; }
1447 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450 { (exit 1); exit 1; }; }
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1460 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 for ac_var
in $ac_precious_vars; do
1463 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1465 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1476 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1534 --build=BUILD configure
for building on BUILD
[guessed
]
1535 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1536 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1540 if test -n "$ac_init_help"; then
1541 case $ac_init_help in
1542 short | recursive
) echo "Configuration of llvm 2.7svn:";;
1547 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1548 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1549 --enable-optimized Compile with optimizations enabled
(default is NO
)
1550 --enable-profiling Compile with profiling enabled
(default is NO
)
1551 --enable-assertions Compile with assertion checks enabled
(default is
1553 --enable-expensive-checks
1554 Compile with expensive debug checks enabled
(default
1556 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1558 --enable-jit Enable Just In Time Compiling
(default is YES
)
1559 --enable-doxygen Build doxygen documentation
(default is NO
)
1560 --enable-threads Use threads
if available
(default is YES
)
1561 --enable-pic Build LLVM with Position Independent Code
(default
1563 --enable-targets Build specific
host targets
:
1564 all
,host-only
,{target-name
} (default
=all
)
1565 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1567 --enable-bindings Build specific language bindings
:
1568 all
,auto
,none
,{binding-name
} (default
=auto
)
1569 --enable-libffi Check
for the presence of libffi
(default is YES
)
1570 --enable-llvmc-dynamic Link LLVMC dynamically
(default is NO
, unless on
1572 --enable-llvmc-dynamic-plugins
1573 Enable dynamic LLVMC plugins
(default is YES
)
1574 --enable-ltdl-install install libltdl
1575 --enable-shared[=PKGS
] build shared libraries
1577 --enable-static[=PKGS
] build static libraries
1579 --enable-fast-install[=PKGS
]
1580 optimize
for fast installation
1582 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1585 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1586 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1587 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1589 --with-llvmgcc Specify location of llvm-gcc driver
(default
1591 --with-llvmgxx Specify location of llvm-g
++ driver
(default
1593 --with-extra-options Specify additional options to compile LLVM with
1594 --with-ocaml-libdir Specify
install location
for ocaml bindings
(default
1596 --with-binutils-include Specify path to binutils
/include
/ containing
1597 plugin-api.h
file for gold plugin.
1598 --with-tclinclude directory where tcl headers are
1599 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1600 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1602 --with-tags[=TAGS
] include additional configurations
[automatic
]
1603 --with-udis86=<path
> Use udis86 external x86 disassembler library
1604 --with-oprofile=<prefix
>
1605 Tell OProfile
>= 0.9.4 how to symbolize JIT output
1607 Some influential environment variables
:
1608 CC C compiler
command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1611 nonstandard directory
<lib dir
>
1612 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1613 you have headers
in a nonstandard directory
<include dir
>
1615 CXX C
++ compiler
command
1616 CXXFLAGS C
++ compiler flags
1617 CXXCPP C
++ preprocessor
1618 F77 Fortran
77 compiler
command
1619 FFLAGS Fortran
77 compiler flags
1621 Use these variables to override the choices made by
`configure' or to help
1622 it to find libraries and programs with nonstandard names/locations.
1624 Report bugs to <llvmbugs@cs.uiuc.edu>.
1629 if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632 test -d "$ac_dir" || continue
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1652 .) # We are building in place.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1676 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1685 llvm configure 2.7svn
1686 generated by GNU Autoconf 2.60
1688 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1693 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1697 cat >config.log <<_ACEOF
1698 This file contains any messages produced by compilers while
1699 running configure, to aid debugging if configure makes a mistake.
1701 It was created by llvm $as_me 2.7svn, which was
1702 generated by GNU Autoconf 2.60. Invocation command line was
1714 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1715 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1716 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1717 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1718 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1720 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1721 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1723 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1724 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1725 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1726 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1727 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1728 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1729 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 test -z "$as_dir" && as_dir=.
1738 echo "PATH: $as_dir"
1754 # Keep a trace of the command line.
1755 # Strip out --no-create and --no-recursion so they do not pile up.
1756 # Strip out --silent because we don't want to record it for future runs.
1757 # Also quote any args containing shell meta-characters.
1758 # Make two passes to allow for proper duplicate-argument suppression.
1762 ac_must_keep_next=false
1768 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1770 | -silent | --silent | --silen | --sile | --sil)
1773 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1776 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1778 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1779 if test $ac_must_keep_next = true; then
1780 ac_must_keep_next=false # Got value, back to normal.
1783 *=* | --config-cache | -C | -disable-* | --disable-* \
1784 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1785 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1786 | -with-* | --with-* | -without-* | --without-* | --x)
1787 case "$ac_configure_args0 " in
1788 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1791 -* ) ac_must_keep_next=true ;;
1794 ac_configure_args="$ac_configure_args '$ac_arg'"
1799 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1800 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1802 # When interrupted or exit'd, cleanup temporary files, and complete
1803 # config.log. We remove comments because anyway the quotes in there
1804 # would cause problems or look ugly.
1805 # WARNING: Use '\'' to represent an apostrophe within the trap.
1806 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1807 trap 'exit_status=$?
1808 # Save into config.log some information that might help in debugging.
1813 ## ---------------- ##
1814 ## Cache variables. ##
1815 ## ---------------- ##
1818 # The following way of writing the cache mishandles newlines in values,
1820 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1821 eval ac_val=\$$ac_var
1825 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1826 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1829 _ | IFS | as_nl) ;; #(
1830 *) $as_unset $ac_var ;;
1835 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1836 *${as_nl}ac_space=\ *)
1838 "s/'\''/'\''\\\\'\'''\''/g;
1839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1850 ## ----------------- ##
1851 ## Output variables. ##
1852 ## ----------------- ##
1855 for ac_var in $ac_subst_vars
1857 eval ac_val=\$$ac_var
1859 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861 echo "$ac_var='\''$ac_val'\''"
1865 if test -n "$ac_subst_files"; then
1867 ## ------------------- ##
1868 ## File substitutions. ##
1869 ## ------------------- ##
1872 for ac_var in $ac_subst_files
1874 eval ac_val=\$$ac_var
1876 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878 echo "$ac_var='\''$ac_val'\''"
1883 if test -s confdefs.h; then
1893 test "$ac_signal" != 0 &&
1894 echo "$as_me: caught signal $ac_signal"
1895 echo "$as_me: exit $exit_status"
1897 rm -f core *.core core.conftest.* &&
1898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901 for ac_signal in 1 2 13 15; do
1902 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1907 rm -f -r conftest* confdefs.h
1909 # Predefined preprocessor variables.
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_NAME "$PACKAGE_NAME"
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_STRING "$PACKAGE_STRING"
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1936 # Let the site file select an alternate cache file if it wants to.
1937 # Prefer explicitly selected file to automatically selected ones.
1938 if test -n "$CONFIG_SITE"; then
1939 set x "$CONFIG_SITE"
1940 elif test "x$prefix" != xNONE; then
1941 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1943 set x "$ac_default_prefix/share/config.site" \
1944 "$ac_default_prefix/etc/config.site"
1949 if test -r "$ac_site_file"; then
1950 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1951 echo "$as_me: loading site script $ac_site_file" >&6;}
1952 sed 's/^/| /' "$ac_site_file" >&5
1957 if test -r "$cache_file"; then
1958 # Some versions of bash will fail to source /dev/null (special
1959 # files actually), so we avoid doing that.
1960 if test -f "$cache_file"; then
1961 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1962 echo "$as_me: loading cache $cache_file" >&6;}
1964 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1965 *) . "./$cache_file";;
1969 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1970 echo "$as_me: creating cache $cache_file" >&6;}
1974 # Check that the precious variables saved in the cache have kept the same
1976 ac_cache_corrupted=false
1977 for ac_var in $ac_precious_vars; do
1978 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1979 eval ac_new_set=\$ac_env_${ac_var}_set
1980 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1981 eval ac_new_val=\$ac_env_${ac_var}_value
1982 case $ac_old_set,$ac_new_set in
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1985 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1988 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1989 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1990 ac_cache_corrupted=: ;;
1993 if test "x$ac_old_val" != "x$ac_new_val"; then
1994 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1995 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1996 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1997 echo "$as_me: former value
: $ac_old_val" >&2;}
1998 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1999 echo "$as_me: current value
: $ac_new_val" >&2;}
2000 ac_cache_corrupted=:
2003 # Pass precious variables to config.status.
2004 if test "$ac_new_set" = set; then
2006 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2007 *) ac_arg=$ac_var=$ac_new_val ;;
2009 case " $ac_configure_args " in
2010 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2011 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2015 if $ac_cache_corrupted; then
2016 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2017 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2018 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2019 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2020 { (exit 1); exit 1; }; }
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2064 for ac_dir in autoconf "$srcdir"/autoconf; do
2065 if test -f "$ac_dir/install-sh"; then
2067 ac_install_sh="$ac_aux_dir/install-sh -c"
2069 elif test -f "$ac_dir/install.sh"; then
2071 ac_install_sh="$ac_aux_dir/install.sh -c"
2073 elif test -f "$ac_dir/shtool"; then
2075 ac_install_sh="$ac_aux_dir/shtool install -c"
2079 if test -z "$ac_aux_dir"; then
2080 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2081 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2082 { (exit 1); exit 1; }; }
2085 # These three variables are undocumented and unsupported,
2086 # and are intended to be withdrawn in a future Autoconf release.
2087 # They can cause serious problems if a builder's source tree is in a directory
2088 # whose full name contains unusual characters.
2089 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2090 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2091 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2095 if test ${srcdir} != "." ; then
2096 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2097 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2098 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2099 { (exit 1); exit 1; }; }
2103 for i in `ls ${srcdir}/projects
`
2105 if test -d ${srcdir}/projects/${i} ; then
2108 sample) subdirs="$subdirs projects/sample"
2110 privbracket) subdirs="$subdirs projects/privbracket"
2112 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2114 # llvm-test is the old name of the test-suite, kept here for backwards
2116 llvm-test) subdirs="$subdirs projects/llvm-test"
2118 test-suite) subdirs="$subdirs projects/test-suite"
2120 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2122 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2124 llvm-java) subdirs="$subdirs projects/llvm-java"
2126 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2128 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2130 poolalloc) subdirs="$subdirs projects/poolalloc"
2132 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2135 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2136 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: checking build system type" >&5
2150 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160 { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2167 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 echo "${ECHO_T}$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 echo "$as_me: error: invalid value of canonical build" >&2;}
2173 { (exit 1); exit 1; }; };;
2176 ac_save_IFS=$IFS; IFS='-'
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2186 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2189 { echo "$as_me:$LINENO: checking host system type" >&5
2190 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test "x$host_alias" = x; then
2195 ac_cv_host=$ac_cv_build
2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200 { (exit 1); exit 1; }; }
2204 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 echo "${ECHO_T}$ac_cv_host" >&6; }
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 echo "$as_me: error: invalid value of canonical host" >&2;}
2210 { (exit 1); exit 1; }; };;
2213 ac_save_IFS=$IFS; IFS='-'
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2223 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2226 { echo "$as_me:$LINENO: checking target system type" >&5
2227 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test "x$target_alias" = x; then
2232 ac_cv_target=$ac_cv_host
2234 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237 { (exit 1); exit 1; }; }
2241 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 echo "${ECHO_T}$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2245 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 echo "$as_me: error: invalid value of canonical target" >&2;}
2247 { (exit 1); exit 1; }; };;
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2260 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266 test "$program_prefix$program_suffix$program_transform_name" = \
2268 program_prefix=${target_alias}-
2270 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2271 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2272 if test "${llvm_cv_os_type+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="AIX"
2280 llvm_cv_platform_type="Unix" ;;
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="IRIX"
2285 llvm_cv_platform_type="Unix" ;;
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="Cygwin"
2290 llvm_cv_platform_type="Unix" ;;
2292 llvm_cv_link_all_option="-Wl,-all_load"
2293 llvm_cv_no_link_all_option="-Wl,-noall_load"
2294 llvm_cv_os_type="Darwin"
2295 llvm_cv_platform_type="Unix" ;;
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="FreeBSD"
2300 llvm_cv_platform_type="Unix" ;;
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="OpenBSD"
2305 llvm_cv_platform_type="Unix" ;;
2307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309 llvm_cv_os_type="NetBSD"
2310 llvm_cv_platform_type="Unix" ;;
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="DragonFly"
2315 llvm_cv_platform_type="Unix" ;;
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="HP-UX"
2320 llvm_cv_platform_type="Unix" ;;
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="Interix"
2325 llvm_cv_platform_type="Unix" ;;
2327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329 llvm_cv_os_type="Linux"
2330 llvm_cv_platform_type="Unix" ;;
2332 llvm_cv_link_all_option="-Wl,-z,allextract"
2333 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2334 llvm_cv_os_type="SunOS"
2335 llvm_cv_platform_type="Unix" ;;
2337 llvm_cv_link_all_option="-Wl,--whole-archive"
2338 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2339 llvm_cv_os_type="Win32"
2340 llvm_cv_platform_type="Win32" ;;
2342 llvm_cv_link_all_option="-Wl,--whole-archive"
2343 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2344 llvm_cv_os_type="MingW"
2345 llvm_cv_platform_type="Win32" ;;
2347 llvm_cv_link_all_option="-Wl,--whole-archive"
2348 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2349 llvm_cv_os_type="Freestanding"
2350 llvm_cv_platform_type="Unix" ;;
2352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354 llvm_cv_os_type="Freestanding"
2355 llvm_cv_platform_type="Unix" ;;
2357 llvm_cv_link_all_option=""
2358 llvm_cv_no_link_all_option=""
2359 llvm_cv_os_type="Unknown"
2360 llvm_cv_platform_type="Unknown" ;;
2363 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2364 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2366 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2367 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2368 if test "${llvm_cv_target_os_type+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 llvm_cv_target_os_type="AIX" ;;
2375 llvm_cv_target_os_type="IRIX" ;;
2377 llvm_cv_target_os_type="Cygwin" ;;
2379 llvm_cv_target_os_type="Darwin" ;;
2381 llvm_cv_target_os_type="FreeBSD" ;;
2383 llvm_cv_target_os_type="OpenBSD" ;;
2385 llvm_cv_target_os_type="NetBSD" ;;
2387 llvm_cv_target_os_type="DragonFly" ;;
2389 llvm_cv_target_os_type="HP-UX" ;;
2391 llvm_cv_target_os_type="Interix" ;;
2393 llvm_cv_target_os_type="Linux" ;;
2395 llvm_cv_target_os_type="SunOS" ;;
2397 llvm_cv_target_os_type="Win32" ;;
2399 llvm_cv_target_os_type="MingW" ;;
2401 llvm_cv_target_os_type="Freestanding" ;;
2403 llvm_cv_target_os_type="Unknown" ;;
2406 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2407 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2409 if test "$llvm_cv_os_type" = "Unknown" ; then
2410 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2411 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2412 { (exit 1); exit 1; }; }
2417 HOST_OS=$llvm_cv_os_type
2419 TARGET_OS=$llvm_cv_target_os_type
2422 LINKALL=$llvm_cv_link_all_option
2424 NOLINKALL=$llvm_cv_no_link_all_option
2427 case $llvm_cv_platform_type in
2430 cat >>confdefs.h <<\_ACEOF
2431 #define LLVM_ON_UNIX 1
2441 cat >>confdefs.h <<\_ACEOF
2442 #define LLVM_ON_WIN32 1
2452 { echo "$as_me:$LINENO: checking target architecture" >&5
2453 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2454 if test "${llvm_cv_target_arch+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 i?86-*) llvm_cv_target_arch="x86" ;;
2459 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2460 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2461 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2462 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2463 arm*-*) llvm_cv_target_arch="ARM" ;;
2464 mips-*) llvm_cv_target_arch="Mips" ;;
2465 pic16-*) llvm_cv_target_arch="PIC16" ;;
2466 xcore-*) llvm_cv_target_arch="XCore" ;;
2467 msp430-*) llvm_cv_target_arch="MSP430" ;;
2468 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2469 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2470 *) llvm_cv_target_arch="Unknown" ;;
2473 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2474 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2476 if test "$llvm_cv_target_arch" = "Unknown" ; then
2477 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2478 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2481 # Determine the LLVM native architecture for the target
2482 case "$llvm_cv_target_arch" in
2483 x86) LLVM_NATIVE_ARCH="X86" ;;
2484 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2485 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2488 ARCH=$llvm_cv_target_arch
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 if test -n "$CC"; then
2526 { echo "$as_me:$LINENO: result: $CC" >&5
2527 echo "${ECHO_T}$CC" >&6; }
2529 { echo "$as_me:$LINENO: result: no" >&5
2530 echo "${ECHO_T}no" >&6; }
2535 if test -z "$ac_cv_prog_CC"; then
2537 # Extract the first word of "gcc", so it can be a program name with args.
2538 set dummy gcc; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 if test -n "$ac_ct_CC"; then
2545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_ac_ct_CC="gcc"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2565 if test -n "$ac_ct_CC"; then
2566 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2567 echo "${ECHO_T}$ac_ct_CC" >&6; }
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2573 if test "x$ac_ct_CC" = x; then
2576 case $cross_compiling:$ac_tool_warned in
2578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2579 whose name does not start with the host triplet. If you think this
2580 configuration is useful to you, please write to autoconf@gnu.org." >&5
2581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2582 whose name does not start with the host triplet. If you think this
2583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2584 ac_tool_warned=yes ;;
2592 if test -z "$CC"; then
2593 if test -n "$ac_tool_prefix"; then
2594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}cc; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_CC="${ac_tool_prefix}cc"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2633 if test -z "$CC"; then
2634 # Extract the first word of "cc", so it can be a program name with args.
2635 set dummy cc; ac_word=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2653 ac_prog_rejected=yes
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 if test $ac_prog_rejected = yes; then
2665 # We found a bogon in the path, so make sure we never use it.
2666 set dummy $ac_cv_prog_CC
2668 if test $# != 0; then
2669 # We chose a different compiler from the bogus one.
2670 # However, it has the same basename, so the bogon will be chosen
2671 # first if we set CC to just the basename; use the full file name.
2673 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2679 if test -n "$CC"; then
2680 { echo "$as_me:$LINENO: result: $CC" >&5
2681 echo "${ECHO_T}$CC" >&6; }
2683 { echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6; }
2689 if test -z "$CC"; then
2690 if test -n "$ac_tool_prefix"; then
2691 for ac_prog in cl.exe
2693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2697 if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test -n "$CC"; then
2722 { echo "$as_me:$LINENO: result: $CC" >&5
2723 echo "${ECHO_T}$CC" >&6; }
2725 { echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6; }
2730 test -n "$CC" && break
2733 if test -z "$CC"; then
2735 for ac_prog in cl.exe
2737 # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 if test -n "$ac_ct_CC"; then
2745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_ac_ct_CC="$ac_prog"
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2767 echo "${ECHO_T}$ac_ct_CC" >&6; }
2769 { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2774 test -n "$ac_ct_CC" && break
2777 if test "x$ac_ct_CC" = x; then
2780 case $cross_compiling:$ac_tool_warned in
2782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2783 whose name does not start with the host triplet. If you think this
2784 configuration is useful to you, please write to autoconf@gnu.org." >&5
2785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2786 whose name does not start with the host triplet. If you think this
2787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2788 ac_tool_warned=yes ;;
2797 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2798 See \`config.log
' for more details." >&5
2799 echo "$as_me: error: no acceptable C compiler found in \$PATH
2800 See \`config.log' for more details.
" >&2;}
2801 { (exit 1); exit 1; }; }
2803 # Provide some information about the compiler.
2804 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2805 ac_compiler=`set X $ac_compile; echo $2`
2806 { (ac_try="$ac_compiler --version >&5"
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compiler --version >&5") 2>&5
2814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2815 (exit $ac_status); }
2816 { (ac_try="$ac_compiler -v >&5"
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_compiler -v >&5") 2>&5
2824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2825 (exit $ac_status); }
2826 { (ac_try="$ac_compiler -V >&5"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compiler -V >&5") 2>&5
2834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2835 (exit $ac_status); }
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2852 ac_clean_files_save=$ac_clean_files
2853 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2854 # Try to create an executable without -o first, disregard a.out.
2855 # It will help us diagnose broken compilers, and finding out an intuition
2857 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2858 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2859 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2861 # List of possible output files, starting from the most likely.
2862 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2863 # only as a last resort. b.out is created by i960 compilers.
2864 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2866 # The IRIX 6 linker writes into existing files which may not be
2867 # executable, retaining their permissions. Remove them first so a
2868 # subsequent execution test works.
2870 for ac_file in $ac_files
2873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2874 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2879 if { (ac_try="$ac_link_default"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_link_default") 2>&5
2887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2888 (exit $ac_status); }; then
2889 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2890 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2891 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2892 # so that the user can short-circuit this test for compilers unknown to
2894 for ac_file in $ac_files
2896 test -f "$ac_file" || continue
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2901 # We found the default executable, but exeext='' is most
2905 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2907 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2909 # We set ac_cv_exeext here because the later test for it is not
2910 # safe: cross compilers may not add the suffix if given an `-o'
2911 # argument, so we may need to know it at that point already.
2912 # Even if this section looks crufty: it has the advantage of
2919 test "$ac_cv_exeext" = no && ac_cv_exeext=
2922 echo "$as_me: failed program was
:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2926 See \
`config.log' for more details." >&5
2927 echo "$as_me: error: C compiler cannot create executables
2928 See \`config.log
' for more details." >&2;}
2929 { (exit 77); exit 77; }; }
2932 ac_exeext=$ac_cv_exeext
2933 { echo "$as_me:$LINENO: result: $ac_file" >&5
2934 echo "${ECHO_T}$ac_file" >&6; }
2936 # Check that the compiler produces executables we can run. If not, either
2937 # the compiler is broken, or we cross compile.
2938 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2939 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2940 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2941 # If not cross compiling, check that we can run a simple program.
2942 if test "$cross_compiling" != yes; then
2943 if { ac_try='.
/$ac_file'
2944 { (case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_try") 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2955 if test "$cross_compiling" = maybe; then
2958 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2959 If you meant to cross compile, use \`--host'.
2960 See \
`config.log' for more details." >&5
2961 echo "$as_me: error: cannot run C compiled programs.
2962 If you meant to cross compile, use \`--host'.
2963 See \`config.log' for more details.
" >&2;}
2964 { (exit 1); exit 1; }; }
2968 { echo "$as_me:$LINENO: result
: yes" >&5
2969 echo "${ECHO_T}yes" >&6; }
2971 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2972 ac_clean_files=$ac_clean_files_save
2973 # Check that the compiler produces executables we can run. If not, either
2974 # the compiler is broken, or we cross compile.
2975 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2976 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2977 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2978 echo "${ECHO_T}$cross_compiling" >&6; }
2980 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2981 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2982 if { (ac_try="$ac_link"
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_link") 2>&5
2990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2991 (exit $ac_status); }; then
2992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2993 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2994 # work properly (i.e., refer to `conftest.exe'), while it won't with
2996 for ac_file in conftest.exe conftest conftest.*; do
2997 test -f "$ac_file" || continue
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3007 See \
`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3009 See \`config.log
' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3013 rm -f conftest$ac_cv_exeext
3014 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3015 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3017 rm -f conftest.$ac_ext
3018 EXEEXT=$ac_cv_exeext
3020 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3022 if test "${ac_cv_objext+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 cat >conftest.$ac_ext <<_ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3040 rm -f conftest.o conftest.obj
3041 if { (ac_try="$ac_compile"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 for ac_file in conftest.o conftest.obj conftest.*; do
3052 test -f "$ac_file" || continue;
3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3055 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3060 echo "$as_me: failed program was:" >&5
3061 sed 's
/^
/|
/' conftest.$ac_ext >&5
3063 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3064 See \`config.log' for more details.
" >&5
3065 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3066 See \
`config.log' for more details." >&2;}
3067 { (exit 1); exit 1; }; }
3070 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3072 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3073 echo "${ECHO_T}$ac_cv_objext" >&6; }
3074 OBJEXT=$ac_cv_objext
3076 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3078 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3103 *) ac_try_echo
=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1
>conftest.err
3110 cat conftest.err
>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3126 *) ac_try_echo
=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.
$ac_ext >&5
3141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3142 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3145 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3146 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3147 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3148 ac_test_CFLAGS
=${CFLAGS+set}
3149 ac_save_CFLAGS
=$CFLAGS
3150 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3151 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3152 if test "${ac_cv_prog_cc_g+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 ac_save_c_werror_flag
=$ac_c_werror_flag
3156 ac_c_werror_flag
=yes
3159 cat >conftest.
$ac_ext <<_ACEOF
3162 cat confdefs.h
>>conftest.
$ac_ext
3163 cat >>conftest.
$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3174 rm -f conftest.
$ac_objext
3175 if { (ac_try
="$ac_compile"
3177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3191 *) ac_try_echo
=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try
='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3233 *) ac_try_echo
=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1
>conftest.err
3240 cat conftest.err
>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3244 { (case "(($ac_try" in
3245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (case "(($ac_try" in
3255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3256 *) ac_try_echo
=$ac_try;;
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_try") 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.
$ac_ext >&5
3268 ac_c_werror_flag
=$ac_save_c_werror_flag
3270 cat >conftest.
$ac_ext <<_ACEOF
3273 cat confdefs.h
>>conftest.
$ac_ext
3274 cat >>conftest.
$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3285 rm -f conftest.
$ac_objext
3286 if { (ac_try
="$ac_compile"
3288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300 { (case "(($ac_try" in
3301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3302 *) ac_try_echo
=$ac_try;;
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_try") 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try
='test -s conftest.$ac_objext'
3310 { (case "(($ac_try" in
3311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_try") 2>&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 ac_c_werror_flag=$ac_save_c_werror_flag
3336 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3337 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3338 if test "$ac_test_CFLAGS" = set; then
3339 CFLAGS=$ac_save_CFLAGS
3340 elif test $ac_cv_prog_cc_g = yes; then
3341 if test "$GCC" = yes; then
3347 if test "$GCC" = yes; then
3353 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3354 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3355 if test "${ac_cv_prog_cc_c89+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 ac_cv_prog_cc_c89=no
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3368 #include <sys/types.h>
3369 #include <sys/stat.h>
3370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3371 struct buf { int x; };
3372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3373 static char *e (p, i)
3379 static char *f (char * (*g) (char **, int), char **p, ...)
3384 s = g (p, va_arg (v,int));
3389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3390 function prototypes and stuff, but not '\xHH' hex character constants.
3391 These don't provoke an error unfortunately, instead are silently treated
3392 as 'x'. The following induces an error, until -std is added to get
3393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3394 array size at least. It's necessary to write '\x00'==0 to get something
3395 that's true only with -std. */
3396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3398 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3399 inside strings and character constants. */
3401 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3403 int test (int i, double x);
3404 struct s1 {int (*f) (int a);};
3405 struct s2 {int (*f) (double a);};
3406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3417 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3420 CC="$ac_save_CC $ac_arg"
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3425 *) ac_try_echo
=$ac_try;;
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3430 grep -v '^ *+' conftest.er1
>conftest.err
3432 cat conftest.err
>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3436 { (case "(($ac_try" in
3437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_try") 2>&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (case "(($ac_try" in
3447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3448 *) ac_try_echo
=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_try") 2>&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_prog_cc_c89
=$ac_arg
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.
$ac_ext >&5
3463 rm -f core conftest.err conftest.
$ac_objext
3464 test "x$ac_cv_prog_cc_c89" != "xno" && break
3466 rm -f conftest.
$ac_ext
3471 case "x$ac_cv_prog_cc_c89" in
3473 { echo "$as_me:$LINENO: result: none needed" >&5
3474 echo "${ECHO_T}none needed" >&6; } ;;
3476 { echo "$as_me:$LINENO: result: unsupported" >&5
3477 echo "${ECHO_T}unsupported" >&6; } ;;
3479 CC
="$CC $ac_cv_prog_cc_c89"
3480 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3481 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3486 ac_cpp
='$CPP $CPPFLAGS'
3487 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3493 ac_cpp
='$CPP $CPPFLAGS'
3494 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3497 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3498 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3499 # On Suns, sometimes $CPP names a directory.
3500 if test -n "$CPP" && test -d "$CPP"; then
3503 if test -z "$CPP"; then
3504 if test "${ac_cv_prog_CPP+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 # Double quotes because CPP needs to be expanded
3508 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3511 for ac_c_preproc_warn_flag
in '' yes
3513 # Use a header file that comes with gcc, so configuring glibc
3514 # with a fresh cross-compiler works.
3515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3516 # <limits.h> exists even on freestanding compilers.
3517 # On the NeXT, cc -E runs the code through the compiler's parser,
3518 # not just through cpp. "Syntax error" is here to catch this case.
3519 cat >conftest.
$ac_ext <<_ACEOF
3522 cat confdefs.h
>>conftest.
$ac_ext
3523 cat >>conftest.
$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3526 # include <limits.h>
3528 # include <assert.h>
3532 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev/null; then
3545 if test -s conftest.err; then
3546 ac_cpp_err=$ac_c_preproc_warn_flag
3547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3554 if test -z "$ac_cpp_err"; then
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 # Broken: fails on valid input.
3564 rm -f conftest.err conftest.$ac_ext
3566 # OK, works on sane cases. Now check whether nonexistent headers
3567 # can be detected and how.
3568 cat >conftest.$ac_ext <<_ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #include <ac_nonexistent.h>
3576 if { (ac_try="$ac_cpp conftest.$ac_ext"
3578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3579 *) ac_try_echo
=$ac_try;;
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3584 grep -v '^ *+' conftest.er1
>conftest.err
3586 cat conftest.err
>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } >/dev
/null
; then
3589 if test -s conftest.err
; then
3590 ac_cpp_err
=$ac_c_preproc_warn_flag
3591 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3598 if test -z "$ac_cpp_err"; then
3599 # Broken: success on invalid input.
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.
$ac_ext >&5
3605 # Passes both tests.
3610 rm -f conftest.err conftest.
$ac_ext
3613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3614 rm -f conftest.err conftest.
$ac_ext
3615 if $ac_preproc_ok; then
3627 { echo "$as_me:$LINENO: result: $CPP" >&5
3628 echo "${ECHO_T}$CPP" >&6; }
3630 for ac_c_preproc_warn_flag
in '' yes
3632 # Use a header file that comes with gcc, so configuring glibc
3633 # with a fresh cross-compiler works.
3634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3635 # <limits.h> exists even on freestanding compilers.
3636 # On the NeXT, cc -E runs the code through the compiler's parser,
3637 # not just through cpp. "Syntax error" is here to catch this case.
3638 cat >conftest.
$ac_ext <<_ACEOF
3641 cat confdefs.h
>>conftest.
$ac_ext
3642 cat >>conftest.
$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3645 # include <limits.h>
3647 # include <assert.h>
3651 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null; then
3664 if test -s conftest.err; then
3665 ac_cpp_err=$ac_c_preproc_warn_flag
3666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3673 if test -z "$ac_cpp_err"; then
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 # Broken: fails on valid input.
3683 rm -f conftest.err conftest.$ac_ext
3685 # OK, works on sane cases. Now check whether nonexistent headers
3686 # can be detected and how.
3687 cat >conftest.$ac_ext <<_ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693 #include <ac_nonexistent.h>
3695 if { (ac_try="$ac_cpp conftest.$ac_ext"
3697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3698 *) ac_try_echo
=$ac_try;;
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3703 grep -v '^ *+' conftest.er1
>conftest.err
3705 cat conftest.err
>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } >/dev
/null
; then
3708 if test -s conftest.err
; then
3709 ac_cpp_err
=$ac_c_preproc_warn_flag
3710 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3717 if test -z "$ac_cpp_err"; then
3718 # Broken: success on invalid input.
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.
$ac_ext >&5
3724 # Passes both tests.
3729 rm -f conftest.err conftest.
$ac_ext
3732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3733 rm -f conftest.err conftest.
$ac_ext
3734 if $ac_preproc_ok; then
3737 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3738 See \`config.log' for more details." >&5
3739 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3740 See \`config.log' for more details." >&2;}
3741 { (exit 1); exit 1; }; }
3745 ac_cpp
='$CPP $CPPFLAGS'
3746 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3751 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3752 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3753 if test "${ac_cv_path_GREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 # Extract the first word of "grep ggrep" to use in msg output
3757 if test -z "$GREP"; then
3758 set dummy
grep ggrep
; ac_prog_name
=$2
3759 if test "${ac_cv_path_GREP+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 ac_path_GREP_found
=false
3763 # Loop through the user's path and test for each of PROGNAME-LIST
3764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3765 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3768 test -z "$as_dir" && as_dir
=.
3769 for ac_prog
in grep ggrep
; do
3770 for ac_exec_ext
in '' $ac_executable_extensions; do
3771 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3772 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3773 # Check for GNU ac_path_GREP and select it if it is found.
3774 # Check for GNU $ac_path_GREP
3775 case `"$ac_path_GREP" --version 2>&1` in
3777 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3780 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3783 cat "conftest.in" "conftest.in" >"conftest.tmp"
3784 mv "conftest.tmp" "conftest.in"
3785 cp "conftest.in" "conftest.nl"
3786 echo 'GREP' >> "conftest.nl"
3787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3788 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3789 ac_count
=`expr $ac_count + 1`
3790 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3791 # Best one so far, save it but keep looking for a better one
3792 ac_cv_path_GREP
="$ac_path_GREP"
3793 ac_path_GREP_max
=$ac_count
3795 # 10*(2^10) chars as input seems more than enough
3796 test $ac_count -gt 10 && break
3798 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3802 $ac_path_GREP_found && break 3
3812 GREP
="$ac_cv_path_GREP"
3813 if test -z "$GREP"; then
3814 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3815 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3816 { (exit 1); exit 1; }; }
3820 ac_cv_path_GREP
=$GREP
3825 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3826 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3827 GREP
="$ac_cv_path_GREP"
3830 { echo "$as_me:$LINENO: checking for egrep" >&5
3831 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3832 if test "${ac_cv_path_EGREP+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3836 then ac_cv_path_EGREP
="$GREP -E"
3838 # Extract the first word of "egrep" to use in msg output
3839 if test -z "$EGREP"; then
3840 set dummy
egrep; ac_prog_name
=$2
3841 if test "${ac_cv_path_EGREP+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 ac_path_EGREP_found
=false
3845 # Loop through the user's path and test for each of PROGNAME-LIST
3846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3847 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3850 test -z "$as_dir" && as_dir
=.
3851 for ac_prog
in egrep; do
3852 for ac_exec_ext
in '' $ac_executable_extensions; do
3853 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3854 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3855 # Check for GNU ac_path_EGREP and select it if it is found.
3856 # Check for GNU $ac_path_EGREP
3857 case `"$ac_path_EGREP" --version 2>&1` in
3859 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3862 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3865 cat "conftest.in" "conftest.in" >"conftest.tmp"
3866 mv "conftest.tmp" "conftest.in"
3867 cp "conftest.in" "conftest.nl"
3868 echo 'EGREP' >> "conftest.nl"
3869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3870 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3871 ac_count
=`expr $ac_count + 1`
3872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3873 # Best one so far, save it but keep looking for a better one
3874 ac_cv_path_EGREP
="$ac_path_EGREP"
3875 ac_path_EGREP_max
=$ac_count
3877 # 10*(2^10) chars as input seems more than enough
3878 test $ac_count -gt 10 && break
3880 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3884 $ac_path_EGREP_found && break 3
3894 EGREP
="$ac_cv_path_EGREP"
3895 if test -z "$EGREP"; then
3896 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3897 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3898 { (exit 1); exit 1; }; }
3902 ac_cv_path_EGREP
=$EGREP
3908 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3909 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3910 EGREP
="$ac_cv_path_EGREP"
3913 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3914 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3915 if test "${ac_cv_header_stdc+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 cat >conftest.
$ac_ext <<_ACEOF
3921 cat confdefs.h
>>conftest.
$ac_ext
3922 cat >>conftest.
$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3937 rm -f conftest.
$ac_objext
3938 if { (ac_try
="$ac_compile"
3940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3946 grep -v '^ *+' conftest.er1 >conftest.err
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
3951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3952 { (case "(($ac_try" in
3953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3954 *) ac_try_echo
=$ac_try;;
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_try") 2>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try
='test -s conftest.$ac_objext'
3962 { (case "(($ac_try" in
3963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_try") 2>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 ac_cv_header_stdc=yes
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 ac_cv_header_stdc=no
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 if test $ac_cv_header_stdc = yes; then
3982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3983 cat >conftest.$ac_ext <<_ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 $EGREP "memchr" >/dev/null 2>&1; then
3996 ac_cv_header_stdc=no
4002 if test $ac_cv_header_stdc = yes; then
4003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "free" >/dev/null 2>&1; then
4017 ac_cv_header_stdc=no
4023 if test $ac_cv_header_stdc = yes; then
4024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4025 if test "$cross_compiling" = yes; then
4028 cat >conftest.$ac_ext <<_ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4036 #if ((' ' & 0x0FF) == 0x020)
4037 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4038 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4040 # define ISLOWER(c) \
4041 (('a' <= (c) && (c) <= 'i') \
4042 || ('j' <= (c) && (c) <= 'r') \
4043 || ('s' <= (c) && (c) <= 'z'))
4044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4052 for (i = 0; i < 256; i++)
4053 if (XOR (islower (i), ISLOWER (i))
4054 || toupper (i) != TOUPPER (i))
4059 rm -f conftest$ac_exeext
4060 if { (ac_try="$ac_link"
4062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4063 *) ac_try_echo
=$ac_try;;
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_link") 2>&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4070 { (case "(($ac_try" in
4071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_try") 2>&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4081 echo "$as_me: program exited with status $ac_status" >&5
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4086 ac_cv_header_stdc=no
4088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4094 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4095 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4096 if test $ac_cv_header_stdc = yes; then
4098 cat >>confdefs.h <<\_ACEOF
4099 #define STDC_HEADERS 1
4104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4114 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4115 inttypes.h stdint.h unistd.h
4117 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 $ac_includes_default
4131 #include <$ac_header>
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4137 *) ac_try_echo
=$ac_try;;
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1
>conftest.err
4144 cat conftest.err
>&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4148 { (case "(($ac_try" in
4149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4160 *) ac_try_echo
=$ac_try;;
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 eval "$as_ac_Header=yes"
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.
$ac_ext >&5
4172 eval "$as_ac_Header=no"
4175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4177 ac_res
=`eval echo '${'$as_ac_Header'}'`
4178 { echo "$as_me:$LINENO: result: $ac_res" >&5
4179 echo "${ECHO_T}$ac_res" >&6; }
4180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4181 cat >>confdefs.h
<<_ACEOF
4182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4190 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4191 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4192 if test "${ac_cv_c_bigendian+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 # See if sys/param.h defines the BYTE_ORDER macro.
4196 cat >conftest.
$ac_ext <<_ACEOF
4199 cat confdefs.h
>>conftest.
$ac_ext
4200 cat >>conftest.
$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 #include <sys/types.h>
4203 #include <sys/param.h>
4208 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4216 rm -f conftest.
$ac_objext
4217 if { (ac_try
="$ac_compile"
4219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_compile") 2>conftest.er1
4225 grep -v '^ *+' conftest.er1 >conftest.err
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4233 *) ac_try_echo
=$ac_try;;
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try
='test -s conftest.$ac_objext'
4241 { (case "(($ac_try" in
4242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 # It does; now see whether it defined to BIG_ENDIAN or not.
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 #include <sys/types.h>
4258 #include <sys/param.h>
4263 #if BYTE_ORDER != BIG_ENDIAN
4271 rm -f conftest.$ac_objext
4272 if { (ac_try="$ac_compile"
4274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4275 *) ac_try_echo
=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4280 grep -v '^ *+' conftest.er1
>conftest.err
4282 cat conftest.err
>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4286 { (case "(($ac_try" in
4287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4305 ac_cv_c_bigendian
=yes
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.
$ac_ext >&5
4310 ac_cv_c_bigendian
=no
4313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.
$ac_ext >&5
4318 # It does not; compile a test program.
4319 if test "$cross_compiling" = yes; then
4320 # try to guess the endianness by grepping values into an object file
4321 ac_cv_c_bigendian
=unknown
4322 cat >conftest.
$ac_ext <<_ACEOF
4325 cat confdefs.h
>>conftest.
$ac_ext
4326 cat >>conftest.
$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4329 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4330 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4331 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4332 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4333 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4337 _ascii (); _ebcdic ();
4342 rm -f conftest.
$ac_objext
4343 if { (ac_try
="$ac_compile"
4345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_compile") 2>conftest.er1
4351 grep -v '^ *+' conftest.er1 >conftest.err
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4359 *) ac_try_echo
=$ac_try;;
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try
='test -s conftest.$ac_objext'
4367 { (case "(($ac_try" in
4368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_try") 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4377 ac_cv_c_bigendian=yes
4379 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4380 if test "$ac_cv_c_bigendian" = unknown; then
4381 ac_cv_c_bigendian=no
4383 # finding both strings is unlikely to happen, but who knows?
4384 ac_cv_c_bigendian=unknown
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 cat >conftest.$ac_ext <<_ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4402 $ac_includes_default
4407 /* Are we little or big endian? From Harbison&Steele. */
4411 char c[sizeof (long int)];
4414 return u.c[sizeof (long int) - 1] == 1;
4420 rm -f conftest$ac_exeext
4421 if { (ac_try="$ac_link"
4423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4424 *) ac_try_echo
=$ac_try;;
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_link") 2>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4431 { (case "(($ac_try" in
4432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436 (eval "$ac_try") 2>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 ac_cv_c_bigendian=no
4442 echo "$as_me: program exited with status $ac_status" >&5
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4447 ac_cv_c_bigendian=yes
4449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4458 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4459 case $ac_cv_c_bigendian in
4467 { { echo "$as_me:$LINENO: error: unknown endianness
4468 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4469 echo "$as_me: error: unknown endianness
4470 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4471 { (exit 1); exit 1; }; } ;;
4475 if test "$cross_compiling" = yes; then
4476 LLVM_CROSS_COMPILING=1
4479 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4480 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4481 if test "${ac_cv_build_exeext+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4485 ac_cv_build_exeext=.exe
4487 ac_build_prefix=${build_alias}-
4489 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4490 set dummy ${ac_build_prefix}gcc; ac_word=$2
4491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4493 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 if test -n "$BUILD_CC"; then
4497 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4506 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 BUILD_CC=$ac_cv_prog_BUILD_CC
4517 if test -n "$BUILD_CC"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519 echo "${ECHO_T}$BUILD_CC" >&6; }
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4526 if test -z "$BUILD_CC"; then
4527 # Extract the first word of "gcc", so it can be a program name with args.
4528 set dummy gcc; ac_word=$2
4529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 if test -n "$BUILD_CC"; then
4535 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_BUILD_CC="gcc"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 BUILD_CC=$ac_cv_prog_BUILD_CC
4555 if test -n "$BUILD_CC"; then
4556 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4557 echo "${ECHO_T}$BUILD_CC" >&6; }
4559 { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4564 if test -z "$BUILD_CC"; then
4565 # Extract the first word of "cc", so it can be a program name with args.
4566 set dummy cc; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -n "$BUILD_CC"; then
4573 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4584 ac_prog_rejected=yes
4587 ac_cv_prog_BUILD_CC="cc"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 if test $ac_prog_rejected = yes; then
4596 # We found a bogon in the path, so make sure we never use it.
4597 set dummy $ac_cv_prog_BUILD_CC
4599 if test $# != 0; then
4600 # We chose a different compiler from the bogus one.
4601 # However, it has the same basename, so the bogon will be chosen
4602 # first if we set BUILD_CC to just the basename; use the full file name.
4604 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4609 BUILD_CC=$ac_cv_prog_BUILD_CC
4610 if test -n "$BUILD_CC"; then
4611 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4612 echo "${ECHO_T}$BUILD_CC" >&6; }
4614 { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4621 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4622 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4623 { (exit 1); exit 1; }; }
4624 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4626 echo 'int main () { return 0; }' > conftest.$ac_ext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4629 (eval $ac_build_link) 2>&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; then
4633 for file in conftest.*; do
4635 *.c | *.o | *.obj | *.dSYM) ;;
4636 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4640 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4641 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4642 { (exit 1); exit 1; }; }
4645 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4650 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4651 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4652 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4653 ac_build_exeext=$BUILD_EXEEXT
4655 ac_build_prefix=${build_alias}-
4656 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4657 set dummy ${ac_build_prefix}g++; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -n "$BUILD_CXX"; then
4664 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4684 if test -n "$BUILD_CXX"; then
4685 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4686 echo "${ECHO_T}$BUILD_CXX" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4693 if test -z "$BUILD_CXX"; then
4694 # Extract the first word of "g++", so it can be a program name with args.
4695 set dummy g++; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 if test -n "$BUILD_CXX"; then
4702 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_BUILD_CXX="g++"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4722 if test -n "$BUILD_CXX"; then
4723 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4724 echo "${ECHO_T}$BUILD_CXX" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 if test -z "$BUILD_CXX"; then
4732 # Extract the first word of "c++", so it can be a program name with args.
4733 set dummy c++; ac_word=$2
4734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 if test -n "$BUILD_CXX"; then
4740 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4751 ac_prog_rejected=yes
4754 ac_cv_prog_BUILD_CXX="c++"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 if test $ac_prog_rejected = yes; then
4763 # We found a bogon in the path, so make sure we never use it.
4764 set dummy $ac_cv_prog_BUILD_CXX
4766 if test $# != 0; then
4767 # We chose a different compiler from the bogus one.
4768 # However, it has the same basename, so the bogon will be chosen
4769 # first if we set BUILD_CXX to just the basename; use the full file name.
4771 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4776 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4777 if test -n "$BUILD_CXX"; then
4778 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4779 echo "${ECHO_T}$BUILD_CXX" >&6; }
4781 { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4789 LLVM_CROSS_COMPILING=0
4793 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4804 # Check whether --enable-optimized was given.
4805 if test "${enable_optimized+set}" = set; then
4806 enableval=$enable_optimized;
4811 if test ${enableval} = "no" ; then
4815 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4819 # Check whether --enable-profiling was given.
4820 if test "${enable_profiling+set}" = set; then
4821 enableval=$enable_profiling;
4826 if test ${enableval} = "no" ; then
4830 ENABLE_PROFILING=ENABLE_PROFILING=1
4834 # Check whether --enable-assertions was given.
4835 if test "${enable_assertions+set}" = set; then
4836 enableval=$enable_assertions;
4841 if test ${enableval} = "yes" ; then
4845 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4849 if test ${ENABLE_OPTIMIZED},${DISABLE_ASSERTIONS} = "ENABLE_OPTIMIZED=1,DISABLE_ASSERTIONS=1" ; then
4850 LLVM_COMPACT_SENTINELS=1
4853 LLVM_COMPACT_SENTINELS=0
4858 cat >>confdefs.h <<_ACEOF
4859 #define LLVM_COMPACT_SENTINELS $LLVM_COMPACT_SENTINELS
4864 # Check whether --enable-expensive-checks was given.
4865 if test "${enable_expensive_checks+set}" = set; then
4866 enableval=$enable_expensive_checks;
4871 if test ${enableval} = "yes" ; then
4872 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4874 EXPENSIVE_CHECKS=yes
4877 ENABLE_EXPENSIVE_CHECKS=
4883 # Check whether --enable-debug-runtime was given.
4884 if test "${enable_debug_runtime+set}" = set; then
4885 enableval=$enable_debug_runtime;
4890 if test ${enableval} = "no" ; then
4894 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4898 # Check whether --enable-jit was given.
4899 if test "${enable_jit+set}" = set; then
4900 enableval=$enable_jit;
4905 if test ${enableval} = "no"
4910 case "$llvm_cv_target_arch" in
4911 x86) TARGET_HAS_JIT=1
4913 Sparc) TARGET_HAS_JIT=0
4915 PowerPC) TARGET_HAS_JIT=1
4917 x86_64) TARGET_HAS_JIT=1
4919 Alpha) TARGET_HAS_JIT=1
4921 ARM) TARGET_HAS_JIT=0
4923 Mips) TARGET_HAS_JIT=0
4925 PIC16) TARGET_HAS_JIT=0
4927 XCore) TARGET_HAS_JIT=0
4929 MSP430) TARGET_HAS_JIT=0
4931 SystemZ) TARGET_HAS_JIT=0
4933 Blackfin) TARGET_HAS_JIT=0
4940 # Check whether --enable-doxygen was given.
4941 if test "${enable_doxygen+set}" = set; then
4942 enableval=$enable_doxygen;
4947 case "$enableval" in
4948 yes) ENABLE_DOXYGEN=1
4950 no) ENABLE_DOXYGEN=0
4952 default) ENABLE_DOXYGEN=0
4954 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4955 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4956 { (exit 1); exit 1; }; } ;;
4959 # Check whether --enable-threads was given.
4960 if test "${enable_threads+set}" = set; then
4961 enableval=$enable_threads;
4966 case "$enableval" in
4967 yes) ENABLE_THREADS=1
4969 no) ENABLE_THREADS=0
4971 default) ENABLE_THREADS=1
4973 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4974 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4978 cat >>confdefs.h <<_ACEOF
4979 #define ENABLE_THREADS $ENABLE_THREADS
4983 # Check whether --enable-pic was given.
4984 if test "${enable_pic+set}" = set; then
4985 enableval=$enable_pic;
4990 case "$enableval" in
4995 default) ENABLE_PIC=1
4997 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4998 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5002 cat >>confdefs.h <<_ACEOF
5003 #define ENABLE_PIC $ENABLE_PIC
5008 # Check whether --enable-targets was given.
5009 if test "${enable_targets+set}" = set; then
5010 enableval=$enable_targets;
5015 case "$enableval" in
5016 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5018 case "$llvm_cv_target_arch" in
5019 x86) TARGETS_TO_BUILD="X86" ;;
5020 x86_64) TARGETS_TO_BUILD="X86" ;;
5021 Sparc) TARGETS_TO_BUILD="Sparc" ;;
5022 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
5023 Alpha) TARGETS_TO_BUILD="Alpha" ;;
5024 ARM) TARGETS_TO_BUILD="ARM" ;;
5025 Mips) TARGETS_TO_BUILD="Mips" ;;
5026 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
5027 PIC16) TARGETS_TO_BUILD="PIC16" ;;
5028 XCore) TARGETS_TO_BUILD="XCore" ;;
5029 MSP430) TARGETS_TO_BUILD="MSP430" ;;
5030 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
5031 Blackfin) TARGETS_TO_BUILD="Blackfin" ;;
5032 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5033 echo "$as_me: error: Can not set target to build" >&2;}
5034 { (exit 1); exit 1; }; } ;;
5037 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5039 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5040 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5041 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5042 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5043 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5044 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5045 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5046 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5047 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5048 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5049 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5050 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5051 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5052 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5053 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5054 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5055 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5056 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5057 { (exit 1); exit 1; }; } ;;
5062 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5065 # Determine whether we are building LLVM support for the native architecture.
5066 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5067 for a_target in $TARGETS_TO_BUILD; do
5068 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5069 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5071 cat >>confdefs.h <<_ACEOF
5072 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5078 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5079 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5080 LLVM_ENUM_TARGETS=""
5081 LLVM_ENUM_ASM_PRINTERS=""
5082 LLVM_ENUM_ASM_PARSERS=""
5083 for target_to_build in $TARGETS_TO_BUILD; do
5084 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5085 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5086 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5088 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5089 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5096 # Check whether --enable-cbe-printf-a was given.
5097 if test "${enable_cbe_printf_a+set}" = set; then
5098 enableval=$enable_cbe_printf_a;
5103 case "$enableval" in
5104 yes) ENABLE_CBE_PRINTF_A=1
5106 no) ENABLE_CBE_PRINTF_A=0
5108 default) ENABLE_CBE_PRINTF_A=1
5110 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5111 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5112 { (exit 1); exit 1; }; } ;;
5115 cat >>confdefs.h <<_ACEOF
5116 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5121 # Check whether --with-llvmgccdir was given.
5122 if test "${with_llvmgccdir+set}" = set; then
5123 withval=$with_llvmgccdir;
5129 default) WITH_LLVMGCCDIR=default ;;
5130 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5131 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5132 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5133 { (exit 1); exit 1; }; } ;;
5137 # Check whether --with-llvmgcc was given.
5138 if test "${with_llvmgcc+set}" = set; then
5139 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5145 # Check whether --with-llvmgxx was given.
5146 if test "${with_llvmgxx+set}" = set; then
5147 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5152 if test -n "$LLVMGCC"; then
5153 LLVMGCCCOMMAND="$LLVMGCC"
5156 if test -n "$LLVMGXX"; then
5157 LLVMGXXCOMMAND="$LLVMGXX"
5160 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5161 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5162 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5163 { (exit 1); exit 1; }; };
5166 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5167 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5168 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5169 { (exit 1); exit 1; }; };
5173 # Check whether --with-extra-options was given.
5174 if test "${with_extra_options+set}" = set; then
5175 withval=$with_extra_options;
5181 default) EXTRA_OPTIONS= ;;
5182 *) EXTRA_OPTIONS=$withval ;;
5184 EXTRA_OPTIONS=$EXTRA_OPTIONS
5187 # Check whether --enable-bindings was given.
5188 if test "${enable_bindings+set}" = set; then
5189 enableval=$enable_bindings;
5194 BINDINGS_TO_BUILD=""
5195 case "$enableval" in
5196 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5197 all ) BINDINGS_TO_BUILD="ocaml" ;;
5198 none | no) BINDINGS_TO_BUILD="" ;;
5199 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5200 case "$a_binding" in
5201 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5202 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5203 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5211 # Check whether --with-ocaml-libdir was given.
5212 if test "${with_ocaml_libdir+set}" = set; then
5213 withval=$with_ocaml_libdir;
5219 auto) with_ocaml_libdir="$withval" ;;
5220 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5221 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5222 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5227 # Check whether --with-binutils-include was given.
5228 if test "${with_binutils_include+set}" = set; then
5229 withval=$with_binutils_include;
5235 default) WITH_BINUTILS_INCDIR=default ;;
5236 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5237 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5238 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5241 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5242 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5244 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5245 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5246 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5247 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5248 { (exit 1); exit 1; }; };
5252 # Check whether --enable-libffi was given.
5253 if test "${enable_libffi+set}" = set; then
5254 enableval=$enable_libffi;
5259 case "$enableval" in
5260 yes) llvm_cv_enable_libffi="yes" ;;
5261 no) llvm_cv_enable_libffi="no" ;;
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 if test "$llvm_cv_os_type" = "Win32" ; then
5273 # Check whether --enable-llvmc-dynamic was given.
5274 if test "${enable_llvmc_dynamic+set}" = set; then
5275 enableval=$enable_llvmc_dynamic;
5277 enableval=$llvmc_dynamic
5280 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5281 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5284 ENABLE_LLVMC_DYNAMIC=
5288 # Check whether --enable-llvmc-dynamic-plugins was given.
5289 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5290 enableval=$enable_llvmc_dynamic_plugins;
5295 if test ${enableval} = "yes" ; then
5296 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5299 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5315 if test -z "$CPP"; then
5316 if test "${ac_cv_prog_CPP+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 # Double quotes because CPP needs to be expanded
5320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5323 for ac_c_preproc_warn_flag in '' yes
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5338 # include <limits.h>
5340 # include <assert.h>
5344 if { (ac_try="$ac_cpp conftest.$ac_ext"
5346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5347 *) ac_try_echo
=$ac_try;;
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5352 grep -v '^ *+' conftest.er1
>conftest.err
5354 cat conftest.err
>&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } >/dev
/null
; then
5357 if test -s conftest.err
; then
5358 ac_cpp_err
=$ac_c_preproc_warn_flag
5359 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5366 if test -z "$ac_cpp_err"; then
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.
$ac_ext >&5
5372 # Broken: fails on valid input.
5376 rm -f conftest.err conftest.
$ac_ext
5378 # OK, works on sane cases. Now check whether nonexistent headers
5379 # can be detected and how.
5380 cat >conftest.
$ac_ext <<_ACEOF
5383 cat confdefs.h
>>conftest.
$ac_ext
5384 cat >>conftest.
$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <ac_nonexistent.h>
5388 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5396 grep -v '^ *+' conftest.er1 >conftest.err
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } >/dev/null; then
5401 if test -s conftest.err; then
5402 ac_cpp_err=$ac_c_preproc_warn_flag
5403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5410 if test -z "$ac_cpp_err"; then
5411 # Broken: success on invalid input.
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 # Passes both tests.
5422 rm -f conftest.err conftest.$ac_ext
5425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5426 rm -f conftest.err conftest.
$ac_ext
5427 if $ac_preproc_ok; then
5439 { echo "$as_me:$LINENO: result: $CPP" >&5
5440 echo "${ECHO_T}$CPP" >&6; }
5442 for ac_c_preproc_warn_flag
in '' yes
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat >conftest.
$ac_ext <<_ACEOF
5453 cat confdefs.h
>>conftest.
$ac_ext
5454 cat >>conftest.
$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5457 # include <limits.h>
5459 # include <assert.h>
5463 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5471 grep -v '^ *+' conftest.er1 >conftest.err
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } >/dev/null; then
5476 if test -s conftest.err; then
5477 ac_cpp_err=$ac_c_preproc_warn_flag
5478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5485 if test -z "$ac_cpp_err"; then
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 # Broken: fails on valid input.
5495 rm -f conftest.err conftest.$ac_ext
5497 # OK, works on sane cases. Now check whether nonexistent headers
5498 # can be detected and how.
5499 cat >conftest.$ac_ext <<_ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 #include <ac_nonexistent.h>
5507 if { (ac_try="$ac_cpp conftest.$ac_ext"
5509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5510 *) ac_try_echo
=$ac_try;;
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5515 grep -v '^ *+' conftest.er1
>conftest.err
5517 cat conftest.err
>&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } >/dev
/null
; then
5520 if test -s conftest.err
; then
5521 ac_cpp_err
=$ac_c_preproc_warn_flag
5522 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5529 if test -z "$ac_cpp_err"; then
5530 # Broken: success on invalid input.
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.
$ac_ext >&5
5536 # Passes both tests.
5541 rm -f conftest.err conftest.
$ac_ext
5544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5545 rm -f conftest.err conftest.
$ac_ext
5546 if $ac_preproc_ok; then
5549 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5552 See \`config.log' for more details." >&2;}
5553 { (exit 1); exit 1; }; }
5557 ac_cpp
='$CPP $CPPFLAGS'
5558 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5563 ac_cpp
='$CPP $CPPFLAGS'
5564 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5567 if test -n "$ac_tool_prefix"; then
5570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5571 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5574 if test "${ac_cv_prog_CC+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 if test -n "$CC"; then
5578 ac_cv_prog_CC
="$CC" # Let the user override the test.
5580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir
=.
5585 for ac_exec_ext
in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 if test -n "$CC"; then
5599 { echo "$as_me:$LINENO: result: $CC" >&5
5600 echo "${ECHO_T}$CC" >&6; }
5602 { echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6; }
5607 test -n "$CC" && break
5610 if test -z "$CC"; then
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615 set dummy
$ac_prog; ac_word
=$2
5616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 if test -n "$ac_ct_CC"; then
5622 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5628 test -z "$as_dir" && as_dir
=.
5629 for ac_exec_ext
in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_CC
="$ac_prog"
5632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5642 if test -n "$ac_ct_CC"; then
5643 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5644 echo "${ECHO_T}$ac_ct_CC" >&6; }
5646 { echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6; }
5651 test -n "$ac_ct_CC" && break
5654 if test "x$ac_ct_CC" = x
; then
5657 case $cross_compiling:$ac_tool_warned in
5659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5660 whose name does not start with the host triplet. If you think this
5661 configuration is useful to you, please write to autoconf@gnu.org." >&5
5662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5663 whose name does not start with the host triplet. If you think this
5664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5665 ac_tool_warned
=yes ;;
5672 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5673 See \`config.log' for more details." >&5
5674 echo "$as_me: error: no acceptable C compiler found in \$PATH
5675 See \`config.log' for more details." >&2;}
5676 { (exit 1); exit 1; }; }
5678 # Provide some information about the compiler.
5679 echo "$as_me:$LINENO: checking for C compiler version" >&5
5680 ac_compiler
=`set X $ac_compile; echo $2`
5681 { (ac_try
="$ac_compiler --version >&5"
5683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compiler --version >&5") 2>&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }
5691 { (ac_try="$ac_compiler -v >&5"
5693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5694 *) ac_try_echo
=$ac_try;;
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_compiler -v >&5") 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }
5701 { (ac_try
="$ac_compiler -V >&5"
5703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compiler -V >&5") 2>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }
5712 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 cat >conftest.$ac_ext <<_ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5735 rm -f conftest.$ac_objext
5736 if { (ac_try="$ac_compile"
5738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5739 *) ac_try_echo
=$ac_try;;
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5744 grep -v '^ *+' conftest.er1
>conftest.err
5746 cat conftest.err
>&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5750 { (case "(($ac_try" in
5751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_try") 2>&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (case "(($ac_try" in
5761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5762 *) ac_try_echo
=$ac_try;;
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_try") 2>&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.
$ac_ext >&5
5777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5778 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5781 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5782 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5783 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5784 ac_test_CFLAGS
=${CFLAGS+set}
5785 ac_save_CFLAGS
=$CFLAGS
5786 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5787 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5788 if test "${ac_cv_prog_cc_g+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 ac_save_c_werror_flag
=$ac_c_werror_flag
5792 ac_c_werror_flag
=yes
5795 cat >conftest.
$ac_ext <<_ACEOF
5798 cat confdefs.h
>>conftest.
$ac_ext
5799 cat >>conftest.
$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5810 rm -f conftest.
$ac_objext
5811 if { (ac_try
="$ac_compile"
5813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_compile") 2>conftest.er1
5819 grep -v '^ *+' conftest.er1 >conftest.err
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5825 { (case "(($ac_try" in
5826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5827 *) ac_try_echo
=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_try") 2>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try
='test -s conftest.$ac_objext'
5835 { (case "(($ac_try" in
5836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_try") 2>&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5869 *) ac_try_echo
=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5874 grep -v '^ *+' conftest.er1
>conftest.err
5876 cat conftest.err
>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5880 { (case "(($ac_try" in
5881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_try") 2>&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; } &&
5889 { ac_try='test -s conftest.$ac_objext'
5890 { (case "(($ac_try" in
5891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5892 *) ac_try_echo
=$ac_try;;
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_try") 2>&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.
$ac_ext >&5
5904 ac_c_werror_flag
=$ac_save_c_werror_flag
5906 cat >conftest.
$ac_ext <<_ACEOF
5909 cat confdefs.h
>>conftest.
$ac_ext
5910 cat >>conftest.
$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5921 rm -f conftest.
$ac_objext
5922 if { (ac_try
="$ac_compile"
5924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compile") 2>conftest.er1
5930 grep -v '^ *+' conftest.er1 >conftest.err
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (case "(($ac_try" in
5937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5938 *) ac_try_echo
=$ac_try;;
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_try") 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try
='test -s conftest.$ac_objext'
5946 { (case "(($ac_try" in
5947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_try") 2>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 ac_c_werror_flag=$ac_save_c_werror_flag
5972 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5973 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5974 if test "$ac_test_CFLAGS" = set; then
5975 CFLAGS=$ac_save_CFLAGS
5976 elif test $ac_cv_prog_cc_g = yes; then
5977 if test "$GCC" = yes; then
5983 if test "$GCC" = yes; then
5989 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5990 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5991 if test "${ac_cv_prog_cc_c89+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 ac_cv_prog_cc_c89=no
5996 cat >conftest.$ac_ext <<_ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6004 #include <sys/types.h>
6005 #include <sys/stat.h>
6006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6007 struct buf { int x; };
6008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6009 static char *e (p, i)
6015 static char *f (char * (*g) (char **, int), char **p, ...)
6020 s = g (p, va_arg (v,int));
6025 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6026 function prototypes and stuff, but not '\xHH' hex character constants.
6027 These don't provoke an error unfortunately, instead are silently treated
6028 as 'x'. The following induces an error, until -std is added to get
6029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6030 array size at least. It's necessary to write '\x00'==0 to get something
6031 that's true only with -std. */
6032 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6034 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6035 inside strings and character constants. */
6037 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6039 int test (int i, double x);
6040 struct s1 {int (*f) (int a);};
6041 struct s2 {int (*f) (double a);};
6042 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6048 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6053 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6054 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6056 CC="$ac_save_CC $ac_arg"
6057 rm -f conftest.$ac_objext
6058 if { (ac_try="$ac_compile"
6060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6061 *) ac_try_echo
=$ac_try;;
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compile") 2>conftest.er1
6066 grep -v '^ *+' conftest.er1
>conftest.err
6068 cat conftest.err
>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072 { (case "(($ac_try" in
6073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_try") 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (case "(($ac_try" in
6083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6084 *) ac_try_echo
=$ac_try;;
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_try") 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_prog_cc_c89
=$ac_arg
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.
$ac_ext >&5
6099 rm -f core conftest.err conftest.
$ac_objext
6100 test "x$ac_cv_prog_cc_c89" != "xno" && break
6102 rm -f conftest.
$ac_ext
6107 case "x$ac_cv_prog_cc_c89" in
6109 { echo "$as_me:$LINENO: result: none needed" >&5
6110 echo "${ECHO_T}none needed" >&6; } ;;
6112 { echo "$as_me:$LINENO: result: unsupported" >&5
6113 echo "${ECHO_T}unsupported" >&6; } ;;
6115 CC
="$CC $ac_cv_prog_cc_c89"
6116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6117 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6122 ac_cpp
='$CPP $CPPFLAGS'
6123 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6128 ac_cpp
='$CXXCPP $CPPFLAGS'
6129 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6132 if test -z "$CXX"; then
6133 if test -n "$CCC"; then
6136 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6140 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_CXX+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 if test -n "$CXX"; then
6147 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir
=.
6154 for ac_exec_ext
in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 if test -n "$CXX"; then
6168 { echo "$as_me:$LINENO: result: $CXX" >&5
6169 echo "${ECHO_T}$CXX" >&6; }
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6176 test -n "$CXX" && break
6179 if test -z "$CXX"; then
6183 # Extract the first word of "$ac_prog", so it can be a program name with args.
6184 set dummy
$ac_prog; ac_word
=$2
6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 if test -n "$ac_ct_CXX"; then
6191 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6197 test -z "$as_dir" && as_dir
=.
6198 for ac_exec_ext
in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6211 if test -n "$ac_ct_CXX"; then
6212 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6213 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6215 { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6220 test -n "$ac_ct_CXX" && break
6223 if test "x$ac_ct_CXX" = x
; then
6226 case $cross_compiling:$ac_tool_warned in
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet. If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet. If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234 ac_tool_warned
=yes ;;
6242 # Provide some information about the compiler.
6243 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6244 ac_compiler
=`set X $ac_compile; echo $2`
6245 { (ac_try
="$ac_compiler --version >&5"
6247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compiler --version >&5") 2>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }
6255 { (ac_try="$ac_compiler -v >&5"
6257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6258 *) ac_try_echo
=$ac_try;;
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_compiler -v >&5") 2>&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }
6265 { (ac_try
="$ac_compiler -V >&5"
6267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compiler -V >&5") 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }
6276 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6277 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6278 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 cat >conftest.$ac_ext <<_ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6303 *) ac_try_echo
=$ac_try;;
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6308 grep -v '^ *+' conftest.er1
>conftest.err
6310 cat conftest.err
>&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6314 { (case "(($ac_try" in
6315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_try") 2>&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (case "(($ac_try" in
6325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6326 *) ac_try_echo
=$ac_try;;
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_try") 2>&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.
$ac_ext >&5
6341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6342 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6345 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6346 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6347 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6348 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6349 ac_save_CXXFLAGS
=$CXXFLAGS
6350 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6351 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6352 if test "${ac_cv_prog_cxx_g+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6356 ac_cxx_werror_flag
=yes
6359 cat >conftest.
$ac_ext <<_ACEOF
6362 cat confdefs.h
>>conftest.
$ac_ext
6363 cat >>conftest.
$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6374 rm -f conftest.
$ac_objext
6375 if { (ac_try
="$ac_compile"
6377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
6383 grep -v '^ *+' conftest.er1 >conftest.err
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6389 { (case "(($ac_try" in
6390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6391 *) ac_try_echo
=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_try") 2>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try
='test -s conftest.$ac_objext'
6399 { (case "(($ac_try" in
6400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_try") 2>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_prog_cxx_g=yes
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6414 cat >conftest.$ac_ext <<_ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6429 rm -f conftest.$ac_objext
6430 if { (ac_try="$ac_compile"
6432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6433 *) ac_try_echo
=$ac_try;;
6435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_compile") 2>conftest.er1
6438 grep -v '^ *+' conftest.er1
>conftest.err
6440 cat conftest.err
>&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6444 { (case "(($ac_try" in
6445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_try") 2>&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try='test -s conftest.$ac_objext'
6454 { (case "(($ac_try" in
6455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6456 *) ac_try_echo
=$ac_try;;
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_try") 2>&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.
$ac_ext >&5
6468 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6470 cat >conftest.
$ac_ext <<_ACEOF
6473 cat confdefs.h
>>conftest.
$ac_ext
6474 cat >>conftest.
$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6485 rm -f conftest.
$ac_objext
6486 if { (ac_try
="$ac_compile"
6488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6494 grep -v '^ *+' conftest.er1 >conftest.err
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
6499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6500 { (case "(($ac_try" in
6501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6502 *) ac_try_echo
=$ac_try;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_try") 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try
='test -s conftest.$ac_objext'
6510 { (case "(($ac_try" in
6511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_try") 2>&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 ac_cv_prog_cxx_g=yes
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6536 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6537 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6538 if test "$ac_test_CXXFLAGS" = set; then
6539 CXXFLAGS=$ac_save_CXXFLAGS
6540 elif test $ac_cv_prog_cxx_g = yes; then
6541 if test "$GXX" = yes; then
6547 if test "$GXX" = yes; then
6554 ac_cpp='$CPP $CPPFLAGS'
6555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6561 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6562 if test "${lt_cv_path_NM+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 if test -n "$NM"; then
6566 # Let the user override the test.
6569 lt_nm_to_check="${ac_tool_prefix}nm"
6570 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6571 lt_nm_to_check="$lt_nm_to_check nm"
6573 for lt_tmp_nm in $lt_nm_to_check; do
6574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6575 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6577 test -z "$ac_dir" && ac_dir=.
6578 tmp_nm="$ac_dir/$lt_tmp_nm"
6579 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6580 # Check to see if the nm accepts a BSD-compat flag.
6581 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6582 # nm: unknown option "B" ignored
6583 # Tru64's nm complains that
/dev
/null is an invalid object
file
6584 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6585 */dev
/null
* |
*'Invalid file or object type'*)
6586 lt_cv_path_NM
="$tmp_nm -B"
6590 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6592 lt_cv_path_NM
="$tmp_nm -p"
6596 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6597 continue # so that we can try to find one that supports BSD flags
6606 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6609 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6610 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6615 { echo "$as_me:$LINENO: checking for GNU make" >&5
6616 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6617 if test "${llvm_cv_gnu_make_command+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 llvm_cv_gnu_make_command
=''
6621 for a
in "$MAKE" make gmake gnumake
; do
6622 if test -z "$a" ; then continue ; fi ;
6623 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6625 llvm_cv_gnu_make_command
=$a ;
6630 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6631 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6632 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6636 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6637 echo "${ECHO_T}\"Not found\"" >&6; };
6641 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6642 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6644 if test "$LN_S" = "ln -s"; then
6645 { echo "$as_me:$LINENO: result: yes" >&5
6646 echo "${ECHO_T}yes" >&6; }
6648 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6649 echo "${ECHO_T}no, using $LN_S" >&6; }
6652 # Extract the first word of "cmp", so it can be a program name with args.
6653 set dummy
cmp; ac_word
=$2
6654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656 if test "${ac_cv_path_CMP+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir
=.
6669 for ac_exec_ext
in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6684 if test -n "$CMP"; then
6685 { echo "$as_me:$LINENO: result: $CMP" >&5
6686 echo "${ECHO_T}$CMP" >&6; }
6688 { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6693 # Extract the first word of "cp", so it can be a program name with args.
6694 set dummy
cp; ac_word
=$2
6695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697 if test "${ac_cv_path_CP+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir
=.
6710 for ac_exec_ext
in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6725 if test -n "$CP"; then
6726 { echo "$as_me:$LINENO: result: $CP" >&5
6727 echo "${ECHO_T}$CP" >&6; }
6729 { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6734 # Extract the first word of "date", so it can be a program name with args.
6735 set dummy
date; ac_word
=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_path_DATE+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir
=.
6751 for ac_exec_ext
in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6765 DATE
=$ac_cv_path_DATE
6766 if test -n "$DATE"; then
6767 { echo "$as_me:$LINENO: result: $DATE" >&5
6768 echo "${ECHO_T}$DATE" >&6; }
6770 { echo "$as_me:$LINENO: result: no" >&5
6771 echo "${ECHO_T}no" >&6; }
6775 # Extract the first word of "find", so it can be a program name with args.
6776 set dummy
find; ac_word
=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_path_FIND+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir
=.
6792 for ac_exec_ext
in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6806 FIND
=$ac_cv_path_FIND
6807 if test -n "$FIND"; then
6808 { echo "$as_me:$LINENO: result: $FIND" >&5
6809 echo "${ECHO_T}$FIND" >&6; }
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6816 # Extract the first word of "grep", so it can be a program name with args.
6817 set dummy
grep; ac_word
=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_path_GREP+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6832 test -z "$as_dir" && as_dir
=.
6833 for ac_exec_ext
in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6847 GREP
=$ac_cv_path_GREP
6848 if test -n "$GREP"; then
6849 { echo "$as_me:$LINENO: result: $GREP" >&5
6850 echo "${ECHO_T}$GREP" >&6; }
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6857 # Extract the first word of "mkdir", so it can be a program name with args.
6858 set dummy mkdir
; ac_word
=$2
6859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861 if test "${ac_cv_path_MKDIR+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
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_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6888 MKDIR
=$ac_cv_path_MKDIR
6889 if test -n "$MKDIR"; then
6890 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6891 echo "${ECHO_T}$MKDIR" >&6; }
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6898 # Extract the first word of "mv", so it can be a program name with args.
6899 set dummy
mv; ac_word
=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_path_MV+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir
=.
6915 for ac_exec_ext
in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
6930 if test -n "$MV"; then
6931 { echo "$as_me:$LINENO: result: $MV" >&5
6932 echo "${ECHO_T}$MV" >&6; }
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6939 if test -n "$ac_tool_prefix"; then
6940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6941 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_prog_RANLIB+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 if test -n "$RANLIB"; then
6948 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir
=.
6955 for ac_exec_ext
in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 RANLIB
=$ac_cv_prog_RANLIB
6968 if test -n "$RANLIB"; then
6969 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6970 echo "${ECHO_T}$RANLIB" >&6; }
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6978 if test -z "$ac_cv_prog_RANLIB"; then
6979 ac_ct_RANLIB
=$RANLIB
6980 # Extract the first word of "ranlib", so it can be a program name with args.
6981 set dummy ranlib
; ac_word
=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 if test -n "$ac_ct_RANLIB"; then
6988 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir
=.
6995 for ac_exec_ext
in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7008 if test -n "$ac_ct_RANLIB"; then
7009 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7010 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7016 if test "x$ac_ct_RANLIB" = x
; then
7019 case $cross_compiling:$ac_tool_warned in
7021 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7022 whose name does not start with the host triplet. If you think this
7023 configuration is useful to you, please write to autoconf@gnu.org." >&5
7024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7025 whose name does not start with the host triplet. If you think this
7026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7027 ac_tool_warned
=yes ;;
7029 RANLIB
=$ac_ct_RANLIB
7032 RANLIB
="$ac_cv_prog_RANLIB"
7035 # Extract the first word of "rm", so it can be a program name with args.
7036 set dummy
rm; ac_word
=$2
7037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039 if test "${ac_cv_path_RM+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7051 test -z "$as_dir" && as_dir
=.
7052 for ac_exec_ext
in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7067 if test -n "$RM"; then
7068 { echo "$as_me:$LINENO: result: $RM" >&5
7069 echo "${ECHO_T}$RM" >&6; }
7071 { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7076 # Extract the first word of "sed", so it can be a program name with args.
7077 set dummy
sed; ac_word
=$2
7078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7080 if test "${ac_cv_path_SED+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir
=.
7093 for ac_exec_ext
in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7108 if test -n "$SED"; then
7109 { echo "$as_me:$LINENO: result: $SED" >&5
7110 echo "${ECHO_T}$SED" >&6; }
7112 { echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6; }
7117 # Extract the first word of "tar", so it can be a program name with args.
7118 set dummy
tar; ac_word
=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_path_TAR+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir
=.
7134 for ac_exec_ext
in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7149 if test -n "$TAR"; then
7150 { echo "$as_me:$LINENO: result: $TAR" >&5
7151 echo "${ECHO_T}$TAR" >&6; }
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7158 # Extract the first word of "pwd", so it can be a program name with args.
7159 set dummy
pwd; ac_word
=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_BINPWD+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir
=.
7175 for ac_exec_ext
in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7189 BINPWD
=$ac_cv_path_BINPWD
7190 if test -n "$BINPWD"; then
7191 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7192 echo "${ECHO_T}$BINPWD" >&6; }
7194 { echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6; }
7200 # Extract the first word of "Graphviz", so it can be a program name with args.
7201 set dummy Graphviz
; ac_word
=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir
=.
7217 for ac_exec_ext
in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7231 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7232 if test -n "$GRAPHVIZ"; then
7233 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7234 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7241 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7243 cat >>confdefs.h
<<\_ACEOF
7244 #define HAVE_GRAPHVIZ 1
7247 if test "$llvm_cv_os_type" = "MingW" ; then
7248 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7251 cat >>confdefs.h
<<_ACEOF
7252 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7256 # Extract the first word of "dot", so it can be a program name with args.
7257 set dummy dot
; ac_word
=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_DOT+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir
=.
7273 for ac_exec_ext
in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7288 if test -n "$DOT"; then
7289 { echo "$as_me:$LINENO: result: $DOT" >&5
7290 echo "${ECHO_T}$DOT" >&6; }
7292 { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7297 if test "$DOT" != "echo dot" ; then
7299 cat >>confdefs.h
<<\_ACEOF
7303 if test "$llvm_cv_os_type" = "MingW" ; then
7304 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7307 cat >>confdefs.h
<<_ACEOF
7308 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7312 # Extract the first word of "fdp", so it can be a program name with args.
7313 set dummy fdp
; ac_word
=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_FDP+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7328 test -z "$as_dir" && as_dir
=.
7329 for ac_exec_ext
in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7344 if test -n "$FDP"; then
7345 { echo "$as_me:$LINENO: result: $FDP" >&5
7346 echo "${ECHO_T}$FDP" >&6; }
7348 { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7353 if test "$FDP" != "echo fdp" ; then
7355 cat >>confdefs.h
<<\_ACEOF
7359 if test "$llvm_cv_os_type" = "MingW" ; then
7360 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7363 cat >>confdefs.h
<<_ACEOF
7364 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7368 # Extract the first word of "neato", so it can be a program name with args.
7369 set dummy neato
; ac_word
=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_path_NEATO+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7384 test -z "$as_dir" && as_dir
=.
7385 for ac_exec_ext
in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7399 NEATO
=$ac_cv_path_NEATO
7400 if test -n "$NEATO"; then
7401 { echo "$as_me:$LINENO: result: $NEATO" >&5
7402 echo "${ECHO_T}$NEATO" >&6; }
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7409 if test "$NEATO" != "echo neato" ; then
7411 cat >>confdefs.h
<<\_ACEOF
7412 #define HAVE_NEATO 1
7415 if test "$llvm_cv_os_type" = "MingW" ; then
7416 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7419 cat >>confdefs.h
<<_ACEOF
7420 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7424 # Extract the first word of "twopi", so it can be a program name with args.
7425 set dummy twopi
; ac_word
=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_TWOPI+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir
=.
7441 for ac_exec_ext
in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7455 TWOPI
=$ac_cv_path_TWOPI
7456 if test -n "$TWOPI"; then
7457 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7458 echo "${ECHO_T}$TWOPI" >&6; }
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7465 if test "$TWOPI" != "echo twopi" ; then
7467 cat >>confdefs.h
<<\_ACEOF
7468 #define HAVE_TWOPI 1
7471 if test "$llvm_cv_os_type" = "MingW" ; then
7472 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7475 cat >>confdefs.h
<<_ACEOF
7476 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7480 # Extract the first word of "circo", so it can be a program name with args.
7481 set dummy circo
; ac_word
=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_path_CIRCO+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir
=.
7497 for ac_exec_ext
in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7511 CIRCO
=$ac_cv_path_CIRCO
7512 if test -n "$CIRCO"; then
7513 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7514 echo "${ECHO_T}$CIRCO" >&6; }
7516 { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7521 if test "$CIRCO" != "echo circo" ; then
7523 cat >>confdefs.h
<<\_ACEOF
7524 #define HAVE_CIRCO 1
7527 if test "$llvm_cv_os_type" = "MingW" ; then
7528 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7531 cat >>confdefs.h
<<_ACEOF
7532 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7536 for ac_prog
in gv gsview32
7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
7539 set dummy
$ac_prog; ac_word
=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_path_GV+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir
=.
7555 for ac_exec_ext
in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 if test -n "$GV"; then
7570 { echo "$as_me:$LINENO: result: $GV" >&5
7571 echo "${ECHO_T}$GV" >&6; }
7573 { echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6; }
7578 test -n "$GV" && break
7580 test -n "$GV" || GV
="echo gv"
7582 if test "$GV" != "echo gv" ; then
7584 cat >>confdefs.h
<<\_ACEOF
7588 if test "$llvm_cv_os_type" = "MingW" ; then
7589 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7592 cat >>confdefs.h
<<_ACEOF
7593 #define LLVM_PATH_GV "$GV${EXEEXT}"
7597 # Extract the first word of "dotty", so it can be a program name with args.
7598 set dummy dotty
; ac_word
=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_DOTTY+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir
=.
7614 for ac_exec_ext
in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7628 DOTTY
=$ac_cv_path_DOTTY
7629 if test -n "$DOTTY"; then
7630 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7631 echo "${ECHO_T}$DOTTY" >&6; }
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7638 if test "$DOTTY" != "echo dotty" ; then
7640 cat >>confdefs.h
<<\_ACEOF
7641 #define HAVE_DOTTY 1
7644 if test "$llvm_cv_os_type" = "MingW" ; then
7645 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7648 cat >>confdefs.h
<<_ACEOF
7649 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7655 # Extract the first word of "perl", so it can be a program name with args.
7656 set dummy perl
; ac_word
=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_path_PERL+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir
=.
7672 for ac_exec_ext
in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7686 PERL
=$ac_cv_path_PERL
7687 if test -n "$PERL"; then
7688 { echo "$as_me:$LINENO: result: $PERL" >&5
7689 echo "${ECHO_T}$PERL" >&6; }
7691 { echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6; }
7696 if test "$PERL" != "none"; then
7697 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7698 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7699 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7700 { echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6; }
7704 { echo "$as_me:$LINENO: result: not found" >&5
7705 echo "${ECHO_T}not found" >&6; }
7710 if test x
"$PERL" = xnone
; then
7713 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7714 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7715 { (exit 1); exit 1; }; }
7721 # Find a good install program. We prefer a C program (faster),
7722 # so one script is as good as another. But avoid the broken or
7723 # incompatible versions:
7724 # SysV /etc/install, /usr/sbin/install
7725 # SunOS /usr/etc/install
7726 # IRIX /sbin/install
7728 # AmigaOS /C/install, which installs bootblocks on floppy discs
7729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7732 # OS/2's system install, which has a completely different semantic
7733 # ./install, which can be erroneously created by make from ./install.sh.
7734 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7735 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7736 if test -z "$INSTALL"; then
7737 if test "${ac_cv_path_install+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7744 test -z "$as_dir" && as_dir
=.
7745 # Account for people who put trailing slashes in PATH elements.
7747 .
/ | .
// |
/cC
/* | \
7748 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7749 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7752 # OSF1 and SCO ODT 3.0 have their own names for install.
7753 # Don't use installbsd from OSF since it installs stuff as root
7755 for ac_prog
in ginstall scoinst
install; do
7756 for ac_exec_ext
in '' $ac_executable_extensions; do
7757 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7758 if test $ac_prog = install &&
7759 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7760 # AIX install. It has an incompatible calling convention.
7762 elif test $ac_prog = install &&
7763 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7764 # program-specific install script used by HP pwplus--don't use.
7767 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7780 if test "${ac_cv_path_install+set}" = set; then
7781 INSTALL
=$ac_cv_path_install
7783 # As a last resort, use the slow shell script. Don't cache a
7784 # value for INSTALL within a source directory, because that will
7785 # break other packages using the cache if that directory is
7786 # removed, or if the value is a relative name.
7787 INSTALL
=$ac_install_sh
7790 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7791 echo "${ECHO_T}$INSTALL" >&6; }
7793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7794 # It thinks the first close brace ends the variable substitution.
7795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7799 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7802 # Extract the first word of "bzip2", so it can be a program name with args.
7803 set dummy
bzip2; ac_word
=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_path_BZIP2+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir
=.
7819 for ac_exec_ext
in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 BZIP2
=$ac_cv_path_BZIP2
7833 if test -n "$BZIP2"; then
7834 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7835 echo "${ECHO_T}$BZIP2" >&6; }
7837 { echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6; }
7842 # Extract the first word of "doxygen", so it can be a program name with args.
7843 set dummy doxygen
; ac_word
=$2
7844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7846 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir
=.
7859 for ac_exec_ext
in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 DOXYGEN
=$ac_cv_path_DOXYGEN
7873 if test -n "$DOXYGEN"; then
7874 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7875 echo "${ECHO_T}$DOXYGEN" >&6; }
7877 { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7882 # Extract the first word of "groff", so it can be a program name with args.
7883 set dummy
groff; ac_word
=$2
7884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7886 if test "${ac_cv_path_GROFF+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7898 test -z "$as_dir" && as_dir
=.
7899 for ac_exec_ext
in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7901 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 GROFF
=$ac_cv_path_GROFF
7913 if test -n "$GROFF"; then
7914 { echo "$as_me:$LINENO: result: $GROFF" >&5
7915 echo "${ECHO_T}$GROFF" >&6; }
7917 { echo "$as_me:$LINENO: result: no" >&5
7918 echo "${ECHO_T}no" >&6; }
7922 # Extract the first word of "gzip", so it can be a program name with args.
7923 set dummy
gzip; ac_word
=$2
7924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926 if test "${ac_cv_path_GZIP+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7938 test -z "$as_dir" && as_dir
=.
7939 for ac_exec_ext
in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 GZIP
=$ac_cv_path_GZIP
7953 if test -n "$GZIP"; then
7954 { echo "$as_me:$LINENO: result: $GZIP" >&5
7955 echo "${ECHO_T}$GZIP" >&6; }
7957 { echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6; }
7962 # Extract the first word of "pod2html", so it can be a program name with args.
7963 set dummy pod2html
; ac_word
=$2
7964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7966 if test "${ac_cv_path_POD2HTML+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7978 test -z "$as_dir" && as_dir
=.
7979 for ac_exec_ext
in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 POD2HTML
=$ac_cv_path_POD2HTML
7993 if test -n "$POD2HTML"; then
7994 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7995 echo "${ECHO_T}$POD2HTML" >&6; }
7997 { echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6; }
8002 # Extract the first word of "pod2man", so it can be a program name with args.
8003 set dummy pod2man
; ac_word
=$2
8004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8006 if test "${ac_cv_path_POD2MAN+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8018 test -z "$as_dir" && as_dir
=.
8019 for ac_exec_ext
in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 POD2MAN
=$ac_cv_path_POD2MAN
8033 if test -n "$POD2MAN"; then
8034 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8035 echo "${ECHO_T}$POD2MAN" >&6; }
8037 { echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6; }
8042 # Extract the first word of "runtest", so it can be a program name with args.
8043 set dummy runtest
; ac_word
=$2
8044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8046 if test "${ac_cv_path_RUNTEST+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8058 test -z "$as_dir" && as_dir
=.
8059 for ac_exec_ext
in '' $ac_executable_extensions; do
8060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8061 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 RUNTEST
=$ac_cv_path_RUNTEST
8073 if test -n "$RUNTEST"; then
8074 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8075 echo "${ECHO_T}$RUNTEST" >&6; }
8077 { echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6; }
8084 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8085 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8087 # Check whether --with-tclinclude was given.
8088 if test "${with_tclinclude+set}" = set; then
8089 withval
=$with_tclinclude; with_tclinclude
=${withval}
8094 if test "${ac_cv_path_tclsh+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 if test x
"${with_tclinclude}" != x
; then
8099 if test -f ${with_tclinclude}/tclsh
; then
8100 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8101 elif test -f ${with_tclinclude}/src
/tclsh
; then
8102 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8104 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8105 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8106 { (exit 1); exit 1; }; }
8110 if test x
"${ac_cv_path_tclsh}" = x
; then
8111 { echo "$as_me:$LINENO: result: none" >&5
8112 echo "${ECHO_T}none" >&6; }
8113 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
8115 # Extract the first word of "$ac_prog", so it can be a program name with args.
8116 set dummy
$ac_prog; ac_word
=$2
8117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8119 if test "${ac_cv_path_TCLSH+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8131 test -z "$as_dir" && as_dir
=.
8132 for ac_exec_ext
in '' $ac_executable_extensions; do
8133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8134 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 TCLSH
=$ac_cv_path_TCLSH
8146 if test -n "$TCLSH"; then
8147 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8148 echo "${ECHO_T}$TCLSH" >&6; }
8150 { echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6; }
8155 test -n "$TCLSH" && break
8158 if test x
"${TCLSH}" = x
; then
8159 ac_cv_path_tclsh
='';
8161 ac_cv_path_tclsh
="${TCLSH}";
8164 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8165 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8166 TCLSH="${ac_cv_path_tclsh}"
8172 # Extract the first word of "zip", so it can be a program name with args.
8173 set dummy zip; ac_word=$2
8174 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8175 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8176 if test "${ac_cv_path_ZIP+set}" = set; then
8177 echo $ECHO_N "(cached
) $ECHO_C" >&6
8181 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8192 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8203 if test -n "$ZIP"; then
8204 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8205 echo "${ECHO_T}$ZIP" >&6; }
8207 { echo "$as_me:$LINENO: result
: no
" >&5
8208 echo "${ECHO_T}no
" >&6; }
8212 for ac_prog in ocamlc
8214 # Extract the first word of "$ac_prog", so it can be a program name with args.
8215 set dummy $ac_prog; ac_word=$2
8216 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8217 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8218 if test "${ac_cv_path_OCAMLC+set}" = set; then
8219 echo $ECHO_N "(cached
) $ECHO_C" >&6
8223 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8234 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8244 OCAMLC=$ac_cv_path_OCAMLC
8245 if test -n "$OCAMLC"; then
8246 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8247 echo "${ECHO_T}$OCAMLC" >&6; }
8249 { echo "$as_me:$LINENO: result
: no
" >&5
8250 echo "${ECHO_T}no
" >&6; }
8254 test -n "$OCAMLC" && break
8257 for ac_prog in ocamlopt
8259 # Extract the first word of "$ac_prog", so it can be a program name with args.
8260 set dummy $ac_prog; ac_word=$2
8261 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8262 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8263 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8264 echo $ECHO_N "(cached
) $ECHO_C" >&6
8268 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8278 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8279 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8289 OCAMLOPT=$ac_cv_path_OCAMLOPT
8290 if test -n "$OCAMLOPT"; then
8291 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8292 echo "${ECHO_T}$OCAMLOPT" >&6; }
8294 { echo "$as_me:$LINENO: result
: no
" >&5
8295 echo "${ECHO_T}no
" >&6; }
8299 test -n "$OCAMLOPT" && break
8302 for ac_prog in ocamldep
8304 # Extract the first word of "$ac_prog", so it can be a program name with args.
8305 set dummy $ac_prog; ac_word=$2
8306 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8307 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8308 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8309 echo $ECHO_N "(cached
) $ECHO_C" >&6
8313 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8324 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8334 OCAMLDEP=$ac_cv_path_OCAMLDEP
8335 if test -n "$OCAMLDEP"; then
8336 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8337 echo "${ECHO_T}$OCAMLDEP" >&6; }
8339 { echo "$as_me:$LINENO: result
: no
" >&5
8340 echo "${ECHO_T}no
" >&6; }
8344 test -n "$OCAMLDEP" && break
8347 for ac_prog in ocamldoc
8349 # Extract the first word of "$ac_prog", so it can be a program name with args.
8350 set dummy $ac_prog; ac_word=$2
8351 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8352 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8353 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8354 echo $ECHO_N "(cached
) $ECHO_C" >&6
8358 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8369 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8379 OCAMLDOC=$ac_cv_path_OCAMLDOC
8380 if test -n "$OCAMLDOC"; then
8381 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8382 echo "${ECHO_T}$OCAMLDOC" >&6; }
8384 { echo "$as_me:$LINENO: result
: no
" >&5
8385 echo "${ECHO_T}no
" >&6; }
8389 test -n "$OCAMLDOC" && break
8392 for ac_prog in gas as
8394 # Extract the first word of "$ac_prog", so it can be a program name with args.
8395 set dummy $ac_prog; ac_word=$2
8396 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8397 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8398 if test "${ac_cv_path_GAS+set}" = set; then
8399 echo $ECHO_N "(cached
) $ECHO_C" >&6
8403 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8413 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8414 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8425 if test -n "$GAS"; then
8426 { echo "$as_me:$LINENO: result
: $GAS" >&5
8427 echo "${ECHO_T}$GAS" >&6; }
8429 { echo "$as_me:$LINENO: result
: no
" >&5
8430 echo "${ECHO_T}no
" >&6; }
8434 test -n "$GAS" && break
8438 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8439 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8440 if test "${llvm_cv_link_use_r+set}" = set; then
8441 echo $ECHO_N "(cached
) $ECHO_C" >&6
8444 ac_cpp='$CPP $CPPFLAGS'
8445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8450 CFLAGS="$CFLAGS -Wl,-R.
"
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8461 int main() { return 0; }
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (ac_try="$ac_link"
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_link") 2>conftest.er1
8475 grep -v '^ *+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8481 { (case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_try") 2>&5
8488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest$ac_exeext'
8491 { (case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_try") 2>&5
8498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 llvm_cv_link_use_r=yes
8502 echo "$as_me: failed program was
:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 llvm_cv_link_use_r=no
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8512 ac_cpp='$CPP $CPPFLAGS'
8513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8519 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8520 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8521 if test "$llvm_cv_link_use_r" = yes ; then
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HAVE_LINK_R 1
8530 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-export-dynamic option
" >&5
8531 echo $ECHO_N "checking
for compiler
-Wl,-export-dynamic option...
$ECHO_C" >&6; }
8532 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8533 echo $ECHO_N "(cached
) $ECHO_C" >&6
8536 ac_cpp='$CPP $CPPFLAGS'
8537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8542 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8543 cat >conftest.$ac_ext <<_ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8553 int main() { return 0; }
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (ac_try="$ac_link"
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_link") 2>conftest.er1
8567 grep -v '^ *+' conftest.er1 >conftest.err
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_try") 2>&5
8580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest$ac_exeext'
8583 { (case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_try") 2>&5
8590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 llvm_cv_link_use_export_dynamic=yes
8594 echo "$as_me: failed program was
:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 llvm_cv_link_use_export_dynamic=no
8600 rm -f core conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8604 ac_cpp='$CPP $CPPFLAGS'
8605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8611 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_export_dynamic" >&5
8612 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8613 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8615 cat >>confdefs.h <<\_ACEOF
8616 #define HAVE_LINK_EXPORT_DYNAMIC 1
8624 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8625 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8626 if test "${ac_cv_c_const+set}" = set; then
8627 echo $ECHO_N "(cached
) $ECHO_C" >&6
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8639 /* FIXME: Include the comments suggested by Paul. */
8641 /* Ultrix mips cc rejects this. */
8642 typedef int charset[2];
8644 /* SunOS 4.1.1 cc rejects this. */
8645 char const *const *ccp;
8647 /* NEC SVR4.0.2 mips cc rejects this. */
8648 struct point {int x, y;};
8649 static struct point const zero = {0,0};
8650 /* AIX XL C 1.02.0.0 rejects this.
8651 It does not let you subtract one const X* pointer from another in
8652 an arm of an if-expression whose if-part is not a constant
8654 const char *g = "string
";
8655 ccp = &g + (g ? g-g : 0);
8656 /* HPUX 7.0 cc rejects these. */
8659 ccp = (char const *const *) p;
8660 { /* SCO 3.2v4 cc rejects this. */
8662 char const *s = 0 ? (char *) 0 : (char const *) 0;
8667 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8669 const int *foo = &x[0];
8672 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8673 typedef const int *iptr;
8677 { /* AIX XL C 1.02.0.0 rejects this saying
8678 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8679 struct s { int j; const int *ap[3]; };
8680 struct s *b; b->j = 5;
8682 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8686 return !x[0] && !zero.x;
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708 { (case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_try") 2>&5
8715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest.$ac_objext'
8718 { (case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_try") 2>&5
8725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8726 (exit $ac_status); }; }; then
8729 echo "$as_me: failed program was
:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8738 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8739 if test $ac_cv_c_const = no; then
8741 cat >>confdefs.h <<\_ACEOF
8753 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8754 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8755 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8756 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8757 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8758 echo $ECHO_N "(cached
) $ECHO_C" >&6
8760 cat >conftest.$ac_ext <<_ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8766 #include <sys/types.h>
8778 rm -f conftest.$ac_objext
8779 if { (ac_try="$ac_compile"
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8793 { (case "(($ac_try" in
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8798 (eval "$ac_try") 2>&5
8800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest.$ac_objext'
8803 { (case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_try") 2>&5
8810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8811 (exit $ac_status); }; }; then
8812 eval "$as_ac_Header=yes"
8814 echo "$as_me: failed program was
:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 eval "$as_ac_Header=no
"
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 ac_res=`eval echo '${'$as_ac_Header'}'`
8823 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8824 echo "${ECHO_T}$ac_res" >&6; }
8825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8826 cat >>confdefs.h <<_ACEOF
8827 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8830 ac_header_dirent=$ac_hdr; break
8834 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8835 if test $ac_header_dirent = dirent.h; then
8836 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8837 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8838 if test "${ac_cv_search_opendir+set}" = set; then
8839 echo $ECHO_N "(cached
) $ECHO_C" >&6
8841 ac_func_search_save_LIBS=$LIBS
8842 cat >conftest.$ac_ext <<_ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8849 /* Override any GCC internal prototype to avoid an error.
8850 Use char because int might match the return type of a GCC
8851 builtin and then its argument prototype would still apply. */
8864 for ac_lib in '' dir; do
8865 if test -z "$ac_lib"; then
8866 ac_res="none required
"
8869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_link") 2>conftest.er1
8880 grep -v '^ *+' conftest.er1 >conftest.err
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8886 { (case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_try") 2>&5
8893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8894 (exit $ac_status); }; } &&
8895 { ac_try='test -s conftest$ac_exeext'
8896 { (case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8901 (eval "$ac_try") 2>&5
8903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_search_opendir=$ac_res
8907 echo "$as_me: failed program was
:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8913 rm -f core conftest.err conftest.$ac_objext \
8915 if test "${ac_cv_search_opendir+set}" = set; then
8919 if test "${ac_cv_search_opendir+set}" = set; then
8922 ac_cv_search_opendir=no
8925 LIBS=$ac_func_search_save_LIBS
8927 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8928 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8929 ac_res=$ac_cv_search_opendir
8930 if test "$ac_res" != no; then
8931 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8936 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8937 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8938 if test "${ac_cv_search_opendir+set}" = set; then
8939 echo $ECHO_N "(cached
) $ECHO_C" >&6
8941 ac_func_search_save_LIBS=$LIBS
8942 cat >conftest.$ac_ext <<_ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 /* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8964 for ac_lib in '' x; do
8965 if test -z "$ac_lib"; then
8966 ac_res="none required
"
8969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (ac_try="$ac_link"
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_link") 2>conftest.er1
8980 grep -v '^ *+' conftest.er1 >conftest.err
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8986 { (case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_try") 2>&5
8993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try='test -s conftest$ac_exeext'
8996 { (case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
9000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_try") 2>&5
9003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_search_opendir=$ac_res
9007 echo "$as_me: failed program was
:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9013 rm -f core conftest.err conftest.$ac_objext \
9015 if test "${ac_cv_search_opendir+set}" = set; then
9019 if test "${ac_cv_search_opendir+set}" = set; then
9022 ac_cv_search_opendir=no
9025 LIBS=$ac_func_search_save_LIBS
9027 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9028 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9029 ac_res=$ac_cv_search_opendir
9030 if test "$ac_res" != no; then
9031 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9038 for ac_header in dlfcn.h
9040 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9041 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9042 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9043 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9044 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9045 echo $ECHO_N "(cached
) $ECHO_C" >&6
9047 ac_res=`eval echo '${'$as_ac_Header'}'`
9048 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9049 echo "${ECHO_T}$ac_res" >&6; }
9051 # Is the header compilable?
9052 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9053 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 #include <$ac_header>
9063 rm -f conftest.$ac_objext
9064 if { (ac_try="$ac_compile"
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_compile") 2>conftest.er1
9072 grep -v '^ *+' conftest.er1 >conftest.err
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9078 { (case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_try") 2>&5
9085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest.$ac_objext'
9088 { (case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_try") 2>&5
9095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_header_compiler=yes
9099 echo "$as_me: failed program was
:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 ac_header_compiler=no
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9107 echo "${ECHO_T}$ac_header_compiler" >&6; }
9109 # Is the header present?
9110 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9111 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9112 cat >conftest.$ac_ext <<_ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 #include <$ac_header>
9120 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9128 grep -v '^ *+' conftest.er1 >conftest.err
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9132 (exit $ac_status); } >/dev/null; then
9133 if test -s conftest.err; then
9134 ac_cpp_err=$ac_c_preproc_warn_flag
9135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9142 if test -z "$ac_cpp_err"; then
9143 ac_header_preproc=yes
9145 echo "$as_me: failed program was
:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ac_header_preproc=no
9151 rm -f conftest.err conftest.$ac_ext
9152 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9153 echo "${ECHO_T}$ac_header_preproc" >&6; }
9155 # So? What about this header?
9156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9158 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9159 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9160 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9162 ac_header_preproc=yes
9165 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9166 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9167 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9168 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9169 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9170 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9171 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9172 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9173 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9175 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9176 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9178 ## ----------------------------------- ##
9179 ## Report this to llvmbugs@cs.uiuc.edu ##
9180 ## ----------------------------------- ##
9182 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9185 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9186 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9187 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9188 echo $ECHO_N "(cached
) $ECHO_C" >&6
9190 eval "$as_ac_Header=\
$ac_header_preproc"
9192 ac_res=`eval echo '${'$as_ac_Header'}'`
9193 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9194 echo "${ECHO_T}$ac_res" >&6; }
9197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9198 cat >>confdefs.h <<_ACEOF
9199 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9206 # Check whether --enable-ltdl-install was given.
9207 if test "${enable_ltdl_install+set}" = set; then
9208 enableval=$enable_ltdl_install;
9214 if test x"${enable_ltdl_install-no}" != xno; then
9216 INSTALL_LTDL_FALSE='#'
9218 INSTALL_LTDL_TRUE='#'
9224 if test x"${enable_ltdl_convenience-no}" != xno; then
9225 CONVENIENCE_LTDL_TRUE=
9226 CONVENIENCE_LTDL_FALSE='#'
9228 CONVENIENCE_LTDL_TRUE='#'
9229 CONVENIENCE_LTDL_FALSE=
9233 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
9234 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
9236 libname_spec='lib$name'
9244 shlibpath_overrides_runpath=unknown
9246 dynamic_linker="$host_os ld.so
"
9247 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
9248 if test "$GCC" = yes; then
9249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9250 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9251 # if the path contains ";" then we assume it to be the separator
9252 # otherwise default to the standard path separator (i.e. ":") - it is
9253 # assumed that no part of a normal pathname contains ";" but that should
9254 # okay in the real world where ";" in dirpaths is itself problematic.
9255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9260 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
9262 need_lib_prefix=unknown
9263 hardcode_into_libs=no
9265 # when you set need_version to no, make sure it does not cause -set_version
9266 # flags to be left without arguments
9267 need_version=unknown
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9273 shlibpath_var=LIBPATH
9275 # AIX 3 has no versioning support, so we append a major version to the name.
9276 soname_spec='${libname}${release}${shared_ext}$major'
9283 hardcode_into_libs=yes
9284 if test "$host_cpu" = ia64; then
9285 # AIX 5 supports IA64
9286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9287 shlibpath_var=LD_LIBRARY_PATH
9289 # With GCC up to 2.95.x, collect2 would create an import file
9290 # for dependence libraries. The import file would start with
9291 # the line `#! .'. This would cause the generated library to
9292 # depend on `.', always an invalid library. This was fixed in
9293 # development snapshots of GCC prior to 3.0.
9295 aix4 | aix4.[01] | aix4.[01].*)
9296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9298 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9306 # soname into executable. Probably we can add versioning support to
9307 # collect2, so additional links can be useful in future.
9308 if test "$aix_use_runtimelinking" = yes; then
9309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9310 # instead of lib<name>.a to let people know that these are not
9311 # typical AIX shared libraries.
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 # We preserve .a as extension for shared libraries through AIX4.2
9315 # and later when we are not doing run time linking.
9316 library_names_spec='${libname}${release}.a $libname.a'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LIBPATH
9324 library_names_spec='$libname.ixlibrary $libname.a'
9325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9326 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'
9330 library_names_spec='${libname}${shared_ext}'
9331 dynamic_linker="$host_os ld.so
"
9332 shlibpath_var=LIBRARY_PATH
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9343 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9344 # the default ld.so.conf also contains /usr/contrib/lib and
9345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9346 # libtool to hard-code these into programs
9349 cygwin* | mingw* | pw32*)
9350 version_type=windows
9355 case $GCC,$host_os in
9356 yes,cygwin* | yes,mingw* | yes,pw32*)
9357 library_names_spec='$libname.dll.a'
9358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9359 postinstall_cmds='base_file=`basename \${file}`~
9360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9361 dldir=$destdir/`dirname \$dlpath`~
9362 test -d \$dldir || mkdir -p \$dldir~
9363 $install_prog $dir/$dlname \$dldir/$dlname~
9364 chmod a+x \$dldir/$dlname'
9365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9366 dlpath=$dir/\$dldll~
9368 shlibpath_overrides_runpath=yes
9372 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9374 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9377 # MinGW DLLs use traditional 'lib' prefix
9378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9381 # It is most probably a Windows format PATH printed by
9382 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9383 # path with ; separators, and with drive letters. We can handle the
9384 # drive letters (cygwin fileutils understands them), so leave them,
9385 # especially as we might pass files found there to a mingw objdump,
9386 # which wouldn't understand a cygwinified path. Ahh.
9387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9393 # pw32 DLLs use 'pw' prefix rather than 'lib'
9394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9403 dynamic_linker='Win32 ld.exe'
9404 # FIXME: first we should search . and the directory the executable is in
9408 darwin* | rhapsody*)
9409 dynamic_linker="$host_os dyld
"
9413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9414 soname_spec='${libname}${release}${major}$shared_ext'
9415 shlibpath_overrides_runpath=yes
9416 shlibpath_var=DYLD_LIBRARY_PATH
9417 shrext_cmds='.dylib'
9418 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9419 if test "$GCC" = yes; then
9420 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
"`
9422 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=no
9448 hardcode_into_libs=yes
9449 dynamic_linker='GNU ld.so'
9452 freebsd* | dragonfly*)
9453 # DragonFly does not have aout. When/if they implement a new
9454 # versioning mechanism, adjust this.
9455 if test -x /usr/bin/objformat; then
9456 objformat=`/usr/bin/objformat`
9459 freebsd[123]*) objformat=aout ;;
9463 version_type=freebsd-$objformat
9464 case $version_type in
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9475 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=yes
9480 freebsd3.[01]* | freebsdelf3.[01]*)
9481 shlibpath_overrides_runpath=yes
9482 hardcode_into_libs=yes
9484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9486 shlibpath_overrides_runpath=no
9487 hardcode_into_libs=yes
9489 freebsd*) # from 4.6 on
9490 shlibpath_overrides_runpath=yes
9491 hardcode_into_libs=yes
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 hardcode_into_libs=yes
9506 hpux9* | hpux10* | hpux11*)
9507 # Give a soname corresponding to the major version so that dld.sl refuses to
9508 # link against other versions.
9515 hardcode_into_libs=yes
9516 dynamic_linker="$host_os dld.so
"
9517 shlibpath_var=LD_LIBRARY_PATH
9518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 if test "X
$HPUX_IA64_MODE" = X32; then
9522 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9524 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9530 hardcode_into_libs=yes
9531 dynamic_linker="$host_os dld.sl
"
9532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9541 dynamic_linker="$host_os dld.sl
"
9542 shlibpath_var=SHLIB_PATH
9543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9548 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9549 postinstall_cmds='chmod 555 $lib'
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9559 shlibpath_var=LD_LIBRARY_PATH
9560 shlibpath_overrides_runpath=no
9561 hardcode_into_libs=yes
9564 irix5* | irix6* | nonstopux*)
9566 nonstopux*) version_type=nonstopux ;;
9568 if test "$lt_cv_prog_gnu_ld" = yes; then
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9579 irix5* | nonstopux*)
9583 case $LD in # libtool.m4 will add one of these switches to LD
9584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9585 libsuff= shlibsuff= libmagic=32-bit;;
9586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9587 libsuff=32 shlibsuff=N32 libmagic=N32;;
9588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9590 *) libsuff= shlibsuff= libmagic=never-match;;
9594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9595 shlibpath_overrides_runpath=no
9596 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9597 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9598 hardcode_into_libs=yes
9601 # No shared lib support for Linux oldld, aout, or coff.
9602 linux*oldld* | linux*aout* | linux*coff*)
9606 # This must be Linux ELF.
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 shlibpath_overrides_runpath=no
9616 # This implies no fast_install, which is unacceptable.
9617 # Some rework will be needed to allow for fast_install
9618 # before this can be enabled.
9619 hardcode_into_libs=yes
9621 # Append ld.so.conf contents to the search path
9622 if test -f /etc/ld.so.conf; then
9623 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' ' '`
9624 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9627 # We used to test for /lib/ld.so.1 and disable shared libraries on
9628 # powerpc, because MkLinux only supported shared libraries with the
9629 # GNU dynamic linker. Since this was broken with cross compilers,
9630 # most powerpc-linux boxes support dynamic linking these days and
9631 # people can always --disable-shared, the test was removed, and we
9632 # assume the GNU/Linux dynamic linker is in use.
9633 dynamic_linker='GNU/Linux ld.so'
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=no
9644 hardcode_into_libs=yes
9645 dynamic_linker='GNU ld.so'
9652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9654 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9655 dynamic_linker='NetBSD (a.out) ld.so'
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 dynamic_linker='NetBSD ld.elf_so'
9661 shlibpath_var=LD_LIBRARY_PATH
9662 shlibpath_overrides_runpath=yes
9663 hardcode_into_libs=yes
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 shlibpath_var=LD_LIBRARY_PATH
9670 shlibpath_overrides_runpath=yes
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 shlibpath_var=LD_LIBRARY_PATH
9680 shlibpath_overrides_runpath=yes
9685 sys_lib_dlsearch_path_spec="/usr
/lib
"
9687 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9689 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9690 *) need_version=no ;;
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9693 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9697 openbsd2.[89] | openbsd2.[89].*)
9698 shlibpath_overrides_runpath=no
9701 shlibpath_overrides_runpath=yes
9705 shlibpath_overrides_runpath=yes
9710 libname_spec='$name'
9713 library_names_spec='$libname${shared_ext} $libname.a'
9714 dynamic_linker='OS/2 ld.exe'
9715 shlibpath_var=LIBPATH
9718 osf3* | osf4* | osf5*)
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 shlibpath_overrides_runpath=yes
9737 hardcode_into_libs=yes
9738 # ldd complains unless libraries are executable
9739 postinstall_cmds='chmod +x $lib'
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9745 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 shlibpath_overrides_runpath=yes
9748 if test "$with_gnu_ld" = yes; then
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 case $host_vendor in
9761 shlibpath_overrides_runpath=no
9763 export_dynamic_flag_spec='${wl}-Blargedynsym'
9764 runpath_var=LD_RUN_PATH
9772 shlibpath_overrides_runpath=no
9773 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9779 if test -d /usr/nec ;then
9781 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9782 soname_spec='$libname${shared_ext}.$major'
9783 shlibpath_var=LD_LIBRARY_PATH
9787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9788 version_type=freebsd-elf
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 hardcode_into_libs=yes
9795 if test "$with_gnu_ld" = yes; then
9796 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9797 shlibpath_overrides_runpath=no
9799 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9800 shlibpath_overrides_runpath=yes
9803 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9807 sys_lib_dlsearch_path_spec='/usr/lib'
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813 soname_spec='${libname}${release}${shared_ext}$major'
9814 shlibpath_var=LD_LIBRARY_PATH
9821 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9822 echo "${ECHO_T}$dynamic_linker" >&6; }
9823 test "$dynamic_linker" = no && can_build_shared=no
9825 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9826 if test "$GCC" = yes; then
9827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9831 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9832 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9833 if test "${libltdl_cv_shlibext+set}" = set; then
9834 echo $ECHO_N "(cached
) $ECHO_C" >&6
9838 eval libltdl_cv_shlibext=$shrext_cmds
9841 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9842 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9843 if test -n "$libltdl_cv_shlibext"; then
9845 cat >>confdefs.h <<_ACEOF
9846 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9852 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9853 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9854 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9855 echo $ECHO_N "(cached
) $ECHO_C" >&6
9857 libltdl_cv_shlibpath_var="$shlibpath_var"
9859 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9860 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9861 if test -n "$libltdl_cv_shlibpath_var"; then
9863 cat >>confdefs.h <<_ACEOF
9864 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9870 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9871 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9872 if test "${libltdl_cv_sys_search_path+set}" = set; then
9873 echo $ECHO_N "(cached
) $ECHO_C" >&6
9875 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9877 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9878 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9879 if test -n "$libltdl_cv_sys_search_path"; then
9881 for dir in $libltdl_cv_sys_search_path; do
9882 if test -z "$sys_search_path"; then
9883 sys_search_path="$dir"
9885 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9889 cat >>confdefs.h <<_ACEOF
9890 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9895 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9896 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9897 if test "${libltdl_cv_objdir+set}" = set; then
9898 echo $ECHO_N "(cached
) $ECHO_C" >&6
9900 libltdl_cv_objdir="$objdir"
9901 if test -n "$objdir"; then
9904 rm -f .libs 2>/dev/null
9905 mkdir .libs 2>/dev/null
9906 if test -d .libs; then
9907 libltdl_cv_objdir=.libs
9909 # MS-DOS does not allow filenames that begin with a dot.
9910 libltdl_cv_objdir=_libs
9912 rmdir .libs 2>/dev/null
9916 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9917 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9919 cat >>confdefs.h <<_ACEOF
9920 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9928 # Check for command to grab the raw symbol name followed by C symbol from nm.
9929 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9930 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9931 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9932 echo $ECHO_N "(cached
) $ECHO_C" >&6
9935 # These are sane defaults that work on at least a few old systems.
9936 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9938 # Character class describing NM global symbol codes.
9939 symcode='[BCDEGRST]'
9941 # Regexp to match symbols that can be accessed directly from C.
9942 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9944 # Transform an extracted symbol line into a proper C declaration
9945 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9947 # Transform an extracted symbol line into symbol name and symbol address
9948 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'"
9950 # Define system-specific variables.
9955 cygwin* | mingw* | pw32*)
9956 symcode='[ABCDGISTW]'
9958 hpux*) # Its linker distinguishes data from code symbols
9959 if test "$host_cpu" = ia64; then
9960 symcode='[ABCDEGRST]'
9962 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9963 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'"
9966 if test "$host_cpu" = ia64; then
9967 symcode='[ABCDGIRSTW]'
9968 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9969 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'"
9973 symcode='[BCDEGRST]'
9976 symcode='[BCDEGQRST]'
9987 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9995 # Handle CRLF in mingw tool chain
9999 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10003 # If we're using GNU nm, then use its standard symbol codes.
10004 case `$NM -V 2>&1` in
10005 *GNU* | *'with BFD'*)
10006 symcode='[ABCDGIRSTW]' ;;
10009 # Try without a prefix undercore, then with it.
10010 for ac_symprfx in "" "_
"; do
10012 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10013 symxfrm="\\1 $ac_symprfx\\2 \\2"
10015 # Write the raw and C identifiers.
10016 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10018 # Check to see that the pipe works correctly.
10022 cat > conftest.$ac_ext <<EOF
10027 void nm_test_func(){}
10031 int main(){nm_test_var='a';nm_test_func();return(0);}
10034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10035 (eval $ac_compile) 2>&5
10037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10038 (exit $ac_status); }; then
10039 # Now try to grab the symbols.
10041 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
10042 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10045 (exit $ac_status); } && test -s "$nlist"; then
10046 # Try sorting and uniquifying the output.
10047 if sort "$nlist" | uniq > "$nlist"T; then
10048 mv -f "$nlist"T "$nlist"
10053 # Make sure that we snagged all the symbols we need.
10054 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10055 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10056 cat <<EOF > conftest.$ac_ext
10062 # Now generate the symbol file.
10063 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10065 cat <<EOF >> conftest.$ac_ext
10066 #if defined (__STDC__) && __STDC__
10067 # define lt_ptr_t void *
10069 # define lt_ptr_t char *
10073 /* The mapping between symbol names and symbols. */
10078 lt_preloaded_symbols[] =
10081 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10082 cat <<\EOF >> conftest.$ac_ext
10090 # Now try linking the two files.
10091 mv conftest.$ac_objext conftstm.$ac_objext
10092 lt_save_LIBS="$LIBS"
10093 lt_save_CFLAGS="$CFLAGS"
10094 LIBS="conftstm.
$ac_objext"
10095 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10097 (eval $ac_link) 2>&5
10099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10100 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10103 LIBS="$lt_save_LIBS"
10104 CFLAGS="$lt_save_CFLAGS"
10106 echo "cannot
find nm_test_func
in $nlist" >&5
10109 echo "cannot
find nm_test_var
in $nlist" >&5
10112 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10115 echo "$progname: failed program was
:" >&5
10116 cat conftest.$ac_ext >&5
10118 rm -f conftest* conftst*
10120 # Do not use the global_symbol_pipe unless it works.
10121 if test "$pipe_works" = yes; then
10124 lt_cv_sys_global_symbol_pipe=
10130 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10131 lt_cv_sys_global_symbol_to_cdecl=
10133 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10134 { echo "$as_me:$LINENO: result
: failed
" >&5
10135 echo "${ECHO_T}failed
" >&6; }
10137 { echo "$as_me:$LINENO: result
: ok
" >&5
10138 echo "${ECHO_T}ok
" >&6; }
10142 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
10143 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
10144 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10145 echo $ECHO_N "(cached
) $ECHO_C" >&6
10147 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10148 libltdl_cv_preloaded_symbols=yes
10150 libltdl_cv_preloaded_symbols=no
10154 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
10155 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10156 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10158 cat >>confdefs.h <<\_ACEOF
10159 #define HAVE_PRELOADED_SYMBOLS 1
10167 ac_cpp='$CPP $CPPFLAGS'
10168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10173 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
10174 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
10175 if test "${ac_cv_func_shl_load+set}" = set; then
10176 echo $ECHO_N "(cached
) $ECHO_C" >&6
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10186 #define shl_load innocuous_shl_load
10188 /* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char shl_load (); below.
10190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10191 <limits.h> exists even on freestanding compilers. */
10194 # include <limits.h>
10196 # include <assert.h>
10201 /* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10208 /* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211 #if defined __stub_shl_load || defined __stub___shl_load
10218 return shl_load ();
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10232 grep -v '^ *+' conftest.er1 >conftest.err
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
10245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
10255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_func_shl_load=yes
10259 echo "$as_me: failed program was
:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_cv_func_shl_load=no
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10268 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10269 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10270 if test $ac_cv_func_shl_load = yes; then
10272 cat >>confdefs.h <<\_ACEOF
10273 #define HAVE_SHL_LOAD 1
10277 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10278 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
10279 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10280 echo $ECHO_N "(cached
) $ECHO_C" >&6
10282 ac_check_lib_save_LIBS=$LIBS
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10291 /* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10301 return shl_load ();
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_link") 2>conftest.er1
10315 grep -v '^ *+' conftest.er1 >conftest.err
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10321 { (case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_try") 2>&5
10328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest$ac_exeext'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_lib_dld_shl_load=yes
10342 echo "$as_me: failed program was
:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_lib_dld_shl_load=no
10348 rm -f core conftest.err conftest.$ac_objext \
10349 conftest$ac_exeext conftest.$ac_ext
10350 LIBS=$ac_check_lib_save_LIBS
10352 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10353 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10354 if test $ac_cv_lib_dld_shl_load = yes; then
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_SHL_LOAD 1
10360 LIBADD_DL="$LIBADD_DL -ldld"
10362 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10363 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10364 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10365 echo $ECHO_N "(cached
) $ECHO_C" >&6
10367 ac_check_lib_save_LIBS=$LIBS
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10376 /* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10414 (exit $ac_status); }; } &&
10415 { ac_try='test -s conftest$ac_exeext'
10416 { (case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_try") 2>&5
10423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10424 (exit $ac_status); }; }; then
10425 ac_cv_lib_dl_dlopen=yes
10427 echo "$as_me: failed program was
:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 ac_cv_lib_dl_dlopen=no
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LIBS=$ac_check_lib_save_LIBS
10437 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10438 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10439 if test $ac_cv_lib_dl_dlopen = yes; then
10441 cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_LIBDL 1
10445 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10447 cat >conftest.$ac_ext <<_ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10454 # include <dlfcn.h>
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (ac_try="$ac_link"
10467 case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10472 (eval "$ac_link") 2>conftest.er1
10474 grep -v '^ *+' conftest.er1 >conftest.err
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10480 { (case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_try") 2>&5
10487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try='test -s conftest$ac_exeext'
10490 { (case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10495 (eval "$ac_try") 2>&5
10497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10498 (exit $ac_status); }; }; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define HAVE_LIBDL 1
10503 libltdl_cv_func_dlopen="yes"
10505 echo "$as_me: failed program was
:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10509 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10510 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10511 echo $ECHO_N "(cached
) $ECHO_C" >&6
10513 ac_check_lib_save_LIBS=$LIBS
10514 LIBS="-lsvld $LIBS"
10515 cat >conftest.$ac_ext <<_ACEOF
10518 cat confdefs.h >>conftest.$ac_ext
10519 cat >>conftest.$ac_ext <<_ACEOF
10520 /* end confdefs.h. */
10522 /* Override any GCC internal prototype to avoid an error.
10523 Use char because int might match the return type of a GCC
10524 builtin and then its argument prototype would still apply. */
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (ac_try="$ac_link"
10539 case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_link") 2>conftest.er1
10546 grep -v '^ *+' conftest.er1 >conftest.err
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10552 { (case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_try") 2>&5
10559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10560 (exit $ac_status); }; } &&
10561 { ac_try='test -s conftest$ac_exeext'
10562 { (case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_try") 2>&5
10569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10570 (exit $ac_status); }; }; then
10571 ac_cv_lib_svld_dlopen=yes
10573 echo "$as_me: failed program was
:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 ac_cv_lib_svld_dlopen=no
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10583 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10584 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10585 if test $ac_cv_lib_svld_dlopen = yes; then
10587 cat >>confdefs.h <<\_ACEOF
10588 #define HAVE_LIBDL 1
10591 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10593 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10594 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10595 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10596 echo $ECHO_N "(cached
) $ECHO_C" >&6
10598 ac_check_lib_save_LIBS=$LIBS
10600 cat >conftest.$ac_ext <<_ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10617 return dld_link ();
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10631 grep -v '^ *+' conftest.er1 >conftest.err
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10637 { (case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_try") 2>&5
10644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_try") 2>&5
10654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_cv_lib_dld_dld_link=yes
10658 echo "$as_me: failed program was
:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_cv_lib_dld_dld_link=no
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10668 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10669 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10670 if test $ac_cv_lib_dld_dld_link = yes; then
10672 cat >>confdefs.h <<\_ACEOF
10676 LIBADD_DL="$LIBADD_DL -ldld"
10678 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10679 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10680 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10681 echo $ECHO_N "(cached
) $ECHO_C" >&6
10683 cat >conftest.$ac_ext <<_ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10689 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10691 #define _dyld_func_lookup innocuous__dyld_func_lookup
10693 /* System header to define __stub macros and hopefully few prototypes,
10694 which can conflict with char _dyld_func_lookup (); below.
10695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10696 <limits.h> exists even on freestanding compilers. */
10699 # include <limits.h>
10701 # include <assert.h>
10704 #undef _dyld_func_lookup
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10712 char _dyld_func_lookup ();
10713 /* The GNU C library defines this for functions which it implements
10714 to always fail with ENOSYS. Some functions are actually named
10715 something starting with __ and the normal name is an alias. */
10716 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10723 return _dyld_func_lookup ();
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10741 (exit $ac_status); } &&
10742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10743 { (case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_try") 2>&5
10750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10751 (exit $ac_status); }; } &&
10752 { ac_try='test -s conftest$ac_exeext'
10753 { (case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_try") 2>&5
10760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ac_cv_func__dyld_func_lookup=yes
10764 echo "$as_me: failed program was
:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ac_cv_func__dyld_func_lookup=no
10770 rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
10773 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10774 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10775 if test $ac_cv_func__dyld_func_lookup = yes; then
10777 cat >>confdefs.h <<\_ACEOF
10778 #define HAVE_DYLD 1
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10804 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10806 lt_save_LIBS="$LIBS"
10807 LIBS="$LIBS $LIBADD_DL"
10809 for ac_func in dlerror
10811 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10812 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10813 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10814 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10815 echo $ECHO_N "(cached
) $ECHO_C" >&6
10817 cat >conftest.$ac_ext <<_ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10825 #define $ac_func innocuous_$ac_func
10827 /* System header to define __stub macros and hopefully few prototypes,
10828 which can conflict with char $ac_func (); below.
10829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10830 <limits.h> exists even on freestanding compilers. */
10833 # include <limits.h>
10835 # include <assert.h>
10840 /* Override any GCC internal prototype to avoid an error.
10841 Use char because int might match the return type of a GCC
10842 builtin and then its argument prototype would still apply. */
10847 /* The GNU C library defines this for functions which it implements
10848 to always fail with ENOSYS. Some functions are actually named
10849 something starting with __ and the normal name is an alias. */
10850 #if defined __stub_$ac_func || defined __stub___$ac_func
10857 return $ac_func ();
10862 rm -f conftest.$ac_objext conftest$ac_exeext
10863 if { (ac_try="$ac_link"
10864 case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_link") 2>conftest.er1
10871 grep -v '^ *+' conftest.er1 >conftest.err
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10877 { (case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_try") 2>&5
10884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10885 (exit $ac_status); }; } &&
10886 { ac_try='test -s conftest$ac_exeext'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 eval "$as_ac_var=yes"
10898 echo "$as_me: failed program was
:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 eval "$as_ac_var=no
"
10904 rm -f core conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
10907 ac_res=`eval echo '${'$as_ac_var'}'`
10908 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10909 echo "${ECHO_T}$ac_res" >&6; }
10910 if test `eval echo '${'$as_ac_var'}'` = yes; then
10911 cat >>confdefs.h <<_ACEOF
10912 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10918 LIBS="$lt_save_LIBS"
10921 ac_cpp='$CPP $CPPFLAGS'
10922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10928 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10929 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10930 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10931 echo $ECHO_N "(cached
) $ECHO_C" >&6
10933 ac_cv_sys_symbol_underscore=no
10934 cat > conftest.$ac_ext <<EOF
10935 void nm_test_func(){}
10936 int main(){nm_test_func;return 0;}
10938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10939 (eval $ac_compile) 2>&5
10941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10942 (exit $ac_status); }; then
10943 # Now try to grab the symbols.
10944 ac_nlist=conftest.nm
10945 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10946 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10949 (exit $ac_status); } && test -s "$ac_nlist"; then
10950 # See whether the symbols have a leading underscore.
10951 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10952 ac_cv_sys_symbol_underscore=yes
10954 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10957 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10961 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10964 echo "configure
: failed program was
:" >&5
10970 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10971 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10974 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10975 if test x"$libltdl_cv_func_dlopen" = xyes ||
10976 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10977 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10978 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10979 if test "${libltdl_cv_need_uscore+set}" = set; then
10980 echo $ECHO_N "(cached
) $ECHO_C" >&6
10982 libltdl_cv_need_uscore=unknown
10984 LIBS="$LIBS $LIBADD_DL"
10985 if test "$cross_compiling" = yes; then :
10986 libltdl_cv_need_uscore=cross
10988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10989 lt_status=$lt_dlunknown
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10991 "configure
"
10992 #include "confdefs.h
"
11001 # define LT_DLGLOBAL RTLD_GLOBAL
11004 # define LT_DLGLOBAL DL_GLOBAL
11006 # define LT_DLGLOBAL 0
11010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11011 find out it does not work in some platform. */
11012 #ifndef LT_DLLAZY_OR_NOW
11014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11017 # define LT_DLLAZY_OR_NOW DL_LAZY
11020 # define LT_DLLAZY_OR_NOW RTLD_NOW
11023 # define LT_DLLAZY_OR_NOW DL_NOW
11025 # define LT_DLLAZY_OR_NOW 0
11033 extern "C
" void exit (int);
11036 void fnord() { int i=42;}
11039 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11040 int status = $lt_dlunknown;
11044 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
11045 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
11046 /* dlclose (self); */
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>&5
11057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11058 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11059 (./conftest; exit; ) >&5 2>/dev/null
11061 case x$lt_status in
11062 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11063 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11064 x$lt_dlunknown|x*) ;;
11067 # compilation failed
11076 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
11077 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11081 if test x"$libltdl_cv_need_uscore" = xyes; then
11083 cat >>confdefs.h <<\_ACEOF
11084 #define NEED_USCORE 1
11090 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
11091 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
11092 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11093 echo $ECHO_N "(cached
) $ECHO_C" >&6
11095 # PORTME does your system automatically load deplibs for dlopen?
11096 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11097 # For now, we just catch OSes we know something about -- in the
11098 # future, we'll try test this programmatically.
11099 libltdl_cv_sys_dlopen_deplibs=unknown
11101 aix3*|aix4.1.*|aix4.2.*)
11102 # Unknown whether this is true for these versions of AIX, but
11103 # we want this `case' here to explicitly catch those versions.
11104 libltdl_cv_sys_dlopen_deplibs=unknown
11107 libltdl_cv_sys_dlopen_deplibs=yes
11110 # Assuming the user has installed a libdl from somewhere, this is true
11111 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11112 libltdl_cv_sys_dlopen_deplibs=yes
11114 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11115 # GNU and its variants, using gnu ld.so (Glibc)
11116 libltdl_cv_sys_dlopen_deplibs=yes
11119 libltdl_cv_sys_dlopen_deplibs=yes
11122 libltdl_cv_sys_dlopen_deplibs=yes
11124 irix[12345]*|irix6.[01]*)
11125 # Catch all versions of IRIX before 6.2, and indicate that we don't
11126 # know how it worked for any of those versions.
11127 libltdl_cv_sys_dlopen_deplibs=unknown
11130 # The case above catches anything before 6.2, and it's known that
11131 # at 6.2 and later dlopen does load deplibs.
11132 libltdl_cv_sys_dlopen_deplibs=yes
11135 libltdl_cv_sys_dlopen_deplibs=yes
11138 libltdl_cv_sys_dlopen_deplibs=yes
11141 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11142 # it did *not* use an RPATH in a shared library to find objects the
11143 # library depends on, so we explictly say `no'.
11144 libltdl_cv_sys_dlopen_deplibs=no
11146 osf5.0|osf5.0a|osf5.1)
11147 # dlopen *does* load deplibs and with the right loader patch applied
11148 # it even uses RPATH in a shared library to search for shared objects
11149 # that the library depends on, but there's no easy way to know if that
11150 # patch is installed. Since this is the case, all we can really
11151 # say is unknown -- it depends on the patch being installed. If
11152 # it is, this changes to `yes'. Without it, it would be `no'.
11153 libltdl_cv_sys_dlopen_deplibs=unknown
11156 # the two cases above should catch all versions of osf <= 5.1. Read
11157 # the comments above for what we know about them.
11158 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11159 # is used to find them so we can finally say `yes'.
11160 libltdl_cv_sys_dlopen_deplibs=yes
11163 libltdl_cv_sys_dlopen_deplibs=yes
11165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11166 libltdl_cv_sys_dlopen_deplibs=yes
11171 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
11172 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11173 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11175 cat >>confdefs.h <<\_ACEOF
11176 #define LTDL_DLOPEN_DEPLIBS 1
11182 for ac_header in argz.h
11184 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11185 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11186 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11187 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11188 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11189 echo $ECHO_N "(cached
) $ECHO_C" >&6
11191 ac_res=`eval echo '${'$as_ac_Header'}'`
11192 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11193 echo "${ECHO_T}$ac_res" >&6; }
11195 # Is the header compilable?
11196 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11197 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11198 cat >conftest.$ac_ext <<_ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11204 $ac_includes_default
11205 #include <$ac_header>
11207 rm -f conftest.$ac_objext
11208 if { (ac_try="$ac_compile"
11209 case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_compile") 2>conftest.er1
11216 grep -v '^ *+' conftest.er1 >conftest.err
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11220 (exit $ac_status); } &&
11221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11222 { (case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_try") 2>&5
11229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try='test -s conftest.$ac_objext'
11232 { (case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_try") 2>&5
11239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_header_compiler=yes
11243 echo "$as_me: failed program was
:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 ac_header_compiler=no
11249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11250 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11251 echo "${ECHO_T}$ac_header_compiler" >&6; }
11253 # Is the header present?
11254 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11255 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11256 cat >conftest.$ac_ext <<_ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 #include <$ac_header>
11264 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11265 case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11272 grep -v '^ *+' conftest.er1 >conftest.err
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11276 (exit $ac_status); } >/dev/null; then
11277 if test -s conftest.err; then
11278 ac_cpp_err=$ac_c_preproc_warn_flag
11279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11286 if test -z "$ac_cpp_err"; then
11287 ac_header_preproc=yes
11289 echo "$as_me: failed program was
:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 ac_header_preproc=no
11295 rm -f conftest.err conftest.$ac_ext
11296 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11297 echo "${ECHO_T}$ac_header_preproc" >&6; }
11299 # So? What about this header?
11300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11302 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11303 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11304 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11306 ac_header_preproc=yes
11309 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11310 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11311 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11312 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11313 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11314 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11315 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11316 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11317 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11319 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11320 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11322 ## ----------------------------------- ##
11323 ## Report this to llvmbugs@cs.uiuc.edu ##
11324 ## ----------------------------------- ##
11326 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11329 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11330 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11331 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11332 echo $ECHO_N "(cached
) $ECHO_C" >&6
11334 eval "$as_ac_Header=\
$ac_header_preproc"
11336 ac_res=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11342 cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11351 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11352 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11353 if test "${ac_cv_type_error_t+set}" = set; then
11354 echo $ECHO_N "(cached
) $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<_ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11366 typedef error_t ac__type_new_;
11370 if ((ac__type_new_ *) 0)
11372 if (sizeof (ac__type_new_))
11378 rm -f conftest.$ac_objext
11379 if { (ac_try="$ac_compile"
11380 case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_compile") 2>conftest.er1
11387 grep -v '^ *+' conftest.er1 >conftest.err
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11391 (exit $ac_status); } &&
11392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11393 { (case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_try") 2>&5
11400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11401 (exit $ac_status); }; } &&
11402 { ac_try='test -s conftest.$ac_objext'
11403 { (case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_try") 2>&5
11410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_cv_type_error_t=yes
11414 echo "$as_me: failed program was
:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 ac_cv_type_error_t=no
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11423 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11424 if test $ac_cv_type_error_t = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_ERROR_T 1
11433 cat >>confdefs.h <<\_ACEOF
11434 #define error_t int
11445 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11447 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11448 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11449 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11450 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11451 echo $ECHO_N "(cached
) $ECHO_C" >&6
11453 cat >conftest.$ac_ext <<_ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11461 #define $ac_func innocuous_$ac_func
11463 /* System header to define __stub macros and hopefully few prototypes,
11464 which can conflict with char $ac_func (); below.
11465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11466 <limits.h> exists even on freestanding compilers. */
11469 # include <limits.h>
11471 # include <assert.h>
11476 /* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
11483 /* The GNU C library defines this for functions which it implements
11484 to always fail with ENOSYS. Some functions are actually named
11485 something starting with __ and the normal name is an alias. */
11486 #if defined __stub_$ac_func || defined __stub___$ac_func
11493 return $ac_func ();
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (ac_try="$ac_link"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_link") 2>conftest.er1
11507 grep -v '^ *+' conftest.er1 >conftest.err
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11513 { (case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_try") 2>&5
11520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try='test -s conftest$ac_exeext'
11523 { (case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_try") 2>&5
11530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 eval "$as_ac_var=yes"
11534 echo "$as_me: failed program was
:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 eval "$as_ac_var=no
"
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11543 ac_res=`eval echo '${'$as_ac_var'}'`
11544 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11545 echo "${ECHO_T}$ac_res" >&6; }
11546 if test `eval echo '${'$as_ac_var'}'` = yes; then
11547 cat >>confdefs.h <<_ACEOF
11548 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11581 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11584 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11585 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11586 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11587 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11588 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached
) $ECHO_C" >&6
11591 ac_res=`eval echo '${'$as_ac_Header'}'`
11592 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11595 # Is the header compilable?
11596 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11597 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11605 #include <$ac_header>
11607 rm -f conftest.$ac_objext
11608 if { (ac_try="$ac_compile"
11609 case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_compile") 2>conftest.er1
11616 grep -v '^ *+' conftest.er1 >conftest.err
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_try") 2>&5
11639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11640 (exit $ac_status); }; }; then
11641 ac_header_compiler=yes
11643 echo "$as_me: failed program was
:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 ac_header_compiler=no
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11651 echo "${ECHO_T}$ac_header_compiler" >&6; }
11653 # Is the header present?
11654 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11655 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11656 cat >conftest.$ac_ext <<_ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662 #include <$ac_header>
11664 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11676 (exit $ac_status); } >/dev/null; then
11677 if test -s conftest.err; then
11678 ac_cpp_err=$ac_c_preproc_warn_flag
11679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11686 if test -z "$ac_cpp_err"; then
11687 ac_header_preproc=yes
11689 echo "$as_me: failed program was
:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_header_preproc=no
11695 rm -f conftest.err conftest.$ac_ext
11696 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11697 echo "${ECHO_T}$ac_header_preproc" >&6; }
11699 # So? What about this header?
11700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11702 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11703 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11704 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11706 ac_header_preproc=yes
11709 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11710 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11711 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11712 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11713 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11714 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11715 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11716 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11717 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11719 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11720 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11722 ## ----------------------------------- ##
11723 ## Report this to llvmbugs@cs.uiuc.edu ##
11724 ## ----------------------------------- ##
11726 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11729 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11730 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11731 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11732 echo $ECHO_N "(cached
) $ECHO_C" >&6
11734 eval "$as_ac_Header=\
$ac_header_preproc"
11736 ac_res=`eval echo '${'$as_ac_Header'}'`
11737 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11742 cat >>confdefs.h <<_ACEOF
11743 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11754 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11756 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11757 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11758 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11759 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11760 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11761 echo $ECHO_N "(cached
) $ECHO_C" >&6
11763 ac_res=`eval echo '${'$as_ac_Header'}'`
11764 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11765 echo "${ECHO_T}$ac_res" >&6; }
11767 # Is the header compilable?
11768 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11769 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11770 cat >conftest.$ac_ext <<_ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 #include <$ac_header>
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11788 grep -v '^ *+' conftest.er1 >conftest.err
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11794 { (case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_try") 2>&5
11801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_try") 2>&5
11811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_header_compiler=yes
11815 echo "$as_me: failed program was
:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 ac_header_compiler=no
11821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11823 echo "${ECHO_T}$ac_header_compiler" >&6; }
11825 # Is the header present?
11826 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11827 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 #include <$ac_header>
11836 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11848 (exit $ac_status); } >/dev/null; then
11849 if test -s conftest.err; then
11850 ac_cpp_err=$ac_c_preproc_warn_flag
11851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11858 if test -z "$ac_cpp_err"; then
11859 ac_header_preproc=yes
11861 echo "$as_me: failed program was
:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 ac_header_preproc=no
11867 rm -f conftest.err conftest.$ac_ext
11868 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11869 echo "${ECHO_T}$ac_header_preproc" >&6; }
11871 # So? What about this header?
11872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11874 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11875 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11876 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11878 ac_header_preproc=yes
11881 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11882 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11883 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11884 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11885 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11886 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11887 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11888 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11889 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11891 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11892 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11894 ## ----------------------------------- ##
11895 ## Report this to llvmbugs@cs.uiuc.edu ##
11896 ## ----------------------------------- ##
11898 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11901 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11902 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11903 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11904 echo $ECHO_N "(cached
) $ECHO_C" >&6
11906 eval "$as_ac_Header=\
$ac_header_preproc"
11908 ac_res=`eval echo '${'$as_ac_Header'}'`
11909 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11910 echo "${ECHO_T}$ac_res" >&6; }
11913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11914 cat >>confdefs.h <<_ACEOF
11915 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11924 for ac_header in string.h strings.h
11926 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11927 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11928 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11929 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11930 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11931 echo $ECHO_N "(cached
) $ECHO_C" >&6
11933 ac_res=`eval echo '${'$as_ac_Header'}'`
11934 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11935 echo "${ECHO_T}$ac_res" >&6; }
11937 # Is the header compilable?
11938 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11939 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11940 cat >conftest.$ac_ext <<_ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 $ac_includes_default
11947 #include <$ac_header>
11949 rm -f conftest.$ac_objext
11950 if { (ac_try="$ac_compile"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_compile") 2>conftest.er1
11958 grep -v '^ *+' conftest.er1 >conftest.err
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11964 { (case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
11971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest.$ac_objext'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11978 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_header_compiler=yes
11985 echo "$as_me: failed program was
:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_header_compiler=no
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11993 echo "${ECHO_T}$ac_header_compiler" >&6; }
11995 # Is the header present?
11996 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11997 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #include <$ac_header>
12006 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12007 case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12014 grep -v '^ *+' conftest.er1 >conftest.err
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12018 (exit $ac_status); } >/dev/null; then
12019 if test -s conftest.err; then
12020 ac_cpp_err=$ac_c_preproc_warn_flag
12021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12028 if test -z "$ac_cpp_err"; then
12029 ac_header_preproc=yes
12031 echo "$as_me: failed program was
:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 ac_header_preproc=no
12037 rm -f conftest.err conftest.$ac_ext
12038 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12039 echo "${ECHO_T}$ac_header_preproc" >&6; }
12041 # So? What about this header?
12042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12044 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12045 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12046 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12048 ac_header_preproc=yes
12051 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12052 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12053 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12054 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12055 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12056 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12057 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12058 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12059 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12061 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12062 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12064 ## ----------------------------------- ##
12065 ## Report this to llvmbugs@cs.uiuc.edu ##
12066 ## ----------------------------------- ##
12068 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12071 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12072 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12073 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12074 echo $ECHO_N "(cached
) $ECHO_C" >&6
12076 eval "$as_ac_Header=\
$ac_header_preproc"
12078 ac_res=`eval echo '${'$as_ac_Header'}'`
12079 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12080 echo "${ECHO_T}$ac_res" >&6; }
12083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12084 cat >>confdefs.h <<_ACEOF
12085 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12095 for ac_func in strchr index
12097 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12098 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12099 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12100 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12101 echo $ECHO_N "(cached
) $ECHO_C" >&6
12103 cat >conftest.$ac_ext <<_ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12111 #define $ac_func innocuous_$ac_func
12113 /* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char $ac_func (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12119 # include <limits.h>
12121 # include <assert.h>
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12133 /* The GNU C library defines this for functions which it implements
12134 to always fail with ENOSYS. Some functions are actually named
12135 something starting with __ and the normal name is an alias. */
12136 #if defined __stub_$ac_func || defined __stub___$ac_func
12143 return $ac_func ();
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (ac_try="$ac_link"
12150 case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_link") 2>conftest.er1
12157 grep -v '^ *+' conftest.er1 >conftest.err
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163 { (case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_try") 2>&5
12170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 eval "$as_ac_var=yes"
12184 echo "$as_me: failed program was
:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 eval "$as_ac_var=no
"
12190 rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12193 ac_res=`eval echo '${'$as_ac_var'}'`
12194 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12195 echo "${ECHO_T}$ac_res" >&6; }
12196 if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12206 for ac_func in strrchr rindex
12208 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12209 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12210 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12211 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12212 echo $ECHO_N "(cached
) $ECHO_C" >&6
12214 cat >conftest.$ac_ext <<_ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12222 #define $ac_func innocuous_$ac_func
12224 /* System header to define __stub macros and hopefully few prototypes,
12225 which can conflict with char $ac_func (); below.
12226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12227 <limits.h> exists even on freestanding compilers. */
12230 # include <limits.h>
12232 # include <assert.h>
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12244 /* The GNU C library defines this for functions which it implements
12245 to always fail with ENOSYS. Some functions are actually named
12246 something starting with __ and the normal name is an alias. */
12247 #if defined __stub_$ac_func || defined __stub___$ac_func
12254 return $ac_func ();
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (ac_try="$ac_link"
12261 case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_link") 2>conftest.er1
12268 grep -v '^ *+' conftest.er1 >conftest.err
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12272 (exit $ac_status); } &&
12273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12274 { (case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_try") 2>&5
12281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest$ac_exeext'
12284 { (case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_try") 2>&5
12291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 eval "$as_ac_var=yes"
12295 echo "$as_me: failed program was
:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 eval "$as_ac_var=no
"
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12304 ac_res=`eval echo '${'$as_ac_var'}'`
12305 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12306 echo "${ECHO_T}$ac_res" >&6; }
12307 if test `eval echo '${'$as_ac_var'}'` = yes; then
12308 cat >>confdefs.h <<_ACEOF
12309 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12317 for ac_func in memcpy bcopy
12319 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12320 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12321 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12322 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12323 echo $ECHO_N "(cached
) $ECHO_C" >&6
12325 cat >conftest.$ac_ext <<_ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12333 #define $ac_func innocuous_$ac_func
12335 /* System header to define __stub macros and hopefully few prototypes,
12336 which can conflict with char $ac_func (); below.
12337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12338 <limits.h> exists even on freestanding compilers. */
12341 # include <limits.h>
12343 # include <assert.h>
12348 /* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
12355 /* The GNU C library defines this for functions which it implements
12356 to always fail with ENOSYS. Some functions are actually named
12357 something starting with __ and the normal name is an alias. */
12358 #if defined __stub_$ac_func || defined __stub___$ac_func
12365 return $ac_func ();
12370 rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (ac_try="$ac_link"
12372 case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_link") 2>conftest.er1
12379 grep -v '^ *+' conftest.er1 >conftest.err
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12385 { (case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_try") 2>&5
12392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest$ac_exeext'
12395 { (case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_try") 2>&5
12402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12403 (exit $ac_status); }; }; then
12404 eval "$as_ac_var=yes"
12406 echo "$as_me: failed program was
:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 eval "$as_ac_var=no
"
12412 rm -f core conftest.err conftest.$ac_objext \
12413 conftest$ac_exeext conftest.$ac_ext
12415 ac_res=`eval echo '${'$as_ac_var'}'`
12416 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12417 echo "${ECHO_T}$ac_res" >&6; }
12418 if test `eval echo '${'$as_ac_var'}'` = yes; then
12419 cat >>confdefs.h <<_ACEOF
12420 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12428 for ac_func in memmove strcmp
12430 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12431 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12432 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12433 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12434 echo $ECHO_N "(cached
) $ECHO_C" >&6
12436 cat >conftest.$ac_ext <<_ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12444 #define $ac_func innocuous_$ac_func
12446 /* System header to define __stub macros and hopefully few prototypes,
12447 which can conflict with char $ac_func (); below.
12448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12449 <limits.h> exists even on freestanding compilers. */
12452 # include <limits.h>
12454 # include <assert.h>
12459 /* Override any GCC internal prototype to avoid an error.
12460 Use char because int might match the return type of a GCC
12461 builtin and then its argument prototype would still apply. */
12466 /* The GNU C library defines this for functions which it implements
12467 to always fail with ENOSYS. Some functions are actually named
12468 something starting with __ and the normal name is an alias. */
12469 #if defined __stub_$ac_func || defined __stub___$ac_func
12476 return $ac_func ();
12481 rm -f conftest.$ac_objext conftest$ac_exeext
12482 if { (ac_try="$ac_link"
12483 case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12487 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_link") 2>conftest.er1
12490 grep -v '^ *+' conftest.er1 >conftest.err
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12496 { (case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_try") 2>&5
12503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12504 (exit $ac_status); }; } &&
12505 { ac_try='test -s conftest$ac_exeext'
12506 { (case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_try") 2>&5
12513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 eval "$as_ac_var=yes"
12517 echo "$as_me: failed program was
:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 eval "$as_ac_var=no
"
12523 rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12526 ac_res=`eval echo '${'$as_ac_var'}'`
12527 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12528 echo "${ECHO_T}$ac_res" >&6; }
12529 if test `eval echo '${'$as_ac_var'}'` = yes; then
12530 cat >>confdefs.h <<_ACEOF
12531 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12540 for ac_func in closedir opendir readdir
12542 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12543 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12544 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12545 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12546 echo $ECHO_N "(cached
) $ECHO_C" >&6
12548 cat >conftest.$ac_ext <<_ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12556 #define $ac_func innocuous_$ac_func
12558 /* System header to define __stub macros and hopefully few prototypes,
12559 which can conflict with char $ac_func (); below.
12560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12561 <limits.h> exists even on freestanding compilers. */
12564 # include <limits.h>
12566 # include <assert.h>
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12578 /* The GNU C library defines this for functions which it implements
12579 to always fail with ENOSYS. Some functions are actually named
12580 something starting with __ and the normal name is an alias. */
12581 #if defined __stub_$ac_func || defined __stub___$ac_func
12588 return $ac_func ();
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (ac_try="$ac_link"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_link") 2>conftest.er1
12602 grep -v '^ *+' conftest.er1 >conftest.err
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
12615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest$ac_exeext'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 eval "$as_ac_var=yes"
12629 echo "$as_me: failed program was
:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 eval "$as_ac_var=no
"
12635 rm -f core conftest.err conftest.$ac_objext \
12636 conftest$ac_exeext conftest.$ac_ext
12638 ac_res=`eval echo '${'$as_ac_var'}'`
12639 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12640 echo "${ECHO_T}$ac_res" >&6; }
12641 if test `eval echo '${'$as_ac_var'}'` = yes; then
12642 cat >>confdefs.h <<_ACEOF
12643 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12650 # Check whether --enable-shared was given.
12651 if test "${enable_shared+set}" = set; then
12652 enableval=$enable_shared; p=${PACKAGE-default}
12654 yes) enable_shared=yes ;;
12655 no) enable_shared=no ;;
12658 # Look at the argument we got. We use all the common list separators.
12659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12660 for pkg in $enableval; do
12662 if test "X
$pkg" = "X
$p"; then
12674 # Check whether --enable-static was given.
12675 if test "${enable_static+set}" = set; then
12676 enableval=$enable_static; p=${PACKAGE-default}
12678 yes) enable_static=yes ;;
12679 no) enable_static=no ;;
12682 # Look at the argument we got. We use all the common list separators.
12683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12684 for pkg in $enableval; do
12686 if test "X
$pkg" = "X
$p"; then
12698 # Check whether --enable-fast-install was given.
12699 if test "${enable_fast_install+set}" = set; then
12700 enableval=$enable_fast_install; p=${PACKAGE-default}
12702 yes) enable_fast_install=yes ;;
12703 no) enable_fast_install=no ;;
12705 enable_fast_install=no
12706 # Look at the argument we got. We use all the common list separators.
12707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12708 for pkg in $enableval; do
12710 if test "X
$pkg" = "X
$p"; then
12711 enable_fast_install=yes
12718 enable_fast_install=yes
12722 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12723 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12724 if test "${lt_cv_path_SED+set}" = set; then
12725 echo $ECHO_N "(cached
) $ECHO_C" >&6
12727 # Loop through the user's path and test for sed and gsed.
12728 # Then use that list of sed's as ones to test for truncation.
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12733 test -z "$as_dir" && as_dir=.
12734 for lt_ac_prog in sed gsed; do
12735 for ac_exec_ext in '' $ac_executable_extensions; do
12736 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12737 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12744 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12745 # along with /bin/sed that truncates output.
12746 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12747 test ! -f $lt_ac_sed && continue
12748 cat /dev/null > conftest.in
12750 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12751 # Check for GNU sed and select it if it is found.
12752 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12753 lt_cv_path_SED=$lt_ac_sed
12757 cat conftest.in conftest.in >conftest.tmp
12758 mv conftest.tmp conftest.in
12759 cp conftest.in conftest.nl
12761 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12762 cmp -s conftest.out conftest.nl || break
12763 # 10000 chars as input seems more than enough
12764 test $lt_ac_count -gt 10 && break
12765 lt_ac_count=`expr $lt_ac_count + 1`
12766 if test $lt_ac_count -gt $lt_ac_max; then
12767 lt_ac_max=$lt_ac_count
12768 lt_cv_path_SED=$lt_ac_sed
12775 SED=$lt_cv_path_SED
12776 { echo "$as_me:$LINENO: result
: $SED" >&5
12777 echo "${ECHO_T}$SED" >&6; }
12780 # Check whether --with-gnu-ld was given.
12781 if test "${with_gnu_ld+set}" = set; then
12782 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12788 if test "$GCC" = yes; then
12789 # Check if gcc -print-prog-name=ld gives a path.
12790 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12791 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12794 # gcc leaves a trailing carriage return which upsets mingw
12795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12800 # Accept absolute paths.
12802 re_direlt='/[^/][^/]*/\.\./'
12803 # Canonicalize the pathname of ld
12804 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12805 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12806 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12808 test -z "$LD" && LD="$ac_prog"
12811 # If it fails, then pretend we aren't using GCC.
12815 # If it is relative, then search for the first ld in PATH.
12816 with_gnu_ld=unknown
12819 elif test "$with_gnu_ld" = yes; then
12820 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12821 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12823 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12824 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12826 if test "${lt_cv_path_LD+set}" = set; then
12827 echo $ECHO_N "(cached
) $ECHO_C" >&6
12829 if test -z "$LD"; then
12830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12831 for ac_dir in $PATH; do
12833 test -z "$ac_dir" && ac_dir=.
12834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12835 lt_cv_path_LD="$ac_dir/$ac_prog"
12836 # Check to see if the program is GNU ld. I'd rather use --version,
12837 # but apparently some variants of GNU ld only accept -v.
12838 # Break only if it was the GNU/non-GNU ld that we prefer.
12839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12840 *GNU* | *'with BFD'*)
12841 test "$with_gnu_ld" != no && break
12844 test "$with_gnu_ld" != yes && break
12851 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12855 LD="$lt_cv_path_LD"
12856 if test -n "$LD"; then
12857 { echo "$as_me:$LINENO: result
: $LD" >&5
12858 echo "${ECHO_T}$LD" >&6; }
12860 { echo "$as_me:$LINENO: result
: no
" >&5
12861 echo "${ECHO_T}no
" >&6; }
12863 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12864 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12865 { (exit 1); exit 1; }; }
12866 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12867 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12868 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12869 echo $ECHO_N "(cached
) $ECHO_C" >&6
12871 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12872 case `$LD -v 2>&1 </dev/null` in
12873 *GNU* | *'with BFD'*)
12874 lt_cv_prog_gnu_ld=yes
12877 lt_cv_prog_gnu_ld=no
12881 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12882 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12883 with_gnu_ld=$lt_cv_prog_gnu_ld
12886 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12887 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12888 if test "${lt_cv_ld_reload_flag+set}" = set; then
12889 echo $ECHO_N "(cached
) $ECHO_C" >&6
12891 lt_cv_ld_reload_flag='-r'
12893 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12894 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12895 reload_flag=$lt_cv_ld_reload_flag
12896 case $reload_flag in
12898 *) reload_flag=" $reload_flag" ;;
12900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12903 if test "$GCC" = yes; then
12904 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12911 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12912 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12913 if test "${lt_cv_deplibs_check_method+set}" = set; then
12914 echo $ECHO_N "(cached
) $ECHO_C" >&6
12916 lt_cv_file_magic_cmd='$MAGIC_CMD'
12917 lt_cv_file_magic_test_file=
12918 lt_cv_deplibs_check_method='unknown'
12919 # Need to set the preceding variable on all platforms that support
12920 # interlibrary dependencies.
12921 # 'none' -- dependencies not supported.
12922 # `unknown' -- same as none, but documents that we really don't know.
12923 # 'pass_all' -- all dependencies passed with no checks.
12924 # 'test_compile' -- check by making test program.
12925 # 'file_magic [[regex]]' -- check by looking for files in library path
12926 # which responds to the $file_magic_cmd with a given extended regex.
12927 # If you have `file' or equivalent on your system and you're not sure
12928 # whether `pass_all' will *always* work, you probably want this one.
12932 lt_cv_deplibs_check_method=pass_all
12936 lt_cv_deplibs_check_method=pass_all
12940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12941 lt_cv_file_magic_cmd='/usr/bin/file -L'
12942 lt_cv_file_magic_test_file=/shlib/libc.so
12946 # func_win32_libid is a shell function defined in ltmain.sh
12947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12948 lt_cv_file_magic_cmd='func_win32_libid'
12952 # Base MSYS/MinGW do not provide the 'file' command needed by
12953 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12954 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12955 lt_cv_file_magic_cmd='$OBJDUMP -f'
12958 darwin* | rhapsody*)
12959 lt_cv_deplibs_check_method=pass_all
12962 freebsd* | kfreebsd*-gnu | dragonfly*)
12963 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12966 # Not sure whether the presence of OpenBSD here was a mistake.
12967 # Let's accept both of them until this is cleared up.
12968 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12969 lt_cv_file_magic_cmd=/usr/bin/file
12970 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12974 lt_cv_deplibs_check_method=pass_all
12979 lt_cv_deplibs_check_method=pass_all
12982 hpux10.20* | hpux11*)
12983 lt_cv_file_magic_cmd=/usr/bin/file
12986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12987 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12990 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]'
12991 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13001 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13005 irix5* | irix6* | nonstopux*)
13007 *-32|*"-32 ") libmagic=32-bit;;
13008 *-n32|*"-n32 ") libmagic=N32;;
13009 *-64|*"-64 ") libmagic=64-bit;;
13010 *) libmagic=never-match;;
13012 lt_cv_deplibs_check_method=pass_all
13015 # This must be Linux ELF.
13017 lt_cv_deplibs_check_method=pass_all
13021 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13030 lt_cv_file_magic_cmd=/usr/bin/file
13031 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13035 lt_cv_deplibs_check_method=unknown
13039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13046 osf3* | osf4* | osf5*)
13047 lt_cv_deplibs_check_method=pass_all
13051 lt_cv_deplibs_check_method=pass_all
13055 case $host_vendor in
13057 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]'
13058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13061 lt_cv_deplibs_check_method=pass_all
13064 lt_cv_file_magic_cmd='/bin/file'
13065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13068 lt_cv_file_magic_cmd='/bin/file'
13069 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13070 lt_cv_file_magic_test_file=/lib/libc.so
13073 lt_cv_deplibs_check_method=pass_all
13076 lt_cv_deplibs_check_method=pass_all
13081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13082 lt_cv_deplibs_check_method=pass_all
13087 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
13088 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13089 file_magic_cmd=$lt_cv_file_magic_cmd
13090 deplibs_check_method=$lt_cv_deplibs_check_method
13091 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13095 # If no C compiler was specified, use CC.
13098 # If no C compiler flags were specified, use CFLAGS.
13099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13101 # Allow CC to be a program name with arguments.
13104 # Check whether --enable-libtool-lock was given.
13105 if test "${enable_libtool_lock+set}" = set; then
13106 enableval=$enable_libtool_lock;
13109 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13111 # Some flags need to be propagated to the compiler or linker for good
13115 # Find out which ABI we are using.
13116 echo 'int i;' > conftest.$ac_ext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118 (eval $ac_compile) 2>&5
13120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13121 (exit $ac_status); }; then
13122 case `/usr/bin/file conftest.$ac_objext` in
13124 HPUX_IA64_MODE="32"
13127 HPUX_IA64_MODE="64"
13134 # Find out which ABI we are using.
13135 echo '#line 13135 "configure
"' > conftest.$ac_ext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13137 (eval $ac_compile) 2>&5
13139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13140 (exit $ac_status); }; then
13141 if test "$lt_cv_prog_gnu_ld" = yes; then
13142 case `/usr/bin/file conftest.$ac_objext` in
13144 LD="${LD-ld} -melf32bsmip"
13147 LD="${LD-ld} -melf32bmipn32"
13150 LD="${LD-ld} -melf64bmip"
13154 case `/usr/bin/file conftest.$ac_objext` in
13170 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13171 # Find out which ABI we are using.
13172 echo 'int i;' > conftest.$ac_ext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174 (eval $ac_compile) 2>&5
13176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13177 (exit $ac_status); }; then
13178 case `/usr/bin/file conftest.o` in
13182 LD="${LD-ld} -m elf_i386
"
13184 ppc64-*linux*|powerpc64-*linux*)
13185 LD="${LD-ld} -m elf32ppclinux
"
13188 LD="${LD-ld} -m elf_s390
"
13191 LD="${LD-ld} -m elf32_sparc
"
13198 LD="${LD-ld} -m elf_x86_64
"
13200 ppc*-*linux*|powerpc*-*linux*)
13201 LD="${LD-ld} -m elf64ppc
"
13204 LD="${LD-ld} -m elf64_s390
"
13207 LD="${LD-ld} -m elf64_sparc
"
13217 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13218 SAVE_CFLAGS="$CFLAGS"
13219 CFLAGS="$CFLAGS -belf"
13220 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
13221 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
13222 if test "${lt_cv_cc_needs_belf+set}" = set; then
13223 echo $ECHO_N "(cached
) $ECHO_C" >&6
13226 ac_cpp='$CPP $CPPFLAGS'
13227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13231 cat >conftest.$ac_ext <<_ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13246 rm -f conftest.$ac_objext conftest$ac_exeext
13247 if { (ac_try="$ac_link"
13248 case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_link") 2>conftest.er1
13255 grep -v '^ *+' conftest.er1 >conftest.err
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13259 (exit $ac_status); } &&
13260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13261 { (case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_try") 2>&5
13268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest$ac_exeext'
13271 { (case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_try") 2>&5
13278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 lt_cv_cc_needs_belf=yes
13282 echo "$as_me: failed program was
:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13285 lt_cv_cc_needs_belf=no
13288 rm -f core conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13291 ac_cpp='$CPP $CPPFLAGS'
13292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13297 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
13298 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13299 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13300 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13301 CFLAGS="$SAVE_CFLAGS"
13305 # Find out which ABI we are using.
13306 echo 'int i;' > conftest.$ac_ext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>&5
13310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13311 (exit $ac_status); }; then
13312 case `/usr/bin/file conftest.o` in
13314 case $lt_cv_prog_gnu_ld in
13315 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13316 *) LD="${LD-ld} -64" ;;
13327 need_locks="$enable_libtool_lock"
13332 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
13333 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
13334 (test "X
$CXX" != "Xg
++"))) ; then
13336 ac_cpp='$CXXCPP $CPPFLAGS'
13337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13340 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
13341 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
13342 if test -z "$CXXCPP"; then
13343 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13344 echo $ECHO_N "(cached
) $ECHO_C" >&6
13346 # Double quotes because CXXCPP needs to be expanded
13347 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13349 ac_preproc_ok=false
13350 for ac_cxx_preproc_warn_flag in '' yes
13352 # Use a header file that comes with gcc, so configuring glibc
13353 # with a fresh cross-compiler works.
13354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13355 # <limits.h> exists even on freestanding compilers.
13356 # On the NeXT, cc -E runs the code through the compiler's parser,
13357 # not just through cpp. "Syntax error
" is here to catch this case.
13358 cat >conftest.$ac_ext <<_ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13365 # include <limits.h>
13367 # include <assert.h>
13371 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13383 (exit $ac_status); } >/dev/null; then
13384 if test -s conftest.err; then
13385 ac_cpp_err=$ac_cxx_preproc_warn_flag
13386 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13393 if test -z "$ac_cpp_err"; then
13396 echo "$as_me: failed program was
:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 # Broken: fails on valid input.
13403 rm -f conftest.err conftest.$ac_ext
13405 # OK, works on sane cases. Now check whether nonexistent headers
13406 # can be detected and how.
13407 cat >conftest.$ac_ext <<_ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 #include <ac_nonexistent.h>
13415 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13423 grep -v '^ *+' conftest.er1 >conftest.err
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13427 (exit $ac_status); } >/dev/null; then
13428 if test -s conftest.err; then
13429 ac_cpp_err=$ac_cxx_preproc_warn_flag
13430 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13437 if test -z "$ac_cpp_err"; then
13438 # Broken: success on invalid input.
13441 echo "$as_me: failed program was
:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13444 # Passes both tests.
13449 rm -f conftest.err conftest.$ac_ext
13452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13453 rm -f conftest.err conftest.$ac_ext
13454 if $ac_preproc_ok; then
13459 ac_cv_prog_CXXCPP=$CXXCPP
13462 CXXCPP=$ac_cv_prog_CXXCPP
13464 ac_cv_prog_CXXCPP=$CXXCPP
13466 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
13467 echo "${ECHO_T}$CXXCPP" >&6; }
13468 ac_preproc_ok=false
13469 for ac_cxx_preproc_warn_flag in '' yes
13471 # Use a header file that comes with gcc, so configuring glibc
13472 # with a fresh cross-compiler works.
13473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13474 # <limits.h> exists even on freestanding compilers.
13475 # On the NeXT, cc -E runs the code through the compiler's parser,
13476 # not just through cpp. "Syntax error
" is here to catch this case.
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13484 # include <limits.h>
13486 # include <assert.h>
13490 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13498 grep -v '^ *+' conftest.er1 >conftest.err
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13502 (exit $ac_status); } >/dev/null; then
13503 if test -s conftest.err; then
13504 ac_cpp_err=$ac_cxx_preproc_warn_flag
13505 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13512 if test -z "$ac_cpp_err"; then
13515 echo "$as_me: failed program was
:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 # Broken: fails on valid input.
13522 rm -f conftest.err conftest.$ac_ext
13524 # OK, works on sane cases. Now check whether nonexistent headers
13525 # can be detected and how.
13526 cat >conftest.$ac_ext <<_ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13532 #include <ac_nonexistent.h>
13534 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13535 case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13540 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13542 grep -v '^ *+' conftest.er1 >conftest.err
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13546 (exit $ac_status); } >/dev/null; then
13547 if test -s conftest.err; then
13548 ac_cpp_err=$ac_cxx_preproc_warn_flag
13549 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13556 if test -z "$ac_cpp_err"; then
13557 # Broken: success on invalid input.
13560 echo "$as_me: failed program was
:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 # Passes both tests.
13568 rm -f conftest.err conftest.$ac_ext
13571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13572 rm -f conftest.err conftest.$ac_ext
13573 if $ac_preproc_ok; then
13576 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
13577 See \
`config.log' for more details." >&5
13578 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13579 See \`config.log
' for more details." >&2;}
13580 { (exit 1); exit 1; }; }
13584 ac_cpp='$CXXCPP $CPPFLAGS'
13585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13586 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13593 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13594 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13595 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13596 if test -n "$ac_tool_prefix"; then
13597 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
13599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13603 if test "${ac_cv_prog_F77+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 if test -n "$F77"; then
13607 ac_cv_prog_F77="$F77" # Let the user override the test.
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13616 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 F77=$ac_cv_prog_F77
13627 if test -n "$F77"; then
13628 { echo "$as_me:$LINENO: result: $F77" >&5
13629 echo "${ECHO_T}$F77" >&6; }
13631 { echo "$as_me:$LINENO: result: no" >&5
13632 echo "${ECHO_T}no" >&6; }
13636 test -n "$F77" && break
13639 if test -z "$F77"; then
13641 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
13643 # Extract the first word of "$ac_prog", so it can be a program name with args.
13644 set dummy $ac_prog; ac_word=$2
13645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13647 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13650 if test -n "$ac_ct_F77"; then
13651 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654 for as_dir in $PATH
13657 test -z "$as_dir" && as_dir=.
13658 for ac_exec_ext in '' $ac_executable_extensions; do
13659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13660 ac_cv_prog_ac_ct_F77="$ac_prog"
13661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13670 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13671 if test -n "$ac_ct_F77"; then
13672 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13673 echo "${ECHO_T}$ac_ct_F77" >&6; }
13675 { echo "$as_me:$LINENO: result: no" >&5
13676 echo "${ECHO_T}no" >&6; }
13680 test -n "$ac_ct_F77" && break
13683 if test "x$ac_ct_F77" = x; then
13686 case $cross_compiling:$ac_tool_warned in
13688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13689 whose name does not start with the host triplet. If you think this
13690 configuration is useful to you, please write to autoconf@gnu.org." >&5
13691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13692 whose name does not start with the host triplet. If you think this
13693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13694 ac_tool_warned=yes ;;
13701 # Provide some information about the compiler.
13702 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13703 ac_compiler=`set X $ac_compile; echo $2`
13704 { (ac_try="$ac_compiler --version >&5"
13705 case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_compiler --version >&5") 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }
13714 { (ac_try="$ac_compiler -v >&5"
13715 case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_compiler -v >&5") 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }
13724 { (ac_try="$ac_compiler -V >&5"
13725 case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_compiler -V >&5") 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }
13736 # If we don't use
`.F' as extension, the preprocessor is not run on the
13737 # input file. (Note that this only needs to work for GNU compilers.)
13738 ac_save_ext=$ac_ext
13740 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13741 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13742 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 cat >conftest.$ac_ext <<_ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (ac_try="$ac_compile"
13755 case "(($ac_try" in
13756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13757 *) ac_try_echo
=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_compile") 2>conftest.er1
13762 grep -v '^ *+' conftest.er1
>conftest.err
13764 cat conftest.err
>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13768 { (case "(($ac_try" in
13769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13780 *) ac_try_echo
=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_compiler_gnu
=yes
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.
$ac_ext >&5
13795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13796 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13799 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13800 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13801 ac_ext
=$ac_save_ext
13802 ac_test_FFLAGS
=${FFLAGS+set}
13803 ac_save_FFLAGS
=$FFLAGS
13805 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13806 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13807 if test "${ac_cv_prog_f77_g+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 cat >conftest.
$ac_ext <<_ACEOF
13816 rm -f conftest.
$ac_objext
13817 if { (ac_try
="$ac_compile"
13818 case "(($ac_try" in
13819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_compile") 2>conftest.er1
13825 grep -v '^ *+' conftest.er1 >conftest.err
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } &&
13830 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13831 { (case "(($ac_try" in
13832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13833 *) ac_try_echo
=$ac_try;;
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_try") 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; } &&
13840 { ac_try
='test -s conftest.$ac_objext'
13841 { (case "(($ac_try" in
13842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_try") 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 ac_cv_prog_f77_g=yes
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13855 ac_cv_prog_f77_g=no
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13862 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13863 if test "$ac_test_FFLAGS" = set; then
13864 FFLAGS=$ac_save_FFLAGS
13865 elif test $ac_cv_prog_f77_g = yes; then
13866 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13872 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13879 G77=`test $ac_compiler_gnu = yes && echo yes`
13881 ac_cpp='$CPP $CPPFLAGS'
13882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13888 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13890 # find the maximum length of command line arguments
13891 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13892 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13893 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 # On DJGPP, this test can blow up pretty badly due to problems in libc
13902 # (any single argument exceeding 2000 bytes causes a buffer overrun
13903 # during glob expansion). Even if it were fixed, the result of this
13904 # check would be larger than it should be.
13905 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13909 # Under GNU Hurd, this test is not required because there is
13910 # no limit to the length of command line arguments.
13911 # Libtool will interpret -1 as no limit whatsoever
13912 lt_cv_sys_max_cmd_len=-1;
13916 # On Win9x/ME, this test blows up -- it succeeds, but takes
13917 # about 5 minutes as the teststring grows exponentially.
13918 # Worse, since 9x/ME are not pre-emptively multitasking,
13919 # you end up with a "frozen" computer, even though with patience
13920 # the test eventually succeeds (with a max line length of 256k).
13921 # Instead, let's just punt: use the minimum linelength reported by
13922 # all of the supported platforms: 8192 (on NT/2K/XP).
13923 lt_cv_sys_max_cmd_len=8192;
13927 # On AmigaOS with pdksh, this test takes hours, literally.
13928 # So we just punt and use a minimum line length of 8192.
13929 lt_cv_sys_max_cmd_len=8192;
13932 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13933 # This has been around since 386BSD, at least. Likely further.
13934 if test -x /sbin/sysctl; then
13935 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13936 elif test -x /usr/sbin/sysctl; then
13937 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13939 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13941 # And add a safety zone
13942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13947 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13948 lt_cv_sys_max_cmd_len=196608
13952 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13953 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13954 # nice to cause kernel panics so lets avoid the loop below.
13955 # First set a reasonable default.
13956 lt_cv_sys_max_cmd_len=16384
13958 if test -x /sbin/sysconfig; then
13959 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
13960 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13965 lt_cv_sys_max_cmd_len=102400
13967 sysv5* | sco5v6* | sysv4.2uw2*)
13968 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
13969 if test -n "$kargmax"; then
13970 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
13972 lt_cv_sys_max_cmd_len=32768
13976 # If test is not a shell built-in, we'll probably end up computing a
13977 # maximum length that is only half of the actual maximum length, but
13979 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13980 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
13981 = "XX$teststring") >/dev/null 2>&1 &&
13982 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13983 lt_cv_sys_max_cmd_len=$new_result &&
13984 test $i != 17 # 1/2 MB should be enough
13987 teststring=$teststring$teststring
13990 # Add a significant safety factor because C++ compilers can tack on massive
13991 # amounts of additional arguments before passing them to the linker.
13992 # It appears as though 1/2 is a usable value.
13993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
13999 if test -n $lt_cv_sys_max_cmd_len ; then
14000 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14001 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14003 { echo "$as_me:$LINENO: result: none" >&5
14004 echo "${ECHO_T}none" >&6; }
14010 # Check for command to grab the raw symbol name followed by C symbol from nm.
14011 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14012 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14013 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 # These are sane defaults that work on at least a few old systems.
14018 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14020 # Character class describing NM global symbol codes.
14021 symcode='[BCDEGRST]'
14023 # Regexp to match symbols that can be accessed directly from C.
14024 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14026 # Transform an extracted symbol line into a proper C declaration
14027 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14029 # Transform an extracted symbol line into symbol name and symbol address
14030 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'"
14032 # Define system-specific variables.
14037 cygwin* | mingw* | pw32*)
14038 symcode='[ABCDGISTW]'
14040 hpux*) # Its linker distinguishes data from code symbols
14041 if test "$host_cpu" = ia64; then
14042 symcode='[ABCDEGRST]'
14044 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14045 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'"
14048 if test "$host_cpu" = ia64; then
14049 symcode='[ABCDGIRSTW]'
14050 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14051 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'"
14054 irix* | nonstopux*)
14055 symcode='[BCDEGRST]'
14058 symcode='[BCDEGQRST]'
14069 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14077 # Handle CRLF in mingw tool chain
14081 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
14085 # If we're using GNU nm, then use its standard symbol codes.
14086 case `$NM -V 2>&1` in
14087 *GNU* | *'with BFD'*)
14088 symcode='[ABCDGIRSTW]' ;;
14091 # Try without a prefix undercore, then with it.
14092 for ac_symprfx in "" "_"; do
14094 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14095 symxfrm="\\1 $ac_symprfx\\2 \\2"
14097 # Write the raw and C identifiers.
14098 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14100 # Check to see that the pipe works correctly.
14104 cat > conftest.$ac_ext <<EOF
14109 void nm_test_func(){}
14113 int main(){nm_test_var='a';nm_test_func();return(0);}
14116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14117 (eval $ac_compile) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; then
14121 # Now try to grab the symbols.
14123 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14124 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } && test -s "$nlist"; then
14128 # Try sorting and uniquifying the output.
14129 if sort "$nlist" | uniq > "$nlist"T; then
14130 mv -f "$nlist"T "$nlist"
14135 # Make sure that we snagged all the symbols we need.
14136 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14137 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14138 cat <<EOF > conftest.$ac_ext
14144 # Now generate the symbol file.
14145 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14147 cat <<EOF >> conftest.$ac_ext
14148 #if defined (__STDC__) && __STDC__
14149 # define lt_ptr_t void *
14151 # define lt_ptr_t char *
14155 /* The mapping between symbol names and symbols. */
14160 lt_preloaded_symbols[] =
14163 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14164 cat <<\EOF >> conftest.$ac_ext
14172 # Now try linking the two files.
14173 mv conftest.$ac_objext conftstm.$ac_objext
14174 lt_save_LIBS="$LIBS"
14175 lt_save_CFLAGS="$CFLAGS"
14176 LIBS="conftstm.$ac_objext"
14177 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14179 (eval $ac_link) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14185 LIBS="$lt_save_LIBS"
14186 CFLAGS="$lt_save_CFLAGS"
14188 echo "cannot find nm_test_func in $nlist" >&5
14191 echo "cannot find nm_test_var in $nlist" >&5
14194 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14197 echo "$progname: failed program was:" >&5
14198 cat conftest.$ac_ext >&5
14200 rm -f conftest* conftst*
14202 # Do not use the global_symbol_pipe unless it works.
14203 if test "$pipe_works" = yes; then
14206 lt_cv_sys_global_symbol_pipe=
14212 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14213 lt_cv_sys_global_symbol_to_cdecl=
14215 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14216 { echo "$as_me:$LINENO: result: failed" >&5
14217 echo "${ECHO_T}failed" >&6; }
14219 { echo "$as_me:$LINENO: result: ok" >&5
14220 echo "${ECHO_T}ok" >&6; }
14223 { echo "$as_me:$LINENO: checking for objdir" >&5
14224 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14225 if test "${lt_cv_objdir+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 rm -f .libs 2>/dev/null
14229 mkdir .libs 2>/dev/null
14230 if test -d .libs; then
14233 # MS-DOS does not allow filenames that begin with a dot.
14236 rmdir .libs 2>/dev/null
14238 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14239 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14240 objdir=$lt_cv_objdir
14248 # AIX sometimes has problems with the GCC collect2 program. For some
14249 # reason, if we set the COLLECT_NAMES environment variable, the problems
14250 # vanish in a puff of smoke.
14251 if test "X${COLLECT_NAMES+set}" != Xset; then
14253 export COLLECT_NAMES
14258 # Sed substitution that helps us do robust quoting. It backslashifies
14259 # metacharacters that are still active within double-quoted strings.
14260 Xsed='sed -e 1s/^X//'
14261 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
14263 # Same as above, but do not quote variable references.
14264 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
14266 # Sed substitution to delay expansion of an escaped shell variable in a
14267 # double_quote_subst'ed string.
14268 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14270 # Sed substitution to avoid accidental globbing in evaled expressions
14271 no_glob_subst='s/\*/\\\*/g'
14276 # Global variables:
14277 default_ofile=mklib
14278 can_build_shared=yes
14280 # All known linkers require a `.a' archive for static linking (except MSVC,
14281 # which needs '.lib').
14283 ltmain="$ac_aux_dir/ltmain.sh
"
14284 ofile="$default_ofile"
14285 with_gnu_ld="$lt_cv_prog_gnu_ld"
14287 if test -n "$ac_tool_prefix"; then
14288 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14289 set dummy ${ac_tool_prefix}ar; ac_word=$2
14290 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14291 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14292 if test "${ac_cv_prog_AR+set}" = set; then
14293 echo $ECHO_N "(cached
) $ECHO_C" >&6
14295 if test -n "$AR"; then
14296 ac_cv_prog_AR="$AR" # Let the user override the test.
14298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14305 ac_cv_prog_AR="${ac_tool_prefix}ar"
14306 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14316 if test -n "$AR"; then
14317 { echo "$as_me:$LINENO: result
: $AR" >&5
14318 echo "${ECHO_T}$AR" >&6; }
14320 { echo "$as_me:$LINENO: result
: no
" >&5
14321 echo "${ECHO_T}no
" >&6; }
14326 if test -z "$ac_cv_prog_AR"; then
14328 # Extract the first word of "ar", so it can be a program name with args.
14329 set dummy ar; ac_word=$2
14330 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14331 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14332 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14333 echo $ECHO_N "(cached
) $ECHO_C" >&6
14335 if test -n "$ac_ct_AR"; then
14336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14339 for as_dir in $PATH
14342 test -z "$as_dir" && as_dir=.
14343 for ac_exec_ext in '' $ac_executable_extensions; do
14344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14345 ac_cv_prog_ac_ct_AR="ar"
14346 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14356 if test -n "$ac_ct_AR"; then
14357 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14358 echo "${ECHO_T}$ac_ct_AR" >&6; }
14360 { echo "$as_me:$LINENO: result
: no
" >&5
14361 echo "${ECHO_T}no
" >&6; }
14364 if test "x
$ac_ct_AR" = x; then
14367 case $cross_compiling:$ac_tool_warned in
14369 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14370 whose name does not start with the
host triplet. If you think this
14371 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14372 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14373 whose name does not start with the
host triplet. If you think this
14374 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14375 ac_tool_warned=yes ;;
14380 AR="$ac_cv_prog_AR"
14383 if test -n "$ac_tool_prefix"; then
14384 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14386 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14387 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14388 if test "${ac_cv_prog_RANLIB+set}" = set; then
14389 echo $ECHO_N "(cached
) $ECHO_C" >&6
14391 if test -n "$RANLIB"; then
14392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14402 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14411 RANLIB=$ac_cv_prog_RANLIB
14412 if test -n "$RANLIB"; then
14413 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
14414 echo "${ECHO_T}$RANLIB" >&6; }
14416 { echo "$as_me:$LINENO: result
: no
" >&5
14417 echo "${ECHO_T}no
" >&6; }
14422 if test -z "$ac_cv_prog_RANLIB"; then
14423 ac_ct_RANLIB=$RANLIB
14424 # Extract the first word of "ranlib
", so it can be a program name with args.
14425 set dummy ranlib; ac_word=$2
14426 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14427 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14429 echo $ECHO_N "(cached
) $ECHO_C" >&6
14431 if test -n "$ac_ct_RANLIB"; then
14432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14442 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14452 if test -n "$ac_ct_RANLIB"; then
14453 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
14454 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14456 { echo "$as_me:$LINENO: result
: no
" >&5
14457 echo "${ECHO_T}no
" >&6; }
14460 if test "x
$ac_ct_RANLIB" = x; then
14463 case $cross_compiling:$ac_tool_warned in
14465 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14466 whose name does not start with the
host triplet. If you think this
14467 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14468 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14469 whose name does not start with the
host triplet. If you think this
14470 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14471 ac_tool_warned=yes ;;
14473 RANLIB=$ac_ct_RANLIB
14476 RANLIB="$ac_cv_prog_RANLIB"
14479 if test -n "$ac_tool_prefix"; then
14480 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14481 set dummy ${ac_tool_prefix}strip; ac_word=$2
14482 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14483 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14484 if test "${ac_cv_prog_STRIP+set}" = set; then
14485 echo $ECHO_N "(cached
) $ECHO_C" >&6
14487 if test -n "$STRIP"; then
14488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
14496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14497 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14498 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14507 STRIP=$ac_cv_prog_STRIP
14508 if test -n "$STRIP"; then
14509 { echo "$as_me:$LINENO: result
: $STRIP" >&5
14510 echo "${ECHO_T}$STRIP" >&6; }
14512 { echo "$as_me:$LINENO: result
: no
" >&5
14513 echo "${ECHO_T}no
" >&6; }
14518 if test -z "$ac_cv_prog_STRIP"; then
14520 # Extract the first word of "strip
", so it can be a program name with args.
14521 set dummy strip; ac_word=$2
14522 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14523 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14525 echo $ECHO_N "(cached
) $ECHO_C" >&6
14527 if test -n "$ac_ct_STRIP"; then
14528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531 for as_dir in $PATH
14534 test -z "$as_dir" && as_dir=.
14535 for ac_exec_ext in '' $ac_executable_extensions; do
14536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14537 ac_cv_prog_ac_ct_STRIP="strip
"
14538 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14548 if test -n "$ac_ct_STRIP"; then
14549 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
14550 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14552 { echo "$as_me:$LINENO: result
: no
" >&5
14553 echo "${ECHO_T}no
" >&6; }
14556 if test "x
$ac_ct_STRIP" = x; then
14559 case $cross_compiling:$ac_tool_warned in
14561 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14562 whose name does not start with the
host triplet. If you think this
14563 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14564 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14565 whose name does not start with the
host triplet. If you think this
14566 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14567 ac_tool_warned=yes ;;
14572 STRIP="$ac_cv_prog_STRIP"
14577 old_CFLAGS="$CFLAGS"
14579 # Set sane defaults for various variables
14580 test -z "$AR" && AR=ar
14581 test -z "$AR_FLAGS" && AR_FLAGS=cru
14582 test -z "$AS" && AS=as
14583 test -z "$CC" && CC=cc
14584 test -z "$LTCC" && LTCC=$CC
14585 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14586 test -z "$DLLTOOL" && DLLTOOL=dlltool
14587 test -z "$LD" && LD=ld
14588 test -z "$LN_S" && LN_S="ln -s"
14589 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14590 test -z "$NM" && NM=nm
14591 test -z "$SED" && SED=sed
14592 test -z "$OBJDUMP" && OBJDUMP=objdump
14593 test -z "$RANLIB" && RANLIB=:
14594 test -z "$STRIP" && STRIP=:
14595 test -z "$ac_objext" && ac_objext=o
14597 # Determine commands to create old-style static archives.
14598 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14599 old_postinstall_cmds='chmod 644 $oldlib'
14600 old_postuninstall_cmds=
14602 if test -n "$RANLIB"; then
14605 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14608 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14611 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14614 for cc_temp in $compiler""; do
14616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14622 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14625 # Only perform the check for file, if the check method requires it
14626 case $deplibs_check_method in
14628 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14629 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
14630 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
14631 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14632 echo $ECHO_N "(cached
) $ECHO_C" >&6
14636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14639 lt_save_MAGIC_CMD="$MAGIC_CMD"
14640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14641 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14642 for ac_dir in $ac_dummy; do
14644 test -z "$ac_dir" && ac_dir=.
14645 if test -f $ac_dir/${ac_tool_prefix}file; then
14646 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14647 if test -n "$file_magic_test_file"; then
14648 case $deplibs_check_method in
14650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14653 $EGREP "$file_magic_regex" > /dev/null; then
14658 *** Warning: the command libtool uses to detect shared libraries,
14659 *** $file_magic_cmd, produces output that libtool cannot recognize.
14660 *** The result is that libtool may fail to recognize shared libraries
14661 *** as such. This will affect the creation of libtool libraries that
14662 *** depend on shared libraries, but programs linked with such libtool
14663 *** libraries will work regardless of this problem. Nevertheless, you
14664 *** may want to report the problem to your system manager and/or to
14665 *** bug-libtool@gnu.org
14675 MAGIC_CMD="$lt_save_MAGIC_CMD"
14680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14681 if test -n "$MAGIC_CMD"; then
14682 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14683 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14685 { echo "$as_me:$LINENO: result
: no
" >&5
14686 echo "${ECHO_T}no
" >&6; }
14689 if test -z "$lt_cv_path_MAGIC_CMD"; then
14690 if test -n "$ac_tool_prefix"; then
14691 { echo "$as_me:$LINENO: checking
for file" >&5
14692 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14693 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14694 echo $ECHO_N "(cached
) $ECHO_C" >&6
14698 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14701 lt_save_MAGIC_CMD="$MAGIC_CMD"
14702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14703 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14704 for ac_dir in $ac_dummy; do
14706 test -z "$ac_dir" && ac_dir=.
14707 if test -f $ac_dir/file; then
14708 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14709 if test -n "$file_magic_test_file"; then
14710 case $deplibs_check_method in
14712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14715 $EGREP "$file_magic_regex" > /dev/null; then
14720 *** Warning: the command libtool uses to detect shared libraries,
14721 *** $file_magic_cmd, produces output that libtool cannot recognize.
14722 *** The result is that libtool may fail to recognize shared libraries
14723 *** as such. This will affect the creation of libtool libraries that
14724 *** depend on shared libraries, but programs linked with such libtool
14725 *** libraries will work regardless of this problem. Nevertheless, you
14726 *** may want to report the problem to your system manager and/or to
14727 *** bug-libtool@gnu.org
14737 MAGIC_CMD="$lt_save_MAGIC_CMD"
14742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14743 if test -n "$MAGIC_CMD"; then
14744 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14745 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14747 { echo "$as_me:$LINENO: result
: no
" >&5
14748 echo "${ECHO_T}no
" >&6; }
14761 enable_win32_dll=no
14763 # Check whether --enable-libtool-lock was given.
14764 if test "${enable_libtool_lock+set}" = set; then
14765 enableval=$enable_libtool_lock;
14768 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14771 # Check whether --with-pic was given.
14772 if test "${with_pic+set}" = set; then
14773 withval=$with_pic; pic_mode="$withval"
14778 test -z "$pic_mode" && pic_mode=default
14780 # Use C for the default configuration in the libtool script
14784 ac_cpp='$CPP $CPPFLAGS'
14785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14790 # Source file extension for C test sources.
14793 # Object file extension for compiled C test sources.
14797 # Code to be used in simple compile tests
14798 lt_simple_compile_test_code="int some_variable
= 0;\n"
14800 # Code to be used in simple link tests
14801 lt_simple_link_test_code='int main(){return(0);}\n'
14804 # If no C compiler was specified, use CC.
14807 # If no C compiler flags were specified, use CFLAGS.
14808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14810 # Allow CC to be a program name with arguments.
14814 # save warnings/boilerplate of simple test code
14815 ac_outfile=conftest.$ac_objext
14816 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14818 _lt_compiler_boilerplate=`cat conftest.err`
14821 ac_outfile=conftest.$ac_objext
14822 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14824 _lt_linker_boilerplate=`cat conftest.err`
14829 lt_prog_compiler_no_builtin_flag=
14831 if test "$GCC" = yes; then
14832 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14835 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14836 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14838 echo $ECHO_N "(cached
) $ECHO_C" >&6
14840 lt_cv_prog_compiler_rtti_exceptions=no
14841 ac_outfile=conftest.$ac_objext
14842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14843 lt_compiler_flag="-fno-rtti -fno-exceptions"
14844 # Insert the option either (1) after the last *FLAGS variable, or
14845 # (2) before a word containing "conftest.
", or (3) at the end.
14846 # Note that $ac_compile itself does not contain backslashes and begins
14847 # with a dollar sign (not a hyphen), so the echo should work correctly.
14848 # The option is referenced via a variable to avoid confusing sed.
14849 lt_compile=`echo "$ac_compile" | $SED \
14850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14852 -e 's:$: $lt_compiler_flag:'`
14853 (eval echo "\"\
$as_me:14853: $lt_compile\"" >&5)
14854 (eval "$lt_compile" 2>conftest.err)
14856 cat conftest.err >&5
14857 echo "$as_me:14857: \$?
= $ac_status" >&5
14858 if (exit $ac_status) && test -s "$ac_outfile"; then
14859 # The compiler can only warn and ignore the option if not recognized
14860 # So say no if there are warnings other than the usual output.
14861 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14864 lt_cv_prog_compiler_rtti_exceptions=yes
14870 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14871 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14873 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14874 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14881 lt_prog_compiler_wl=
14882 lt_prog_compiler_pic=
14883 lt_prog_compiler_static=
14885 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14886 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14888 if test "$GCC" = yes; then
14889 lt_prog_compiler_wl='-Wl,'
14890 lt_prog_compiler_static='-static'
14894 # All AIX code is PIC.
14895 if test "$host_cpu" = ia64; then
14896 # AIX 5 now supports IA64 processor
14897 lt_prog_compiler_static='-Bstatic'
14902 # FIXME: we need at least 68020 code to build shared libraries, but
14903 # adding the `-m68020' flag to GCC prevents building anything better,
14905 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14908 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14909 # PIC is the default for these OSes.
14912 mingw* | pw32* | os2*)
14913 # This hack is so that the source file can tell whether it is being
14914 # built for inclusion in a dll (and should export symbols for example).
14915 lt_prog_compiler_pic='-DDLL_EXPORT'
14918 darwin* | rhapsody*)
14919 # PIC is the default on this platform
14920 # Common symbols not allowed in MH_DYLIB files
14921 lt_prog_compiler_pic='-fno-common'
14925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14926 # Instead, we relocate shared libraries at runtime.
14930 # Just because we use GCC doesn't mean we suddenly get shared libraries
14931 # on systems that don't support them.
14932 lt_prog_compiler_can_build_shared=no
14937 if test -d /usr/nec; then
14938 lt_prog_compiler_pic=-Kconform_pic
14943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14944 # not for PA HP-UX.
14950 lt_prog_compiler_pic='-fPIC'
14956 lt_prog_compiler_pic='-fPIC'
14960 # PORTME Check for flag to pass linker flags through the system compiler.
14963 lt_prog_compiler_wl='-Wl,'
14964 if test "$host_cpu" = ia64; then
14965 # AIX 5 now supports IA64 processor
14966 lt_prog_compiler_static='-Bstatic'
14968 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14972 # PIC is the default on this platform
14973 # Common symbols not allowed in MH_DYLIB files
14974 case $cc_basename in
14976 lt_prog_compiler_pic='-qnocommon'
14977 lt_prog_compiler_wl='-Wl,'
14982 mingw* | pw32* | os2*)
14983 # This hack is so that the source file can tell whether it is being
14984 # built for inclusion in a dll (and should export symbols for example).
14985 lt_prog_compiler_pic='-DDLL_EXPORT'
14988 hpux9* | hpux10* | hpux11*)
14989 lt_prog_compiler_wl='-Wl,'
14990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14991 # not for PA HP-UX.
14997 lt_prog_compiler_pic='+Z'
15000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15001 lt_prog_compiler_static='${wl}-a ${wl}archive'
15004 irix5* | irix6* | nonstopux*)
15005 lt_prog_compiler_wl='-Wl,'
15006 # PIC (with -KPIC) is the default.
15007 lt_prog_compiler_static='-non_shared'
15011 lt_prog_compiler_pic='-KPIC'
15012 lt_prog_compiler_static='-Bstatic'
15016 case $cc_basename in
15018 lt_prog_compiler_wl='-Wl,'
15019 lt_prog_compiler_pic='-KPIC'
15020 lt_prog_compiler_static='-static'
15022 pgcc* | pgf77* | pgf90* | pgf95*)
15023 # Portland Group compilers (*not* the Pentium gcc compiler,
15024 # which looks to be a dead project)
15025 lt_prog_compiler_wl='-Wl,'
15026 lt_prog_compiler_pic='-fpic'
15027 lt_prog_compiler_static='-Bstatic'
15030 lt_prog_compiler_wl='-Wl,'
15031 # All Alpha code is PIC.
15032 lt_prog_compiler_static='-non_shared'
15037 osf3* | osf4* | osf5*)
15038 lt_prog_compiler_wl='-Wl,'
15039 # All OSF/1 code is PIC.
15040 lt_prog_compiler_static='-non_shared'
15044 lt_prog_compiler_pic='-KPIC'
15045 lt_prog_compiler_static='-Bstatic'
15046 case $cc_basename in
15047 f77* | f90* | f95*)
15048 lt_prog_compiler_wl='-Qoption ld ';;
15050 lt_prog_compiler_wl='-Wl,';;
15055 lt_prog_compiler_wl='-Qoption ld '
15056 lt_prog_compiler_pic='-PIC'
15057 lt_prog_compiler_static='-Bstatic'
15060 sysv4 | sysv4.2uw2* | sysv4.3*)
15061 lt_prog_compiler_wl='-Wl,'
15062 lt_prog_compiler_pic='-KPIC'
15063 lt_prog_compiler_static='-Bstatic'
15067 if test -d /usr/nec ;then
15068 lt_prog_compiler_pic='-Kconform_pic'
15069 lt_prog_compiler_static='-Bstatic'
15073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15074 lt_prog_compiler_wl='-Wl,'
15075 lt_prog_compiler_pic='-KPIC'
15076 lt_prog_compiler_static='-Bstatic'
15080 lt_prog_compiler_wl='-Wl,'
15081 lt_prog_compiler_can_build_shared=no
15085 lt_prog_compiler_pic='-pic'
15086 lt_prog_compiler_static='-Bstatic'
15090 lt_prog_compiler_can_build_shared=no
15095 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
15096 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15099 # Check to make sure the PIC flag actually works.
15101 if test -n "$lt_prog_compiler_pic"; then
15103 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15104 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
15105 if test "${lt_prog_compiler_pic_works+set}" = set; then
15106 echo $ECHO_N "(cached
) $ECHO_C" >&6
15108 lt_prog_compiler_pic_works=no
15109 ac_outfile=conftest.$ac_objext
15110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15112 # Insert the option either (1) after the last *FLAGS variable, or
15113 # (2) before a word containing "conftest.
", or (3) at the end.
15114 # Note that $ac_compile itself does not contain backslashes and begins
15115 # with a dollar sign (not a hyphen), so the echo should work correctly.
15116 # The option is referenced via a variable to avoid confusing sed.
15117 lt_compile=`echo "$ac_compile" | $SED \
15118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15120 -e 's:$: $lt_compiler_flag:'`
15121 (eval echo "\"\
$as_me:15121: $lt_compile\"" >&5)
15122 (eval "$lt_compile" 2>conftest.err)
15124 cat conftest.err >&5
15125 echo "$as_me:15125: \$?
= $ac_status" >&5
15126 if (exit $ac_status) && test -s "$ac_outfile"; then
15127 # The compiler can only warn and ignore the option if not recognized
15128 # So say no if there are warnings other than the usual output.
15129 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15132 lt_prog_compiler_pic_works=yes
15138 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
15139 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15141 if test x"$lt_prog_compiler_pic_works" = xyes; then
15142 case $lt_prog_compiler_pic in
15144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15147 lt_prog_compiler_pic=
15148 lt_prog_compiler_can_build_shared=no
15153 # For platforms which do not support PIC, -DPIC is meaningless:
15155 lt_prog_compiler_pic=
15158 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15163 # Check to make sure the static flag actually works.
15165 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15166 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15167 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
15168 if test "${lt_prog_compiler_static_works+set}" = set; then
15169 echo $ECHO_N "(cached
) $ECHO_C" >&6
15171 lt_prog_compiler_static_works=no
15172 save_LDFLAGS="$LDFLAGS"
15173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15174 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15176 # The linker can only warn and ignore the option if not recognized
15177 # So say no if there are warnings
15178 if test -s conftest.err; then
15179 # Append any errors to the config.log.
15180 cat conftest.err 1>&5
15181 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15183 if diff conftest.exp conftest.er2 >/dev/null; then
15184 lt_prog_compiler_static_works=yes
15187 lt_prog_compiler_static_works=yes
15191 LDFLAGS="$save_LDFLAGS"
15194 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
15195 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15197 if test x"$lt_prog_compiler_static_works" = xyes; then
15200 lt_prog_compiler_static=
15204 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15205 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
15206 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15207 echo $ECHO_N "(cached
) $ECHO_C" >&6
15209 lt_cv_prog_compiler_c_o=no
15210 $rm -r conftest 2>/dev/null
15214 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15216 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15217 # Insert the option either (1) after the last *FLAGS variable, or
15218 # (2) before a word containing "conftest.
", or (3) at the end.
15219 # Note that $ac_compile itself does not contain backslashes and begins
15220 # with a dollar sign (not a hyphen), so the echo should work correctly.
15221 lt_compile=`echo "$ac_compile" | $SED \
15222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15224 -e 's:$: $lt_compiler_flag:'`
15225 (eval echo "\"\
$as_me:15225: $lt_compile\"" >&5)
15226 (eval "$lt_compile" 2>out/conftest.err)
15228 cat out/conftest.err >&5
15229 echo "$as_me:15229: \$?
= $ac_status" >&5
15230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15232 # The compiler can only warn and ignore the option if not recognized
15233 # So say no if there are warnings
15234 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15237 lt_cv_prog_compiler_c_o=yes
15242 # SGI C++ compiler will create directory out/ii_files/ for
15243 # template instantiation
15244 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15245 $rm out/* && rmdir out
15251 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
15252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15255 hard_links="nottested
"
15256 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15257 # do not overwrite the value of need_locks provided by the user
15258 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
15259 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
15262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15264 ln conftest.a conftest.b 2>&5 || hard_links=no
15265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15266 { echo "$as_me:$LINENO: result
: $hard_links" >&5
15267 echo "${ECHO_T}$hard_links" >&6; }
15268 if test "$hard_links" = no; then
15269 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15270 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15277 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15278 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
15281 allow_undefined_flag=
15282 enable_shared_with_static_runtimes=no
15284 archive_expsym_cmds=
15285 old_archive_From_new_cmds=
15286 old_archive_from_expsyms_cmds=
15287 export_dynamic_flag_spec=
15288 whole_archive_flag_spec=
15289 thread_safe_flag_spec=
15290 hardcode_libdir_flag_spec=
15291 hardcode_libdir_flag_spec_ld=
15292 hardcode_libdir_separator=
15294 hardcode_minus_L=no
15295 hardcode_shlibpath_var=unsupported
15296 link_all_deplibs=unknown
15297 hardcode_automatic=no
15299 module_expsym_cmds=
15300 always_export_symbols=no
15301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15302 # include_expsyms should be a list of space-separated symbols to be *always*
15303 # included in the symbol list
15305 # exclude_expsyms can be an extended regexp of symbols to exclude
15306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15308 # as well as any symbol that contains `d'.
15309 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
15310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15311 # platforms (ab)use it in PIC code, but their linkers get confused if
15312 # the symbol is explicitly referenced. Since portable code cannot
15313 # rely on this symbol name, it's probably fine to never include it in
15314 # preloaded symbol tables.
15315 extract_expsyms_cmds=
15316 # Just being paranoid about ensuring that cc_basename is set.
15317 for cc_temp in $compiler""; do
15319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15325 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
15328 cygwin* | mingw* | pw32*)
15329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15330 # When not using gcc, we currently assume that we are using
15331 # Microsoft Visual C++.
15332 if test "$GCC" != yes; then
15337 # we just hope/assume this is gcc and not c89 (= MSVC++)
15346 if test "$with_gnu_ld" = yes; then
15347 # If archive_cmds runs LD, not CC, wlarc should be empty
15350 # Set some defaults for GNU ld with shared library support. These
15351 # are reset later if shared libraries are not supported. Putting them
15352 # here allows them to be overridden if necessary.
15353 runpath_var=LD_RUN_PATH
15354 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15355 export_dynamic_flag_spec='${wl}--export-dynamic'
15356 # ancient GNU ld didn't support --whole-archive et. al.
15357 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15358 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15360 whole_archive_flag_spec=
15362 supports_anon_versioning=no
15363 case `$LD -v 2>/dev/null` in
15364 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15365 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15366 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15367 *\ 2.11.*) ;; # other 2.11 versions
15368 *) supports_anon_versioning=yes ;;
15371 # See if GNU ld supports shared libraries.
15373 aix3* | aix4* | aix5*)
15374 # On AIX/PPC, the GNU linker is very broken
15375 if test "$host_cpu" != ia64; then
15379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15380 *** to be unable to reliably create shared libraries on AIX.
15381 *** Therefore, libtool is disabling shared libraries support. If you
15382 *** really care for shared libraries, you may want to modify your PATH
15383 *** so that a non-GNU linker is found, and then restart.
15390 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)'
15391 hardcode_libdir_flag_spec
='-L$libdir'
15392 hardcode_minus_L
=yes
15394 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15395 # that the semantics of dynamic libraries on AmigaOS, at least up
15396 # to version 4, is to share data among multiple programs linked
15397 # with the same dynamic library. Since this doesn't match the
15398 # behavior of shared libraries on other platforms, we can't use
15404 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15405 allow_undefined_flag
=unsupported
15406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15407 # support --undefined. This deserves some investigation. FIXME
15408 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15414 cygwin
* | mingw
* | pw32
*)
15415 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15416 # as there is no search path for DLLs.
15417 hardcode_libdir_flag_spec
='-L$libdir'
15418 allow_undefined_flag
=unsupported
15419 always_export_symbols
=no
15420 enable_shared_with_static_runtimes
=yes
15421 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15423 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15424 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15425 # If the export-symbols file already is a .def file (1st line
15426 # is EXPORTS), use it as is; otherwise, prepend...
15427 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15428 cp $export_symbols $output_objdir/$soname.def;
15430 echo EXPORTS > $output_objdir/$soname.def;
15431 cat $export_symbols >> $output_objdir/$soname.def;
15433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15441 hardcode_shlibpath_var
=no
15442 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15443 export_dynamic_flag_spec
='${wl}-E'
15444 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15445 # Instead, shared libraries are loaded at an image base (0x10000000 by
15446 # default) and relocated if they conflict, which is a slow very memory
15447 # consuming and fragmenting process. To avoid this, we pick a random,
15448 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15449 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15450 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15451 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'
15455 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15457 case $cc_basename,$host_cpu in
15458 pgcc
*) # Portland Group C compiler
15459 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'
15460 tmp_addflag
=' $pic_flag'
15462 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15463 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'
15464 tmp_addflag
=' $pic_flag -Mnomain' ;;
15465 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15466 tmp_addflag
=' -i_dynamic' ;;
15467 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15468 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15469 ifc
* | ifort
*) # Intel Fortran compiler
15470 tmp_addflag
=' -nofor_main' ;;
15472 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15474 if test $supports_anon_versioning = yes; then
15475 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
15476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15477 $echo "local: *; };" >> $output_objdir/$libname.ver~
15478 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15486 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15487 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15490 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15491 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15496 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15501 *** create shared libraries on Solaris systems. Therefore, libtool
15502 *** is disabling shared libraries support. We urge you to upgrade GNU
15503 *** binutils to release 2.9.1 or newer. Another option is to modify
15504 *** your PATH or compiler configuration so that the native linker is
15505 *** used, and then restart.
15508 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15509 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15510 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15516 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15517 case `$LD -v 2>&1` in
15518 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15523 *** reliably create shared libraries on SCO systems. Therefore, libtool
15524 *** is disabling shared libraries support. We urge you to upgrade GNU
15525 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15526 *** your PATH or compiler configuration so that the native linker is
15527 *** used, and then restart.
15532 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15533 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15534 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15535 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15544 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_direct
=yes
15547 hardcode_shlibpath_var
=no
15551 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15552 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15553 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15560 if test "$ld_shlibs" = no
; then
15562 hardcode_libdir_flag_spec
=
15563 export_dynamic_flag_spec
=
15564 whole_archive_flag_spec
=
15567 # PORTME fill in a description of your system's linker (not GNU ld)
15570 allow_undefined_flag
=unsupported
15571 always_export_symbols
=yes
15572 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'
15573 # Note: this linker hardcodes the directories in LIBPATH if there
15574 # are no directories specified by -L.
15575 hardcode_minus_L
=yes
15576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15577 # Neither direct hardcoding nor static linking is supported with a
15579 hardcode_direct
=unsupported
15584 if test "$host_cpu" = ia64
; then
15585 # On IA64, the linker does run time linking by default, so we don't
15586 # have to do anything special.
15587 aix_use_runtimelinking
=no
15588 exp_sym_flag
='-Bexport'
15591 # If we're using GNU nm, then we don't want the "-C" option.
15592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15593 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15594 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'
15596 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'
15598 aix_use_runtimelinking
=no
15600 # Test if we are trying to use run time linking or normal
15601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15602 # need to do runtime linking.
15603 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15604 for ld_flag
in $LDFLAGS; do
15605 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15606 aix_use_runtimelinking
=yes
15613 exp_sym_flag
='-bexport'
15614 no_entry_flag
='-bnoentry'
15617 # When large executables or shared objects are built, AIX ld can
15618 # have problems creating the table of contents. If linking a library
15619 # or program results in "error TOC overflow" add -mminimal-toc to
15620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15624 hardcode_direct
=yes
15625 hardcode_libdir_separator
=':'
15626 link_all_deplibs
=yes
15628 if test "$GCC" = yes; then
15629 case $host_os in aix4.
[012]|aix4.
[012].
*)
15630 # We only want to do this on AIX 4.2 and lower, the check
15631 # below for broken collect2 doesn't work under 4.3+
15632 collect2name
=`${CC} -print-prog-name=collect2`
15633 if test -f "$collect2name" && \
15634 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15636 # We have reworked collect2
15637 hardcode_direct
=yes
15639 # We have old collect2
15640 hardcode_direct
=unsupported
15641 # It fails to find uninstalled libraries when the uninstalled
15642 # path is not listed in the libpath. Setting hardcode_minus_L
15643 # to unsupported forces relinking
15644 hardcode_minus_L
=yes
15645 hardcode_libdir_flag_spec
='-L$libdir'
15646 hardcode_libdir_separator
=
15650 shared_flag
='-shared'
15651 if test "$aix_use_runtimelinking" = yes; then
15652 shared_flag
="$shared_flag "'${wl}-G'
15656 if test "$host_cpu" = ia64
; then
15657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15658 # chokes on -Wl,-G. The following line is correct:
15661 if test "$aix_use_runtimelinking" = yes; then
15662 shared_flag
='${wl}-G'
15664 shared_flag
='${wl}-bM:SRE'
15669 # It seems that -bexpall does not export symbols beginning with
15670 # underscore (_), so it is better to generate a list of symbols to export.
15671 always_export_symbols
=yes
15672 if test "$aix_use_runtimelinking" = yes; then
15673 # Warning - without using the other runtime loading flags (-brtl),
15674 # -berok will link without error, but may produce a broken library.
15675 allow_undefined_flag
='-berok'
15676 # Determine the default libpath from the value encoded in an empty executable.
15677 cat >conftest.
$ac_ext <<_ACEOF
15680 cat confdefs.h
>>conftest.
$ac_ext
15681 cat >>conftest.
$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15692 rm -f conftest.
$ac_objext conftest
$ac_exeext
15693 if { (ac_try
="$ac_link"
15694 case "(($ac_try" in
15695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_link") 2>conftest.er1
15701 grep -v '^ *+' conftest.er1 >conftest.err
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15707 { (case "(($ac_try" in
15708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15709 *) ac_try_echo
=$ac_try;;
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_try") 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try
='test -s conftest$ac_exeext'
15717 { (case "(($ac_try" in
15718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_try") 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15727 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15729 # Check for a 64-bit object if we didn't find anything.
15730 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; }
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15739 rm -f core conftest.err conftest.$ac_objext \
15740 conftest$ac_exeext conftest.$ac_ext
15741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15743 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15744 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"
15746 if test "$host_cpu" = ia64; then
15747 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15748 allow_undefined_flag="-z nodefs"
15749 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"
15751 # Determine the default libpath from the value encoded in an empty executable.
15752 cat >conftest.$ac_ext <<_ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (ac_try="$ac_link"
15769 case "(($ac_try" in
15770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15771 *) ac_try_echo
=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_link") 2>conftest.er1
15776 grep -v '^ *+' conftest.er1
>conftest.err
15778 cat conftest.err
>&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15782 { (case "(($ac_try" in
15783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_try") 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; } &&
15791 { ac_try='test -s conftest$ac_exeext'
15792 { (case "(($ac_try" in
15793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15794 *) ac_try_echo
=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_try") 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15802 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15804 # Check for a 64-bit object if we didn't find anything.
15805 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; }
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.
$ac_ext >&5
15814 rm -f core conftest.err conftest.
$ac_objext \
15815 conftest
$ac_exeext conftest.
$ac_ext
15816 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15818 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15819 # Warning - without using the other run time loading flags,
15820 # -berok will link without error, but may produce a broken library.
15821 no_undefined_flag
=' ${wl}-bernotok'
15822 allow_undefined_flag
=' ${wl}-berok'
15823 # Exported symbols can be pulled into shared objects from archives
15824 whole_archive_flag_spec
='$convenience'
15825 archive_cmds_need_lc
=yes
15826 # This is similar to how AIX traditionally builds its shared libraries.
15827 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'
15833 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)'
15834 hardcode_libdir_flag_spec
='-L$libdir'
15835 hardcode_minus_L
=yes
15836 # see comment about different semantics on the GNU ld section
15841 export_dynamic_flag_spec
=-rdynamic
15844 cygwin
* | mingw
* | pw32
*)
15845 # When not using gcc, we currently assume that we are using
15846 # Microsoft Visual C++.
15847 # hardcode_libdir_flag_spec is actually meaningless, as there is
15848 # no search path for DLLs.
15849 hardcode_libdir_flag_spec
=' '
15850 allow_undefined_flag
=unsupported
15851 # Tell ltmain to make .lib files, not .a files.
15853 # Tell ltmain to make .dll files, not .so files.
15855 # FIXME: Setting linknames here is a bad hack.
15856 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15857 # The linker will automatically build a .lib file if we build a DLL.
15858 old_archive_From_new_cmds
='true'
15859 # FIXME: Should let the user specify the lib program.
15860 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15861 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15862 enable_shared_with_static_runtimes
=yes
15865 darwin
* | rhapsody
*)
15867 rhapsody
* | darwin1.
[012])
15868 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15871 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15872 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15874 case ${MACOSX_DEPLOYMENT_TARGET} in
15876 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15879 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15885 archive_cmds_need_lc
=no
15887 hardcode_automatic
=yes
15888 hardcode_shlibpath_var
=unsupported
15889 whole_archive_flag_spec
=''
15890 link_all_deplibs
=yes
15891 if test "$GCC" = yes ; then
15892 output_verbose_link_cmd
='echo'
15893 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15894 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15895 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15896 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}'
15897 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}'
15899 case $cc_basename in
15901 output_verbose_link_cmd
='echo'
15902 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15903 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15905 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}'
15906 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}'
15916 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15917 hardcode_libdir_flag_spec
='-L$libdir'
15918 hardcode_shlibpath_var
=no
15925 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15926 # support. Future versions do this automatically, but an explicit c++rt0.o
15927 # does not break anything, and helps significantly (at the cost of a little
15930 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15931 hardcode_libdir_flag_spec
='-R$libdir'
15932 hardcode_direct
=yes
15933 hardcode_shlibpath_var
=no
15936 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15938 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15939 hardcode_direct
=yes
15940 hardcode_minus_L
=yes
15941 hardcode_shlibpath_var
=no
15944 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15945 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15946 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15947 hardcode_libdir_flag_spec
='-R$libdir'
15948 hardcode_direct
=yes
15949 hardcode_shlibpath_var
=no
15953 if test "$GCC" = yes; then
15954 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'
15956 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'
15958 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15959 hardcode_libdir_separator
=:
15960 hardcode_direct
=yes
15962 # hardcode_minus_L: Not really in the search PATH,
15963 # but as the default location of the library.
15964 hardcode_minus_L
=yes
15965 export_dynamic_flag_spec
='${wl}-E'
15969 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15970 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15972 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15974 if test "$with_gnu_ld" = no
; then
15975 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15976 hardcode_libdir_separator
=:
15978 hardcode_direct
=yes
15979 export_dynamic_flag_spec
='${wl}-E'
15981 # hardcode_minus_L: Not really in the search PATH,
15982 # but as the default location of the library.
15983 hardcode_minus_L
=yes
15988 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15991 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15994 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15997 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16003 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16006 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16009 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16013 if test "$with_gnu_ld" = no
; then
16014 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16015 hardcode_libdir_separator
=:
16019 hardcode_libdir_flag_spec_ld
='+b $libdir'
16021 hardcode_shlibpath_var
=no
16024 hardcode_direct
=yes
16025 export_dynamic_flag_spec
='${wl}-E'
16027 # hardcode_minus_L: Not really in the search PATH,
16028 # but as the default location of the library.
16029 hardcode_minus_L
=yes
16035 irix5
* | irix6
* | nonstopux
*)
16036 if test "$GCC" = yes; then
16037 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'
16039 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'
16040 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16042 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16043 hardcode_libdir_separator
=:
16044 link_all_deplibs
=yes
16048 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16049 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16051 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16053 hardcode_libdir_flag_spec
='-R$libdir'
16054 hardcode_direct
=yes
16055 hardcode_shlibpath_var
=no
16059 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_direct
=yes
16061 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16062 hardcode_libdir_separator
=:
16063 hardcode_shlibpath_var
=no
16067 hardcode_direct
=yes
16068 hardcode_shlibpath_var
=no
16069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16070 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16071 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16072 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16073 export_dynamic_flag_spec
='${wl}-E'
16076 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16077 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_libdir_flag_spec
='-R$libdir'
16081 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16082 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16089 hardcode_libdir_flag_spec
='-L$libdir'
16090 hardcode_minus_L
=yes
16091 allow_undefined_flag
=unsupported
16092 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'
16093 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16097 if test "$GCC" = yes; then
16098 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16099 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'
16101 allow_undefined_flag
=' -expect_unresolved \*'
16102 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'
16104 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16105 hardcode_libdir_separator
=:
16108 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16109 if test "$GCC" = yes; then
16110 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16111 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'
16112 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16114 allow_undefined_flag
=' -expect_unresolved \*'
16115 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'
16116 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16117 $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'
16119 # Both c and cxx compiler support -rpath directly
16120 hardcode_libdir_flag_spec
='-rpath $libdir'
16122 hardcode_libdir_separator
=:
16126 no_undefined_flag
=' -z text'
16127 if test "$GCC" = yes; then
16129 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16130 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16131 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16134 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16136 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16138 hardcode_libdir_flag_spec
='-R$libdir'
16139 hardcode_shlibpath_var
=no
16141 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16143 # The compiler driver will combine linker options so we
16144 # cannot just pass the convience library names through
16145 # without $wl, iff we do not link with $LD.
16146 # Luckily, gcc supports the same syntax we need for Sun Studio.
16147 # Supported since Solaris 2.6 (maybe 2.5.1?)
16150 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
16152 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' ;;
16155 link_all_deplibs
=yes
16159 if test "x$host_vendor" = xsequent
; then
16160 # Use $CC to link under sequent, because it throws in some extra .o
16161 # files that make .init and .fini sections work.
16162 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16166 hardcode_libdir_flag_spec
='-L$libdir'
16167 hardcode_direct
=yes
16168 hardcode_minus_L
=yes
16169 hardcode_shlibpath_var
=no
16173 case $host_vendor in
16175 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 hardcode_direct
=yes # is this really true???
16179 ## LD is ld it makes a PLAMLIB
16180 ## CC just makes a GrossModule.
16181 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16182 reload_cmds
='$CC -r -o $output$reload_objs'
16186 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16190 runpath_var
='LD_RUN_PATH'
16191 hardcode_shlibpath_var
=no
16195 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_shlibpath_var
=no
16197 export_dynamic_flag_spec
='-Bexport'
16201 if test -d /usr
/nec
; then
16202 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_shlibpath_var
=no
16204 runpath_var
=LD_RUN_PATH
16205 hardcode_runpath_var
=yes
16210 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
16211 no_undefined_flag
='${wl}-z,text'
16212 archive_cmds_need_lc
=no
16213 hardcode_shlibpath_var
=no
16214 runpath_var
='LD_RUN_PATH'
16216 if test "$GCC" = yes; then
16217 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16218 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16225 sysv5
* | sco3.2v5
* | sco5v6
*)
16226 # Note: We can NOT use -z defs as we might desire, because we do not
16227 # link with -lc, and that would cause any symbols used from libc to
16228 # always be unresolved, which means just about no library would
16229 # ever link correctly. If we're not using GNU ld we use -z text
16230 # though, which does catch some bad symbols but isn't as heavy-handed
16232 no_undefined_flag
='${wl}-z,text'
16233 allow_undefined_flag
='${wl}-z,nodefs'
16234 archive_cmds_need_lc
=no
16235 hardcode_shlibpath_var
=no
16236 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16237 hardcode_libdir_separator
=':'
16238 link_all_deplibs
=yes
16239 export_dynamic_flag_spec
='${wl}-Bexport'
16240 runpath_var
='LD_RUN_PATH'
16242 if test "$GCC" = yes; then
16243 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16244 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16246 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16252 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16253 hardcode_libdir_flag_spec
='-L$libdir'
16254 hardcode_shlibpath_var
=no
16263 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16264 echo "${ECHO_T}$ld_shlibs" >&6; }
16265 test "$ld_shlibs" = no
&& can_build_shared
=no
16268 # Do we need to explicitly link libc?
16270 case "x$archive_cmds_need_lc" in
16272 # Assume -lc should be added
16273 archive_cmds_need_lc
=yes
16275 if test "$enable_shared" = yes && test "$GCC" = yes; then
16276 case $archive_cmds in
16278 # FIXME: we may have to deal with multi-command sequences.
16281 # Test whether the compiler implicitly links with -lc since on some
16282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16283 # to ld, don't add -lc before -lgcc.
16284 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16285 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16287 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16290 (eval $ac_compile) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } 2>conftest.err
; then
16296 libobjs
=conftest.
$ac_objext
16298 wl
=$lt_prog_compiler_wl
16299 pic_flag
=$lt_prog_compiler_pic
16305 lt_save_allow_undefined_flag
=$allow_undefined_flag
16306 allow_undefined_flag
=
16307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16308 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }
16313 archive_cmds_need_lc
=no
16315 archive_cmds_need_lc
=yes
16317 allow_undefined_flag
=$lt_save_allow_undefined_flag
16319 cat conftest.err
1>&5
16322 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16323 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16330 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16332 library_names_spec
=
16333 libname_spec
='lib$name'
16337 postuninstall_cmds
=
16341 shlibpath_overrides_runpath
=unknown
16343 dynamic_linker
="$host_os ld.so"
16344 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16345 if test "$GCC" = yes; then
16346 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16347 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16348 # if the path contains ";" then we assume it to be the separator
16349 # otherwise default to the standard path separator (i.e. ":") - it is
16350 # assumed that no part of a normal pathname contains ";" but that should
16351 # okay in the real world where ";" in dirpaths is itself problematic.
16352 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16354 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16357 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16359 need_lib_prefix
=unknown
16360 hardcode_into_libs
=no
16362 # when you set need_version to no, make sure it does not cause -set_version
16363 # flags to be left without arguments
16364 need_version
=unknown
16369 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16370 shlibpath_var
=LIBPATH
16372 # AIX 3 has no versioning support, so we append a major version to the name.
16373 soname_spec
='${libname}${release}${shared_ext}$major'
16380 hardcode_into_libs
=yes
16381 if test "$host_cpu" = ia64
; then
16382 # AIX 5 supports IA64
16383 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16384 shlibpath_var
=LD_LIBRARY_PATH
16386 # With GCC up to 2.95.x, collect2 would create an import file
16387 # for dependence libraries. The import file would start with
16388 # the line `#! .'. This would cause the generated library to
16389 # depend on `.', always an invalid library. This was fixed in
16390 # development snapshots of GCC prior to 3.0.
16392 aix4 | aix4.
[01] | aix4.
[01].
*)
16393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16395 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16398 can_build_shared
=no
16402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16403 # soname into executable. Probably we can add versioning support to
16404 # collect2, so additional links can be useful in future.
16405 if test "$aix_use_runtimelinking" = yes; then
16406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16407 # instead of lib<name>.a to let people know that these are not
16408 # typical AIX shared libraries.
16409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411 # We preserve .a as extension for shared libraries through AIX4.2
16412 # and later when we are not doing run time linking.
16413 library_names_spec
='${libname}${release}.a $libname.a'
16414 soname_spec
='${libname}${release}${shared_ext}$major'
16416 shlibpath_var
=LIBPATH
16421 library_names_spec
='$libname.ixlibrary $libname.a'
16422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16423 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'
16427 library_names_spec
='${libname}${shared_ext}'
16428 dynamic_linker
="$host_os ld.so"
16429 shlibpath_var
=LIBRARY_PATH
16435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec
='${libname}${release}${shared_ext}$major'
16437 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16438 shlibpath_var
=LD_LIBRARY_PATH
16439 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16440 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16441 # the default ld.so.conf also contains /usr/contrib/lib and
16442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16443 # libtool to hard-code these into programs
16446 cygwin
* | mingw
* | pw32
*)
16447 version_type
=windows
16452 case $GCC,$host_os in
16453 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16454 library_names_spec
='$libname.dll.a'
16455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16456 postinstall_cmds
='base_file=`basename \${file}`~
16457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16458 dldir=$destdir/`dirname \$dlpath`~
16459 test -d \$dldir || mkdir -p \$dldir~
16460 $install_prog $dir/$dlname \$dldir/$dlname~
16461 chmod a+x \$dldir/$dlname'
16462 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16463 dlpath=$dir/\$dldll~
16465 shlibpath_overrides_runpath
=yes
16469 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16470 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16471 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16474 # MinGW DLLs use traditional 'lib' prefix
16475 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16476 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16477 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16478 # It is most probably a Windows format PATH printed by
16479 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16480 # path with ; separators, and with drive letters. We can handle the
16481 # drive letters (cygwin fileutils understands them), so leave them,
16482 # especially as we might pass files found there to a mingw objdump,
16483 # which wouldn't understand a cygwinified path. Ahh.
16484 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16486 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16490 # pw32 DLLs use 'pw' prefix rather than 'lib'
16491 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16497 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16500 dynamic_linker
='Win32 ld.exe'
16501 # FIXME: first we should search . and the directory the executable is in
16505 darwin
* | rhapsody
*)
16506 dynamic_linker
="$host_os dyld"
16507 version_type
=darwin
16510 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16511 soname_spec
='${libname}${release}${major}$shared_ext'
16512 shlibpath_overrides_runpath
=yes
16513 shlibpath_var
=DYLD_LIBRARY_PATH
16514 shrext_cmds
='.dylib'
16515 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16516 if test "$GCC" = yes; then
16517 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"`
16519 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
16521 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16529 soname_spec
='${libname}${release}${shared_ext}$major'
16530 shlibpath_var
=LD_LIBRARY_PATH
16541 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16542 soname_spec
='${libname}${release}${shared_ext}$major'
16543 shlibpath_var
=LD_LIBRARY_PATH
16544 shlibpath_overrides_runpath
=no
16545 hardcode_into_libs
=yes
16546 dynamic_linker
='GNU ld.so'
16549 freebsd
* | dragonfly
*)
16550 # DragonFly does not have aout. When/if they implement a new
16551 # versioning mechanism, adjust this.
16552 if test -x /usr
/bin
/objformat
; then
16553 objformat
=`/usr/bin/objformat`
16556 freebsd
[123]*) objformat
=aout
;;
16557 *) objformat
=elf
;;
16560 version_type
=freebsd-
$objformat
16561 case $version_type in
16563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16568 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16572 shlibpath_var
=LD_LIBRARY_PATH
16575 shlibpath_overrides_runpath
=yes
16577 freebsd3.
[01]* | freebsdelf3.
[01]*)
16578 shlibpath_overrides_runpath
=yes
16579 hardcode_into_libs
=yes
16581 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16582 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16583 shlibpath_overrides_runpath
=no
16584 hardcode_into_libs
=yes
16586 freebsd
*) # from 4.6 on
16587 shlibpath_overrides_runpath
=yes
16588 hardcode_into_libs
=yes
16597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16598 soname_spec
='${libname}${release}${shared_ext}$major'
16599 shlibpath_var
=LD_LIBRARY_PATH
16600 hardcode_into_libs
=yes
16603 hpux9
* | hpux10
* | hpux11
*)
16604 # Give a soname corresponding to the major version so that dld.sl refuses to
16605 # link against other versions.
16612 hardcode_into_libs
=yes
16613 dynamic_linker
="$host_os dld.so"
16614 shlibpath_var
=LD_LIBRARY_PATH
16615 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16617 soname_spec
='${libname}${release}${shared_ext}$major'
16618 if test "X$HPUX_IA64_MODE" = X32
; then
16619 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16621 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16623 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16627 hardcode_into_libs
=yes
16628 dynamic_linker
="$host_os dld.sl"
16629 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16630 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632 soname_spec
='${libname}${release}${shared_ext}$major'
16633 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16634 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16638 dynamic_linker
="$host_os dld.sl"
16639 shlibpath_var
=SHLIB_PATH
16640 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16641 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16642 soname_spec
='${libname}${release}${shared_ext}$major'
16645 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16646 postinstall_cmds
='chmod 555 $lib'
16653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16654 soname_spec
='${libname}${release}${shared_ext}$major'
16655 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16656 shlibpath_var
=LD_LIBRARY_PATH
16657 shlibpath_overrides_runpath
=no
16658 hardcode_into_libs
=yes
16661 irix5
* | irix6
* | nonstopux
*)
16663 nonstopux
*) version_type
=nonstopux
;;
16665 if test "$lt_cv_prog_gnu_ld" = yes; then
16673 soname_spec
='${libname}${release}${shared_ext}$major'
16674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16676 irix5
* | nonstopux
*)
16677 libsuff
= shlibsuff
=
16680 case $LD in # libtool.m4 will add one of these switches to LD
16681 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16682 libsuff
= shlibsuff
= libmagic
=32-bit;;
16683 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16684 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16685 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16686 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16687 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16691 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16692 shlibpath_overrides_runpath
=no
16693 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16694 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16695 hardcode_into_libs
=yes
16698 # No shared lib support for Linux oldld, aout, or coff.
16699 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16703 # This must be Linux ELF.
16708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 soname_spec
='${libname}${release}${shared_ext}$major'
16710 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16711 shlibpath_var
=LD_LIBRARY_PATH
16712 shlibpath_overrides_runpath
=no
16713 # This implies no fast_install, which is unacceptable.
16714 # Some rework will be needed to allow for fast_install
16715 # before this can be enabled.
16716 hardcode_into_libs
=yes
16718 # Append ld.so.conf contents to the search path
16719 if test -f /etc
/ld.so.conf
; then
16720 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' ' '`
16721 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16724 # We used to test for /lib/ld.so.1 and disable shared libraries on
16725 # powerpc, because MkLinux only supported shared libraries with the
16726 # GNU dynamic linker. Since this was broken with cross compilers,
16727 # most powerpc-linux boxes support dynamic linking these days and
16728 # people can always --disable-shared, the test was removed, and we
16729 # assume the GNU/Linux dynamic linker is in use.
16730 dynamic_linker
='GNU/Linux ld.so'
16737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16738 soname_spec
='${libname}${release}${shared_ext}$major'
16739 shlibpath_var
=LD_LIBRARY_PATH
16740 shlibpath_overrides_runpath
=no
16741 hardcode_into_libs
=yes
16742 dynamic_linker
='GNU ld.so'
16749 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16751 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16752 dynamic_linker
='NetBSD (a.out) ld.so'
16754 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16755 soname_spec
='${libname}${release}${shared_ext}$major'
16756 dynamic_linker
='NetBSD ld.elf_so'
16758 shlibpath_var
=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath
=yes
16760 hardcode_into_libs
=yes
16765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 shlibpath_var
=LD_LIBRARY_PATH
16767 shlibpath_overrides_runpath
=yes
16774 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 soname_spec
='${libname}${release}${shared_ext}$major'
16776 shlibpath_var
=LD_LIBRARY_PATH
16777 shlibpath_overrides_runpath
=yes
16782 sys_lib_dlsearch_path_spec
="/usr/lib"
16784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16786 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16787 *) need_version
=no
;;
16789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16790 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16791 shlibpath_var
=LD_LIBRARY_PATH
16792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16794 openbsd2.
[89] | openbsd2.
[89].
*)
16795 shlibpath_overrides_runpath
=no
16798 shlibpath_overrides_runpath
=yes
16802 shlibpath_overrides_runpath
=yes
16807 libname_spec
='$name'
16810 library_names_spec
='$libname${shared_ext} $libname.a'
16811 dynamic_linker
='OS/2 ld.exe'
16812 shlibpath_var
=LIBPATH
16815 osf3
* | osf4
* | osf5
*)
16819 soname_spec
='${libname}${release}${shared_ext}$major'
16820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 shlibpath_var
=LD_LIBRARY_PATH
16822 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16823 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831 soname_spec
='${libname}${release}${shared_ext}$major'
16832 shlibpath_var
=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath
=yes
16834 hardcode_into_libs
=yes
16835 # ldd complains unless libraries are executable
16836 postinstall_cmds
='chmod +x $lib'
16841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16842 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16843 shlibpath_var
=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath
=yes
16845 if test "$with_gnu_ld" = yes; then
16853 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 soname_spec
='${libname}${release}${shared_ext}$major'
16855 shlibpath_var
=LD_LIBRARY_PATH
16856 case $host_vendor in
16858 shlibpath_overrides_runpath
=no
16860 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16861 runpath_var
=LD_RUN_PATH
16869 shlibpath_overrides_runpath
=no
16870 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16876 if test -d /usr
/nec
;then
16878 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16879 soname_spec
='$libname${shared_ext}.$major'
16880 shlibpath_var
=LD_LIBRARY_PATH
16884 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16885 version_type
=freebsd-elf
16888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16889 soname_spec
='${libname}${release}${shared_ext}$major'
16890 shlibpath_var
=LD_LIBRARY_PATH
16891 hardcode_into_libs
=yes
16892 if test "$with_gnu_ld" = yes; then
16893 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16894 shlibpath_overrides_runpath
=no
16896 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16897 shlibpath_overrides_runpath
=yes
16900 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16904 sys_lib_dlsearch_path_spec
='/usr/lib'
16909 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910 soname_spec
='${libname}${release}${shared_ext}$major'
16911 shlibpath_var
=LD_LIBRARY_PATH
16918 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16919 echo "${ECHO_T}$dynamic_linker" >&6; }
16920 test "$dynamic_linker" = no
&& can_build_shared
=no
16922 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16923 if test "$GCC" = yes; then
16924 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16927 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16928 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16930 if test -n "$hardcode_libdir_flag_spec" || \
16931 test -n "$runpath_var" || \
16932 test "X$hardcode_automatic" = "Xyes" ; then
16934 # We can hardcode non-existant directories.
16935 if test "$hardcode_direct" != no
&&
16936 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16937 # have to relink, otherwise we might link with an installed library
16938 # when we should be linking with a yet-to-be-installed one
16939 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16940 test "$hardcode_minus_L" != no
; then
16941 # Linking always hardcodes the temporary library directory.
16942 hardcode_action
=relink
16944 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16945 hardcode_action
=immediate
16948 # We cannot hardcode anything, or else we can only hardcode existing
16950 hardcode_action
=unsupported
16952 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16953 echo "${ECHO_T}$hardcode_action" >&6; }
16955 if test "$hardcode_action" = relink
; then
16956 # Fast installation is not supported
16957 enable_fast_install
=no
16958 elif test "$shlibpath_overrides_runpath" = yes ||
16959 test "$enable_shared" = no
; then
16960 # Fast installation is not necessary
16961 enable_fast_install
=needless
16966 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16967 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16968 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16969 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16970 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16971 { echo "$as_me:$LINENO: result: yes" >&5
16972 echo "${ECHO_T}yes" >&6; }
16974 # FIXME - insert some real tests, host_os isn't really good enough
16977 if test -n "$STRIP" ; then
16978 striplib
="$STRIP -x"
16979 { echo "$as_me:$LINENO: result: yes" >&5
16980 echo "${ECHO_T}yes" >&6; }
16982 { echo "$as_me:$LINENO: result: no" >&5
16983 echo "${ECHO_T}no" >&6; }
16987 { echo "$as_me:$LINENO: result: no" >&5
16988 echo "${ECHO_T}no" >&6; }
16993 if test "x$enable_dlopen" != xyes
; then
16994 enable_dlopen
=unknown
16995 enable_dlopen_self
=unknown
16996 enable_dlopen_self_static
=unknown
17003 lt_cv_dlopen
="load_add_on"
17005 lt_cv_dlopen_self
=yes
17009 lt_cv_dlopen
="LoadLibrary"
17014 lt_cv_dlopen
="dlopen"
17019 # if libdl is installed we need to link against it
17020 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17021 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17022 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 ac_check_lib_save_LIBS
=$LIBS
17027 cat >conftest.
$ac_ext <<_ACEOF
17030 cat confdefs.h
>>conftest.
$ac_ext
17031 cat >>conftest.
$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17034 /* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17049 rm -f conftest.
$ac_objext conftest
$ac_exeext
17050 if { (ac_try
="$ac_link"
17051 case "(($ac_try" in
17052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_link") 2>conftest.er1
17058 grep -v '^ *+' conftest.er1 >conftest.err
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
17063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17064 { (case "(($ac_try" in
17065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17066 *) ac_try_echo
=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_try") 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try
='test -s conftest$ac_exeext'
17074 { (case "(($ac_try" in
17075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_try") 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_cv_lib_dl_dlopen=yes
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17088 ac_cv_lib_dl_dlopen=no
17091 rm -f core conftest.err conftest.$ac_objext \
17092 conftest$ac_exeext conftest.$ac_ext
17093 LIBS=$ac_check_lib_save_LIBS
17095 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17096 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17097 if test $ac_cv_lib_dl_dlopen = yes; then
17098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17101 lt_cv_dlopen="dyld"
17103 lt_cv_dlopen_self=yes
17110 { echo "$as_me:$LINENO: checking for shl_load" >&5
17111 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17112 if test "${ac_cv_func_shl_load+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 cat >conftest.$ac_ext <<_ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17123 #define shl_load innocuous_shl_load
17125 /* System header to define __stub macros and hopefully few prototypes,
17126 which can conflict with char shl_load (); below.
17127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17128 <limits.h> exists even on freestanding compilers. */
17131 # include <limits.h>
17133 # include <assert.h>
17138 /* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17145 /* The GNU C library defines this for functions which it implements
17146 to always fail with ENOSYS. Some functions are actually named
17147 something starting with __ and the normal name is an alias. */
17148 #if defined __stub_shl_load || defined __stub___shl_load
17155 return shl_load ();
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (ac_try="$ac_link"
17162 case "(($ac_try" in
17163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17164 *) ac_try_echo
=$ac_try;;
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_link") 2>conftest.er1
17169 grep -v '^ *+' conftest.er1
>conftest.err
17171 cat conftest.err
>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } &&
17174 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17175 { (case "(($ac_try" in
17176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest$ac_exeext'
17185 { (case "(($ac_try" in
17186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17187 *) ac_try_echo
=$ac_try;;
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_try") 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_func_shl_load
=yes
17196 echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.
$ac_ext >&5
17199 ac_cv_func_shl_load
=no
17202 rm -f core conftest.err conftest.
$ac_objext \
17203 conftest
$ac_exeext conftest.
$ac_ext
17205 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17206 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17207 if test $ac_cv_func_shl_load = yes; then
17208 lt_cv_dlopen
="shl_load"
17210 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17211 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17212 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17215 ac_check_lib_save_LIBS
=$LIBS
17217 cat >conftest.
$ac_ext <<_ACEOF
17220 cat confdefs.h
>>conftest.
$ac_ext
17221 cat >>conftest.
$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17224 /* Override any GCC internal prototype to avoid an error.
17225 Use char because int might match the return type of a GCC
17226 builtin and then its argument prototype would still apply. */
17234 return shl_load ();
17239 rm -f conftest.
$ac_objext conftest
$ac_exeext
17240 if { (ac_try
="$ac_link"
17241 case "(($ac_try" in
17242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_link") 2>conftest.er1
17248 grep -v '^ *+' conftest.er1 >conftest.err
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17256 *) ac_try_echo
=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try
='test -s conftest$ac_exeext'
17264 { (case "(($ac_try" in
17265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_try") 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 ac_cv_lib_dld_shl_load=yes
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ac_cv_lib_dld_shl_load=no
17281 rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext conftest.$ac_ext
17283 LIBS=$ac_check_lib_save_LIBS
17285 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17286 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17287 if test $ac_cv_lib_dld_shl_load = yes; then
17288 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17290 { echo "$as_me:$LINENO: checking for dlopen" >&5
17291 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17292 if test "${ac_cv_func_dlopen+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 cat >conftest.$ac_ext <<_ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17303 #define dlopen innocuous_dlopen
17305 /* System header to define __stub macros and hopefully few prototypes,
17306 which can conflict with char dlopen (); below.
17307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17308 <limits.h> exists even on freestanding compilers. */
17311 # include <limits.h>
17313 # include <assert.h>
17318 /* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply. */
17325 /* The GNU C library defines this for functions which it implements
17326 to always fail with ENOSYS. Some functions are actually named
17327 something starting with __ and the normal name is an alias. */
17328 #if defined __stub_dlopen || defined __stub___dlopen
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17344 *) ac_try_echo
=$ac_try;;
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>conftest.er1
17349 grep -v '^ *+' conftest.er1
>conftest.err
17351 cat conftest.err
>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17355 { (case "(($ac_try" in
17356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_try") 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest$ac_exeext'
17365 { (case "(($ac_try" in
17366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17367 *) ac_try_echo
=$ac_try;;
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_try") 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_func_dlopen
=yes
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.
$ac_ext >&5
17379 ac_cv_func_dlopen
=no
17382 rm -f core conftest.err conftest.
$ac_objext \
17383 conftest
$ac_exeext conftest.
$ac_ext
17385 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17386 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17387 if test $ac_cv_func_dlopen = yes; then
17388 lt_cv_dlopen
="dlopen"
17390 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17391 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17392 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 ac_check_lib_save_LIBS
=$LIBS
17397 cat >conftest.
$ac_ext <<_ACEOF
17400 cat confdefs.h
>>conftest.
$ac_ext
17401 cat >>conftest.
$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17404 /* Override any GCC internal prototype to avoid an error.
17405 Use char because int might match the return type of a GCC
17406 builtin and then its argument prototype would still apply. */
17419 rm -f conftest.
$ac_objext conftest
$ac_exeext
17420 if { (ac_try
="$ac_link"
17421 case "(($ac_try" in
17422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17428 grep -v '^ *+' conftest.er1 >conftest.err
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17434 { (case "(($ac_try" in
17435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17436 *) ac_try_echo
=$ac_try;;
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_try") 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try
='test -s conftest$ac_exeext'
17444 { (case "(($ac_try" in
17445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_try") 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_cv_lib_dl_dlopen=yes
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 ac_cv_lib_dl_dlopen=no
17461 rm -f core conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17463 LIBS=$ac_check_lib_save_LIBS
17465 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17466 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17467 if test $ac_cv_lib_dl_dlopen = yes; then
17468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17470 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17471 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17472 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 ac_check_lib_save_LIBS=$LIBS
17476 LIBS="-lsvld $LIBS"
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17484 /* Override any GCC internal prototype to avoid an error.
17485 Use char because int might match the return type of a GCC
17486 builtin and then its argument prototype would still apply. */
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (ac_try="$ac_link"
17501 case "(($ac_try" in
17502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17503 *) ac_try_echo
=$ac_try;;
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_link") 2>conftest.er1
17508 grep -v '^ *+' conftest.er1
>conftest.err
17510 cat conftest.err
>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } &&
17513 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17514 { (case "(($ac_try" in
17515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_try") 2>&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (case "(($ac_try" in
17525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17526 *) ac_try_echo
=$ac_try;;
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_try") 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_cv_lib_svld_dlopen
=yes
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.
$ac_ext >&5
17538 ac_cv_lib_svld_dlopen
=no
17541 rm -f core conftest.err conftest.
$ac_objext \
17542 conftest
$ac_exeext conftest.
$ac_ext
17543 LIBS
=$ac_check_lib_save_LIBS
17545 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17546 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17547 if test $ac_cv_lib_svld_dlopen = yes; then
17548 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17550 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17551 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17552 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 ac_check_lib_save_LIBS
=$LIBS
17557 cat >conftest.
$ac_ext <<_ACEOF
17560 cat confdefs.h
>>conftest.
$ac_ext
17561 cat >>conftest.
$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17564 /* Override any GCC internal prototype to avoid an error.
17565 Use char because int might match the return type of a GCC
17566 builtin and then its argument prototype would still apply. */
17574 return dld_link ();
17579 rm -f conftest.
$ac_objext conftest
$ac_exeext
17580 if { (ac_try
="$ac_link"
17581 case "(($ac_try" in
17582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17596 *) ac_try_echo
=$ac_try;;
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try
='test -s conftest$ac_exeext'
17604 { (case "(($ac_try" in
17605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 ac_cv_lib_dld_dld_link=yes
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 ac_cv_lib_dld_dld_link=no
17621 rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17623 LIBS=$ac_check_lib_save_LIBS
17625 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17626 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17627 if test $ac_cv_lib_dld_dld_link = yes; then
17628 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17649 if test "x$lt_cv_dlopen" != xno; then
17655 case $lt_cv_dlopen in
17657 save_CPPFLAGS="$CPPFLAGS"
17658 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17660 save_LDFLAGS="$LDFLAGS"
17661 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17664 LIBS="$lt_cv_dlopen_libs $LIBS"
17666 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17667 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17668 if test "${lt_cv_dlopen_self+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 if test "$cross_compiling" = yes; then :
17672 lt_cv_dlopen_self=cross
17674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17675 lt_status=$lt_dlunknown
17676 cat > conftest.$ac_ext <<EOF
17677 #line 17677 "configure"
17678 #include "confdefs.h"
17687 # define LT_DLGLOBAL RTLD_GLOBAL
17690 # define LT_DLGLOBAL DL_GLOBAL
17692 # define LT_DLGLOBAL 0
17696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17697 find out it does not work in some platform. */
17698 #ifndef LT_DLLAZY_OR_NOW
17700 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17703 # define LT_DLLAZY_OR_NOW DL_LAZY
17706 # define LT_DLLAZY_OR_NOW RTLD_NOW
17709 # define LT_DLLAZY_OR_NOW DL_NOW
17711 # define LT_DLLAZY_OR_NOW 0
17719 extern "C" void exit (int);
17722 void fnord() { int i=42;}
17725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17726 int status = $lt_dlunknown;
17730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17731 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17732 /* dlclose (self); */
17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17741 (eval $ac_link) 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17745 (./conftest; exit; ) >&5 2>/dev/null
17747 case x$lt_status in
17748 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17749 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17750 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17753 # compilation failed
17754 lt_cv_dlopen_self=no
17761 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17762 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17764 if test "x$lt_cv_dlopen_self" = xyes; then
17765 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17766 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17767 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17768 if test "${lt_cv_dlopen_self_static+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 if test "$cross_compiling" = yes; then :
17772 lt_cv_dlopen_self_static=cross
17774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17775 lt_status=$lt_dlunknown
17776 cat > conftest.$ac_ext <<EOF
17777 #line 17777 "configure"
17778 #include "confdefs.h"
17787 # define LT_DLGLOBAL RTLD_GLOBAL
17790 # define LT_DLGLOBAL DL_GLOBAL
17792 # define LT_DLGLOBAL 0
17796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17797 find out it does not work in some platform. */
17798 #ifndef LT_DLLAZY_OR_NOW
17800 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17803 # define LT_DLLAZY_OR_NOW DL_LAZY
17806 # define LT_DLLAZY_OR_NOW RTLD_NOW
17809 # define LT_DLLAZY_OR_NOW DL_NOW
17811 # define LT_DLLAZY_OR_NOW 0
17819 extern "C" void exit (int);
17822 void fnord() { int i=42;}
17825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17826 int status = $lt_dlunknown;
17830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17831 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17832 /* dlclose (self); */
17840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17841 (eval $ac_link) 2>&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17845 (./conftest; exit; ) >&5 2>/dev/null
17847 case x$lt_status in
17848 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17849 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17850 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17853 # compilation failed
17854 lt_cv_dlopen_self_static=no
17861 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17862 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17865 CPPFLAGS="$save_CPPFLAGS"
17866 LDFLAGS="$save_LDFLAGS"
17871 case $lt_cv_dlopen_self in
17872 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17873 *) enable_dlopen_self=unknown ;;
17876 case $lt_cv_dlopen_self_static in
17877 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17878 *) enable_dlopen_self_static=unknown ;;
17883 # Report which library types will actually be built
17884 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17885 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17886 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17887 echo "${ECHO_T}$can_build_shared" >&6; }
17889 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17890 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17891 test "$can_build_shared" = "no" && enable_shared=no
17893 # On AIX, shared libraries and static libraries use the same namespace, and
17894 # are all built from PIC.
17897 test "$enable_shared" = yes && enable_static=no
17898 if test -n "$RANLIB"; then
17899 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17900 postinstall_cmds='$RANLIB $lib'
17905 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17906 test "$enable_shared" = yes && enable_static=no
17910 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17911 echo "${ECHO_T}$enable_shared" >&6; }
17913 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17914 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17915 # Make sure either enable_shared or enable_static is yes.
17916 test "$enable_shared" = yes || enable_static=yes
17917 { echo "$as_me:$LINENO: result: $enable_static" >&5
17918 echo "${ECHO_T}$enable_static" >&6; }
17920 # The else clause should only fire when bootstrapping the
17921 # libtool distribution, otherwise you forgot to ship ltmain.sh
17922 # with your package, and you will get complaints that there are
17923 # no rules to generate ltmain.sh.
17924 if test -f "$ltmain"; then
17925 # See if we are running on zsh, and set the options which allow our commands through
17926 # without removal of \ escapes.
17927 if test -n "${ZSH_VERSION+set}" ; then
17928 setopt NO_GLOB_SUBST
17930 # Now quote all the things that may contain metacharacters while being
17931 # careful not to overquote the AC_SUBSTed values. We take copies of the
17932 # variables and quote the copies for generation of the libtool script.
17933 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17935 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17936 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17937 deplibs_check_method reload_flag reload_cmds need_locks \
17938 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17939 lt_cv_sys_global_symbol_to_c_name_address \
17940 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17941 old_postinstall_cmds old_postuninstall_cmds \
17945 lt_prog_compiler_wl \
17946 lt_prog_compiler_pic \
17947 lt_prog_compiler_static \
17948 lt_prog_compiler_no_builtin_flag \
17949 export_dynamic_flag_spec \
17950 thread_safe_flag_spec \
17951 whole_archive_flag_spec \
17952 enable_shared_with_static_runtimes \
17954 old_archive_from_new_cmds \
17959 compiler_lib_search_path \
17961 archive_expsym_cmds \
17963 postuninstall_cmds \
17964 old_archive_from_expsyms_cmds \
17965 allow_undefined_flag \
17966 no_undefined_flag \
17967 export_symbols_cmds \
17968 hardcode_libdir_flag_spec \
17969 hardcode_libdir_flag_spec_ld \
17970 hardcode_libdir_separator \
17971 hardcode_automatic \
17973 module_expsym_cmds \
17974 lt_cv_prog_compiler_c_o \
17976 include_expsyms; do
17979 old_archive_cmds | \
17980 old_archive_from_new_cmds | \
17982 archive_expsym_cmds | \
17984 module_expsym_cmds | \
17985 old_archive_from_expsyms_cmds | \
17986 export_symbols_cmds | \
17987 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17988 postinstall_cmds | postuninstall_cmds | \
17989 old_postinstall_cmds | old_postuninstall_cmds | \
17990 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17991 # Double-quote double-evaled strings.
17992 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
17995 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
18001 *'\$0 --fallback-echo"')
18002 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18006 cfgfile="${ofile}T"
18007 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18009 { echo "$as_me:$LINENO: creating $ofile" >&5
18010 echo "$as_me: creating $ofile" >&6;}
18012 cat <<__EOF__ >> "$cfgfile"
18015 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
18016 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18017 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18019 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18020 # Free Software Foundation, Inc.
18022 # This file is part of GNU Libtool:
18023 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18025 # This program is free software; you can redistribute it and/or modify
18026 # it under the terms of the GNU General Public License as published by
18027 # the Free Software Foundation; either version 2 of the License, or
18028 # (at your option) any later version.
18030 # This program is distributed in the hope that it will be useful, but
18031 # WITHOUT ANY WARRANTY; without even the implied warranty of
18032 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18033 # General Public License for more details.
18035 # You should have received a copy of the GNU General Public License
18036 # along with this program; if not, write to the Free Software
18037 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18039 # As a special exception to the GNU General Public License, if you
18040 # distribute this file as part of a program that contains a
18041 # configuration script generated by Autoconf, you may include it under
18042 # the same distribution terms that you use for the rest of that program.
18044 # A sed program that does not truncate output.
18047 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18048 Xsed="$SED -e 1s/^X//"
18050 # The HP-UX ksh and POSIX shell print the target directory to stdout
18051 # if CDPATH is set.
18052 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18054 # The names of the tagged configurations supported by this script.
18057 # ### BEGIN LIBTOOL CONFIG
18059 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
18061 # Shell to use when invoking shell scripts.
18064 # Whether or not to build shared libraries.
18065 build_libtool_libs=$enable_shared
18067 # Whether or not to build static libraries.
18068 build_old_libs=$enable_static
18070 # Whether or not to add -lc for building shared libraries.
18071 build_libtool_need_lc=$archive_cmds_need_lc
18073 # Whether or not to disallow shared libs when runtime libs are static
18074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18076 # Whether or not to optimize for fast installation.
18077 fast_install=$enable_fast_install
18080 host_alias=$host_alias
18084 # The build system.
18085 build_alias=$build_alias
18089 # An echo program that does not interpret backslashes.
18094 AR_FLAGS=$lt_AR_FLAGS
18099 # LTCC compiler flags.
18100 LTCFLAGS=$lt_LTCFLAGS
18102 # A language-specific compiler.
18105 # Is the compiler the GNU C compiler?
18111 # The linker used to build libraries.
18114 # Whether we need hard or soft links.
18117 # A BSD-compatible nm program.
18120 # A symbol stripping program
18123 # Used to examine libraries when file_magic_cmd begins "file"
18124 MAGIC_CMD=$MAGIC_CMD
18126 # Used on cygwin: DLL creation program.
18129 # Used on cygwin: object dumper.
18132 # Used on cygwin: assembler.
18135 # The name of the directory that contains temporary libtool files.
18138 # How to create reloadable object files.
18139 reload_flag=$lt_reload_flag
18140 reload_cmds=$lt_reload_cmds
18142 # How to pass a linker flag through the compiler.
18143 wl=$lt_lt_prog_compiler_wl
18145 # Object file suffix (normally "o").
18146 objext="$ac_objext"
18148 # Old archive suffix (normally "a").
18151 # Shared library suffix (normally ".so").
18152 shrext_cmds='$shrext_cmds'
18154 # Executable file suffix (normally "").
18157 # Additional compiler flags for building library objects.
18158 pic_flag=$lt_lt_prog_compiler_pic
18161 # What is the maximum length of a command?
18162 max_cmd_len=$lt_cv_sys_max_cmd_len
18164 # Does compiler simultaneously support -c and -o options?
18165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18167 # Must we lock files when doing compilation?
18168 need_locks=$lt_need_locks
18170 # Do we need the lib prefix for modules?
18171 need_lib_prefix=$need_lib_prefix
18173 # Do we need a version for libraries?
18174 need_version=$need_version
18176 # Whether dlopen is supported.
18177 dlopen_support=$enable_dlopen
18179 # Whether dlopen of programs is supported.
18180 dlopen_self=$enable_dlopen_self
18182 # Whether dlopen of statically linked programs is supported.
18183 dlopen_self_static=$enable_dlopen_self_static
18185 # Compiler flag to prevent dynamic linking.
18186 link_static_flag=$lt_lt_prog_compiler_static
18188 # Compiler flag to turn off builtin functions.
18189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18191 # Compiler flag to allow reflexive dlopens.
18192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18194 # Compiler flag to generate shared objects directly from archives.
18195 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18197 # Compiler flag to generate thread-safe objects.
18198 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18200 # Library versioning type.
18201 version_type=$version_type
18203 # Format of library name prefix.
18204 libname_spec=$lt_libname_spec
18206 # List of archive names. First name is the real one, the rest are links.
18207 # The last name is the one that the linker finds with -lNAME.
18208 library_names_spec=$lt_library_names_spec
18210 # The coded name of the library, if different from the real name.
18211 soname_spec=$lt_soname_spec
18213 # Commands used to build and install an old-style archive.
18215 old_archive_cmds=$lt_old_archive_cmds
18216 old_postinstall_cmds=$lt_old_postinstall_cmds
18217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18219 # Create an old-style archive from a shared archive.
18220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18222 # Create a temporary old-style archive to link instead of a shared archive.
18223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18225 # Commands used to build and install a shared archive.
18226 archive_cmds=$lt_archive_cmds
18227 archive_expsym_cmds=$lt_archive_expsym_cmds
18228 postinstall_cmds=$lt_postinstall_cmds
18229 postuninstall_cmds=$lt_postuninstall_cmds
18231 # Commands used to build a loadable module (assumed same as above if empty)
18232 module_cmds=$lt_module_cmds
18233 module_expsym_cmds=$lt_module_expsym_cmds
18235 # Commands to strip libraries.
18236 old_striplib=$lt_old_striplib
18237 striplib=$lt_striplib
18239 # Dependencies to place before the objects being linked to create a
18241 predep_objects=$lt_predep_objects
18243 # Dependencies to place after the objects being linked to create a
18245 postdep_objects=$lt_postdep_objects
18247 # Dependencies to place before the objects being linked to create a
18249 predeps=$lt_predeps
18251 # Dependencies to place after the objects being linked to create a
18253 postdeps=$lt_postdeps
18255 # The library search path used internally by the compiler when linking
18256 # a shared library.
18257 compiler_lib_search_path=$lt_compiler_lib_search_path
18259 # Method to check whether dependent libraries are shared objects.
18260 deplibs_check_method=$lt_deplibs_check_method
18262 # Command to use when deplibs_check_method == file_magic.
18263 file_magic_cmd=$lt_file_magic_cmd
18265 # Flag that allows shared libraries with undefined symbols to be built.
18266 allow_undefined_flag=$lt_allow_undefined_flag
18268 # Flag that forces no undefined symbols.
18269 no_undefined_flag=$lt_no_undefined_flag
18271 # Commands used to finish a libtool library installation in a directory.
18272 finish_cmds=$lt_finish_cmds
18274 # Same as above, but a single script fragment to be evaled but not shown.
18275 finish_eval=$lt_finish_eval
18277 # Take the output of nm and produce a listing of raw symbols and C names.
18278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18280 # Transform the output of nm in a proper C declaration
18281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18283 # Transform the output of nm in a C name address pair
18284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18286 # This is the shared library runtime path variable.
18287 runpath_var=$runpath_var
18289 # This is the shared library path variable.
18290 shlibpath_var=$shlibpath_var
18292 # Is shlibpath searched before the hard-coded library search path?
18293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18295 # How to hardcode a shared library path into an executable.
18296 hardcode_action=$hardcode_action
18298 # Whether we should hardcode library paths into libraries.
18299 hardcode_into_libs=$hardcode_into_libs
18301 # Flag to hardcode \$libdir into a binary during linking.
18302 # This must work even if \$libdir does not exist.
18303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18305 # If ld is used when linking, flag to hardcode \$libdir into
18306 # a binary during linking. This must work even if \$libdir does
18308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18310 # Whether we need a single -rpath flag with a separated argument.
18311 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18314 # resulting binary.
18315 hardcode_direct=$hardcode_direct
18317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18318 # resulting binary.
18319 hardcode_minus_L=$hardcode_minus_L
18321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18322 # the resulting binary.
18323 hardcode_shlibpath_var=$hardcode_shlibpath_var
18325 # Set to yes if building a shared library automatically hardcodes DIR into the library
18326 # and all subsequent libraries and executables linked against it.
18327 hardcode_automatic=$hardcode_automatic
18329 # Variables whose values should be saved in libtool wrapper scripts and
18330 # restored at relink time.
18331 variables_saved_for_relink="$variables_saved_for_relink"
18333 # Whether libtool must link a program against all its dependency libraries.
18334 link_all_deplibs=$link_all_deplibs
18336 # Compile-time system search path for libraries
18337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18339 # Run-time system search path for libraries
18340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18342 # Fix the shell variable \$srcfile for the compiler.
18343 fix_srcfile_path="$fix_srcfile_path"
18345 # Set to yes if exported symbols are required.
18346 always_export_symbols=$always_export_symbols
18348 # The commands to list exported symbols.
18349 export_symbols_cmds=$lt_export_symbols_cmds
18351 # The commands to extract the exported symbol list from a shared archive.
18352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18354 # Symbols that should not be listed in the preloaded symbols.
18355 exclude_expsyms=$lt_exclude_expsyms
18357 # Symbols that must always be exported.
18358 include_expsyms=$lt_include_expsyms
18360 # ### END LIBTOOL CONFIG
18367 cat <<\EOF >> "$cfgfile"
18369 # AIX sometimes has problems with the GCC collect2 program. For some
18370 # reason, if we set the COLLECT_NAMES environment variable, the problems
18371 # vanish in a puff of smoke.
18372 if test "X${COLLECT_NAMES+set}" != Xset; then
18374 export COLLECT_NAMES
18380 # We use sed instead of cat because bash on DJGPP gets confused if
18381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18382 # text mode, it properly converts lines to CR/LF. This bash problem
18383 # is reportedly fixed, but why not run on old versions too?
18384 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18386 mv -f "$cfgfile" "$ofile" || \
18387 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18391 # If there is no Makefile yet, we rely on a make rule to execute
18392 # `config.status
--recheck' to rerun these tests and create the
18393 # libtool script then.
18394 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
18395 if test -f "$ltmain_in"; then
18396 test -f Makefile && make "$ltmain"
18402 ac_cpp='$CPP $CPPFLAGS'
18403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18404 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18410 # Check whether --with-tags was given.
18411 if test "${with_tags+set}" = set; then
18412 withval=$with_tags; tagnames="$withval"
18416 if test -f "$ltmain" && test -n "$tagnames"; then
18417 if test ! -f "${ofile}"; then
18418 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
18419 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
18422 if test -z "$LTCC"; then
18423 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
18424 if test -z "$LTCC"; then
18425 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18426 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
18428 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
18429 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
18432 if test -z "$LTCFLAGS"; then
18433 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
18436 # Extract list of available tagged configurations in $ofile.
18437 # Note that this assumes the entire list is on one line.
18438 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18441 for tagname in $tagnames; do
18443 # Check whether tagname contains only valid characters
18444 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18446 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18447 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18448 { (exit 1); exit 1; }; }
18452 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18454 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18455 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18456 { (exit 1); exit 1; }; }
18459 # Update the list of available tags.
18460 if test -n "$tagname"; then
18461 echo appending configuration tag \"$tagname\" to $ofile
18465 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18466 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
18467 (test "X$CXX" != "Xg++"))) ; then
18469 ac_cpp='$CXXCPP $CPPFLAGS'
18470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18477 archive_cmds_need_lc_CXX=no
18478 allow_undefined_flag_CXX=
18479 always_export_symbols_CXX=no
18480 archive_expsym_cmds_CXX=
18481 export_dynamic_flag_spec_CXX=
18482 hardcode_direct_CXX=no
18483 hardcode_libdir_flag_spec_CXX=
18484 hardcode_libdir_flag_spec_ld_CXX=
18485 hardcode_libdir_separator_CXX=
18486 hardcode_minus_L_CXX=no
18487 hardcode_shlibpath_var_CXX=unsupported
18488 hardcode_automatic_CXX=no
18490 module_expsym_cmds_CXX=
18491 link_all_deplibs_CXX=unknown
18492 old_archive_cmds_CXX=$old_archive_cmds
18493 no_undefined_flag_CXX=
18494 whole_archive_flag_spec_CXX=
18495 enable_shared_with_static_runtimes_CXX=no
18497 # Dependencies to place before and after the object being linked:
18498 predep_objects_CXX=
18499 postdep_objects_CXX=
18502 compiler_lib_search_path_CXX=
18504 # Source file extension for C++ test sources.
18507 # Object file extension for compiled C++ test sources.
18511 # Code to be used in simple compile tests
18512 lt_simple_compile_test_code="int some_variable = 0;\n"
18514 # Code to be used in simple link tests
18515 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18517 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18519 # If no C compiler was specified, use CC.
18522 # If no C compiler flags were specified, use CFLAGS.
18523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18525 # Allow CC to be a program name with arguments.
18529 # save warnings/boilerplate of simple test code
18530 ac_outfile=conftest.$ac_objext
18531 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18533 _lt_compiler_boilerplate=`cat conftest.err
`
18536 ac_outfile=conftest.$ac_objext
18537 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18539 _lt_linker_boilerplate=`cat conftest.err
`
18543 # Allow CC to be a program name with arguments.
18548 lt_save_with_gnu_ld=$with_gnu_ld
18549 lt_save_path_LD=$lt_cv_path_LD
18550 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18551 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18553 $as_unset lt_cv_prog_gnu_ld
18555 if test -n "${lt_cv_path_LDCXX+set}"; then
18556 lt_cv_path_LD=$lt_cv_path_LDCXX
18558 $as_unset lt_cv_path_LD
18560 test -z "${LDCXX+set}" || LD=$LDCXX
18564 for cc_temp in $compiler""; do
18566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18572 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18575 # We don't want -fno-exception wen compiling C++ code, so set the
18576 # no_builtin_flag separately
18577 if test "$GXX" = yes; then
18578 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18580 lt_prog_compiler_no_builtin_flag_CXX=
18583 if test "$GXX" = yes; then
18584 # Set up default GNU C++ configuration
18587 # Check whether --with-gnu-ld was given.
18588 if test "${with_gnu_ld+set}" = set; then
18589 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18595 if test "$GCC" = yes; then
18596 # Check if gcc -print-prog-name=ld gives a path.
18597 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18598 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18601 # gcc leaves a trailing carriage return which upsets mingw
18602 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
18604 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
18607 # Accept absolute paths.
18609 re_direlt='/[^/][^/]*/\.\./'
18610 # Canonicalize the pathname of ld
18611 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
18612 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18613 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
18615 test -z "$LD" && LD="$ac_prog"
18618 # If it fails, then pretend we aren't using GCC.
18622 # If it is relative, then search for the first ld in PATH.
18623 with_gnu_ld=unknown
18626 elif test "$with_gnu_ld" = yes; then
18627 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18628 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18630 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18631 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18633 if test "${lt_cv_path_LD+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18636 if test -z "$LD"; then
18637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18638 for ac_dir in $PATH; do
18640 test -z "$ac_dir" && ac_dir=.
18641 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18642 lt_cv_path_LD="$ac_dir/$ac_prog"
18643 # Check to see if the program is GNU ld. I'd rather use --version,
18644 # but apparently some variants of GNU ld only accept -v.
18645 # Break only if it was the GNU/non-GNU ld that we prefer.
18646 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
18647 *GNU* | *'with BFD'*)
18648 test "$with_gnu_ld" != no && break
18651 test "$with_gnu_ld" != yes && break
18658 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18662 LD="$lt_cv_path_LD"
18663 if test -n "$LD"; then
18664 { echo "$as_me:$LINENO: result: $LD" >&5
18665 echo "${ECHO_T}$LD" >&6; }
18667 { echo "$as_me:$LINENO: result: no" >&5
18668 echo "${ECHO_T}no" >&6; }
18670 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18671 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18672 { (exit 1); exit 1; }; }
18673 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18674 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18675 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18676 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18679 case `$LD -v 2>&1 </dev
/null
` in
18680 *GNU* | *'with BFD'*)
18681 lt_cv_prog_gnu_ld=yes
18684 lt_cv_prog_gnu_ld=no
18688 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18689 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18690 with_gnu_ld=$lt_cv_prog_gnu_ld
18694 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18695 # archiving commands below assume that GNU ld is being used.
18696 if test "$with_gnu_ld" = yes; then
18697 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18698 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'
18700 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18703 # If archive_cmds runs LD, not CC, wlarc should be empty
18704 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18705 # investigate it a little bit more. (MM)
18708 # ancient GNU ld didn't support --whole-archive et. al.
18709 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18710 grep 'no-whole-archive' > /dev/null; then
18711 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18713 whole_archive_flag_spec_CXX=
18719 # A generic and very simple default shared library creation
18720 # command for GNU C++ for the case where it uses the native
18721 # linker, instead of GNU ld. If possible, this setting should
18722 # overridden to take advantage of the native linker features on
18723 # the platform it is being used on.
18724 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18727 # Commands to make compiler produce verbose output that lists
18728 # what "hidden" libraries, object files and flags are used when
18729 # linking a shared library.
18730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18738 # PORTME: fill in a description of your system's C++ link characteristics
18739 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18740 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18744 # FIXME: insert proper C++ library support
18748 if test "$host_cpu" = ia64; then
18749 # On IA64, the linker does run time linking by default, so we don't
18750 # have to do anything special.
18751 aix_use_runtimelinking=no
18752 exp_sym_flag='-Bexport'
18755 aix_use_runtimelinking=no
18757 # Test if we are trying to use run time linking or normal
18758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18759 # need to do runtime linking.
18760 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18761 for ld_flag in $LDFLAGS; do
18764 aix_use_runtimelinking=yes
18772 exp_sym_flag='-bexport'
18773 no_entry_flag='-bnoentry'
18776 # When large executables or shared objects are built, AIX ld can
18777 # have problems creating the table of contents. If linking a library
18778 # or program results in "error TOC overflow" add -mminimal-toc to
18779 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18780 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18782 archive_cmds_CXX=''
18783 hardcode_direct_CXX=yes
18784 hardcode_libdir_separator_CXX=':'
18785 link_all_deplibs_CXX=yes
18787 if test "$GXX" = yes; then
18788 case $host_os in aix4.[012]|aix4.[012].*)
18789 # We only want to do this on AIX 4.2 and lower, the check
18790 # below for broken collect2 doesn't work under 4.3+
18791 collect2name=`${CC} -print-prog-name=collect2
`
18792 if test -f "$collect2name" && \
18793 strings "$collect2name" | grep resolve_lib_name >/dev/null
18795 # We have reworked collect2
18796 hardcode_direct_CXX=yes
18798 # We have old collect2
18799 hardcode_direct_CXX=unsupported
18800 # It fails to find uninstalled libraries when the uninstalled
18801 # path is not listed in the libpath. Setting hardcode_minus_L
18802 # to unsupported forces relinking
18803 hardcode_minus_L_CXX=yes
18804 hardcode_libdir_flag_spec_CXX='-L$libdir'
18805 hardcode_libdir_separator_CXX=
18809 shared_flag='-shared'
18810 if test "$aix_use_runtimelinking" = yes; then
18811 shared_flag="$shared_flag "'${wl}-G'
18815 if test "$host_cpu" = ia64; then
18816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18817 # chokes on -Wl,-G. The following line is correct:
18820 if test "$aix_use_runtimelinking" = yes; then
18821 shared_flag='${wl}-G'
18823 shared_flag='${wl}-bM:SRE'
18828 # It seems that -bexpall does not export symbols beginning with
18829 # underscore (_), so it is better to generate a list of symbols to export.
18830 always_export_symbols_CXX=yes
18831 if test "$aix_use_runtimelinking" = yes; then
18832 # Warning - without using the other runtime loading flags (-brtl),
18833 # -berok will link without error, but may produce a broken library.
18834 allow_undefined_flag_CXX='-berok'
18835 # Determine the default libpath from the value encoded in an empty executable.
18836 cat >conftest.$ac_ext <<_ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (ac_try="$ac_link"
18853 case "(($ac_try" in
18854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18855 *) ac_try_echo
=$ac_try;;
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_link") 2>conftest.er1
18860 grep -v '^ *+' conftest.er1
>conftest.err
18862 cat conftest.err
>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18866 { (case "(($ac_try" in
18867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_try") 2>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest$ac_exeext'
18876 { (case "(($ac_try" in
18877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18878 *) ac_try_echo
=$ac_try;;
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881 (eval "$ac_try") 2>&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18886 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18888 # Check for a 64-bit object if we didn't find anything.
18889 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; }
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.
$ac_ext >&5
18898 rm -f core conftest.err conftest.
$ac_objext \
18899 conftest
$ac_exeext conftest.
$ac_ext
18900 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18902 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18904 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"
18906 if test "$host_cpu" = ia64
; then
18907 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18908 allow_undefined_flag_CXX
="-z nodefs"
18909 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"
18911 # Determine the default libpath from the value encoded in an empty executable.
18912 cat >conftest.
$ac_ext <<_ACEOF
18915 cat confdefs.h
>>conftest.
$ac_ext
18916 cat >>conftest.
$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18927 rm -f conftest.
$ac_objext conftest
$ac_exeext
18928 if { (ac_try
="$ac_link"
18929 case "(($ac_try" in
18930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_link") 2>conftest.er1
18936 grep -v '^ *+' conftest.er1 >conftest.err
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
18941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18942 { (case "(($ac_try" in
18943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18944 *) ac_try_echo
=$ac_try;;
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_try") 2>&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try
='test -s conftest$ac_exeext'
18952 { (case "(($ac_try" in
18953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18962 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18964 # Check for a 64-bit object if we didn't find anything.
18965 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; }
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18974 rm -f core conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
18976 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18978 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18979 # Warning - without using the other run time loading flags,
18980 # -berok will link without error, but may produce a broken library.
18981 no_undefined_flag_CXX=' ${wl}-bernotok'
18982 allow_undefined_flag_CXX=' ${wl}-berok'
18983 # Exported symbols can be pulled into shared objects from archives
18984 whole_archive_flag_spec_CXX='$convenience'
18985 archive_cmds_need_lc_CXX=yes
18986 # This is similar to how AIX traditionally builds its shared libraries.
18987 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'
18993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18994 allow_undefined_flag_CXX=unsupported
18995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18996 # support --undefined. This deserves some investigation. FIXME
18997 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004 case $cc_basename in
19006 # FIXME: insert proper C++ library support
19012 cygwin* | mingw* | pw32*)
19013 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19014 # as there is no search path for DLLs.
19015 hardcode_libdir_flag_spec_CXX='-L$libdir'
19016 allow_undefined_flag_CXX=unsupported
19017 always_export_symbols_CXX=no
19018 enable_shared_with_static_runtimes_CXX=yes
19020 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19021 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'
19022 # If the export-symbols file already is a .def file (1st line
19023 # is EXPORTS), use it as is; otherwise, prepend...
19024 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
19025 cp $export_symbols $output_objdir/$soname.def;
19027 echo EXPORTS > $output_objdir/$soname.def;
19028 cat $export_symbols >> $output_objdir/$soname.def;
19030 $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'
19035 darwin* | rhapsody*)
19037 rhapsody* | darwin1.[012])
19038 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19041 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19042 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19044 case ${MACOSX_DEPLOYMENT_TARGET} in
19046 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19049 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19055 archive_cmds_need_lc_CXX=no
19056 hardcode_direct_CXX=no
19057 hardcode_automatic_CXX=yes
19058 hardcode_shlibpath_var_CXX=unsupported
19059 whole_archive_flag_spec_CXX=''
19060 link_all_deplibs_CXX=yes
19062 if test "$GXX" = yes ; then
19063 lt_int_apple_cc_single_mod=no
19064 output_verbose_link_cmd='echo'
19065 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19066 lt_int_apple_cc_single_mod=yes
19068 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19069 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19071 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'
19073 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19074 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19075 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19076 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}'
19078 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}'
19080 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}'
19082 case $cc_basename in
19084 output_verbose_link_cmd='echo'
19085 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'
19086 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19088 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}'
19089 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}'
19099 case $cc_basename in
19101 # FIXME: insert proper C++ library support
19105 # Green Hills C++ Compiler
19106 # FIXME: insert proper C++ library support
19110 # FIXME: insert proper C++ library support
19116 # C++ shared libraries reported to be fairly broken before switch to ELF
19120 archive_cmds_need_lc_CXX=no
19122 freebsd* | kfreebsd*-gnu | dragonfly*)
19123 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19130 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19131 hardcode_libdir_separator_CXX=:
19132 export_dynamic_flag_spec_CXX='${wl}-E'
19133 hardcode_direct_CXX=yes
19134 hardcode_minus_L_CXX=yes # Not in the search PATH,
19135 # but as the default
19136 # location of the library.
19138 case $cc_basename in
19140 # FIXME: insert proper C++ library support
19144 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'
19145 # Commands to make compiler produce verbose output that lists
19146 # what "hidden" libraries, object files and flags are used when
19147 # linking a shared library.
19149 # There doesn't appear to be a way to prevent this compiler from
19150 # explicitly linking system object files so we need to strip them
19151 # from the output so that they don't get included in the library
19153 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'
19156 if test "$GXX" = yes; then
19157 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'
19159 # FIXME: insert proper C++ library support
19166 if test $with_gnu_ld = no; then
19167 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19168 hardcode_libdir_separator_CXX=:
19172 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19175 export_dynamic_flag_spec_CXX='${wl}-E'
19181 hardcode_direct_CXX=no
19182 hardcode_shlibpath_var_CXX=no
19185 hardcode_direct_CXX=yes
19186 hardcode_minus_L_CXX=yes # Not in the search PATH,
19187 # but as the default
19188 # location of the library.
19192 case $cc_basename in
19194 # FIXME: insert proper C++ library support
19200 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19209 # Commands to make compiler produce verbose output that lists
19210 # what "hidden" libraries, object files and flags are used when
19211 # linking a shared library.
19213 # There doesn't appear to be a way to prevent this compiler from
19214 # explicitly linking system object files so we need to strip them
19215 # from the output so that they don't get included in the library
19217 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'
19220 if test "$GXX" = yes; then
19221 if test $with_gnu_ld = no; then
19224 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19227 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 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'
19235 # FIXME: insert proper C++ library support
19242 hardcode_direct_CXX=no
19243 hardcode_shlibpath_var_CXX=no
19244 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19245 export_dynamic_flag_spec_CXX='${wl}-E'
19246 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19247 # Instead, shared libraries are loaded at an image base (0x10000000 by
19248 # default) and relocated if they conflict, which is a slow very memory
19249 # consuming and fragmenting process. To avoid this, we pick a random,
19250 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19251 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19252 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'
19253 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'
19256 case $cc_basename in
19259 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'
19261 # Archives containing C++ object files must be created using
19262 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19263 # necessary to make sure instantiated templates are included
19265 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19268 if test "$GXX" = yes; then
19269 if test "$with_gnu_ld" = no; then
19270 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'
19272 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'
19275 link_all_deplibs_CXX=yes
19278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19279 hardcode_libdir_separator_CXX=:
19282 case $cc_basename in
19284 # Kuck and Associates, Inc. (KAI) C++ Compiler
19286 # KCC will only create a shared library if the output file
19287 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19288 # to its proper name (with version) after linking.
19289 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'
19290 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'
19291 # Commands to make compiler produce verbose output that lists
19292 # what "hidden" libraries, object files and flags are used when
19293 # linking a shared library.
19295 # There doesn't appear to be a way to prevent this compiler from
19296 # explicitly linking system object files so we need to strip them
19297 # from the output so that they don't get included in the library
19299 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'
19301 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
19302 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19304 # Archives containing C++ object files must be created using
19305 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19306 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19311 # version 8.0 and above of icpc choke on multiply defined symbols
19312 # if we add $predep_objects and $postdep_objects, however 7.1 and
19313 # earlier do not add the objects themselves.
19314 case `$CC -V 2>&1` in
19316 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19317 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'
19319 *) # Version 8.0 or newer
19322 ia64
*) tmp_idyn
=' -i_dynamic';;
19324 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325 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'
19328 archive_cmds_need_lc_CXX
=no
19329 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19330 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19331 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19334 # Portland Group C++ compiler
19335 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19336 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'
19338 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19339 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19340 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'
19344 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19345 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'
19347 runpath_var
=LD_RUN_PATH
19348 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19349 hardcode_libdir_separator_CXX
=:
19351 # Commands to make compiler produce verbose output that lists
19352 # what "hidden" libraries, object files and flags are used when
19353 # linking a shared library.
19355 # There doesn't appear to be a way to prevent this compiler from
19356 # explicitly linking system object files so we need to strip them
19357 # from the output so that they don't get included in the library
19359 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; 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'
19364 # FIXME: insert proper C++ library support
19368 # FIXME: insert proper C++ library support
19372 case $cc_basename in
19374 # FIXME: insert proper C++ library support
19378 # FIXME: insert proper C++ library support
19384 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19385 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19387 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19388 hardcode_direct_CXX
=yes
19389 hardcode_shlibpath_var_CXX
=no
19391 # Workaround some broken pre-1.5 toolchains
19392 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19395 # C++ shared libraries are fairly broken
19399 hardcode_direct_CXX
=yes
19400 hardcode_shlibpath_var_CXX
=no
19401 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19402 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19404 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19405 export_dynamic_flag_spec_CXX
='${wl}-E'
19406 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19408 output_verbose_link_cmd
='echo'
19411 case $cc_basename in
19413 # Kuck and Associates, Inc. (KAI) C++ Compiler
19415 # KCC will only create a shared library if the output file
19416 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19417 # to its proper name (with version) after linking.
19418 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'
19420 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19421 hardcode_libdir_separator_CXX
=:
19423 # Archives containing C++ object files must be created using
19424 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19425 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19429 # Rational C++ 2.4.1
19430 # FIXME: insert proper C++ library support
19434 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19435 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'
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.
19444 # There doesn't appear to be a way to prevent this compiler from
19445 # explicitly linking system object files so we need to strip them
19446 # from the output so that they don't get included in the library
19448 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'
19451 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19452 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19453 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'
19455 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19456 hardcode_libdir_separator_CXX
=:
19458 # Commands to make compiler produce verbose output that lists
19459 # what "hidden" libraries, object files and flags are used when
19460 # linking a shared library.
19461 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19464 # FIXME: insert proper C++ library support
19471 case $cc_basename in
19473 # Kuck and Associates, Inc. (KAI) C++ Compiler
19475 # KCC will only create a shared library if the output file
19476 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19477 # to its proper name (with version) after linking.
19478 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'
19480 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19481 hardcode_libdir_separator_CXX
=:
19483 # Archives containing C++ object files must be created using
19484 # the KAI C++ compiler.
19485 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
19488 # Rational C++ 2.4.1
19489 # FIXME: insert proper C++ library support
19493 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19494 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'
19495 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19496 echo "-hidden">> $lib.exp~
19497 $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~
19500 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19501 hardcode_libdir_separator_CXX
=:
19503 # Commands to make compiler produce verbose output that lists
19504 # what "hidden" libraries, object files and flags are used when
19505 # linking a shared library.
19507 # There doesn't appear to be a way to prevent this compiler from
19508 # explicitly linking system object files so we need to strip them
19509 # from the output so that they don't get included in the library
19511 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'
19514 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19515 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19516 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'
19518 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19519 hardcode_libdir_separator_CXX
=:
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19524 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19527 # FIXME: insert proper C++ library support
19534 # FIXME: insert proper C++ library support
19538 case $cc_basename in
19541 # FIXME: insert proper C++ library support
19546 # FIXME: insert proper C++ library support
19550 # FIXME: insert proper C++ library support
19556 case $cc_basename in
19558 # Sun C++ 4.2, 5.x and Centerline C++
19559 archive_cmds_need_lc_CXX
=yes
19560 no_undefined_flag_CXX
=' -zdefs'
19561 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19562 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19563 $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'
19565 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19566 hardcode_shlibpath_var_CXX
=no
19568 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19570 # The C++ compiler is used as linker so we must use $wl
19571 # flag to pass the commands to the underlying system
19572 # linker. We must also pass each convience library through
19573 # to the system linker between allextract/defaultextract.
19574 # The C++ compiler will combine linker options so we
19575 # cannot just pass the convience library names through
19577 # Supported since Solaris 2.6 (maybe 2.5.1?)
19578 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'
19581 link_all_deplibs_CXX
=yes
19583 output_verbose_link_cmd
='echo'
19585 # Archives containing C++ object files must be created using
19586 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19587 # necessary to make sure instantiated templates are included
19589 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19592 # Green Hills C++ Compiler
19593 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19595 # The C++ compiler must be used to create the archive.
19596 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19599 # GNU C++ compiler with Solaris linker
19600 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19601 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19602 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
19603 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19604 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19605 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19607 # Commands to make compiler produce verbose output that lists
19608 # what "hidden" libraries, object files and flags are used when
19609 # linking a shared library.
19610 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19612 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19614 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19615 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19616 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19618 # Commands to make compiler produce verbose output that lists
19619 # what "hidden" libraries, object files and flags are used when
19620 # linking a shared library.
19621 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19624 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19629 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19630 no_undefined_flag_CXX
='${wl}-z,text'
19631 archive_cmds_need_lc_CXX
=no
19632 hardcode_shlibpath_var_CXX
=no
19633 runpath_var
='LD_RUN_PATH'
19635 case $cc_basename in
19637 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19638 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19641 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19642 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19646 sysv5
* | sco3.2v5
* | sco5v6
*)
19647 # Note: We can NOT use -z defs as we might desire, because we do not
19648 # link with -lc, and that would cause any symbols used from libc to
19649 # always be unresolved, which means just about no library would
19650 # ever link correctly. If we're not using GNU ld we use -z text
19651 # though, which does catch some bad symbols but isn't as heavy-handed
19653 # For security reasons, it is highly recommended that you always
19654 # use absolute paths for naming shared libraries, and exclude the
19655 # DT_RUNPATH tag from executables and libraries. But doing so
19656 # requires that you compile everything twice, which is a pain.
19657 # So that behaviour is only enabled if SCOABSPATH is set to a
19658 # non-empty value in the environment. Most likely only useful for
19659 # creating official distributions of packages.
19660 # This is a hack until libtool officially supports absolute path
19661 # names for shared libraries.
19662 no_undefined_flag_CXX
='${wl}-z,text'
19663 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19664 archive_cmds_need_lc_CXX
=no
19665 hardcode_shlibpath_var_CXX
=no
19666 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19667 hardcode_libdir_separator_CXX
=':'
19668 link_all_deplibs_CXX
=yes
19669 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19670 runpath_var
='LD_RUN_PATH'
19672 case $cc_basename in
19674 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19675 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19678 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19679 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19684 case $cc_basename in
19686 # NonStop-UX NCC 3.20
19687 # FIXME: insert proper C++ library support
19691 # FIXME: insert proper C++ library support
19697 # FIXME: insert proper C++ library support
19701 # FIXME: insert proper C++ library support
19705 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19706 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19707 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19713 cat > conftest.
$ac_ext <<EOF
19717 Foo (void) { a = 0; }
19723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19724 (eval $ac_compile) 2>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; then
19728 # Parse the compiler output and extract the necessary
19729 # objects, libraries and library flags.
19731 # Sentinel used to keep track of whether or not we are before
19732 # the conftest object file.
19733 pre_test_object_deps_done
=no
19735 # The `*' in the case matches for architectures that use `case' in
19736 # $output_verbose_cmd can trigger glob expansion during the loop
19737 # eval without this substitution.
19738 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19740 for p
in `eval $output_verbose_link_cmd`; do
19744 # Some compilers place space between "-{L,R}" and the path.
19745 # Remove the space.
19746 if test $p = "-L" \
19747 ||
test $p = "-R"; then
19754 if test "$pre_test_object_deps_done" = no
; then
19757 # Internal compiler library paths should come after those
19758 # provided the user. The postdeps already come after the
19759 # user supplied libs so there is no need to process them.
19760 if test -z "$compiler_lib_search_path_CXX"; then
19761 compiler_lib_search_path_CXX
="${prev}${p}"
19763 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19766 # The "-l" case would never come before the object being
19767 # linked, so don't bother handling this case.
19770 if test -z "$postdeps_CXX"; then
19771 postdeps_CXX
="${prev}${p}"
19773 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19779 # This assumes that the test object file only shows up
19780 # once in the compiler output.
19781 if test "$p" = "conftest.$objext"; then
19782 pre_test_object_deps_done
=yes
19786 if test "$pre_test_object_deps_done" = no
; then
19787 if test -z "$predep_objects_CXX"; then
19788 predep_objects_CXX
="$p"
19790 predep_objects_CXX
="$predep_objects_CXX $p"
19793 if test -z "$postdep_objects_CXX"; then
19794 postdep_objects_CXX
="$p"
19796 postdep_objects_CXX
="$postdep_objects_CXX $p"
19801 *) ;; # Ignore the rest.
19809 echo "libtool.m4: error: problem compiling CXX test program"
19812 $rm -f confest.
$objext
19814 # PORTME: override above test on systems where it is broken
19817 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19818 # hack all around it, let's just trust "g++" to DTRT.
19819 predep_objects_CXX
=
19820 postdep_objects_CXX
=
19825 case $cc_basename in
19827 # Adding this requires a known-good setup of shared libraries for
19828 # Sun compiler versions before 5.6, else PIC objects from an old
19829 # archive will be linked into the output, leading to subtle bugs.
19830 postdeps_CXX
='-lCstd -lCrun'
19837 case " $postdeps_CXX " in
19838 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19841 lt_prog_compiler_wl_CXX
=
19842 lt_prog_compiler_pic_CXX
=
19843 lt_prog_compiler_static_CXX
=
19845 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19846 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19848 # C++ specific cases for pic, static, wl, etc.
19849 if test "$GXX" = yes; then
19850 lt_prog_compiler_wl_CXX
='-Wl,'
19851 lt_prog_compiler_static_CXX
='-static'
19855 # All AIX code is PIC.
19856 if test "$host_cpu" = ia64
; then
19857 # AIX 5 now supports IA64 processor
19858 lt_prog_compiler_static_CXX
='-Bstatic'
19862 # FIXME: we need at least 68020 code to build shared libraries, but
19863 # adding the `-m68020' flag to GCC prevents building anything better,
19865 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19867 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19868 # PIC is the default for these OSes.
19870 mingw
* | os2
* | pw32
*)
19871 # This hack is so that the source file can tell whether it is being
19872 # built for inclusion in a dll (and should export symbols for example).
19873 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19875 darwin
* | rhapsody
*)
19876 # PIC is the default on this platform
19877 # Common symbols not allowed in MH_DYLIB files
19878 lt_prog_compiler_pic_CXX
='-fno-common'
19881 # DJGPP does not support shared libraries at all
19882 lt_prog_compiler_pic_CXX
=
19885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19886 # Instead, we relocate shared libraries at runtime.
19889 if test -d /usr
/nec
; then
19890 lt_prog_compiler_pic_CXX
=-Kconform_pic
19894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19895 # not for PA HP-UX.
19900 lt_prog_compiler_pic_CXX
='-fPIC'
19905 lt_prog_compiler_pic_CXX
='-fPIC'
19911 # All AIX code is PIC.
19912 if test "$host_cpu" = ia64
; then
19913 # AIX 5 now supports IA64 processor
19914 lt_prog_compiler_static_CXX
='-Bstatic'
19916 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19920 case $cc_basename in
19922 # Green Hills C++ Compiler
19923 # _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"
19928 # PIC is the default on this platform
19929 # Common symbols not allowed in MH_DYLIB files
19930 case $cc_basename in
19932 lt_prog_compiler_pic_CXX
='-qnocommon'
19933 lt_prog_compiler_wl_CXX
='-Wl,'
19938 case $cc_basename in
19940 lt_prog_compiler_pic_CXX
='-KPIC'
19943 # Green Hills C++ Compiler
19944 lt_prog_compiler_pic_CXX
='-pic'
19950 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19951 # FreeBSD uses GNU C++
19953 hpux9
* | hpux10
* | hpux11
*)
19954 case $cc_basename in
19956 lt_prog_compiler_wl_CXX
='-Wl,'
19957 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19958 if test "$host_cpu" != ia64
; then
19959 lt_prog_compiler_pic_CXX
='+Z'
19963 lt_prog_compiler_wl_CXX
='-Wl,'
19964 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19970 lt_prog_compiler_pic_CXX
='+Z'
19979 # This is c89, which is MS Visual C++ (no shared libs)
19980 # Anyone wants to do a port?
19982 irix5
* | irix6
* | nonstopux
*)
19983 case $cc_basename in
19985 lt_prog_compiler_wl_CXX
='-Wl,'
19986 lt_prog_compiler_static_CXX
='-non_shared'
19987 # CC pic flag -KPIC is the default.
19994 case $cc_basename in
19997 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19998 lt_prog_compiler_pic_CXX
='-fPIC'
20002 lt_prog_compiler_wl_CXX
='-Wl,'
20003 lt_prog_compiler_pic_CXX
='-KPIC'
20004 lt_prog_compiler_static_CXX
='-static'
20007 # Portland Group C++ compiler.
20008 lt_prog_compiler_wl_CXX
='-Wl,'
20009 lt_prog_compiler_pic_CXX
='-fpic'
20010 lt_prog_compiler_static_CXX
='-Bstatic'
20014 # Make sure the PIC flag is empty. It appears that all Alpha
20015 # Linux and Compaq Tru64 Unix objects are PIC.
20016 lt_prog_compiler_pic_CXX
=
20017 lt_prog_compiler_static_CXX
='-non_shared'
20028 case $cc_basename in
20030 lt_prog_compiler_pic_CXX
='-W c,exportall'
20038 osf3
* | osf4
* | osf5
*)
20039 case $cc_basename in
20041 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20044 # Rational C++ 2.4.1
20045 lt_prog_compiler_pic_CXX
='-pic'
20048 # Digital/Compaq C++
20049 lt_prog_compiler_wl_CXX
='-Wl,'
20050 # Make sure the PIC flag is empty. It appears that all Alpha
20051 # Linux and Compaq Tru64 Unix objects are PIC.
20052 lt_prog_compiler_pic_CXX
=
20053 lt_prog_compiler_static_CXX
='-non_shared'
20062 case $cc_basename in
20064 # Sun C++ 4.2, 5.x and Centerline C++
20065 lt_prog_compiler_pic_CXX
='-KPIC'
20066 lt_prog_compiler_static_CXX
='-Bstatic'
20067 lt_prog_compiler_wl_CXX
='-Qoption ld '
20070 # Green Hills C++ Compiler
20071 lt_prog_compiler_pic_CXX
='-PIC'
20078 case $cc_basename in
20081 lt_prog_compiler_pic_CXX
='-pic'
20082 lt_prog_compiler_static_CXX
='-Bstatic'
20086 lt_prog_compiler_pic_CXX
='-pic'
20093 case $cc_basename in
20095 # NonStop-UX NCC 3.20
20096 lt_prog_compiler_pic_CXX
='-KPIC'
20102 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20103 case $cc_basename in
20105 lt_prog_compiler_wl_CXX
='-Wl,'
20106 lt_prog_compiler_pic_CXX
='-KPIC'
20107 lt_prog_compiler_static_CXX
='-Bstatic'
20114 lt_prog_compiler_can_build_shared_CXX
=no
20119 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20120 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20123 # Check to make sure the PIC flag actually works.
20125 if test -n "$lt_prog_compiler_pic_CXX"; then
20127 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20128 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20129 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 lt_prog_compiler_pic_works_CXX
=no
20133 ac_outfile
=conftest.
$ac_objext
20134 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20135 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20136 # Insert the option either (1) after the last *FLAGS variable, or
20137 # (2) before a word containing "conftest.", or (3) at the end.
20138 # Note that $ac_compile itself does not contain backslashes and begins
20139 # with a dollar sign (not a hyphen), so the echo should work correctly.
20140 # The option is referenced via a variable to avoid confusing sed.
20141 lt_compile
=`echo "$ac_compile" | $SED \
20142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20144 -e 's:$: $lt_compiler_flag:'`
20145 (eval echo "\"\$as_me:20145: $lt_compile\"" >&5)
20146 (eval "$lt_compile" 2>conftest.err
)
20148 cat conftest.err
>&5
20149 echo "$as_me:20149: \$? = $ac_status" >&5
20150 if (exit $ac_status) && test -s "$ac_outfile"; then
20151 # The compiler can only warn and ignore the option if not recognized
20152 # So say no if there are warnings other than the usual output.
20153 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
20154 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20155 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20156 lt_prog_compiler_pic_works_CXX
=yes
20162 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20163 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20165 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
20166 case $lt_prog_compiler_pic_CXX in
20168 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20171 lt_prog_compiler_pic_CXX
=
20172 lt_prog_compiler_can_build_shared_CXX
=no
20177 # For platforms which do not support PIC, -DPIC is meaningless:
20179 lt_prog_compiler_pic_CXX
=
20182 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20187 # Check to make sure the static flag actually works.
20189 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20190 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20191 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20192 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 lt_prog_compiler_static_works_CXX
=no
20196 save_LDFLAGS
="$LDFLAGS"
20197 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20198 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
20199 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20200 # The linker can only warn and ignore the option if not recognized
20201 # So say no if there are warnings
20202 if test -s conftest.err
; then
20203 # Append any errors to the config.log.
20204 cat conftest.err
1>&5
20205 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
20206 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20207 if diff conftest.exp conftest.er2
>/dev
/null
; then
20208 lt_prog_compiler_static_works_CXX
=yes
20211 lt_prog_compiler_static_works_CXX
=yes
20215 LDFLAGS
="$save_LDFLAGS"
20218 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20219 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20221 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
20224 lt_prog_compiler_static_CXX
=
20228 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20229 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20230 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 lt_cv_prog_compiler_c_o_CXX
=no
20234 $rm -r conftest
2>/dev
/null
20238 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20240 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20241 # Insert the option either (1) after the last *FLAGS variable, or
20242 # (2) before a word containing "conftest.", or (3) at the end.
20243 # Note that $ac_compile itself does not contain backslashes and begins
20244 # with a dollar sign (not a hyphen), so the echo should work correctly.
20245 lt_compile
=`echo "$ac_compile" | $SED \
20246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20248 -e 's:$: $lt_compiler_flag:'`
20249 (eval echo "\"\$as_me:20249: $lt_compile\"" >&5)
20250 (eval "$lt_compile" 2>out
/conftest.err
)
20252 cat out
/conftest.err
>&5
20253 echo "$as_me:20253: \$? = $ac_status" >&5
20254 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20256 # The compiler can only warn and ignore the option if not recognized
20257 # So say no if there are warnings
20258 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
20259 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20260 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20261 lt_cv_prog_compiler_c_o_CXX
=yes
20266 # SGI C++ compiler will create directory out/ii_files/ for
20267 # template instantiation
20268 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
20269 $rm out
/* && rmdir out
20275 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20276 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20279 hard_links
="nottested"
20280 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20281 # do not overwrite the value of need_locks provided by the user
20282 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20283 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20286 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20288 ln conftest.a conftest.b
2>&5 || hard_links
=no
20289 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20290 { echo "$as_me:$LINENO: result: $hard_links" >&5
20291 echo "${ECHO_T}$hard_links" >&6; }
20292 if test "$hard_links" = no
; then
20293 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20294 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20301 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20302 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20304 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20307 # If we're using GNU nm, then we don't want the "-C" option.
20308 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20309 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
20310 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'
20312 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'
20316 export_symbols_cmds_CXX
="$ltdll_cmds"
20319 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'
20322 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20326 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20327 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20328 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20331 # Do we need to explicitly link libc?
20333 case "x$archive_cmds_need_lc_CXX" in
20335 # Assume -lc should be added
20336 archive_cmds_need_lc_CXX
=yes
20338 if test "$enable_shared" = yes && test "$GCC" = yes; then
20339 case $archive_cmds_CXX in
20341 # FIXME: we may have to deal with multi-command sequences.
20344 # Test whether the compiler implicitly links with -lc since on some
20345 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20346 # to ld, don't add -lc before -lgcc.
20347 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20348 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20350 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20353 (eval $ac_compile) 2>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } 2>conftest.err
; then
20359 libobjs
=conftest.
$ac_objext
20361 wl
=$lt_prog_compiler_wl_CXX
20362 pic_flag
=$lt_prog_compiler_pic_CXX
20368 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20369 allow_undefined_flag_CXX
=
20370 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20371 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }
20376 archive_cmds_need_lc_CXX
=no
20378 archive_cmds_need_lc_CXX
=yes
20380 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20382 cat conftest.err
1>&5
20385 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20386 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20393 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20394 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20395 library_names_spec
=
20396 libname_spec
='lib$name'
20400 postuninstall_cmds
=
20404 shlibpath_overrides_runpath
=unknown
20406 dynamic_linker
="$host_os ld.so"
20407 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20408 if test "$GCC" = yes; then
20409 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20410 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
20411 # if the path contains ";" then we assume it to be the separator
20412 # otherwise default to the standard path separator (i.e. ":") - it is
20413 # assumed that no part of a normal pathname contains ";" but that should
20414 # okay in the real world where ";" in dirpaths is itself problematic.
20415 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20417 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20420 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20422 need_lib_prefix
=unknown
20423 hardcode_into_libs
=no
20425 # when you set need_version to no, make sure it does not cause -set_version
20426 # flags to be left without arguments
20427 need_version
=unknown
20432 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20433 shlibpath_var
=LIBPATH
20435 # AIX 3 has no versioning support, so we append a major version to the name.
20436 soname_spec
='${libname}${release}${shared_ext}$major'
20443 hardcode_into_libs
=yes
20444 if test "$host_cpu" = ia64
; then
20445 # AIX 5 supports IA64
20446 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20447 shlibpath_var
=LD_LIBRARY_PATH
20449 # With GCC up to 2.95.x, collect2 would create an import file
20450 # for dependence libraries. The import file would start with
20451 # the line `#! .'. This would cause the generated library to
20452 # depend on `.', always an invalid library. This was fixed in
20453 # development snapshots of GCC prior to 3.0.
20455 aix4 | aix4.
[01] | aix4.
[01].
*)
20456 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20458 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
20461 can_build_shared
=no
20465 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20466 # soname into executable. Probably we can add versioning support to
20467 # collect2, so additional links can be useful in future.
20468 if test "$aix_use_runtimelinking" = yes; then
20469 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20470 # instead of lib<name>.a to let people know that these are not
20471 # typical AIX shared libraries.
20472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474 # We preserve .a as extension for shared libraries through AIX4.2
20475 # and later when we are not doing run time linking.
20476 library_names_spec
='${libname}${release}.a $libname.a'
20477 soname_spec
='${libname}${release}${shared_ext}$major'
20479 shlibpath_var
=LIBPATH
20484 library_names_spec
='$libname.ixlibrary $libname.a'
20485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20486 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'
20490 library_names_spec
='${libname}${shared_ext}'
20491 dynamic_linker
="$host_os ld.so"
20492 shlibpath_var
=LIBRARY_PATH
20498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499 soname_spec
='${libname}${release}${shared_ext}$major'
20500 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20501 shlibpath_var
=LD_LIBRARY_PATH
20502 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20503 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20504 # the default ld.so.conf also contains /usr/contrib/lib and
20505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20506 # libtool to hard-code these into programs
20509 cygwin
* | mingw
* | pw32
*)
20510 version_type
=windows
20515 case $GCC,$host_os in
20516 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
20517 library_names_spec
='$libname.dll.a'
20518 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20519 postinstall_cmds
='base_file=`basename \${file}`~
20520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20521 dldir=$destdir/`dirname \$dlpath`~
20522 test -d \$dldir || mkdir -p \$dldir~
20523 $install_prog $dir/$dlname \$dldir/$dlname~
20524 chmod a+x \$dldir/$dlname'
20525 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20526 dlpath=$dir/\$dldll~
20528 shlibpath_overrides_runpath
=yes
20532 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20533 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20534 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20537 # MinGW DLLs use traditional 'lib' prefix
20538 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20539 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20540 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
20541 # It is most probably a Windows format PATH printed by
20542 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20543 # path with ; separators, and with drive letters. We can handle the
20544 # drive letters (cygwin fileutils understands them), so leave them,
20545 # especially as we might pass files found there to a mingw objdump,
20546 # which wouldn't understand a cygwinified path. Ahh.
20547 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20549 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20553 # pw32 DLLs use 'pw' prefix rather than 'lib'
20554 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20560 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20563 dynamic_linker
='Win32 ld.exe'
20564 # FIXME: first we should search . and the directory the executable is in
20568 darwin
* | rhapsody
*)
20569 dynamic_linker
="$host_os dyld"
20570 version_type
=darwin
20573 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20574 soname_spec
='${libname}${release}${major}$shared_ext'
20575 shlibpath_overrides_runpath
=yes
20576 shlibpath_var
=DYLD_LIBRARY_PATH
20577 shrext_cmds
='.dylib'
20578 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20579 if test "$GCC" = yes; then
20580 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"`
20582 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
20584 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20592 soname_spec
='${libname}${release}${shared_ext}$major'
20593 shlibpath_var
=LD_LIBRARY_PATH
20604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20605 soname_spec
='${libname}${release}${shared_ext}$major'
20606 shlibpath_var
=LD_LIBRARY_PATH
20607 shlibpath_overrides_runpath
=no
20608 hardcode_into_libs
=yes
20609 dynamic_linker
='GNU ld.so'
20612 freebsd
* | dragonfly
*)
20613 # DragonFly does not have aout. When/if they implement a new
20614 # versioning mechanism, adjust this.
20615 if test -x /usr
/bin
/objformat
; then
20616 objformat
=`/usr/bin/objformat`
20619 freebsd
[123]*) objformat
=aout
;;
20620 *) objformat
=elf
;;
20623 version_type
=freebsd-
$objformat
20624 case $version_type in
20626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20631 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20635 shlibpath_var
=LD_LIBRARY_PATH
20638 shlibpath_overrides_runpath
=yes
20640 freebsd3.
[01]* | freebsdelf3.
[01]*)
20641 shlibpath_overrides_runpath
=yes
20642 hardcode_into_libs
=yes
20644 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20645 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20646 shlibpath_overrides_runpath
=no
20647 hardcode_into_libs
=yes
20649 freebsd
*) # from 4.6 on
20650 shlibpath_overrides_runpath
=yes
20651 hardcode_into_libs
=yes
20660 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20661 soname_spec
='${libname}${release}${shared_ext}$major'
20662 shlibpath_var
=LD_LIBRARY_PATH
20663 hardcode_into_libs
=yes
20666 hpux9
* | hpux10
* | hpux11
*)
20667 # Give a soname corresponding to the major version so that dld.sl refuses to
20668 # link against other versions.
20675 hardcode_into_libs
=yes
20676 dynamic_linker
="$host_os dld.so"
20677 shlibpath_var
=LD_LIBRARY_PATH
20678 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20680 soname_spec
='${libname}${release}${shared_ext}$major'
20681 if test "X$HPUX_IA64_MODE" = X32
; then
20682 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20684 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20686 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20690 hardcode_into_libs
=yes
20691 dynamic_linker
="$host_os dld.sl"
20692 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20693 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20694 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695 soname_spec
='${libname}${release}${shared_ext}$major'
20696 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20697 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20701 dynamic_linker
="$host_os dld.sl"
20702 shlibpath_var
=SHLIB_PATH
20703 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20705 soname_spec
='${libname}${release}${shared_ext}$major'
20708 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20709 postinstall_cmds
='chmod 555 $lib'
20716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20717 soname_spec
='${libname}${release}${shared_ext}$major'
20718 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20719 shlibpath_var
=LD_LIBRARY_PATH
20720 shlibpath_overrides_runpath
=no
20721 hardcode_into_libs
=yes
20724 irix5
* | irix6
* | nonstopux
*)
20726 nonstopux
*) version_type
=nonstopux
;;
20728 if test "$lt_cv_prog_gnu_ld" = yes; then
20736 soname_spec
='${libname}${release}${shared_ext}$major'
20737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20739 irix5
* | nonstopux
*)
20740 libsuff
= shlibsuff
=
20743 case $LD in # libtool.m4 will add one of these switches to LD
20744 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20745 libsuff
= shlibsuff
= libmagic
=32-bit;;
20746 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20747 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20748 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20749 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20750 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20754 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20755 shlibpath_overrides_runpath
=no
20756 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20757 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20758 hardcode_into_libs
=yes
20761 # No shared lib support for Linux oldld, aout, or coff.
20762 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20766 # This must be Linux ELF.
20771 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20772 soname_spec
='${libname}${release}${shared_ext}$major'
20773 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20774 shlibpath_var
=LD_LIBRARY_PATH
20775 shlibpath_overrides_runpath
=no
20776 # This implies no fast_install, which is unacceptable.
20777 # Some rework will be needed to allow for fast_install
20778 # before this can be enabled.
20779 hardcode_into_libs
=yes
20781 # Append ld.so.conf contents to the search path
20782 if test -f /etc
/ld.so.conf
; then
20783 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' ' '`
20784 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20787 # We used to test for /lib/ld.so.1 and disable shared libraries on
20788 # powerpc, because MkLinux only supported shared libraries with the
20789 # GNU dynamic linker. Since this was broken with cross compilers,
20790 # most powerpc-linux boxes support dynamic linking these days and
20791 # people can always --disable-shared, the test was removed, and we
20792 # assume the GNU/Linux dynamic linker is in use.
20793 dynamic_linker
='GNU/Linux ld.so'
20800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20801 soname_spec
='${libname}${release}${shared_ext}$major'
20802 shlibpath_var
=LD_LIBRARY_PATH
20803 shlibpath_overrides_runpath
=no
20804 hardcode_into_libs
=yes
20805 dynamic_linker
='GNU ld.so'
20812 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20814 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20815 dynamic_linker
='NetBSD (a.out) ld.so'
20817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20818 soname_spec
='${libname}${release}${shared_ext}$major'
20819 dynamic_linker
='NetBSD ld.elf_so'
20821 shlibpath_var
=LD_LIBRARY_PATH
20822 shlibpath_overrides_runpath
=yes
20823 hardcode_into_libs
=yes
20828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20829 shlibpath_var
=LD_LIBRARY_PATH
20830 shlibpath_overrides_runpath
=yes
20837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20838 soname_spec
='${libname}${release}${shared_ext}$major'
20839 shlibpath_var
=LD_LIBRARY_PATH
20840 shlibpath_overrides_runpath
=yes
20845 sys_lib_dlsearch_path_spec
="/usr/lib"
20847 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20849 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20850 *) need_version
=no
;;
20852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20853 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20854 shlibpath_var
=LD_LIBRARY_PATH
20855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20857 openbsd2.
[89] | openbsd2.
[89].
*)
20858 shlibpath_overrides_runpath
=no
20861 shlibpath_overrides_runpath
=yes
20865 shlibpath_overrides_runpath
=yes
20870 libname_spec
='$name'
20873 library_names_spec
='$libname${shared_ext} $libname.a'
20874 dynamic_linker
='OS/2 ld.exe'
20875 shlibpath_var
=LIBPATH
20878 osf3
* | osf4
* | osf5
*)
20882 soname_spec
='${libname}${release}${shared_ext}$major'
20883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 shlibpath_var
=LD_LIBRARY_PATH
20885 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20886 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894 soname_spec
='${libname}${release}${shared_ext}$major'
20895 shlibpath_var
=LD_LIBRARY_PATH
20896 shlibpath_overrides_runpath
=yes
20897 hardcode_into_libs
=yes
20898 # ldd complains unless libraries are executable
20899 postinstall_cmds
='chmod +x $lib'
20904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20905 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20906 shlibpath_var
=LD_LIBRARY_PATH
20907 shlibpath_overrides_runpath
=yes
20908 if test "$with_gnu_ld" = yes; then
20916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20917 soname_spec
='${libname}${release}${shared_ext}$major'
20918 shlibpath_var
=LD_LIBRARY_PATH
20919 case $host_vendor in
20921 shlibpath_overrides_runpath
=no
20923 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20924 runpath_var
=LD_RUN_PATH
20932 shlibpath_overrides_runpath
=no
20933 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20939 if test -d /usr
/nec
;then
20941 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20942 soname_spec
='$libname${shared_ext}.$major'
20943 shlibpath_var
=LD_LIBRARY_PATH
20947 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20948 version_type
=freebsd-elf
20951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20952 soname_spec
='${libname}${release}${shared_ext}$major'
20953 shlibpath_var
=LD_LIBRARY_PATH
20954 hardcode_into_libs
=yes
20955 if test "$with_gnu_ld" = yes; then
20956 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20957 shlibpath_overrides_runpath
=no
20959 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20960 shlibpath_overrides_runpath
=yes
20963 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20967 sys_lib_dlsearch_path_spec
='/usr/lib'
20972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20973 soname_spec
='${libname}${release}${shared_ext}$major'
20974 shlibpath_var
=LD_LIBRARY_PATH
20981 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20982 echo "${ECHO_T}$dynamic_linker" >&6; }
20983 test "$dynamic_linker" = no
&& can_build_shared
=no
20985 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20986 if test "$GCC" = yes; then
20987 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20990 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20991 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20992 hardcode_action_CXX
=
20993 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20994 test -n "$runpath_var_CXX" || \
20995 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20997 # We can hardcode non-existant directories.
20998 if test "$hardcode_direct_CXX" != no
&&
20999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21000 # have to relink, otherwise we might link with an installed library
21001 # when we should be linking with a yet-to-be-installed one
21002 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21003 test "$hardcode_minus_L_CXX" != no
; then
21004 # Linking always hardcodes the temporary library directory.
21005 hardcode_action_CXX
=relink
21007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21008 hardcode_action_CXX
=immediate
21011 # We cannot hardcode anything, or else we can only hardcode existing
21013 hardcode_action_CXX
=unsupported
21015 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21016 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21018 if test "$hardcode_action_CXX" = relink
; then
21019 # Fast installation is not supported
21020 enable_fast_install
=no
21021 elif test "$shlibpath_overrides_runpath" = yes ||
21022 test "$enable_shared" = no
; then
21023 # Fast installation is not necessary
21024 enable_fast_install
=needless
21028 # The else clause should only fire when bootstrapping the
21029 # libtool distribution, otherwise you forgot to ship ltmain.sh
21030 # with your package, and you will get complaints that there are
21031 # no rules to generate ltmain.sh.
21032 if test -f "$ltmain"; then
21033 # See if we are running on zsh, and set the options which allow our commands through
21034 # without removal of \ escapes.
21035 if test -n "${ZSH_VERSION+set}" ; then
21036 setopt NO_GLOB_SUBST
21038 # Now quote all the things that may contain metacharacters while being
21039 # careful not to overquote the AC_SUBSTed values. We take copies of the
21040 # variables and quote the copies for generation of the libtool script.
21041 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21043 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21044 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21045 deplibs_check_method reload_flag reload_cmds need_locks \
21046 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21047 lt_cv_sys_global_symbol_to_c_name_address \
21048 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21049 old_postinstall_cmds old_postuninstall_cmds \
21053 lt_prog_compiler_wl_CXX \
21054 lt_prog_compiler_pic_CXX \
21055 lt_prog_compiler_static_CXX \
21056 lt_prog_compiler_no_builtin_flag_CXX \
21057 export_dynamic_flag_spec_CXX \
21058 thread_safe_flag_spec_CXX \
21059 whole_archive_flag_spec_CXX \
21060 enable_shared_with_static_runtimes_CXX \
21061 old_archive_cmds_CXX \
21062 old_archive_from_new_cmds_CXX \
21063 predep_objects_CXX \
21064 postdep_objects_CXX \
21067 compiler_lib_search_path_CXX \
21069 archive_expsym_cmds_CXX \
21070 postinstall_cmds_CXX \
21071 postuninstall_cmds_CXX \
21072 old_archive_from_expsyms_cmds_CXX \
21073 allow_undefined_flag_CXX \
21074 no_undefined_flag_CXX \
21075 export_symbols_cmds_CXX \
21076 hardcode_libdir_flag_spec_CXX \
21077 hardcode_libdir_flag_spec_ld_CXX \
21078 hardcode_libdir_separator_CXX \
21079 hardcode_automatic_CXX \
21081 module_expsym_cmds_CXX \
21082 lt_cv_prog_compiler_c_o_CXX \
21083 exclude_expsyms_CXX \
21084 include_expsyms_CXX
; do
21087 old_archive_cmds_CXX | \
21088 old_archive_from_new_cmds_CXX | \
21089 archive_cmds_CXX | \
21090 archive_expsym_cmds_CXX | \
21091 module_cmds_CXX | \
21092 module_expsym_cmds_CXX | \
21093 old_archive_from_expsyms_cmds_CXX | \
21094 export_symbols_cmds_CXX | \
21095 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21096 postinstall_cmds | postuninstall_cmds | \
21097 old_postinstall_cmds | old_postuninstall_cmds | \
21098 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
21099 # Double-quote double-evaled strings.
21100 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21103 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21109 *'\$0 --fallback-echo"')
21110 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21116 cat <<__EOF__ >> "$cfgfile"
21117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21121 # Shell to use when invoking shell scripts.
21124 # Whether or not to build shared libraries.
21125 build_libtool_libs=$enable_shared
21127 # Whether or not to build static libraries.
21128 build_old_libs=$enable_static
21130 # Whether or not to add -lc for building shared libraries.
21131 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21133 # Whether or not to disallow shared libs when runtime libs are static
21134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21136 # Whether or not to optimize for fast installation.
21137 fast_install=$enable_fast_install
21140 host_alias=$host_alias
21144 # The build system.
21145 build_alias=$build_alias
21149 # An echo program that does not interpret backslashes.
21154 AR_FLAGS=$lt_AR_FLAGS
21159 # LTCC compiler flags.
21160 LTCFLAGS=$lt_LTCFLAGS
21162 # A language-specific compiler.
21163 CC=$lt_compiler_CXX
21165 # Is the compiler the GNU C compiler?
21171 # The linker used to build libraries.
21174 # Whether we need hard or soft links.
21177 # A BSD-compatible nm program.
21180 # A symbol stripping program
21183 # Used to examine libraries when file_magic_cmd begins "file"
21184 MAGIC_CMD=$MAGIC_CMD
21186 # Used on cygwin: DLL creation program.
21189 # Used on cygwin: object dumper.
21192 # Used on cygwin: assembler.
21195 # The name of the directory that contains temporary libtool files.
21198 # How to create reloadable object files.
21199 reload_flag=$lt_reload_flag
21200 reload_cmds=$lt_reload_cmds
21202 # How to pass a linker flag through the compiler.
21203 wl=$lt_lt_prog_compiler_wl_CXX
21205 # Object file suffix (normally "o").
21206 objext="$ac_objext"
21208 # Old archive suffix (normally "a").
21211 # Shared library suffix (normally ".so").
21212 shrext_cmds='$shrext_cmds'
21214 # Executable file suffix (normally "").
21217 # Additional compiler flags for building library objects.
21218 pic_flag=$lt_lt_prog_compiler_pic_CXX
21221 # What is the maximum length of a command?
21222 max_cmd_len=$lt_cv_sys_max_cmd_len
21224 # Does compiler simultaneously support -c and -o options?
21225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21227 # Must we lock files when doing compilation?
21228 need_locks=$lt_need_locks
21230 # Do we need the lib prefix for modules?
21231 need_lib_prefix=$need_lib_prefix
21233 # Do we need a version for libraries?
21234 need_version=$need_version
21236 # Whether dlopen is supported.
21237 dlopen_support=$enable_dlopen
21239 # Whether dlopen of programs is supported.
21240 dlopen_self=$enable_dlopen_self
21242 # Whether dlopen of statically linked programs is supported.
21243 dlopen_self_static=$enable_dlopen_self_static
21245 # Compiler flag to prevent dynamic linking.
21246 link_static_flag=$lt_lt_prog_compiler_static_CXX
21248 # Compiler flag to turn off builtin functions.
21249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21251 # Compiler flag to allow reflexive dlopens.
21252 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21254 # Compiler flag to generate shared objects directly from archives.
21255 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21257 # Compiler flag to generate thread-safe objects.
21258 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21260 # Library versioning type.
21261 version_type=$version_type
21263 # Format of library name prefix.
21264 libname_spec=$lt_libname_spec
21266 # List of archive names. First name is the real one, the rest are links.
21267 # The last name is the one that the linker finds with -lNAME.
21268 library_names_spec=$lt_library_names_spec
21270 # The coded name of the library, if different from the real name.
21271 soname_spec=$lt_soname_spec
21273 # Commands used to build and install an old-style archive.
21275 old_archive_cmds=$lt_old_archive_cmds_CXX
21276 old_postinstall_cmds=$lt_old_postinstall_cmds
21277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21279 # Create an old-style archive from a shared archive.
21280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21282 # Create a temporary old-style archive to link instead of a shared archive.
21283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21285 # Commands used to build and install a shared archive.
21286 archive_cmds=$lt_archive_cmds_CXX
21287 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21288 postinstall_cmds=$lt_postinstall_cmds
21289 postuninstall_cmds=$lt_postuninstall_cmds
21291 # Commands used to build a loadable module (assumed same as above if empty)
21292 module_cmds=$lt_module_cmds_CXX
21293 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21295 # Commands to strip libraries.
21296 old_striplib=$lt_old_striplib
21297 striplib=$lt_striplib
21299 # Dependencies to place before the objects being linked to create a
21301 predep_objects=$lt_predep_objects_CXX
21303 # Dependencies to place after the objects being linked to create a
21305 postdep_objects=$lt_postdep_objects_CXX
21307 # Dependencies to place before the objects being linked to create a
21309 predeps=$lt_predeps_CXX
21311 # Dependencies to place after the objects being linked to create a
21313 postdeps=$lt_postdeps_CXX
21315 # The library search path used internally by the compiler when linking
21316 # a shared library.
21317 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21319 # Method to check whether dependent libraries are shared objects.
21320 deplibs_check_method=$lt_deplibs_check_method
21322 # Command to use when deplibs_check_method == file_magic.
21323 file_magic_cmd=$lt_file_magic_cmd
21325 # Flag that allows shared libraries with undefined symbols to be built.
21326 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21328 # Flag that forces no undefined symbols.
21329 no_undefined_flag=$lt_no_undefined_flag_CXX
21331 # Commands used to finish a libtool library installation in a directory.
21332 finish_cmds=$lt_finish_cmds
21334 # Same as above, but a single script fragment to be evaled but not shown.
21335 finish_eval=$lt_finish_eval
21337 # Take the output of nm and produce a listing of raw symbols and C names.
21338 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21340 # Transform the output of nm in a proper C declaration
21341 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21343 # Transform the output of nm in a C name address pair
21344 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21346 # This is the shared library runtime path variable.
21347 runpath_var=$runpath_var
21349 # This is the shared library path variable.
21350 shlibpath_var=$shlibpath_var
21352 # Is shlibpath searched before the hard-coded library search path?
21353 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21355 # How to hardcode a shared library path into an executable.
21356 hardcode_action=$hardcode_action_CXX
21358 # Whether we should hardcode library paths into libraries.
21359 hardcode_into_libs=$hardcode_into_libs
21361 # Flag to hardcode \$libdir into a binary during linking.
21362 # This must work even if \$libdir does not exist.
21363 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21365 # If ld is used when linking, flag to hardcode \$libdir into
21366 # a binary during linking. This must work even if \$libdir does
21368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21370 # Whether we need a single -rpath flag with a separated argument.
21371 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21373 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21374 # resulting binary.
21375 hardcode_direct=$hardcode_direct_CXX
21377 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21378 # resulting binary.
21379 hardcode_minus_L=$hardcode_minus_L_CXX
21381 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21382 # the resulting binary.
21383 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21385 # Set to yes if building a shared library automatically hardcodes DIR into the library
21386 # and all subsequent libraries and executables linked against it.
21387 hardcode_automatic=$hardcode_automatic_CXX
21389 # Variables whose values should be saved in libtool wrapper scripts and
21390 # restored at relink time.
21391 variables_saved_for_relink="$variables_saved_for_relink"
21393 # Whether libtool must link a program against all its dependency libraries.
21394 link_all_deplibs=$link_all_deplibs_CXX
21396 # Compile-time system search path for libraries
21397 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21399 # Run-time system search path for libraries
21400 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21402 # Fix the shell variable \$srcfile for the compiler.
21403 fix_srcfile_path="$fix_srcfile_path_CXX"
21405 # Set to yes if exported symbols are required.
21406 always_export_symbols=$always_export_symbols_CXX
21408 # The commands to list exported symbols.
21409 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21411 # The commands to extract the exported symbol list from a shared archive.
21412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21414 # Symbols that should not be listed in the preloaded symbols.
21415 exclude_expsyms=$lt_exclude_expsyms_CXX
21417 # Symbols that must always be exported.
21418 include_expsyms=$lt_include_expsyms_CXX
21420 # ### END LIBTOOL TAG CONFIG: $tagname
21426 # If there is no Makefile yet, we rely on a make rule to execute
21427 # `config.status --recheck' to rerun these tests and create the
21428 # libtool script then.
21429 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21430 if test -f "$ltmain_in"; then
21431 test -f Makefile
&& make "$ltmain"
21437 ac_cpp
='$CPP $CPPFLAGS'
21438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21446 with_gnu_ldcxx
=$with_gnu_ld
21447 with_gnu_ld
=$lt_save_with_gnu_ld
21448 lt_cv_path_LDCXX
=$lt_cv_path_LD
21449 lt_cv_path_LD
=$lt_save_path_LD
21450 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21451 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21459 if test -n "$F77" && test "X$F77" != "Xno"; then
21462 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21463 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21464 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
21467 archive_cmds_need_lc_F77
=no
21468 allow_undefined_flag_F77
=
21469 always_export_symbols_F77
=no
21470 archive_expsym_cmds_F77
=
21471 export_dynamic_flag_spec_F77
=
21472 hardcode_direct_F77
=no
21473 hardcode_libdir_flag_spec_F77
=
21474 hardcode_libdir_flag_spec_ld_F77
=
21475 hardcode_libdir_separator_F77
=
21476 hardcode_minus_L_F77
=no
21477 hardcode_automatic_F77
=no
21479 module_expsym_cmds_F77
=
21480 link_all_deplibs_F77
=unknown
21481 old_archive_cmds_F77
=$old_archive_cmds
21482 no_undefined_flag_F77
=
21483 whole_archive_flag_spec_F77
=
21484 enable_shared_with_static_runtimes_F77
=no
21486 # Source file extension for f77 test sources.
21489 # Object file extension for compiled f77 test sources.
21493 # Code to be used in simple compile tests
21494 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
21496 # Code to be used in simple link tests
21497 lt_simple_link_test_code
=" program t\n end\n"
21499 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21501 # If no C compiler was specified, use CC.
21504 # If no C compiler flags were specified, use CFLAGS.
21505 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21507 # Allow CC to be a program name with arguments.
21511 # save warnings/boilerplate of simple test code
21512 ac_outfile
=conftest.
$ac_objext
21513 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
21514 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21515 _lt_compiler_boilerplate
=`cat conftest.err`
21518 ac_outfile
=conftest.
$ac_objext
21519 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
21520 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21521 _lt_linker_boilerplate
=`cat conftest.err`
21525 # Allow CC to be a program name with arguments.
21530 for cc_temp
in $compiler""; do
21532 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21533 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21538 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21541 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21542 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21543 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21544 echo "${ECHO_T}$can_build_shared" >&6; }
21546 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21547 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21548 test "$can_build_shared" = "no" && enable_shared
=no
21550 # On AIX, shared libraries and static libraries use the same namespace, and
21551 # are all built from PIC.
21554 test "$enable_shared" = yes && enable_static
=no
21555 if test -n "$RANLIB"; then
21556 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21557 postinstall_cmds
='$RANLIB $lib'
21561 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21562 test "$enable_shared" = yes && enable_static
=no
21566 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21567 echo "${ECHO_T}$enable_shared" >&6; }
21569 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21570 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21571 # Make sure either enable_shared or enable_static is yes.
21572 test "$enable_shared" = yes || enable_static
=yes
21573 { echo "$as_me:$LINENO: result: $enable_static" >&5
21574 echo "${ECHO_T}$enable_static" >&6; }
21579 lt_prog_compiler_wl_F77
=
21580 lt_prog_compiler_pic_F77
=
21581 lt_prog_compiler_static_F77
=
21583 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21584 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21586 if test "$GCC" = yes; then
21587 lt_prog_compiler_wl_F77
='-Wl,'
21588 lt_prog_compiler_static_F77
='-static'
21592 # All AIX code is PIC.
21593 if test "$host_cpu" = ia64
; then
21594 # AIX 5 now supports IA64 processor
21595 lt_prog_compiler_static_F77
='-Bstatic'
21600 # FIXME: we need at least 68020 code to build shared libraries, but
21601 # adding the `-m68020' flag to GCC prevents building anything better,
21603 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
21606 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21607 # PIC is the default for these OSes.
21610 mingw
* | pw32
* | os2
*)
21611 # This hack is so that the source file can tell whether it is being
21612 # built for inclusion in a dll (and should export symbols for example).
21613 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21616 darwin
* | rhapsody
*)
21617 # PIC is the default on this platform
21618 # Common symbols not allowed in MH_DYLIB files
21619 lt_prog_compiler_pic_F77
='-fno-common'
21623 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21624 # Instead, we relocate shared libraries at runtime.
21628 # Just because we use GCC doesn't mean we suddenly get shared libraries
21629 # on systems that don't support them.
21630 lt_prog_compiler_can_build_shared_F77
=no
21635 if test -d /usr
/nec
; then
21636 lt_prog_compiler_pic_F77
=-Kconform_pic
21641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21642 # not for PA HP-UX.
21648 lt_prog_compiler_pic_F77
='-fPIC'
21654 lt_prog_compiler_pic_F77
='-fPIC'
21658 # PORTME Check for flag to pass linker flags through the system compiler.
21661 lt_prog_compiler_wl_F77
='-Wl,'
21662 if test "$host_cpu" = ia64
; then
21663 # AIX 5 now supports IA64 processor
21664 lt_prog_compiler_static_F77
='-Bstatic'
21666 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
21670 # PIC is the default on this platform
21671 # Common symbols not allowed in MH_DYLIB files
21672 case $cc_basename in
21674 lt_prog_compiler_pic_F77
='-qnocommon'
21675 lt_prog_compiler_wl_F77
='-Wl,'
21680 mingw
* | pw32
* | os2
*)
21681 # This hack is so that the source file can tell whether it is being
21682 # built for inclusion in a dll (and should export symbols for example).
21683 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21686 hpux9
* | hpux10
* | hpux11
*)
21687 lt_prog_compiler_wl_F77
='-Wl,'
21688 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21689 # not for PA HP-UX.
21695 lt_prog_compiler_pic_F77
='+Z'
21698 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21699 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21702 irix5
* | irix6
* | nonstopux
*)
21703 lt_prog_compiler_wl_F77
='-Wl,'
21704 # PIC (with -KPIC) is the default.
21705 lt_prog_compiler_static_F77
='-non_shared'
21709 lt_prog_compiler_pic_F77
='-KPIC'
21710 lt_prog_compiler_static_F77
='-Bstatic'
21714 case $cc_basename in
21716 lt_prog_compiler_wl_F77
='-Wl,'
21717 lt_prog_compiler_pic_F77
='-KPIC'
21718 lt_prog_compiler_static_F77
='-static'
21720 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21721 # Portland Group compilers (*not* the Pentium gcc compiler,
21722 # which looks to be a dead project)
21723 lt_prog_compiler_wl_F77
='-Wl,'
21724 lt_prog_compiler_pic_F77
='-fpic'
21725 lt_prog_compiler_static_F77
='-Bstatic'
21728 lt_prog_compiler_wl_F77
='-Wl,'
21729 # All Alpha code is PIC.
21730 lt_prog_compiler_static_F77
='-non_shared'
21735 osf3
* | osf4
* | osf5
*)
21736 lt_prog_compiler_wl_F77
='-Wl,'
21737 # All OSF/1 code is PIC.
21738 lt_prog_compiler_static_F77
='-non_shared'
21742 lt_prog_compiler_pic_F77
='-KPIC'
21743 lt_prog_compiler_static_F77
='-Bstatic'
21744 case $cc_basename in
21745 f77
* | f90
* | f95
*)
21746 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21748 lt_prog_compiler_wl_F77
='-Wl,';;
21753 lt_prog_compiler_wl_F77
='-Qoption ld '
21754 lt_prog_compiler_pic_F77
='-PIC'
21755 lt_prog_compiler_static_F77
='-Bstatic'
21758 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21759 lt_prog_compiler_wl_F77
='-Wl,'
21760 lt_prog_compiler_pic_F77
='-KPIC'
21761 lt_prog_compiler_static_F77
='-Bstatic'
21765 if test -d /usr
/nec
;then
21766 lt_prog_compiler_pic_F77
='-Kconform_pic'
21767 lt_prog_compiler_static_F77
='-Bstatic'
21771 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21772 lt_prog_compiler_wl_F77
='-Wl,'
21773 lt_prog_compiler_pic_F77
='-KPIC'
21774 lt_prog_compiler_static_F77
='-Bstatic'
21778 lt_prog_compiler_wl_F77
='-Wl,'
21779 lt_prog_compiler_can_build_shared_F77
=no
21783 lt_prog_compiler_pic_F77
='-pic'
21784 lt_prog_compiler_static_F77
='-Bstatic'
21788 lt_prog_compiler_can_build_shared_F77
=no
21793 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21794 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21797 # Check to make sure the PIC flag actually works.
21799 if test -n "$lt_prog_compiler_pic_F77"; then
21801 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21802 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21803 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21806 lt_prog_compiler_pic_works_F77
=no
21807 ac_outfile
=conftest.
$ac_objext
21808 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21809 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21810 # Insert the option either (1) after the last *FLAGS variable, or
21811 # (2) before a word containing "conftest.", or (3) at the end.
21812 # Note that $ac_compile itself does not contain backslashes and begins
21813 # with a dollar sign (not a hyphen), so the echo should work correctly.
21814 # The option is referenced via a variable to avoid confusing sed.
21815 lt_compile
=`echo "$ac_compile" | $SED \
21816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21818 -e 's:$: $lt_compiler_flag:'`
21819 (eval echo "\"\$as_me:21819: $lt_compile\"" >&5)
21820 (eval "$lt_compile" 2>conftest.err
)
21822 cat conftest.err
>&5
21823 echo "$as_me:21823: \$? = $ac_status" >&5
21824 if (exit $ac_status) && test -s "$ac_outfile"; then
21825 # The compiler can only warn and ignore the option if not recognized
21826 # So say no if there are warnings other than the usual output.
21827 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21828 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21829 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21830 lt_prog_compiler_pic_works_F77
=yes
21836 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21837 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21839 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21840 case $lt_prog_compiler_pic_F77 in
21842 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21845 lt_prog_compiler_pic_F77
=
21846 lt_prog_compiler_can_build_shared_F77
=no
21851 # For platforms which do not support PIC, -DPIC is meaningless:
21853 lt_prog_compiler_pic_F77
=
21856 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21861 # Check to make sure the static flag actually works.
21863 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21864 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21865 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21866 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21869 lt_prog_compiler_static_works_F77
=no
21870 save_LDFLAGS
="$LDFLAGS"
21871 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21872 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21873 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21874 # The linker can only warn and ignore the option if not recognized
21875 # So say no if there are warnings
21876 if test -s conftest.err
; then
21877 # Append any errors to the config.log.
21878 cat conftest.err
1>&5
21879 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21880 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21881 if diff conftest.exp conftest.er2
>/dev
/null
; then
21882 lt_prog_compiler_static_works_F77
=yes
21885 lt_prog_compiler_static_works_F77
=yes
21889 LDFLAGS
="$save_LDFLAGS"
21892 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21893 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21895 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21898 lt_prog_compiler_static_F77
=
21902 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21903 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21904 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21907 lt_cv_prog_compiler_c_o_F77
=no
21908 $rm -r conftest
2>/dev
/null
21912 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21914 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21915 # Insert the option either (1) after the last *FLAGS variable, or
21916 # (2) before a word containing "conftest.", or (3) at the end.
21917 # Note that $ac_compile itself does not contain backslashes and begins
21918 # with a dollar sign (not a hyphen), so the echo should work correctly.
21919 lt_compile
=`echo "$ac_compile" | $SED \
21920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21922 -e 's:$: $lt_compiler_flag:'`
21923 (eval echo "\"\$as_me:21923: $lt_compile\"" >&5)
21924 (eval "$lt_compile" 2>out
/conftest.err
)
21926 cat out
/conftest.err
>&5
21927 echo "$as_me:21927: \$? = $ac_status" >&5
21928 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21930 # The compiler can only warn and ignore the option if not recognized
21931 # So say no if there are warnings
21932 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21933 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21934 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21935 lt_cv_prog_compiler_c_o_F77
=yes
21940 # SGI C++ compiler will create directory out/ii_files/ for
21941 # template instantiation
21942 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21943 $rm out
/* && rmdir out
21949 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21950 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21953 hard_links
="nottested"
21954 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
21955 # do not overwrite the value of need_locks provided by the user
21956 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21957 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21960 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21962 ln conftest.a conftest.b
2>&5 || hard_links
=no
21963 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21964 { echo "$as_me:$LINENO: result: $hard_links" >&5
21965 echo "${ECHO_T}$hard_links" >&6; }
21966 if test "$hard_links" = no
; then
21967 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21968 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21975 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21976 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21979 allow_undefined_flag_F77
=
21980 enable_shared_with_static_runtimes_F77
=no
21982 archive_expsym_cmds_F77
=
21983 old_archive_From_new_cmds_F77
=
21984 old_archive_from_expsyms_cmds_F77
=
21985 export_dynamic_flag_spec_F77
=
21986 whole_archive_flag_spec_F77
=
21987 thread_safe_flag_spec_F77
=
21988 hardcode_libdir_flag_spec_F77
=
21989 hardcode_libdir_flag_spec_ld_F77
=
21990 hardcode_libdir_separator_F77
=
21991 hardcode_direct_F77
=no
21992 hardcode_minus_L_F77
=no
21993 hardcode_shlibpath_var_F77
=unsupported
21994 link_all_deplibs_F77
=unknown
21995 hardcode_automatic_F77
=no
21997 module_expsym_cmds_F77
=
21998 always_export_symbols_F77
=no
21999 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22000 # include_expsyms should be a list of space-separated symbols to be *always*
22001 # included in the symbol list
22002 include_expsyms_F77
=
22003 # exclude_expsyms can be an extended regexp of symbols to exclude
22004 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22005 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22006 # as well as any symbol that contains `d'.
22007 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
22008 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22009 # platforms (ab)use it in PIC code, but their linkers get confused if
22010 # the symbol is explicitly referenced. Since portable code cannot
22011 # rely on this symbol name, it's probably fine to never include it in
22012 # preloaded symbol tables.
22013 extract_expsyms_cmds
=
22014 # Just being paranoid about ensuring that cc_basename is set.
22015 for cc_temp
in $compiler""; do
22017 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
22018 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
22023 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22026 cygwin
* | mingw
* | pw32
*)
22027 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22028 # When not using gcc, we currently assume that we are using
22029 # Microsoft Visual C++.
22030 if test "$GCC" != yes; then
22035 # we just hope/assume this is gcc and not c89 (= MSVC++)
22044 if test "$with_gnu_ld" = yes; then
22045 # If archive_cmds runs LD, not CC, wlarc should be empty
22048 # Set some defaults for GNU ld with shared library support. These
22049 # are reset later if shared libraries are not supported. Putting them
22050 # here allows them to be overridden if necessary.
22051 runpath_var
=LD_RUN_PATH
22052 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
22053 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
22054 # ancient GNU ld didn't support --whole-archive et. al.
22055 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
22056 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22058 whole_archive_flag_spec_F77
=
22060 supports_anon_versioning
=no
22061 case `$LD -v 2>/dev/null` in
22062 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
22063 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
22064 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
22065 *\
2.11.
*) ;; # other 2.11 versions
22066 *) supports_anon_versioning
=yes ;;
22069 # See if GNU ld supports shared libraries.
22071 aix3
* | aix4
* | aix5
*)
22072 # On AIX/PPC, the GNU linker is very broken
22073 if test "$host_cpu" != ia64
; then
22077 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22078 *** to be unable to reliably create shared libraries on AIX.
22079 *** Therefore, libtool is disabling shared libraries support. If you
22080 *** really care for shared libraries, you may want to modify your PATH
22081 *** so that a non-GNU linker is found, and then restart.
22088 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)'
22089 hardcode_libdir_flag_spec_F77
='-L$libdir'
22090 hardcode_minus_L_F77
=yes
22092 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22093 # that the semantics of dynamic libraries on AmigaOS, at least up
22094 # to version 4, is to share data among multiple programs linked
22095 # with the same dynamic library. Since this doesn't match the
22096 # behavior of shared libraries on other platforms, we can't use
22102 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22103 allow_undefined_flag_F77
=unsupported
22104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22105 # support --undefined. This deserves some investigation. FIXME
22106 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22112 cygwin
* | mingw
* | pw32
*)
22113 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22114 # as there is no search path for DLLs.
22115 hardcode_libdir_flag_spec_F77
='-L$libdir'
22116 allow_undefined_flag_F77
=unsupported
22117 always_export_symbols_F77
=no
22118 enable_shared_with_static_runtimes_F77
=yes
22119 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22121 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
22122 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22123 # If the export-symbols file already is a .def file (1st line
22124 # is EXPORTS), use it as is; otherwise, prepend...
22125 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22126 cp $export_symbols $output_objdir/$soname.def;
22128 echo EXPORTS > $output_objdir/$soname.def;
22129 cat $export_symbols >> $output_objdir/$soname.def;
22131 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22138 hardcode_direct_F77
=no
22139 hardcode_shlibpath_var_F77
=no
22140 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22141 export_dynamic_flag_spec_F77
='${wl}-E'
22142 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22143 # Instead, shared libraries are loaded at an image base (0x10000000 by
22144 # default) and relocated if they conflict, which is a slow very memory
22145 # consuming and fragmenting process. To avoid this, we pick a random,
22146 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22147 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22148 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'
22149 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'
22153 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22155 case $cc_basename,$host_cpu in
22156 pgcc
*) # Portland Group C compiler
22157 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'
22158 tmp_addflag
=' $pic_flag'
22160 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
22161 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'
22162 tmp_addflag
=' $pic_flag -Mnomain' ;;
22163 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
22164 tmp_addflag
=' -i_dynamic' ;;
22165 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
22166 tmp_addflag
=' -i_dynamic -nofor_main' ;;
22167 ifc
* | ifort
*) # Intel Fortran compiler
22168 tmp_addflag
=' -nofor_main' ;;
22170 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22172 if test $supports_anon_versioning = yes; then
22173 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
22174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22175 $echo "local: *; };" >> $output_objdir/$libname.ver~
22176 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22184 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22185 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22188 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22189 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22194 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
22198 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22199 *** create shared libraries on Solaris systems. Therefore, libtool
22200 *** is disabling shared libraries support. We urge you to upgrade GNU
22201 *** binutils to release 2.9.1 or newer. Another option is to modify
22202 *** your PATH or compiler configuration so that the native linker is
22203 *** used, and then restart.
22206 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22207 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22208 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22214 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
22215 case `$LD -v 2>&1` in
22216 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
22220 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22221 *** reliably create shared libraries on SCO systems. Therefore, libtool
22222 *** is disabling shared libraries support. We urge you to upgrade GNU
22223 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22224 *** your PATH or compiler configuration so that the native linker is
22225 *** used, and then restart.
22230 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22231 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22232 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22233 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22242 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22244 hardcode_direct_F77
=yes
22245 hardcode_shlibpath_var_F77
=no
22249 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22250 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22251 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22258 if test "$ld_shlibs_F77" = no
; then
22260 hardcode_libdir_flag_spec_F77
=
22261 export_dynamic_flag_spec_F77
=
22262 whole_archive_flag_spec_F77
=
22265 # PORTME fill in a description of your system's linker (not GNU ld)
22268 allow_undefined_flag_F77
=unsupported
22269 always_export_symbols_F77
=yes
22270 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'
22271 # Note: this linker hardcodes the directories in LIBPATH if there
22272 # are no directories specified by -L.
22273 hardcode_minus_L_F77
=yes
22274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22275 # Neither direct hardcoding nor static linking is supported with a
22277 hardcode_direct_F77
=unsupported
22282 if test "$host_cpu" = ia64
; then
22283 # On IA64, the linker does run time linking by default, so we don't
22284 # have to do anything special.
22285 aix_use_runtimelinking
=no
22286 exp_sym_flag
='-Bexport'
22289 # If we're using GNU nm, then we don't want the "-C" option.
22290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22291 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
22292 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'
22294 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'
22296 aix_use_runtimelinking
=no
22298 # Test if we are trying to use run time linking or normal
22299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22300 # need to do runtime linking.
22301 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
22302 for ld_flag
in $LDFLAGS; do
22303 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
22304 aix_use_runtimelinking
=yes
22311 exp_sym_flag
='-bexport'
22312 no_entry_flag
='-bnoentry'
22315 # When large executables or shared objects are built, AIX ld can
22316 # have problems creating the table of contents. If linking a library
22317 # or program results in "error TOC overflow" add -mminimal-toc to
22318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22321 archive_cmds_F77
=''
22322 hardcode_direct_F77
=yes
22323 hardcode_libdir_separator_F77
=':'
22324 link_all_deplibs_F77
=yes
22326 if test "$GCC" = yes; then
22327 case $host_os in aix4.
[012]|aix4.
[012].
*)
22328 # We only want to do this on AIX 4.2 and lower, the check
22329 # below for broken collect2 doesn't work under 4.3+
22330 collect2name
=`${CC} -print-prog-name=collect2`
22331 if test -f "$collect2name" && \
22332 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
22334 # We have reworked collect2
22335 hardcode_direct_F77
=yes
22337 # We have old collect2
22338 hardcode_direct_F77
=unsupported
22339 # It fails to find uninstalled libraries when the uninstalled
22340 # path is not listed in the libpath. Setting hardcode_minus_L
22341 # to unsupported forces relinking
22342 hardcode_minus_L_F77
=yes
22343 hardcode_libdir_flag_spec_F77
='-L$libdir'
22344 hardcode_libdir_separator_F77
=
22348 shared_flag
='-shared'
22349 if test "$aix_use_runtimelinking" = yes; then
22350 shared_flag
="$shared_flag "'${wl}-G'
22354 if test "$host_cpu" = ia64
; then
22355 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22356 # chokes on -Wl,-G. The following line is correct:
22359 if test "$aix_use_runtimelinking" = yes; then
22360 shared_flag
='${wl}-G'
22362 shared_flag
='${wl}-bM:SRE'
22367 # It seems that -bexpall does not export symbols beginning with
22368 # underscore (_), so it is better to generate a list of symbols to export.
22369 always_export_symbols_F77
=yes
22370 if test "$aix_use_runtimelinking" = yes; then
22371 # Warning - without using the other runtime loading flags (-brtl),
22372 # -berok will link without error, but may produce a broken library.
22373 allow_undefined_flag_F77
='-berok'
22374 # Determine the default libpath from the value encoded in an empty executable.
22375 cat >conftest.
$ac_ext <<_ACEOF
22380 rm -f conftest.
$ac_objext conftest
$ac_exeext
22381 if { (ac_try
="$ac_link"
22382 case "(($ac_try" in
22383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22384 *) ac_try_echo=$ac_try;;
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387 (eval "$ac_link") 2>conftest.er1
22389 grep -v '^ *+' conftest.er1 >conftest.err
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
22394 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22395 { (case "(($ac_try" in
22396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22397 *) ac_try_echo
=$ac_try;;
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_try") 2>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; } &&
22404 { ac_try
='test -s conftest$ac_exeext'
22405 { (case "(($ac_try" in
22406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22410 (eval "$ac_try") 2>&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; }; then
22415 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22417 # Check for a 64-bit object if we didn't find anything.
22418 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; }
22421 echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22427 rm -f core conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext conftest.$ac_ext
22429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22431 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22432 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"
22434 if test "$host_cpu" = ia64; then
22435 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22436 allow_undefined_flag_F77="-z nodefs"
22437 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"
22439 # Determine the default libpath from the value encoded in an empty executable.
22440 cat >conftest.$ac_ext <<_ACEOF
22445 rm -f conftest.$ac_objext conftest$ac_exeext
22446 if { (ac_try="$ac_link"
22447 case "(($ac_try" in
22448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22449 *) ac_try_echo
=$ac_try;;
22451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_link") 2>conftest.er1
22454 grep -v '^ *+' conftest.er1
>conftest.err
22456 cat conftest.err
>&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
22459 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22460 { (case "(($ac_try" in
22461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_try") 2>&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; } &&
22469 { ac_try='test -s conftest$ac_exeext'
22470 { (case "(($ac_try" in
22471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22472 *) ac_try_echo
=$ac_try;;
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_try") 2>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; }; then
22480 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22482 # Check for a 64-bit object if we didn't find anything.
22483 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; }
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.
$ac_ext >&5
22492 rm -f core conftest.err conftest.
$ac_objext \
22493 conftest
$ac_exeext conftest.
$ac_ext
22494 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22496 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
22497 # Warning - without using the other run time loading flags,
22498 # -berok will link without error, but may produce a broken library.
22499 no_undefined_flag_F77
=' ${wl}-bernotok'
22500 allow_undefined_flag_F77
=' ${wl}-berok'
22501 # Exported symbols can be pulled into shared objects from archives
22502 whole_archive_flag_spec_F77
='$convenience'
22503 archive_cmds_need_lc_F77
=yes
22504 # This is similar to how AIX traditionally builds its shared libraries.
22505 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'
22511 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)'
22512 hardcode_libdir_flag_spec_F77
='-L$libdir'
22513 hardcode_minus_L_F77
=yes
22514 # see comment about different semantics on the GNU ld section
22519 export_dynamic_flag_spec_F77
=-rdynamic
22522 cygwin
* | mingw
* | pw32
*)
22523 # When not using gcc, we currently assume that we are using
22524 # Microsoft Visual C++.
22525 # hardcode_libdir_flag_spec is actually meaningless, as there is
22526 # no search path for DLLs.
22527 hardcode_libdir_flag_spec_F77
=' '
22528 allow_undefined_flag_F77
=unsupported
22529 # Tell ltmain to make .lib files, not .a files.
22531 # Tell ltmain to make .dll files, not .so files.
22533 # FIXME: Setting linknames here is a bad hack.
22534 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22535 # The linker will automatically build a .lib file if we build a DLL.
22536 old_archive_From_new_cmds_F77
='true'
22537 # FIXME: Should let the user specify the lib program.
22538 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
22539 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
22540 enable_shared_with_static_runtimes_F77
=yes
22543 darwin
* | rhapsody
*)
22545 rhapsody
* | darwin1.
[012])
22546 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
22549 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22550 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22552 case ${MACOSX_DEPLOYMENT_TARGET} in
22554 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22557 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
22563 archive_cmds_need_lc_F77
=no
22564 hardcode_direct_F77
=no
22565 hardcode_automatic_F77
=yes
22566 hardcode_shlibpath_var_F77
=unsupported
22567 whole_archive_flag_spec_F77
=''
22568 link_all_deplibs_F77
=yes
22569 if test "$GCC" = yes ; then
22570 output_verbose_link_cmd
='echo'
22571 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22572 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22574 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}'
22575 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}'
22577 case $cc_basename in
22579 output_verbose_link_cmd
='echo'
22580 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22581 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22583 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}'
22584 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}'
22594 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22595 hardcode_libdir_flag_spec_F77
='-L$libdir'
22596 hardcode_shlibpath_var_F77
=no
22603 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22604 # support. Future versions do this automatically, but an explicit c++rt0.o
22605 # does not break anything, and helps significantly (at the cost of a little
22608 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22609 hardcode_libdir_flag_spec_F77
='-R$libdir'
22610 hardcode_direct_F77
=yes
22611 hardcode_shlibpath_var_F77
=no
22614 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22616 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22617 hardcode_direct_F77
=yes
22618 hardcode_minus_L_F77
=yes
22619 hardcode_shlibpath_var_F77
=no
22622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22623 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
22624 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22625 hardcode_libdir_flag_spec_F77
='-R$libdir'
22626 hardcode_direct_F77
=yes
22627 hardcode_shlibpath_var_F77
=no
22631 if test "$GCC" = yes; then
22632 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'
22634 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'
22636 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22637 hardcode_libdir_separator_F77
=:
22638 hardcode_direct_F77
=yes
22640 # hardcode_minus_L: Not really in the search PATH,
22641 # but as the default location of the library.
22642 hardcode_minus_L_F77
=yes
22643 export_dynamic_flag_spec_F77
='${wl}-E'
22647 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22648 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22650 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22652 if test "$with_gnu_ld" = no
; then
22653 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22654 hardcode_libdir_separator_F77
=:
22656 hardcode_direct_F77
=yes
22657 export_dynamic_flag_spec_F77
='${wl}-E'
22659 # hardcode_minus_L: Not really in the search PATH,
22660 # but as the default location of the library.
22661 hardcode_minus_L_F77
=yes
22666 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22669 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22672 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22675 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22681 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22684 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22687 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22691 if test "$with_gnu_ld" = no
; then
22692 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22693 hardcode_libdir_separator_F77
=:
22697 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22698 hardcode_direct_F77
=no
22699 hardcode_shlibpath_var_F77
=no
22702 hardcode_direct_F77
=yes
22703 export_dynamic_flag_spec_F77
='${wl}-E'
22705 # hardcode_minus_L: Not really in the search PATH,
22706 # but as the default location of the library.
22707 hardcode_minus_L_F77
=yes
22713 irix5
* | irix6
* | nonstopux
*)
22714 if test "$GCC" = yes; then
22715 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'
22717 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'
22718 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22720 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22721 hardcode_libdir_separator_F77
=:
22722 link_all_deplibs_F77
=yes
22726 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22727 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22729 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22731 hardcode_libdir_flag_spec_F77
='-R$libdir'
22732 hardcode_direct_F77
=yes
22733 hardcode_shlibpath_var_F77
=no
22737 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22738 hardcode_direct_F77
=yes
22739 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22740 hardcode_libdir_separator_F77
=:
22741 hardcode_shlibpath_var_F77
=no
22745 hardcode_direct_F77
=yes
22746 hardcode_shlibpath_var_F77
=no
22747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22748 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22749 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22750 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22751 export_dynamic_flag_spec_F77
='${wl}-E'
22754 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22755 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22756 hardcode_libdir_flag_spec_F77
='-R$libdir'
22759 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22760 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22767 hardcode_libdir_flag_spec_F77
='-L$libdir'
22768 hardcode_minus_L_F77
=yes
22769 allow_undefined_flag_F77
=unsupported
22770 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'
22771 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22775 if test "$GCC" = yes; then
22776 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22777 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'
22779 allow_undefined_flag_F77
=' -expect_unresolved \*'
22780 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'
22782 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22783 hardcode_libdir_separator_F77
=:
22786 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22787 if test "$GCC" = yes; then
22788 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22789 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'
22790 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22792 allow_undefined_flag_F77
=' -expect_unresolved \*'
22793 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'
22794 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~
22795 $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'
22797 # Both c and cxx compiler support -rpath directly
22798 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22800 hardcode_libdir_separator_F77
=:
22804 no_undefined_flag_F77
=' -z text'
22805 if test "$GCC" = yes; then
22807 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22808 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22809 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22812 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22813 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22816 hardcode_libdir_flag_spec_F77
='-R$libdir'
22817 hardcode_shlibpath_var_F77
=no
22819 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22821 # The compiler driver will combine linker options so we
22822 # cannot just pass the convience library names through
22823 # without $wl, iff we do not link with $LD.
22824 # Luckily, gcc supports the same syntax we need for Sun Studio.
22825 # Supported since Solaris 2.6 (maybe 2.5.1?)
22828 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22830 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' ;;
22833 link_all_deplibs_F77
=yes
22837 if test "x$host_vendor" = xsequent
; then
22838 # Use $CC to link under sequent, because it throws in some extra .o
22839 # files that make .init and .fini sections work.
22840 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22842 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22844 hardcode_libdir_flag_spec_F77
='-L$libdir'
22845 hardcode_direct_F77
=yes
22846 hardcode_minus_L_F77
=yes
22847 hardcode_shlibpath_var_F77
=no
22851 case $host_vendor in
22853 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22854 hardcode_direct_F77
=yes # is this really true???
22857 ## LD is ld it makes a PLAMLIB
22858 ## CC just makes a GrossModule.
22859 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22860 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22861 hardcode_direct_F77
=no
22864 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22865 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22868 runpath_var
='LD_RUN_PATH'
22869 hardcode_shlibpath_var_F77
=no
22873 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22874 hardcode_shlibpath_var_F77
=no
22875 export_dynamic_flag_spec_F77
='-Bexport'
22879 if test -d /usr
/nec
; then
22880 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22881 hardcode_shlibpath_var_F77
=no
22882 runpath_var
=LD_RUN_PATH
22883 hardcode_runpath_var
=yes
22888 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22889 no_undefined_flag_F77
='${wl}-z,text'
22890 archive_cmds_need_lc_F77
=no
22891 hardcode_shlibpath_var_F77
=no
22892 runpath_var
='LD_RUN_PATH'
22894 if test "$GCC" = yes; then
22895 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22896 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22898 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22899 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22903 sysv5
* | sco3.2v5
* | sco5v6
*)
22904 # Note: We can NOT use -z defs as we might desire, because we do not
22905 # link with -lc, and that would cause any symbols used from libc to
22906 # always be unresolved, which means just about no library would
22907 # ever link correctly. If we're not using GNU ld we use -z text
22908 # though, which does catch some bad symbols but isn't as heavy-handed
22910 no_undefined_flag_F77
='${wl}-z,text'
22911 allow_undefined_flag_F77
='${wl}-z,nodefs'
22912 archive_cmds_need_lc_F77
=no
22913 hardcode_shlibpath_var_F77
=no
22914 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22915 hardcode_libdir_separator_F77
=':'
22916 link_all_deplibs_F77
=yes
22917 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22918 runpath_var
='LD_RUN_PATH'
22920 if test "$GCC" = yes; then
22921 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22922 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22924 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22925 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22930 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22931 hardcode_libdir_flag_spec_F77
='-L$libdir'
22932 hardcode_shlibpath_var_F77
=no
22941 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22942 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22943 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22946 # Do we need to explicitly link libc?
22948 case "x$archive_cmds_need_lc_F77" in
22950 # Assume -lc should be added
22951 archive_cmds_need_lc_F77
=yes
22953 if test "$enable_shared" = yes && test "$GCC" = yes; then
22954 case $archive_cmds_F77 in
22956 # FIXME: we may have to deal with multi-command sequences.
22959 # Test whether the compiler implicitly links with -lc since on some
22960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22961 # to ld, don't add -lc before -lgcc.
22962 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22963 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22965 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22968 (eval $ac_compile) 2>&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } 2>conftest.err
; then
22974 libobjs
=conftest.
$ac_objext
22976 wl
=$lt_prog_compiler_wl_F77
22977 pic_flag
=$lt_prog_compiler_pic_F77
22983 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
22984 allow_undefined_flag_F77
=
22985 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22986 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }
22991 archive_cmds_need_lc_F77
=no
22993 archive_cmds_need_lc_F77
=yes
22995 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
22997 cat conftest.err
1>&5
23000 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23001 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23008 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23009 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23010 library_names_spec
=
23011 libname_spec
='lib$name'
23015 postuninstall_cmds
=
23019 shlibpath_overrides_runpath
=unknown
23021 dynamic_linker
="$host_os ld.so"
23022 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
23023 if test "$GCC" = yes; then
23024 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23025 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
23026 # if the path contains ";" then we assume it to be the separator
23027 # otherwise default to the standard path separator (i.e. ":") - it is
23028 # assumed that no part of a normal pathname contains ";" but that should
23029 # okay in the real world where ";" in dirpaths is itself problematic.
23030 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23032 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23035 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
23037 need_lib_prefix
=unknown
23038 hardcode_into_libs
=no
23040 # when you set need_version to no, make sure it does not cause -set_version
23041 # flags to be left without arguments
23042 need_version
=unknown
23047 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
23048 shlibpath_var
=LIBPATH
23050 # AIX 3 has no versioning support, so we append a major version to the name.
23051 soname_spec
='${libname}${release}${shared_ext}$major'
23058 hardcode_into_libs
=yes
23059 if test "$host_cpu" = ia64
; then
23060 # AIX 5 supports IA64
23061 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23062 shlibpath_var
=LD_LIBRARY_PATH
23064 # With GCC up to 2.95.x, collect2 would create an import file
23065 # for dependence libraries. The import file would start with
23066 # the line `#! .'. This would cause the generated library to
23067 # depend on `.', always an invalid library. This was fixed in
23068 # development snapshots of GCC prior to 3.0.
23070 aix4 | aix4.
[01] | aix4.
[01].
*)
23071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23073 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
23076 can_build_shared
=no
23080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23081 # soname into executable. Probably we can add versioning support to
23082 # collect2, so additional links can be useful in future.
23083 if test "$aix_use_runtimelinking" = yes; then
23084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23085 # instead of lib<name>.a to let people know that these are not
23086 # typical AIX shared libraries.
23087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089 # We preserve .a as extension for shared libraries through AIX4.2
23090 # and later when we are not doing run time linking.
23091 library_names_spec
='${libname}${release}.a $libname.a'
23092 soname_spec
='${libname}${release}${shared_ext}$major'
23094 shlibpath_var
=LIBPATH
23099 library_names_spec
='$libname.ixlibrary $libname.a'
23100 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23101 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'
23105 library_names_spec
='${libname}${shared_ext}'
23106 dynamic_linker
="$host_os ld.so"
23107 shlibpath_var
=LIBRARY_PATH
23113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23114 soname_spec
='${libname}${release}${shared_ext}$major'
23115 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
23116 shlibpath_var
=LD_LIBRARY_PATH
23117 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23118 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
23119 # the default ld.so.conf also contains /usr/contrib/lib and
23120 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23121 # libtool to hard-code these into programs
23124 cygwin
* | mingw
* | pw32
*)
23125 version_type
=windows
23130 case $GCC,$host_os in
23131 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
23132 library_names_spec
='$libname.dll.a'
23133 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23134 postinstall_cmds
='base_file=`basename \${file}`~
23135 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23136 dldir=$destdir/`dirname \$dlpath`~
23137 test -d \$dldir || mkdir -p \$dldir~
23138 $install_prog $dir/$dlname \$dldir/$dlname~
23139 chmod a+x \$dldir/$dlname'
23140 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23141 dlpath=$dir/\$dldll~
23143 shlibpath_overrides_runpath
=yes
23147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23148 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23149 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
23152 # MinGW DLLs use traditional 'lib' prefix
23153 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23154 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23155 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
23156 # It is most probably a Windows format PATH printed by
23157 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23158 # path with ; separators, and with drive letters. We can handle the
23159 # drive letters (cygwin fileutils understands them), so leave them,
23160 # especially as we might pass files found there to a mingw objdump,
23161 # which wouldn't understand a cygwinified path. Ahh.
23162 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23164 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23168 # pw32 DLLs use 'pw' prefix rather than 'lib'
23169 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23175 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23178 dynamic_linker
='Win32 ld.exe'
23179 # FIXME: first we should search . and the directory the executable is in
23183 darwin
* | rhapsody
*)
23184 dynamic_linker
="$host_os dyld"
23185 version_type
=darwin
23188 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23189 soname_spec
='${libname}${release}${major}$shared_ext'
23190 shlibpath_overrides_runpath
=yes
23191 shlibpath_var
=DYLD_LIBRARY_PATH
23192 shrext_cmds
='.dylib'
23193 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23194 if test "$GCC" = yes; then
23195 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"`
23197 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
23199 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
23206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23207 soname_spec
='${libname}${release}${shared_ext}$major'
23208 shlibpath_var
=LD_LIBRARY_PATH
23219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23220 soname_spec
='${libname}${release}${shared_ext}$major'
23221 shlibpath_var
=LD_LIBRARY_PATH
23222 shlibpath_overrides_runpath
=no
23223 hardcode_into_libs
=yes
23224 dynamic_linker
='GNU ld.so'
23227 freebsd
* | dragonfly
*)
23228 # DragonFly does not have aout. When/if they implement a new
23229 # versioning mechanism, adjust this.
23230 if test -x /usr
/bin
/objformat
; then
23231 objformat
=`/usr/bin/objformat`
23234 freebsd
[123]*) objformat
=aout
;;
23235 *) objformat
=elf
;;
23238 version_type
=freebsd-
$objformat
23239 case $version_type in
23241 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23246 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23250 shlibpath_var
=LD_LIBRARY_PATH
23253 shlibpath_overrides_runpath
=yes
23255 freebsd3.
[01]* | freebsdelf3.
[01]*)
23256 shlibpath_overrides_runpath
=yes
23257 hardcode_into_libs
=yes
23259 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
23260 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
23261 shlibpath_overrides_runpath
=no
23262 hardcode_into_libs
=yes
23264 freebsd
*) # from 4.6 on
23265 shlibpath_overrides_runpath
=yes
23266 hardcode_into_libs
=yes
23275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23276 soname_spec
='${libname}${release}${shared_ext}$major'
23277 shlibpath_var
=LD_LIBRARY_PATH
23278 hardcode_into_libs
=yes
23281 hpux9
* | hpux10
* | hpux11
*)
23282 # Give a soname corresponding to the major version so that dld.sl refuses to
23283 # link against other versions.
23290 hardcode_into_libs
=yes
23291 dynamic_linker
="$host_os dld.so"
23292 shlibpath_var
=LD_LIBRARY_PATH
23293 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23295 soname_spec
='${libname}${release}${shared_ext}$major'
23296 if test "X$HPUX_IA64_MODE" = X32
; then
23297 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23299 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
23301 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23305 hardcode_into_libs
=yes
23306 dynamic_linker
="$host_os dld.sl"
23307 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
23308 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23310 soname_spec
='${libname}${release}${shared_ext}$major'
23311 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23312 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23316 dynamic_linker
="$host_os dld.sl"
23317 shlibpath_var
=SHLIB_PATH
23318 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
23319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23320 soname_spec
='${libname}${release}${shared_ext}$major'
23323 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23324 postinstall_cmds
='chmod 555 $lib'
23331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23332 soname_spec
='${libname}${release}${shared_ext}$major'
23333 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
23334 shlibpath_var
=LD_LIBRARY_PATH
23335 shlibpath_overrides_runpath
=no
23336 hardcode_into_libs
=yes
23339 irix5
* | irix6
* | nonstopux
*)
23341 nonstopux
*) version_type
=nonstopux
;;
23343 if test "$lt_cv_prog_gnu_ld" = yes; then
23351 soname_spec
='${libname}${release}${shared_ext}$major'
23352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23354 irix5
* | nonstopux
*)
23355 libsuff
= shlibsuff
=
23358 case $LD in # libtool.m4 will add one of these switches to LD
23359 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
23360 libsuff
= shlibsuff
= libmagic
=32-bit;;
23361 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
23362 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
23363 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
23364 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
23365 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23369 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23370 shlibpath_overrides_runpath
=no
23371 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23372 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23373 hardcode_into_libs
=yes
23376 # No shared lib support for Linux oldld, aout, or coff.
23377 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23381 # This must be Linux ELF.
23386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23387 soname_spec
='${libname}${release}${shared_ext}$major'
23388 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23389 shlibpath_var
=LD_LIBRARY_PATH
23390 shlibpath_overrides_runpath
=no
23391 # This implies no fast_install, which is unacceptable.
23392 # Some rework will be needed to allow for fast_install
23393 # before this can be enabled.
23394 hardcode_into_libs
=yes
23396 # Append ld.so.conf contents to the search path
23397 if test -f /etc
/ld.so.conf
; then
23398 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' ' '`
23399 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23402 # We used to test for /lib/ld.so.1 and disable shared libraries on
23403 # powerpc, because MkLinux only supported shared libraries with the
23404 # GNU dynamic linker. Since this was broken with cross compilers,
23405 # most powerpc-linux boxes support dynamic linking these days and
23406 # people can always --disable-shared, the test was removed, and we
23407 # assume the GNU/Linux dynamic linker is in use.
23408 dynamic_linker
='GNU/Linux ld.so'
23415 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23416 soname_spec
='${libname}${release}${shared_ext}$major'
23417 shlibpath_var
=LD_LIBRARY_PATH
23418 shlibpath_overrides_runpath
=no
23419 hardcode_into_libs
=yes
23420 dynamic_linker
='GNU ld.so'
23427 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23429 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23430 dynamic_linker
='NetBSD (a.out) ld.so'
23432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23433 soname_spec
='${libname}${release}${shared_ext}$major'
23434 dynamic_linker
='NetBSD ld.elf_so'
23436 shlibpath_var
=LD_LIBRARY_PATH
23437 shlibpath_overrides_runpath
=yes
23438 hardcode_into_libs
=yes
23443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23444 shlibpath_var
=LD_LIBRARY_PATH
23445 shlibpath_overrides_runpath
=yes
23452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23453 soname_spec
='${libname}${release}${shared_ext}$major'
23454 shlibpath_var
=LD_LIBRARY_PATH
23455 shlibpath_overrides_runpath
=yes
23460 sys_lib_dlsearch_path_spec
="/usr/lib"
23462 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23464 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23465 *) need_version
=no
;;
23467 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23468 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23469 shlibpath_var
=LD_LIBRARY_PATH
23470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23472 openbsd2.
[89] | openbsd2.
[89].
*)
23473 shlibpath_overrides_runpath
=no
23476 shlibpath_overrides_runpath
=yes
23480 shlibpath_overrides_runpath
=yes
23485 libname_spec
='$name'
23488 library_names_spec
='$libname${shared_ext} $libname.a'
23489 dynamic_linker
='OS/2 ld.exe'
23490 shlibpath_var
=LIBPATH
23493 osf3
* | osf4
* | osf5
*)
23497 soname_spec
='${libname}${release}${shared_ext}$major'
23498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23499 shlibpath_var
=LD_LIBRARY_PATH
23500 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23501 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23509 soname_spec
='${libname}${release}${shared_ext}$major'
23510 shlibpath_var
=LD_LIBRARY_PATH
23511 shlibpath_overrides_runpath
=yes
23512 hardcode_into_libs
=yes
23513 # ldd complains unless libraries are executable
23514 postinstall_cmds
='chmod +x $lib'
23519 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23520 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23521 shlibpath_var
=LD_LIBRARY_PATH
23522 shlibpath_overrides_runpath
=yes
23523 if test "$with_gnu_ld" = yes; then
23531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23532 soname_spec
='${libname}${release}${shared_ext}$major'
23533 shlibpath_var
=LD_LIBRARY_PATH
23534 case $host_vendor in
23536 shlibpath_overrides_runpath
=no
23538 export_dynamic_flag_spec
='${wl}-Blargedynsym'
23539 runpath_var
=LD_RUN_PATH
23547 shlibpath_overrides_runpath
=no
23548 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23554 if test -d /usr
/nec
;then
23556 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23557 soname_spec
='$libname${shared_ext}.$major'
23558 shlibpath_var
=LD_LIBRARY_PATH
23562 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23563 version_type
=freebsd-elf
23566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23567 soname_spec
='${libname}${release}${shared_ext}$major'
23568 shlibpath_var
=LD_LIBRARY_PATH
23569 hardcode_into_libs
=yes
23570 if test "$with_gnu_ld" = yes; then
23571 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23572 shlibpath_overrides_runpath
=no
23574 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23575 shlibpath_overrides_runpath
=yes
23578 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23582 sys_lib_dlsearch_path_spec
='/usr/lib'
23587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23588 soname_spec
='${libname}${release}${shared_ext}$major'
23589 shlibpath_var
=LD_LIBRARY_PATH
23596 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23597 echo "${ECHO_T}$dynamic_linker" >&6; }
23598 test "$dynamic_linker" = no
&& can_build_shared
=no
23600 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23601 if test "$GCC" = yes; then
23602 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23605 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23606 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23607 hardcode_action_F77
=
23608 if test -n "$hardcode_libdir_flag_spec_F77" || \
23609 test -n "$runpath_var_F77" || \
23610 test "X$hardcode_automatic_F77" = "Xyes" ; then
23612 # We can hardcode non-existant directories.
23613 if test "$hardcode_direct_F77" != no
&&
23614 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23615 # have to relink, otherwise we might link with an installed library
23616 # when we should be linking with a yet-to-be-installed one
23617 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23618 test "$hardcode_minus_L_F77" != no
; then
23619 # Linking always hardcodes the temporary library directory.
23620 hardcode_action_F77
=relink
23622 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23623 hardcode_action_F77
=immediate
23626 # We cannot hardcode anything, or else we can only hardcode existing
23628 hardcode_action_F77
=unsupported
23630 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23631 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23633 if test "$hardcode_action_F77" = relink
; then
23634 # Fast installation is not supported
23635 enable_fast_install
=no
23636 elif test "$shlibpath_overrides_runpath" = yes ||
23637 test "$enable_shared" = no
; then
23638 # Fast installation is not necessary
23639 enable_fast_install
=needless
23643 # The else clause should only fire when bootstrapping the
23644 # libtool distribution, otherwise you forgot to ship ltmain.sh
23645 # with your package, and you will get complaints that there are
23646 # no rules to generate ltmain.sh.
23647 if test -f "$ltmain"; then
23648 # See if we are running on zsh, and set the options which allow our commands through
23649 # without removal of \ escapes.
23650 if test -n "${ZSH_VERSION+set}" ; then
23651 setopt NO_GLOB_SUBST
23653 # Now quote all the things that may contain metacharacters while being
23654 # careful not to overquote the AC_SUBSTed values. We take copies of the
23655 # variables and quote the copies for generation of the libtool script.
23656 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23658 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23659 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23660 deplibs_check_method reload_flag reload_cmds need_locks \
23661 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23662 lt_cv_sys_global_symbol_to_c_name_address \
23663 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23664 old_postinstall_cmds old_postuninstall_cmds \
23668 lt_prog_compiler_wl_F77 \
23669 lt_prog_compiler_pic_F77 \
23670 lt_prog_compiler_static_F77 \
23671 lt_prog_compiler_no_builtin_flag_F77 \
23672 export_dynamic_flag_spec_F77 \
23673 thread_safe_flag_spec_F77 \
23674 whole_archive_flag_spec_F77 \
23675 enable_shared_with_static_runtimes_F77 \
23676 old_archive_cmds_F77 \
23677 old_archive_from_new_cmds_F77 \
23678 predep_objects_F77 \
23679 postdep_objects_F77 \
23682 compiler_lib_search_path_F77 \
23684 archive_expsym_cmds_F77 \
23685 postinstall_cmds_F77 \
23686 postuninstall_cmds_F77 \
23687 old_archive_from_expsyms_cmds_F77 \
23688 allow_undefined_flag_F77 \
23689 no_undefined_flag_F77 \
23690 export_symbols_cmds_F77 \
23691 hardcode_libdir_flag_spec_F77 \
23692 hardcode_libdir_flag_spec_ld_F77 \
23693 hardcode_libdir_separator_F77 \
23694 hardcode_automatic_F77 \
23696 module_expsym_cmds_F77 \
23697 lt_cv_prog_compiler_c_o_F77 \
23698 exclude_expsyms_F77 \
23699 include_expsyms_F77
; do
23702 old_archive_cmds_F77 | \
23703 old_archive_from_new_cmds_F77 | \
23704 archive_cmds_F77 | \
23705 archive_expsym_cmds_F77 | \
23706 module_cmds_F77 | \
23707 module_expsym_cmds_F77 | \
23708 old_archive_from_expsyms_cmds_F77 | \
23709 export_symbols_cmds_F77 | \
23710 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23711 postinstall_cmds | postuninstall_cmds | \
23712 old_postinstall_cmds | old_postuninstall_cmds | \
23713 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23714 # Double-quote double-evaled strings.
23715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23724 *'\$0 --fallback-echo"')
23725 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23731 cat <<__EOF__ >> "$cfgfile"
23732 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23736 # Shell to use when invoking shell scripts.
23739 # Whether or not to build shared libraries.
23740 build_libtool_libs=$enable_shared
23742 # Whether or not to build static libraries.
23743 build_old_libs=$enable_static
23745 # Whether or not to add -lc for building shared libraries.
23746 build_libtool_need_lc=$archive_cmds_need_lc_F77
23748 # Whether or not to disallow shared libs when runtime libs are static
23749 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23751 # Whether or not to optimize for fast installation.
23752 fast_install=$enable_fast_install
23755 host_alias=$host_alias
23759 # The build system.
23760 build_alias=$build_alias
23764 # An echo program that does not interpret backslashes.
23769 AR_FLAGS=$lt_AR_FLAGS
23774 # LTCC compiler flags.
23775 LTCFLAGS=$lt_LTCFLAGS
23777 # A language-specific compiler.
23778 CC=$lt_compiler_F77
23780 # Is the compiler the GNU C compiler?
23786 # The linker used to build libraries.
23789 # Whether we need hard or soft links.
23792 # A BSD-compatible nm program.
23795 # A symbol stripping program
23798 # Used to examine libraries when file_magic_cmd begins "file"
23799 MAGIC_CMD=$MAGIC_CMD
23801 # Used on cygwin: DLL creation program.
23804 # Used on cygwin: object dumper.
23807 # Used on cygwin: assembler.
23810 # The name of the directory that contains temporary libtool files.
23813 # How to create reloadable object files.
23814 reload_flag=$lt_reload_flag
23815 reload_cmds=$lt_reload_cmds
23817 # How to pass a linker flag through the compiler.
23818 wl=$lt_lt_prog_compiler_wl_F77
23820 # Object file suffix (normally "o").
23821 objext="$ac_objext"
23823 # Old archive suffix (normally "a").
23826 # Shared library suffix (normally ".so").
23827 shrext_cmds='$shrext_cmds'
23829 # Executable file suffix (normally "").
23832 # Additional compiler flags for building library objects.
23833 pic_flag=$lt_lt_prog_compiler_pic_F77
23836 # What is the maximum length of a command?
23837 max_cmd_len=$lt_cv_sys_max_cmd_len
23839 # Does compiler simultaneously support -c and -o options?
23840 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23842 # Must we lock files when doing compilation?
23843 need_locks=$lt_need_locks
23845 # Do we need the lib prefix for modules?
23846 need_lib_prefix=$need_lib_prefix
23848 # Do we need a version for libraries?
23849 need_version=$need_version
23851 # Whether dlopen is supported.
23852 dlopen_support=$enable_dlopen
23854 # Whether dlopen of programs is supported.
23855 dlopen_self=$enable_dlopen_self
23857 # Whether dlopen of statically linked programs is supported.
23858 dlopen_self_static=$enable_dlopen_self_static
23860 # Compiler flag to prevent dynamic linking.
23861 link_static_flag=$lt_lt_prog_compiler_static_F77
23863 # Compiler flag to turn off builtin functions.
23864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23866 # Compiler flag to allow reflexive dlopens.
23867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23869 # Compiler flag to generate shared objects directly from archives.
23870 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23872 # Compiler flag to generate thread-safe objects.
23873 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23875 # Library versioning type.
23876 version_type=$version_type
23878 # Format of library name prefix.
23879 libname_spec=$lt_libname_spec
23881 # List of archive names. First name is the real one, the rest are links.
23882 # The last name is the one that the linker finds with -lNAME.
23883 library_names_spec=$lt_library_names_spec
23885 # The coded name of the library, if different from the real name.
23886 soname_spec=$lt_soname_spec
23888 # Commands used to build and install an old-style archive.
23890 old_archive_cmds=$lt_old_archive_cmds_F77
23891 old_postinstall_cmds=$lt_old_postinstall_cmds
23892 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23894 # Create an old-style archive from a shared archive.
23895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23897 # Create a temporary old-style archive to link instead of a shared archive.
23898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23900 # Commands used to build and install a shared archive.
23901 archive_cmds=$lt_archive_cmds_F77
23902 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23903 postinstall_cmds=$lt_postinstall_cmds
23904 postuninstall_cmds=$lt_postuninstall_cmds
23906 # Commands used to build a loadable module (assumed same as above if empty)
23907 module_cmds=$lt_module_cmds_F77
23908 module_expsym_cmds=$lt_module_expsym_cmds_F77
23910 # Commands to strip libraries.
23911 old_striplib=$lt_old_striplib
23912 striplib=$lt_striplib
23914 # Dependencies to place before the objects being linked to create a
23916 predep_objects=$lt_predep_objects_F77
23918 # Dependencies to place after the objects being linked to create a
23920 postdep_objects=$lt_postdep_objects_F77
23922 # Dependencies to place before the objects being linked to create a
23924 predeps=$lt_predeps_F77
23926 # Dependencies to place after the objects being linked to create a
23928 postdeps=$lt_postdeps_F77
23930 # The library search path used internally by the compiler when linking
23931 # a shared library.
23932 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23934 # Method to check whether dependent libraries are shared objects.
23935 deplibs_check_method=$lt_deplibs_check_method
23937 # Command to use when deplibs_check_method == file_magic.
23938 file_magic_cmd=$lt_file_magic_cmd
23940 # Flag that allows shared libraries with undefined symbols to be built.
23941 allow_undefined_flag=$lt_allow_undefined_flag_F77
23943 # Flag that forces no undefined symbols.
23944 no_undefined_flag=$lt_no_undefined_flag_F77
23946 # Commands used to finish a libtool library installation in a directory.
23947 finish_cmds=$lt_finish_cmds
23949 # Same as above, but a single script fragment to be evaled but not shown.
23950 finish_eval=$lt_finish_eval
23952 # Take the output of nm and produce a listing of raw symbols and C names.
23953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23955 # Transform the output of nm in a proper C declaration
23956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23958 # Transform the output of nm in a C name address pair
23959 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23961 # This is the shared library runtime path variable.
23962 runpath_var=$runpath_var
23964 # This is the shared library path variable.
23965 shlibpath_var=$shlibpath_var
23967 # Is shlibpath searched before the hard-coded library search path?
23968 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23970 # How to hardcode a shared library path into an executable.
23971 hardcode_action=$hardcode_action_F77
23973 # Whether we should hardcode library paths into libraries.
23974 hardcode_into_libs=$hardcode_into_libs
23976 # Flag to hardcode \$libdir into a binary during linking.
23977 # This must work even if \$libdir does not exist.
23978 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23980 # If ld is used when linking, flag to hardcode \$libdir into
23981 # a binary during linking. This must work even if \$libdir does
23983 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23985 # Whether we need a single -rpath flag with a separated argument.
23986 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23988 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23989 # resulting binary.
23990 hardcode_direct=$hardcode_direct_F77
23992 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23993 # resulting binary.
23994 hardcode_minus_L=$hardcode_minus_L_F77
23996 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23997 # the resulting binary.
23998 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24000 # Set to yes if building a shared library automatically hardcodes DIR into the library
24001 # and all subsequent libraries and executables linked against it.
24002 hardcode_automatic=$hardcode_automatic_F77
24004 # Variables whose values should be saved in libtool wrapper scripts and
24005 # restored at relink time.
24006 variables_saved_for_relink="$variables_saved_for_relink"
24008 # Whether libtool must link a program against all its dependency libraries.
24009 link_all_deplibs=$link_all_deplibs_F77
24011 # Compile-time system search path for libraries
24012 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24014 # Run-time system search path for libraries
24015 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24017 # Fix the shell variable \$srcfile for the compiler.
24018 fix_srcfile_path="$fix_srcfile_path_F77"
24020 # Set to yes if exported symbols are required.
24021 always_export_symbols=$always_export_symbols_F77
24023 # The commands to list exported symbols.
24024 export_symbols_cmds=$lt_export_symbols_cmds_F77
24026 # The commands to extract the exported symbol list from a shared archive.
24027 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24029 # Symbols that should not be listed in the preloaded symbols.
24030 exclude_expsyms=$lt_exclude_expsyms_F77
24032 # Symbols that must always be exported.
24033 include_expsyms=$lt_include_expsyms_F77
24035 # ### END LIBTOOL TAG CONFIG: $tagname
24041 # If there is no Makefile yet, we rely on a make rule to execute
24042 # `config.status --recheck' to rerun these tests and create the
24043 # libtool script then.
24044 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24045 if test -f "$ltmain_in"; then
24046 test -f Makefile
&& make "$ltmain"
24052 ac_cpp
='$CPP $CPPFLAGS'
24053 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24054 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24055 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24065 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24067 ac_cpp
='$CPP $CPPFLAGS'
24068 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24069 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24070 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24073 # Source file extension for Java test sources.
24076 # Object file extension for compiled Java test sources.
24080 # Code to be used in simple compile tests
24081 lt_simple_compile_test_code
="class foo {}\n"
24083 # Code to be used in simple link tests
24084 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
24086 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24088 # If no C compiler was specified, use CC.
24091 # If no C compiler flags were specified, use CFLAGS.
24092 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
24094 # Allow CC to be a program name with arguments.
24098 # save warnings/boilerplate of simple test code
24099 ac_outfile
=conftest.
$ac_objext
24100 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
24101 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24102 _lt_compiler_boilerplate
=`cat conftest.err`
24105 ac_outfile
=conftest.
$ac_objext
24106 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
24107 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24108 _lt_linker_boilerplate
=`cat conftest.err`
24112 # Allow CC to be a program name with arguments.
24117 for cc_temp
in $compiler""; do
24119 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24120 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24125 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24128 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24129 archive_cmds_need_lc_GCJ
=no
24131 old_archive_cmds_GCJ
=$old_archive_cmds
24134 lt_prog_compiler_no_builtin_flag_GCJ
=
24136 if test "$GCC" = yes; then
24137 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
24140 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24141 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24142 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24145 lt_cv_prog_compiler_rtti_exceptions
=no
24146 ac_outfile
=conftest.
$ac_objext
24147 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24148 lt_compiler_flag
="-fno-rtti -fno-exceptions"
24149 # Insert the option either (1) after the last *FLAGS variable, or
24150 # (2) before a word containing "conftest.", or (3) at the end.
24151 # Note that $ac_compile itself does not contain backslashes and begins
24152 # with a dollar sign (not a hyphen), so the echo should work correctly.
24153 # The option is referenced via a variable to avoid confusing sed.
24154 lt_compile
=`echo "$ac_compile" | $SED \
24155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24157 -e 's:$: $lt_compiler_flag:'`
24158 (eval echo "\"\$as_me:24158: $lt_compile\"" >&5)
24159 (eval "$lt_compile" 2>conftest.err
)
24161 cat conftest.err
>&5
24162 echo "$as_me:24162: \$? = $ac_status" >&5
24163 if (exit $ac_status) && test -s "$ac_outfile"; then
24164 # The compiler can only warn and ignore the option if not recognized
24165 # So say no if there are warnings other than the usual output.
24166 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24167 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24168 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24169 lt_cv_prog_compiler_rtti_exceptions
=yes
24175 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24176 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24178 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
24179 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24186 lt_prog_compiler_wl_GCJ
=
24187 lt_prog_compiler_pic_GCJ
=
24188 lt_prog_compiler_static_GCJ
=
24190 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24191 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24193 if test "$GCC" = yes; then
24194 lt_prog_compiler_wl_GCJ
='-Wl,'
24195 lt_prog_compiler_static_GCJ
='-static'
24199 # All AIX code is PIC.
24200 if test "$host_cpu" = ia64
; then
24201 # AIX 5 now supports IA64 processor
24202 lt_prog_compiler_static_GCJ
='-Bstatic'
24207 # FIXME: we need at least 68020 code to build shared libraries, but
24208 # adding the `-m68020' flag to GCC prevents building anything better,
24210 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
24213 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
24214 # PIC is the default for these OSes.
24217 mingw
* | pw32
* | os2
*)
24218 # This hack is so that the source file can tell whether it is being
24219 # built for inclusion in a dll (and should export symbols for example).
24220 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24223 darwin
* | rhapsody
*)
24224 # PIC is the default on this platform
24225 # Common symbols not allowed in MH_DYLIB files
24226 lt_prog_compiler_pic_GCJ
='-fno-common'
24230 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24231 # Instead, we relocate shared libraries at runtime.
24235 # Just because we use GCC doesn't mean we suddenly get shared libraries
24236 # on systems that don't support them.
24237 lt_prog_compiler_can_build_shared_GCJ
=no
24242 if test -d /usr
/nec
; then
24243 lt_prog_compiler_pic_GCJ
=-Kconform_pic
24248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24249 # not for PA HP-UX.
24255 lt_prog_compiler_pic_GCJ
='-fPIC'
24261 lt_prog_compiler_pic_GCJ
='-fPIC'
24265 # PORTME Check for flag to pass linker flags through the system compiler.
24268 lt_prog_compiler_wl_GCJ
='-Wl,'
24269 if test "$host_cpu" = ia64
; then
24270 # AIX 5 now supports IA64 processor
24271 lt_prog_compiler_static_GCJ
='-Bstatic'
24273 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
24277 # PIC is the default on this platform
24278 # Common symbols not allowed in MH_DYLIB files
24279 case $cc_basename in
24281 lt_prog_compiler_pic_GCJ
='-qnocommon'
24282 lt_prog_compiler_wl_GCJ
='-Wl,'
24287 mingw
* | pw32
* | os2
*)
24288 # This hack is so that the source file can tell whether it is being
24289 # built for inclusion in a dll (and should export symbols for example).
24290 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24293 hpux9
* | hpux10
* | hpux11
*)
24294 lt_prog_compiler_wl_GCJ
='-Wl,'
24295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24296 # not for PA HP-UX.
24302 lt_prog_compiler_pic_GCJ
='+Z'
24305 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24306 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
24309 irix5
* | irix6
* | nonstopux
*)
24310 lt_prog_compiler_wl_GCJ
='-Wl,'
24311 # PIC (with -KPIC) is the default.
24312 lt_prog_compiler_static_GCJ
='-non_shared'
24316 lt_prog_compiler_pic_GCJ
='-KPIC'
24317 lt_prog_compiler_static_GCJ
='-Bstatic'
24321 case $cc_basename in
24323 lt_prog_compiler_wl_GCJ
='-Wl,'
24324 lt_prog_compiler_pic_GCJ
='-KPIC'
24325 lt_prog_compiler_static_GCJ
='-static'
24327 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
24328 # Portland Group compilers (*not* the Pentium gcc compiler,
24329 # which looks to be a dead project)
24330 lt_prog_compiler_wl_GCJ
='-Wl,'
24331 lt_prog_compiler_pic_GCJ
='-fpic'
24332 lt_prog_compiler_static_GCJ
='-Bstatic'
24335 lt_prog_compiler_wl_GCJ
='-Wl,'
24336 # All Alpha code is PIC.
24337 lt_prog_compiler_static_GCJ
='-non_shared'
24342 osf3
* | osf4
* | osf5
*)
24343 lt_prog_compiler_wl_GCJ
='-Wl,'
24344 # All OSF/1 code is PIC.
24345 lt_prog_compiler_static_GCJ
='-non_shared'
24349 lt_prog_compiler_pic_GCJ
='-KPIC'
24350 lt_prog_compiler_static_GCJ
='-Bstatic'
24351 case $cc_basename in
24352 f77
* | f90
* | f95
*)
24353 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
24355 lt_prog_compiler_wl_GCJ
='-Wl,';;
24360 lt_prog_compiler_wl_GCJ
='-Qoption ld '
24361 lt_prog_compiler_pic_GCJ
='-PIC'
24362 lt_prog_compiler_static_GCJ
='-Bstatic'
24365 sysv4 | sysv4.2uw2
* | sysv4.3
*)
24366 lt_prog_compiler_wl_GCJ
='-Wl,'
24367 lt_prog_compiler_pic_GCJ
='-KPIC'
24368 lt_prog_compiler_static_GCJ
='-Bstatic'
24372 if test -d /usr
/nec
;then
24373 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
24374 lt_prog_compiler_static_GCJ
='-Bstatic'
24378 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
24379 lt_prog_compiler_wl_GCJ
='-Wl,'
24380 lt_prog_compiler_pic_GCJ
='-KPIC'
24381 lt_prog_compiler_static_GCJ
='-Bstatic'
24385 lt_prog_compiler_wl_GCJ
='-Wl,'
24386 lt_prog_compiler_can_build_shared_GCJ
=no
24390 lt_prog_compiler_pic_GCJ
='-pic'
24391 lt_prog_compiler_static_GCJ
='-Bstatic'
24395 lt_prog_compiler_can_build_shared_GCJ
=no
24400 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24401 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24404 # Check to make sure the PIC flag actually works.
24406 if test -n "$lt_prog_compiler_pic_GCJ"; then
24408 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24409 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24410 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24413 lt_prog_compiler_pic_works_GCJ
=no
24414 ac_outfile
=conftest.
$ac_objext
24415 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24416 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
24417 # Insert the option either (1) after the last *FLAGS variable, or
24418 # (2) before a word containing "conftest.", or (3) at the end.
24419 # Note that $ac_compile itself does not contain backslashes and begins
24420 # with a dollar sign (not a hyphen), so the echo should work correctly.
24421 # The option is referenced via a variable to avoid confusing sed.
24422 lt_compile
=`echo "$ac_compile" | $SED \
24423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24425 -e 's:$: $lt_compiler_flag:'`
24426 (eval echo "\"\$as_me:24426: $lt_compile\"" >&5)
24427 (eval "$lt_compile" 2>conftest.err
)
24429 cat conftest.err
>&5
24430 echo "$as_me:24430: \$? = $ac_status" >&5
24431 if (exit $ac_status) && test -s "$ac_outfile"; then
24432 # The compiler can only warn and ignore the option if not recognized
24433 # So say no if there are warnings other than the usual output.
24434 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24435 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24436 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24437 lt_prog_compiler_pic_works_GCJ
=yes
24443 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24444 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24446 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
24447 case $lt_prog_compiler_pic_GCJ in
24449 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
24452 lt_prog_compiler_pic_GCJ
=
24453 lt_prog_compiler_can_build_shared_GCJ
=no
24458 # For platforms which do not support PIC, -DPIC is meaningless:
24460 lt_prog_compiler_pic_GCJ
=
24463 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
24468 # Check to make sure the static flag actually works.
24470 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
24471 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24472 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24473 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24474 echo $ECHO_N "(cached) $ECHO_C" >&6
24476 lt_prog_compiler_static_works_GCJ
=no
24477 save_LDFLAGS
="$LDFLAGS"
24478 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
24479 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
24480 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
24481 # The linker can only warn and ignore the option if not recognized
24482 # So say no if there are warnings
24483 if test -s conftest.err
; then
24484 # Append any errors to the config.log.
24485 cat conftest.err
1>&5
24486 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
24487 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24488 if diff conftest.exp conftest.er2
>/dev
/null
; then
24489 lt_prog_compiler_static_works_GCJ
=yes
24492 lt_prog_compiler_static_works_GCJ
=yes
24496 LDFLAGS
="$save_LDFLAGS"
24499 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24500 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24502 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
24505 lt_prog_compiler_static_GCJ
=
24509 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24510 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24511 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24512 echo $ECHO_N "(cached) $ECHO_C" >&6
24514 lt_cv_prog_compiler_c_o_GCJ
=no
24515 $rm -r conftest
2>/dev
/null
24519 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24521 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24522 # Insert the option either (1) after the last *FLAGS variable, or
24523 # (2) before a word containing "conftest.", or (3) at the end.
24524 # Note that $ac_compile itself does not contain backslashes and begins
24525 # with a dollar sign (not a hyphen), so the echo should work correctly.
24526 lt_compile
=`echo "$ac_compile" | $SED \
24527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24529 -e 's:$: $lt_compiler_flag:'`
24530 (eval echo "\"\$as_me:24530: $lt_compile\"" >&5)
24531 (eval "$lt_compile" 2>out
/conftest.err
)
24533 cat out
/conftest.err
>&5
24534 echo "$as_me:24534: \$? = $ac_status" >&5
24535 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24537 # The compiler can only warn and ignore the option if not recognized
24538 # So say no if there are warnings
24539 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
24540 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24541 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24542 lt_cv_prog_compiler_c_o_GCJ
=yes
24547 # SGI C++ compiler will create directory out/ii_files/ for
24548 # template instantiation
24549 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
24550 $rm out
/* && rmdir out
24556 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24557 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24560 hard_links
="nottested"
24561 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
24562 # do not overwrite the value of need_locks provided by the user
24563 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24564 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24567 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24569 ln conftest.a conftest.b
2>&5 || hard_links
=no
24570 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24571 { echo "$as_me:$LINENO: result: $hard_links" >&5
24572 echo "${ECHO_T}$hard_links" >&6; }
24573 if test "$hard_links" = no
; then
24574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24575 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24582 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24583 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24586 allow_undefined_flag_GCJ
=
24587 enable_shared_with_static_runtimes_GCJ
=no
24589 archive_expsym_cmds_GCJ
=
24590 old_archive_From_new_cmds_GCJ
=
24591 old_archive_from_expsyms_cmds_GCJ
=
24592 export_dynamic_flag_spec_GCJ
=
24593 whole_archive_flag_spec_GCJ
=
24594 thread_safe_flag_spec_GCJ
=
24595 hardcode_libdir_flag_spec_GCJ
=
24596 hardcode_libdir_flag_spec_ld_GCJ
=
24597 hardcode_libdir_separator_GCJ
=
24598 hardcode_direct_GCJ
=no
24599 hardcode_minus_L_GCJ
=no
24600 hardcode_shlibpath_var_GCJ
=unsupported
24601 link_all_deplibs_GCJ
=unknown
24602 hardcode_automatic_GCJ
=no
24604 module_expsym_cmds_GCJ
=
24605 always_export_symbols_GCJ
=no
24606 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24607 # include_expsyms should be a list of space-separated symbols to be *always*
24608 # included in the symbol list
24609 include_expsyms_GCJ
=
24610 # exclude_expsyms can be an extended regexp of symbols to exclude
24611 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24613 # as well as any symbol that contains `d'.
24614 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
24615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24616 # platforms (ab)use it in PIC code, but their linkers get confused if
24617 # the symbol is explicitly referenced. Since portable code cannot
24618 # rely on this symbol name, it's probably fine to never include it in
24619 # preloaded symbol tables.
24620 extract_expsyms_cmds
=
24621 # Just being paranoid about ensuring that cc_basename is set.
24622 for cc_temp
in $compiler""; do
24624 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24625 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24630 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24633 cygwin
* | mingw
* | pw32
*)
24634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24635 # When not using gcc, we currently assume that we are using
24636 # Microsoft Visual C++.
24637 if test "$GCC" != yes; then
24642 # we just hope/assume this is gcc and not c89 (= MSVC++)
24651 if test "$with_gnu_ld" = yes; then
24652 # If archive_cmds runs LD, not CC, wlarc should be empty
24655 # Set some defaults for GNU ld with shared library support. These
24656 # are reset later if shared libraries are not supported. Putting them
24657 # here allows them to be overridden if necessary.
24658 runpath_var
=LD_RUN_PATH
24659 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
24660 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
24661 # ancient GNU ld didn't support --whole-archive et. al.
24662 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
24663 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24665 whole_archive_flag_spec_GCJ
=
24667 supports_anon_versioning
=no
24668 case `$LD -v 2>/dev/null` in
24669 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
24670 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
24671 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
24672 *\
2.11.
*) ;; # other 2.11 versions
24673 *) supports_anon_versioning
=yes ;;
24676 # See if GNU ld supports shared libraries.
24678 aix3
* | aix4
* | aix5
*)
24679 # On AIX/PPC, the GNU linker is very broken
24680 if test "$host_cpu" != ia64
; then
24684 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24685 *** to be unable to reliably create shared libraries on AIX.
24686 *** Therefore, libtool is disabling shared libraries support. If you
24687 *** really care for shared libraries, you may want to modify your PATH
24688 *** so that a non-GNU linker is found, and then restart.
24695 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)'
24696 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24697 hardcode_minus_L_GCJ
=yes
24699 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24700 # that the semantics of dynamic libraries on AmigaOS, at least up
24701 # to version 4, is to share data among multiple programs linked
24702 # with the same dynamic library. Since this doesn't match the
24703 # behavior of shared libraries on other platforms, we can't use
24709 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24710 allow_undefined_flag_GCJ
=unsupported
24711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24712 # support --undefined. This deserves some investigation. FIXME
24713 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24719 cygwin
* | mingw
* | pw32
*)
24720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24721 # as there is no search path for DLLs.
24722 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24723 allow_undefined_flag_GCJ
=unsupported
24724 always_export_symbols_GCJ
=no
24725 enable_shared_with_static_runtimes_GCJ
=yes
24726 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24728 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24729 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24730 # If the export-symbols file already is a .def file (1st line
24731 # is EXPORTS), use it as is; otherwise, prepend...
24732 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24733 cp $export_symbols $output_objdir/$soname.def;
24735 echo EXPORTS > $output_objdir/$soname.def;
24736 cat $export_symbols >> $output_objdir/$soname.def;
24738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24745 hardcode_direct_GCJ
=no
24746 hardcode_shlibpath_var_GCJ
=no
24747 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24748 export_dynamic_flag_spec_GCJ
='${wl}-E'
24749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24750 # Instead, shared libraries are loaded at an image base (0x10000000 by
24751 # default) and relocated if they conflict, which is a slow very memory
24752 # consuming and fragmenting process. To avoid this, we pick a random,
24753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24755 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'
24756 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'
24760 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24762 case $cc_basename,$host_cpu in
24763 pgcc
*) # Portland Group C compiler
24764 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'
24765 tmp_addflag
=' $pic_flag'
24767 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24768 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'
24769 tmp_addflag
=' $pic_flag -Mnomain' ;;
24770 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24771 tmp_addflag
=' -i_dynamic' ;;
24772 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24773 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24774 ifc
* | ifort
*) # Intel Fortran compiler
24775 tmp_addflag
=' -nofor_main' ;;
24777 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24779 if test $supports_anon_versioning = yes; then
24780 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24782 $echo "local: *; };" >> $output_objdir/$libname.ver~
24783 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24791 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24792 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24795 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24796 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24801 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24806 *** create shared libraries on Solaris systems. Therefore, libtool
24807 *** is disabling shared libraries support. We urge you to upgrade GNU
24808 *** binutils to release 2.9.1 or newer. Another option is to modify
24809 *** your PATH or compiler configuration so that the native linker is
24810 *** used, and then restart.
24813 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24814 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24815 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24821 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24822 case `$LD -v 2>&1` in
24823 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24828 *** reliably create shared libraries on SCO systems. Therefore, libtool
24829 *** is disabling shared libraries support. We urge you to upgrade GNU
24830 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24831 *** your PATH or compiler configuration so that the native linker is
24832 *** used, and then restart.
24837 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24838 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24839 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24840 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24849 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24851 hardcode_direct_GCJ
=yes
24852 hardcode_shlibpath_var_GCJ
=no
24856 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24857 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24858 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24865 if test "$ld_shlibs_GCJ" = no
; then
24867 hardcode_libdir_flag_spec_GCJ
=
24868 export_dynamic_flag_spec_GCJ
=
24869 whole_archive_flag_spec_GCJ
=
24872 # PORTME fill in a description of your system's linker (not GNU ld)
24875 allow_undefined_flag_GCJ
=unsupported
24876 always_export_symbols_GCJ
=yes
24877 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'
24878 # Note: this linker hardcodes the directories in LIBPATH if there
24879 # are no directories specified by -L.
24880 hardcode_minus_L_GCJ
=yes
24881 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24882 # Neither direct hardcoding nor static linking is supported with a
24884 hardcode_direct_GCJ
=unsupported
24889 if test "$host_cpu" = ia64
; then
24890 # On IA64, the linker does run time linking by default, so we don't
24891 # have to do anything special.
24892 aix_use_runtimelinking
=no
24893 exp_sym_flag
='-Bexport'
24896 # If we're using GNU nm, then we don't want the "-C" option.
24897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24898 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24899 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'
24901 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'
24903 aix_use_runtimelinking
=no
24905 # Test if we are trying to use run time linking or normal
24906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24907 # need to do runtime linking.
24908 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24909 for ld_flag
in $LDFLAGS; do
24910 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24911 aix_use_runtimelinking
=yes
24918 exp_sym_flag
='-bexport'
24919 no_entry_flag
='-bnoentry'
24922 # When large executables or shared objects are built, AIX ld can
24923 # have problems creating the table of contents. If linking a library
24924 # or program results in "error TOC overflow" add -mminimal-toc to
24925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24928 archive_cmds_GCJ
=''
24929 hardcode_direct_GCJ
=yes
24930 hardcode_libdir_separator_GCJ
=':'
24931 link_all_deplibs_GCJ
=yes
24933 if test "$GCC" = yes; then
24934 case $host_os in aix4.
[012]|aix4.
[012].
*)
24935 # We only want to do this on AIX 4.2 and lower, the check
24936 # below for broken collect2 doesn't work under 4.3+
24937 collect2name
=`${CC} -print-prog-name=collect2`
24938 if test -f "$collect2name" && \
24939 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24941 # We have reworked collect2
24942 hardcode_direct_GCJ
=yes
24944 # We have old collect2
24945 hardcode_direct_GCJ
=unsupported
24946 # It fails to find uninstalled libraries when the uninstalled
24947 # path is not listed in the libpath. Setting hardcode_minus_L
24948 # to unsupported forces relinking
24949 hardcode_minus_L_GCJ
=yes
24950 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24951 hardcode_libdir_separator_GCJ
=
24955 shared_flag
='-shared'
24956 if test "$aix_use_runtimelinking" = yes; then
24957 shared_flag
="$shared_flag "'${wl}-G'
24961 if test "$host_cpu" = ia64
; then
24962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24963 # chokes on -Wl,-G. The following line is correct:
24966 if test "$aix_use_runtimelinking" = yes; then
24967 shared_flag
='${wl}-G'
24969 shared_flag
='${wl}-bM:SRE'
24974 # It seems that -bexpall does not export symbols beginning with
24975 # underscore (_), so it is better to generate a list of symbols to export.
24976 always_export_symbols_GCJ
=yes
24977 if test "$aix_use_runtimelinking" = yes; then
24978 # Warning - without using the other runtime loading flags (-brtl),
24979 # -berok will link without error, but may produce a broken library.
24980 allow_undefined_flag_GCJ
='-berok'
24981 # Determine the default libpath from the value encoded in an empty executable.
24982 cat >conftest.
$ac_ext <<_ACEOF
24985 cat confdefs.h
>>conftest.
$ac_ext
24986 cat >>conftest.
$ac_ext <<_ACEOF
24987 /* end confdefs.h. */
24997 rm -f conftest.
$ac_objext conftest
$ac_exeext
24998 if { (ac_try
="$ac_link"
24999 case "(($ac_try" in
25000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_link") 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
25011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25012 { (case "(($ac_try" in
25013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25014 *) ac_try_echo
=$ac_try;;
25016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_try") 2>&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); }; } &&
25021 { ac_try
='test -s conftest$ac_exeext'
25022 { (case "(($ac_try" in
25023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25024 *) ac_try_echo=$ac_try;;
25026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027 (eval "$ac_try") 2>&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25032 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25034 # Check for a 64-bit object if we didn't find anything.
25035 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; }
25038 echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25044 rm -f core conftest.err conftest.$ac_objext \
25045 conftest$ac_exeext conftest.$ac_ext
25046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25048 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25049 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"
25051 if test "$host_cpu" = ia64; then
25052 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25053 allow_undefined_flag_GCJ="-z nodefs"
25054 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"
25056 # Determine the default libpath from the value encoded in an empty executable.
25057 cat >conftest.$ac_ext <<_ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25072 rm -f conftest.$ac_objext conftest$ac_exeext
25073 if { (ac_try="$ac_link"
25074 case "(($ac_try" in
25075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25076 *) ac_try_echo
=$ac_try;;
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_link") 2>conftest.er1
25081 grep -v '^ *+' conftest.er1
>conftest.err
25083 cat conftest.err
>&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } &&
25086 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25087 { (case "(($ac_try" in
25088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25089 *) ac_try_echo=$ac_try;;
25091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092 (eval "$ac_try") 2>&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; } &&
25096 { ac_try='test -s conftest$ac_exeext'
25097 { (case "(($ac_try" in
25098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25099 *) ac_try_echo
=$ac_try;;
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102 (eval "$ac_try") 2>&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; }; then
25107 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25109 # Check for a 64-bit object if we didn't find anything.
25110 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; }
25113 echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.
$ac_ext >&5
25119 rm -f core conftest.err conftest.
$ac_objext \
25120 conftest
$ac_exeext conftest.
$ac_ext
25121 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
25123 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
25124 # Warning - without using the other run time loading flags,
25125 # -berok will link without error, but may produce a broken library.
25126 no_undefined_flag_GCJ
=' ${wl}-bernotok'
25127 allow_undefined_flag_GCJ
=' ${wl}-berok'
25128 # Exported symbols can be pulled into shared objects from archives
25129 whole_archive_flag_spec_GCJ
='$convenience'
25130 archive_cmds_need_lc_GCJ
=yes
25131 # This is similar to how AIX traditionally builds its shared libraries.
25132 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'
25138 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)'
25139 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25140 hardcode_minus_L_GCJ
=yes
25141 # see comment about different semantics on the GNU ld section
25146 export_dynamic_flag_spec_GCJ
=-rdynamic
25149 cygwin
* | mingw
* | pw32
*)
25150 # When not using gcc, we currently assume that we are using
25151 # Microsoft Visual C++.
25152 # hardcode_libdir_flag_spec is actually meaningless, as there is
25153 # no search path for DLLs.
25154 hardcode_libdir_flag_spec_GCJ
=' '
25155 allow_undefined_flag_GCJ
=unsupported
25156 # Tell ltmain to make .lib files, not .a files.
25158 # Tell ltmain to make .dll files, not .so files.
25160 # FIXME: Setting linknames here is a bad hack.
25161 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25162 # The linker will automatically build a .lib file if we build a DLL.
25163 old_archive_From_new_cmds_GCJ
='true'
25164 # FIXME: Should let the user specify the lib program.
25165 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
25166 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
25167 enable_shared_with_static_runtimes_GCJ
=yes
25170 darwin
* | rhapsody
*)
25172 rhapsody
* | darwin1.
[012])
25173 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
25176 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25177 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25179 case ${MACOSX_DEPLOYMENT_TARGET} in
25181 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25184 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
25190 archive_cmds_need_lc_GCJ
=no
25191 hardcode_direct_GCJ
=no
25192 hardcode_automatic_GCJ
=yes
25193 hardcode_shlibpath_var_GCJ
=unsupported
25194 whole_archive_flag_spec_GCJ
=''
25195 link_all_deplibs_GCJ
=yes
25196 if test "$GCC" = yes ; then
25197 output_verbose_link_cmd
='echo'
25198 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25199 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25200 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25201 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}'
25202 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}'
25204 case $cc_basename in
25206 output_verbose_link_cmd
='echo'
25207 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25208 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25209 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25210 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}'
25211 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}'
25221 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25222 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25223 hardcode_shlibpath_var_GCJ
=no
25230 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25231 # support. Future versions do this automatically, but an explicit c++rt0.o
25232 # does not break anything, and helps significantly (at the cost of a little
25235 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25236 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25237 hardcode_direct_GCJ
=yes
25238 hardcode_shlibpath_var_GCJ
=no
25241 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25243 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25244 hardcode_direct_GCJ
=yes
25245 hardcode_minus_L_GCJ
=yes
25246 hardcode_shlibpath_var_GCJ
=no
25249 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25250 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
25251 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25252 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25253 hardcode_direct_GCJ
=yes
25254 hardcode_shlibpath_var_GCJ
=no
25258 if test "$GCC" = yes; then
25259 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'
25261 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'
25263 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25264 hardcode_libdir_separator_GCJ
=:
25265 hardcode_direct_GCJ
=yes
25267 # hardcode_minus_L: Not really in the search PATH,
25268 # but as the default location of the library.
25269 hardcode_minus_L_GCJ
=yes
25270 export_dynamic_flag_spec_GCJ
='${wl}-E'
25274 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25275 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25277 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25279 if test "$with_gnu_ld" = no
; then
25280 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25281 hardcode_libdir_separator_GCJ
=:
25283 hardcode_direct_GCJ
=yes
25284 export_dynamic_flag_spec_GCJ
='${wl}-E'
25286 # hardcode_minus_L: Not really in the search PATH,
25287 # but as the default location of the library.
25288 hardcode_minus_L_GCJ
=yes
25293 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25296 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25299 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25302 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25308 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25311 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25314 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25318 if test "$with_gnu_ld" = no
; then
25319 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25320 hardcode_libdir_separator_GCJ
=:
25324 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
25325 hardcode_direct_GCJ
=no
25326 hardcode_shlibpath_var_GCJ
=no
25329 hardcode_direct_GCJ
=yes
25330 export_dynamic_flag_spec_GCJ
='${wl}-E'
25332 # hardcode_minus_L: Not really in the search PATH,
25333 # but as the default location of the library.
25334 hardcode_minus_L_GCJ
=yes
25340 irix5
* | irix6
* | nonstopux
*)
25341 if test "$GCC" = yes; then
25342 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'
25344 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'
25345 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
25347 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25348 hardcode_libdir_separator_GCJ
=:
25349 link_all_deplibs_GCJ
=yes
25353 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25354 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25356 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25358 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25359 hardcode_direct_GCJ
=yes
25360 hardcode_shlibpath_var_GCJ
=no
25364 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25365 hardcode_direct_GCJ
=yes
25366 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25367 hardcode_libdir_separator_GCJ
=:
25368 hardcode_shlibpath_var_GCJ
=no
25372 hardcode_direct_GCJ
=yes
25373 hardcode_shlibpath_var_GCJ
=no
25374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25375 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25376 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25377 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25378 export_dynamic_flag_spec_GCJ
='${wl}-E'
25381 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
25382 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25383 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25386 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25387 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25394 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25395 hardcode_minus_L_GCJ
=yes
25396 allow_undefined_flag_GCJ
=unsupported
25397 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'
25398 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25402 if test "$GCC" = yes; then
25403 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25404 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'
25406 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25407 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'
25409 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25410 hardcode_libdir_separator_GCJ
=:
25413 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
25414 if test "$GCC" = yes; then
25415 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25416 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'
25417 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25419 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25420 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'
25421 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~
25422 $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'
25424 # Both c and cxx compiler support -rpath directly
25425 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
25427 hardcode_libdir_separator_GCJ
=:
25431 no_undefined_flag_GCJ
=' -z text'
25432 if test "$GCC" = yes; then
25434 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25435 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25436 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25439 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25440 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25441 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25443 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25444 hardcode_shlibpath_var_GCJ
=no
25446 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
25448 # The compiler driver will combine linker options so we
25449 # cannot just pass the convience library names through
25450 # without $wl, iff we do not link with $LD.
25451 # Luckily, gcc supports the same syntax we need for Sun Studio.
25452 # Supported since Solaris 2.6 (maybe 2.5.1?)
25455 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
25457 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' ;;
25460 link_all_deplibs_GCJ
=yes
25464 if test "x$host_vendor" = xsequent
; then
25465 # Use $CC to link under sequent, because it throws in some extra .o
25466 # files that make .init and .fini sections work.
25467 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25469 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25471 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25472 hardcode_direct_GCJ
=yes
25473 hardcode_minus_L_GCJ
=yes
25474 hardcode_shlibpath_var_GCJ
=no
25478 case $host_vendor in
25480 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25481 hardcode_direct_GCJ
=yes # is this really true???
25484 ## LD is ld it makes a PLAMLIB
25485 ## CC just makes a GrossModule.
25486 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25487 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
25488 hardcode_direct_GCJ
=no
25491 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25492 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
25495 runpath_var
='LD_RUN_PATH'
25496 hardcode_shlibpath_var_GCJ
=no
25500 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25501 hardcode_shlibpath_var_GCJ
=no
25502 export_dynamic_flag_spec_GCJ
='-Bexport'
25506 if test -d /usr
/nec
; then
25507 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25508 hardcode_shlibpath_var_GCJ
=no
25509 runpath_var
=LD_RUN_PATH
25510 hardcode_runpath_var
=yes
25515 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
25516 no_undefined_flag_GCJ
='${wl}-z,text'
25517 archive_cmds_need_lc_GCJ
=no
25518 hardcode_shlibpath_var_GCJ
=no
25519 runpath_var
='LD_RUN_PATH'
25521 if test "$GCC" = yes; then
25522 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25523 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25525 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25526 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25530 sysv5
* | sco3.2v5
* | sco5v6
*)
25531 # Note: We can NOT use -z defs as we might desire, because we do not
25532 # link with -lc, and that would cause any symbols used from libc to
25533 # always be unresolved, which means just about no library would
25534 # ever link correctly. If we're not using GNU ld we use -z text
25535 # though, which does catch some bad symbols but isn't as heavy-handed
25537 no_undefined_flag_GCJ
='${wl}-z,text'
25538 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
25539 archive_cmds_need_lc_GCJ
=no
25540 hardcode_shlibpath_var_GCJ
=no
25541 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25542 hardcode_libdir_separator_GCJ
=':'
25543 link_all_deplibs_GCJ
=yes
25544 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
25545 runpath_var
='LD_RUN_PATH'
25547 if test "$GCC" = yes; then
25548 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25549 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25551 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25552 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25557 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25558 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25559 hardcode_shlibpath_var_GCJ
=no
25568 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25569 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25570 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
25573 # Do we need to explicitly link libc?
25575 case "x$archive_cmds_need_lc_GCJ" in
25577 # Assume -lc should be added
25578 archive_cmds_need_lc_GCJ
=yes
25580 if test "$enable_shared" = yes && test "$GCC" = yes; then
25581 case $archive_cmds_GCJ in
25583 # FIXME: we may have to deal with multi-command sequences.
25586 # Test whether the compiler implicitly links with -lc since on some
25587 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25588 # to ld, don't add -lc before -lgcc.
25589 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25590 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25592 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
25594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25595 (eval $ac_compile) 2>&5
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); } 2>conftest.err
; then
25601 libobjs
=conftest.
$ac_objext
25603 wl
=$lt_prog_compiler_wl_GCJ
25604 pic_flag
=$lt_prog_compiler_pic_GCJ
25610 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
25611 allow_undefined_flag_GCJ
=
25612 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25613 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }
25618 archive_cmds_need_lc_GCJ
=no
25620 archive_cmds_need_lc_GCJ
=yes
25622 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
25624 cat conftest.err
1>&5
25627 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25628 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25635 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25636 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25637 library_names_spec
=
25638 libname_spec
='lib$name'
25642 postuninstall_cmds
=
25646 shlibpath_overrides_runpath
=unknown
25648 dynamic_linker
="$host_os ld.so"
25649 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
25650 if test "$GCC" = yes; then
25651 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25652 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
25653 # if the path contains ";" then we assume it to be the separator
25654 # otherwise default to the standard path separator (i.e. ":") - it is
25655 # assumed that no part of a normal pathname contains ";" but that should
25656 # okay in the real world where ";" in dirpaths is itself problematic.
25657 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25659 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25662 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
25664 need_lib_prefix
=unknown
25665 hardcode_into_libs
=no
25667 # when you set need_version to no, make sure it does not cause -set_version
25668 # flags to be left without arguments
25669 need_version
=unknown
25674 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
25675 shlibpath_var
=LIBPATH
25677 # AIX 3 has no versioning support, so we append a major version to the name.
25678 soname_spec
='${libname}${release}${shared_ext}$major'
25685 hardcode_into_libs
=yes
25686 if test "$host_cpu" = ia64
; then
25687 # AIX 5 supports IA64
25688 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25689 shlibpath_var
=LD_LIBRARY_PATH
25691 # With GCC up to 2.95.x, collect2 would create an import file
25692 # for dependence libraries. The import file would start with
25693 # the line `#! .'. This would cause the generated library to
25694 # depend on `.', always an invalid library. This was fixed in
25695 # development snapshots of GCC prior to 3.0.
25697 aix4 | aix4.
[01] | aix4.
[01].
*)
25698 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25700 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25703 can_build_shared
=no
25707 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25708 # soname into executable. Probably we can add versioning support to
25709 # collect2, so additional links can be useful in future.
25710 if test "$aix_use_runtimelinking" = yes; then
25711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25712 # instead of lib<name>.a to let people know that these are not
25713 # typical AIX shared libraries.
25714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25716 # We preserve .a as extension for shared libraries through AIX4.2
25717 # and later when we are not doing run time linking.
25718 library_names_spec
='${libname}${release}.a $libname.a'
25719 soname_spec
='${libname}${release}${shared_ext}$major'
25721 shlibpath_var
=LIBPATH
25726 library_names_spec
='$libname.ixlibrary $libname.a'
25727 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25728 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'
25732 library_names_spec
='${libname}${shared_ext}'
25733 dynamic_linker
="$host_os ld.so"
25734 shlibpath_var
=LIBRARY_PATH
25740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25741 soname_spec
='${libname}${release}${shared_ext}$major'
25742 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25743 shlibpath_var
=LD_LIBRARY_PATH
25744 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25745 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25746 # the default ld.so.conf also contains /usr/contrib/lib and
25747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25748 # libtool to hard-code these into programs
25751 cygwin
* | mingw
* | pw32
*)
25752 version_type
=windows
25757 case $GCC,$host_os in
25758 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25759 library_names_spec
='$libname.dll.a'
25760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25761 postinstall_cmds
='base_file=`basename \${file}`~
25762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25763 dldir=$destdir/`dirname \$dlpath`~
25764 test -d \$dldir || mkdir -p \$dldir~
25765 $install_prog $dir/$dlname \$dldir/$dlname~
25766 chmod a+x \$dldir/$dlname'
25767 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25768 dlpath=$dir/\$dldll~
25770 shlibpath_overrides_runpath
=yes
25774 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25775 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25776 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25779 # MinGW DLLs use traditional 'lib' prefix
25780 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25781 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25782 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25783 # It is most probably a Windows format PATH printed by
25784 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25785 # path with ; separators, and with drive letters. We can handle the
25786 # drive letters (cygwin fileutils understands them), so leave them,
25787 # especially as we might pass files found there to a mingw objdump,
25788 # which wouldn't understand a cygwinified path. Ahh.
25789 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25791 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25795 # pw32 DLLs use 'pw' prefix rather than 'lib'
25796 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25802 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25805 dynamic_linker
='Win32 ld.exe'
25806 # FIXME: first we should search . and the directory the executable is in
25810 darwin
* | rhapsody
*)
25811 dynamic_linker
="$host_os dyld"
25812 version_type
=darwin
25815 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25816 soname_spec
='${libname}${release}${major}$shared_ext'
25817 shlibpath_overrides_runpath
=yes
25818 shlibpath_var
=DYLD_LIBRARY_PATH
25819 shrext_cmds
='.dylib'
25820 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25821 if test "$GCC" = yes; then
25822 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"`
25824 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25826 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25834 soname_spec
='${libname}${release}${shared_ext}$major'
25835 shlibpath_var
=LD_LIBRARY_PATH
25846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25847 soname_spec
='${libname}${release}${shared_ext}$major'
25848 shlibpath_var
=LD_LIBRARY_PATH
25849 shlibpath_overrides_runpath
=no
25850 hardcode_into_libs
=yes
25851 dynamic_linker
='GNU ld.so'
25854 freebsd
* | dragonfly
*)
25855 # DragonFly does not have aout. When/if they implement a new
25856 # versioning mechanism, adjust this.
25857 if test -x /usr
/bin
/objformat
; then
25858 objformat
=`/usr/bin/objformat`
25861 freebsd
[123]*) objformat
=aout
;;
25862 *) objformat
=elf
;;
25865 version_type
=freebsd-
$objformat
25866 case $version_type in
25868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25873 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25877 shlibpath_var
=LD_LIBRARY_PATH
25880 shlibpath_overrides_runpath
=yes
25882 freebsd3.
[01]* | freebsdelf3.
[01]*)
25883 shlibpath_overrides_runpath
=yes
25884 hardcode_into_libs
=yes
25886 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25887 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25888 shlibpath_overrides_runpath
=no
25889 hardcode_into_libs
=yes
25891 freebsd
*) # from 4.6 on
25892 shlibpath_overrides_runpath
=yes
25893 hardcode_into_libs
=yes
25902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25903 soname_spec
='${libname}${release}${shared_ext}$major'
25904 shlibpath_var
=LD_LIBRARY_PATH
25905 hardcode_into_libs
=yes
25908 hpux9
* | hpux10
* | hpux11
*)
25909 # Give a soname corresponding to the major version so that dld.sl refuses to
25910 # link against other versions.
25917 hardcode_into_libs
=yes
25918 dynamic_linker
="$host_os dld.so"
25919 shlibpath_var
=LD_LIBRARY_PATH
25920 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25922 soname_spec
='${libname}${release}${shared_ext}$major'
25923 if test "X$HPUX_IA64_MODE" = X32
; then
25924 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25926 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25928 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25932 hardcode_into_libs
=yes
25933 dynamic_linker
="$host_os dld.sl"
25934 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25935 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25937 soname_spec
='${libname}${release}${shared_ext}$major'
25938 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25939 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25943 dynamic_linker
="$host_os dld.sl"
25944 shlibpath_var
=SHLIB_PATH
25945 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25947 soname_spec
='${libname}${release}${shared_ext}$major'
25950 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25951 postinstall_cmds
='chmod 555 $lib'
25958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25959 soname_spec
='${libname}${release}${shared_ext}$major'
25960 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
25961 shlibpath_var
=LD_LIBRARY_PATH
25962 shlibpath_overrides_runpath
=no
25963 hardcode_into_libs
=yes
25966 irix5
* | irix6
* | nonstopux
*)
25968 nonstopux
*) version_type
=nonstopux
;;
25970 if test "$lt_cv_prog_gnu_ld" = yes; then
25978 soname_spec
='${libname}${release}${shared_ext}$major'
25979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25981 irix5
* | nonstopux
*)
25982 libsuff
= shlibsuff
=
25985 case $LD in # libtool.m4 will add one of these switches to LD
25986 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
25987 libsuff
= shlibsuff
= libmagic
=32-bit;;
25988 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
25989 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
25990 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
25991 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
25992 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
25996 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
25997 shlibpath_overrides_runpath
=no
25998 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25999 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
26000 hardcode_into_libs
=yes
26003 # No shared lib support for Linux oldld, aout, or coff.
26004 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
26008 # This must be Linux ELF.
26013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26014 soname_spec
='${libname}${release}${shared_ext}$major'
26015 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26016 shlibpath_var
=LD_LIBRARY_PATH
26017 shlibpath_overrides_runpath
=no
26018 # This implies no fast_install, which is unacceptable.
26019 # Some rework will be needed to allow for fast_install
26020 # before this can be enabled.
26021 hardcode_into_libs
=yes
26023 # Append ld.so.conf contents to the search path
26024 if test -f /etc
/ld.so.conf
; then
26025 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' ' '`
26026 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
26029 # We used to test for /lib/ld.so.1 and disable shared libraries on
26030 # powerpc, because MkLinux only supported shared libraries with the
26031 # GNU dynamic linker. Since this was broken with cross compilers,
26032 # most powerpc-linux boxes support dynamic linking these days and
26033 # people can always --disable-shared, the test was removed, and we
26034 # assume the GNU/Linux dynamic linker is in use.
26035 dynamic_linker
='GNU/Linux ld.so'
26042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26043 soname_spec
='${libname}${release}${shared_ext}$major'
26044 shlibpath_var
=LD_LIBRARY_PATH
26045 shlibpath_overrides_runpath
=no
26046 hardcode_into_libs
=yes
26047 dynamic_linker
='GNU ld.so'
26054 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
26055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26056 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26057 dynamic_linker
='NetBSD (a.out) ld.so'
26059 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26060 soname_spec
='${libname}${release}${shared_ext}$major'
26061 dynamic_linker
='NetBSD ld.elf_so'
26063 shlibpath_var
=LD_LIBRARY_PATH
26064 shlibpath_overrides_runpath
=yes
26065 hardcode_into_libs
=yes
26070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26071 shlibpath_var
=LD_LIBRARY_PATH
26072 shlibpath_overrides_runpath
=yes
26079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26080 soname_spec
='${libname}${release}${shared_ext}$major'
26081 shlibpath_var
=LD_LIBRARY_PATH
26082 shlibpath_overrides_runpath
=yes
26087 sys_lib_dlsearch_path_spec
="/usr/lib"
26089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26091 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
26092 *) need_version
=no
;;
26094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26095 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26096 shlibpath_var
=LD_LIBRARY_PATH
26097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26099 openbsd2.
[89] | openbsd2.
[89].
*)
26100 shlibpath_overrides_runpath
=no
26103 shlibpath_overrides_runpath
=yes
26107 shlibpath_overrides_runpath
=yes
26112 libname_spec
='$name'
26115 library_names_spec
='$libname${shared_ext} $libname.a'
26116 dynamic_linker
='OS/2 ld.exe'
26117 shlibpath_var
=LIBPATH
26120 osf3
* | osf4
* | osf5
*)
26124 soname_spec
='${libname}${release}${shared_ext}$major'
26125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26126 shlibpath_var
=LD_LIBRARY_PATH
26127 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26128 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
26135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26136 soname_spec
='${libname}${release}${shared_ext}$major'
26137 shlibpath_var
=LD_LIBRARY_PATH
26138 shlibpath_overrides_runpath
=yes
26139 hardcode_into_libs
=yes
26140 # ldd complains unless libraries are executable
26141 postinstall_cmds
='chmod +x $lib'
26146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26147 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26148 shlibpath_var
=LD_LIBRARY_PATH
26149 shlibpath_overrides_runpath
=yes
26150 if test "$with_gnu_ld" = yes; then
26158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26159 soname_spec
='${libname}${release}${shared_ext}$major'
26160 shlibpath_var
=LD_LIBRARY_PATH
26161 case $host_vendor in
26163 shlibpath_overrides_runpath
=no
26165 export_dynamic_flag_spec
='${wl}-Blargedynsym'
26166 runpath_var
=LD_RUN_PATH
26174 shlibpath_overrides_runpath
=no
26175 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
26181 if test -d /usr
/nec
;then
26183 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26184 soname_spec
='$libname${shared_ext}.$major'
26185 shlibpath_var
=LD_LIBRARY_PATH
26189 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
26190 version_type
=freebsd-elf
26193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26194 soname_spec
='${libname}${release}${shared_ext}$major'
26195 shlibpath_var
=LD_LIBRARY_PATH
26196 hardcode_into_libs
=yes
26197 if test "$with_gnu_ld" = yes; then
26198 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26199 shlibpath_overrides_runpath
=no
26201 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
26202 shlibpath_overrides_runpath
=yes
26205 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
26209 sys_lib_dlsearch_path_spec
='/usr/lib'
26214 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26215 soname_spec
='${libname}${release}${shared_ext}$major'
26216 shlibpath_var
=LD_LIBRARY_PATH
26223 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26224 echo "${ECHO_T}$dynamic_linker" >&6; }
26225 test "$dynamic_linker" = no
&& can_build_shared
=no
26227 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
26228 if test "$GCC" = yes; then
26229 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26232 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26233 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26234 hardcode_action_GCJ
=
26235 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26236 test -n "$runpath_var_GCJ" || \
26237 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26239 # We can hardcode non-existant directories.
26240 if test "$hardcode_direct_GCJ" != no
&&
26241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26242 # have to relink, otherwise we might link with an installed library
26243 # when we should be linking with a yet-to-be-installed one
26244 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26245 test "$hardcode_minus_L_GCJ" != no
; then
26246 # Linking always hardcodes the temporary library directory.
26247 hardcode_action_GCJ
=relink
26249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26250 hardcode_action_GCJ
=immediate
26253 # We cannot hardcode anything, or else we can only hardcode existing
26255 hardcode_action_GCJ
=unsupported
26257 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26258 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26260 if test "$hardcode_action_GCJ" = relink
; then
26261 # Fast installation is not supported
26262 enable_fast_install
=no
26263 elif test "$shlibpath_overrides_runpath" = yes ||
26264 test "$enable_shared" = no
; then
26265 # Fast installation is not necessary
26266 enable_fast_install
=needless
26270 # The else clause should only fire when bootstrapping the
26271 # libtool distribution, otherwise you forgot to ship ltmain.sh
26272 # with your package, and you will get complaints that there are
26273 # no rules to generate ltmain.sh.
26274 if test -f "$ltmain"; then
26275 # See if we are running on zsh, and set the options which allow our commands through
26276 # without removal of \ escapes.
26277 if test -n "${ZSH_VERSION+set}" ; then
26278 setopt NO_GLOB_SUBST
26280 # Now quote all the things that may contain metacharacters while being
26281 # careful not to overquote the AC_SUBSTed values. We take copies of the
26282 # variables and quote the copies for generation of the libtool script.
26283 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26285 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26286 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26287 deplibs_check_method reload_flag reload_cmds need_locks \
26288 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26289 lt_cv_sys_global_symbol_to_c_name_address \
26290 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26291 old_postinstall_cmds old_postuninstall_cmds \
26295 lt_prog_compiler_wl_GCJ \
26296 lt_prog_compiler_pic_GCJ \
26297 lt_prog_compiler_static_GCJ \
26298 lt_prog_compiler_no_builtin_flag_GCJ \
26299 export_dynamic_flag_spec_GCJ \
26300 thread_safe_flag_spec_GCJ \
26301 whole_archive_flag_spec_GCJ \
26302 enable_shared_with_static_runtimes_GCJ \
26303 old_archive_cmds_GCJ \
26304 old_archive_from_new_cmds_GCJ \
26305 predep_objects_GCJ \
26306 postdep_objects_GCJ \
26309 compiler_lib_search_path_GCJ \
26311 archive_expsym_cmds_GCJ \
26312 postinstall_cmds_GCJ \
26313 postuninstall_cmds_GCJ \
26314 old_archive_from_expsyms_cmds_GCJ \
26315 allow_undefined_flag_GCJ \
26316 no_undefined_flag_GCJ \
26317 export_symbols_cmds_GCJ \
26318 hardcode_libdir_flag_spec_GCJ \
26319 hardcode_libdir_flag_spec_ld_GCJ \
26320 hardcode_libdir_separator_GCJ \
26321 hardcode_automatic_GCJ \
26323 module_expsym_cmds_GCJ \
26324 lt_cv_prog_compiler_c_o_GCJ \
26325 exclude_expsyms_GCJ \
26326 include_expsyms_GCJ
; do
26329 old_archive_cmds_GCJ | \
26330 old_archive_from_new_cmds_GCJ | \
26331 archive_cmds_GCJ | \
26332 archive_expsym_cmds_GCJ | \
26333 module_cmds_GCJ | \
26334 module_expsym_cmds_GCJ | \
26335 old_archive_from_expsyms_cmds_GCJ | \
26336 export_symbols_cmds_GCJ | \
26337 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26338 postinstall_cmds | postuninstall_cmds | \
26339 old_postinstall_cmds | old_postuninstall_cmds | \
26340 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26341 # Double-quote double-evaled strings.
26342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26351 *'\$0 --fallback-echo"')
26352 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26358 cat <<__EOF__ >> "$cfgfile"
26359 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26361 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26363 # Shell to use when invoking shell scripts.
26366 # Whether or not to build shared libraries.
26367 build_libtool_libs=$enable_shared
26369 # Whether or not to build static libraries.
26370 build_old_libs=$enable_static
26372 # Whether or not to add -lc for building shared libraries.
26373 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26375 # Whether or not to disallow shared libs when runtime libs are static
26376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26378 # Whether or not to optimize for fast installation.
26379 fast_install=$enable_fast_install
26382 host_alias=$host_alias
26386 # The build system.
26387 build_alias=$build_alias
26391 # An echo program that does not interpret backslashes.
26396 AR_FLAGS=$lt_AR_FLAGS
26401 # LTCC compiler flags.
26402 LTCFLAGS=$lt_LTCFLAGS
26404 # A language-specific compiler.
26405 CC=$lt_compiler_GCJ
26407 # Is the compiler the GNU C compiler?
26413 # The linker used to build libraries.
26416 # Whether we need hard or soft links.
26419 # A BSD-compatible nm program.
26422 # A symbol stripping program
26425 # Used to examine libraries when file_magic_cmd begins "file"
26426 MAGIC_CMD=$MAGIC_CMD
26428 # Used on cygwin: DLL creation program.
26431 # Used on cygwin: object dumper.
26434 # Used on cygwin: assembler.
26437 # The name of the directory that contains temporary libtool files.
26440 # How to create reloadable object files.
26441 reload_flag=$lt_reload_flag
26442 reload_cmds=$lt_reload_cmds
26444 # How to pass a linker flag through the compiler.
26445 wl=$lt_lt_prog_compiler_wl_GCJ
26447 # Object file suffix (normally "o").
26448 objext="$ac_objext"
26450 # Old archive suffix (normally "a").
26453 # Shared library suffix (normally ".so").
26454 shrext_cmds='$shrext_cmds'
26456 # Executable file suffix (normally "").
26459 # Additional compiler flags for building library objects.
26460 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26463 # What is the maximum length of a command?
26464 max_cmd_len=$lt_cv_sys_max_cmd_len
26466 # Does compiler simultaneously support -c and -o options?
26467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26469 # Must we lock files when doing compilation?
26470 need_locks=$lt_need_locks
26472 # Do we need the lib prefix for modules?
26473 need_lib_prefix=$need_lib_prefix
26475 # Do we need a version for libraries?
26476 need_version=$need_version
26478 # Whether dlopen is supported.
26479 dlopen_support=$enable_dlopen
26481 # Whether dlopen of programs is supported.
26482 dlopen_self=$enable_dlopen_self
26484 # Whether dlopen of statically linked programs is supported.
26485 dlopen_self_static=$enable_dlopen_self_static
26487 # Compiler flag to prevent dynamic linking.
26488 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26490 # Compiler flag to turn off builtin functions.
26491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26493 # Compiler flag to allow reflexive dlopens.
26494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26496 # Compiler flag to generate shared objects directly from archives.
26497 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26499 # Compiler flag to generate thread-safe objects.
26500 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26502 # Library versioning type.
26503 version_type=$version_type
26505 # Format of library name prefix.
26506 libname_spec=$lt_libname_spec
26508 # List of archive names. First name is the real one, the rest are links.
26509 # The last name is the one that the linker finds with -lNAME.
26510 library_names_spec=$lt_library_names_spec
26512 # The coded name of the library, if different from the real name.
26513 soname_spec=$lt_soname_spec
26515 # Commands used to build and install an old-style archive.
26517 old_archive_cmds=$lt_old_archive_cmds_GCJ
26518 old_postinstall_cmds=$lt_old_postinstall_cmds
26519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26521 # Create an old-style archive from a shared archive.
26522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26524 # Create a temporary old-style archive to link instead of a shared archive.
26525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26527 # Commands used to build and install a shared archive.
26528 archive_cmds=$lt_archive_cmds_GCJ
26529 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26530 postinstall_cmds=$lt_postinstall_cmds
26531 postuninstall_cmds=$lt_postuninstall_cmds
26533 # Commands used to build a loadable module (assumed same as above if empty)
26534 module_cmds=$lt_module_cmds_GCJ
26535 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26537 # Commands to strip libraries.
26538 old_striplib=$lt_old_striplib
26539 striplib=$lt_striplib
26541 # Dependencies to place before the objects being linked to create a
26543 predep_objects=$lt_predep_objects_GCJ
26545 # Dependencies to place after the objects being linked to create a
26547 postdep_objects=$lt_postdep_objects_GCJ
26549 # Dependencies to place before the objects being linked to create a
26551 predeps=$lt_predeps_GCJ
26553 # Dependencies to place after the objects being linked to create a
26555 postdeps=$lt_postdeps_GCJ
26557 # The library search path used internally by the compiler when linking
26558 # a shared library.
26559 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26561 # Method to check whether dependent libraries are shared objects.
26562 deplibs_check_method=$lt_deplibs_check_method
26564 # Command to use when deplibs_check_method == file_magic.
26565 file_magic_cmd=$lt_file_magic_cmd
26567 # Flag that allows shared libraries with undefined symbols to be built.
26568 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26570 # Flag that forces no undefined symbols.
26571 no_undefined_flag=$lt_no_undefined_flag_GCJ
26573 # Commands used to finish a libtool library installation in a directory.
26574 finish_cmds=$lt_finish_cmds
26576 # Same as above, but a single script fragment to be evaled but not shown.
26577 finish_eval=$lt_finish_eval
26579 # Take the output of nm and produce a listing of raw symbols and C names.
26580 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26582 # Transform the output of nm in a proper C declaration
26583 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26585 # Transform the output of nm in a C name address pair
26586 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26588 # This is the shared library runtime path variable.
26589 runpath_var=$runpath_var
26591 # This is the shared library path variable.
26592 shlibpath_var=$shlibpath_var
26594 # Is shlibpath searched before the hard-coded library search path?
26595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26597 # How to hardcode a shared library path into an executable.
26598 hardcode_action=$hardcode_action_GCJ
26600 # Whether we should hardcode library paths into libraries.
26601 hardcode_into_libs=$hardcode_into_libs
26603 # Flag to hardcode \$libdir into a binary during linking.
26604 # This must work even if \$libdir does not exist.
26605 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26607 # If ld is used when linking, flag to hardcode \$libdir into
26608 # a binary during linking. This must work even if \$libdir does
26610 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26612 # Whether we need a single -rpath flag with a separated argument.
26613 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26615 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26616 # resulting binary.
26617 hardcode_direct=$hardcode_direct_GCJ
26619 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26620 # resulting binary.
26621 hardcode_minus_L=$hardcode_minus_L_GCJ
26623 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26624 # the resulting binary.
26625 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26627 # Set to yes if building a shared library automatically hardcodes DIR into the library
26628 # and all subsequent libraries and executables linked against it.
26629 hardcode_automatic=$hardcode_automatic_GCJ
26631 # Variables whose values should be saved in libtool wrapper scripts and
26632 # restored at relink time.
26633 variables_saved_for_relink="$variables_saved_for_relink"
26635 # Whether libtool must link a program against all its dependency libraries.
26636 link_all_deplibs=$link_all_deplibs_GCJ
26638 # Compile-time system search path for libraries
26639 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26641 # Run-time system search path for libraries
26642 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26644 # Fix the shell variable \$srcfile for the compiler.
26645 fix_srcfile_path="$fix_srcfile_path_GCJ"
26647 # Set to yes if exported symbols are required.
26648 always_export_symbols=$always_export_symbols_GCJ
26650 # The commands to list exported symbols.
26651 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26653 # The commands to extract the exported symbol list from a shared archive.
26654 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26656 # Symbols that should not be listed in the preloaded symbols.
26657 exclude_expsyms=$lt_exclude_expsyms_GCJ
26659 # Symbols that must always be exported.
26660 include_expsyms=$lt_include_expsyms_GCJ
26662 # ### END LIBTOOL TAG CONFIG: $tagname
26668 # If there is no Makefile yet, we rely on a make rule to execute
26669 # `config.status --recheck' to rerun these tests and create the
26670 # libtool script then.
26671 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26672 if test -f "$ltmain_in"; then
26673 test -f Makefile
&& make "$ltmain"
26679 ac_cpp
='$CPP $CPPFLAGS'
26680 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26681 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26682 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26693 ac_cpp
='$CPP $CPPFLAGS'
26694 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26695 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26696 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26699 # Source file extension for RC test sources.
26702 # Object file extension for compiled RC test sources.
26706 # Code to be used in simple compile tests
26707 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26709 # Code to be used in simple link tests
26710 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26714 # If no C compiler was specified, use CC.
26717 # If no C compiler flags were specified, use CFLAGS.
26718 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26720 # Allow CC to be a program name with arguments.
26724 # save warnings/boilerplate of simple test code
26725 ac_outfile
=conftest.
$ac_objext
26726 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26727 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26728 _lt_compiler_boilerplate
=`cat conftest.err`
26731 ac_outfile
=conftest.
$ac_objext
26732 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26733 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26734 _lt_linker_boilerplate
=`cat conftest.err`
26738 # Allow CC to be a program name with arguments.
26743 for cc_temp
in $compiler""; do
26745 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26746 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26751 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26753 lt_cv_prog_compiler_c_o_RC
=yes
26755 # The else clause should only fire when bootstrapping the
26756 # libtool distribution, otherwise you forgot to ship ltmain.sh
26757 # with your package, and you will get complaints that there are
26758 # no rules to generate ltmain.sh.
26759 if test -f "$ltmain"; then
26760 # See if we are running on zsh, and set the options which allow our commands through
26761 # without removal of \ escapes.
26762 if test -n "${ZSH_VERSION+set}" ; then
26763 setopt NO_GLOB_SUBST
26765 # Now quote all the things that may contain metacharacters while being
26766 # careful not to overquote the AC_SUBSTed values. We take copies of the
26767 # variables and quote the copies for generation of the libtool script.
26768 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26770 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26771 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26772 deplibs_check_method reload_flag reload_cmds need_locks \
26773 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26774 lt_cv_sys_global_symbol_to_c_name_address \
26775 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26776 old_postinstall_cmds old_postuninstall_cmds \
26780 lt_prog_compiler_wl_RC \
26781 lt_prog_compiler_pic_RC \
26782 lt_prog_compiler_static_RC \
26783 lt_prog_compiler_no_builtin_flag_RC \
26784 export_dynamic_flag_spec_RC \
26785 thread_safe_flag_spec_RC \
26786 whole_archive_flag_spec_RC \
26787 enable_shared_with_static_runtimes_RC \
26788 old_archive_cmds_RC \
26789 old_archive_from_new_cmds_RC \
26790 predep_objects_RC \
26791 postdep_objects_RC \
26794 compiler_lib_search_path_RC \
26796 archive_expsym_cmds_RC \
26797 postinstall_cmds_RC \
26798 postuninstall_cmds_RC \
26799 old_archive_from_expsyms_cmds_RC \
26800 allow_undefined_flag_RC \
26801 no_undefined_flag_RC \
26802 export_symbols_cmds_RC \
26803 hardcode_libdir_flag_spec_RC \
26804 hardcode_libdir_flag_spec_ld_RC \
26805 hardcode_libdir_separator_RC \
26806 hardcode_automatic_RC \
26808 module_expsym_cmds_RC \
26809 lt_cv_prog_compiler_c_o_RC \
26810 exclude_expsyms_RC \
26811 include_expsyms_RC
; do
26814 old_archive_cmds_RC | \
26815 old_archive_from_new_cmds_RC | \
26816 archive_cmds_RC | \
26817 archive_expsym_cmds_RC | \
26819 module_expsym_cmds_RC | \
26820 old_archive_from_expsyms_cmds_RC | \
26821 export_symbols_cmds_RC | \
26822 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26823 postinstall_cmds | postuninstall_cmds | \
26824 old_postinstall_cmds | old_postuninstall_cmds | \
26825 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26826 # Double-quote double-evaled strings.
26827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26830 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26836 *'\$0 --fallback-echo"')
26837 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26843 cat <<__EOF__ >> "$cfgfile"
26844 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26846 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26848 # Shell to use when invoking shell scripts.
26851 # Whether or not to build shared libraries.
26852 build_libtool_libs=$enable_shared
26854 # Whether or not to build static libraries.
26855 build_old_libs=$enable_static
26857 # Whether or not to add -lc for building shared libraries.
26858 build_libtool_need_lc=$archive_cmds_need_lc_RC
26860 # Whether or not to disallow shared libs when runtime libs are static
26861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26863 # Whether or not to optimize for fast installation.
26864 fast_install=$enable_fast_install
26867 host_alias=$host_alias
26871 # The build system.
26872 build_alias=$build_alias
26876 # An echo program that does not interpret backslashes.
26881 AR_FLAGS=$lt_AR_FLAGS
26886 # LTCC compiler flags.
26887 LTCFLAGS=$lt_LTCFLAGS
26889 # A language-specific compiler.
26892 # Is the compiler the GNU C compiler?
26898 # The linker used to build libraries.
26901 # Whether we need hard or soft links.
26904 # A BSD-compatible nm program.
26907 # A symbol stripping program
26910 # Used to examine libraries when file_magic_cmd begins "file"
26911 MAGIC_CMD=$MAGIC_CMD
26913 # Used on cygwin: DLL creation program.
26916 # Used on cygwin: object dumper.
26919 # Used on cygwin: assembler.
26922 # The name of the directory that contains temporary libtool files.
26925 # How to create reloadable object files.
26926 reload_flag=$lt_reload_flag
26927 reload_cmds=$lt_reload_cmds
26929 # How to pass a linker flag through the compiler.
26930 wl=$lt_lt_prog_compiler_wl_RC
26932 # Object file suffix (normally "o").
26933 objext="$ac_objext"
26935 # Old archive suffix (normally "a").
26938 # Shared library suffix (normally ".so").
26939 shrext_cmds='$shrext_cmds'
26941 # Executable file suffix (normally "").
26944 # Additional compiler flags for building library objects.
26945 pic_flag=$lt_lt_prog_compiler_pic_RC
26948 # What is the maximum length of a command?
26949 max_cmd_len=$lt_cv_sys_max_cmd_len
26951 # Does compiler simultaneously support -c and -o options?
26952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26954 # Must we lock files when doing compilation?
26955 need_locks=$lt_need_locks
26957 # Do we need the lib prefix for modules?
26958 need_lib_prefix=$need_lib_prefix
26960 # Do we need a version for libraries?
26961 need_version=$need_version
26963 # Whether dlopen is supported.
26964 dlopen_support=$enable_dlopen
26966 # Whether dlopen of programs is supported.
26967 dlopen_self=$enable_dlopen_self
26969 # Whether dlopen of statically linked programs is supported.
26970 dlopen_self_static=$enable_dlopen_self_static
26972 # Compiler flag to prevent dynamic linking.
26973 link_static_flag=$lt_lt_prog_compiler_static_RC
26975 # Compiler flag to turn off builtin functions.
26976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26978 # Compiler flag to allow reflexive dlopens.
26979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26981 # Compiler flag to generate shared objects directly from archives.
26982 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26984 # Compiler flag to generate thread-safe objects.
26985 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26987 # Library versioning type.
26988 version_type=$version_type
26990 # Format of library name prefix.
26991 libname_spec=$lt_libname_spec
26993 # List of archive names. First name is the real one, the rest are links.
26994 # The last name is the one that the linker finds with -lNAME.
26995 library_names_spec=$lt_library_names_spec
26997 # The coded name of the library, if different from the real name.
26998 soname_spec=$lt_soname_spec
27000 # Commands used to build and install an old-style archive.
27002 old_archive_cmds=$lt_old_archive_cmds_RC
27003 old_postinstall_cmds=$lt_old_postinstall_cmds
27004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27006 # Create an old-style archive from a shared archive.
27007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27009 # Create a temporary old-style archive to link instead of a shared archive.
27010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27012 # Commands used to build and install a shared archive.
27013 archive_cmds=$lt_archive_cmds_RC
27014 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27015 postinstall_cmds=$lt_postinstall_cmds
27016 postuninstall_cmds=$lt_postuninstall_cmds
27018 # Commands used to build a loadable module (assumed same as above if empty)
27019 module_cmds=$lt_module_cmds_RC
27020 module_expsym_cmds=$lt_module_expsym_cmds_RC
27022 # Commands to strip libraries.
27023 old_striplib=$lt_old_striplib
27024 striplib=$lt_striplib
27026 # Dependencies to place before the objects being linked to create a
27028 predep_objects=$lt_predep_objects_RC
27030 # Dependencies to place after the objects being linked to create a
27032 postdep_objects=$lt_postdep_objects_RC
27034 # Dependencies to place before the objects being linked to create a
27036 predeps=$lt_predeps_RC
27038 # Dependencies to place after the objects being linked to create a
27040 postdeps=$lt_postdeps_RC
27042 # The library search path used internally by the compiler when linking
27043 # a shared library.
27044 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27046 # Method to check whether dependent libraries are shared objects.
27047 deplibs_check_method=$lt_deplibs_check_method
27049 # Command to use when deplibs_check_method == file_magic.
27050 file_magic_cmd=$lt_file_magic_cmd
27052 # Flag that allows shared libraries with undefined symbols to be built.
27053 allow_undefined_flag=$lt_allow_undefined_flag_RC
27055 # Flag that forces no undefined symbols.
27056 no_undefined_flag=$lt_no_undefined_flag_RC
27058 # Commands used to finish a libtool library installation in a directory.
27059 finish_cmds=$lt_finish_cmds
27061 # Same as above, but a single script fragment to be evaled but not shown.
27062 finish_eval=$lt_finish_eval
27064 # Take the output of nm and produce a listing of raw symbols and C names.
27065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27067 # Transform the output of nm in a proper C declaration
27068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27070 # Transform the output of nm in a C name address pair
27071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27073 # This is the shared library runtime path variable.
27074 runpath_var=$runpath_var
27076 # This is the shared library path variable.
27077 shlibpath_var=$shlibpath_var
27079 # Is shlibpath searched before the hard-coded library search path?
27080 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27082 # How to hardcode a shared library path into an executable.
27083 hardcode_action=$hardcode_action_RC
27085 # Whether we should hardcode library paths into libraries.
27086 hardcode_into_libs=$hardcode_into_libs
27088 # Flag to hardcode \$libdir into a binary during linking.
27089 # This must work even if \$libdir does not exist.
27090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27092 # If ld is used when linking, flag to hardcode \$libdir into
27093 # a binary during linking. This must work even if \$libdir does
27095 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27097 # Whether we need a single -rpath flag with a separated argument.
27098 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27100 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27101 # resulting binary.
27102 hardcode_direct=$hardcode_direct_RC
27104 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27105 # resulting binary.
27106 hardcode_minus_L=$hardcode_minus_L_RC
27108 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27109 # the resulting binary.
27110 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27112 # Set to yes if building a shared library automatically hardcodes DIR into the library
27113 # and all subsequent libraries and executables linked against it.
27114 hardcode_automatic=$hardcode_automatic_RC
27116 # Variables whose values should be saved in libtool wrapper scripts and
27117 # restored at relink time.
27118 variables_saved_for_relink="$variables_saved_for_relink"
27120 # Whether libtool must link a program against all its dependency libraries.
27121 link_all_deplibs=$link_all_deplibs_RC
27123 # Compile-time system search path for libraries
27124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27126 # Run-time system search path for libraries
27127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27129 # Fix the shell variable \$srcfile for the compiler.
27130 fix_srcfile_path="$fix_srcfile_path_RC"
27132 # Set to yes if exported symbols are required.
27133 always_export_symbols=$always_export_symbols_RC
27135 # The commands to list exported symbols.
27136 export_symbols_cmds=$lt_export_symbols_cmds_RC
27138 # The commands to extract the exported symbol list from a shared archive.
27139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27141 # Symbols that should not be listed in the preloaded symbols.
27142 exclude_expsyms=$lt_exclude_expsyms_RC
27144 # Symbols that must always be exported.
27145 include_expsyms=$lt_include_expsyms_RC
27147 # ### END LIBTOOL TAG CONFIG: $tagname
27153 # If there is no Makefile yet, we rely on a make rule to execute
27154 # `config.status --recheck' to rerun these tests and create the
27155 # libtool script then.
27156 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27157 if test -f "$ltmain_in"; then
27158 test -f Makefile
&& make "$ltmain"
27164 ac_cpp
='$CPP $CPPFLAGS'
27165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27174 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27175 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27176 { (exit 1); exit 1; }; }
27180 # Append the new tag name to the list of available tags.
27181 if test -n "$tagname" ; then
27182 available_tags
="$available_tags $tagname"
27188 # Now substitute the updated list of available tags.
27189 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27190 mv "${ofile}T" "$ofile"
27194 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27195 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27196 { (exit 1); exit 1; }; }
27202 # This can be used to rebuild libtool when needed
27203 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
27205 # Always use our own libtool.
27206 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
27208 # Prevent multiple expansion
27230 if test "$lt_cv_dlopen_self" = "yes" ; then
27232 cat >>confdefs.h
<<\_ACEOF
27233 #define CAN_DLOPEN_SELF 1
27239 if test "$WITH_LLVMGCCDIR" = "default" ; then
27240 LLVMGCC
="llvm-gcc${EXEEXT}"
27241 LLVMGXX
="llvm-g++${EXEEXT}"
27242 LLVMGCCCOMMAND
="$LLVMGCC"
27243 LLVMGXXCOMMAND
="$LLVMGXX"
27244 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27246 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27248 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27249 set dummy
$LLVMGCC; ac_word
=$2
27250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27252 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27253 echo $ECHO_N "(cached) $ECHO_C" >&6
27257 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
27260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27261 for as_dir
in $PATH
27264 test -z "$as_dir" && as_dir
=.
27265 for ac_exec_ext
in '' $ac_executable_extensions; do
27266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27267 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
27268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27278 LLVMGCC
=$ac_cv_path_LLVMGCC
27279 if test -n "$LLVMGCC"; then
27280 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27281 echo "${ECHO_T}$LLVMGCC" >&6; }
27283 { echo "$as_me:$LINENO: result: no" >&5
27284 echo "${ECHO_T}no" >&6; }
27288 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27289 set dummy
$LLVMGXX; ac_word
=$2
27290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27292 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27293 echo $ECHO_N "(cached) $ECHO_C" >&6
27297 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
27300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27301 for as_dir
in $PATH
27304 test -z "$as_dir" && as_dir
=.
27305 for ac_exec_ext
in '' $ac_executable_extensions; do
27306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27307 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
27308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27318 LLVMGXX
=$ac_cv_path_LLVMGXX
27319 if test -n "$LLVMGXX"; then
27320 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27321 echo "${ECHO_T}$LLVMGXX" >&6; }
27323 { echo "$as_me:$LINENO: result: no" >&5
27324 echo "${ECHO_T}no" >&6; }
27329 if test -z "$LLVMGCC"; then
27330 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27331 LLVMGCCCOMMAND
="$LLVMGCC"
27333 if test -z "$LLVMGXX"; then
27334 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27335 LLVMGXXCOMMAND
="$LLVMGXX"
27342 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27344 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27349 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27350 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27363 if test "$GCC" != "yes" && test "$ICC" != "yes"
27365 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27366 echo "$as_me: error: gcc|icc required but not found" >&2;}
27367 { (exit 1); exit 1; }; }
27370 if test "$GXX" != "yes" && test "$IXX" != "yes"
27372 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27373 echo "$as_me: error: g++|icc required but not found" >&2;}
27374 { (exit 1); exit 1; }; }
27377 if test "$GCC" = "yes"
27379 cat >conftest.
$ac_ext <<_ACEOF
27380 #if !defined(__GNUC__) || __GNUC__ < 3
27381 #error Unsupported GCC version
27385 rm -f conftest.
$ac_objext
27386 if { (ac_try
="$ac_compile"
27387 case "(($ac_try" in
27388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_compile") 2>conftest.er1
27394 grep -v '^ *+' conftest.er1 >conftest.err
27396 cat conftest.err >&5
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); } &&
27399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27400 { (case "(($ac_try" in
27401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27402 *) ac_try_echo
=$ac_try;;
27404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_try") 2>&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try
='test -s conftest.$ac_objext'
27410 { (case "(($ac_try" in
27411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27412 *) ac_try_echo=$ac_try;;
27414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415 (eval "$ac_try") 2>&5
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; }; then
27421 echo "$as_me: failed program was:" >&5
27422 sed 's/^/| /' conftest.$ac_ext >&5
27424 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27425 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27426 { (exit 1); exit 1; }; }
27429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27432 if test -z "$llvm_cv_gnu_make_command"
27434 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27435 echo "$as_me: error: GNU Make required but not found" >&2;}
27436 { (exit 1); exit 1; }; }
27439 { echo "$as_me:$LINENO: result: ok" >&5
27440 echo "${ECHO_T}ok" >&6; }
27444 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27445 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27446 if test "${ac_cv_lib_m_sin+set}" = set; then
27447 echo $ECHO_N "(cached) $ECHO_C" >&6
27449 ac_check_lib_save_LIBS=$LIBS
27451 cat >conftest.$ac_ext <<_ACEOF
27454 cat confdefs.h >>conftest.$ac_ext
27455 cat >>conftest.$ac_ext <<_ACEOF
27456 /* end confdefs.h. */
27458 /* Override any GCC internal prototype to avoid an error.
27459 Use char because int might match the return type of a GCC
27460 builtin and then its argument prototype would still apply. */
27473 rm -f conftest.$ac_objext conftest$ac_exeext
27474 if { (ac_try="$ac_link"
27475 case "(($ac_try" in
27476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27477 *) ac_try_echo
=$ac_try;;
27479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480 (eval "$ac_link") 2>conftest.er1
27482 grep -v '^ *+' conftest.er1
>conftest.err
27484 cat conftest.err
>&5
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); } &&
27487 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27488 { (case "(($ac_try" in
27489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27490 *) ac_try_echo=$ac_try;;
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493 (eval "$ac_try") 2>&5
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); }; } &&
27497 { ac_try='test -s conftest$ac_exeext'
27498 { (case "(($ac_try" in
27499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27500 *) ac_try_echo
=$ac_try;;
27502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27503 (eval "$ac_try") 2>&5
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); }; }; then
27507 ac_cv_lib_m_sin
=yes
27509 echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.
$ac_ext >&5
27515 rm -f core conftest.err conftest.
$ac_objext \
27516 conftest
$ac_exeext conftest.
$ac_ext
27517 LIBS
=$ac_check_lib_save_LIBS
27519 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27520 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27521 if test $ac_cv_lib_m_sin = yes; then
27522 cat >>confdefs.h
<<_ACEOF
27523 #define HAVE_LIBM 1
27530 if test "$llvm_cv_os_type" = "MingW" ; then
27532 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27533 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27534 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27537 ac_check_lib_save_LIBS
=$LIBS
27538 LIBS
="-limagehlp $LIBS"
27539 cat >conftest.
$ac_ext <<_ACEOF
27542 cat confdefs.h
>>conftest.
$ac_ext
27543 cat >>conftest.
$ac_ext <<_ACEOF
27544 /* end confdefs.h. */
27555 rm -f conftest.
$ac_objext conftest
$ac_exeext
27556 if { (ac_try
="$ac_link"
27557 case "(($ac_try" in
27558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27559 *) ac_try_echo=$ac_try;;
27561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27562 (eval "$ac_link") 2>conftest.er1
27564 grep -v '^ *+' conftest.er1 >conftest.err
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } &&
27569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27570 { (case "(($ac_try" in
27571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27572 *) ac_try_echo
=$ac_try;;
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_try") 2>&5
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); }; } &&
27579 { ac_try
='test -s conftest$ac_exeext'
27580 { (case "(($ac_try" in
27581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585 (eval "$ac_try") 2>&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; }; then
27589 ac_cv_lib_imagehlp_main=yes
27591 echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27594 ac_cv_lib_imagehlp_main=no
27597 rm -f core conftest.err conftest.$ac_objext \
27598 conftest$ac_exeext conftest.$ac_ext
27599 LIBS=$ac_check_lib_save_LIBS
27601 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27602 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27603 if test $ac_cv_lib_imagehlp_main = yes; then
27604 cat >>confdefs.h <<_ACEOF
27605 #define HAVE_LIBIMAGEHLP 1
27608 LIBS="-limagehlp $LIBS"
27613 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27614 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27615 if test "${ac_cv_lib_psapi_main+set}" = set; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27618 ac_check_lib_save_LIBS=$LIBS
27619 LIBS="-lpsapi $LIBS"
27620 cat >conftest.$ac_ext <<_ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h. */
27636 rm -f conftest.$ac_objext conftest$ac_exeext
27637 if { (ac_try="$ac_link"
27638 case "(($ac_try" in
27639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27640 *) ac_try_echo
=$ac_try;;
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_link") 2>conftest.er1
27645 grep -v '^ *+' conftest.er1
>conftest.err
27647 cat conftest.err
>&5
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); } &&
27650 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27651 { (case "(($ac_try" in
27652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656 (eval "$ac_try") 2>&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); }; } &&
27660 { ac_try='test -s conftest$ac_exeext'
27661 { (case "(($ac_try" in
27662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27663 *) ac_try_echo
=$ac_try;;
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_try") 2>&5
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; }; then
27670 ac_cv_lib_psapi_main
=yes
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.
$ac_ext >&5
27675 ac_cv_lib_psapi_main
=no
27678 rm -f core conftest.err conftest.
$ac_objext \
27679 conftest
$ac_exeext conftest.
$ac_ext
27680 LIBS
=$ac_check_lib_save_LIBS
27682 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27683 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27684 if test $ac_cv_lib_psapi_main = yes; then
27685 cat >>confdefs.h
<<_ACEOF
27686 #define HAVE_LIBPSAPI 1
27689 LIBS
="-lpsapi $LIBS"
27695 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27696 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27697 if test "${ac_cv_search_dlopen+set}" = set; then
27698 echo $ECHO_N "(cached) $ECHO_C" >&6
27700 ac_func_search_save_LIBS
=$LIBS
27701 cat >conftest.
$ac_ext <<_ACEOF
27704 cat confdefs.h
>>conftest.
$ac_ext
27705 cat >>conftest.
$ac_ext <<_ACEOF
27706 /* end confdefs.h. */
27708 /* Override any GCC internal prototype to avoid an error.
27709 Use char because int might match the return type of a GCC
27710 builtin and then its argument prototype would still apply. */
27723 for ac_lib
in '' dl
; do
27724 if test -z "$ac_lib"; then
27725 ac_res
="none required"
27728 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27730 rm -f conftest.
$ac_objext conftest
$ac_exeext
27731 if { (ac_try
="$ac_link"
27732 case "(($ac_try" in
27733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27734 *) ac_try_echo=$ac_try;;
27736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27737 (eval "$ac_link") 2>conftest.er1
27739 grep -v '^ *+' conftest.er1 >conftest.err
27741 cat conftest.err >&5
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } &&
27744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27745 { (case "(($ac_try" in
27746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27747 *) ac_try_echo
=$ac_try;;
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750 (eval "$ac_try") 2>&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; } &&
27754 { ac_try
='test -s conftest$ac_exeext'
27755 { (case "(($ac_try" in
27756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27757 *) ac_try_echo=$ac_try;;
27759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760 (eval "$ac_try") 2>&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; }; then
27764 ac_cv_search_dlopen=$ac_res
27766 echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27772 rm -f core conftest.err conftest.$ac_objext \
27774 if test "${ac_cv_search_dlopen+set}" = set; then
27778 if test "${ac_cv_search_dlopen+set}" = set; then
27781 ac_cv_search_dlopen=no
27783 rm conftest.$ac_ext
27784 LIBS=$ac_func_search_save_LIBS
27786 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27787 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27788 ac_res=$ac_cv_search_dlopen
27789 if test "$ac_res" != no; then
27790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27792 cat >>confdefs.h <<\_ACEOF
27793 #define HAVE_DLOPEN 1
27797 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27798 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27802 if test "$llvm_cv_enable_libffi" = "yes" ; then
27803 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27804 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27805 if test "${ac_cv_search_ffi_call+set}" = set; then
27806 echo $ECHO_N "(cached) $ECHO_C" >&6
27808 ac_func_search_save_LIBS=$LIBS
27809 cat >conftest.$ac_ext <<_ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h. */
27816 /* Override any GCC internal prototype to avoid an error.
27817 Use char because int might match the return type of a GCC
27818 builtin and then its argument prototype would still apply. */
27826 return ffi_call ();
27831 for ac_lib in '' ffi; do
27832 if test -z "$ac_lib"; then
27833 ac_res="none required"
27836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27838 rm -f conftest.$ac_objext conftest$ac_exeext
27839 if { (ac_try="$ac_link"
27840 case "(($ac_try" in
27841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27842 *) ac_try_echo
=$ac_try;;
27844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27845 (eval "$ac_link") 2>conftest.er1
27847 grep -v '^ *+' conftest.er1
>conftest.err
27849 cat conftest.err
>&5
27850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851 (exit $ac_status); } &&
27852 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27853 { (case "(($ac_try" in
27854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_try") 2>&5
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; } &&
27862 { ac_try='test -s conftest$ac_exeext'
27863 { (case "(($ac_try" in
27864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27865 *) ac_try_echo
=$ac_try;;
27867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868 (eval "$ac_try") 2>&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); }; }; then
27872 ac_cv_search_ffi_call
=$ac_res
27874 echo "$as_me: failed program was:" >&5
27875 sed 's/^/| /' conftest.
$ac_ext >&5
27880 rm -f core conftest.err conftest.
$ac_objext \
27882 if test "${ac_cv_search_ffi_call+set}" = set; then
27886 if test "${ac_cv_search_ffi_call+set}" = set; then
27889 ac_cv_search_ffi_call
=no
27891 rm conftest.
$ac_ext
27892 LIBS
=$ac_func_search_save_LIBS
27894 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27895 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27896 ac_res
=$ac_cv_search_ffi_call
27897 if test "$ac_res" != no
; then
27898 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27900 cat >>confdefs.h
<<\_ACEOF
27901 #define HAVE_FFI_CALL 1
27905 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27906 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27911 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27912 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27913 if test "${ac_cv_search_mallinfo+set}" = set; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27916 ac_func_search_save_LIBS
=$LIBS
27917 cat >conftest.
$ac_ext <<_ACEOF
27920 cat confdefs.h
>>conftest.
$ac_ext
27921 cat >>conftest.
$ac_ext <<_ACEOF
27922 /* end confdefs.h. */
27924 /* Override any GCC internal prototype to avoid an error.
27925 Use char because int might match the return type of a GCC
27926 builtin and then its argument prototype would still apply. */
27934 return mallinfo ();
27939 for ac_lib
in '' malloc
; do
27940 if test -z "$ac_lib"; then
27941 ac_res
="none required"
27944 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27946 rm -f conftest.
$ac_objext conftest
$ac_exeext
27947 if { (ac_try
="$ac_link"
27948 case "(($ac_try" in
27949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953 (eval "$ac_link") 2>conftest.er1
27955 grep -v '^ *+' conftest.er1 >conftest.err
27957 cat conftest.err >&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } &&
27960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27961 { (case "(($ac_try" in
27962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27963 *) ac_try_echo
=$ac_try;;
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_try") 2>&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; } &&
27970 { ac_try
='test -s conftest$ac_exeext'
27971 { (case "(($ac_try" in
27972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27973 *) ac_try_echo=$ac_try;;
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976 (eval "$ac_try") 2>&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; }; then
27980 ac_cv_search_mallinfo=$ac_res
27982 echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27988 rm -f core conftest.err conftest.$ac_objext \
27990 if test "${ac_cv_search_mallinfo+set}" = set; then
27994 if test "${ac_cv_search_mallinfo+set}" = set; then
27997 ac_cv_search_mallinfo=no
27999 rm conftest.$ac_ext
28000 LIBS=$ac_func_search_save_LIBS
28002 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28003 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28004 ac_res=$ac_cv_search_mallinfo
28005 if test "$ac_res" != no; then
28006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28008 cat >>confdefs.h <<\_ACEOF
28009 #define HAVE_MALLINFO 1
28015 if test "$ENABLE_THREADS" -eq 1 ; then
28017 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28018 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28019 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28022 ac_check_lib_save_LIBS=$LIBS
28023 LIBS="-lpthread $LIBS"
28024 cat >conftest.$ac_ext <<_ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h. */
28031 /* Override any GCC internal prototype to avoid an error.
28032 Use char because int might match the return type of a GCC
28033 builtin and then its argument prototype would still apply. */
28037 char pthread_mutex_init ();
28041 return pthread_mutex_init ();
28046 rm -f conftest.$ac_objext conftest$ac_exeext
28047 if { (ac_try="$ac_link"
28048 case "(($ac_try" in
28049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28050 *) ac_try_echo
=$ac_try;;
28052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28053 (eval "$ac_link") 2>conftest.er1
28055 grep -v '^ *+' conftest.er1
>conftest.err
28057 cat conftest.err
>&5
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); } &&
28060 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28061 { (case "(($ac_try" in
28062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28063 *) ac_try_echo=$ac_try;;
28065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066 (eval "$ac_try") 2>&5
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); }; } &&
28070 { ac_try='test -s conftest$ac_exeext'
28071 { (case "(($ac_try" in
28072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28073 *) ac_try_echo
=$ac_try;;
28075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28076 (eval "$ac_try") 2>&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; }; then
28080 ac_cv_lib_pthread_pthread_mutex_init
=yes
28082 echo "$as_me: failed program was:" >&5
28083 sed 's/^/| /' conftest.
$ac_ext >&5
28085 ac_cv_lib_pthread_pthread_mutex_init
=no
28088 rm -f core conftest.err conftest.
$ac_objext \
28089 conftest
$ac_exeext conftest.
$ac_ext
28090 LIBS
=$ac_check_lib_save_LIBS
28092 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28093 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28094 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28095 cat >>confdefs.h
<<_ACEOF
28096 #define HAVE_LIBPTHREAD 1
28099 LIBS
="-lpthread $LIBS"
28103 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28104 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28105 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28106 echo $ECHO_N "(cached) $ECHO_C" >&6
28108 ac_func_search_save_LIBS
=$LIBS
28109 cat >conftest.
$ac_ext <<_ACEOF
28112 cat confdefs.h
>>conftest.
$ac_ext
28113 cat >>conftest.
$ac_ext <<_ACEOF
28114 /* end confdefs.h. */
28116 /* Override any GCC internal prototype to avoid an error.
28117 Use char because int might match the return type of a GCC
28118 builtin and then its argument prototype would still apply. */
28122 char pthread_mutex_lock ();
28126 return pthread_mutex_lock ();
28131 for ac_lib
in '' pthread
; do
28132 if test -z "$ac_lib"; then
28133 ac_res
="none required"
28136 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28138 rm -f conftest.
$ac_objext conftest
$ac_exeext
28139 if { (ac_try
="$ac_link"
28140 case "(($ac_try" in
28141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28142 *) ac_try_echo=$ac_try;;
28144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145 (eval "$ac_link") 2>conftest.er1
28147 grep -v '^ *+' conftest.er1 >conftest.err
28149 cat conftest.err >&5
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); } &&
28152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28153 { (case "(($ac_try" in
28154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28155 *) ac_try_echo
=$ac_try;;
28157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_try") 2>&5
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; } &&
28162 { ac_try
='test -s conftest$ac_exeext'
28163 { (case "(($ac_try" in
28164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168 (eval "$ac_try") 2>&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); }; }; then
28172 ac_cv_search_pthread_mutex_lock=$ac_res
28174 echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28180 rm -f core conftest.err conftest.$ac_objext \
28182 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28186 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28189 ac_cv_search_pthread_mutex_lock=no
28191 rm conftest.$ac_ext
28192 LIBS=$ac_func_search_save_LIBS
28194 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28195 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28196 ac_res=$ac_cv_search_pthread_mutex_lock
28197 if test "$ac_res" != no; then
28198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28200 cat >>confdefs.h <<\_ACEOF
28201 #define HAVE_PTHREAD_MUTEX_LOCK 1
28206 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28207 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28208 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28211 ac_func_search_save_LIBS=$LIBS
28212 cat >conftest.$ac_ext <<_ACEOF
28215 cat confdefs.h >>conftest.$ac_ext
28216 cat >>conftest.$ac_ext <<_ACEOF
28217 /* end confdefs.h. */
28219 /* Override any GCC internal prototype to avoid an error.
28220 Use char because int might match the return type of a GCC
28221 builtin and then its argument prototype would still apply. */
28225 char pthread_rwlock_init ();
28229 return pthread_rwlock_init ();
28234 for ac_lib in '' pthread; do
28235 if test -z "$ac_lib"; then
28236 ac_res="none required"
28239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28241 rm -f conftest.$ac_objext conftest$ac_exeext
28242 if { (ac_try="$ac_link"
28243 case "(($ac_try" in
28244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28245 *) ac_try_echo
=$ac_try;;
28247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28248 (eval "$ac_link") 2>conftest.er1
28250 grep -v '^ *+' conftest.er1
>conftest.err
28252 cat conftest.err
>&5
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); } &&
28255 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28256 { (case "(($ac_try" in
28257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28258 *) ac_try_echo=$ac_try;;
28260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28261 (eval "$ac_try") 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; } &&
28265 { ac_try='test -s conftest$ac_exeext'
28266 { (case "(($ac_try" in
28267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28268 *) ac_try_echo
=$ac_try;;
28270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271 (eval "$ac_try") 2>&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); }; }; then
28275 ac_cv_search_pthread_rwlock_init
=$ac_res
28277 echo "$as_me: failed program was:" >&5
28278 sed 's/^/| /' conftest.
$ac_ext >&5
28283 rm -f core conftest.err conftest.
$ac_objext \
28285 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28289 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28292 ac_cv_search_pthread_rwlock_init
=no
28294 rm conftest.
$ac_ext
28295 LIBS
=$ac_func_search_save_LIBS
28297 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28298 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28299 ac_res
=$ac_cv_search_pthread_rwlock_init
28300 if test "$ac_res" != no
; then
28301 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28303 cat >>confdefs.h
<<\_ACEOF
28304 #define HAVE_PTHREAD_RWLOCK_INIT 1
28309 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28310 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28311 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28312 echo $ECHO_N "(cached) $ECHO_C" >&6
28314 ac_func_search_save_LIBS
=$LIBS
28315 cat >conftest.
$ac_ext <<_ACEOF
28318 cat confdefs.h
>>conftest.
$ac_ext
28319 cat >>conftest.
$ac_ext <<_ACEOF
28320 /* end confdefs.h. */
28322 /* Override any GCC internal prototype to avoid an error.
28323 Use char because int might match the return type of a GCC
28324 builtin and then its argument prototype would still apply. */
28328 char pthread_getspecific ();
28332 return pthread_getspecific ();
28337 for ac_lib
in '' pthread
; do
28338 if test -z "$ac_lib"; then
28339 ac_res
="none required"
28342 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28344 rm -f conftest.
$ac_objext conftest
$ac_exeext
28345 if { (ac_try
="$ac_link"
28346 case "(($ac_try" in
28347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28348 *) ac_try_echo=$ac_try;;
28350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28351 (eval "$ac_link") 2>conftest.er1
28353 grep -v '^ *+' conftest.er1 >conftest.err
28355 cat conftest.err >&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } &&
28358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28359 { (case "(($ac_try" in
28360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28361 *) ac_try_echo
=$ac_try;;
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_try") 2>&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try
='test -s conftest$ac_exeext'
28369 { (case "(($ac_try" in
28370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28371 *) ac_try_echo=$ac_try;;
28373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374 (eval "$ac_try") 2>&5
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
28378 ac_cv_search_pthread_getspecific=$ac_res
28380 echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28386 rm -f core conftest.err conftest.$ac_objext \
28388 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28392 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28395 ac_cv_search_pthread_getspecific=no
28397 rm conftest.$ac_ext
28398 LIBS=$ac_func_search_save_LIBS
28400 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28401 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28402 ac_res=$ac_cv_search_pthread_getspecific
28403 if test "$ac_res" != no; then
28404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28406 cat >>confdefs.h <<\_ACEOF
28407 #define HAVE_PTHREAD_GETSPECIFIC 1
28415 # Check whether --with-udis86 was given.
28416 if test "${with_udis86+set}" = set; then
28417 withval=$with_udis86;
28422 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28425 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28426 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28427 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28428 echo $ECHO_N "(cached) $ECHO_C" >&6
28430 ac_check_lib_save_LIBS=$LIBS
28431 LIBS="-ludis86 $LIBS"
28432 cat >conftest.$ac_ext <<_ACEOF
28435 cat confdefs.h >>conftest.$ac_ext
28436 cat >>conftest.$ac_ext <<_ACEOF
28437 /* end confdefs.h. */
28439 /* Override any GCC internal prototype to avoid an error.
28440 Use char because int might match the return type of a GCC
28441 builtin and then its argument prototype would still apply. */
28454 rm -f conftest.$ac_objext conftest$ac_exeext
28455 if { (ac_try="$ac_link"
28456 case "(($ac_try" in
28457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28458 *) ac_try_echo
=$ac_try;;
28460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28461 (eval "$ac_link") 2>conftest.er1
28463 grep -v '^ *+' conftest.er1
>conftest.err
28465 cat conftest.err
>&5
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); } &&
28468 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28469 { (case "(($ac_try" in
28470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28471 *) ac_try_echo=$ac_try;;
28473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28474 (eval "$ac_try") 2>&5
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); }; } &&
28478 { ac_try='test -s conftest$ac_exeext'
28479 { (case "(($ac_try" in
28480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28481 *) ac_try_echo
=$ac_try;;
28483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_try") 2>&5
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); }; }; then
28488 ac_cv_lib_udis86_ud_init
=yes
28490 echo "$as_me: failed program was:" >&5
28491 sed 's/^/| /' conftest.
$ac_ext >&5
28493 ac_cv_lib_udis86_ud_init
=no
28496 rm -f core conftest.err conftest.
$ac_objext \
28497 conftest
$ac_exeext conftest.
$ac_ext
28498 LIBS
=$ac_check_lib_save_LIBS
28500 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28501 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28502 if test $ac_cv_lib_udis86_ud_init = yes; then
28503 cat >>confdefs.h
<<_ACEOF
28504 #define HAVE_LIBUDIS86 1
28507 LIBS
="-ludis86 $LIBS"
28511 echo "Error! You need to have libudis86 around."
28523 cat >>confdefs.h
<<_ACEOF
28524 #define USE_UDIS86 $USE_UDIS86
28529 # Check whether --with-oprofile was given.
28530 if test "${with_oprofile+set}" = set; then
28531 withval
=$with_oprofile;
28535 /usr|
yes) llvm_cv_oppath
=/usr
/lib
/oprofile
;;
28536 *) llvm_cv_oppath
="${withval}/lib/oprofile"
28537 CPPFLAGS
="-I${withval}/include";;
28539 LIBS
="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28540 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28541 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28542 if test "${ac_cv_search_op_open_agent+set}" = set; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28545 ac_func_search_save_LIBS
=$LIBS
28546 cat >conftest.
$ac_ext <<_ACEOF
28549 cat confdefs.h
>>conftest.
$ac_ext
28550 cat >>conftest.
$ac_ext <<_ACEOF
28551 /* end confdefs.h. */
28553 /* Override any GCC internal prototype to avoid an error.
28554 Use char because int might match the return type of a GCC
28555 builtin and then its argument prototype would still apply. */
28559 char op_open_agent ();
28563 return op_open_agent ();
28568 for ac_lib
in '' opagent
; do
28569 if test -z "$ac_lib"; then
28570 ac_res
="none required"
28573 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28575 rm -f conftest.
$ac_objext conftest
$ac_exeext
28576 if { (ac_try
="$ac_link"
28577 case "(($ac_try" in
28578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_link") 2>conftest.er1
28584 grep -v '^ *+' conftest.er1 >conftest.err
28586 cat conftest.err >&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } &&
28589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28590 { (case "(($ac_try" in
28591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28592 *) ac_try_echo
=$ac_try;;
28594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28595 (eval "$ac_try") 2>&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); }; } &&
28599 { ac_try
='test -s conftest$ac_exeext'
28600 { (case "(($ac_try" in
28601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; }; then
28609 ac_cv_search_op_open_agent=$ac_res
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28617 rm -f core conftest.err conftest.$ac_objext \
28619 if test "${ac_cv_search_op_open_agent+set}" = set; then
28623 if test "${ac_cv_search_op_open_agent+set}" = set; then
28626 ac_cv_search_op_open_agent=no
28628 rm conftest.$ac_ext
28629 LIBS=$ac_func_search_save_LIBS
28631 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28632 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28633 ac_res=$ac_cv_search_op_open_agent
28634 if test "$ac_res" != no; then
28635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28639 echo "Error! You need to have libopagent around."
28644 if test "${ac_cv_header_opagent_h+set}" = set; then
28645 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28646 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28647 if test "${ac_cv_header_opagent_h+set}" = set; then
28648 echo $ECHO_N "(cached) $ECHO_C" >&6
28650 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28651 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28653 # Is the header compilable?
28654 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28655 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28656 cat >conftest.$ac_ext <<_ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h. */
28662 $ac_includes_default
28663 #include <opagent.h>
28665 rm -f conftest.$ac_objext
28666 if { (ac_try="$ac_compile"
28667 case "(($ac_try" in
28668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28669 *) ac_try_echo
=$ac_try;;
28671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672 (eval "$ac_compile") 2>conftest.er1
28674 grep -v '^ *+' conftest.er1
>conftest.err
28676 cat conftest.err
>&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); } &&
28679 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28680 { (case "(($ac_try" in
28681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28682 *) ac_try_echo=$ac_try;;
28684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685 (eval "$ac_try") 2>&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; } &&
28689 { ac_try='test -s conftest.$ac_objext'
28690 { (case "(($ac_try" in
28691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28692 *) ac_try_echo
=$ac_try;;
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695 (eval "$ac_try") 2>&5
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); }; }; then
28699 ac_header_compiler
=yes
28701 echo "$as_me: failed program was:" >&5
28702 sed 's/^/| /' conftest.
$ac_ext >&5
28704 ac_header_compiler
=no
28707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28709 echo "${ECHO_T}$ac_header_compiler" >&6; }
28711 # Is the header present?
28712 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28713 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28714 cat >conftest.
$ac_ext <<_ACEOF
28717 cat confdefs.h
>>conftest.
$ac_ext
28718 cat >>conftest.
$ac_ext <<_ACEOF
28719 /* end confdefs.h. */
28720 #include <opagent.h>
28722 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28723 case "(($ac_try" in
28724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28730 grep -v '^ *+' conftest.er1 >conftest.err
28732 cat conftest.err >&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } >/dev/null; then
28735 if test -s conftest.err; then
28736 ac_cpp_err=$ac_c_preproc_warn_flag
28737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28744 if test -z "$ac_cpp_err"; then
28745 ac_header_preproc=yes
28747 echo "$as_me: failed program was:" >&5
28748 sed 's/^/| /' conftest.$ac_ext >&5
28750 ac_header_preproc=no
28753 rm -f conftest.err conftest.$ac_ext
28754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28755 echo "${ECHO_T}$ac_header_preproc" >&6; }
28757 # So? What about this header?
28758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28760 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28761 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28762 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28763 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28764 ac_header_preproc=yes
28767 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28768 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28769 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28770 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28771 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28772 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28773 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28774 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28775 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28776 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28777 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28778 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28780 ## ----------------------------------- ##
28781 ## Report this to llvmbugs@cs.uiuc.edu ##
28782 ## ----------------------------------- ##
28784 ) | sed "s/^/$as_me: WARNING: /" >&2
28787 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28788 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28789 if test "${ac_cv_header_opagent_h+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28792 ac_cv_header_opagent_h=$ac_header_preproc
28794 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28795 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28798 if test $ac_cv_header_opagent_h = yes; then
28802 echo "Error! You need to have opagent.h around."
28811 llvm_cv_old_LIBS="$LIBS"
28812 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28813 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28814 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28815 if test "${ac_cv_search_op_open_agent+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28818 ac_func_search_save_LIBS=$LIBS
28819 cat >conftest.$ac_ext <<_ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h. */
28826 /* Override any GCC internal prototype to avoid an error.
28827 Use char because int might match the return type of a GCC
28828 builtin and then its argument prototype would still apply. */
28832 char op_open_agent ();
28836 return op_open_agent ();
28841 for ac_lib in '' opagent; do
28842 if test -z "$ac_lib"; then
28843 ac_res="none required"
28846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28848 rm -f conftest.$ac_objext conftest$ac_exeext
28849 if { (ac_try="$ac_link"
28850 case "(($ac_try" in
28851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28852 *) ac_try_echo
=$ac_try;;
28854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28855 (eval "$ac_link") 2>conftest.er1
28857 grep -v '^ *+' conftest.er1
>conftest.err
28859 cat conftest.err
>&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); } &&
28862 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28863 { (case "(($ac_try" in
28864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_try") 2>&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; } &&
28872 { ac_try='test -s conftest$ac_exeext'
28873 { (case "(($ac_try" in
28874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28875 *) ac_try_echo
=$ac_try;;
28877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28878 (eval "$ac_try") 2>&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; }; then
28882 ac_cv_search_op_open_agent
=$ac_res
28884 echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.
$ac_ext >&5
28890 rm -f core conftest.err conftest.
$ac_objext \
28892 if test "${ac_cv_search_op_open_agent+set}" = set; then
28896 if test "${ac_cv_search_op_open_agent+set}" = set; then
28899 ac_cv_search_op_open_agent
=no
28901 rm conftest.
$ac_ext
28902 LIBS
=$ac_func_search_save_LIBS
28904 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28905 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28906 ac_res
=$ac_cv_search_op_open_agent
28907 if test "$ac_res" != no
; then
28908 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28912 LIBS
="$llvm_cv_old_LIBS"
28917 if test "${ac_cv_header_opagent_h+set}" = set; then
28918 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28919 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28920 if test "${ac_cv_header_opagent_h+set}" = set; then
28921 echo $ECHO_N "(cached) $ECHO_C" >&6
28923 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28924 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28926 # Is the header compilable?
28927 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28928 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28929 cat >conftest.
$ac_ext <<_ACEOF
28932 cat confdefs.h
>>conftest.
$ac_ext
28933 cat >>conftest.
$ac_ext <<_ACEOF
28934 /* end confdefs.h. */
28935 $ac_includes_default
28936 #include <opagent.h>
28938 rm -f conftest.
$ac_objext
28939 if { (ac_try
="$ac_compile"
28940 case "(($ac_try" in
28941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28942 *) ac_try_echo=$ac_try;;
28944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945 (eval "$ac_compile") 2>conftest.er1
28947 grep -v '^ *+' conftest.er1 >conftest.err
28949 cat conftest.err >&5
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); } &&
28952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28953 { (case "(($ac_try" in
28954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28955 *) ac_try_echo
=$ac_try;;
28957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28958 (eval "$ac_try") 2>&5
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); }; } &&
28962 { ac_try
='test -s conftest.$ac_objext'
28963 { (case "(($ac_try" in
28964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28965 *) ac_try_echo=$ac_try;;
28967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968 (eval "$ac_try") 2>&5
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; }; then
28972 ac_header_compiler=yes
28974 echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977 ac_header_compiler=no
28980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28982 echo "${ECHO_T}$ac_header_compiler" >&6; }
28984 # Is the header present?
28985 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28986 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28987 cat >conftest.$ac_ext <<_ACEOF
28990 cat confdefs.h >>conftest.$ac_ext
28991 cat >>conftest.$ac_ext <<_ACEOF
28992 /* end confdefs.h. */
28993 #include <opagent.h>
28995 if { (ac_try="$ac_cpp conftest.$ac_ext"
28996 case "(($ac_try" in
28997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28998 *) ac_try_echo
=$ac_try;;
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29003 grep -v '^ *+' conftest.er1
>conftest.err
29005 cat conftest.err
>&5
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); } >/dev
/null
; then
29008 if test -s conftest.err
; then
29009 ac_cpp_err
=$ac_c_preproc_warn_flag
29010 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
29017 if test -z "$ac_cpp_err"; then
29018 ac_header_preproc
=yes
29020 echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.
$ac_ext >&5
29023 ac_header_preproc
=no
29026 rm -f conftest.err conftest.
$ac_ext
29027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29028 echo "${ECHO_T}$ac_header_preproc" >&6; }
29030 # So? What about this header?
29031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29033 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29034 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29035 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29036 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29037 ac_header_preproc
=yes
29040 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29041 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29042 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29043 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29045 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29046 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29047 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29049 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29051 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29053 ## ----------------------------------- ##
29054 ## Report this to llvmbugs@cs.uiuc.edu ##
29055 ## ----------------------------------- ##
29057 ) |
sed "s/^/$as_me: WARNING: /" >&2
29060 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29061 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29062 if test "${ac_cv_header_opagent_h+set}" = set; then
29063 echo $ECHO_N "(cached) $ECHO_C" >&6
29065 ac_cv_header_opagent_h
=$ac_header_preproc
29067 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29068 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29071 if test $ac_cv_header_opagent_h = yes; then
29075 LIBS
="$llvm_cv_old_LIBS"
29086 cat >>confdefs.h
<<_ACEOF
29087 #define USE_OPROFILE $USE_OPROFILE
29097 ac_header_dirent
=no
29098 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
29099 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29100 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29101 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29102 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103 echo $ECHO_N "(cached) $ECHO_C" >&6
29105 cat >conftest.
$ac_ext <<_ACEOF
29108 cat confdefs.h
>>conftest.
$ac_ext
29109 cat >>conftest.
$ac_ext <<_ACEOF
29110 /* end confdefs.h. */
29111 #include <sys/types.h>
29123 rm -f conftest.
$ac_objext
29124 if { (ac_try
="$ac_compile"
29125 case "(($ac_try" in
29126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29127 *) ac_try_echo=$ac_try;;
29129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130 (eval "$ac_compile") 2>conftest.er1
29132 grep -v '^ *+' conftest.er1 >conftest.err
29134 cat conftest.err >&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); } &&
29137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29138 { (case "(($ac_try" in
29139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29140 *) ac_try_echo
=$ac_try;;
29142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143 (eval "$ac_try") 2>&5
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); }; } &&
29147 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
29157 eval "$as_ac_Header=yes"
29159 echo "$as_me: failed program was:" >&5
29160 sed 's/^/| /' conftest.$ac_ext >&5
29162 eval "$as_ac_Header=no"
29165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29167 ac_res=`eval echo '${'$as_ac_Header'}'`
29168 { echo "$as_me:$LINENO: result: $ac_res" >&5
29169 echo "${ECHO_T}$ac_res" >&6; }
29170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29171 cat >>confdefs.h <<_ACEOF
29172 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
29175 ac_header_dirent=$ac_hdr; break
29179 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29180 if test $ac_header_dirent = dirent.h; then
29181 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29182 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29183 if test "${ac_cv_search_opendir+set}" = set; then
29184 echo $ECHO_N "(cached) $ECHO_C" >&6
29186 ac_func_search_save_LIBS=$LIBS
29187 cat >conftest.$ac_ext <<_ACEOF
29190 cat confdefs.h >>conftest.$ac_ext
29191 cat >>conftest.$ac_ext <<_ACEOF
29192 /* end confdefs.h. */
29194 /* Override any GCC internal prototype to avoid an error.
29195 Use char because int might match the return type of a GCC
29196 builtin and then its argument prototype would still apply. */
29209 for ac_lib in '' dir; do
29210 if test -z "$ac_lib"; then
29211 ac_res="none required"
29214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29216 rm -f conftest.$ac_objext conftest$ac_exeext
29217 if { (ac_try="$ac_link"
29218 case "(($ac_try" in
29219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29220 *) ac_try_echo
=$ac_try;;
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_link") 2>conftest.er1
29225 grep -v '^ *+' conftest.er1
>conftest.err
29227 cat conftest.err
>&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } &&
29230 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29231 { (case "(($ac_try" in
29232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236 (eval "$ac_try") 2>&5
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; } &&
29240 { ac_try='test -s conftest$ac_exeext'
29241 { (case "(($ac_try" in
29242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29243 *) ac_try_echo
=$ac_try;;
29245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246 (eval "$ac_try") 2>&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; }; then
29250 ac_cv_search_opendir
=$ac_res
29252 echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.
$ac_ext >&5
29258 rm -f core conftest.err conftest.
$ac_objext \
29260 if test "${ac_cv_search_opendir+set}" = set; then
29264 if test "${ac_cv_search_opendir+set}" = set; then
29267 ac_cv_search_opendir
=no
29269 rm conftest.
$ac_ext
29270 LIBS
=$ac_func_search_save_LIBS
29272 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29273 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29274 ac_res
=$ac_cv_search_opendir
29275 if test "$ac_res" != no
; then
29276 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29281 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29282 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29283 if test "${ac_cv_search_opendir+set}" = set; then
29284 echo $ECHO_N "(cached) $ECHO_C" >&6
29286 ac_func_search_save_LIBS
=$LIBS
29287 cat >conftest.
$ac_ext <<_ACEOF
29290 cat confdefs.h
>>conftest.
$ac_ext
29291 cat >>conftest.
$ac_ext <<_ACEOF
29292 /* end confdefs.h. */
29294 /* Override any GCC internal prototype to avoid an error.
29295 Use char because int might match the return type of a GCC
29296 builtin and then its argument prototype would still apply. */
29309 for ac_lib
in '' x
; do
29310 if test -z "$ac_lib"; then
29311 ac_res
="none required"
29314 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29316 rm -f conftest.
$ac_objext conftest
$ac_exeext
29317 if { (ac_try
="$ac_link"
29318 case "(($ac_try" in
29319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29320 *) ac_try_echo=$ac_try;;
29322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323 (eval "$ac_link") 2>conftest.er1
29325 grep -v '^ *+' conftest.er1 >conftest.err
29327 cat conftest.err >&5
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); } &&
29330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29331 { (case "(($ac_try" in
29332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29333 *) ac_try_echo
=$ac_try;;
29335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29336 (eval "$ac_try") 2>&5
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; } &&
29340 { ac_try
='test -s conftest$ac_exeext'
29341 { (case "(($ac_try" in
29342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29343 *) ac_try_echo=$ac_try;;
29345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29346 (eval "$ac_try") 2>&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; }; then
29350 ac_cv_search_opendir=$ac_res
29352 echo "$as_me: failed program was:" >&5
29353 sed 's/^/| /' conftest.$ac_ext >&5
29358 rm -f core conftest.err conftest.$ac_objext \
29360 if test "${ac_cv_search_opendir+set}" = set; then
29364 if test "${ac_cv_search_opendir+set}" = set; then
29367 ac_cv_search_opendir=no
29369 rm conftest.$ac_ext
29370 LIBS=$ac_func_search_save_LIBS
29372 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29373 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29374 ac_res=$ac_cv_search_opendir
29375 if test "$ac_res" != no; then
29376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29382 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29383 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29384 if test "${ac_cv_header_mmap_anon+set}" = set; then
29385 echo $ECHO_N "(cached) $ECHO_C" >&6
29388 ac_cpp='$CPP $CPPFLAGS'
29389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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/mman.h>
29400 #include <unistd.h>
29405 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29410 rm -f conftest.$ac_objext
29411 if { (ac_try="$ac_compile"
29412 case "(($ac_try" in
29413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29414 *) ac_try_echo
=$ac_try;;
29416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417 (eval "$ac_compile") 2>conftest.er1
29419 grep -v '^ *+' conftest.er1
>conftest.err
29421 cat conftest.err
>&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); } &&
29424 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29425 { (case "(($ac_try" in
29426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_try") 2>&5
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); }; } &&
29434 { ac_try='test -s conftest.$ac_objext'
29435 { (case "(($ac_try" in
29436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29437 *) ac_try_echo
=$ac_try;;
29439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440 (eval "$ac_try") 2>&5
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); }; }; then
29444 ac_cv_header_mmap_anon
=yes
29446 echo "$as_me: failed program was:" >&5
29447 sed 's/^/| /' conftest.
$ac_ext >&5
29449 ac_cv_header_mmap_anon
=no
29452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29454 ac_cpp
='$CPP $CPPFLAGS'
29455 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29456 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29457 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
29461 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29462 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29463 if test "$ac_cv_header_mmap_anon" = yes; then
29465 cat >>confdefs.h
<<\_ACEOF
29466 #define HAVE_MMAP_ANONYMOUS 1
29471 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29472 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29473 if test "${ac_cv_header_stat_broken+set}" = set; then
29474 echo $ECHO_N "(cached) $ECHO_C" >&6
29476 cat >conftest.
$ac_ext <<_ACEOF
29479 cat confdefs.h
>>conftest.
$ac_ext
29480 cat >>conftest.
$ac_ext <<_ACEOF
29481 /* end confdefs.h. */
29482 #include <sys/types.h>
29483 #include <sys/stat.h>
29485 #if defined S_ISBLK && defined S_IFDIR
29486 # if S_ISBLK (S_IFDIR)
29491 #if defined S_ISBLK && defined S_IFCHR
29492 # if S_ISBLK (S_IFCHR)
29497 #if defined S_ISLNK && defined S_IFREG
29498 # if S_ISLNK (S_IFREG)
29503 #if defined S_ISSOCK && defined S_IFREG
29504 # if S_ISSOCK (S_IFREG)
29510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29511 $EGREP "You lose" >/dev
/null
2>&1; then
29512 ac_cv_header_stat_broken
=yes
29514 ac_cv_header_stat_broken
=no
29519 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29520 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29521 if test $ac_cv_header_stat_broken = yes; then
29523 cat >>confdefs.h
<<\_ACEOF
29524 #define STAT_MACROS_BROKEN 1
29529 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29530 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29531 if test "${ac_cv_header_stdc+set}" = set; then
29532 echo $ECHO_N "(cached) $ECHO_C" >&6
29534 cat >conftest.
$ac_ext <<_ACEOF
29537 cat confdefs.h
>>conftest.
$ac_ext
29538 cat >>conftest.
$ac_ext <<_ACEOF
29539 /* end confdefs.h. */
29540 #include <stdlib.h>
29541 #include <stdarg.h>
29542 #include <string.h>
29553 rm -f conftest.
$ac_objext
29554 if { (ac_try
="$ac_compile"
29555 case "(($ac_try" in
29556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29557 *) ac_try_echo=$ac_try;;
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560 (eval "$ac_compile") 2>conftest.er1
29562 grep -v '^ *+' conftest.er1 >conftest.err
29564 cat conftest.err >&5
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); } &&
29567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29568 { (case "(($ac_try" in
29569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29570 *) ac_try_echo
=$ac_try;;
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_try") 2>&5
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; } &&
29577 { ac_try
='test -s conftest.$ac_objext'
29578 { (case "(($ac_try" in
29579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29580 *) ac_try_echo=$ac_try;;
29582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583 (eval "$ac_try") 2>&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); }; }; then
29587 ac_cv_header_stdc=yes
29589 echo "$as_me: failed program was:" >&5
29590 sed 's/^/| /' conftest.$ac_ext >&5
29592 ac_cv_header_stdc=no
29595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29597 if test $ac_cv_header_stdc = yes; then
29598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29599 cat >conftest.$ac_ext <<_ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h. */
29605 #include <string.h>
29608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29609 $EGREP "memchr" >/dev/null 2>&1; then
29612 ac_cv_header_stdc=no
29618 if test $ac_cv_header_stdc = yes; then
29619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29620 cat >conftest.$ac_ext <<_ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h. */
29626 #include <stdlib.h>
29629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29630 $EGREP "free" >/dev/null 2>&1; then
29633 ac_cv_header_stdc=no
29639 if test $ac_cv_header_stdc = yes; then
29640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29641 if test "$cross_compiling" = yes; then
29644 cat >conftest.$ac_ext <<_ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29651 #include <stdlib.h>
29652 #if ((' ' & 0x0FF) == 0x020)
29653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29656 # define ISLOWER(c) \
29657 (('a' <= (c) && (c) <= 'i') \
29658 || ('j' <= (c) && (c) <= 'r') \
29659 || ('s' <= (c) && (c) <= 'z'))
29660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29668 for (i = 0; i < 256; i++)
29669 if (XOR (islower (i), ISLOWER (i))
29670 || toupper (i) != TOUPPER (i))
29675 rm -f conftest$ac_exeext
29676 if { (ac_try="$ac_link"
29677 case "(($ac_try" in
29678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29679 *) ac_try_echo
=$ac_try;;
29681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_link") 2>&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29686 { (case "(($ac_try" in
29687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29688 *) ac_try_echo=$ac_try;;
29690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29691 (eval "$ac_try") 2>&5
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; }; then
29697 echo "$as_me: program exited with status $ac_status" >&5
29698 echo "$as_me: failed program was:" >&5
29699 sed 's/^/| /' conftest.$ac_ext >&5
29701 ( exit $ac_status )
29702 ac_cv_header_stdc=no
29704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29710 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29711 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29712 if test $ac_cv_header_stdc = yes; then
29714 cat >>confdefs.h <<\_ACEOF
29715 #define STDC_HEADERS 1
29720 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29721 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29722 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29723 echo $ECHO_N "(cached) $ECHO_C" >&6
29725 cat >conftest.$ac_ext <<_ACEOF
29728 cat confdefs.h >>conftest.$ac_ext
29729 cat >>conftest.$ac_ext <<_ACEOF
29730 /* end confdefs.h. */
29731 #include <sys/types.h>
29732 #include <sys/wait.h>
29733 #ifndef WEXITSTATUS
29734 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29737 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29750 rm -f conftest.$ac_objext
29751 if { (ac_try="$ac_compile"
29752 case "(($ac_try" in
29753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29754 *) ac_try_echo
=$ac_try;;
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_compile") 2>conftest.er1
29759 grep -v '^ *+' conftest.er1
>conftest.err
29761 cat conftest.err
>&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); } &&
29764 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29765 { (case "(($ac_try" in
29766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29767 *) ac_try_echo=$ac_try;;
29769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770 (eval "$ac_try") 2>&5
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; } &&
29774 { ac_try='test -s conftest.$ac_objext'
29775 { (case "(($ac_try" in
29776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29777 *) ac_try_echo
=$ac_try;;
29779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780 (eval "$ac_try") 2>&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; }; then
29784 ac_cv_header_sys_wait_h
=yes
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.
$ac_ext >&5
29789 ac_cv_header_sys_wait_h
=no
29792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29794 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29795 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29796 if test $ac_cv_header_sys_wait_h = yes; then
29798 cat >>confdefs.h
<<\_ACEOF
29799 #define HAVE_SYS_WAIT_H 1
29804 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29805 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29806 if test "${ac_cv_header_time+set}" = set; then
29807 echo $ECHO_N "(cached) $ECHO_C" >&6
29809 cat >conftest.
$ac_ext <<_ACEOF
29812 cat confdefs.h
>>conftest.
$ac_ext
29813 cat >>conftest.
$ac_ext <<_ACEOF
29814 /* end confdefs.h. */
29815 #include <sys/types.h>
29816 #include <sys/time.h>
29822 if ((struct tm *) 0)
29828 rm -f conftest.
$ac_objext
29829 if { (ac_try
="$ac_compile"
29830 case "(($ac_try" in
29831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29832 *) ac_try_echo=$ac_try;;
29834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835 (eval "$ac_compile") 2>conftest.er1
29837 grep -v '^ *+' conftest.er1 >conftest.err
29839 cat conftest.err >&5
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); } &&
29842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29843 { (case "(($ac_try" in
29844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29845 *) ac_try_echo
=$ac_try;;
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_try") 2>&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; } &&
29852 { ac_try
='test -s conftest.$ac_objext'
29853 { (case "(($ac_try" in
29854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858 (eval "$ac_try") 2>&5
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; }; then
29862 ac_cv_header_time=yes
29864 echo "$as_me: failed program was:" >&5
29865 sed 's/^/| /' conftest.$ac_ext >&5
29867 ac_cv_header_time=no
29870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29872 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29873 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29874 if test $ac_cv_header_time = yes; then
29876 cat >>confdefs.h <<\_ACEOF
29877 #define TIME_WITH_SYS_TIME 1
29889 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29891 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29898 ac_res=`eval echo '${'$as_ac_Header'}'`
29899 { echo "$as_me:$LINENO: result: $ac_res" >&5
29900 echo "${ECHO_T}$ac_res" >&6; }
29902 # Is the header compilable?
29903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29905 cat >conftest.$ac_ext <<_ACEOF
29908 cat confdefs.h >>conftest.$ac_ext
29909 cat >>conftest.$ac_ext <<_ACEOF
29910 /* end confdefs.h. */
29911 $ac_includes_default
29912 #include <$ac_header>
29914 rm -f conftest.$ac_objext
29915 if { (ac_try="$ac_compile"
29916 case "(($ac_try" in
29917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29918 *) ac_try_echo
=$ac_try;;
29920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29921 (eval "$ac_compile") 2>conftest.er1
29923 grep -v '^ *+' conftest.er1
>conftest.err
29925 cat conftest.err
>&5
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); } &&
29928 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29929 { (case "(($ac_try" in
29930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29931 *) ac_try_echo=$ac_try;;
29933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29934 (eval "$ac_try") 2>&5
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; } &&
29938 { ac_try='test -s conftest.$ac_objext'
29939 { (case "(($ac_try" in
29940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29941 *) ac_try_echo
=$ac_try;;
29943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944 (eval "$ac_try") 2>&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; }; then
29948 ac_header_compiler
=yes
29950 echo "$as_me: failed program was:" >&5
29951 sed 's/^/| /' conftest.
$ac_ext >&5
29953 ac_header_compiler
=no
29956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29958 echo "${ECHO_T}$ac_header_compiler" >&6; }
29960 # Is the header present?
29961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29963 cat >conftest.
$ac_ext <<_ACEOF
29966 cat confdefs.h
>>conftest.
$ac_ext
29967 cat >>conftest.
$ac_ext <<_ACEOF
29968 /* end confdefs.h. */
29969 #include <$ac_header>
29971 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29972 case "(($ac_try" in
29973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29979 grep -v '^ *+' conftest.er1 >conftest.err
29981 cat conftest.err >&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } >/dev/null; then
29984 if test -s conftest.err; then
29985 ac_cpp_err=$ac_c_preproc_warn_flag
29986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29993 if test -z "$ac_cpp_err"; then
29994 ac_header_preproc=yes
29996 echo "$as_me: failed program was:" >&5
29997 sed 's/^/| /' conftest.$ac_ext >&5
29999 ac_header_preproc=no
30002 rm -f conftest.err conftest.$ac_ext
30003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30004 echo "${ECHO_T}$ac_header_preproc" >&6; }
30006 # So? What about this header?
30007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30013 ac_header_preproc=yes
30016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30029 ## ----------------------------------- ##
30030 ## Report this to llvmbugs@cs.uiuc.edu ##
30031 ## ----------------------------------- ##
30033 ) | sed "s/^/$as_me: WARNING: /" >&2
30036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30039 echo $ECHO_N "(cached) $ECHO_C" >&6
30041 eval "$as_ac_Header=\$ac_header_preproc"
30043 ac_res=`eval echo '${'$as_ac_Header'}'`
30044 { echo "$as_me:$LINENO: result: $ac_res" >&5
30045 echo "${ECHO_T}$ac_res" >&6; }
30048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30049 cat >>confdefs.h <<_ACEOF
30050 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30063 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30065 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
30072 ac_res=`eval echo '${'$as_ac_Header'}'`
30073 { echo "$as_me:$LINENO: result: $ac_res" >&5
30074 echo "${ECHO_T}$ac_res" >&6; }
30076 # Is the header compilable?
30077 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30079 cat >conftest.$ac_ext <<_ACEOF
30082 cat confdefs.h >>conftest.$ac_ext
30083 cat >>conftest.$ac_ext <<_ACEOF
30084 /* end confdefs.h. */
30085 $ac_includes_default
30086 #include <$ac_header>
30088 rm -f conftest.$ac_objext
30089 if { (ac_try="$ac_compile"
30090 case "(($ac_try" in
30091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30092 *) ac_try_echo
=$ac_try;;
30094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30095 (eval "$ac_compile") 2>conftest.er1
30097 grep -v '^ *+' conftest.er1
>conftest.err
30099 cat conftest.err
>&5
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); } &&
30102 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30103 { (case "(($ac_try" in
30104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_try") 2>&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); }; } &&
30112 { ac_try='test -s conftest.$ac_objext'
30113 { (case "(($ac_try" in
30114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30115 *) ac_try_echo
=$ac_try;;
30117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118 (eval "$ac_try") 2>&5
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; }; then
30122 ac_header_compiler
=yes
30124 echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.
$ac_ext >&5
30127 ac_header_compiler
=no
30130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30132 echo "${ECHO_T}$ac_header_compiler" >&6; }
30134 # Is the header present?
30135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30137 cat >conftest.
$ac_ext <<_ACEOF
30140 cat confdefs.h
>>conftest.
$ac_ext
30141 cat >>conftest.
$ac_ext <<_ACEOF
30142 /* end confdefs.h. */
30143 #include <$ac_header>
30145 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30146 case "(($ac_try" in
30147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30148 *) ac_try_echo=$ac_try;;
30150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30153 grep -v '^ *+' conftest.er1 >conftest.err
30155 cat conftest.err >&5
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); } >/dev/null; then
30158 if test -s conftest.err; then
30159 ac_cpp_err=$ac_c_preproc_warn_flag
30160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30167 if test -z "$ac_cpp_err"; then
30168 ac_header_preproc=yes
30170 echo "$as_me: failed program was:" >&5
30171 sed 's/^/| /' conftest.$ac_ext >&5
30173 ac_header_preproc=no
30176 rm -f conftest.err conftest.$ac_ext
30177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30178 echo "${ECHO_T}$ac_header_preproc" >&6; }
30180 # So? What about this header?
30181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30187 ac_header_preproc=yes
30190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30203 ## ----------------------------------- ##
30204 ## Report this to llvmbugs@cs.uiuc.edu ##
30205 ## ----------------------------------- ##
30207 ) | sed "s/^/$as_me: WARNING: /" >&2
30210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30215 eval "$as_ac_Header=\$ac_header_preproc"
30217 ac_res=`eval echo '${'$as_ac_Header'}'`
30218 { echo "$as_me:$LINENO: result: $ac_res" >&5
30219 echo "${ECHO_T}$ac_res" >&6; }
30222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30223 cat >>confdefs.h <<_ACEOF
30224 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30233 for ac_header in utime.h windows.h
30235 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30240 echo $ECHO_N "(cached) $ECHO_C" >&6
30242 ac_res=`eval echo '${'$as_ac_Header'}'`
30243 { echo "$as_me:$LINENO: result: $ac_res" >&5
30244 echo "${ECHO_T}$ac_res" >&6; }
30246 # Is the header compilable?
30247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30249 cat >conftest.$ac_ext <<_ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h. */
30255 $ac_includes_default
30256 #include <$ac_header>
30258 rm -f conftest.$ac_objext
30259 if { (ac_try="$ac_compile"
30260 case "(($ac_try" in
30261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30262 *) ac_try_echo
=$ac_try;;
30264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30265 (eval "$ac_compile") 2>conftest.er1
30267 grep -v '^ *+' conftest.er1
>conftest.err
30269 cat conftest.err
>&5
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); } &&
30272 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30273 { (case "(($ac_try" in
30274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_try") 2>&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; } &&
30282 { ac_try='test -s conftest.$ac_objext'
30283 { (case "(($ac_try" in
30284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30285 *) ac_try_echo
=$ac_try;;
30287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288 (eval "$ac_try") 2>&5
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); }; }; then
30292 ac_header_compiler
=yes
30294 echo "$as_me: failed program was:" >&5
30295 sed 's/^/| /' conftest.
$ac_ext >&5
30297 ac_header_compiler
=no
30300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30302 echo "${ECHO_T}$ac_header_compiler" >&6; }
30304 # Is the header present?
30305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30307 cat >conftest.
$ac_ext <<_ACEOF
30310 cat confdefs.h
>>conftest.
$ac_ext
30311 cat >>conftest.
$ac_ext <<_ACEOF
30312 /* end confdefs.h. */
30313 #include <$ac_header>
30315 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30316 case "(($ac_try" in
30317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30323 grep -v '^ *+' conftest.er1 >conftest.err
30325 cat conftest.err >&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); } >/dev/null; then
30328 if test -s conftest.err; then
30329 ac_cpp_err=$ac_c_preproc_warn_flag
30330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30337 if test -z "$ac_cpp_err"; then
30338 ac_header_preproc=yes
30340 echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.$ac_ext >&5
30343 ac_header_preproc=no
30346 rm -f conftest.err conftest.$ac_ext
30347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30348 echo "${ECHO_T}$ac_header_preproc" >&6; }
30350 # So? What about this header?
30351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30357 ac_header_preproc=yes
30360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30373 ## ----------------------------------- ##
30374 ## Report this to llvmbugs@cs.uiuc.edu ##
30375 ## ----------------------------------- ##
30377 ) | sed "s/^/$as_me: WARNING: /" >&2
30380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30383 echo $ECHO_N "(cached) $ECHO_C" >&6
30385 eval "$as_ac_Header=\$ac_header_preproc"
30387 ac_res=`eval echo '${'$as_ac_Header'}'`
30388 { echo "$as_me:$LINENO: result: $ac_res" >&5
30389 echo "${ECHO_T}$ac_res" >&6; }
30392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30393 cat >>confdefs.h <<_ACEOF
30394 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30405 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30407 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30412 echo $ECHO_N "(cached) $ECHO_C" >&6
30414 ac_res=`eval echo '${'$as_ac_Header'}'`
30415 { echo "$as_me:$LINENO: result: $ac_res" >&5
30416 echo "${ECHO_T}$ac_res" >&6; }
30418 # Is the header compilable?
30419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30421 cat >conftest.$ac_ext <<_ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h. */
30427 $ac_includes_default
30428 #include <$ac_header>
30430 rm -f conftest.$ac_objext
30431 if { (ac_try="$ac_compile"
30432 case "(($ac_try" in
30433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30434 *) ac_try_echo
=$ac_try;;
30436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437 (eval "$ac_compile") 2>conftest.er1
30439 grep -v '^ *+' conftest.er1
>conftest.err
30441 cat conftest.err
>&5
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); } &&
30444 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30445 { (case "(($ac_try" in
30446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_try") 2>&5
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); }; } &&
30454 { ac_try='test -s conftest.$ac_objext'
30455 { (case "(($ac_try" in
30456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30457 *) ac_try_echo
=$ac_try;;
30459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30460 (eval "$ac_try") 2>&5
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); }; }; then
30464 ac_header_compiler
=yes
30466 echo "$as_me: failed program was:" >&5
30467 sed 's/^/| /' conftest.
$ac_ext >&5
30469 ac_header_compiler
=no
30472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30474 echo "${ECHO_T}$ac_header_compiler" >&6; }
30476 # Is the header present?
30477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30479 cat >conftest.
$ac_ext <<_ACEOF
30482 cat confdefs.h
>>conftest.
$ac_ext
30483 cat >>conftest.
$ac_ext <<_ACEOF
30484 /* end confdefs.h. */
30485 #include <$ac_header>
30487 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30488 case "(($ac_try" in
30489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30490 *) ac_try_echo=$ac_try;;
30492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30495 grep -v '^ *+' conftest.er1 >conftest.err
30497 cat conftest.err >&5
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); } >/dev/null; then
30500 if test -s conftest.err; then
30501 ac_cpp_err=$ac_c_preproc_warn_flag
30502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30509 if test -z "$ac_cpp_err"; then
30510 ac_header_preproc=yes
30512 echo "$as_me: failed program was:" >&5
30513 sed 's/^/| /' conftest.$ac_ext >&5
30515 ac_header_preproc=no
30518 rm -f conftest.err conftest.$ac_ext
30519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30520 echo "${ECHO_T}$ac_header_preproc" >&6; }
30522 # So? What about this header?
30523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30529 ac_header_preproc=yes
30532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30545 ## ----------------------------------- ##
30546 ## Report this to llvmbugs@cs.uiuc.edu ##
30547 ## ----------------------------------- ##
30549 ) | sed "s/^/$as_me: WARNING: /" >&2
30552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30555 echo $ECHO_N "(cached) $ECHO_C" >&6
30557 eval "$as_ac_Header=\$ac_header_preproc"
30559 ac_res=`eval echo '${'$as_ac_Header'}'`
30560 { echo "$as_me:$LINENO: result: $ac_res" >&5
30561 echo "${ECHO_T}$ac_res" >&6; }
30564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30565 cat >>confdefs.h <<_ACEOF
30566 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30577 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30579 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30584 echo $ECHO_N "(cached) $ECHO_C" >&6
30586 ac_res=`eval echo '${'$as_ac_Header'}'`
30587 { echo "$as_me:$LINENO: result: $ac_res" >&5
30588 echo "${ECHO_T}$ac_res" >&6; }
30590 # Is the header compilable?
30591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30593 cat >conftest.$ac_ext <<_ACEOF
30596 cat confdefs.h >>conftest.$ac_ext
30597 cat >>conftest.$ac_ext <<_ACEOF
30598 /* end confdefs.h. */
30599 $ac_includes_default
30600 #include <$ac_header>
30602 rm -f conftest.$ac_objext
30603 if { (ac_try="$ac_compile"
30604 case "(($ac_try" in
30605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30606 *) ac_try_echo
=$ac_try;;
30608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609 (eval "$ac_compile") 2>conftest.er1
30611 grep -v '^ *+' conftest.er1
>conftest.err
30613 cat conftest.err
>&5
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); } &&
30616 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30617 { (case "(($ac_try" in
30618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_try") 2>&5
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); }; } &&
30626 { ac_try='test -s conftest.$ac_objext'
30627 { (case "(($ac_try" in
30628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30629 *) ac_try_echo
=$ac_try;;
30631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632 (eval "$ac_try") 2>&5
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
30636 ac_header_compiler
=yes
30638 echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.
$ac_ext >&5
30641 ac_header_compiler
=no
30644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30646 echo "${ECHO_T}$ac_header_compiler" >&6; }
30648 # Is the header present?
30649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30651 cat >conftest.
$ac_ext <<_ACEOF
30654 cat confdefs.h
>>conftest.
$ac_ext
30655 cat >>conftest.
$ac_ext <<_ACEOF
30656 /* end confdefs.h. */
30657 #include <$ac_header>
30659 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30660 case "(($ac_try" in
30661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30667 grep -v '^ *+' conftest.er1 >conftest.err
30669 cat conftest.err >&5
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); } >/dev/null; then
30672 if test -s conftest.err; then
30673 ac_cpp_err=$ac_c_preproc_warn_flag
30674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30681 if test -z "$ac_cpp_err"; then
30682 ac_header_preproc=yes
30684 echo "$as_me: failed program was:" >&5
30685 sed 's/^/| /' conftest.$ac_ext >&5
30687 ac_header_preproc=no
30690 rm -f conftest.err conftest.$ac_ext
30691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30692 echo "${ECHO_T}$ac_header_preproc" >&6; }
30694 # So? What about this header?
30695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30701 ac_header_preproc=yes
30704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30717 ## ----------------------------------- ##
30718 ## Report this to llvmbugs@cs.uiuc.edu ##
30719 ## ----------------------------------- ##
30721 ) | sed "s/^/$as_me: WARNING: /" >&2
30724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30727 echo $ECHO_N "(cached) $ECHO_C" >&6
30729 eval "$as_ac_Header=\$ac_header_preproc"
30731 ac_res=`eval echo '${'$as_ac_Header'}'`
30732 { echo "$as_me:$LINENO: result: $ac_res" >&5
30733 echo "${ECHO_T}$ac_res" >&6; }
30736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30737 cat >>confdefs.h <<_ACEOF
30738 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30745 if test "$ENABLE_THREADS" -eq 1 ; then
30747 for ac_header in pthread.h
30749 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30754 echo $ECHO_N "(cached) $ECHO_C" >&6
30756 ac_res=`eval echo '${'$as_ac_Header'}'`
30757 { echo "$as_me:$LINENO: result: $ac_res" >&5
30758 echo "${ECHO_T}$ac_res" >&6; }
30760 # Is the header compilable?
30761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30763 cat >conftest.$ac_ext <<_ACEOF
30766 cat confdefs.h >>conftest.$ac_ext
30767 cat >>conftest.$ac_ext <<_ACEOF
30768 /* end confdefs.h. */
30769 $ac_includes_default
30770 #include <$ac_header>
30772 rm -f conftest.$ac_objext
30773 if { (ac_try="$ac_compile"
30774 case "(($ac_try" in
30775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30776 *) ac_try_echo
=$ac_try;;
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779 (eval "$ac_compile") 2>conftest.er1
30781 grep -v '^ *+' conftest.er1
>conftest.err
30783 cat conftest.err
>&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } &&
30786 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30787 { (case "(($ac_try" in
30788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792 (eval "$ac_try") 2>&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; } &&
30796 { ac_try='test -s conftest.$ac_objext'
30797 { (case "(($ac_try" in
30798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30799 *) ac_try_echo
=$ac_try;;
30801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802 (eval "$ac_try") 2>&5
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); }; }; then
30806 ac_header_compiler
=yes
30808 echo "$as_me: failed program was:" >&5
30809 sed 's/^/| /' conftest.
$ac_ext >&5
30811 ac_header_compiler
=no
30814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30816 echo "${ECHO_T}$ac_header_compiler" >&6; }
30818 # Is the header present?
30819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30821 cat >conftest.
$ac_ext <<_ACEOF
30824 cat confdefs.h
>>conftest.
$ac_ext
30825 cat >>conftest.
$ac_ext <<_ACEOF
30826 /* end confdefs.h. */
30827 #include <$ac_header>
30829 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30830 case "(($ac_try" in
30831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30832 *) ac_try_echo=$ac_try;;
30834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30837 grep -v '^ *+' conftest.er1 >conftest.err
30839 cat conftest.err >&5
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); } >/dev/null; then
30842 if test -s conftest.err; then
30843 ac_cpp_err=$ac_c_preproc_warn_flag
30844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30851 if test -z "$ac_cpp_err"; then
30852 ac_header_preproc=yes
30854 echo "$as_me: failed program was:" >&5
30855 sed 's/^/| /' conftest.$ac_ext >&5
30857 ac_header_preproc=no
30860 rm -f conftest.err conftest.$ac_ext
30861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30862 echo "${ECHO_T}$ac_header_preproc" >&6; }
30864 # So? What about this header?
30865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30871 ac_header_preproc=yes
30874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30887 ## ----------------------------------- ##
30888 ## Report this to llvmbugs@cs.uiuc.edu ##
30889 ## ----------------------------------- ##
30891 ) | sed "s/^/$as_me: WARNING: /" >&2
30894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30897 echo $ECHO_N "(cached) $ECHO_C" >&6
30899 eval "$as_ac_Header=\$ac_header_preproc"
30901 ac_res=`eval echo '${'$as_ac_Header'}'`
30902 { echo "$as_me:$LINENO: result: $ac_res" >&5
30903 echo "${ECHO_T}$ac_res" >&6; }
30906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30907 cat >>confdefs.h <<_ACEOF
30908 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30924 if test "$llvm_cv_enable_libffi" = "yes" ; then
30927 for ac_header in ffi.h ffi/ffi.h
30929 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30934 echo $ECHO_N "(cached) $ECHO_C" >&6
30936 ac_res=`eval echo '${'$as_ac_Header'}'`
30937 { echo "$as_me:$LINENO: result: $ac_res" >&5
30938 echo "${ECHO_T}$ac_res" >&6; }
30940 # Is the header compilable?
30941 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30943 cat >conftest.$ac_ext <<_ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h. */
30949 $ac_includes_default
30950 #include <$ac_header>
30952 rm -f conftest.$ac_objext
30953 if { (ac_try="$ac_compile"
30954 case "(($ac_try" in
30955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30956 *) ac_try_echo
=$ac_try;;
30958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30959 (eval "$ac_compile") 2>conftest.er1
30961 grep -v '^ *+' conftest.er1
>conftest.err
30963 cat conftest.err
>&5
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); } &&
30966 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30967 { (case "(($ac_try" in
30968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30969 *) ac_try_echo=$ac_try;;
30971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30972 (eval "$ac_try") 2>&5
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); }; } &&
30976 { ac_try='test -s conftest.$ac_objext'
30977 { (case "(($ac_try" in
30978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30979 *) ac_try_echo
=$ac_try;;
30981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30982 (eval "$ac_try") 2>&5
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); }; }; then
30986 ac_header_compiler
=yes
30988 echo "$as_me: failed program was:" >&5
30989 sed 's/^/| /' conftest.
$ac_ext >&5
30991 ac_header_compiler
=no
30994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30996 echo "${ECHO_T}$ac_header_compiler" >&6; }
30998 # Is the header present?
30999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31001 cat >conftest.
$ac_ext <<_ACEOF
31004 cat confdefs.h
>>conftest.
$ac_ext
31005 cat >>conftest.
$ac_ext <<_ACEOF
31006 /* end confdefs.h. */
31007 #include <$ac_header>
31009 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31010 case "(($ac_try" in
31011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31012 *) ac_try_echo=$ac_try;;
31014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31017 grep -v '^ *+' conftest.er1 >conftest.err
31019 cat conftest.err >&5
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021 (exit $ac_status); } >/dev/null; then
31022 if test -s conftest.err; then
31023 ac_cpp_err=$ac_c_preproc_warn_flag
31024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31031 if test -z "$ac_cpp_err"; then
31032 ac_header_preproc=yes
31034 echo "$as_me: failed program was:" >&5
31035 sed 's/^/| /' conftest.$ac_ext >&5
31037 ac_header_preproc=no
31040 rm -f conftest.err conftest.$ac_ext
31041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31042 echo "${ECHO_T}$ac_header_preproc" >&6; }
31044 # So? What about this header?
31045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31051 ac_header_preproc=yes
31054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31067 ## ----------------------------------- ##
31068 ## Report this to llvmbugs@cs.uiuc.edu ##
31069 ## ----------------------------------- ##
31071 ) | sed "s/^/$as_me: WARNING: /" >&2
31074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31077 echo $ECHO_N "(cached) $ECHO_C" >&6
31079 eval "$as_ac_Header=\$ac_header_preproc"
31081 ac_res=`eval echo '${'$as_ac_Header'}'`
31082 { echo "$as_me:$LINENO: result: $ac_res" >&5
31083 echo "${ECHO_T}$ac_res" >&6; }
31086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31087 cat >>confdefs.h <<_ACEOF
31088 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
31099 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31100 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31101 if test "${ac_cv_huge_val_sanity+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31106 ac_cpp='$CXXCPP $CPPFLAGS'
31107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31112 if test "$cross_compiling" = yes; then
31113 ac_cv_huge_val_sanity=yes
31115 cat >conftest.$ac_ext <<_ACEOF
31118 cat confdefs.h >>conftest.$ac_ext
31119 cat >>conftest.$ac_ext <<_ACEOF
31120 /* end confdefs.h. */
31125 double x = HUGE_VAL; return x != x;
31130 rm -f conftest$ac_exeext
31131 if { (ac_try="$ac_link"
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_link") 2>&5
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31141 { (case "(($ac_try" in
31142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31143 *) ac_try_echo=$ac_try;;
31145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31146 (eval "$ac_try") 2>&5
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; }; then
31150 ac_cv_huge_val_sanity=yes
31152 echo "$as_me: program exited with status $ac_status" >&5
31153 echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31156 ( exit $ac_status )
31157 ac_cv_huge_val_sanity=no
31159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31164 ac_cpp='$CPP $CPPFLAGS'
31165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31171 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31172 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31173 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31176 { echo "$as_me:$LINENO: checking for pid_t" >&5
31177 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31178 if test "${ac_cv_type_pid_t+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31181 cat >conftest.$ac_ext <<_ACEOF
31184 cat confdefs.h >>conftest.$ac_ext
31185 cat >>conftest.$ac_ext <<_ACEOF
31186 /* end confdefs.h. */
31187 $ac_includes_default
31188 typedef pid_t ac__type_new_;
31192 if ((ac__type_new_ *) 0)
31194 if (sizeof (ac__type_new_))
31200 rm -f conftest.$ac_objext
31201 if { (ac_try="$ac_compile"
31202 case "(($ac_try" in
31203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31204 *) ac_try_echo
=$ac_try;;
31206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31207 (eval "$ac_compile") 2>conftest.er1
31209 grep -v '^ *+' conftest.er1
>conftest.err
31211 cat conftest.err
>&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); } &&
31214 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31215 { (case "(($ac_try" in
31216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31217 *) ac_try_echo=$ac_try;;
31219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31220 (eval "$ac_try") 2>&5
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; } &&
31224 { ac_try='test -s conftest.$ac_objext'
31225 { (case "(($ac_try" in
31226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31227 *) ac_try_echo
=$ac_try;;
31229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230 (eval "$ac_try") 2>&5
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }; then
31234 ac_cv_type_pid_t
=yes
31236 echo "$as_me: failed program was:" >&5
31237 sed 's/^/| /' conftest.
$ac_ext >&5
31239 ac_cv_type_pid_t
=no
31242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31244 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31245 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31246 if test $ac_cv_type_pid_t = yes; then
31250 cat >>confdefs.h
<<_ACEOF
31256 { echo "$as_me:$LINENO: checking for size_t" >&5
31257 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31258 if test "${ac_cv_type_size_t+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31261 cat >conftest.
$ac_ext <<_ACEOF
31264 cat confdefs.h
>>conftest.
$ac_ext
31265 cat >>conftest.
$ac_ext <<_ACEOF
31266 /* end confdefs.h. */
31267 $ac_includes_default
31268 typedef size_t ac__type_new_;
31272 if ((ac__type_new_ *) 0)
31274 if (sizeof (ac__type_new_))
31280 rm -f conftest.
$ac_objext
31281 if { (ac_try
="$ac_compile"
31282 case "(($ac_try" in
31283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31284 *) ac_try_echo=$ac_try;;
31286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31287 (eval "$ac_compile") 2>conftest.er1
31289 grep -v '^ *+' conftest.er1 >conftest.err
31291 cat conftest.err >&5
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); } &&
31294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31295 { (case "(($ac_try" in
31296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31297 *) ac_try_echo
=$ac_try;;
31299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31300 (eval "$ac_try") 2>&5
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; } &&
31304 { ac_try
='test -s conftest.$ac_objext'
31305 { (case "(($ac_try" in
31306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31307 *) ac_try_echo=$ac_try;;
31309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310 (eval "$ac_try") 2>&5
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); }; }; then
31314 ac_cv_type_size_t=yes
31316 echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31319 ac_cv_type_size_t=no
31322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31324 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31325 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31326 if test $ac_cv_type_size_t = yes; then
31330 cat >>confdefs.h <<_ACEOF
31331 #define size_t unsigned int
31336 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31337 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31338 if test "${ac_cv_type_signal+set}" = set; then
31339 echo $ECHO_N "(cached) $ECHO_C" >&6
31341 cat >conftest.$ac_ext <<_ACEOF
31344 cat confdefs.h >>conftest.$ac_ext
31345 cat >>conftest.$ac_ext <<_ACEOF
31346 /* end confdefs.h. */
31347 #include <sys/types.h>
31348 #include <signal.h>
31353 return *(signal (0, 0)) (0) == 1;
31358 rm -f conftest.$ac_objext
31359 if { (ac_try="$ac_compile"
31360 case "(($ac_try" in
31361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31362 *) ac_try_echo
=$ac_try;;
31364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365 (eval "$ac_compile") 2>conftest.er1
31367 grep -v '^ *+' conftest.er1
>conftest.err
31369 cat conftest.err
>&5
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); } &&
31372 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31373 { (case "(($ac_try" in
31374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31375 *) ac_try_echo=$ac_try;;
31377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378 (eval "$ac_try") 2>&5
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); }; } &&
31382 { ac_try='test -s conftest.$ac_objext'
31383 { (case "(($ac_try" in
31384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31385 *) ac_try_echo
=$ac_try;;
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_try") 2>&5
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); }; }; then
31392 ac_cv_type_signal
=int
31394 echo "$as_me: failed program was:" >&5
31395 sed 's/^/| /' conftest.
$ac_ext >&5
31397 ac_cv_type_signal
=void
31400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31402 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31403 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31405 cat >>confdefs.h
<<_ACEOF
31406 #define RETSIGTYPE $ac_cv_type_signal
31410 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31411 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31412 if test "${ac_cv_struct_tm+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31415 cat >conftest.
$ac_ext <<_ACEOF
31418 cat confdefs.h
>>conftest.
$ac_ext
31419 cat >>conftest.
$ac_ext <<_ACEOF
31420 /* end confdefs.h. */
31421 #include <sys/types.h>
31427 struct tm *tp; tp->tm_sec;
31432 rm -f conftest.
$ac_objext
31433 if { (ac_try
="$ac_compile"
31434 case "(($ac_try" in
31435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31436 *) ac_try_echo=$ac_try;;
31438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31439 (eval "$ac_compile") 2>conftest.er1
31441 grep -v '^ *+' conftest.er1 >conftest.err
31443 cat conftest.err >&5
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); } &&
31446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31447 { (case "(($ac_try" in
31448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31449 *) ac_try_echo
=$ac_try;;
31451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452 (eval "$ac_try") 2>&5
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; } &&
31456 { ac_try
='test -s conftest.$ac_objext'
31457 { (case "(($ac_try" in
31458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31459 *) ac_try_echo=$ac_try;;
31461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31462 (eval "$ac_try") 2>&5
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); }; }; then
31466 ac_cv_struct_tm=time.h
31468 echo "$as_me: failed program was:" >&5
31469 sed 's/^/| /' conftest.$ac_ext >&5
31471 ac_cv_struct_tm=sys/time.h
31474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31476 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31477 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31478 if test $ac_cv_struct_tm = sys/time.h; then
31480 cat >>confdefs.h <<\_ACEOF
31481 #define TM_IN_SYS_TIME 1
31486 { echo "$as_me:$LINENO: checking for int64_t" >&5
31487 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31488 if test "${ac_cv_type_int64_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 int64_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_int64_t
=yes
31546 echo "$as_me: failed program was:" >&5
31547 sed 's/^/| /' conftest.
$ac_ext >&5
31549 ac_cv_type_int64_t
=no
31552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31554 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31555 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31556 if test $ac_cv_type_int64_t = yes; then
31558 cat >>confdefs.h
<<_ACEOF
31559 #define HAVE_INT64_T 1
31564 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31565 echo "$as_me: error: Type int64_t required but not found" >&2;}
31566 { (exit 1); exit 1; }; }
31569 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31570 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31571 if test "${ac_cv_type_uint64_t+set}" = set; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31574 cat >conftest.
$ac_ext <<_ACEOF
31577 cat confdefs.h
>>conftest.
$ac_ext
31578 cat >>conftest.
$ac_ext <<_ACEOF
31579 /* end confdefs.h. */
31580 $ac_includes_default
31581 typedef uint64_t ac__type_new_;
31585 if ((ac__type_new_ *) 0)
31587 if (sizeof (ac__type_new_))
31593 rm -f conftest.
$ac_objext
31594 if { (ac_try
="$ac_compile"
31595 case "(($ac_try" in
31596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31597 *) ac_try_echo=$ac_try;;
31599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600 (eval "$ac_compile") 2>conftest.er1
31602 grep -v '^ *+' conftest.er1 >conftest.err
31604 cat conftest.err >&5
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); } &&
31607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31608 { (case "(($ac_try" in
31609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31610 *) ac_try_echo
=$ac_try;;
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613 (eval "$ac_try") 2>&5
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; } &&
31617 { ac_try
='test -s conftest.$ac_objext'
31618 { (case "(($ac_try" in
31619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31620 *) ac_try_echo=$ac_try;;
31622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623 (eval "$ac_try") 2>&5
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; }; then
31627 ac_cv_type_uint64_t=yes
31629 echo "$as_me: failed program was:" >&5
31630 sed 's/^/| /' conftest.$ac_ext >&5
31632 ac_cv_type_uint64_t=no
31635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31637 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31638 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31639 if test $ac_cv_type_uint64_t = yes; then
31641 cat >>confdefs.h <<_ACEOF
31642 #define HAVE_UINT64_T 1
31647 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31648 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31649 if test "${ac_cv_type_u_int64_t+set}" = set; then
31650 echo $ECHO_N "(cached) $ECHO_C" >&6
31652 cat >conftest.$ac_ext <<_ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h. */
31658 $ac_includes_default
31659 typedef u_int64_t ac__type_new_;
31663 if ((ac__type_new_ *) 0)
31665 if (sizeof (ac__type_new_))
31671 rm -f conftest.$ac_objext
31672 if { (ac_try="$ac_compile"
31673 case "(($ac_try" in
31674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31675 *) ac_try_echo
=$ac_try;;
31677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31678 (eval "$ac_compile") 2>conftest.er1
31680 grep -v '^ *+' conftest.er1
>conftest.err
31682 cat conftest.err
>&5
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); } &&
31685 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31686 { (case "(($ac_try" in
31687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31688 *) ac_try_echo=$ac_try;;
31690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31691 (eval "$ac_try") 2>&5
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); }; } &&
31695 { ac_try='test -s conftest.$ac_objext'
31696 { (case "(($ac_try" in
31697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31698 *) ac_try_echo
=$ac_try;;
31700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31701 (eval "$ac_try") 2>&5
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); }; }; then
31705 ac_cv_type_u_int64_t
=yes
31707 echo "$as_me: failed program was:" >&5
31708 sed 's/^/| /' conftest.
$ac_ext >&5
31710 ac_cv_type_u_int64_t
=no
31713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31715 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31716 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31717 if test $ac_cv_type_u_int64_t = yes; then
31719 cat >>confdefs.h
<<_ACEOF
31720 #define HAVE_U_INT64_T 1
31725 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31726 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31727 { (exit 1); exit 1; }; }
31741 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31743 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31746 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31747 echo $ECHO_N "(cached) $ECHO_C" >&6
31749 cat >conftest.
$ac_ext <<_ACEOF
31752 cat confdefs.h
>>conftest.
$ac_ext
31753 cat >>conftest.
$ac_ext <<_ACEOF
31754 /* end confdefs.h. */
31755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31757 #define $ac_func innocuous_$ac_func
31759 /* System header to define __stub macros and hopefully few prototypes,
31760 which can conflict with char $ac_func (); below.
31761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31762 <limits.h> exists even on freestanding compilers. */
31765 # include <limits.h>
31767 # include <assert.h>
31772 /* Override any GCC internal prototype to avoid an error.
31773 Use char because int might match the return type of a GCC
31774 builtin and then its argument prototype would still apply. */
31779 /* The GNU C library defines this for functions which it implements
31780 to always fail with ENOSYS. Some functions are actually named
31781 something starting with __ and the normal name is an alias. */
31782 #if defined __stub_$ac_func || defined __stub___$ac_func
31789 return $ac_func ();
31794 rm -f conftest.
$ac_objext conftest
$ac_exeext
31795 if { (ac_try
="$ac_link"
31796 case "(($ac_try" in
31797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_link") 2>conftest.er1
31803 grep -v '^ *+' conftest.er1 >conftest.err
31805 cat conftest.err >&5
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); } &&
31808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31809 { (case "(($ac_try" in
31810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31811 *) ac_try_echo
=$ac_try;;
31813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814 (eval "$ac_try") 2>&5
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; } &&
31818 { ac_try
='test -s conftest$ac_exeext'
31819 { (case "(($ac_try" in
31820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_try") 2>&5
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; }; then
31828 eval "$as_ac_var=yes"
31830 echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31833 eval "$as_ac_var=no"
31836 rm -f core conftest.err conftest.$ac_objext \
31837 conftest$ac_exeext conftest.$ac_ext
31839 ac_res=`eval echo '${'$as_ac_var'}'`
31840 { echo "$as_me:$LINENO: result: $ac_res" >&5
31841 echo "${ECHO_T}$ac_res" >&6; }
31842 if test `eval echo '${'$as_ac_var'}'` = yes; then
31843 cat >>confdefs.h <<_ACEOF
31844 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31854 for ac_func in powf fmodf strtof round
31856 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31860 echo $ECHO_N "(cached) $ECHO_C" >&6
31862 cat >conftest.$ac_ext <<_ACEOF
31865 cat confdefs.h >>conftest.$ac_ext
31866 cat >>conftest.$ac_ext <<_ACEOF
31867 /* end confdefs.h. */
31868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31870 #define $ac_func innocuous_$ac_func
31872 /* System header to define __stub macros and hopefully few prototypes,
31873 which can conflict with char $ac_func (); below.
31874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31875 <limits.h> exists even on freestanding compilers. */
31878 # include <limits.h>
31880 # include <assert.h>
31885 /* Override any GCC internal prototype to avoid an error.
31886 Use char because int might match the return type of a GCC
31887 builtin and then its argument prototype would still apply. */
31892 /* The GNU C library defines this for functions which it implements
31893 to always fail with ENOSYS. Some functions are actually named
31894 something starting with __ and the normal name is an alias. */
31895 #if defined __stub_$ac_func || defined __stub___$ac_func
31902 return $ac_func ();
31907 rm -f conftest.$ac_objext conftest$ac_exeext
31908 if { (ac_try="$ac_link"
31909 case "(($ac_try" in
31910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31911 *) ac_try_echo
=$ac_try;;
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914 (eval "$ac_link") 2>conftest.er1
31916 grep -v '^ *+' conftest.er1
>conftest.err
31918 cat conftest.err
>&5
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); } &&
31921 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31922 { (case "(($ac_try" in
31923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31924 *) ac_try_echo=$ac_try;;
31926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927 (eval "$ac_try") 2>&5
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; } &&
31931 { ac_try='test -s conftest$ac_exeext'
31932 { (case "(($ac_try" in
31933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31934 *) ac_try_echo
=$ac_try;;
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937 (eval "$ac_try") 2>&5
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; }; then
31941 eval "$as_ac_var=yes"
31943 echo "$as_me: failed program was:" >&5
31944 sed 's/^/| /' conftest.
$ac_ext >&5
31946 eval "$as_ac_var=no"
31949 rm -f core conftest.err conftest.
$ac_objext \
31950 conftest
$ac_exeext conftest.
$ac_ext
31952 ac_res
=`eval echo '${'$as_ac_var'}'`
31953 { echo "$as_me:$LINENO: result: $ac_res" >&5
31954 echo "${ECHO_T}$ac_res" >&6; }
31955 if test `eval echo '${'$as_ac_var'}'` = yes; then
31956 cat >>confdefs.h
<<_ACEOF
31957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31968 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
31970 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31973 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31974 echo $ECHO_N "(cached) $ECHO_C" >&6
31976 cat >conftest.
$ac_ext <<_ACEOF
31979 cat confdefs.h
>>conftest.
$ac_ext
31980 cat >>conftest.
$ac_ext <<_ACEOF
31981 /* end confdefs.h. */
31982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31984 #define $ac_func innocuous_$ac_func
31986 /* System header to define __stub macros and hopefully few prototypes,
31987 which can conflict with char $ac_func (); below.
31988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31989 <limits.h> exists even on freestanding compilers. */
31992 # include <limits.h>
31994 # include <assert.h>
31999 /* Override any GCC internal prototype to avoid an error.
32000 Use char because int might match the return type of a GCC
32001 builtin and then its argument prototype would still apply. */
32006 /* The GNU C library defines this for functions which it implements
32007 to always fail with ENOSYS. Some functions are actually named
32008 something starting with __ and the normal name is an alias. */
32009 #if defined __stub_$ac_func || defined __stub___$ac_func
32016 return $ac_func ();
32021 rm -f conftest.
$ac_objext conftest
$ac_exeext
32022 if { (ac_try
="$ac_link"
32023 case "(($ac_try" in
32024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32025 *) ac_try_echo=$ac_try;;
32027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32028 (eval "$ac_link") 2>conftest.er1
32030 grep -v '^ *+' conftest.er1 >conftest.err
32032 cat conftest.err >&5
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); } &&
32035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32036 { (case "(($ac_try" in
32037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32038 *) ac_try_echo
=$ac_try;;
32040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32041 (eval "$ac_try") 2>&5
32043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); }; } &&
32045 { ac_try
='test -s conftest$ac_exeext'
32046 { (case "(($ac_try" in
32047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32048 *) ac_try_echo=$ac_try;;
32050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32051 (eval "$ac_try") 2>&5
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); }; }; then
32055 eval "$as_ac_var=yes"
32057 echo "$as_me: failed program was:" >&5
32058 sed 's/^/| /' conftest.$ac_ext >&5
32060 eval "$as_ac_var=no"
32063 rm -f core conftest.err conftest.$ac_objext \
32064 conftest$ac_exeext conftest.$ac_ext
32066 ac_res=`eval echo '${'$as_ac_var'}'`
32067 { echo "$as_me:$LINENO: result: $ac_res" >&5
32068 echo "${ECHO_T}$ac_res" >&6; }
32069 if test `eval echo '${'$as_ac_var'}'` = yes; then
32070 cat >>confdefs.h <<_ACEOF
32071 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32080 for ac_func in isatty mkdtemp mkstemp
32082 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32086 echo $ECHO_N "(cached) $ECHO_C" >&6
32088 cat >conftest.$ac_ext <<_ACEOF
32091 cat confdefs.h >>conftest.$ac_ext
32092 cat >>conftest.$ac_ext <<_ACEOF
32093 /* end confdefs.h. */
32094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32096 #define $ac_func innocuous_$ac_func
32098 /* System header to define __stub macros and hopefully few prototypes,
32099 which can conflict with char $ac_func (); below.
32100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32101 <limits.h> exists even on freestanding compilers. */
32104 # include <limits.h>
32106 # include <assert.h>
32111 /* Override any GCC internal prototype to avoid an error.
32112 Use char because int might match the return type of a GCC
32113 builtin and then its argument prototype would still apply. */
32118 /* The GNU C library defines this for functions which it implements
32119 to always fail with ENOSYS. Some functions are actually named
32120 something starting with __ and the normal name is an alias. */
32121 #if defined __stub_$ac_func || defined __stub___$ac_func
32128 return $ac_func ();
32133 rm -f conftest.$ac_objext conftest$ac_exeext
32134 if { (ac_try="$ac_link"
32135 case "(($ac_try" in
32136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32137 *) ac_try_echo
=$ac_try;;
32139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140 (eval "$ac_link") 2>conftest.er1
32142 grep -v '^ *+' conftest.er1
>conftest.err
32144 cat conftest.err
>&5
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); } &&
32147 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32148 { (case "(($ac_try" in
32149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32150 *) ac_try_echo=$ac_try;;
32152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32153 (eval "$ac_try") 2>&5
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); }; } &&
32157 { ac_try='test -s conftest$ac_exeext'
32158 { (case "(($ac_try" in
32159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32160 *) ac_try_echo
=$ac_try;;
32162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163 (eval "$ac_try") 2>&5
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); }; }; then
32167 eval "$as_ac_var=yes"
32169 echo "$as_me: failed program was:" >&5
32170 sed 's/^/| /' conftest.
$ac_ext >&5
32172 eval "$as_ac_var=no"
32175 rm -f core conftest.err conftest.
$ac_objext \
32176 conftest
$ac_exeext conftest.
$ac_ext
32178 ac_res
=`eval echo '${'$as_ac_var'}'`
32179 { echo "$as_me:$LINENO: result: $ac_res" >&5
32180 echo "${ECHO_T}$ac_res" >&6; }
32181 if test `eval echo '${'$as_ac_var'}'` = yes; then
32182 cat >>confdefs.h
<<_ACEOF
32183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32194 for ac_func
in mktemp realpath sbrk setrlimit strdup
32196 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32199 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32202 cat >conftest.
$ac_ext <<_ACEOF
32205 cat confdefs.h
>>conftest.
$ac_ext
32206 cat >>conftest.
$ac_ext <<_ACEOF
32207 /* end confdefs.h. */
32208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32210 #define $ac_func innocuous_$ac_func
32212 /* System header to define __stub macros and hopefully few prototypes,
32213 which can conflict with char $ac_func (); below.
32214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32215 <limits.h> exists even on freestanding compilers. */
32218 # include <limits.h>
32220 # include <assert.h>
32225 /* Override any GCC internal prototype to avoid an error.
32226 Use char because int might match the return type of a GCC
32227 builtin and then its argument prototype would still apply. */
32232 /* The GNU C library defines this for functions which it implements
32233 to always fail with ENOSYS. Some functions are actually named
32234 something starting with __ and the normal name is an alias. */
32235 #if defined __stub_$ac_func || defined __stub___$ac_func
32242 return $ac_func ();
32247 rm -f conftest.
$ac_objext conftest
$ac_exeext
32248 if { (ac_try
="$ac_link"
32249 case "(($ac_try" in
32250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_link") 2>conftest.er1
32256 grep -v '^ *+' conftest.er1 >conftest.err
32258 cat conftest.err >&5
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); } &&
32261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32262 { (case "(($ac_try" in
32263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32264 *) ac_try_echo
=$ac_try;;
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_try") 2>&5
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); }; } &&
32271 { ac_try
='test -s conftest$ac_exeext'
32272 { (case "(($ac_try" in
32273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32274 *) ac_try_echo=$ac_try;;
32276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277 (eval "$ac_try") 2>&5
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; }; then
32281 eval "$as_ac_var=yes"
32283 echo "$as_me: failed program was:" >&5
32284 sed 's/^/| /' conftest.$ac_ext >&5
32286 eval "$as_ac_var=no"
32289 rm -f core conftest.err conftest.$ac_objext \
32290 conftest$ac_exeext conftest.$ac_ext
32292 ac_res=`eval echo '${'$as_ac_var'}'`
32293 { echo "$as_me:$LINENO: result: $ac_res" >&5
32294 echo "${ECHO_T}$ac_res" >&6; }
32295 if test `eval echo '${'$as_ac_var'}'` = yes; then
32296 cat >>confdefs.h <<_ACEOF
32297 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32306 for ac_func in strerror strerror_r strerror_s
32308 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32312 echo $ECHO_N "(cached) $ECHO_C" >&6
32314 cat >conftest.$ac_ext <<_ACEOF
32317 cat confdefs.h >>conftest.$ac_ext
32318 cat >>conftest.$ac_ext <<_ACEOF
32319 /* end confdefs.h. */
32320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32322 #define $ac_func innocuous_$ac_func
32324 /* System header to define __stub macros and hopefully few prototypes,
32325 which can conflict with char $ac_func (); below.
32326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32327 <limits.h> exists even on freestanding compilers. */
32330 # include <limits.h>
32332 # include <assert.h>
32337 /* Override any GCC internal prototype to avoid an error.
32338 Use char because int might match the return type of a GCC
32339 builtin and then its argument prototype would still apply. */
32344 /* The GNU C library defines this for functions which it implements
32345 to always fail with ENOSYS. Some functions are actually named
32346 something starting with __ and the normal name is an alias. */
32347 #if defined __stub_$ac_func || defined __stub___$ac_func
32354 return $ac_func ();
32359 rm -f conftest.$ac_objext conftest$ac_exeext
32360 if { (ac_try="$ac_link"
32361 case "(($ac_try" in
32362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32363 *) ac_try_echo
=$ac_try;;
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_link") 2>conftest.er1
32368 grep -v '^ *+' conftest.er1
>conftest.err
32370 cat conftest.err
>&5
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); } &&
32373 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32374 { (case "(($ac_try" in
32375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32376 *) ac_try_echo=$ac_try;;
32378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32379 (eval "$ac_try") 2>&5
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); }; } &&
32383 { ac_try='test -s conftest$ac_exeext'
32384 { (case "(($ac_try" in
32385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32386 *) ac_try_echo
=$ac_try;;
32388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32389 (eval "$ac_try") 2>&5
32391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392 (exit $ac_status); }; }; then
32393 eval "$as_ac_var=yes"
32395 echo "$as_me: failed program was:" >&5
32396 sed 's/^/| /' conftest.
$ac_ext >&5
32398 eval "$as_ac_var=no"
32401 rm -f core conftest.err conftest.
$ac_objext \
32402 conftest
$ac_exeext conftest.
$ac_ext
32404 ac_res
=`eval echo '${'$as_ac_var'}'`
32405 { echo "$as_me:$LINENO: result: $ac_res" >&5
32406 echo "${ECHO_T}$ac_res" >&6; }
32407 if test `eval echo '${'$as_ac_var'}'` = yes; then
32408 cat >>confdefs.h
<<_ACEOF
32409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32419 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
32421 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32424 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32425 echo $ECHO_N "(cached) $ECHO_C" >&6
32427 cat >conftest.
$ac_ext <<_ACEOF
32430 cat confdefs.h
>>conftest.
$ac_ext
32431 cat >>conftest.
$ac_ext <<_ACEOF
32432 /* end confdefs.h. */
32433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32435 #define $ac_func innocuous_$ac_func
32437 /* System header to define __stub macros and hopefully few prototypes,
32438 which can conflict with char $ac_func (); below.
32439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32440 <limits.h> exists even on freestanding compilers. */
32443 # include <limits.h>
32445 # include <assert.h>
32450 /* Override any GCC internal prototype to avoid an error.
32451 Use char because int might match the return type of a GCC
32452 builtin and then its argument prototype would still apply. */
32457 /* The GNU C library defines this for functions which it implements
32458 to always fail with ENOSYS. Some functions are actually named
32459 something starting with __ and the normal name is an alias. */
32460 #if defined __stub_$ac_func || defined __stub___$ac_func
32467 return $ac_func ();
32472 rm -f conftest.
$ac_objext conftest
$ac_exeext
32473 if { (ac_try
="$ac_link"
32474 case "(($ac_try" in
32475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_link") 2>conftest.er1
32481 grep -v '^ *+' conftest.er1 >conftest.err
32483 cat conftest.err >&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); } &&
32486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32487 { (case "(($ac_try" in
32488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32489 *) ac_try_echo
=$ac_try;;
32491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32492 (eval "$ac_try") 2>&5
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; } &&
32496 { ac_try
='test -s conftest$ac_exeext'
32497 { (case "(($ac_try" in
32498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32499 *) ac_try_echo=$ac_try;;
32501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502 (eval "$ac_try") 2>&5
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); }; }; then
32506 eval "$as_ac_var=yes"
32508 echo "$as_me: failed program was:" >&5
32509 sed 's/^/| /' conftest.$ac_ext >&5
32511 eval "$as_ac_var=no"
32514 rm -f core conftest.err conftest.$ac_objext \
32515 conftest$ac_exeext conftest.$ac_ext
32517 ac_res=`eval echo '${'$as_ac_var'}'`
32518 { echo "$as_me:$LINENO: result: $ac_res" >&5
32519 echo "${ECHO_T}$ac_res" >&6; }
32520 if test `eval echo '${'$as_ac_var'}'` = yes; then
32521 cat >>confdefs.h <<_ACEOF
32522 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32532 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32534 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32538 echo $ECHO_N "(cached) $ECHO_C" >&6
32540 cat >conftest.$ac_ext <<_ACEOF
32543 cat confdefs.h >>conftest.$ac_ext
32544 cat >>conftest.$ac_ext <<_ACEOF
32545 /* end confdefs.h. */
32546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32548 #define $ac_func innocuous_$ac_func
32550 /* System header to define __stub macros and hopefully few prototypes,
32551 which can conflict with char $ac_func (); below.
32552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32553 <limits.h> exists even on freestanding compilers. */
32556 # include <limits.h>
32558 # include <assert.h>
32563 /* Override any GCC internal prototype to avoid an error.
32564 Use char because int might match the return type of a GCC
32565 builtin and then its argument prototype would still apply. */
32570 /* The GNU C library defines this for functions which it implements
32571 to always fail with ENOSYS. Some functions are actually named
32572 something starting with __ and the normal name is an alias. */
32573 #if defined __stub_$ac_func || defined __stub___$ac_func
32580 return $ac_func ();
32585 rm -f conftest.$ac_objext conftest$ac_exeext
32586 if { (ac_try="$ac_link"
32587 case "(($ac_try" in
32588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32589 *) ac_try_echo
=$ac_try;;
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_link") 2>conftest.er1
32594 grep -v '^ *+' conftest.er1
>conftest.err
32596 cat conftest.err
>&5
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); } &&
32599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32600 { (case "(($ac_try" in
32601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32602 *) ac_try_echo=$ac_try;;
32604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605 (eval "$ac_try") 2>&5
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; } &&
32609 { ac_try='test -s conftest$ac_exeext'
32610 { (case "(($ac_try" in
32611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32612 *) ac_try_echo
=$ac_try;;
32614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615 (eval "$ac_try") 2>&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
32619 eval "$as_ac_var=yes"
32621 echo "$as_me: failed program was:" >&5
32622 sed 's/^/| /' conftest.
$ac_ext >&5
32624 eval "$as_ac_var=no"
32627 rm -f core conftest.err conftest.
$ac_objext \
32628 conftest
$ac_exeext conftest.
$ac_ext
32630 ac_res
=`eval echo '${'$as_ac_var'}'`
32631 { echo "$as_me:$LINENO: result: $ac_res" >&5
32632 echo "${ECHO_T}$ac_res" >&6; }
32633 if test `eval echo '${'$as_ac_var'}'` = yes; then
32634 cat >>confdefs.h
<<_ACEOF
32635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32641 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32642 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32643 if test "${llvm_cv_c_printf_a+set}" = set; then
32644 echo $ECHO_N "(cached) $ECHO_C" >&6
32647 ac_cpp
='$CPP $CPPFLAGS'
32648 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32649 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32650 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32652 if test "$cross_compiling" = yes; then
32653 llvmac_cv_c_printf_a
=no
32655 cat >conftest.
$ac_ext <<_ACEOF
32659 cat confdefs.h
>>conftest.
$ac_ext
32660 cat >>conftest.
$ac_ext <<_ACEOF
32661 /* end confdefs.h. */
32664 #include <stdlib.h>
32670 volatile double A, B;
32674 sprintf(Buffer, "%a", A);
32678 if (A != 0x1.999999999999ap-4)
32685 rm -f conftest
$ac_exeext
32686 if { (ac_try
="$ac_link"
32687 case "(($ac_try" in
32688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32689 *) ac_try_echo=$ac_try;;
32691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692 (eval "$ac_link") 2>&5
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32696 { (case "(($ac_try" in
32697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32698 *) ac_try_echo
=$ac_try;;
32700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32701 (eval "$ac_try") 2>&5
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; }; then
32705 llvm_cv_c_printf_a
=yes
32707 echo "$as_me: program exited with status $ac_status" >&5
32708 echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.
$ac_ext >&5
32711 ( exit $ac_status )
32712 llvmac_cv_c_printf_a
=no
32714 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32719 ac_cpp
='$CPP $CPPFLAGS'
32720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32725 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32726 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32727 if test "$llvm_cv_c_printf_a" = "yes"; then
32729 cat >>confdefs.h
<<\_ACEOF
32730 #define HAVE_PRINTF_A 1
32735 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32736 # for constant arguments. Useless!
32737 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32738 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32739 if test "${ac_cv_working_alloca_h+set}" = set; then
32740 echo $ECHO_N "(cached) $ECHO_C" >&6
32742 cat >conftest.
$ac_ext <<_ACEOF
32745 cat confdefs.h
>>conftest.
$ac_ext
32746 cat >>conftest.
$ac_ext <<_ACEOF
32747 /* end confdefs.h. */
32748 #include <alloca.h>
32752 char *p = (char *) alloca (2 * sizeof (int));
32758 rm -f conftest.
$ac_objext conftest
$ac_exeext
32759 if { (ac_try
="$ac_link"
32760 case "(($ac_try" in
32761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32762 *) ac_try_echo=$ac_try;;
32764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32765 (eval "$ac_link") 2>conftest.er1
32767 grep -v '^ *+' conftest.er1 >conftest.err
32769 cat conftest.err >&5
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); } &&
32772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; } &&
32782 { ac_try
='test -s conftest$ac_exeext'
32783 { (case "(($ac_try" in
32784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32785 *) ac_try_echo=$ac_try;;
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788 (eval "$ac_try") 2>&5
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); }; }; then
32792 ac_cv_working_alloca_h=yes
32794 echo "$as_me: failed program was:" >&5
32795 sed 's/^/| /' conftest.$ac_ext >&5
32797 ac_cv_working_alloca_h=no
32800 rm -f core conftest.err conftest.$ac_objext \
32801 conftest$ac_exeext conftest.$ac_ext
32803 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32804 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32805 if test $ac_cv_working_alloca_h = yes; then
32807 cat >>confdefs.h <<\_ACEOF
32808 #define HAVE_ALLOCA_H 1
32813 { echo "$as_me:$LINENO: checking for alloca" >&5
32814 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32815 if test "${ac_cv_func_alloca_works+set}" = set; then
32816 echo $ECHO_N "(cached) $ECHO_C" >&6
32818 cat >conftest.$ac_ext <<_ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h. */
32825 # define alloca __builtin_alloca
32828 # include <malloc.h>
32829 # define alloca _alloca
32832 # include <alloca.h>
32837 # ifndef alloca /* predefined by HP cc +Olibcalls */
32848 char *p = (char *) alloca (1);
32854 rm -f conftest.$ac_objext conftest$ac_exeext
32855 if { (ac_try="$ac_link"
32856 case "(($ac_try" in
32857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32858 *) ac_try_echo
=$ac_try;;
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_link") 2>conftest.er1
32863 grep -v '^ *+' conftest.er1
>conftest.err
32865 cat conftest.err
>&5
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); } &&
32868 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32869 { (case "(($ac_try" in
32870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32871 *) ac_try_echo=$ac_try;;
32873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874 (eval "$ac_try") 2>&5
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); }; } &&
32878 { ac_try='test -s conftest$ac_exeext'
32879 { (case "(($ac_try" in
32880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32881 *) ac_try_echo
=$ac_try;;
32883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884 (eval "$ac_try") 2>&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; }; then
32888 ac_cv_func_alloca_works
=yes
32890 echo "$as_me: failed program was:" >&5
32891 sed 's/^/| /' conftest.
$ac_ext >&5
32893 ac_cv_func_alloca_works
=no
32896 rm -f core conftest.err conftest.
$ac_objext \
32897 conftest
$ac_exeext conftest.
$ac_ext
32899 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32900 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32902 if test $ac_cv_func_alloca_works = yes; then
32904 cat >>confdefs.h
<<\_ACEOF
32905 #define HAVE_ALLOCA 1
32909 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32910 # that cause trouble. Some versions do not even contain alloca or
32911 # contain a buggy version. If you still want to use their alloca,
32912 # use ar to extract alloca.o from them instead of compiling alloca.c.
32914 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
32916 cat >>confdefs.h
<<\_ACEOF
32921 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32922 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32923 if test "${ac_cv_os_cray+set}" = set; then
32924 echo $ECHO_N "(cached) $ECHO_C" >&6
32926 cat >conftest.
$ac_ext <<_ACEOF
32929 cat confdefs.h
>>conftest.
$ac_ext
32930 cat >>conftest.
$ac_ext <<_ACEOF
32931 /* end confdefs.h. */
32932 #if defined CRAY && ! defined CRAY2
32939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32940 $EGREP "webecray" >/dev
/null
2>&1; then
32948 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32949 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32950 if test $ac_cv_os_cray = yes; then
32951 for ac_func
in _getb67 GETB67 getb67
; do
32952 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32955 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32956 echo $ECHO_N "(cached) $ECHO_C" >&6
32958 cat >conftest.
$ac_ext <<_ACEOF
32961 cat confdefs.h
>>conftest.
$ac_ext
32962 cat >>conftest.
$ac_ext <<_ACEOF
32963 /* end confdefs.h. */
32964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32966 #define $ac_func innocuous_$ac_func
32968 /* System header to define __stub macros and hopefully few prototypes,
32969 which can conflict with char $ac_func (); below.
32970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32971 <limits.h> exists even on freestanding compilers. */
32974 # include <limits.h>
32976 # include <assert.h>
32981 /* Override any GCC internal prototype to avoid an error.
32982 Use char because int might match the return type of a GCC
32983 builtin and then its argument prototype would still apply. */
32988 /* The GNU C library defines this for functions which it implements
32989 to always fail with ENOSYS. Some functions are actually named
32990 something starting with __ and the normal name is an alias. */
32991 #if defined __stub_$ac_func || defined __stub___$ac_func
32998 return $ac_func ();
33003 rm -f conftest.
$ac_objext conftest
$ac_exeext
33004 if { (ac_try
="$ac_link"
33005 case "(($ac_try" in
33006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33007 *) ac_try_echo=$ac_try;;
33009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33010 (eval "$ac_link") 2>conftest.er1
33012 grep -v '^ *+' conftest.er1 >conftest.err
33014 cat conftest.err >&5
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); } &&
33017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33018 { (case "(($ac_try" in
33019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33020 *) ac_try_echo
=$ac_try;;
33022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023 (eval "$ac_try") 2>&5
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; } &&
33027 { ac_try
='test -s conftest$ac_exeext'
33028 { (case "(($ac_try" in
33029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33030 *) ac_try_echo=$ac_try;;
33032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033 (eval "$ac_try") 2>&5
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); }; }; then
33037 eval "$as_ac_var=yes"
33039 echo "$as_me: failed program was:" >&5
33040 sed 's/^/| /' conftest.$ac_ext >&5
33042 eval "$as_ac_var=no"
33045 rm -f core conftest.err conftest.$ac_objext \
33046 conftest$ac_exeext conftest.$ac_ext
33048 ac_res=`eval echo '${'$as_ac_var'}'`
33049 { echo "$as_me:$LINENO: result: $ac_res" >&5
33050 echo "${ECHO_T}$ac_res" >&6; }
33051 if test `eval echo '${'$as_ac_var'}'` = yes; then
33053 cat >>confdefs.h <<_ACEOF
33054 #define CRAY_STACKSEG_END $ac_func
33063 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33064 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33065 if test "${ac_cv_c_stack_direction+set}" = set; then
33066 echo $ECHO_N "(cached) $ECHO_C" >&6
33068 if test "$cross_compiling" = yes; then
33069 ac_cv_c_stack_direction=0
33071 cat >conftest.$ac_ext <<_ACEOF
33074 cat confdefs.h >>conftest.$ac_ext
33075 cat >>conftest.$ac_ext <<_ACEOF
33076 /* end confdefs.h. */
33077 $ac_includes_default
33079 find_stack_direction ()
33081 static char *addr = 0;
33086 return find_stack_direction ();
33089 return (&dummy > addr) ? 1 : -1;
33095 return find_stack_direction () < 0;
33098 rm -f conftest$ac_exeext
33099 if { (ac_try="$ac_link"
33100 case "(($ac_try" in
33101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33102 *) ac_try_echo
=$ac_try;;
33104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33105 (eval "$ac_link") 2>&5
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33109 { (case "(($ac_try" in
33110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33111 *) ac_try_echo=$ac_try;;
33113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33114 (eval "$ac_try") 2>&5
33116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); }; }; then
33118 ac_cv_c_stack_direction=1
33120 echo "$as_me: program exited with status $ac_status" >&5
33121 echo "$as_me: failed program was:" >&5
33122 sed 's/^/| /' conftest.$ac_ext >&5
33124 ( exit $ac_status )
33125 ac_cv_c_stack_direction=-1
33127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33132 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33133 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33135 cat >>confdefs.h <<_ACEOF
33136 #define STACK_DIRECTION $ac_cv_c_stack_direction
33143 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33144 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33145 if test "${ac_cv_func_rand48+set}" = set; then
33146 echo $ECHO_N "(cached) $ECHO_C" >&6
33149 ac_cpp='$CXXCPP $CPPFLAGS'
33150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33154 cat >conftest.$ac_ext <<_ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h. */
33160 #include <stdlib.h>
33164 srand48(0);lrand48();drand48();
33169 rm -f conftest.$ac_objext
33170 if { (ac_try="$ac_compile"
33171 case "(($ac_try" in
33172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33173 *) ac_try_echo
=$ac_try;;
33175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176 (eval "$ac_compile") 2>conftest.er1
33178 grep -v '^ *+' conftest.er1
>conftest.err
33180 cat conftest.err
>&5
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); } &&
33183 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33184 { (case "(($ac_try" in
33185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33186 *) ac_try_echo=$ac_try;;
33188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189 (eval "$ac_try") 2>&5
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); }; } &&
33193 { ac_try='test -s conftest.$ac_objext'
33194 { (case "(($ac_try" in
33195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33196 *) ac_try_echo
=$ac_try;;
33198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199 (eval "$ac_try") 2>&5
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); }; }; then
33203 ac_cv_func_rand48
=yes
33205 echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.
$ac_ext >&5
33208 ac_cv_func_rand48
=no
33211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33213 ac_cpp
='$CPP $CPPFLAGS'
33214 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33215 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33216 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33219 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33220 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33222 if test "$ac_cv_func_rand48" = "yes" ; then
33224 cat >>confdefs.h
<<\_ACEOF
33225 #define HAVE_RAND48 1
33231 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33232 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33233 if test "${ac_cv_cxx_namespaces+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33237 ac_cpp
='$CXXCPP $CPPFLAGS'
33238 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33239 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33240 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33242 cat >conftest.
$ac_ext <<_ACEOF
33245 cat confdefs.h
>>conftest.
$ac_ext
33246 cat >>conftest.
$ac_ext <<_ACEOF
33247 /* end confdefs.h. */
33248 namespace Outer { namespace Inner { int i = 0; }}
33252 using namespace Outer::Inner; return i;
33257 rm -f conftest.
$ac_objext
33258 if { (ac_try
="$ac_compile"
33259 case "(($ac_try" in
33260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_compile") 2>conftest.er1
33266 grep -v '^ *+' conftest.er1 >conftest.err
33268 cat conftest.err >&5
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); } &&
33271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33272 { (case "(($ac_try" in
33273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33274 *) ac_try_echo
=$ac_try;;
33276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277 (eval "$ac_try") 2>&5
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; } &&
33281 { ac_try
='test -s conftest.$ac_objext'
33282 { (case "(($ac_try" in
33283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_try") 2>&5
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; }; then
33291 ac_cv_cxx_namespaces=yes
33293 echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33296 ac_cv_cxx_namespaces=no
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33301 ac_cpp='$CPP $CPPFLAGS'
33302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33308 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33309 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33310 if test "$ac_cv_cxx_namespaces" = yes; then
33312 cat >>confdefs.h <<\_ACEOF
33313 #define HAVE_NAMESPACES
33318 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33319 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33320 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33321 echo $ECHO_N "(cached) $ECHO_C" >&6
33325 ac_cpp='$CXXCPP $CPPFLAGS'
33326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33330 cat >conftest.$ac_ext <<_ACEOF
33333 cat confdefs.h >>conftest.$ac_ext
33334 cat >>conftest.$ac_ext <<_ACEOF
33335 /* end confdefs.h. */
33336 #include <iterator>
33337 #ifdef HAVE_NAMESPACES
33338 using namespace std;
33343 iterator<int,int,int> t; return 0;
33348 rm -f conftest.$ac_objext
33349 if { (ac_try="$ac_compile"
33350 case "(($ac_try" in
33351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33352 *) ac_try_echo
=$ac_try;;
33354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355 (eval "$ac_compile") 2>conftest.er1
33357 grep -v '^ *+' conftest.er1
>conftest.err
33359 cat conftest.err
>&5
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); } &&
33362 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33363 { (case "(($ac_try" in
33364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33365 *) ac_try_echo=$ac_try;;
33367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33368 (eval "$ac_try") 2>&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); }; } &&
33372 { ac_try='test -s conftest.$ac_objext'
33373 { (case "(($ac_try" in
33374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33375 *) ac_try_echo
=$ac_try;;
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_try") 2>&5
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); }; }; then
33382 ac_cv_cxx_have_std_iterator
=yes
33384 echo "$as_me: failed program was:" >&5
33385 sed 's/^/| /' conftest.
$ac_ext >&5
33387 ac_cv_cxx_have_std_iterator
=no
33390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33392 ac_cpp
='$CPP $CPPFLAGS'
33393 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33394 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33395 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33399 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33400 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33401 if test "$ac_cv_cxx_have_std_iterator" = yes
33404 cat >>confdefs.h
<<\_ACEOF
33405 #define HAVE_STD_ITERATOR 1
33410 cat >>confdefs.h
<<\_ACEOF
33411 #define HAVE_STD_ITERATOR 0
33416 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33417 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33418 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33419 echo $ECHO_N "(cached) $ECHO_C" >&6
33423 ac_cpp
='$CXXCPP $CPPFLAGS'
33424 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33425 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33426 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33428 cat >conftest.
$ac_ext <<_ACEOF
33431 cat confdefs.h
>>conftest.
$ac_ext
33432 cat >>conftest.
$ac_ext <<_ACEOF
33433 /* end confdefs.h. */
33434 #include <iterator>
33435 #ifdef HAVE_NAMESPACES
33436 using namespace std;
33441 bidirectional_iterator<int,int> t; return 0;
33446 rm -f conftest.
$ac_objext
33447 if { (ac_try
="$ac_compile"
33448 case "(($ac_try" in
33449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_compile") 2>conftest.er1
33455 grep -v '^ *+' conftest.er1 >conftest.err
33457 cat conftest.err >&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); } &&
33460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33461 { (case "(($ac_try" in
33462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33463 *) ac_try_echo
=$ac_try;;
33465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33466 (eval "$ac_try") 2>&5
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); }; } &&
33470 { ac_try
='test -s conftest.$ac_objext'
33471 { (case "(($ac_try" in
33472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476 (eval "$ac_try") 2>&5
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; }; then
33480 ac_cv_cxx_have_bi_iterator=yes
33482 echo "$as_me: failed program was:" >&5
33483 sed 's/^/| /' conftest.$ac_ext >&5
33485 ac_cv_cxx_have_bi_iterator=no
33488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33490 ac_cpp='$CPP $CPPFLAGS'
33491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33497 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33498 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33499 if test "$ac_cv_cxx_have_bi_iterator" = yes
33502 cat >>confdefs.h <<\_ACEOF
33503 #define HAVE_BI_ITERATOR 1
33508 cat >>confdefs.h <<\_ACEOF
33509 #define HAVE_BI_ITERATOR 0
33514 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33515 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33516 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33521 ac_cpp='$CXXCPP $CPPFLAGS'
33522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33526 cat >conftest.$ac_ext <<_ACEOF
33529 cat confdefs.h >>conftest.$ac_ext
33530 cat >>conftest.$ac_ext <<_ACEOF
33531 /* end confdefs.h. */
33532 #include <iterator>
33533 #ifdef HAVE_NAMESPACES
33534 using namespace std;
33539 forward_iterator<int,int> t; return 0;
33544 rm -f conftest.$ac_objext
33545 if { (ac_try="$ac_compile"
33546 case "(($ac_try" in
33547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33548 *) ac_try_echo
=$ac_try;;
33550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551 (eval "$ac_compile") 2>conftest.er1
33553 grep -v '^ *+' conftest.er1
>conftest.err
33555 cat conftest.err
>&5
33556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557 (exit $ac_status); } &&
33558 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33559 { (case "(($ac_try" in
33560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33561 *) ac_try_echo=$ac_try;;
33563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33564 (eval "$ac_try") 2>&5
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); }; } &&
33568 { ac_try='test -s conftest.$ac_objext'
33569 { (case "(($ac_try" in
33570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33571 *) ac_try_echo
=$ac_try;;
33573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574 (eval "$ac_try") 2>&5
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; }; then
33578 ac_cv_cxx_have_fwd_iterator
=yes
33580 echo "$as_me: failed program was:" >&5
33581 sed 's/^/| /' conftest.
$ac_ext >&5
33583 ac_cv_cxx_have_fwd_iterator
=no
33586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33588 ac_cpp
='$CPP $CPPFLAGS'
33589 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33590 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33591 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33595 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33596 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33597 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33600 cat >>confdefs.h
<<\_ACEOF
33601 #define HAVE_FWD_ITERATOR 1
33606 cat >>confdefs.h
<<\_ACEOF
33607 #define HAVE_FWD_ITERATOR 0
33613 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33614 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33615 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33616 echo $ECHO_N "(cached) $ECHO_C" >&6
33619 ac_cpp
='$CXXCPP $CPPFLAGS'
33620 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33621 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33622 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33624 cat >conftest.
$ac_ext <<_ACEOF
33627 cat confdefs.h
>>conftest.
$ac_ext
33628 cat >>conftest.
$ac_ext <<_ACEOF
33629 /* end confdefs.h. */
33639 rm -f conftest.
$ac_objext
33640 if { (ac_try
="$ac_compile"
33641 case "(($ac_try" in
33642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_compile") 2>conftest.er1
33648 grep -v '^ *+' conftest.er1 >conftest.err
33650 cat conftest.err >&5
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652 (exit $ac_status); } &&
33653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33654 { (case "(($ac_try" in
33655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33656 *) ac_try_echo
=$ac_try;;
33658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33659 (eval "$ac_try") 2>&5
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; } &&
33663 { ac_try
='test -s conftest.$ac_objext'
33664 { (case "(($ac_try" in
33665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33666 *) ac_try_echo=$ac_try;;
33668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669 (eval "$ac_try") 2>&5
33671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 (exit $ac_status); }; }; then
33673 ac_cv_func_isnan_in_math_h=yes
33675 echo "$as_me: failed program was:" >&5
33676 sed 's/^/| /' conftest.$ac_ext >&5
33678 ac_cv_func_isnan_in_math_h=no
33681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33683 ac_cpp='$CPP $CPPFLAGS'
33684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33689 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33690 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33693 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33695 cat >>confdefs.h <<\_ACEOF
33696 #define HAVE_ISNAN_IN_MATH_H 1
33701 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33702 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33703 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33704 echo $ECHO_N "(cached) $ECHO_C" >&6
33707 ac_cpp='$CXXCPP $CPPFLAGS'
33708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33712 cat >conftest.$ac_ext <<_ACEOF
33715 cat confdefs.h >>conftest.$ac_ext
33716 cat >>conftest.$ac_ext <<_ACEOF
33717 /* end confdefs.h. */
33727 rm -f conftest.$ac_objext
33728 if { (ac_try="$ac_compile"
33729 case "(($ac_try" in
33730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33731 *) ac_try_echo
=$ac_try;;
33733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33734 (eval "$ac_compile") 2>conftest.er1
33736 grep -v '^ *+' conftest.er1
>conftest.err
33738 cat conftest.err
>&5
33739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740 (exit $ac_status); } &&
33741 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33742 { (case "(($ac_try" in
33743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33744 *) ac_try_echo=$ac_try;;
33746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33747 (eval "$ac_try") 2>&5
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); }; } &&
33751 { ac_try='test -s conftest.$ac_objext'
33752 { (case "(($ac_try" in
33753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33754 *) ac_try_echo
=$ac_try;;
33756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33757 (eval "$ac_try") 2>&5
33759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760 (exit $ac_status); }; }; then
33761 ac_cv_func_isnan_in_cmath
=yes
33763 echo "$as_me: failed program was:" >&5
33764 sed 's/^/| /' conftest.
$ac_ext >&5
33766 ac_cv_func_isnan_in_cmath
=no
33769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33771 ac_cpp
='$CPP $CPPFLAGS'
33772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33777 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33778 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33780 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33782 cat >>confdefs.h
<<\_ACEOF
33783 #define HAVE_ISNAN_IN_CMATH 1
33788 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33789 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33790 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33791 echo $ECHO_N "(cached) $ECHO_C" >&6
33794 ac_cpp
='$CXXCPP $CPPFLAGS'
33795 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33796 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33797 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33799 cat >conftest.
$ac_ext <<_ACEOF
33802 cat confdefs.h
>>conftest.
$ac_ext
33803 cat >>conftest.
$ac_ext <<_ACEOF
33804 /* end confdefs.h. */
33809 float f; std::isnan(f);
33814 rm -f conftest.
$ac_objext
33815 if { (ac_try
="$ac_compile"
33816 case "(($ac_try" in
33817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_compile") 2>conftest.er1
33823 grep -v '^ *+' conftest.er1 >conftest.err
33825 cat conftest.err >&5
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 (exit $ac_status); } &&
33828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33829 { (case "(($ac_try" in
33830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33831 *) ac_try_echo
=$ac_try;;
33833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834 (eval "$ac_try") 2>&5
33836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); }; } &&
33838 { ac_try
='test -s conftest.$ac_objext'
33839 { (case "(($ac_try" in
33840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33841 *) ac_try_echo=$ac_try;;
33843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844 (eval "$ac_try") 2>&5
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; }; then
33848 ac_cv_func_std_isnan_in_cmath=yes
33850 echo "$as_me: failed program was:" >&5
33851 sed 's/^/| /' conftest.$ac_ext >&5
33853 ac_cv_func_std_isnan_in_cmath=no
33856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33858 ac_cpp='$CPP $CPPFLAGS'
33859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33864 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33865 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33867 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33869 cat >>confdefs.h <<\_ACEOF
33870 #define HAVE_STD_ISNAN_IN_CMATH 1
33876 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33877 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33878 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33879 echo $ECHO_N "(cached) $ECHO_C" >&6
33882 ac_cpp='$CXXCPP $CPPFLAGS'
33883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33887 cat >conftest.$ac_ext <<_ACEOF
33890 cat confdefs.h >>conftest.$ac_ext
33891 cat >>conftest.$ac_ext <<_ACEOF
33892 /* end confdefs.h. */
33902 rm -f conftest.$ac_objext
33903 if { (ac_try="$ac_compile"
33904 case "(($ac_try" in
33905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33906 *) ac_try_echo
=$ac_try;;
33908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909 (eval "$ac_compile") 2>conftest.er1
33911 grep -v '^ *+' conftest.er1
>conftest.err
33913 cat conftest.err
>&5
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915 (exit $ac_status); } &&
33916 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33917 { (case "(($ac_try" in
33918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33919 *) ac_try_echo=$ac_try;;
33921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33922 (eval "$ac_try") 2>&5
33924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925 (exit $ac_status); }; } &&
33926 { ac_try='test -s conftest.$ac_objext'
33927 { (case "(($ac_try" in
33928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33929 *) ac_try_echo
=$ac_try;;
33931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33932 (eval "$ac_try") 2>&5
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); }; }; then
33936 ac_cv_func_isinf_in_math_h
=yes
33938 echo "$as_me: failed program was:" >&5
33939 sed 's/^/| /' conftest.
$ac_ext >&5
33941 ac_cv_func_isinf_in_math_h
=no
33944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33946 ac_cpp
='$CPP $CPPFLAGS'
33947 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33948 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33949 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33952 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33953 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33955 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33957 cat >>confdefs.h
<<\_ACEOF
33958 #define HAVE_ISINF_IN_MATH_H 1
33963 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33964 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33965 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33969 ac_cpp
='$CXXCPP $CPPFLAGS'
33970 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33971 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33972 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33974 cat >conftest.
$ac_ext <<_ACEOF
33977 cat confdefs.h
>>conftest.
$ac_ext
33978 cat >>conftest.
$ac_ext <<_ACEOF
33979 /* end confdefs.h. */
33989 rm -f conftest.
$ac_objext
33990 if { (ac_try
="$ac_compile"
33991 case "(($ac_try" in
33992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33993 *) ac_try_echo=$ac_try;;
33995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996 (eval "$ac_compile") 2>conftest.er1
33998 grep -v '^ *+' conftest.er1 >conftest.err
34000 cat conftest.err >&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); } &&
34003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34004 { (case "(($ac_try" in
34005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34006 *) ac_try_echo
=$ac_try;;
34008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34009 (eval "$ac_try") 2>&5
34011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012 (exit $ac_status); }; } &&
34013 { ac_try
='test -s conftest.$ac_objext'
34014 { (case "(($ac_try" in
34015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34016 *) ac_try_echo=$ac_try;;
34018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34019 (eval "$ac_try") 2>&5
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; }; then
34023 ac_cv_func_isinf_in_cmath=yes
34025 echo "$as_me: failed program was:" >&5
34026 sed 's/^/| /' conftest.$ac_ext >&5
34028 ac_cv_func_isinf_in_cmath=no
34031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34033 ac_cpp='$CPP $CPPFLAGS'
34034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34039 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34040 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34042 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34044 cat >>confdefs.h <<\_ACEOF
34045 #define HAVE_ISINF_IN_CMATH 1
34050 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34051 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34052 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34053 echo $ECHO_N "(cached) $ECHO_C" >&6
34056 ac_cpp='$CXXCPP $CPPFLAGS'
34057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34061 cat >conftest.$ac_ext <<_ACEOF
34064 cat confdefs.h >>conftest.$ac_ext
34065 cat >>conftest.$ac_ext <<_ACEOF
34066 /* end confdefs.h. */
34071 float f; std::isinf(f)}
34076 rm -f conftest.$ac_objext
34077 if { (ac_try="$ac_compile"
34078 case "(($ac_try" in
34079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34080 *) ac_try_echo
=$ac_try;;
34082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34083 (eval "$ac_compile") 2>conftest.er1
34085 grep -v '^ *+' conftest.er1
>conftest.err
34087 cat conftest.err
>&5
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089 (exit $ac_status); } &&
34090 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34091 { (case "(($ac_try" in
34092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34093 *) ac_try_echo=$ac_try;;
34095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34096 (eval "$ac_try") 2>&5
34098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34099 (exit $ac_status); }; } &&
34100 { ac_try='test -s conftest.$ac_objext'
34101 { (case "(($ac_try" in
34102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34103 *) ac_try_echo
=$ac_try;;
34105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34106 (eval "$ac_try") 2>&5
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); }; }; then
34110 ac_cv_func_std_isinf_in_cmath
=yes
34112 echo "$as_me: failed program was:" >&5
34113 sed 's/^/| /' conftest.
$ac_ext >&5
34115 ac_cv_func_std_isinf_in_cmath
=no
34118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34120 ac_cpp
='$CPP $CPPFLAGS'
34121 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34122 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34123 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34126 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34127 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34129 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34131 cat >>confdefs.h
<<\_ACEOF
34132 #define HAVE_STD_ISINF_IN_CMATH 1
34137 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34138 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34139 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34140 echo $ECHO_N "(cached) $ECHO_C" >&6
34143 ac_cpp
='$CXXCPP $CPPFLAGS'
34144 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34145 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34146 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
34148 cat >conftest.
$ac_ext <<_ACEOF
34151 cat confdefs.h
>>conftest.
$ac_ext
34152 cat >>conftest.
$ac_ext <<_ACEOF
34153 /* end confdefs.h. */
34154 #include <ieeefp.h>
34158 float f; finite(f);
34163 rm -f conftest.
$ac_objext
34164 if { (ac_try
="$ac_compile"
34165 case "(($ac_try" in
34166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34167 *) ac_try_echo=$ac_try;;
34169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170 (eval "$ac_compile") 2>conftest.er1
34172 grep -v '^ *+' conftest.er1 >conftest.err
34174 cat conftest.err >&5
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176 (exit $ac_status); } &&
34177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34178 { (case "(($ac_try" in
34179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34180 *) ac_try_echo
=$ac_try;;
34182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34183 (eval "$ac_try") 2>&5
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; } &&
34187 { ac_try
='test -s conftest.$ac_objext'
34188 { (case "(($ac_try" in
34189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34190 *) ac_try_echo=$ac_try;;
34192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34193 (eval "$ac_try") 2>&5
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); }; }; then
34197 ac_cv_func_finite_in_ieeefp_h=yes
34199 echo "$as_me: failed program was:" >&5
34200 sed 's/^/| /' conftest.$ac_ext >&5
34202 ac_cv_func_finite_in_ieeefp_h=no
34205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34207 ac_cpp='$CPP $CPPFLAGS'
34208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34213 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34214 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34216 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34218 cat >>confdefs.h <<\_ACEOF
34219 #define HAVE_FINITE_IN_IEEEFP_H 1
34226 if test "$llvm_cv_platform_type" = "Unix" ; then
34229 for ac_header in stdlib.h unistd.h
34231 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
34232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34236 echo $ECHO_N "(cached) $ECHO_C" >&6
34238 ac_res=`eval echo '${'$as_ac_Header'}'`
34239 { echo "$as_me:$LINENO: result: $ac_res" >&5
34240 echo "${ECHO_T}$ac_res" >&6; }
34242 # Is the header compilable?
34243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34245 cat >conftest.$ac_ext <<_ACEOF
34248 cat confdefs.h >>conftest.$ac_ext
34249 cat >>conftest.$ac_ext <<_ACEOF
34250 /* end confdefs.h. */
34251 $ac_includes_default
34252 #include <$ac_header>
34254 rm -f conftest.$ac_objext
34255 if { (ac_try="$ac_compile"
34256 case "(($ac_try" in
34257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34258 *) ac_try_echo
=$ac_try;;
34260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34261 (eval "$ac_compile") 2>conftest.er1
34263 grep -v '^ *+' conftest.er1
>conftest.err
34265 cat conftest.err
>&5
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); } &&
34268 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34269 { (case "(($ac_try" in
34270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34271 *) ac_try_echo=$ac_try;;
34273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34274 (eval "$ac_try") 2>&5
34276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277 (exit $ac_status); }; } &&
34278 { ac_try='test -s conftest.$ac_objext'
34279 { (case "(($ac_try" in
34280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34281 *) ac_try_echo
=$ac_try;;
34283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34284 (eval "$ac_try") 2>&5
34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287 (exit $ac_status); }; }; then
34288 ac_header_compiler
=yes
34290 echo "$as_me: failed program was:" >&5
34291 sed 's/^/| /' conftest.
$ac_ext >&5
34293 ac_header_compiler
=no
34296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34298 echo "${ECHO_T}$ac_header_compiler" >&6; }
34300 # Is the header present?
34301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34303 cat >conftest.
$ac_ext <<_ACEOF
34306 cat confdefs.h
>>conftest.
$ac_ext
34307 cat >>conftest.
$ac_ext <<_ACEOF
34308 /* end confdefs.h. */
34309 #include <$ac_header>
34311 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34312 case "(($ac_try" in
34313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34314 *) ac_try_echo=$ac_try;;
34316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34319 grep -v '^ *+' conftest.er1 >conftest.err
34321 cat conftest.err >&5
34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323 (exit $ac_status); } >/dev/null; then
34324 if test -s conftest.err; then
34325 ac_cpp_err=$ac_c_preproc_warn_flag
34326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34333 if test -z "$ac_cpp_err"; then
34334 ac_header_preproc=yes
34336 echo "$as_me: failed program was:" >&5
34337 sed 's/^/| /' conftest.$ac_ext >&5
34339 ac_header_preproc=no
34342 rm -f conftest.err conftest.$ac_ext
34343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34344 echo "${ECHO_T}$ac_header_preproc" >&6; }
34346 # So? What about this header?
34347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34353 ac_header_preproc=yes
34356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34369 ## ----------------------------------- ##
34370 ## Report this to llvmbugs@cs.uiuc.edu ##
34371 ## ----------------------------------- ##
34373 ) | sed "s/^/$as_me: WARNING: /" >&2
34376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34379 echo $ECHO_N "(cached) $ECHO_C" >&6
34381 eval "$as_ac_Header=\$ac_header_preproc"
34383 ac_res=`eval echo '${'$as_ac_Header'}'`
34384 { echo "$as_me:$LINENO: result: $ac_res" >&5
34385 echo "${ECHO_T}$ac_res" >&6; }
34388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34389 cat >>confdefs.h <<_ACEOF
34390 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
34398 for ac_func in getpagesize
34400 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34404 echo $ECHO_N "(cached) $ECHO_C" >&6
34406 cat >conftest.$ac_ext <<_ACEOF
34409 cat confdefs.h >>conftest.$ac_ext
34410 cat >>conftest.$ac_ext <<_ACEOF
34411 /* end confdefs.h. */
34412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34414 #define $ac_func innocuous_$ac_func
34416 /* System header to define __stub macros and hopefully few prototypes,
34417 which can conflict with char $ac_func (); below.
34418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34419 <limits.h> exists even on freestanding compilers. */
34422 # include <limits.h>
34424 # include <assert.h>
34429 /* Override any GCC internal prototype to avoid an error.
34430 Use char because int might match the return type of a GCC
34431 builtin and then its argument prototype would still apply. */
34436 /* The GNU C library defines this for functions which it implements
34437 to always fail with ENOSYS. Some functions are actually named
34438 something starting with __ and the normal name is an alias. */
34439 #if defined __stub_$ac_func || defined __stub___$ac_func
34446 return $ac_func ();
34451 rm -f conftest.$ac_objext conftest$ac_exeext
34452 if { (ac_try="$ac_link"
34453 case "(($ac_try" in
34454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34455 *) ac_try_echo
=$ac_try;;
34457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458 (eval "$ac_link") 2>conftest.er1
34460 grep -v '^ *+' conftest.er1
>conftest.err
34462 cat conftest.err
>&5
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); } &&
34465 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34466 { (case "(($ac_try" in
34467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34468 *) ac_try_echo=$ac_try;;
34470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34471 (eval "$ac_try") 2>&5
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); }; } &&
34475 { ac_try='test -s conftest$ac_exeext'
34476 { (case "(($ac_try" in
34477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34478 *) ac_try_echo
=$ac_try;;
34480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34481 (eval "$ac_try") 2>&5
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); }; }; then
34485 eval "$as_ac_var=yes"
34487 echo "$as_me: failed program was:" >&5
34488 sed 's/^/| /' conftest.
$ac_ext >&5
34490 eval "$as_ac_var=no"
34493 rm -f core conftest.err conftest.
$ac_objext \
34494 conftest
$ac_exeext conftest.
$ac_ext
34496 ac_res
=`eval echo '${'$as_ac_var'}'`
34497 { echo "$as_me:$LINENO: result: $ac_res" >&5
34498 echo "${ECHO_T}$ac_res" >&6; }
34499 if test `eval echo '${'$as_ac_var'}'` = yes; then
34500 cat >>confdefs.h
<<_ACEOF
34501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34507 { echo "$as_me:$LINENO: checking for working mmap" >&5
34508 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34509 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34510 echo $ECHO_N "(cached) $ECHO_C" >&6
34512 if test "$cross_compiling" = yes; then
34513 ac_cv_func_mmap_fixed_mapped
=no
34515 cat >conftest.
$ac_ext <<_ACEOF
34518 cat confdefs.h
>>conftest.
$ac_ext
34519 cat >>conftest.
$ac_ext <<_ACEOF
34520 /* end confdefs.h. */
34521 $ac_includes_default
34522 /* malloc might have been renamed as rpl_malloc. */
34525 /* Thanks to Mike Haertel and Jim Avera for this test.
34526 Here is a matrix of mmap possibilities:
34527 mmap private not fixed
34528 mmap private fixed at somewhere currently unmapped
34529 mmap private fixed at somewhere already mapped
34530 mmap shared not fixed
34531 mmap shared fixed at somewhere currently unmapped
34532 mmap shared fixed at somewhere already mapped
34533 For private mappings, we should verify that changes cannot be read()
34534 back from the file, nor mmap's back from the file at a different
34535 address. (There have been systems where private was not correctly
34536 implemented like the infamous i386 svr4.0, and systems where the
34537 VM page cache was not coherent with the file system buffer cache
34538 like early versions of FreeBSD and possibly contemporary NetBSD.)
34539 For shared mappings, we should conversely verify that changes get
34540 propagated back to all the places they're supposed to be.
34542 Grep wants private fixed already mapped.
34543 The main things grep needs to know about mmap are:
34544 * does it exist and is it safe to write into the mmap'd area
34545 * how to use it (BSD variants) */
34548 #include <sys/mman.h>
34550 #if !STDC_HEADERS && !HAVE_STDLIB_H
34554 /* This mess was copied from the GNU getpagesize.h. */
34555 #if !HAVE_GETPAGESIZE
34556 /* Assume that all systems that can run configure have sys/param.h. */
34557 # if !HAVE_SYS_PARAM_H
34558 # define HAVE_SYS_PARAM_H 1
34561 # ifdef _SC_PAGESIZE
34562 # define getpagesize() sysconf(_SC_PAGESIZE)
34563 # else /* no _SC_PAGESIZE */
34564 # if HAVE_SYS_PARAM_H
34565 # include <sys/param.h>
34566 # ifdef EXEC_PAGESIZE
34567 # define getpagesize() EXEC_PAGESIZE
34568 # else /* no EXEC_PAGESIZE */
34570 # define getpagesize() NBPG * CLSIZE
34573 # endif /* no CLSIZE */
34574 # else /* no NBPG */
34576 # define getpagesize() NBPC
34577 # else /* no NBPC */
34579 # define getpagesize() PAGESIZE
34580 # endif /* PAGESIZE */
34581 # endif /* no NBPC */
34582 # endif /* no NBPG */
34583 # endif /* no EXEC_PAGESIZE */
34584 # else /* no HAVE_SYS_PARAM_H */
34585 # define getpagesize() 8192 /* punt totally */
34586 # endif /* no HAVE_SYS_PARAM_H */
34587 # endif /* no _SC_PAGESIZE */
34589 #endif /* no HAVE_GETPAGESIZE */
34594 char *data, *data2, *data3;
34598 pagesize = getpagesize ();
34600 /* First, make a file with some known garbage in it. */
34601 data = (char *) malloc (pagesize);
34604 for (i = 0; i < pagesize; ++i)
34605 *(data + i) = rand ();
34607 fd = creat ("conftest.mmap", 0600);
34610 if (write (fd, data, pagesize) != pagesize)
34614 /* Next, try to mmap the file at a fixed address which already has
34615 something else allocated at it. If we can, also make sure that
34616 we see the same garbage. */
34617 fd = open ("conftest.mmap", O_RDWR);
34620 data2 = (char *) malloc (2 * pagesize);
34623 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34624 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34625 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34627 for (i = 0; i < pagesize; ++i)
34628 if (*(data + i) != *(data2 + i))
34631 /* Finally, make sure that changes to the mapped area do not
34632 percolate back to the file as seen by read(). (This is a bug on
34633 some variants of i386 svr4.0.) */
34634 for (i = 0; i < pagesize; ++i)
34635 *(data2 + i) = *(data2 + i) + 1;
34636 data3 = (char *) malloc (pagesize);
34639 if (read (fd, data3, pagesize) != pagesize)
34641 for (i = 0; i < pagesize; ++i)
34642 if (*(data + i) != *(data3 + i))
34648 rm -f conftest
$ac_exeext
34649 if { (ac_try
="$ac_link"
34650 case "(($ac_try" in
34651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34652 *) ac_try_echo=$ac_try;;
34654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34655 (eval "$ac_link") 2>&5
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34659 { (case "(($ac_try" in
34660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34661 *) ac_try_echo
=$ac_try;;
34663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34664 (eval "$ac_try") 2>&5
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); }; }; then
34668 ac_cv_func_mmap_fixed_mapped
=yes
34670 echo "$as_me: program exited with status $ac_status" >&5
34671 echo "$as_me: failed program was:" >&5
34672 sed 's/^/| /' conftest.
$ac_ext >&5
34674 ( exit $ac_status )
34675 ac_cv_func_mmap_fixed_mapped
=no
34677 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34682 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34683 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34684 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34686 cat >>confdefs.h
<<\_ACEOF
34687 #define HAVE_MMAP 1
34691 rm -f conftest.mmap
34693 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34694 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34695 if test "${ac_cv_func_mmap_file+set}" = set; then
34696 echo $ECHO_N "(cached) $ECHO_C" >&6
34699 ac_cpp
='$CPP $CPPFLAGS'
34700 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34701 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34702 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34704 if test "$cross_compiling" = yes; then
34705 ac_cv_func_mmap_file
=no
34707 cat >conftest.
$ac_ext <<_ACEOF
34711 cat confdefs.h
>>conftest.
$ac_ext
34712 cat >>conftest.
$ac_ext <<_ACEOF
34713 /* end confdefs.h. */
34715 #include <sys/types.h>
34716 #include <sys/mman.h>
34724 fd = creat ("foo",0777);
34725 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34727 return (fd != (int) MAP_FAILED);
34732 rm -f conftest
$ac_exeext
34733 if { (ac_try
="$ac_link"
34734 case "(($ac_try" in
34735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34736 *) ac_try_echo=$ac_try;;
34738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34739 (eval "$ac_link") 2>&5
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34743 { (case "(($ac_try" in
34744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34745 *) ac_try_echo
=$ac_try;;
34747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34748 (eval "$ac_try") 2>&5
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); }; }; then
34752 ac_cv_func_mmap_file
=yes
34754 echo "$as_me: program exited with status $ac_status" >&5
34755 echo "$as_me: failed program was:" >&5
34756 sed 's/^/| /' conftest.
$ac_ext >&5
34758 ( exit $ac_status )
34759 ac_cv_func_mmap_file
=no
34761 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34766 ac_cpp
='$CPP $CPPFLAGS'
34767 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34768 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34769 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34773 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34774 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34775 if test "$ac_cv_func_mmap_file" = yes; then
34777 cat >>confdefs.h
<<\_ACEOF
34778 #define HAVE_MMAP_FILE
34785 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34786 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34787 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34788 echo $ECHO_N "(cached) $ECHO_C" >&6
34790 if test "$llvm_cv_os_type" = "Interix" ; then
34791 ac_cv_need_dev_zero_for_mmap
=yes
34793 ac_cv_need_dev_zero_for_mmap
=no
34797 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34798 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34799 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34801 cat >>confdefs.h
<<\_ACEOF
34802 #define NEED_DEV_ZERO_FOR_MMAP 1
34807 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34809 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34810 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34812 if test "$ac_cv_func_mmap_file" = "no"
34814 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34815 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34819 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34820 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34821 cat >conftest.
$ac_ext <<_ACEOF
34824 cat confdefs.h
>>conftest.
$ac_ext
34825 cat >>conftest.
$ac_ext <<_ACEOF
34826 /* end confdefs.h. */
34828 volatile unsigned long val = 1;
34829 __sync_synchronize();
34830 __sync_val_compare_and_swap(&val, 1, 0);
34831 __sync_add_and_fetch(&val, 1);
34832 __sync_sub_and_fetch(&val, 1);
34837 rm -f conftest.
$ac_objext conftest
$ac_exeext
34838 if { (ac_try
="$ac_link"
34839 case "(($ac_try" in
34840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_link") 2>conftest.er1
34846 grep -v '^ *+' conftest.er1 >conftest.err
34848 cat conftest.err >&5
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } &&
34851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34852 { (case "(($ac_try" in
34853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34854 *) ac_try_echo
=$ac_try;;
34856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857 (eval "$ac_try") 2>&5
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); }; } &&
34861 { ac_try
='test -s conftest$ac_exeext'
34862 { (case "(($ac_try" in
34863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34864 *) ac_try_echo=$ac_try;;
34866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34867 (eval "$ac_try") 2>&5
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); }; }; then
34871 { echo "$as_me:$LINENO: result: yes" >&5
34872 echo "${ECHO_T}yes" >&6; }
34874 cat >>confdefs.h <<\_ACEOF
34875 #define LLVM_MULTITHREADED 1
34879 echo "$as_me: failed program was:" >&5
34880 sed 's/^/| /' conftest.$ac_ext >&5
34882 { echo "$as_me:$LINENO: result: no" >&5
34883 echo "${ECHO_T}no" >&6; }
34885 cat >>confdefs.h <<\_ACEOF
34886 #define LLVM_MULTITHREADED 0
34889 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34890 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34893 rm -f core conftest.err conftest.$ac_objext \
34894 conftest$ac_exeext conftest.$ac_ext
34899 for ac_func in __dso_handle
34901 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34905 echo $ECHO_N "(cached) $ECHO_C" >&6
34907 cat >conftest.$ac_ext <<_ACEOF
34910 cat confdefs.h >>conftest.$ac_ext
34911 cat >>conftest.$ac_ext <<_ACEOF
34912 /* end confdefs.h. */
34913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34915 #define $ac_func innocuous_$ac_func
34917 /* System header to define __stub macros and hopefully few prototypes,
34918 which can conflict with char $ac_func (); below.
34919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34920 <limits.h> exists even on freestanding compilers. */
34923 # include <limits.h>
34925 # include <assert.h>
34930 /* Override any GCC internal prototype to avoid an error.
34931 Use char because int might match the return type of a GCC
34932 builtin and then its argument prototype would still apply. */
34937 /* The GNU C library defines this for functions which it implements
34938 to always fail with ENOSYS. Some functions are actually named
34939 something starting with __ and the normal name is an alias. */
34940 #if defined __stub_$ac_func || defined __stub___$ac_func
34947 return $ac_func ();
34952 rm -f conftest.$ac_objext conftest$ac_exeext
34953 if { (ac_try="$ac_link"
34954 case "(($ac_try" in
34955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34956 *) ac_try_echo
=$ac_try;;
34958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34959 (eval "$ac_link") 2>conftest.er1
34961 grep -v '^ *+' conftest.er1
>conftest.err
34963 cat conftest.err
>&5
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); } &&
34966 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34967 { (case "(($ac_try" in
34968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34969 *) ac_try_echo=$ac_try;;
34971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34972 (eval "$ac_try") 2>&5
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); }; } &&
34976 { ac_try='test -s conftest$ac_exeext'
34977 { (case "(($ac_try" in
34978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34979 *) ac_try_echo
=$ac_try;;
34981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34982 (eval "$ac_try") 2>&5
34984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34985 (exit $ac_status); }; }; then
34986 eval "$as_ac_var=yes"
34988 echo "$as_me: failed program was:" >&5
34989 sed 's/^/| /' conftest.
$ac_ext >&5
34991 eval "$as_ac_var=no"
34994 rm -f core conftest.err conftest.
$ac_objext \
34995 conftest
$ac_exeext conftest.
$ac_ext
34997 ac_res
=`eval echo '${'$as_ac_var'}'`
34998 { echo "$as_me:$LINENO: result: $ac_res" >&5
34999 echo "${ECHO_T}$ac_res" >&6; }
35000 if test `eval echo '${'$as_ac_var'}'` = yes; then
35001 cat >>confdefs.h
<<_ACEOF
35002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35009 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35010 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35011 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35012 echo $ECHO_N "(cached) $ECHO_C" >&6
35014 llvm_cv_llvmgcc_sanity
="no"
35015 if test -x "$LLVMGCC" ; then
35016 cp /dev
/null conftest.c
35017 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35018 grep 'target datalayout =' > /dev
/null
2>&1
35019 if test $?
-eq 0 ; then
35020 llvm_cv_llvmgcc_sanity
="yes"
35025 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35026 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35028 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35029 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35030 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35031 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
35032 LLVMCC1
=$llvmcc1path
35034 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
35035 LLVMCC1PLUS
=$llvmcc1pluspath
35037 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35038 LLVMGCCDIR
=$llvmgccdir
35040 llvmgcclibexec
=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35041 LLVMGCCLIBEXEC
=$llvmgcclibexec
35043 llvmgccversion
=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35044 llvmgccmajvers
=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35045 LLVMGCC_VERSION
=$llvmgccversion
35047 LLVMGCC_MAJVERS
=$llvmgccmajvers
35049 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35050 LLVMGCC_LANGS
=$llvmgcclangs
35052 { echo "$as_me:$LINENO: result: ok" >&5
35053 echo "${ECHO_T}ok" >&6; }
35056 SHLIBEXT
=$libltdl_cv_shlibext
35059 # Translate the various configuration directories and other basic
35060 # information into substitutions that will end up in Makefile.config.in
35061 # that these configured values can be used by the makefiles
35062 if test "${prefix}" = "NONE" ; then
35063 prefix
="/usr/local"
35065 eval LLVM_PREFIX
="${prefix}";
35066 eval LLVM_BINDIR
="${prefix}/bin";
35067 eval LLVM_LIBDIR
="${prefix}/lib";
35068 eval LLVM_DATADIR
="${prefix}/share/llvm";
35069 eval LLVM_DOCSDIR
="${prefix}/docs/llvm";
35070 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
35071 eval LLVM_INCLUDEDIR
="${prefix}/include";
35072 eval LLVM_INFODIR
="${prefix}/info";
35073 eval LLVM_MANDIR
="${prefix}/man";
35074 LLVM_CONFIGTIME
=`date`
35086 # Place the various directores into the config.h file as #defines so that we
35087 # can know about the installation paths within LLVM.
35089 cat >>confdefs.h
<<_ACEOF
35090 #define LLVM_PREFIX "$LLVM_PREFIX"
35094 cat >>confdefs.h
<<_ACEOF
35095 #define LLVM_BINDIR "$LLVM_BINDIR"
35099 cat >>confdefs.h
<<_ACEOF
35100 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35104 cat >>confdefs.h
<<_ACEOF
35105 #define LLVM_DATADIR "$LLVM_DATADIR"
35109 cat >>confdefs.h
<<_ACEOF
35110 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35114 cat >>confdefs.h
<<_ACEOF
35115 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35119 cat >>confdefs.h
<<_ACEOF
35120 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35124 cat >>confdefs.h
<<_ACEOF
35125 #define LLVM_INFODIR "$LLVM_INFODIR"
35129 cat >>confdefs.h
<<_ACEOF
35130 #define LLVM_MANDIR "$LLVM_MANDIR"
35134 cat >>confdefs.h
<<_ACEOF
35135 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35139 cat >>confdefs.h
<<_ACEOF
35140 #define LLVM_HOSTTRIPLE "$host"
35144 # Determine which bindings to build.
35145 if test "$BINDINGS_TO_BUILD" = auto
; then
35146 BINDINGS_TO_BUILD
=""
35147 if test "x$OCAMLC" != x
-a "x$OCAMLDEP" != x
; then
35148 BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD"
35151 BINDINGS_TO_BUILD
=$BINDINGS_TO_BUILD
35154 # This isn't really configurey, but it avoids having to repeat the list in
35159 # Do any work necessary to ensure that bindings have what they need.
35160 binding_prereqs_failed
=0
35161 for a_binding
in $BINDINGS_TO_BUILD ; do
35162 case "$a_binding" in
35164 if test "x$OCAMLC" = x
; then
35165 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35166 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35167 binding_prereqs_failed
=1
35169 if test "x$OCAMLDEP" = x
; then
35170 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35171 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35172 binding_prereqs_failed
=1
35174 if test "x$OCAMLOPT" = x
; then
35175 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35176 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35178 if test "x$with_ocaml_libdir" != xauto
; then
35179 OCAML_LIBDIR
=$with_ocaml_libdir
35182 ocaml_stdlib
="`"$OCAMLC" -where`"
35183 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35185 # ocaml stdlib is beneath our prefix; use stdlib
35186 OCAML_LIBDIR
=$ocaml_stdlib
35189 # ocaml stdlib is outside our prefix; use libdir/ocaml
35190 OCAML_LIBDIR
=$LLVM_LIBDIR/ocaml
35197 if test "$binding_prereqs_failed" = 1 ; then
35198 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35199 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35200 { (exit 1); exit 1; }; }
35203 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35204 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35205 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35206 echo $ECHO_N "(cached) $ECHO_C" >&6
35209 ac_cpp
='$CXXCPP $CPPFLAGS'
35210 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35211 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35212 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
35214 oldcxxflags
="$CXXFLAGS"
35215 CXXFLAGS
="$CXXFLAGS -fvisibility-inlines-hidden"
35216 cat >conftest.
$ac_ext <<_ACEOF
35219 cat confdefs.h
>>conftest.
$ac_ext
35220 cat >>conftest.
$ac_ext <<_ACEOF
35221 /* end confdefs.h. */
35231 rm -f conftest.
$ac_objext
35232 if { (ac_try
="$ac_compile"
35233 case "(($ac_try" in
35234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35235 *) ac_try_echo=$ac_try;;
35237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35238 (eval "$ac_compile") 2>conftest.er1
35240 grep -v '^ *+' conftest.er1 >conftest.err
35242 cat conftest.err >&5
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); } &&
35245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35246 { (case "(($ac_try" in
35247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35248 *) ac_try_echo
=$ac_try;;
35250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35251 (eval "$ac_try") 2>&5
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); }; } &&
35255 { ac_try
='test -s conftest.$ac_objext'
35256 { (case "(($ac_try" in
35257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35258 *) ac_try_echo=$ac_try;;
35260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35261 (eval "$ac_try") 2>&5
35263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35264 (exit $ac_status); }; }; then
35265 llvm_cv_cxx_visibility_inlines_hidden=yes
35267 echo "$as_me: failed program was:" >&5
35268 sed 's/^/| /' conftest.$ac_ext >&5
35270 llvm_cv_cxx_visibility_inlines_hidden=no
35273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35274 CXXFLAGS="$oldcxxflags"
35276 ac_cpp='$CPP $CPPFLAGS'
35277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35283 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35284 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35285 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35286 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35289 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35294 if test "$llvm_cv_link_use_r" = "yes" ; then
35301 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35302 RDYNAMIC="-Wl,-export-dynamic"
35309 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35311 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35313 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35315 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35317 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35319 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35322 ac_config_files="$ac_config_files Makefile.config"
35325 ac_config_files="$ac_config_files llvm.spec"
35328 ac_config_files="$ac_config_files docs/doxygen.cfg"
35331 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35334 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35337 ac_config_commands="$ac_config_commands setup"
35339 ac_config_commands="$ac_config_commands Makefile"
35342 ac_config_commands="$ac_config_commands Makefile.common"
35345 ac_config_commands="$ac_config_commands examples/Makefile"
35348 ac_config_commands="$ac_config_commands lib/Makefile"
35351 ac_config_commands="$ac_config_commands runtime/Makefile"
35354 ac_config_commands="$ac_config_commands test/Makefile"
35357 ac_config_commands="$ac_config_commands test/Makefile.tests"
35360 ac_config_commands="$ac_config_commands unittests/Makefile"
35363 ac_config_commands="$ac_config_commands tools/Makefile"
35366 ac_config_commands="$ac_config_commands utils/Makefile"
35369 ac_config_commands="$ac_config_commands projects/Makefile"
35372 ac_config_commands="$ac_config_commands bindings/Makefile"
35375 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35379 cat >confcache <<\_ACEOF
35380 # This file is a shell script that caches the results of configure
35381 # tests run on this system so they can be shared between configure
35382 # scripts and configure runs, see configure's option --config-cache.
35383 # It is not useful on other systems. If it contains results you don't
35384 # want to keep, you may remove or edit it.
35386 # config.status only pays attention to the cache file if you give it
35387 # the --recheck option to rerun configure.
35389 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
35390 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35391 # following values.
35395 # The following way of writing the cache mishandles newlines in values,
35396 # but we know of no workaround that is simple, portable, and efficient.
35397 # So, we kill variables containing newlines.
35398 # Ultrix sh set writes to stderr and can't be redirected directly,
35399 # and sets the high bit in the cache file unless we assign to the vars.
35401 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35402 eval ac_val
=\$
$ac_var
35406 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35407 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35410 _ | IFS | as_nl
) ;; #(
35411 *) $as_unset $ac_var ;;
35417 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35418 *${as_nl}ac_space
=\
*)
35419 # `set' does not quote correctly, so add quotes (double-quote
35420 # substitution turns \\\\ into \\, and sed turns \\ into \).
35423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35426 # `set' quotes correctly as required by POSIX, so do not add quotes.
35427 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35436 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35438 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35440 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
35441 if test -w "$cache_file"; then
35442 test "x$cache_file" != "x/dev/null" &&
35443 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35444 echo "$as_me: updating cache $cache_file" >&6;}
35445 cat confcache
>$cache_file
35447 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35448 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35453 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35454 # Let make expand exec_prefix.
35455 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35457 DEFS
=-DHAVE_CONFIG_H
35461 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35462 # 1. Remove the extension, and $U if already installed.
35463 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35464 ac_i
=`echo "$ac_i" | sed "$ac_script"`
35465 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35466 # will be set to the directory where LIBOBJS objects are built.
35467 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35468 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35470 LIBOBJS
=$ac_libobjs
35472 LTLIBOBJS
=$ac_ltlibobjs
35475 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35476 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35477 Usually this means the macro was only invoked conditionally." >&5
35478 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35479 Usually this means the macro was only invoked conditionally." >&2;}
35480 { (exit 1); exit 1; }; }
35482 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35483 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35484 Usually this means the macro was only invoked conditionally." >&5
35485 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35486 Usually this means the macro was only invoked conditionally." >&2;}
35487 { (exit 1); exit 1; }; }
35490 : ${CONFIG_STATUS=./config.status}
35491 ac_clean_files_save
=$ac_clean_files
35492 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35493 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35494 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35495 cat >$CONFIG_STATUS <<_ACEOF
35497 # Generated by $as_me.
35498 # Run this file to recreate the current configuration.
35499 # Compiler output produced by configure, useful for debugging
35500 # configure, is in config.log if it exists.
35503 ac_cs_recheck=false
35505 SHELL=\${CONFIG_SHELL-$SHELL}
35508 cat >>$CONFIG_STATUS <<\_ACEOF
35509 ## --------------------- ##
35510 ## M4sh Initialization. ##
35511 ## --------------------- ##
35513 # Be Bourne compatible
35514 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
35517 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35518 # is contrary to our usage. Disable this feature.
35519 alias -g '${1+"$@"}'='"$@"'
35520 setopt NO_GLOB_SUBST
35522 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
35524 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
35525 DUALCASE
=1; export DUALCASE
# for MKS sh
35529 # Avoid depending upon Character Ranges.
35530 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35531 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35532 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35533 as_cr_digits
='0123456789'
35534 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35536 # The user is always right.
35537 if test "${PATH_SEPARATOR+set}" != set; then
35538 echo "#! /bin/sh" >conf$$.sh
35539 echo "exit 0" >>conf$$.sh
35541 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
35549 # Support unset when possible.
35550 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35558 # We need space, tab and new line, in precisely that order. Quoting is
35559 # there to prevent editors from complaining about space-tab.
35560 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35561 # splitting by setting IFS to empty value.)
35566 # Find who we are. Look in the path if we contain no directory separator.
35568 *[\\/]* ) as_myself
=$0 ;;
35569 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
35570 for as_dir
in $PATH
35573 test -z "$as_dir" && as_dir
=.
35574 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
35580 # We did not find ourselves, most probably we were run as `sh COMMAND'
35581 # in which case we are not to be found in the path.
35582 if test "x$as_myself" = x
; then
35585 if test ! -f "$as_myself"; then
35586 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35587 { (exit 1); exit 1; }
35590 # Work around bugs in pre-3.0 UWIN ksh.
35591 for as_var
in ENV MAIL MAILPATH
35592 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35600 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35601 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35602 LC_TELEPHONE LC_TIME
35604 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35605 eval $as_var=C
; export $as_var
35607 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35611 # Required to use basename.
35612 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35613 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35619 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35620 as_basename
=basename
35626 # Name of the executable.
35627 as_me
=`$as_basename -- "$0" ||
35628 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35629 X"$0" : 'X\(//\)$' \| \
35630 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35632 sed '/^.*\/\([^/][^/]*\)\/*$/{
35651 as_lineno_1
=$LINENO
35652 as_lineno_2
=$LINENO
35653 test "x$as_lineno_1" != "x$as_lineno_2" &&
35654 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
35656 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35657 # uniformly replaced by the line number. The first 'sed' inserts a
35658 # line-number line after each line using $LINENO; the second 'sed'
35659 # does the real work. The second script uses 'N' to pair each
35660 # line-number line with the line containing $LINENO, and appends
35661 # trailing '-' during substitution so that $LINENO is not a special
35662 # case at line end.
35663 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35664 # scripts with optimization help from Paolo Bonzini. Blame Lee
35665 # E. McMahon (1931-1989) for sed's syntax. :-)
35677 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35680 ' >$as_me.lineno
&&
35681 chmod +x
"$as_me.lineno" ||
35682 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35683 { (exit 1); exit 1; }; }
35685 # Don't try to exec as it changes $[0], causing all sort of problems
35686 # (the dirname of $[0] is not the place where we might find the
35687 # original and so on. Autoconf is especially sensitive to this).
35688 .
"./$as_me.lineno"
35689 # Exit status is that of the last command.
35694 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35700 ECHO_C
= ECHO_N
= ECHO_T
=
35701 case `echo -n x` in
35703 case `echo 'x\c'` in
35704 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35711 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35712 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35718 rm -f conf$$ conf$$.exe conf$$.
file
35719 if test -d conf$$.dir
; then
35720 rm -f conf$$.dir
/conf$$.
file
35726 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35728 # ... but there are two gotchas:
35729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35731 # In both cases, we have to default to `cp -p'.
35732 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35734 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35739 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35740 rmdir conf$$.dir
2>/dev
/null
35742 if mkdir
-p .
2>/dev
/null
; then
35745 test -d .
/-p && rmdir .
/-p
35749 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35750 # systems may use methods other than mode bits to determine executability.
35751 cat >conf$$.
file <<_ASEOF
35755 chmod +x conf$$.
file
35756 if test -x conf$$.
file >/dev
/null
2>&1; then
35757 as_executable_p
="test -x"
35763 # Sed expression to map a string onto a valid CPP name.
35764 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35766 # Sed expression to map a string onto a valid variable name.
35767 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35772 # Save the log message, to keep $[0] and so on meaningful, and to
35773 # report actual input values of CONFIG_FILES etc. instead of their
35774 # values after options handling.
35776 This file was extended by llvm $as_me 2.7svn, which was
35777 generated by GNU Autoconf 2.60. Invocation command line was
35779 CONFIG_FILES = $CONFIG_FILES
35780 CONFIG_HEADERS = $CONFIG_HEADERS
35781 CONFIG_LINKS = $CONFIG_LINKS
35782 CONFIG_COMMANDS = $CONFIG_COMMANDS
35785 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35790 cat >>$CONFIG_STATUS <<_ACEOF
35791 # Files that config.status was made for.
35792 config_files="$ac_config_files"
35793 config_headers="$ac_config_headers"
35794 config_commands="$ac_config_commands"
35798 cat >>$CONFIG_STATUS <<\_ACEOF
35800 \`$as_me' instantiates files from templates according to the
35801 current configuration.
35803 Usage: $0 [OPTIONS] [FILE]...
35805 -h, --help print this help, then exit
35806 -V, --version print version number, then exit
35807 -q, --quiet do not print progress messages
35808 -d, --debug don't remove temporary files
35809 --recheck update $as_me by reconfiguring in the same conditions
35810 --file=FILE[:TEMPLATE]
35811 instantiate the configuration file FILE
35812 --header=FILE[:TEMPLATE]
35813 instantiate the configuration header FILE
35815 Configuration files:
35818 Configuration headers:
35821 Configuration commands:
35824 Report bugs to <bug-autoconf@gnu.org>."
35827 cat >>$CONFIG_STATUS <<_ACEOF
35829 llvm config.status 2.7svn
35830 configured by $0, generated by GNU Autoconf 2.60,
35831 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35833 Copyright (C) 2006 Free Software Foundation, Inc.
35834 This config.status script is free software; the Free Software Foundation
35835 gives unlimited permission to copy, distribute and modify it."
35842 cat >>$CONFIG_STATUS <<\_ACEOF
35843 # If no file are specified by the user, then we need to provide default
35844 # value. By we need to know if files were specified by the user.
35850 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35851 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35862 # Handling of the options.
35863 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35865 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35866 echo "$ac_cs_version"; exit ;;
35867 --debug |
--debu |
--deb |
--de |
--d |
-d )
35869 --file |
--fil |
--fi |
--f )
35871 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
35872 ac_need_defaults
=false
;;
35873 --header |
--heade |
--head |
--hea )
35875 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
35876 ac_need_defaults
=false
;;
35878 # Conflict between --help and --header
35879 { echo "$as_me: error: ambiguous option: $1
35880 Try \`$0 --help' for more information." >&2
35881 { (exit 1); exit 1; }; };;
35882 --help |
--hel |
-h )
35883 echo "$ac_cs_usage"; exit ;;
35884 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35885 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35888 # This is an error.
35889 -*) { echo "$as_me: error: unrecognized option: $1
35890 Try \`$0 --help' for more information." >&2
35891 { (exit 1); exit 1; }; } ;;
35893 *) ac_config_targets
="$ac_config_targets $1"
35894 ac_need_defaults
=false
;;
35900 ac_configure_extra_args
=
35902 if $ac_cs_silent; then
35904 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35908 cat >>$CONFIG_STATUS <<_ACEOF
35909 if \$ac_cs_recheck; then
35910 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35911 CONFIG_SHELL=$SHELL
35912 export CONFIG_SHELL
35913 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35917 cat >>$CONFIG_STATUS <<\_ACEOF
35921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35922 ## Running $as_me. ##
35928 cat >>$CONFIG_STATUS <<_ACEOF
35932 llvm_src="${srcdir}"
35936 cat >>$CONFIG_STATUS <<\_ACEOF
35938 # Handling of arguments.
35939 for ac_config_target
in $ac_config_targets
35941 case $ac_config_target in
35942 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35943 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35944 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35945 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35946 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35947 "include/llvm/ADT/iterator.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35948 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
35949 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
35950 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
35951 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35952 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35953 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
35954 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
35955 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
35956 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
35957 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
35958 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
35959 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
35960 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
35961 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
35962 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
35963 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
35964 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
35965 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
35966 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35970 { (exit 1); exit 1; }; };;
35975 # If the user did not use the arguments to specify the items to instantiate,
35976 # then the envvar interface is used. Set only those that are not.
35977 # We use the long form for the default assignment because of an extremely
35978 # bizarre bug on SunOS 4.1.3.
35979 if $ac_need_defaults; then
35980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35985 # Have a temporary directory for convenience. Make it in the build tree
35986 # simply because there is no reason against having it here, and in addition,
35987 # creating and moving files from /tmp can sometimes cause problems.
35988 # Hook for its removal unless debugging.
35989 # Note that there is a small window in which the directory will not be cleaned:
35990 # after its creation but before its name has been assigned to `$tmp'.
35994 trap 'exit_status=$?
35995 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35997 trap '{ (exit 1); exit 1; }' 1 2 13 15
35999 # Create a (secure) tmp directory for tmp files.
36002 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36003 test -n "$tmp" && test -d "$tmp"
36006 tmp
=.
/conf$$
-$RANDOM
36007 (umask 077 && mkdir
"$tmp")
36010 echo "$me: cannot create a temporary directory in ." >&2
36011 { (exit 1); exit 1; }
36015 # Set up the sed scripts for CONFIG_FILES section.
36018 # No need to generate the scripts if there are no CONFIG_FILES.
36019 # This happens for instance when ./config.status config.h
36020 if test -n "$CONFIG_FILES"; then
36027 for ac_last_try
in false false false false false
:; do
36028 cat >conf$
$subs.
sed <<_ACEOF
36029 SHELL!$SHELL$ac_delim
36030 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36031 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36032 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36033 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36034 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36035 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36036 exec_prefix!$exec_prefix$ac_delim
36037 prefix!$prefix$ac_delim
36038 program_transform_name!$program_transform_name$ac_delim
36039 bindir!$bindir$ac_delim
36040 sbindir!$sbindir$ac_delim
36041 libexecdir!$libexecdir$ac_delim
36042 datarootdir!$datarootdir$ac_delim
36043 datadir!$datadir$ac_delim
36044 sysconfdir!$sysconfdir$ac_delim
36045 sharedstatedir!$sharedstatedir$ac_delim
36046 localstatedir!$localstatedir$ac_delim
36047 includedir!$includedir$ac_delim
36048 oldincludedir!$oldincludedir$ac_delim
36049 docdir!$docdir$ac_delim
36050 infodir!$infodir$ac_delim
36051 htmldir!$htmldir$ac_delim
36052 dvidir!$dvidir$ac_delim
36053 pdfdir!$pdfdir$ac_delim
36054 psdir!$psdir$ac_delim
36055 libdir!$libdir$ac_delim
36056 localedir!$localedir$ac_delim
36057 mandir!$mandir$ac_delim
36058 DEFS!$DEFS$ac_delim
36059 ECHO_C!$ECHO_C$ac_delim
36060 ECHO_N!$ECHO_N$ac_delim
36061 ECHO_T!$ECHO_T$ac_delim
36062 LIBS!$LIBS$ac_delim
36063 build_alias!$build_alias$ac_delim
36064 host_alias!$host_alias$ac_delim
36065 target_alias!$target_alias$ac_delim
36066 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36067 subdirs!$subdirs$ac_delim
36068 build!$build$ac_delim
36069 build_cpu!$build_cpu$ac_delim
36070 build_vendor!$build_vendor$ac_delim
36071 build_os!$build_os$ac_delim
36072 host!$host$ac_delim
36073 host_cpu!$host_cpu$ac_delim
36074 host_vendor!$host_vendor$ac_delim
36075 host_os!$host_os$ac_delim
36076 target!$target$ac_delim
36077 target_cpu!$target_cpu$ac_delim
36078 target_vendor!$target_vendor$ac_delim
36079 target_os!$target_os$ac_delim
36081 HOST_OS!$HOST_OS$ac_delim
36082 TARGET_OS!$TARGET_OS$ac_delim
36083 LINKALL!$LINKALL$ac_delim
36084 NOLINKALL!$NOLINKALL$ac_delim
36085 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36086 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36087 ARCH!$ARCH$ac_delim
36088 ENDIAN!$ENDIAN$ac_delim
36090 CFLAGS!$CFLAGS$ac_delim
36091 LDFLAGS!$LDFLAGS$ac_delim
36092 CPPFLAGS!$CPPFLAGS$ac_delim
36093 ac_ct_CC!$ac_ct_CC$ac_delim
36094 EXEEXT!$EXEEXT$ac_delim
36095 OBJEXT!$OBJEXT$ac_delim
36097 GREP!$GREP$ac_delim
36098 EGREP!$EGREP$ac_delim
36099 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36100 BUILD_CC!$BUILD_CC$ac_delim
36101 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36102 BUILD_CXX!$BUILD_CXX$ac_delim
36103 CVSBUILD!$CVSBUILD$ac_delim
36104 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36105 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36106 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36107 LLVM_COMPACT_SENTINELS!$LLVM_COMPACT_SENTINELS$ac_delim
36108 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36109 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36110 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36112 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36113 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36114 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36115 ENABLE_PIC!$ENABLE_PIC$ac_delim
36116 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36117 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36118 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36119 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36120 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36121 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36122 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36123 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36124 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36128 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36130 elif $ac_last_try; then
36131 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36132 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36133 { (exit 1); exit 1; }; }
36135 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36139 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36140 if test -n "$ac_eof"; then
36141 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36142 ac_eof
=`expr $ac_eof + 1`
36145 cat >>$CONFIG_STATUS <<_ACEOF
36146 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36150 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36151 s/^/s,@/; s/!/@,|#_!!_#|/
36154 s/'"$ac_delim"'$/,g/; t
36156 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36157 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36158 rm -f conf$
$subs.
sed
36159 cat >>$CONFIG_STATUS <<_ACEOF
36165 for ac_last_try
in false false false false false
:; do
36166 cat >conf$
$subs.
sed <<_ACEOF
36167 CXXFLAGS!$CXXFLAGS$ac_delim
36168 ac_ct_CXX!$ac_ct_CXX$ac_delim
36170 ifGNUmake!$ifGNUmake$ac_delim
36171 LN_S!$LN_S$ac_delim
36174 DATE!$DATE$ac_delim
36175 FIND!$FIND$ac_delim
36176 MKDIR!$MKDIR$ac_delim
36178 RANLIB!$RANLIB$ac_delim
36182 BINPWD!$BINPWD$ac_delim
36183 GRAPHVIZ!$GRAPHVIZ$ac_delim
36186 NEATO!$NEATO$ac_delim
36187 TWOPI!$TWOPI$ac_delim
36188 CIRCO!$CIRCO$ac_delim
36190 DOTTY!$DOTTY$ac_delim
36191 PERL!$PERL$ac_delim
36192 HAVE_PERL!$HAVE_PERL$ac_delim
36193 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36194 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36195 INSTALL_DATA!$INSTALL_DATA$ac_delim
36196 BZIP2!$BZIP2$ac_delim
36197 DOXYGEN!$DOXYGEN$ac_delim
36198 GROFF!$GROFF$ac_delim
36199 GZIP!$GZIP$ac_delim
36200 POD2HTML!$POD2HTML$ac_delim
36201 POD2MAN!$POD2MAN$ac_delim
36202 RUNTEST!$RUNTEST$ac_delim
36203 TCLSH!$TCLSH$ac_delim
36205 OCAMLC!$OCAMLC$ac_delim
36206 OCAMLOPT!$OCAMLOPT$ac_delim
36207 OCAMLDEP!$OCAMLDEP$ac_delim
36208 OCAMLDOC!$OCAMLDOC$ac_delim
36210 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36211 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36212 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36213 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36214 LIBADD_DL!$LIBADD_DL$ac_delim
36215 ECHO!$ECHO$ac_delim
36217 STRIP!$STRIP$ac_delim
36218 CXXCPP!$CXXCPP$ac_delim
36220 FFLAGS!$FFLAGS$ac_delim
36221 ac_ct_F77!$ac_ct_F77$ac_delim
36222 LIBTOOL!$LIBTOOL$ac_delim
36223 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36224 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36225 LLVMGCC!$LLVMGCC$ac_delim
36226 LLVMGXX!$LLVMGXX$ac_delim
36227 USE_UDIS86!$USE_UDIS86$ac_delim
36228 USE_OPROFILE!$USE_OPROFILE$ac_delim
36229 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36230 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36231 ALLOCA!$ALLOCA$ac_delim
36232 MMAP_FILE!$MMAP_FILE$ac_delim
36233 LLVMCC1!$LLVMCC1$ac_delim
36234 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36235 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36236 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36237 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36238 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36239 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36240 SHLIBEXT!$SHLIBEXT$ac_delim
36241 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36242 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36243 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36244 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36245 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36246 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36247 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36248 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36249 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36250 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36251 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36252 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36253 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36254 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36255 RPATH!$RPATH$ac_delim
36256 RDYNAMIC!$RDYNAMIC$ac_delim
36257 LIBOBJS!$LIBOBJS$ac_delim
36258 LTLIBOBJS!$LTLIBOBJS$ac_delim
36261 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
36263 elif $ac_last_try; then
36264 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36265 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36266 { (exit 1); exit 1; }; }
36268 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36272 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36273 if test -n "$ac_eof"; then
36274 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36275 ac_eof
=`expr $ac_eof + 1`
36278 cat >>$CONFIG_STATUS <<_ACEOF
36279 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36283 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36284 s/^/s,@/; s/!/@,|#_!!_#|/
36287 s/'"$ac_delim"'$/,g/; t
36289 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36290 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36291 rm -f conf$
$subs.
sed
36292 cat >>$CONFIG_STATUS <<_ACEOF
36299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36301 # trailing colons and then remove the whole line if VPATH becomes empty
36302 # (actually we leave an empty line to preserve line numbers).
36303 if test "x$srcdir" = x.
; then
36304 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
36305 s/:*\$(srcdir):*/:/
36306 s/:*\${srcdir}:*/:/
36308 s/^\([^=]*=[ ]*\):*/\1/
36314 cat >>$CONFIG_STATUS <<\_ACEOF
36315 fi # test -n "$CONFIG_FILES"
36318 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
36321 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36323 case $ac_mode$ac_tag in
36325 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36326 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36327 { (exit 1); exit 1; }; };;
36328 :[FH
]-) ac_tag
=-:-;;
36329 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36346 -) ac_f
="$tmp/stdin";;
36347 *) # Look for the file first in the build tree, then in the source tree
36348 # (if the path is not absolute). The absolute path cannot be DOS-style,
36349 # because $ac_f cannot contain `:'.
36353 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36355 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36356 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36357 { (exit 1); exit 1; }; };;
36359 ac_file_inputs
="$ac_file_inputs $ac_f"
36362 # Let's still pretend it is `configure' which instantiates (i.e., don't
36363 # use $as_me), people would be surprised to read:
36364 # /* config.h. Generated by config.status. */
36365 configure_input
="Generated from "`IFS=:
36366 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36367 if test x
"$ac_file" != x-
; then
36368 configure_input
="$ac_file. $configure_input"
36369 { echo "$as_me:$LINENO: creating $ac_file" >&5
36370 echo "$as_me: creating $ac_file" >&6;}
36374 *:-:* |
*:-) cat >"$tmp/stdin";;
36379 ac_dir
=`$as_dirname -- "$ac_file" ||
36380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36381 X"$ac_file" : 'X\(//\)[^/]' \| \
36382 X"$ac_file" : 'X\(//\)$' \| \
36383 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36389 /^X\(\/\/\)[^/].*/{
36404 -*) as_dir
=.
/$as_dir;;
36406 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36410 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36411 *) as_qdir
=$as_dir;;
36413 as_dirs
="'$as_qdir' $as_dirs"
36414 as_dir
=`$as_dirname -- "$as_dir" ||
36415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36416 X"$as_dir" : 'X\(//\)[^/]' \| \
36417 X"$as_dir" : 'X\(//\)$' \| \
36418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36424 /^X\(\/\/\)[^/].*/{
36437 test -d "$as_dir" && break
36439 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36440 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36441 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36442 { (exit 1); exit 1; }; }; }
36446 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36448 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36449 # A ".." for each directory in $ac_dir_suffix.
36450 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36451 case $ac_top_builddir_sub in
36452 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36453 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36456 ac_abs_top_builddir
=$ac_pwd
36457 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36458 # for backward compatibility:
36459 ac_top_builddir
=$ac_top_build_prefix
36462 .
) # We are building in place.
36464 ac_top_srcdir
=$ac_top_builddir_sub
36465 ac_abs_top_srcdir
=$ac_pwd ;;
36466 [\\/]* | ?
:[\\/]* ) # Absolute name.
36467 ac_srcdir
=$srcdir$ac_dir_suffix;
36468 ac_top_srcdir
=$srcdir
36469 ac_abs_top_srcdir
=$srcdir ;;
36470 *) # Relative name.
36471 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36472 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36473 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36475 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36485 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36486 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36490 cat >>$CONFIG_STATUS <<\_ACEOF
36491 # If the template does not know about datarootdir, expand it.
36492 # FIXME: This hack should be removed a few years after 2.60.
36493 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36495 case `sed -n '/datarootdir/ {
36504 ' $ac_file_inputs` in
36505 *datarootdir
*) ac_datarootdir_seen
=yes;;
36506 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36507 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36508 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36510 cat >>$CONFIG_STATUS <<_ACEOF
36511 ac_datarootdir_hack='
36512 s&@datadir@&$datadir&g
36513 s&@docdir@&$docdir&g
36514 s&@infodir@&$infodir&g
36515 s&@localedir@&$localedir&g
36516 s&@mandir@&$mandir&g
36517 s&\\\${datarootdir}&$datarootdir&g' ;;
36521 # Neutralize VPATH when `$srcdir' = `.'.
36522 # Shell code in configure.ac might set extrasub.
36523 # FIXME: do we really want to maintain this feature?
36524 cat >>$CONFIG_STATUS <<_ACEOF
36528 cat >>$CONFIG_STATUS <<\_ACEOF
36530 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36531 s
&@configure_input@
&$configure_input&;t t
36532 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36533 s
&@srcdir@
&$ac_srcdir&;t t
36534 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36535 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36536 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36537 s
&@builddir@
&$ac_builddir&;t t
36538 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36539 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36540 s
&@INSTALL@
&$ac_INSTALL&;t t
36541 $ac_datarootdir_hack
36542 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
36544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36545 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
36546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
36547 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36548 which seems to be undefined. Please make sure it is defined." >&5
36549 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36550 which seems to be undefined. Please make sure it is defined." >&2;}
36554 -) cat "$tmp/out"; rm -f "$tmp/out";;
36555 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36564 # Transform confdefs.h into a sed script `conftest.defines', that
36565 # substitutes the proper values into config.h.in to produce config.h.
36566 rm -f conftest.defines conftest.
tail
36567 # First, append a space to every undef/define line, to ease matching.
36568 echo 's/$/ /' >conftest.defines
36569 # Then, protect against being on the right side of a sed subst, or in
36570 # an unquoted here document, in config.status. If some macros were
36571 # called several times there might be several #defines for the same
36572 # symbol, which is useless. But do not sort them, since the last
36573 # AC_DEFINE must be honored.
36574 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
36575 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36576 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36577 # PARAMS is the parameter list in the macro definition--in most cases, it's
36578 # just an empty string.
36579 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36580 ac_dB
='\\)[ (].*,\\1define\\2'
36588 s/^[ ]*#[ ]*define[ ][ ]*//
36593 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36594 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36595 ' >>conftest.defines
36597 # Remove the space that was appended to ease matching.
36598 # Then replace #undef with comments. This is necessary, for
36599 # example, in the case of _POSIX_SOURCE, which is predefined and required
36600 # on some systems where configure will not decide to define it.
36601 # (The regexp can be short, since the line contains either #define or #undef.)
36603 s,^[ #]*u.*,/* & */,' >>conftest.defines
36605 # Break up conftest.defines:
36606 ac_max_sed_lines
=50
36608 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36609 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36610 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36612 ac_in
='$ac_file_inputs'
36613 ac_out
='"$tmp/out1"'
36614 ac_nxt
='"$tmp/out2"'
36618 # Write a here document:
36619 cat >>$CONFIG_STATUS <<_ACEOF
36620 # First, check the format of the line:
36621 cat >"\$tmp/defines.sed" <<\\CEOF
36622 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36623 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36627 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
36629 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36630 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
36631 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
36632 grep . conftest.
tail >/dev
/null ||
break
36633 rm -f conftest.defines
36634 mv conftest.
tail conftest.defines
36636 rm -f conftest.defines conftest.
tail
36638 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36639 cat >>$CONFIG_STATUS <<\_ACEOF
36640 if test x
"$ac_file" != x-
; then
36641 echo "/* $configure_input */" >"$tmp/config.h"
36642 cat "$ac_result" >>"$tmp/config.h"
36643 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
36644 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36645 echo "$as_me: $ac_file is unchanged" >&6;}
36648 mv "$tmp/config.h" $ac_file
36651 echo "/* $configure_input */"
36657 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36658 echo "$as_me: executing $ac_file commands" >&6;}
36663 case $ac_file$ac_mode in
36664 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
36665 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
36666 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
36667 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
36668 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
36669 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
36670 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
36671 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
36672 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
36673 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
36674 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
36675 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
36676 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
36677 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
36678 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
36679 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
36680 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
36681 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
36682 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
36683 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
36684 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
36685 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
36686 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
36687 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
36688 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
36689 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
36695 { (exit 0); exit 0; }
36697 chmod +x
$CONFIG_STATUS
36698 ac_clean_files
=$ac_clean_files_save
36701 # configure is writing to config.log, and then calls config.status.
36702 # config.status does its own redirection, appending to config.log.
36703 # Unfortunately, on DOS this fails, as config.log is still kept open
36704 # by configure, so config.status won't be able to write to it; its
36705 # output is simply discarded. So we exec the FD to /dev/null,
36706 # effectively closing config.log, so it can be properly (re)opened and
36707 # appended to by config.status. When coming back to configure, we
36708 # need to make the FD available again.
36709 if test "$no_create" != yes; then
36711 ac_config_status_args
=
36712 test "$silent" = yes &&
36713 ac_config_status_args
="$ac_config_status_args --quiet"
36715 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36717 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36718 # would make configure fail if this is the last instruction.
36719 $ac_cs_success ||
{ (exit 1); exit 1; }
36723 # CONFIG_SUBDIRS section.
36725 if test "$no_recursion" != yes; then
36727 # Remove --cache-file and --srcdir arguments so they do not pile up.
36728 ac_sub_configure_args
=
36730 eval "set x $ac_configure_args"
36734 if test -n "$ac_prev"; then
36739 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
36740 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
36741 ac_prev
=cache_file
;;
36742 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
36743 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
36746 --config-cache |
-C)
36748 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
36750 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
36752 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
36754 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
36758 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36760 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
36764 # Always prepend --prefix to ensure using the same prefix
36765 # in subdir configurations.
36766 ac_arg
="--prefix=$prefix"
36768 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36770 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
36773 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
36775 # Do not complain, so a configure script can configure whichever
36776 # parts of a large source tree are present.
36777 test -d "$srcdir/$ac_dir" ||
continue
36779 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36780 echo "$as_me:$LINENO: $ac_msg" >&5
36784 -*) as_dir
=.
/$as_dir;;
36786 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36790 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36791 *) as_qdir
=$as_dir;;
36793 as_dirs
="'$as_qdir' $as_dirs"
36794 as_dir
=`$as_dirname -- "$as_dir" ||
36795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36796 X"$as_dir" : 'X\(//\)[^/]' \| \
36797 X"$as_dir" : 'X\(//\)$' \| \
36798 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36804 /^X\(\/\/\)[^/].*/{
36817 test -d "$as_dir" && break
36819 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36820 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36821 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36822 { (exit 1); exit 1; }; }; }
36826 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36828 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36829 # A ".." for each directory in $ac_dir_suffix.
36830 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36831 case $ac_top_builddir_sub in
36832 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36833 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36836 ac_abs_top_builddir
=$ac_pwd
36837 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36838 # for backward compatibility:
36839 ac_top_builddir
=$ac_top_build_prefix
36842 .
) # We are building in place.
36844 ac_top_srcdir
=$ac_top_builddir_sub
36845 ac_abs_top_srcdir
=$ac_pwd ;;
36846 [\\/]* | ?
:[\\/]* ) # Absolute name.
36847 ac_srcdir
=$srcdir$ac_dir_suffix;
36848 ac_top_srcdir
=$srcdir
36849 ac_abs_top_srcdir
=$srcdir ;;
36850 *) # Relative name.
36851 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36852 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36853 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36855 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36860 # Check for guested configure; otherwise get Cygnus style configure.
36861 if test -f "$ac_srcdir/configure.gnu"; then
36862 ac_sub_configure
=$ac_srcdir/configure.gnu
36863 elif test -f "$ac_srcdir/configure"; then
36864 ac_sub_configure
=$ac_srcdir/configure
36865 elif test -f "$ac_srcdir/configure.in"; then
36866 # This should be Cygnus configure.
36867 ac_sub_configure
=$ac_aux_dir/configure
36869 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36870 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36874 # The recursion is here.
36875 if test -n "$ac_sub_configure"; then
36876 # Make the cache file name correct relative to the subdirectory.
36877 case $cache_file in
36878 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36879 *) # Relative name.
36880 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36883 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36884 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36885 # The eval makes quoting arguments work.
36886 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36887 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36888 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36889 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36890 { (exit 1); exit 1; }; }