2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.1cvs.
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-2007 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.1cvs'
719 PACKAGE_STRING
='llvm 2.1cvs'
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
886 CONVENIENCE_LTDL_TRUE
887 CONVENIENCE_LTDL_FALSE
926 ac_precious_vars
='build_alias
942 ac_subdirs_all
='projects/sample
944 projects/llvm-stacker
950 projects/llvm-poolalloc
951 projects/llvm-kernel'
953 # Initialize some variables set by options.
955 ac_init_version
=false
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
965 program_transform_name
=s
,x
,x
,
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir
='${exec_prefix}/bin'
980 sbindir
='${exec_prefix}/sbin'
981 libexecdir
='${exec_prefix}/libexec'
982 datarootdir
='${prefix}/share'
983 datadir
='${datarootdir}'
984 sysconfdir
='${prefix}/etc'
985 sharedstatedir
='${prefix}/com'
986 localstatedir
='${prefix}/var'
987 includedir
='${prefix}/include'
988 oldincludedir
='/usr/include'
989 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir
='${datarootdir}/info'
995 libdir
='${exec_prefix}/lib'
996 localedir
='${datarootdir}/locale'
997 mandir
='${datarootdir}/man'
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\
$ac_option
1011 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1021 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1023 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1024 bindir
=$ac_optarg ;;
1026 -build |
--build |
--buil |
--bui |
--bu)
1027 ac_prev
=build_alias
;;
1028 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1029 build_alias
=$ac_optarg ;;
1031 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1032 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1033 ac_prev
=cache_file
;;
1034 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1035 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1036 cache_file
=$ac_optarg ;;
1038 --config-cache |
-C)
1039 cache_file
=config.cache
;;
1041 -datadir |
--datadir |
--datadi |
--datad)
1043 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1044 datadir
=$ac_optarg ;;
1046 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1047 |
--dataroo |
--dataro |
--datar)
1048 ac_prev
=datarootdir
;;
1049 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1050 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1051 datarootdir
=$ac_optarg ;;
1053 -disable-* |
--disable-*)
1054 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1060 eval enable_
$ac_feature=no
;;
1062 -docdir |
--docdir |
--docdi |
--doc |
--do)
1064 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1065 docdir
=$ac_optarg ;;
1067 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1069 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1070 dvidir
=$ac_optarg ;;
1072 -enable-* |
--enable-*)
1073 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1079 eval enable_
$ac_feature=\
$ac_optarg ;;
1081 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1082 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1083 |
--exec |
--exe |
--ex)
1084 ac_prev
=exec_prefix
;;
1085 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1086 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1087 |
--exec=* |
--exe=* |
--ex=*)
1088 exec_prefix
=$ac_optarg ;;
1090 -gas |
--gas |
--ga |
--g)
1091 # Obsolete; use --with-gas.
1094 -help |
--help |
--hel |
--he |
-h)
1095 ac_init_help
=long
;;
1096 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1097 ac_init_help
=recursive
;;
1098 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1099 ac_init_help
=short
;;
1101 -host |
--host |
--hos |
--ho)
1102 ac_prev
=host_alias
;;
1103 -host=* |
--host=* |
--hos=* |
--ho=*)
1104 host_alias
=$ac_optarg ;;
1106 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1108 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1110 htmldir
=$ac_optarg ;;
1112 -includedir |
--includedir |
--includedi |
--included |
--include \
1113 |
--includ |
--inclu |
--incl |
--inc)
1114 ac_prev
=includedir
;;
1115 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1116 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1117 includedir
=$ac_optarg ;;
1119 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1121 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1122 infodir
=$ac_optarg ;;
1124 -libdir |
--libdir |
--libdi |
--libd)
1126 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1127 libdir
=$ac_optarg ;;
1129 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1130 |
--libexe |
--libex |
--libe)
1131 ac_prev
=libexecdir
;;
1132 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1133 |
--libexe=* |
--libex=* |
--libe=*)
1134 libexecdir
=$ac_optarg ;;
1136 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1137 ac_prev
=localedir
;;
1138 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1139 localedir
=$ac_optarg ;;
1141 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1142 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1143 ac_prev
=localstatedir
;;
1144 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1145 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1146 localstatedir
=$ac_optarg ;;
1148 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1150 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1151 mandir
=$ac_optarg ;;
1153 -nfp |
--nfp |
--nf)
1154 # Obsolete; use --without-fp.
1157 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1158 |
--no-cr |
--no-c |
-n)
1161 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1162 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1165 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1166 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1167 |
--oldin |
--oldi |
--old |
--ol |
--o)
1168 ac_prev
=oldincludedir
;;
1169 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1170 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1171 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1172 oldincludedir
=$ac_optarg ;;
1174 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1176 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1177 prefix
=$ac_optarg ;;
1179 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1180 |
--program-pre |
--program-pr |
--program-p)
1181 ac_prev
=program_prefix
;;
1182 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1183 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1184 program_prefix
=$ac_optarg ;;
1186 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1187 |
--program-suf |
--program-su |
--program-s)
1188 ac_prev
=program_suffix
;;
1189 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1190 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1191 program_suffix
=$ac_optarg ;;
1193 -program-transform-name |
--program-transform-name \
1194 |
--program-transform-nam |
--program-transform-na \
1195 |
--program-transform-n |
--program-transform- \
1196 |
--program-transform |
--program-transfor \
1197 |
--program-transfo |
--program-transf \
1198 |
--program-trans |
--program-tran \
1199 |
--progr-tra |
--program-tr |
--program-t)
1200 ac_prev
=program_transform_name
;;
1201 -program-transform-name=* |
--program-transform-name=* \
1202 |
--program-transform-nam=* |
--program-transform-na=* \
1203 |
--program-transform-n=* |
--program-transform-=* \
1204 |
--program-transform=* |
--program-transfor=* \
1205 |
--program-transfo=* |
--program-transf=* \
1206 |
--program-trans=* |
--program-tran=* \
1207 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1208 program_transform_name
=$ac_optarg ;;
1210 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1212 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1213 pdfdir
=$ac_optarg ;;
1215 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1217 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1220 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1221 |
-silent |
--silent |
--silen |
--sile |
--sil)
1224 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1226 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1228 sbindir
=$ac_optarg ;;
1230 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1231 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1232 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1234 ac_prev
=sharedstatedir
;;
1235 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1236 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1237 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1239 sharedstatedir
=$ac_optarg ;;
1241 -site |
--site |
--sit)
1243 -site=* |
--site=* |
--sit=*)
1246 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1248 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1249 srcdir
=$ac_optarg ;;
1251 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1252 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1253 ac_prev
=sysconfdir
;;
1254 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1255 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1256 sysconfdir
=$ac_optarg ;;
1258 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1259 ac_prev
=target_alias
;;
1260 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1261 target_alias
=$ac_optarg ;;
1263 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1266 -version |
--version |
--versio |
--versi |
--vers |
-V)
1267 ac_init_version
=: ;;
1270 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1273 { echo "$as_me: error: invalid package name: $ac_package" >&2
1274 { (exit 1); exit 1; }; }
1275 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1276 eval with_
$ac_package=\
$ac_optarg ;;
1278 -without-* |
--without-*)
1279 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1285 eval with_
$ac_package=no
;;
1288 # Obsolete; use --with-x.
1291 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1292 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1293 ac_prev
=x_includes
;;
1294 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1295 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1296 x_includes
=$ac_optarg ;;
1298 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1299 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1300 ac_prev
=x_libraries
;;
1301 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1302 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1303 x_libraries
=$ac_optarg ;;
1305 -*) { echo "$as_me: error: unrecognized option: $ac_option
1306 Try \`$0 --help' for more information." >&2
1307 { (exit 1); exit 1; }; }
1311 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1314 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315 { (exit 1); exit 1; }; }
1316 eval $ac_envvar=\
$ac_optarg
1317 export $ac_envvar ;;
1320 # FIXME: should be removed in autoconf 3.0.
1321 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1323 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330 if test -n "$ac_prev"; then
1331 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1332 { echo "$as_me: error: missing argument to $ac_option" >&2
1333 { (exit 1); exit 1; }; }
1336 # Be sure to have absolute directory names.
1337 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1342 eval ac_val
=\$
$ac_var
1344 [\\/$
]* | ?
:[\\/]* ) continue;;
1345 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1347 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348 { (exit 1); exit 1; }; }
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1356 target
=$target_alias
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x
; then
1360 if test "x$build_alias" = x
; then
1361 cross_compiling
=maybe
1362 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363 If a cross compiler is detected then cross compile mode will be used." >&2
1364 elif test "x$build_alias" != "x$host_alias"; then
1370 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1372 test "$silent" = yes && exec 6>/dev
/null
1375 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di
=`ls -di .` &&
1377 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1378 { echo "$as_me: error: Working directory cannot be determined" >&2
1379 { (exit 1); exit 1; }; }
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 { echo "$as_me: error: pwd does not report name of working directory" >&2
1382 { (exit 1); exit 1; }; }
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387 ac_srcdir_defaulted
=yes
1388 # Try the directory containing this script, then the parent directory.
1389 ac_confdir
=`$as_dirname -- "$0" ||
1390 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391 X"$0" : 'X\(//\)[^/]' \| \
1392 X"$0" : 'X\(//\)$' \| \
1393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1417 ac_srcdir_defaulted
=no
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1421 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422 { (exit 1); exit 1; }; }
1424 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1427 { (exit 1); exit 1; }; }
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1437 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 for ac_var
in $ac_precious_vars; do
1440 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1442 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1447 # Report the --help message.
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1453 \`configure' configures llvm 2.1cvs to adapt to many kinds of systems.
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1460 Defaults for the options are specified in brackets.
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1484 For better control, use the options below.
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1511 --build=BUILD configure
for building on BUILD
[guessed
]
1512 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1513 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1517 if test -n "$ac_init_help"; then
1518 case $ac_init_help in
1519 short | recursive
) echo "Configuration of llvm 2.1cvs:";;
1524 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1525 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1528 --enable-debug-runtime
1529 --enable-jit Enable Just In Time Compiling
(default is YES
)
1530 --enable-doxygen Build doxygen documentation
(default is NO
)
1531 --enable-threads Use threads
if available
(default is YES
)
1532 --enable-pic Build LLVM with Position Independent Code
(default
1534 --enable-targets Build specific
host targets
:
1535 all
,host-only
,{target-name
} (default
=all
)
1536 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1538 --enable-ltdl-install install libltdl
1539 --enable-shared[=PKGS
] build shared libraries
1540 [default
=enable_shared_default
]
1541 --enable-static[=PKGS
] build static libraries
1542 [default
=enable_static_default
]
1543 --enable-fast-install[=PKGS
]
1544 optimize
for fast installation
1545 [default
=enable_Fast_install_default
]
1546 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1549 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1550 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1551 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1553 --with-extra-options Specify addtional options to compile LLVM with
1554 --with-tclinclude directory where tcl headers are
1555 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1556 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1558 --with-tags[=TAGS
] include additional configurations
[automatic
]
1559 --with-udis86=<path
> Use udis86 external x86 disassembler library
1561 Some influential environment variables
:
1562 CC C compiler
command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1565 nonstandard directory
<lib dir
>
1566 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1567 you have headers
in a nonstandard directory
<include dir
>
1569 CXX C
++ compiler
command
1570 CXXFLAGS C
++ compiler flags
1571 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1572 the first program found out of: `bison
-y', `byacc', `yacc'.
1573 YFLAGS The list of arguments that will be passed by default to $YACC.
1574 This script will default YFLAGS to the empty string to avoid a
1575 default value of `-d' given by some make applications.
1576 CXXCPP C++ preprocessor
1577 F77 Fortran 77 compiler command
1578 FFLAGS Fortran 77 compiler flags
1580 Use these variables to override the choices made by `configure' or to
help
1581 it to
find libraries and programs with nonstandard names
/locations.
1583 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1588 if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
1590 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1591 test -d "$ac_dir" ||
continue
1595 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1597 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1598 # A ".." for each directory in $ac_dir_suffix.
1599 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1600 case $ac_top_builddir_sub in
1601 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1602 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1605 ac_abs_top_builddir
=$ac_pwd
1606 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1607 # for backward compatibility:
1608 ac_top_builddir
=$ac_top_build_prefix
1611 .
) # We are building in place.
1613 ac_top_srcdir
=$ac_top_builddir_sub
1614 ac_abs_top_srcdir
=$ac_pwd ;;
1615 [\\/]* | ?
:[\\/]* ) # Absolute name.
1616 ac_srcdir
=$srcdir$ac_dir_suffix;
1617 ac_top_srcdir
=$srcdir
1618 ac_abs_top_srcdir
=$srcdir ;;
1620 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1622 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1624 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1626 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1627 # Check for guested configure.
1628 if test -f "$ac_srcdir/configure.gnu"; then
1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631 elif test -f "$ac_srcdir/configure"; then
1633 $SHELL "$ac_srcdir/configure" --help=recursive
1635 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1637 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1641 test -n "$ac_init_help" && exit $ac_status
1642 if $ac_init_version; then
1644 llvm configure
2.1cvs
1645 generated by GNU Autoconf
2.60
1647 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1648 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1649 This configure
script is free software
; the Free Software Foundation
1650 gives unlimited permission to copy
, distribute and modify it.
1652 Copyright
(c
) 2003-2007 University of Illinois
at Urbana-Champaign.
1656 cat >config.log
<<_ACEOF
1657 This file contains any messages produced by compilers while
1658 running configure, to aid debugging if configure makes a mistake.
1660 It was created by llvm $as_me 2.1cvs, which was
1661 generated by GNU Autoconf 2.60. Invocation command line was
1673 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1674 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1675 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1676 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1677 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1679 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1680 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1682 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1683 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1684 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1685 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1686 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1687 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1688 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1696 test -z "$as_dir" && as_dir
=.
1697 echo "PATH: $as_dir"
1713 # Keep a trace of the command line.
1714 # Strip out --no-create and --no-recursion so they do not pile up.
1715 # Strip out --silent because we don't want to record it for future runs.
1716 # Also quote any args containing shell meta-characters.
1717 # Make two passes to allow for proper duplicate-argument suppression.
1721 ac_must_keep_next
=false
1727 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1728 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1729 |
-silent |
--silent |
--silen |
--sile |
--sil)
1732 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1735 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1737 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1738 if test $ac_must_keep_next = true
; then
1739 ac_must_keep_next
=false
# Got value, back to normal.
1742 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1743 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1744 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1745 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1746 case "$ac_configure_args0 " in
1747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1750 -* ) ac_must_keep_next
=true
;;
1753 ac_configure_args
="$ac_configure_args '$ac_arg'"
1758 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1759 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1761 # When interrupted or exit'd, cleanup temporary files, and complete
1762 # config.log. We remove comments because anyway the quotes in there
1763 # would cause problems or look ugly.
1764 # WARNING: Use '\'' to represent an apostrophe within the trap.
1765 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1766 trap 'exit_status=$?
1767 # Save into config.log some information that might help in debugging.
1772 ## ---------------- ##
1773 ## Cache variables. ##
1774 ## ---------------- ##
1777 # The following way of writing the cache mishandles newlines in values,
1779 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1780 eval ac_val=\$$ac_var
1784 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1785 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1788 _ | IFS | as_nl) ;; #(
1789 *) $as_unset $ac_var ;;
1794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1795 *${as_nl}ac_space=\ *)
1797 "s/'\''/'\''\\\\'\'''\''/g;
1798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1809 ## ----------------- ##
1810 ## Output variables. ##
1811 ## ----------------- ##
1814 for ac_var in $ac_subst_vars
1816 eval ac_val=\$$ac_var
1818 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820 echo "$ac_var='\''$ac_val'\''"
1824 if test -n "$ac_subst_files"; then
1826 ## ------------------- ##
1827 ## File substitutions. ##
1828 ## ------------------- ##
1831 for ac_var
in $ac_subst_files
1833 eval ac_val
=\$
$ac_var
1835 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 echo "$ac_var='\''$ac_val'\''"
1842 if test -s confdefs.h; then
1852 test "$ac_signal" != 0 &&
1853 echo "$as_me: caught signal $ac_signal"
1854 echo "$as_me: exit $exit_status"
1856 rm -f core *.core core.conftest.* &&
1857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1860 for ac_signal
in 1 2 13 15; do
1861 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1866 rm -f -r conftest
* confdefs.h
1868 # Predefined preprocessor variables.
1870 cat >>confdefs.h
<<_ACEOF
1871 #define PACKAGE_NAME "$PACKAGE_NAME"
1875 cat >>confdefs.h
<<_ACEOF
1876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1880 cat >>confdefs.h
<<_ACEOF
1881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1885 cat >>confdefs.h
<<_ACEOF
1886 #define PACKAGE_STRING "$PACKAGE_STRING"
1890 cat >>confdefs.h
<<_ACEOF
1891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1895 # Let the site file select an alternate cache file if it wants to.
1896 # Prefer explicitly selected file to automatically selected ones.
1897 if test -n "$CONFIG_SITE"; then
1898 set x
"$CONFIG_SITE"
1899 elif test "x$prefix" != xNONE
; then
1900 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1902 set x
"$ac_default_prefix/share/config.site" \
1903 "$ac_default_prefix/etc/config.site"
1908 if test -r "$ac_site_file"; then
1909 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910 echo "$as_me: loading site script $ac_site_file" >&6;}
1911 sed 's/^/| /' "$ac_site_file" >&5
1916 if test -r "$cache_file"; then
1917 # Some versions of bash will fail to source /dev/null (special
1918 # files actually), so we avoid doing that.
1919 if test -f "$cache_file"; then
1920 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921 echo "$as_me: loading cache $cache_file" >&6;}
1923 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1924 *) .
"./$cache_file";;
1928 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929 echo "$as_me: creating cache $cache_file" >&6;}
1933 # Check that the precious variables saved in the cache have kept the same
1935 ac_cache_corrupted
=false
1936 for ac_var
in $ac_precious_vars; do
1937 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1938 eval ac_new_set
=\
$ac_env_${ac_var}_set
1939 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1940 eval ac_new_val
=\
$ac_env_${ac_var}_value
1941 case $ac_old_set,$ac_new_set in
1943 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1944 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1945 ac_cache_corrupted
=: ;;
1947 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1948 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1949 ac_cache_corrupted
=: ;;
1952 if test "x$ac_old_val" != "x$ac_new_val"; then
1953 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1954 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1955 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1956 echo "$as_me: former value: $ac_old_val" >&2;}
1957 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1958 echo "$as_me: current value: $ac_new_val" >&2;}
1959 ac_cache_corrupted
=:
1962 # Pass precious variables to config.status.
1963 if test "$ac_new_set" = set; then
1965 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1966 *) ac_arg
=$ac_var=$ac_new_val ;;
1968 case " $ac_configure_args " in
1969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1970 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1974 if $ac_cache_corrupted; then
1975 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1976 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1977 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979 { (exit 1); exit 1; }; }
2007 ac_cpp
='$CPP $CPPFLAGS'
2008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2014 LLVM_COPYRIGHT
="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2023 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2024 if test -f "$ac_dir/install-sh"; then
2026 ac_install_sh
="$ac_aux_dir/install-sh -c"
2028 elif test -f "$ac_dir/install.sh"; then
2030 ac_install_sh
="$ac_aux_dir/install.sh -c"
2032 elif test -f "$ac_dir/shtool"; then
2034 ac_install_sh
="$ac_aux_dir/shtool install -c"
2038 if test -z "$ac_aux_dir"; then
2039 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2040 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2041 { (exit 1); exit 1; }; }
2044 # These three variables are undocumented and unsupported,
2045 # and are intended to be withdrawn in a future Autoconf release.
2046 # They can cause serious problems if a builder's source tree is in a directory
2047 # whose full name contains unusual characters.
2048 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2049 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2050 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2054 if test ${srcdir} != "." ; then
2055 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
2056 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2057 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2058 { (exit 1); exit 1; }; }
2062 for i
in `ls ${srcdir}/projects`
2064 if test -d ${srcdir}/projects
/${i} ; then
2067 sample
) subdirs
="$subdirs projects/sample"
2069 privbracket
) subdirs
="$subdirs projects/privbracket"
2071 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
2073 llvm-test
) subdirs
="$subdirs projects/llvm-test"
2075 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
2077 llvm-gcc
) subdirs
="$subdirs projects/llvm-gcc"
2079 llvm-java
) subdirs
="$subdirs projects/llvm-java"
2081 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2083 llvm-poolalloc
) subdirs
="$subdirs projects/llvm-poolalloc"
2085 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2088 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2089 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2096 # Make sure we can run config.sub.
2097 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2098 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: checking build system type" >&5
2103 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_build+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 ac_build_alias
=$build_alias
2108 test "x$ac_build_alias" = x
&&
2109 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2110 test "x$ac_build_alias" = x
&&
2111 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113 { (exit 1); exit 1; }; }
2114 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121 echo "${ECHO_T}$ac_cv_build" >&6; }
2122 case $ac_cv_build in
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125 echo "$as_me: error: invalid value of canonical build" >&2;}
2126 { (exit 1); exit 1; }; };;
2129 ac_save_IFS
=$IFS; IFS
='-'
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2139 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2142 { echo "$as_me:$LINENO: checking host system type" >&5
2143 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2144 if test "${ac_cv_host+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test "x$host_alias" = x
; then
2148 ac_cv_host
=$ac_cv_build
2150 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2157 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158 echo "${ECHO_T}$ac_cv_host" >&6; }
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162 echo "$as_me: error: invalid value of canonical host" >&2;}
2163 { (exit 1); exit 1; }; };;
2166 ac_save_IFS
=$IFS; IFS
='-'
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2176 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2179 { echo "$as_me:$LINENO: checking target system type" >&5
2180 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_target+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 if test "x$target_alias" = x
; then
2185 ac_cv_target
=$ac_cv_host
2187 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2188 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2189 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2190 { (exit 1); exit 1; }; }
2194 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195 echo "${ECHO_T}$ac_cv_target" >&6; }
2196 case $ac_cv_target in
2198 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2199 echo "$as_me: error: invalid value of canonical target" >&2;}
2200 { (exit 1); exit 1; }; };;
2202 target
=$ac_cv_target
2203 ac_save_IFS
=$IFS; IFS
='-'
2209 # Remember, the first character of IFS is used to create $*,
2210 # except with old shells:
2213 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2216 # The aliases save the names the user supplied, while $host etc.
2217 # will get canonicalized.
2218 test -n "$target_alias" &&
2219 test "$program_prefix$program_suffix$program_transform_name" = \
2221 program_prefix
=${target_alias}-
2223 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2224 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2225 if test "${llvm_cv_os_type+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 llvm_cv_link_all_option
="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2232 llvm_cv_os_type
="AIX"
2233 llvm_cv_platform_type
="Unix" ;;
2235 llvm_cv_link_all_option
="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2237 llvm_cv_os_type
="IRIX"
2238 llvm_cv_platform_type
="Unix" ;;
2240 llvm_cv_link_all_option
="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2242 llvm_cv_os_type
="Cygwin"
2243 llvm_cv_platform_type
="Unix" ;;
2245 llvm_cv_link_all_option
="-Wl,-all_load"
2246 llvm_cv_link_all_option
="-Wl,-noall_load"
2247 llvm_cv_os_type
="Darwin"
2248 llvm_cv_platform_type
="Unix" ;;
2250 llvm_cv_link_all_option
="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2252 llvm_cv_os_type
="FreeBSD"
2253 llvm_cv_platform_type
="Unix" ;;
2255 llvm_cv_link_all_option
="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2257 llvm_cv_os_type
="OpenBSD"
2258 llvm_cv_platform_type
="Unix" ;;
2260 llvm_cv_link_all_option
="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2262 llvm_cv_os_type
="NetBSD"
2263 llvm_cv_platform_type
="Unix" ;;
2265 llvm_cv_link_all_option
="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2267 llvm_cv_os_type
="HP-UX"
2268 llvm_cv_platform_type
="Unix" ;;
2270 llvm_cv_link_all_option
="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2272 llvm_cv_os_type
="Interix"
2273 llvm_cv_platform_type
="Unix" ;;
2275 llvm_cv_link_all_option
="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2277 llvm_cv_os_type
="Linux"
2278 llvm_cv_platform_type
="Unix" ;;
2280 llvm_cv_link_all_option
="-Wl,-z,allextract"
2281 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2282 llvm_cv_os_type
="SunOS"
2283 llvm_cv_platform_type
="Unix" ;;
2285 llvm_cv_link_all_option
="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2287 llvm_cv_os_type
="Win32"
2288 llvm_cv_platform_type
="Win32" ;;
2290 llvm_cv_link_all_option
="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2292 llvm_cv_os_type
="MingW"
2293 llvm_cv_platform_type
="Win32" ;;
2295 llvm_cv_link_all_option
=""
2296 llvm_cv_no_link_all_option
=""
2297 llvm_cv_os_type
="Unknown"
2298 llvm_cv_platform_type
="Unknown" ;;
2301 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2302 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2304 if test "$llvm_cv_os_type" = "Unknown" ; then
2305 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2307 { (exit 1); exit 1; }; }
2313 LINKALL
=$llvm_cv_link_all_option
2315 NOLINKALL
=$llvm_cv_no_link_all_option
2318 case $llvm_cv_platform_type in
2321 cat >>confdefs.h
<<\_ACEOF
2322 #define LLVM_ON_UNIX 1
2332 cat >>confdefs.h
<<\_ACEOF
2333 #define LLVM_ON_WIN32 1
2343 { echo "$as_me:$LINENO: checking target architecture" >&5
2344 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2345 if test "${llvm_cv_target_arch+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 i?
86-*) llvm_cv_target_arch
="x86" ;;
2350 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2351 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2352 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2353 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2354 ia64-
*) llvm_cv_target_arch
="IA64" ;;
2355 arm-
*) llvm_cv_target_arch
="ARM" ;;
2356 *) llvm_cv_target_arch
="Unknown" ;;
2359 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2360 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2362 if test "$llvm_cv_target_arch" = "Unknown" ; then
2363 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2364 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2367 ARCH
=$llvm_cv_target_arch
2371 ac_cpp
='$CPP $CPPFLAGS'
2372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2375 if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2377 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC
="$CC" # Let the user override the test.
2386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir
=.
2391 for ac_exec_ext
in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 if test -n "$CC"; then
2405 { echo "$as_me:$LINENO: result: $CC" >&5
2406 echo "${ECHO_T}$CC" >&6; }
2408 { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2414 if test -z "$ac_cv_prog_CC"; then
2416 # Extract the first word of "gcc", so it can be a program name with args.
2417 set dummy gcc
; ac_word
=$2
2418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2430 test -z "$as_dir" && as_dir
=.
2431 for ac_exec_ext
in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2433 ac_cv_prog_ac_ct_CC
="gcc"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2444 if test -n "$ac_ct_CC"; then
2445 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446 echo "${ECHO_T}$ac_ct_CC" >&6; }
2448 { echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6; }
2452 if test "x$ac_ct_CC" = x
; then
2455 case $cross_compiling:$ac_tool_warned in
2457 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2458 whose name does not start with the host triplet. If you think this
2459 configuration is useful to you, please write to autoconf@gnu.org." >&5
2460 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2461 whose name does not start with the host triplet. If you think this
2462 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2463 ac_tool_warned
=yes ;;
2471 if test -z "$CC"; then
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2474 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 if test -n "$CC"; then
2481 ac_cv_prog_CC
="$CC" # Let the user override the test.
2483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir
=.
2488 for ac_exec_ext
in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 if test -n "$CC"; then
2502 { echo "$as_me:$LINENO: result: $CC" >&5
2503 echo "${ECHO_T}$CC" >&6; }
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2512 if test -z "$CC"; then
2513 # Extract the first word of "cc", so it can be a program name with args.
2514 set dummy cc
; ac_word
=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC
="$CC" # Let the user override the test.
2524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2528 test -z "$as_dir" && as_dir
=.
2529 for ac_exec_ext
in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2532 ac_prog_rejected
=yes
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 if test $ac_prog_rejected = yes; then
2544 # We found a bogon in the path, so make sure we never use it.
2545 set dummy
$ac_cv_prog_CC
2547 if test $# != 0; then
2548 # We chose a different compiler from the bogus one.
2549 # However, it has the same basename, so the bogon will be chosen
2550 # first if we set CC to just the basename; use the full file name.
2552 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2558 if test -n "$CC"; then
2559 { echo "$as_me:$LINENO: result: $CC" >&5
2560 echo "${ECHO_T}$CC" >&6; }
2562 { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2568 if test -z "$CC"; then
2569 if test -n "$ac_tool_prefix"; then
2570 for ac_prog
in cl.exe
2572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC
="$CC" # Let the user override the test.
2582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir
=.
2587 for ac_exec_ext
in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 if test -n "$CC"; then
2601 { echo "$as_me:$LINENO: result: $CC" >&5
2602 echo "${ECHO_T}$CC" >&6; }
2604 { echo "$as_me:$LINENO: result: no" >&5
2605 echo "${ECHO_T}no" >&6; }
2609 test -n "$CC" && break
2612 if test -z "$CC"; then
2614 for ac_prog
in cl.exe
2616 # Extract the first word of "$ac_prog", so it can be a program name with args.
2617 set dummy
$ac_prog; ac_word
=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 if test -n "$ac_ct_CC"; then
2624 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir
=.
2631 for ac_exec_ext
in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_ac_ct_CC
="$ac_prog"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2644 if test -n "$ac_ct_CC"; then
2645 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2646 echo "${ECHO_T}$ac_ct_CC" >&6; }
2648 { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2653 test -n "$ac_ct_CC" && break
2656 if test "x$ac_ct_CC" = x
; then
2659 case $cross_compiling:$ac_tool_warned in
2661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662 whose name does not start with the host triplet. If you think this
2663 configuration is useful to you, please write to autoconf@gnu.org." >&5
2664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet. If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667 ac_tool_warned
=yes ;;
2676 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2677 See \`config.log' for more details." >&5
2678 echo "$as_me: error: no acceptable C compiler found in \$PATH
2679 See \`config.log' for more details." >&2;}
2680 { (exit 1); exit 1; }; }
2682 # Provide some information about the compiler.
2683 echo "$as_me:$LINENO: checking for C compiler version" >&5
2684 ac_compiler
=`set X $ac_compile; echo $2`
2685 { (ac_try
="$ac_compiler --version >&5"
2687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compiler --version >&5") 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2695 { (ac_try="$ac_compiler -v >&5"
2697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2698 *) ac_try_echo
=$ac_try;;
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compiler -v >&5") 2>&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2705 { (ac_try
="$ac_compiler -V >&5"
2707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compiler -V >&5") 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2716 cat >conftest.$ac_ext <<_ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2731 ac_clean_files_save=$ac_clean_files
2732 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2733 # Try to create an executable without -o first, disregard a.out.
2734 # It will help us diagnose broken compilers, and finding out an intuition
2736 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2737 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2738 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2740 # List of possible output files, starting from the most likely.
2741 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2742 # only as a last resort. b.out is created by i960 compilers.
2743 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2745 # The IRIX 6 linker writes into existing files which may not be
2746 # executable, retaining their permissions. Remove them first so a
2747 # subsequent execution test works.
2749 for ac_file in $ac_files
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2753 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2758 if { (ac_try="$ac_link_default"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_link_default") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; then
2768 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2769 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2770 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2771 # so that the user can short-circuit this test for compilers unknown to
2773 for ac_file
in $ac_files
2775 test -f "$ac_file" ||
continue
2777 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2780 # We found the default executable, but exeext='' is most
2784 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2786 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2788 # We set ac_cv_exeext here because the later test for it is not
2789 # safe: cross compilers may not add the suffix if given an `-o'
2790 # argument, so we may need to know it at that point already.
2791 # Even if this section looks crufty: it has the advantage of
2798 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.
$ac_ext >&5
2804 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: C compiler cannot create executables
2807 See \`config.log' for more details." >&2;}
2808 { (exit 77); exit 77; }; }
2811 ac_exeext
=$ac_cv_exeext
2812 { echo "$as_me:$LINENO: result: $ac_file" >&5
2813 echo "${ECHO_T}$ac_file" >&6; }
2815 # Check that the compiler produces executables we can run. If not, either
2816 # the compiler is broken, or we cross compile.
2817 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2818 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2819 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2820 # If not cross compiling, check that we can run a simple program.
2821 if test "$cross_compiling" != yes; then
2822 if { ac_try
='./$ac_file'
2823 { (case "(($ac_try" in
2824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_try") 2>&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2834 if test "$cross_compiling" = maybe; then
2837 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2838 If you meant to cross compile, use \`--host'.
2839 See \`config.log' for more details.
" >&5
2840 echo "$as_me: error
: cannot run C compiled programs.
2841 If you meant to cross compile
, use \
`--host'.
2842 See \`config.log
' for more details." >&2;}
2843 { (exit 1); exit 1; }; }
2847 { echo "$as_me:$LINENO: result: yes" >&5
2848 echo "${ECHO_T}yes" >&6; }
2850 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2851 ac_clean_files=$ac_clean_files_save
2852 # Check that the compiler produces executables we can run. If not, either
2853 # the compiler is broken, or we cross compile.
2854 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2855 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2856 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2857 echo "${ECHO_T}$cross_compiling" >&6; }
2859 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2860 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2861 if { (ac_try="$ac_link"
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_link") 2>&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; then
2871 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2872 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2873 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2875 for ac_file
in conftest.exe conftest conftest.
*; do
2876 test -f "$ac_file" ||
continue
2878 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2879 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2885 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2886 See \`config.log' for more details." >&5
2887 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2888 See \`config.log' for more details." >&2;}
2889 { (exit 1); exit 1; }; }
2892 rm -f conftest
$ac_cv_exeext
2893 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2894 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2896 rm -f conftest.
$ac_ext
2897 EXEEXT
=$ac_cv_exeext
2899 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2900 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2901 if test "${ac_cv_objext+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 cat >conftest.
$ac_ext <<_ACEOF
2907 cat confdefs.h
>>conftest.
$ac_ext
2908 cat >>conftest.
$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2919 rm -f conftest.o conftest.obj
2920 if { (ac_try
="$ac_compile"
2922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compile") 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 for ac_file in conftest.o conftest.obj conftest.*; do
2931 test -f "$ac_file" || continue;
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2942 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2943 See \`config.log
' for more details." >&5
2944 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2945 See \`config.log' for more details.
" >&2;}
2946 { (exit 1); exit 1; }; }
2949 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2951 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2952 echo "${ECHO_T}$ac_cv_objext" >&6; }
2953 OBJEXT=$ac_cv_objext
2955 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2956 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2957 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2958 echo $ECHO_N "(cached
) $ECHO_C" >&6
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2978 rm -f conftest.$ac_objext
2979 if { (ac_try="$ac_compile"
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_try") 2>&5
3000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3001 (exit $ac_status); }; } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_try") 2>&5
3010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3011 (exit $ac_status); }; }; then
3014 echo "$as_me: failed program was
:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3024 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3025 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3026 GCC=`test $ac_compiler_gnu = yes && echo yes`
3027 ac_test_CFLAGS=${CFLAGS+set}
3028 ac_save_CFLAGS=$CFLAGS
3029 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3030 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3031 if test "${ac_cv_prog_cc_g+set}" = set; then
3032 echo $ECHO_N "(cached
) $ECHO_C" >&6
3034 ac_save_c_werror_flag=$ac_c_werror_flag
3035 ac_c_werror_flag=yes
3038 cat >conftest.$ac_ext <<_ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_compile") 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_try") 2>&5
3075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
3078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
3085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3086 (exit $ac_status); }; }; then
3089 echo "$as_me: failed program was
:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3141 (exit $ac_status); }; }; then
3144 echo "$as_me: failed program was
:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3197 (exit $ac_status); }; }; then
3200 echo "$as_me: failed program was
:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3215 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3216 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3217 if test "$ac_test_CFLAGS" = set; then
3218 CFLAGS=$ac_save_CFLAGS
3219 elif test $ac_cv_prog_cc_g = yes; then
3220 if test "$GCC" = yes; then
3226 if test "$GCC" = yes; then
3232 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3233 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3234 if test "${ac_cv_prog_cc_c89+set}" = set; then
3235 echo $ECHO_N "(cached
) $ECHO_C" >&6
3237 ac_cv_prog_cc_c89=no
3239 cat >conftest.$ac_ext <<_ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3247 #include <sys/types.h>
3248 #include <sys/stat.h>
3249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3250 struct buf { int x; };
3251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252 static char *e (p, i)
3258 static char *f (char * (*g) (char **, int), char **p, ...)
3263 s = g (p, va_arg (v,int));
3268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3269 function prototypes and stuff, but not '\xHH' hex character constants.
3270 These don't provoke an error unfortunately, instead are silently treated
3271 as 'x'. The following induces an error, until -std is added to get
3272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3273 array size at least. It's necessary to write '\x00'==0 to get something
3274 that's true only with -std. */
3275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278 inside strings and character constants. */
3280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3282 int test (int i, double x);
3283 struct s1 {int (*f) (int a);};
3284 struct s2 {int (*f) (double a);};
3285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3291 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3299 CC="$ac_save_CC $ac_arg"
3300 rm -f conftest.$ac_objext
3301 if { (ac_try="$ac_compile"
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_compile") 2>conftest.er1
3309 grep -v '^ *+' conftest.er1 >conftest.err
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
3322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3323 (exit $ac_status); }; } &&
3324 { ac_try='test -s conftest.$ac_objext'
3325 { (case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_try") 2>&5
3332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_prog_cc_c89=$ac_arg
3336 echo "$as_me: failed program was
:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3342 rm -f core conftest.err conftest.$ac_objext
3343 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3345 rm -f conftest.$ac_ext
3350 case "x
$ac_cv_prog_cc_c89" in
3352 { echo "$as_me:$LINENO: result
: none needed
" >&5
3353 echo "${ECHO_T}none needed
" >&6; } ;;
3355 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3356 echo "${ECHO_T}unsupported
" >&6; } ;;
3358 CC="$CC $ac_cv_prog_cc_c89"
3359 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3377 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3378 # On Suns, sometimes $CPP names a directory.
3379 if test -n "$CPP" && test -d "$CPP"; then
3382 if test -z "$CPP"; then
3383 if test "${ac_cv_prog_CPP+set}" = set; then
3384 echo $ECHO_N "(cached
) $ECHO_C" >&6
3386 # Double quotes because CPP needs to be expanded
3387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3390 for ac_c_preproc_warn_flag in '' yes
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error
" is here to catch this case.
3398 cat >conftest.$ac_ext <<_ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3405 # include <limits.h>
3407 # include <assert.h>
3411 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3419 grep -v '^ *+' conftest.er1 >conftest.err
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_c_preproc_warn_flag
3426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3433 if test -z "$ac_cpp_err"; then
3436 echo "$as_me: failed program was
:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 # Broken: fails on valid input.
3443 rm -f conftest.err conftest.$ac_ext
3445 # OK, works on sane cases. Now check whether nonexistent headers
3446 # can be detected and how.
3447 cat >conftest.$ac_ext <<_ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #include <ac_nonexistent.h>
3455 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3463 grep -v '^ *+' conftest.er1 >conftest.err
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3467 (exit $ac_status); } >/dev/null; then
3468 if test -s conftest.err; then
3469 ac_cpp_err=$ac_c_preproc_warn_flag
3470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3477 if test -z "$ac_cpp_err"; then
3478 # Broken: success on invalid input.
3481 echo "$as_me: failed program was
:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 # Passes both tests.
3489 rm -f conftest.err conftest.$ac_ext
3492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3493 rm -f conftest.err conftest.$ac_ext
3494 if $ac_preproc_ok; then
3506 { echo "$as_me:$LINENO: result
: $CPP" >&5
3507 echo "${ECHO_T}$CPP" >&6; }
3509 for ac_c_preproc_warn_flag in '' yes
3511 # Use a header file that comes with gcc, so configuring glibc
3512 # with a fresh cross-compiler works.
3513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3514 # <limits.h> exists even on freestanding compilers.
3515 # On the NeXT, cc -E runs the code through the compiler's parser,
3516 # not just through cpp. "Syntax error
" is here to catch this case.
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3524 # include <limits.h>
3526 # include <assert.h>
3530 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3538 grep -v '^ *+' conftest.er1 >conftest.err
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3542 (exit $ac_status); } >/dev/null; then
3543 if test -s conftest.err; then
3544 ac_cpp_err=$ac_c_preproc_warn_flag
3545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3552 if test -z "$ac_cpp_err"; then
3555 echo "$as_me: failed program was
:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 # Broken: fails on valid input.
3562 rm -f conftest.err conftest.$ac_ext
3564 # OK, works on sane cases. Now check whether nonexistent headers
3565 # can be detected and how.
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include <ac_nonexistent.h>
3574 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3582 grep -v '^ *+' conftest.er1 >conftest.err
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3586 (exit $ac_status); } >/dev/null; then
3587 if test -s conftest.err; then
3588 ac_cpp_err=$ac_c_preproc_warn_flag
3589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3596 if test -z "$ac_cpp_err"; then
3597 # Broken: success on invalid input.
3600 echo "$as_me: failed program was
:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 # Passes both tests.
3608 rm -f conftest.err conftest.$ac_ext
3611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612 rm -f conftest.err conftest.$ac_ext
3613 if $ac_preproc_ok; then
3616 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3617 See \
`config.log' for more details." >&5
3618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3619 See \`config.log
' for more details." >&2;}
3620 { (exit 1); exit 1; }; }
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3626 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3631 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3632 if test "${ac_cv_path_GREP+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 # Extract the first word of "grep ggrep" to use in msg output
3636 if test -z "$GREP"; then
3637 set dummy grep ggrep; ac_prog_name=$2
3638 if test "${ac_cv_path_GREP+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 ac_path_GREP_found=false
3642 # Loop through the user's path and
test for each of PROGNAME-LIST
3643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3644 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3647 test -z "$as_dir" && as_dir
=.
3648 for ac_prog
in grep ggrep
; do
3649 for ac_exec_ext
in '' $ac_executable_extensions; do
3650 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3651 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3652 # Check for GNU ac_path_GREP and select it if it is found.
3653 # Check for GNU $ac_path_GREP
3654 case `"$ac_path_GREP" --version 2>&1` in
3656 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3659 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3662 cat "conftest.in" "conftest.in" >"conftest.tmp"
3663 mv "conftest.tmp" "conftest.in"
3664 cp "conftest.in" "conftest.nl"
3665 echo 'GREP' >> "conftest.nl"
3666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3667 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3668 ac_count
=`expr $ac_count + 1`
3669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3670 # Best one so far, save it but keep looking for a better one
3671 ac_cv_path_GREP
="$ac_path_GREP"
3672 ac_path_GREP_max
=$ac_count
3674 # 10*(2^10) chars as input seems more than enough
3675 test $ac_count -gt 10 && break
3677 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3681 $ac_path_GREP_found && break 3
3691 GREP
="$ac_cv_path_GREP"
3692 if test -z "$GREP"; then
3693 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3694 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3695 { (exit 1); exit 1; }; }
3699 ac_cv_path_GREP
=$GREP
3704 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3705 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3706 GREP
="$ac_cv_path_GREP"
3709 { echo "$as_me:$LINENO: checking for egrep" >&5
3710 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3711 if test "${ac_cv_path_EGREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3715 then ac_cv_path_EGREP
="$GREP -E"
3717 # Extract the first word of "egrep" to use in msg output
3718 if test -z "$EGREP"; then
3719 set dummy
egrep; ac_prog_name
=$2
3720 if test "${ac_cv_path_EGREP+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 ac_path_EGREP_found
=false
3724 # Loop through the user's path and test for each of PROGNAME-LIST
3725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3726 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3729 test -z "$as_dir" && as_dir
=.
3730 for ac_prog
in egrep; do
3731 for ac_exec_ext
in '' $ac_executable_extensions; do
3732 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3733 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3734 # Check for GNU ac_path_EGREP and select it if it is found.
3735 # Check for GNU $ac_path_EGREP
3736 case `"$ac_path_EGREP" --version 2>&1` in
3738 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3741 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3744 cat "conftest.in" "conftest.in" >"conftest.tmp"
3745 mv "conftest.tmp" "conftest.in"
3746 cp "conftest.in" "conftest.nl"
3747 echo 'EGREP' >> "conftest.nl"
3748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3749 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3750 ac_count
=`expr $ac_count + 1`
3751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3752 # Best one so far, save it but keep looking for a better one
3753 ac_cv_path_EGREP
="$ac_path_EGREP"
3754 ac_path_EGREP_max
=$ac_count
3756 # 10*(2^10) chars as input seems more than enough
3757 test $ac_count -gt 10 && break
3759 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3763 $ac_path_EGREP_found && break 3
3773 EGREP
="$ac_cv_path_EGREP"
3774 if test -z "$EGREP"; then
3775 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3776 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3777 { (exit 1); exit 1; }; }
3781 ac_cv_path_EGREP
=$EGREP
3787 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3788 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3789 EGREP
="$ac_cv_path_EGREP"
3792 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3794 if test "${ac_cv_header_stdc+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 cat >conftest.
$ac_ext <<_ACEOF
3800 cat confdefs.h
>>conftest.
$ac_ext
3801 cat >>conftest.
$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3816 rm -f conftest.
$ac_objext
3817 if { (ac_try
="$ac_compile"
3819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_compile") 2>conftest.er1
3825 grep -v '^ *+' conftest.er1 >conftest.err
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3831 { (case "(($ac_try" in
3832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3833 *) ac_try_echo
=$ac_try;;
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_try") 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try
='test -s conftest.$ac_objext'
3841 { (case "(($ac_try" in
3842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_try") 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_cv_header_stdc=yes
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 ac_cv_header_stdc=no
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 if test $ac_cv_header_stdc = yes; then
3861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3872 $EGREP "memchr" >/dev/null 2>&1; then
3875 ac_cv_header_stdc=no
3881 if test $ac_cv_header_stdc = yes; then
3882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "free" >/dev/null 2>&1; then
3896 ac_cv_header_stdc=no
3902 if test $ac_cv_header_stdc = yes; then
3903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3904 if test "$cross_compiling" = yes; then
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3915 #if ((' ' & 0x0FF) == 0x020)
3916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3919 # define ISLOWER(c) \
3920 (('a' <= (c) && (c) <= 'i') \
3921 || ('j' <= (c) && (c) <= 'r') \
3922 || ('s' <= (c) && (c) <= 'z'))
3923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3931 for (i = 0; i < 256; i++)
3932 if (XOR (islower (i), ISLOWER (i))
3933 || toupper (i) != TOUPPER (i))
3938 rm -f conftest$ac_exeext
3939 if { (ac_try="$ac_link"
3941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3942 *) ac_try_echo
=$ac_try;;
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_link") 2>&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3949 { (case "(($ac_try" in
3950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_try") 2>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3960 echo "$as_me: program exited with status $ac_status" >&5
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3965 ac_cv_header_stdc=no
3967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3973 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3974 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3975 if test $ac_cv_header_stdc = yes; then
3977 cat >>confdefs.h <<\_ACEOF
3978 #define STDC_HEADERS 1
3983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3994 inttypes.h stdint.h unistd.h
3996 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 $ac_includes_default
4010 #include <$ac_header>
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4016 *) ac_try_echo
=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4021 grep -v '^ *+' conftest.er1
>conftest.err
4023 cat conftest.err
>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (case "(($ac_try" in
4028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4039 *) ac_try_echo
=$ac_try;;
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 eval "$as_ac_Header=yes"
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.
$ac_ext >&5
4051 eval "$as_ac_Header=no"
4054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4056 ac_res
=`eval echo '${'$as_ac_Header'}'`
4057 { echo "$as_me:$LINENO: result: $ac_res" >&5
4058 echo "${ECHO_T}$ac_res" >&6; }
4059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4060 cat >>confdefs.h
<<_ACEOF
4061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4069 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4070 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4071 if test "${ac_cv_c_bigendian+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 # See if sys/param.h defines the BYTE_ORDER macro.
4075 cat >conftest.
$ac_ext <<_ACEOF
4078 cat confdefs.h
>>conftest.
$ac_ext
4079 cat >>conftest.
$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 #include <sys/types.h>
4082 #include <sys/param.h>
4087 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4095 rm -f conftest.
$ac_objext
4096 if { (ac_try
="$ac_compile"
4098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4104 grep -v '^ *+' conftest.er1 >conftest.err
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4110 { (case "(($ac_try" in
4111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4112 *) ac_try_echo
=$ac_try;;
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_try") 2>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try
='test -s conftest.$ac_objext'
4120 { (case "(($ac_try" in
4121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_try") 2>&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 # It does; now see whether it defined to BIG_ENDIAN or not.
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 #include <sys/types.h>
4137 #include <sys/param.h>
4142 #if BYTE_ORDER != BIG_ENDIAN
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4154 *) ac_try_echo
=$ac_try;;
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4159 grep -v '^ *+' conftest.er1
>conftest.err
4161 cat conftest.err
>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165 { (case "(($ac_try" in
4166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (case "(($ac_try" in
4176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4177 *) ac_try_echo
=$ac_try;;
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_try") 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_c_bigendian
=yes
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.
$ac_ext >&5
4189 ac_cv_c_bigendian
=no
4192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.
$ac_ext >&5
4197 # It does not; compile a test program.
4198 if test "$cross_compiling" = yes; then
4199 # try to guess the endianness by grepping values into an object file
4200 ac_cv_c_bigendian
=unknown
4201 cat >conftest.
$ac_ext <<_ACEOF
4204 cat confdefs.h
>>conftest.
$ac_ext
4205 cat >>conftest.
$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4208 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4209 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4210 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4211 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4212 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4216 _ascii (); _ebcdic ();
4221 rm -f conftest.
$ac_objext
4222 if { (ac_try
="$ac_compile"
4224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4238 *) ac_try_echo
=$ac_try;;
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try
='test -s conftest.$ac_objext'
4246 { (case "(($ac_try" in
4247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4256 ac_cv_c_bigendian=yes
4258 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4259 if test "$ac_cv_c_bigendian" = unknown; then
4260 ac_cv_c_bigendian=no
4262 # finding both strings is unlikely to happen, but who knows?
4263 ac_cv_c_bigendian=unknown
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 cat >conftest.$ac_ext <<_ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 $ac_includes_default
4286 /* Are we little or big endian? From Harbison&Steele. */
4290 char c[sizeof (long int)];
4293 return u.c[sizeof (long int) - 1] == 1;
4299 rm -f conftest$ac_exeext
4300 if { (ac_try="$ac_link"
4302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4303 *) ac_try_echo
=$ac_try;;
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_link") 2>&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4310 { (case "(($ac_try" in
4311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_c_bigendian=no
4321 echo "$as_me: program exited with status $ac_status" >&5
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4326 ac_cv_c_bigendian=yes
4328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4337 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4338 case $ac_cv_c_bigendian in
4346 { { echo "$as_me:$LINENO: error: unknown endianness
4347 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4348 echo "$as_me: error: unknown endianness
4349 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4350 { (exit 1); exit 1; }; } ;;
4354 if test "$cross_compiling" = yes; then
4355 LLVM_CROSS_COMPILING=1
4358 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4359 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4360 if test "${ac_cv_build_exeext+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4364 ac_cv_build_exeext=.exe
4366 ac_build_prefix=${build_alias}-
4368 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4369 set dummy ${ac_build_prefix}gcc; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 if test -n "$BUILD_CC"; then
4376 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 BUILD_CC=$ac_cv_prog_BUILD_CC
4396 if test -n "$BUILD_CC"; then
4397 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4398 echo "${ECHO_T}$BUILD_CC" >&6; }
4400 { echo "$as_me:$LINENO: result: no" >&5
4401 echo "${ECHO_T}no" >&6; }
4405 if test -z "$BUILD_CC"; then
4406 # Extract the first word of "gcc", so it can be a program name with args.
4407 set dummy gcc; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test -n "$BUILD_CC"; then
4414 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_BUILD_CC="gcc"
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 BUILD_CC=$ac_cv_prog_BUILD_CC
4434 if test -n "$BUILD_CC"; then
4435 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4436 echo "${ECHO_T}$BUILD_CC" >&6; }
4438 { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4443 if test -z "$BUILD_CC"; then
4444 # Extract the first word of "cc", so it can be a program name with args.
4445 set dummy cc; ac_word=$2
4446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 if test -n "$BUILD_CC"; then
4452 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4463 ac_prog_rejected=yes
4466 ac_cv_prog_BUILD_CC="cc"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 if test $ac_prog_rejected = yes; then
4475 # We found a bogon in the path, so make sure we never use it.
4476 set dummy $ac_cv_prog_BUILD_CC
4478 if test $# != 0; then
4479 # We chose a different compiler from the bogus one.
4480 # However, it has the same basename, so the bogon will be chosen
4481 # first if we set BUILD_CC to just the basename; use the full file name.
4483 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4488 BUILD_CC=$ac_cv_prog_BUILD_CC
4489 if test -n "$BUILD_CC"; then
4490 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4491 echo "${ECHO_T}$BUILD_CC" >&6; }
4493 { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4500 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4501 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4502 { (exit 1); exit 1; }; }
4503 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4505 echo 'int main () { return 0; }' > conftest.$ac_ext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4508 (eval $ac_build_link) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 for file in conftest.*; do
4514 *.c | *.o | *.obj) ;;
4515 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4519 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4520 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4521 { (exit 1); exit 1; }; }
4524 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4529 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4530 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4531 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4532 ac_build_exeext=$BUILD_EXEEXT
4535 LLVM_CROSS_COMPILING=0
4539 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4550 # Check whether --enable-optimized was given.
4551 if test "${enable_optimized+set}" = set; then
4552 enableval=$enable_optimized;
4557 if test ${enableval} = "no" ; then
4561 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4565 # Check whether --enable-assertions was given.
4566 if test "${enable_assertions+set}" = set; then
4567 enableval=$enable_assertions;
4572 if test ${enableval} = "yes" ; then
4576 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4580 # Check whether --enable-debug-runtime was given.
4581 if test "${enable_debug_runtime+set}" = set; then
4582 enableval=$enable_debug_runtime;
4587 if test ${enableval} = "no" ; then
4591 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4595 # Check whether --enable-jit was given.
4596 if test "${enable_jit+set}" = set; then
4597 enableval=$enable_jit;
4602 if test ${enableval} = "no"
4607 case "$llvm_cv_target_arch" in
4608 x86) TARGET_HAS_JIT=1
4610 Sparc) TARGET_HAS_JIT=0
4612 PowerPC) TARGET_HAS_JIT=1
4614 x86_64) TARGET_HAS_JIT=1
4616 Alpha) TARGET_HAS_JIT=1
4618 IA64) TARGET_HAS_JIT=0
4620 ARM) TARGET_HAS_JIT=0
4627 # Check whether --enable-doxygen was given.
4628 if test "${enable_doxygen+set}" = set; then
4629 enableval=$enable_doxygen;
4634 case "$enableval" in
4635 yes) ENABLE_DOXYGEN=1
4637 no) ENABLE_DOXYGEN=0
4639 default) ENABLE_DOXYGEN=0
4641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4642 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4643 { (exit 1); exit 1; }; } ;;
4646 # Check whether --enable-threads was given.
4647 if test "${enable_threads+set}" = set; then
4648 enableval=$enable_threads;
4653 case "$enableval" in
4654 yes) ENABLE_THREADS=1
4656 no) ENABLE_THREADS=0
4658 default) ENABLE_THREADS=1
4660 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4661 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4662 { (exit 1); exit 1; }; } ;;
4665 cat >>confdefs.h <<_ACEOF
4666 #define ENABLE_THREADS $ENABLE_THREADS
4670 # Check whether --enable-pic was given.
4671 if test "${enable_pic+set}" = set; then
4672 enableval=$enable_pic;
4677 case "$enableval" in
4682 default) ENABLE_PIC=0
4684 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4685 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4686 { (exit 1); exit 1; }; } ;;
4689 cat >>confdefs.h <<_ACEOF
4690 #define ENABLE_PIC $ENABLE_PIC
4695 # Check whether --enable-targets was given.
4696 if test "${enable_targets+set}" = set; then
4697 enableval=$enable_targets;
4702 case "$enableval" in
4703 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4705 case "$llvm_cv_target_arch" in
4706 x86) TARGETS_TO_BUILD="X86" ;;
4707 x86_64) TARGETS_TO_BUILD="X86" ;;
4708 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4709 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4710 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4711 IA64) TARGETS_TO_BUILD="IA64" ;;
4712 ARM) TARGETS_TO_BUILD="ARM" ;;
4713 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4714 echo "$as_me: error: Can not set target to build" >&2;}
4715 { (exit 1); exit 1; }; } ;;
4718 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4720 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4721 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4722 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4723 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4724 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4725 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4726 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4727 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4728 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4729 { (exit 1); exit 1; }; } ;;
4734 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4735 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4738 # Check whether --enable-cbe-printf-a was given.
4739 if test "${enable_cbe_printf_a+set}" = set; then
4740 enableval=$enable_cbe_printf_a;
4745 case "$enableval" in
4746 yes) ENABLE_CBE_PRINTF_A=1
4748 no) ENABLE_CBE_PRINTF_A=0
4750 default) ENABLE_CBE_PRINTF_A=1
4752 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4753 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4757 cat >>confdefs.h <<_ACEOF
4758 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4763 # Check whether --with-llvmgccdir was given.
4764 if test "${with_llvmgccdir+set}" = set; then
4765 withval=$with_llvmgccdir;
4771 default) WITH_LLVMGCCDIR=default ;;
4772 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4773 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4774 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4775 { (exit 1); exit 1; }; } ;;
4779 # Check whether --with-extra-options was given.
4780 if test "${with_extra_options+set}" = set; then
4781 withval=$with_extra_options;
4787 default) EXTRA_OPTIONS= ;;
4788 *) EXTRA_OPTIONS=$withval ;;
4790 EXTRA_OPTIONS=$EXTRA_OPTIONS
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4800 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4801 # On Suns, sometimes $CPP names a directory.
4802 if test -n "$CPP" && test -d "$CPP"; then
4805 if test -z "$CPP"; then
4806 if test "${ac_cv_prog_CPP+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 # Double quotes because CPP needs to be expanded
4810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4813 for ac_c_preproc_warn_flag in '' yes
4815 # Use a header file that comes with gcc, so configuring glibc
4816 # with a fresh cross-compiler works.
4817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818 # <limits.h> exists even on freestanding compilers.
4819 # On the NeXT, cc -E runs the code through the compiler's parser,
4820 # not just through cpp. "Syntax error" is here to catch this case.
4821 cat >conftest.$ac_ext <<_ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4828 # include <limits.h>
4830 # include <assert.h>
4834 if { (ac_try="$ac_cpp conftest.$ac_ext"
4836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4837 *) ac_try_echo
=$ac_try;;
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4842 grep -v '^ *+' conftest.er1
>conftest.err
4844 cat conftest.err
>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev
/null
; then
4847 if test -s conftest.err
; then
4848 ac_cpp_err
=$ac_c_preproc_warn_flag
4849 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4856 if test -z "$ac_cpp_err"; then
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.
$ac_ext >&5
4862 # Broken: fails on valid input.
4866 rm -f conftest.err conftest.
$ac_ext
4868 # OK, works on sane cases. Now check whether nonexistent headers
4869 # can be detected and how.
4870 cat >conftest.
$ac_ext <<_ACEOF
4873 cat confdefs.h
>>conftest.
$ac_ext
4874 cat >>conftest.
$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #include <ac_nonexistent.h>
4878 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4886 grep -v '^ *+' conftest.er1 >conftest.err
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null; then
4891 if test -s conftest.err; then
4892 ac_cpp_err=$ac_c_preproc_warn_flag
4893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4900 if test -z "$ac_cpp_err"; then
4901 # Broken: success on invalid input.
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 # Passes both tests.
4912 rm -f conftest.err conftest.$ac_ext
4915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916 rm -f conftest.err conftest.
$ac_ext
4917 if $ac_preproc_ok; then
4929 { echo "$as_me:$LINENO: result: $CPP" >&5
4930 echo "${ECHO_T}$CPP" >&6; }
4932 for ac_c_preproc_warn_flag
in '' yes
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat >conftest.
$ac_ext <<_ACEOF
4943 cat confdefs.h
>>conftest.
$ac_ext
4944 cat >>conftest.
$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 # include <limits.h>
4949 # include <assert.h>
4953 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961 grep -v '^ *+' conftest.er1 >conftest.err
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } >/dev/null; then
4966 if test -s conftest.err; then
4967 ac_cpp_err=$ac_c_preproc_warn_flag
4968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4975 if test -z "$ac_cpp_err"; then
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 # Broken: fails on valid input.
4985 rm -f conftest.err conftest.$ac_ext
4987 # OK, works on sane cases. Now check whether nonexistent headers
4988 # can be detected and how.
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 #include <ac_nonexistent.h>
4997 if { (ac_try="$ac_cpp conftest.$ac_ext"
4999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5000 *) ac_try_echo
=$ac_try;;
5002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5005 grep -v '^ *+' conftest.er1
>conftest.err
5007 cat conftest.err
>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } >/dev
/null
; then
5010 if test -s conftest.err
; then
5011 ac_cpp_err
=$ac_c_preproc_warn_flag
5012 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5019 if test -z "$ac_cpp_err"; then
5020 # Broken: success on invalid input.
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.
$ac_ext >&5
5026 # Passes both tests.
5031 rm -f conftest.err conftest.
$ac_ext
5034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035 rm -f conftest.err conftest.
$ac_ext
5036 if $ac_preproc_ok; then
5039 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5040 See \`config.log' for more details." >&5
5041 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5042 See \`config.log' for more details." >&2;}
5043 { (exit 1); exit 1; }; }
5047 ac_cpp
='$CPP $CPPFLAGS'
5048 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5053 ac_cpp
='$CPP $CPPFLAGS'
5054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5057 if test -n "$ac_tool_prefix"; then
5060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5061 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_CC+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 if test -n "$CC"; then
5068 ac_cv_prog_CC
="$CC" # Let the user override the test.
5070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir
=.
5075 for ac_exec_ext
in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 if test -n "$CC"; then
5089 { echo "$as_me:$LINENO: result: $CC" >&5
5090 echo "${ECHO_T}$CC" >&6; }
5092 { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5097 test -n "$CC" && break
5100 if test -z "$CC"; then
5104 # Extract the first word of "$ac_prog", so it can be a program name with args.
5105 set dummy
$ac_prog; ac_word
=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 if test -n "$ac_ct_CC"; then
5112 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir
=.
5119 for ac_exec_ext
in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_CC
="$ac_prog"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5132 if test -n "$ac_ct_CC"; then
5133 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5134 echo "${ECHO_T}$ac_ct_CC" >&6; }
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5141 test -n "$ac_ct_CC" && break
5144 if test "x$ac_ct_CC" = x
; then
5147 case $cross_compiling:$ac_tool_warned in
5149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5150 whose name does not start with the host triplet. If you think this
5151 configuration is useful to you, please write to autoconf@gnu.org." >&5
5152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5153 whose name does not start with the host triplet. If you think this
5154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5155 ac_tool_warned
=yes ;;
5162 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5163 See \`config.log' for more details." >&5
5164 echo "$as_me: error: no acceptable C compiler found in \$PATH
5165 See \`config.log' for more details." >&2;}
5166 { (exit 1); exit 1; }; }
5168 # Provide some information about the compiler.
5169 echo "$as_me:$LINENO: checking for C compiler version" >&5
5170 ac_compiler
=`set X $ac_compile; echo $2`
5171 { (ac_try
="$ac_compiler --version >&5"
5173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_compiler --version >&5") 2>&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }
5181 { (ac_try="$ac_compiler -v >&5"
5183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5184 *) ac_try_echo
=$ac_try;;
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_compiler -v >&5") 2>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }
5191 { (ac_try
="$ac_compiler -V >&5"
5193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_compiler -V >&5") 2>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }
5202 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5203 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5204 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 cat >conftest.$ac_ext <<_ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5225 rm -f conftest.$ac_objext
5226 if { (ac_try="$ac_compile"
5228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5229 *) ac_try_echo
=$ac_try;;
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_compile") 2>conftest.er1
5234 grep -v '^ *+' conftest.er1
>conftest.err
5236 cat conftest.err
>&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5240 { (case "(($ac_try" in
5241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_try") 2>&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try='test -s conftest.$ac_objext'
5250 { (case "(($ac_try" in
5251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5252 *) ac_try_echo
=$ac_try;;
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_try") 2>&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.
$ac_ext >&5
5267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5268 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5271 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5272 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5273 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5274 ac_test_CFLAGS
=${CFLAGS+set}
5275 ac_save_CFLAGS
=$CFLAGS
5276 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_cc_g+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 ac_save_c_werror_flag
=$ac_c_werror_flag
5282 ac_c_werror_flag
=yes
5285 cat >conftest.
$ac_ext <<_ACEOF
5288 cat confdefs.h
>>conftest.
$ac_ext
5289 cat >>conftest.
$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5300 rm -f conftest.
$ac_objext
5301 if { (ac_try
="$ac_compile"
5303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5309 grep -v '^ *+' conftest.er1 >conftest.err
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5315 { (case "(($ac_try" in
5316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5317 *) ac_try_echo
=$ac_try;;
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_try") 2>&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try
='test -s conftest.$ac_objext'
5325 { (case "(($ac_try" in
5326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_try") 2>&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5355 rm -f conftest.$ac_objext
5356 if { (ac_try="$ac_compile"
5358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5359 *) ac_try_echo
=$ac_try;;
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5364 grep -v '^ *+' conftest.er1
>conftest.err
5366 cat conftest.err
>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5370 { (case "(($ac_try" in
5371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_try") 2>&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try='test -s conftest.$ac_objext'
5380 { (case "(($ac_try" in
5381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5382 *) ac_try_echo
=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_try") 2>&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.
$ac_ext >&5
5394 ac_c_werror_flag
=$ac_save_c_werror_flag
5396 cat >conftest.
$ac_ext <<_ACEOF
5399 cat confdefs.h
>>conftest.
$ac_ext
5400 cat >>conftest.
$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5411 rm -f conftest.
$ac_objext
5412 if { (ac_try
="$ac_compile"
5414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_compile") 2>conftest.er1
5420 grep -v '^ *+' conftest.er1 >conftest.err
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5428 *) ac_try_echo
=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try
='test -s conftest.$ac_objext'
5436 { (case "(($ac_try" in
5437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_try") 2>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_c_werror_flag=$ac_save_c_werror_flag
5462 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5463 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5464 if test "$ac_test_CFLAGS" = set; then
5465 CFLAGS=$ac_save_CFLAGS
5466 elif test $ac_cv_prog_cc_g = yes; then
5467 if test "$GCC" = yes; then
5473 if test "$GCC" = yes; then
5479 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5480 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5481 if test "${ac_cv_prog_cc_c89+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 ac_cv_prog_cc_c89=no
5486 cat >conftest.$ac_ext <<_ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5494 #include <sys/types.h>
5495 #include <sys/stat.h>
5496 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5497 struct buf { int x; };
5498 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5499 static char *e (p, i)
5505 static char *f (char * (*g) (char **, int), char **p, ...)
5510 s = g (p, va_arg (v,int));
5515 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5516 function prototypes and stuff, but not '\xHH' hex character constants.
5517 These don't provoke an error unfortunately, instead are silently treated
5518 as 'x'. The following induces an error, until -std is added to get
5519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5520 array size at least. It's necessary to write '\x00'==0 to get something
5521 that's true only with -std. */
5522 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5524 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5525 inside strings and character constants. */
5527 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5529 int test (int i, double x);
5530 struct s1 {int (*f) (int a);};
5531 struct s2 {int (*f) (double a);};
5532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5538 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5546 CC="$ac_save_CC $ac_arg"
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5551 *) ac_try_echo
=$ac_try;;
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5556 grep -v '^ *+' conftest.er1
>conftest.err
5558 cat conftest.err
>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5562 { (case "(($ac_try" in
5563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_try") 2>&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (case "(($ac_try" in
5573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5574 *) ac_try_echo
=$ac_try;;
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_try") 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_prog_cc_c89
=$ac_arg
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.
$ac_ext >&5
5589 rm -f core conftest.err conftest.
$ac_objext
5590 test "x$ac_cv_prog_cc_c89" != "xno" && break
5592 rm -f conftest.
$ac_ext
5597 case "x$ac_cv_prog_cc_c89" in
5599 { echo "$as_me:$LINENO: result: none needed" >&5
5600 echo "${ECHO_T}none needed" >&6; } ;;
5602 { echo "$as_me:$LINENO: result: unsupported" >&5
5603 echo "${ECHO_T}unsupported" >&6; } ;;
5605 CC
="$CC $ac_cv_prog_cc_c89"
5606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5607 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5612 ac_cpp
='$CPP $CPPFLAGS'
5613 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5618 ac_cpp
='$CXXCPP $CPPFLAGS'
5619 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5622 if test -z "$CXX"; then
5623 if test -n "$CCC"; then
5626 if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5633 if test "${ac_cv_prog_CXX+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 if test -n "$CXX"; then
5637 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5643 test -z "$as_dir" && as_dir
=.
5644 for ac_exec_ext
in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 if test -n "$CXX"; then
5658 { echo "$as_me:$LINENO: result: $CXX" >&5
5659 echo "${ECHO_T}$CXX" >&6; }
5661 { echo "$as_me:$LINENO: result: no" >&5
5662 echo "${ECHO_T}no" >&6; }
5666 test -n "$CXX" && break
5669 if test -z "$CXX"; then
5673 # Extract the first word of "$ac_prog", so it can be a program name with args.
5674 set dummy
$ac_prog; ac_word
=$2
5675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5677 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 if test -n "$ac_ct_CXX"; then
5681 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5687 test -z "$as_dir" && as_dir
=.
5688 for ac_exec_ext
in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5701 if test -n "$ac_ct_CXX"; then
5702 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5703 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5705 { echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6; }
5710 test -n "$ac_ct_CXX" && break
5713 if test "x$ac_ct_CXX" = x
; then
5716 case $cross_compiling:$ac_tool_warned in
5718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5719 whose name does not start with the host triplet. If you think this
5720 configuration is useful to you, please write to autoconf@gnu.org." >&5
5721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5722 whose name does not start with the host triplet. If you think this
5723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5724 ac_tool_warned
=yes ;;
5732 # Provide some information about the compiler.
5733 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5734 ac_compiler
=`set X $ac_compile; echo $2`
5735 { (ac_try
="$ac_compiler --version >&5"
5737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compiler --version >&5") 2>&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }
5745 { (ac_try="$ac_compiler -v >&5"
5747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5748 *) ac_try_echo
=$ac_try;;
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compiler -v >&5") 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }
5755 { (ac_try
="$ac_compiler -V >&5"
5757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_compiler -V >&5") 2>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }
5766 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5767 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5768 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 cat >conftest.$ac_ext <<_ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5789 rm -f conftest.$ac_objext
5790 if { (ac_try="$ac_compile"
5792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5793 *) ac_try_echo
=$ac_try;;
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_compile") 2>conftest.er1
5798 grep -v '^ *+' conftest.er1
>conftest.err
5800 cat conftest.err
>&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5804 { (case "(($ac_try" in
5805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_try") 2>&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest.$ac_objext'
5814 { (case "(($ac_try" in
5815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5816 *) ac_try_echo
=$ac_try;;
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_try") 2>&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.
$ac_ext >&5
5831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5835 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5837 GXX
=`test $ac_compiler_gnu = yes && echo yes`
5838 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5839 ac_save_CXXFLAGS
=$CXXFLAGS
5840 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5841 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5842 if test "${ac_cv_prog_cxx_g+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5846 ac_cxx_werror_flag
=yes
5849 cat >conftest.
$ac_ext <<_ACEOF
5852 cat confdefs.h
>>conftest.
$ac_ext
5853 cat >>conftest.
$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5864 rm -f conftest.
$ac_objext
5865 if { (ac_try
="$ac_compile"
5867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5879 { (case "(($ac_try" in
5880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5881 *) ac_try_echo
=$ac_try;;
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_try") 2>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try
='test -s conftest.$ac_objext'
5889 { (case "(($ac_try" in
5890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_try") 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_prog_cxx_g=yes
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5923 *) ac_try_echo
=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1
>conftest.err
5930 cat conftest.err
>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5934 { (case "(($ac_try" in
5935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_try") 2>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (case "(($ac_try" in
5945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5946 *) ac_try_echo
=$ac_try;;
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_try") 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.
$ac_ext >&5
5958 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5960 cat >conftest.
$ac_ext <<_ACEOF
5963 cat confdefs.h
>>conftest.
$ac_ext
5964 cat >>conftest.
$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5975 rm -f conftest.
$ac_objext
5976 if { (ac_try
="$ac_compile"
5978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5992 *) ac_try_echo
=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try
='test -s conftest.$ac_objext'
6000 { (case "(($ac_try" in
6001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_prog_cxx_g=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6026 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6027 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6028 if test "$ac_test_CXXFLAGS" = set; then
6029 CXXFLAGS=$ac_save_CXXFLAGS
6030 elif test $ac_cv_prog_cxx_g = yes; then
6031 if test "$GXX" = yes; then
6037 if test "$GXX" = yes; then
6044 ac_cpp='$CPP $CPPFLAGS'
6045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6049 { echo "$as_me:$LINENO: checking " >&5
6050 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6051 if test "${ac_cv_has_flex+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 for ac_prog in flex lex
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060 if test "${ac_cv_prog_LEX+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 if test -n "$LEX"; then
6064 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_prog_LEX="$ac_prog"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 if test -n "$LEX"; then
6085 { echo "$as_me:$LINENO: result: $LEX" >&5
6086 echo "${ECHO_T}$LEX" >&6; }
6088 { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6093 test -n "$LEX" && break
6095 test -n "$LEX" || LEX=":"
6097 if test -z "$LEXLIB"
6099 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6100 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6101 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 ac_check_lib_save_LIBS=$LIBS
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 /* Override any GCC internal prototype to avoid an error.
6114 Use char because int might match the return type of a GCC
6115 builtin and then its argument prototype would still apply. */
6128 rm -f conftest.$ac_objext conftest$ac_exeext
6129 if { (ac_try="$ac_link"
6131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6132 *) ac_try_echo
=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_link") 2>conftest.er1
6137 grep -v '^ *+' conftest.er1
>conftest.err
6139 cat conftest.err
>&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143 { (case "(($ac_try" in
6144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_try") 2>&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest$ac_exeext'
6153 { (case "(($ac_try" in
6154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6155 *) ac_try_echo
=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_lib_fl_yywrap
=yes
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.
$ac_ext >&5
6167 ac_cv_lib_fl_yywrap
=no
6170 rm -f core conftest.err conftest.
$ac_objext \
6171 conftest
$ac_exeext conftest.
$ac_ext
6172 LIBS
=$ac_check_lib_save_LIBS
6174 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6175 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6176 if test $ac_cv_lib_fl_yywrap = yes; then
6179 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6180 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6181 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 ac_check_lib_save_LIBS
=$LIBS
6186 cat >conftest.
$ac_ext <<_ACEOF
6189 cat confdefs.h
>>conftest.
$ac_ext
6190 cat >>conftest.
$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6193 /* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6208 rm -f conftest.
$ac_objext conftest
$ac_exeext
6209 if { (ac_try
="$ac_link"
6211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_link") 2>conftest.er1
6217 grep -v '^ *+' conftest.er1 >conftest.err
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6223 { (case "(($ac_try" in
6224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6225 *) ac_try_echo
=$ac_try;;
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_try") 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try
='test -s conftest$ac_exeext'
6233 { (case "(($ac_try" in
6234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_lib_l_yywrap=yes
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_cv_lib_l_yywrap=no
6250 rm -f core conftest.err conftest.$ac_objext \
6251 conftest$ac_exeext conftest.$ac_ext
6252 LIBS=$ac_check_lib_save_LIBS
6254 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6255 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6256 if test $ac_cv_lib_l_yywrap = yes; then
6264 if test "x$LEX" != "x:"; then
6265 { echo "$as_me:$LINENO: checking lex output file root" >&5
6266 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6267 if test "${ac_cv_prog_lex_root+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 # The minimal lex program is just a single line: %%. But some broken lexes
6271 # (Solaris, I think it was) want two %% lines, so accommodate them.
6272 cat >conftest.l <<_ACEOF
6276 { (ac_try="$LEX conftest.l"
6278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6279 *) ac_try_echo
=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$LEX conftest.l") 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }
6286 if test -f lex.yy.c
; then
6287 ac_cv_prog_lex_root
=lex.yy
6288 elif test -f lexyy.c
; then
6289 ac_cv_prog_lex_root
=lexyy
6291 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6292 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6293 { (exit 1); exit 1; }; }
6296 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6297 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6299 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
6301 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6302 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6303 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 # POSIX says lex can declare yytext either as a pointer or an array; the
6307 # default is implementation-dependent. Figure out which it is, since
6308 # not all implementations provide the %pointer and %array declarations.
6309 ac_cv_prog_lex_yytext_pointer
=no
6310 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6312 LIBS
="$LIBS $LEXLIB"
6313 cat >conftest.
$ac_ext <<_ACEOF
6314 `cat $LEX_OUTPUT_ROOT.c`
6316 rm -f conftest.
$ac_objext conftest
$ac_exeext
6317 if { (ac_try
="$ac_link"
6319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_link") 2>conftest.er1
6325 grep -v '^ *+' conftest.er1 >conftest.err
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6331 { (case "(($ac_try" in
6332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6333 *) ac_try_echo
=$ac_try;;
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_try") 2>&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; } &&
6340 { ac_try
='test -s conftest$ac_exeext'
6341 { (case "(($ac_try" in
6342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_try") 2>&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_prog_lex_yytext_pointer=yes
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6358 rm -f core conftest.err conftest.$ac_objext \
6359 conftest$ac_exeext conftest.$ac_ext
6361 rm -f "${LEX_OUTPUT_ROOT}.c"
6364 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6365 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6366 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6368 cat >>confdefs.h <<\_ACEOF
6369 #define YYTEXT_POINTER 1
6377 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6378 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6379 if test "$LEX" != "flex"; then
6380 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6381 echo "$as_me: error: flex not found but required" >&2;}
6382 { (exit 1); exit 1; }; }
6388 { echo "$as_me:$LINENO: checking " >&5
6389 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6390 if test "${llvm_cv_has_bison+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 for ac_prog in 'bison -y' byacc
6395 # Extract the first word of "$ac_prog", so it can be a program name with args.
6396 set dummy $ac_prog; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_prog_YACC+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 if test -n "$YACC"; then
6403 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_YACC="$ac_prog"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 YACC=$ac_cv_prog_YACC
6423 if test -n "$YACC"; then
6424 { echo "$as_me:$LINENO: result: $YACC" >&5
6425 echo "${ECHO_T}$YACC" >&6; }
6427 { echo "$as_me:$LINENO: result: no" >&5
6428 echo "${ECHO_T}no" >&6; }
6432 test -n "$YACC" && break
6434 test -n "$YACC" || YACC="yacc"
6437 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6438 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6439 if test "$YACC" != "bison -y"; then
6441 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6442 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6448 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6449 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6450 if test "${lt_cv_path_NM+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 if test -n "$NM"; then
6454 # Let the user override the test.
6457 lt_nm_to_check="${ac_tool_prefix}nm"
6458 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6459 lt_nm_to_check="$lt_nm_to_check nm"
6461 for lt_tmp_nm in $lt_nm_to_check; do
6462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6463 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6465 test -z "$ac_dir" && ac_dir=.
6466 tmp_nm="$ac_dir/$lt_tmp_nm"
6467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6468 # Check to see if the nm accepts a BSD-compat flag.
6469 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6470 # nm: unknown option "B" ignored
6471 # Tru64's nm complains that
/dev
/null is an invalid object
file
6472 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6473 */dev
/null
* |
*'Invalid file or object type'*)
6474 lt_cv_path_NM
="$tmp_nm -B"
6478 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6480 lt_cv_path_NM
="$tmp_nm -p"
6484 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6485 continue # so that we can try to find one that supports BSD flags
6494 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6497 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6498 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6503 { echo "$as_me:$LINENO: checking for GNU make" >&5
6504 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6505 if test "${llvm_cv_gnu_make_command+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 llvm_cv_gnu_make_command
=''
6509 for a
in "$MAKE" make gmake gnumake
; do
6510 if test -z "$a" ; then continue ; fi ;
6511 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6513 llvm_cv_gnu_make_command
=$a ;
6518 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6519 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6520 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6524 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6525 echo "${ECHO_T}\"Not found\"" >&6; };
6529 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6530 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6532 if test "$LN_S" = "ln -s"; then
6533 { echo "$as_me:$LINENO: result: yes" >&5
6534 echo "${ECHO_T}yes" >&6; }
6536 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6537 echo "${ECHO_T}no, using $LN_S" >&6; }
6540 # Extract the first word of "cmp", so it can be a program name with args.
6541 set dummy
cmp; ac_word
=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_path_CMP+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir
=.
6557 for ac_exec_ext
in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6572 if test -n "$CMP"; then
6573 { echo "$as_me:$LINENO: result: $CMP" >&5
6574 echo "${ECHO_T}$CMP" >&6; }
6576 { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6581 # Extract the first word of "cp", so it can be a program name with args.
6582 set dummy
cp; ac_word
=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_CP+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir
=.
6598 for ac_exec_ext
in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6613 if test -n "$CP"; then
6614 { echo "$as_me:$LINENO: result: $CP" >&5
6615 echo "${ECHO_T}$CP" >&6; }
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6622 # Extract the first word of "date", so it can be a program name with args.
6623 set dummy
date; ac_word
=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_DATE+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir
=.
6639 for ac_exec_ext
in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6653 DATE
=$ac_cv_path_DATE
6654 if test -n "$DATE"; then
6655 { echo "$as_me:$LINENO: result: $DATE" >&5
6656 echo "${ECHO_T}$DATE" >&6; }
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6663 # Extract the first word of "find", so it can be a program name with args.
6664 set dummy
find; ac_word
=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_FIND+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir
=.
6680 for ac_exec_ext
in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6694 FIND
=$ac_cv_path_FIND
6695 if test -n "$FIND"; then
6696 { echo "$as_me:$LINENO: result: $FIND" >&5
6697 echo "${ECHO_T}$FIND" >&6; }
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6704 # Extract the first word of "grep", so it can be a program name with args.
6705 set dummy
grep; ac_word
=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_GREP+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir
=.
6721 for ac_exec_ext
in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6735 GREP
=$ac_cv_path_GREP
6736 if test -n "$GREP"; then
6737 { echo "$as_me:$LINENO: result: $GREP" >&5
6738 echo "${ECHO_T}$GREP" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6745 # Extract the first word of "mkdir", so it can be a program name with args.
6746 set dummy mkdir
; ac_word
=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_path_MKDIR+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir
=.
6762 for ac_exec_ext
in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6776 MKDIR
=$ac_cv_path_MKDIR
6777 if test -n "$MKDIR"; then
6778 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6779 echo "${ECHO_T}$MKDIR" >&6; }
6781 { echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6; }
6786 # Extract the first word of "mv", so it can be a program name with args.
6787 set dummy
mv; ac_word
=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_path_MV+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir
=.
6803 for ac_exec_ext
in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
6818 if test -n "$MV"; then
6819 { echo "$as_me:$LINENO: result: $MV" >&5
6820 echo "${ECHO_T}$MV" >&6; }
6822 { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6827 if test -n "$ac_tool_prefix"; then
6828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6829 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_prog_RANLIB+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 if test -n "$RANLIB"; then
6836 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6842 test -z "$as_dir" && as_dir
=.
6843 for ac_exec_ext
in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 RANLIB
=$ac_cv_prog_RANLIB
6856 if test -n "$RANLIB"; then
6857 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6858 echo "${ECHO_T}$RANLIB" >&6; }
6860 { echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6; }
6866 if test -z "$ac_cv_prog_RANLIB"; then
6867 ac_ct_RANLIB
=$RANLIB
6868 # Extract the first word of "ranlib", so it can be a program name with args.
6869 set dummy ranlib
; ac_word
=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 if test -n "$ac_ct_RANLIB"; then
6876 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6882 test -z "$as_dir" && as_dir
=.
6883 for ac_exec_ext
in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6896 if test -n "$ac_ct_RANLIB"; then
6897 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6898 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6904 if test "x$ac_ct_RANLIB" = x
; then
6907 case $cross_compiling:$ac_tool_warned in
6909 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6910 whose name does not start with the host triplet. If you think this
6911 configuration is useful to you, please write to autoconf@gnu.org." >&5
6912 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6913 whose name does not start with the host triplet. If you think this
6914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6915 ac_tool_warned
=yes ;;
6917 RANLIB
=$ac_ct_RANLIB
6920 RANLIB
="$ac_cv_prog_RANLIB"
6923 # Extract the first word of "rm", so it can be a program name with args.
6924 set dummy
rm; ac_word
=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_RM+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
6935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir
=.
6940 for ac_exec_ext
in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
6955 if test -n "$RM"; then
6956 { echo "$as_me:$LINENO: result: $RM" >&5
6957 echo "${ECHO_T}$RM" >&6; }
6959 { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6964 # Extract the first word of "sed", so it can be a program name with args.
6965 set dummy
sed; ac_word
=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_SED+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
6976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir
=.
6981 for ac_exec_ext
in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
6996 if test -n "$SED"; then
6997 { echo "$as_me:$LINENO: result: $SED" >&5
6998 echo "${ECHO_T}$SED" >&6; }
7000 { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7005 # Extract the first word of "tar", so it can be a program name with args.
7006 set dummy
tar; ac_word
=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_path_TAR+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir
=.
7022 for ac_exec_ext
in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7037 if test -n "$TAR"; then
7038 { echo "$as_me:$LINENO: result: $TAR" >&5
7039 echo "${ECHO_T}$TAR" >&6; }
7041 { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7046 # Extract the first word of "pwd", so it can be a program name with args.
7047 set dummy
pwd; ac_word
=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_BINPWD+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7062 test -z "$as_dir" && as_dir
=.
7063 for ac_exec_ext
in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7077 BINPWD
=$ac_cv_path_BINPWD
7078 if test -n "$BINPWD"; then
7079 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7080 echo "${ECHO_T}$BINPWD" >&6; }
7082 { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7088 # Extract the first word of "Graphviz", so it can be a program name with args.
7089 set dummy Graphviz
; ac_word
=$2
7090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir
=.
7105 for ac_exec_ext
in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7119 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7120 if test -n "$GRAPHVIZ"; then
7121 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7122 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7124 { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7129 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7131 cat >>confdefs.h
<<\_ACEOF
7132 #define HAVE_GRAPHVIZ 1
7135 if test "$llvm_cv_os_type" = "MingW" ; then
7136 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7139 cat >>confdefs.h
<<_ACEOF
7140 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7144 # Extract the first word of "dot", so it can be a program name with args.
7145 set dummy dot
; ac_word
=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_DOT+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir
=.
7161 for ac_exec_ext
in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7176 if test -n "$DOT"; then
7177 { echo "$as_me:$LINENO: result: $DOT" >&5
7178 echo "${ECHO_T}$DOT" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 if test "$DOT" != "echo dot" ; then
7187 cat >>confdefs.h
<<\_ACEOF
7191 if test "$llvm_cv_os_type" = "MingW" ; then
7192 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7195 cat >>confdefs.h
<<_ACEOF
7196 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7200 for ac_prog
in gv gsview32
7202 # Extract the first word of "$ac_prog", so it can be a program name with args.
7203 set dummy
$ac_prog; ac_word
=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_GV+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir
=.
7219 for ac_exec_ext
in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 if test -n "$GV"; then
7234 { echo "$as_me:$LINENO: result: $GV" >&5
7235 echo "${ECHO_T}$GV" >&6; }
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7242 test -n "$GV" && break
7244 test -n "$GV" || GV
="echo gv"
7246 if test "$GV" != "echo gv" ; then
7248 cat >>confdefs.h
<<\_ACEOF
7252 if test "$llvm_cv_os_type" = "MingW" ; then
7253 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7256 cat >>confdefs.h
<<_ACEOF
7257 #define LLVM_PATH_GV "$GV${EXEEXT}"
7261 # Extract the first word of "dotty", so it can be a program name with args.
7262 set dummy dotty
; ac_word
=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_DOTTY+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir
=.
7278 for ac_exec_ext
in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7292 DOTTY
=$ac_cv_path_DOTTY
7293 if test -n "$DOTTY"; then
7294 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7295 echo "${ECHO_T}$DOTTY" >&6; }
7297 { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7302 if test "$DOTTY" != "echo dotty" ; then
7304 cat >>confdefs.h
<<\_ACEOF
7305 #define HAVE_DOTTY 1
7308 if test "$llvm_cv_os_type" = "MingW" ; then
7309 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7312 cat >>confdefs.h
<<_ACEOF
7313 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7319 # Extract the first word of "perl", so it can be a program name with args.
7320 set dummy perl
; ac_word
=$2
7321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323 if test "${ac_cv_path_PERL+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7335 test -z "$as_dir" && as_dir
=.
7336 for ac_exec_ext
in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7350 PERL
=$ac_cv_path_PERL
7351 if test -n "$PERL"; then
7352 { echo "$as_me:$LINENO: result: $PERL" >&5
7353 echo "${ECHO_T}$PERL" >&6; }
7355 { echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6; }
7360 if test "$PERL" != "none"; then
7361 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7362 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7363 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7364 { echo "$as_me:$LINENO: result: yes" >&5
7365 echo "${ECHO_T}yes" >&6; }
7368 { echo "$as_me:$LINENO: result: not found" >&5
7369 echo "${ECHO_T}not found" >&6; }
7374 if test x
"$PERL" = xnone
; then
7382 # Find a good install program. We prefer a C program (faster),
7383 # so one script is as good as another. But avoid the broken or
7384 # incompatible versions:
7385 # SysV /etc/install, /usr/sbin/install
7386 # SunOS /usr/etc/install
7387 # IRIX /sbin/install
7389 # AmigaOS /C/install, which installs bootblocks on floppy discs
7390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7393 # OS/2's system install, which has a completely different semantic
7394 # ./install, which can be erroneously created by make from ./install.sh.
7395 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7396 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7397 if test -z "$INSTALL"; then
7398 if test "${ac_cv_path_install+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir
=.
7406 # Account for people who put trailing slashes in PATH elements.
7408 .
/ | .
// |
/cC
/* | \
7409 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7410 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7413 # OSF1 and SCO ODT 3.0 have their own names for install.
7414 # Don't use installbsd from OSF since it installs stuff as root
7416 for ac_prog
in ginstall scoinst
install; do
7417 for ac_exec_ext
in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7419 if test $ac_prog = install &&
7420 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7421 # AIX install. It has an incompatible calling convention.
7423 elif test $ac_prog = install &&
7424 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7425 # program-specific install script used by HP pwplus--don't use.
7428 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7441 if test "${ac_cv_path_install+set}" = set; then
7442 INSTALL
=$ac_cv_path_install
7444 # As a last resort, use the slow shell script. Don't cache a
7445 # value for INSTALL within a source directory, because that will
7446 # break other packages using the cache if that directory is
7447 # removed, or if the value is a relative name.
7448 INSTALL
=$ac_install_sh
7451 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7452 echo "${ECHO_T}$INSTALL" >&6; }
7454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7455 # It thinks the first close brace ends the variable substitution.
7456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7458 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7460 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7463 # Extract the first word of "bzip2", so it can be a program name with args.
7464 set dummy
bzip2; ac_word
=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_BZIP2+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir
=.
7480 for ac_exec_ext
in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2
="echo "Skipped
: bzip2 not found
""
7494 BZIP2
=$ac_cv_path_BZIP2
7495 if test -n "$BZIP2"; then
7496 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7497 echo "${ECHO_T}$BZIP2" >&6; }
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 # Extract the first word of "doxygen", so it can be a program name with args.
7505 set dummy doxygen
; ac_word
=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir
=.
7521 for ac_exec_ext
in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN
="echo "Skipped
: doxygen not found
""
7535 DOXYGEN
=$ac_cv_path_DOXYGEN
7536 if test -n "$DOXYGEN"; then
7537 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7538 echo "${ECHO_T}$DOXYGEN" >&6; }
7540 { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7545 # Extract the first word of "groff", so it can be a program name with args.
7546 set dummy
groff; ac_word
=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_path_GROFF+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir
=.
7562 for ac_exec_ext
in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF
="echo "Skipped
: groff not found
""
7576 GROFF
=$ac_cv_path_GROFF
7577 if test -n "$GROFF"; then
7578 { echo "$as_me:$LINENO: result: $GROFF" >&5
7579 echo "${ECHO_T}$GROFF" >&6; }
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7586 # Extract the first word of "gzip", so it can be a program name with args.
7587 set dummy
gzip; ac_word
=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_GZIP+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir
=.
7603 for ac_exec_ext
in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP
="echo "Skipped
: gzip not found
""
7617 GZIP
=$ac_cv_path_GZIP
7618 if test -n "$GZIP"; then
7619 { echo "$as_me:$LINENO: result: $GZIP" >&5
7620 echo "${ECHO_T}$GZIP" >&6; }
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7627 # Extract the first word of "pod2html", so it can be a program name with args.
7628 set dummy pod2html
; ac_word
=$2
7629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631 if test "${ac_cv_path_POD2HTML+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir
=.
7644 for ac_exec_ext
in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML
="echo "Skipped
: pod2html not found
""
7658 POD2HTML
=$ac_cv_path_POD2HTML
7659 if test -n "$POD2HTML"; then
7660 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7661 echo "${ECHO_T}$POD2HTML" >&6; }
7663 { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7668 # Extract the first word of "pod2man", so it can be a program name with args.
7669 set dummy pod2man
; ac_word
=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_POD2MAN+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir
=.
7685 for ac_exec_ext
in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN
="echo "Skipped
: pod2man not found
""
7699 POD2MAN
=$ac_cv_path_POD2MAN
7700 if test -n "$POD2MAN"; then
7701 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7702 echo "${ECHO_T}$POD2MAN" >&6; }
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7709 # Extract the first word of "runtest", so it can be a program name with args.
7710 set dummy runtest
; ac_word
=$2
7711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713 if test "${ac_cv_path_RUNTEST+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
7721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7725 test -z "$as_dir" && as_dir
=.
7726 for ac_exec_ext
in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
7729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST
="echo "Skipped
: runtest not found
""
7740 RUNTEST
=$ac_cv_path_RUNTEST
7741 if test -n "$RUNTEST"; then
7742 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7743 echo "${ECHO_T}$RUNTEST" >&6; }
7745 { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7752 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7753 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7755 # Check whether --with-tclinclude was given.
7756 if test "${with_tclinclude+set}" = set; then
7757 withval
=$with_tclinclude; with_tclinclude
=${withval}
7762 if test "${ac_cv_path_tclsh+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 if test x
"${with_tclinclude}" != x
; then
7767 if test -f ${with_tclinclude}/tclsh
; then
7768 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
7769 elif test -f ${with_tclinclude}/src
/tclsh
; then
7770 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
7772 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7773 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7774 { (exit 1); exit 1; }; }
7778 if test x
"${ac_cv_path_tclsh}" = x
; then
7779 { echo "$as_me:$LINENO: result: none" >&5
7780 echo "${ECHO_T}none" >&6; }
7781 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
7783 # Extract the first word of "$ac_prog", so it can be a program name with args.
7784 set dummy
$ac_prog; ac_word
=$2
7785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7787 if test "${ac_cv_path_TCLSH+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
7795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir
=.
7800 for ac_exec_ext
in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 TCLSH
=$ac_cv_path_TCLSH
7814 if test -n "$TCLSH"; then
7815 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7816 echo "${ECHO_T}$TCLSH" >&6; }
7818 { echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6; }
7823 test -n "$TCLSH" && break
7826 if test x
"${TCLSH}" = x
; then
7827 ac_cv_path_tclsh
='';
7829 ac_cv_path_tclsh
="${TCLSH}";
7832 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7833 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7834 TCLSH="${ac_cv_path_tclsh}"
7840 # Extract the first word of "zip", so it can be a program name with args.
7841 set dummy zip; ac_word=$2
7842 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7843 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7844 if test "${ac_cv_path_ZIP+set}" = set; then
7845 echo $ECHO_N "(cached
) $ECHO_C" >&6
7849 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7860 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7867 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7872 if test -n "$ZIP"; then
7873 { echo "$as_me:$LINENO: result
: $ZIP" >&5
7874 echo "${ECHO_T}$ZIP" >&6; }
7876 { echo "$as_me:$LINENO: result
: no
" >&5
7877 echo "${ECHO_T}no
" >&6; }
7882 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
7883 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
7884 if test "${llvm_cv_link_use_r+set}" = set; then
7885 echo $ECHO_N "(cached
) $ECHO_C" >&6
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894 CFLAGS="$CFLAGS -Wl,-R.
"
7895 cat >conftest.$ac_ext <<_ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7905 int main() { return 0; }
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (ac_try="$ac_link"
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_link") 2>conftest.er1
7919 grep -v '^ *+' conftest.er1 >conftest.err
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7925 { (case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_try") 2>&5
7932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest$ac_exeext'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 llvm_cv_link_use_r=yes
7946 echo "$as_me: failed program was
:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 llvm_cv_link_use_r=no
7952 rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
7956 ac_cpp='$CPP $CPPFLAGS'
7957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
7964 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7965 if test "$llvm_cv_link_use_r" = yes ; then
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_LINK_R 1
7976 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
7977 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
7978 if test "${ac_cv_c_const+set}" = set; then
7979 echo $ECHO_N "(cached
) $ECHO_C" >&6
7981 cat >conftest.$ac_ext <<_ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7991 /* FIXME: Include the comments suggested by Paul. */
7993 /* Ultrix mips cc rejects this. */
7994 typedef int charset[2];
7996 /* SunOS 4.1.1 cc rejects this. */
7997 char const *const *ccp;
7999 /* NEC SVR4.0.2 mips cc rejects this. */
8000 struct point {int x, y;};
8001 static struct point const zero = {0,0};
8002 /* AIX XL C 1.02.0.0 rejects this.
8003 It does not let you subtract one const X* pointer from another in
8004 an arm of an if-expression whose if-part is not a constant
8006 const char *g = "string
";
8007 ccp = &g + (g ? g-g : 0);
8008 /* HPUX 7.0 cc rejects these. */
8011 ccp = (char const *const *) p;
8012 { /* SCO 3.2v4 cc rejects this. */
8014 char const *s = 0 ? (char *) 0 : (char const *) 0;
8019 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8021 const int *foo = &x[0];
8024 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8025 typedef const int *iptr;
8029 { /* AIX XL C 1.02.0.0 rejects this saying
8030 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8031 struct s { int j; const int *ap[3]; };
8032 struct s *b; b->j = 5;
8034 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8038 return !x[0] && !zero.x;
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8054 grep -v '^ *+' conftest.er1 >conftest.err
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8060 { (case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_try") 2>&5
8067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest.$ac_objext'
8070 { (case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_try") 2>&5
8077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8078 (exit $ac_status); }; }; then
8081 echo "$as_me: failed program was
:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8090 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8091 if test $ac_cv_c_const = no; then
8093 cat >>confdefs.h <<\_ACEOF
8105 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8106 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8107 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8108 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8109 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8110 echo $ECHO_N "(cached
) $ECHO_C" >&6
8112 cat >conftest.$ac_ext <<_ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118 #include <sys/types.h>
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest.$ac_objext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8163 (exit $ac_status); }; }; then
8164 eval "$as_ac_Header=yes"
8166 echo "$as_me: failed program was
:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 eval "$as_ac_Header=no
"
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 ac_res=`eval echo '${'$as_ac_Header'}'`
8175 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8176 echo "${ECHO_T}$ac_res" >&6; }
8177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8178 cat >>confdefs.h <<_ACEOF
8179 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8182 ac_header_dirent=$ac_hdr; break
8186 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8187 if test $ac_header_dirent = dirent.h; then
8188 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8189 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8190 if test "${ac_cv_search_opendir+set}" = set; then
8191 echo $ECHO_N "(cached
) $ECHO_C" >&6
8193 ac_func_search_save_LIBS=$LIBS
8194 cat >conftest.$ac_ext <<_ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8201 /* Override any GCC internal prototype to avoid an error.
8202 Use char because int might match the return type of a GCC
8203 builtin and then its argument prototype would still apply. */
8216 for ac_lib in '' dir; do
8217 if test -z "$ac_lib"; then
8218 ac_res="none required
"
8221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224 if { (ac_try="$ac_link"
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_link") 2>conftest.er1
8232 grep -v '^ *+' conftest.er1 >conftest.err
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8238 { (case "(($ac_try" in
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_try") 2>&5
8245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8246 (exit $ac_status); }; } &&
8247 { ac_try='test -s conftest$ac_exeext'
8248 { (case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_try") 2>&5
8255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_search_opendir=$ac_res
8259 echo "$as_me: failed program was
:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8265 rm -f core conftest.err conftest.$ac_objext \
8267 if test "${ac_cv_search_opendir+set}" = set; then
8271 if test "${ac_cv_search_opendir+set}" = set; then
8274 ac_cv_search_opendir=no
8277 LIBS=$ac_func_search_save_LIBS
8279 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8280 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8281 ac_res=$ac_cv_search_opendir
8282 if test "$ac_res" != no; then
8283 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8288 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8289 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8290 if test "${ac_cv_search_opendir+set}" = set; then
8291 echo $ECHO_N "(cached
) $ECHO_C" >&6
8293 ac_func_search_save_LIBS=$LIBS
8294 cat >conftest.$ac_ext <<_ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8301 /* Override any GCC internal prototype to avoid an error.
8302 Use char because int might match the return type of a GCC
8303 builtin and then its argument prototype would still apply. */
8316 for ac_lib in '' x; do
8317 if test -z "$ac_lib"; then
8318 ac_res="none required
"
8321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (ac_try="$ac_link"
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_link") 2>conftest.er1
8332 grep -v '^ *+' conftest.er1 >conftest.err
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8338 { (case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_try") 2>&5
8345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8356 (exit $ac_status); }; }; then
8357 ac_cv_search_opendir=$ac_res
8359 echo "$as_me: failed program was
:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8365 rm -f core conftest.err conftest.$ac_objext \
8367 if test "${ac_cv_search_opendir+set}" = set; then
8371 if test "${ac_cv_search_opendir+set}" = set; then
8374 ac_cv_search_opendir=no
8377 LIBS=$ac_func_search_save_LIBS
8379 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8380 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8381 ac_res=$ac_cv_search_opendir
8382 if test "$ac_res" != no; then
8383 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8390 for ac_header in dlfcn.h
8392 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8393 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8394 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8395 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8396 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8397 echo $ECHO_N "(cached
) $ECHO_C" >&6
8399 ac_res=`eval echo '${'$as_ac_Header'}'`
8400 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8401 echo "${ECHO_T}$ac_res" >&6; }
8403 # Is the header compilable?
8404 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8405 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8406 cat >conftest.$ac_ext <<_ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 $ac_includes_default
8413 #include <$ac_header>
8415 rm -f conftest.$ac_objext
8416 if { (ac_try="$ac_compile"
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_compile") 2>conftest.er1
8424 grep -v '^ *+' conftest.er1 >conftest.err
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8430 { (case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_try") 2>&5
8437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest.$ac_objext'
8440 { (case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_try") 2>&5
8447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_header_compiler=yes
8451 echo "$as_me: failed program was
:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_header_compiler=no
8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8459 echo "${ECHO_T}$ac_header_compiler" >&6; }
8461 # Is the header present?
8462 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8463 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8464 cat >conftest.$ac_ext <<_ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 #include <$ac_header>
8472 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8484 (exit $ac_status); } >/dev/null; then
8485 if test -s conftest.err; then
8486 ac_cpp_err=$ac_c_preproc_warn_flag
8487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8494 if test -z "$ac_cpp_err"; then
8495 ac_header_preproc=yes
8497 echo "$as_me: failed program was
:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8500 ac_header_preproc=no
8503 rm -f conftest.err conftest.$ac_ext
8504 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8505 echo "${ECHO_T}$ac_header_preproc" >&6; }
8507 # So? What about this header?
8508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8510 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8511 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8512 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8514 ac_header_preproc=yes
8517 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8518 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8519 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8520 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8521 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8522 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8523 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8524 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8525 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8527 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8528 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8530 ## ----------------------------------- ##
8531 ## Report this to llvmbugs@cs.uiuc.edu ##
8532 ## ----------------------------------- ##
8534 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
8537 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8538 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8539 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8540 echo $ECHO_N "(cached
) $ECHO_C" >&6
8542 eval "$as_ac_Header=\
$ac_header_preproc"
8544 ac_res=`eval echo '${'$as_ac_Header'}'`
8545 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8546 echo "${ECHO_T}$ac_res" >&6; }
8549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8550 cat >>confdefs.h <<_ACEOF
8551 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8558 # Check whether --enable-ltdl-install was given.
8559 if test "${enable_ltdl_install+set}" = set; then
8560 enableval=$enable_ltdl_install;
8566 if test x"${enable_ltdl_install-no}" != xno; then
8568 INSTALL_LTDL_FALSE='#'
8570 INSTALL_LTDL_TRUE='#'
8576 if test x"${enable_ltdl_convenience-no}" != xno; then
8577 CONVENIENCE_LTDL_TRUE=
8578 CONVENIENCE_LTDL_FALSE='#'
8580 CONVENIENCE_LTDL_TRUE='#'
8581 CONVENIENCE_LTDL_FALSE=
8585 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
8586 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
8588 libname_spec='lib$name'
8596 shlibpath_overrides_runpath=unknown
8598 dynamic_linker="$host_os ld.so
"
8599 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
8600 if test "$GCC" = yes; then
8601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
8602 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8603 # if the path contains ";" then we assume it to be the separator
8604 # otherwise default to the standard path separator (i.e. ":") - it is
8605 # assumed that no part of a normal pathname contains ";" but that should
8606 # okay in the real world where ";" in dirpaths is itself problematic.
8607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
8612 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
8614 need_lib_prefix=unknown
8615 hardcode_into_libs=no
8617 # when you set need_version to no, make sure it does not cause -set_version
8618 # flags to be left without arguments
8619 need_version=unknown
8624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8625 shlibpath_var=LIBPATH
8627 # AIX 3 has no versioning support, so we append a major version to the name.
8628 soname_spec='${libname}${release}${shared_ext}$major'
8635 hardcode_into_libs=yes
8636 if test "$host_cpu" = ia64; then
8637 # AIX 5 supports IA64
8638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8639 shlibpath_var=LD_LIBRARY_PATH
8641 # With GCC up to 2.95.x, collect2 would create an import file
8642 # for dependence libraries. The import file would start with
8643 # the line `#! .'. This would cause the generated library to
8644 # depend on `.', always an invalid library. This was fixed in
8645 # development snapshots of GCC prior to 3.0.
8647 aix4 | aix4.[01] | aix4.[01].*)
8648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8650 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8658 # soname into executable. Probably we can add versioning support to
8659 # collect2, so additional links can be useful in future.
8660 if test "$aix_use_runtimelinking" = yes; then
8661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8662 # instead of lib<name>.a to let people know that these are not
8663 # typical AIX shared libraries.
8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666 # We preserve .a as extension for shared libraries through AIX4.2
8667 # and later when we are not doing run time linking.
8668 library_names_spec='${libname}${release}.a $libname.a'
8669 soname_spec='${libname}${release}${shared_ext}$major'
8671 shlibpath_var=LIBPATH
8676 library_names_spec='$libname.ixlibrary $libname.a'
8677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8678 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'
8682 library_names_spec='${libname}${shared_ext}'
8683 dynamic_linker="$host_os ld.so
"
8684 shlibpath_var=LIBRARY_PATH
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
8693 shlibpath_var=LD_LIBRARY_PATH
8694 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
8695 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
8696 # the default ld.so.conf also contains /usr/contrib/lib and
8697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8698 # libtool to hard-code these into programs
8701 cygwin* | mingw* | pw32*)
8702 version_type=windows
8707 case $GCC,$host_os in
8708 yes,cygwin* | yes,mingw* | yes,pw32*)
8709 library_names_spec='$libname.dll.a'
8710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8711 postinstall_cmds='base_file=`basename \${file}`~
8712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8713 dldir=$destdir/`dirname \$dlpath`~
8714 test -d \$dldir || mkdir -p \$dldir~
8715 $install_prog $dir/$dlname \$dldir/$dlname~
8716 chmod a+x \$dldir/$dlname'
8717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8718 dlpath=$dir/\$dldll~
8720 shlibpath_overrides_runpath=yes
8724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8726 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
8729 # MinGW DLLs use traditional 'lib' prefix
8730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
8732 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8733 # It is most probably a Windows format PATH printed by
8734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8735 # path with ; separators, and with drive letters. We can handle the
8736 # drive letters (cygwin fileutils understands them), so leave them,
8737 # especially as we might pass files found there to a mingw objdump,
8738 # which wouldn't understand a cygwinified path. Ahh.
8739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
8745 # pw32 DLLs use 'pw' prefix rather than 'lib'
8746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8755 dynamic_linker='Win32 ld.exe'
8756 # FIXME: first we should search . and the directory the executable is in
8760 darwin* | rhapsody*)
8761 dynamic_linker="$host_os dyld
"
8765 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8766 soname_spec='${libname}${release}${major}$shared_ext'
8767 shlibpath_overrides_runpath=yes
8768 shlibpath_var=DYLD_LIBRARY_PATH
8769 shrext_cmds='.dylib'
8770 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8771 if test "$GCC" = yes; then
8772 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
"`
8774 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 shlibpath_var=LD_LIBRARY_PATH
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 shlibpath_var=LD_LIBRARY_PATH
8799 shlibpath_overrides_runpath=no
8800 hardcode_into_libs=yes
8801 dynamic_linker='GNU ld.so'
8804 freebsd* | dragonfly*)
8805 # DragonFly does not have aout. When/if they implement a new
8806 # versioning mechanism, adjust this.
8807 if test -x /usr/bin/objformat; then
8808 objformat=`/usr/bin/objformat`
8811 freebsd[123]*) objformat=aout ;;
8815 version_type=freebsd-$objformat
8816 case $version_type in
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8827 shlibpath_var=LD_LIBRARY_PATH
8830 shlibpath_overrides_runpath=yes
8832 freebsd3.[01]* | freebsdelf3.[01]*)
8833 shlibpath_overrides_runpath=yes
8834 hardcode_into_libs=yes
8836 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8837 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8838 shlibpath_overrides_runpath=no
8839 hardcode_into_libs=yes
8841 freebsd*) # from 4.6 on
8842 shlibpath_overrides_runpath=yes
8843 hardcode_into_libs=yes
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 hardcode_into_libs=yes
8858 hpux9* | hpux10* | hpux11*)
8859 # Give a soname corresponding to the major version so that dld.sl refuses to
8860 # link against other versions.
8867 hardcode_into_libs=yes
8868 dynamic_linker="$host_os dld.so
"
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 if test "X
$HPUX_IA64_MODE" = X32; then
8874 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
8876 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
8878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8882 hardcode_into_libs=yes
8883 dynamic_linker="$host_os dld.sl
"
8884 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
8889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8893 dynamic_linker="$host_os dld.sl
"
8894 shlibpath_var=SHLIB_PATH
8895 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8900 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8901 postinstall_cmds='chmod 555 $lib'
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=no
8913 hardcode_into_libs=yes
8916 irix5* | irix6* | nonstopux*)
8918 nonstopux*) version_type=nonstopux ;;
8920 if test "$lt_cv_prog_gnu_ld" = yes; then
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8931 irix5* | nonstopux*)
8935 case $LD in # libtool.m4 will add one of these switches to LD
8936 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8937 libsuff= shlibsuff= libmagic=32-bit;;
8938 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8939 libsuff=32 shlibsuff=N32 libmagic=N32;;
8940 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8941 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8942 *) libsuff= shlibsuff= libmagic=never-match;;
8946 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8947 shlibpath_overrides_runpath=no
8948 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8949 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
8950 hardcode_into_libs=yes
8953 # No shared lib support for Linux oldld, aout, or coff.
8954 linux*oldld* | linux*aout* | linux*coff*)
8958 # This must be Linux ELF.
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 shlibpath_overrides_runpath=no
8968 # This implies no fast_install, which is unacceptable.
8969 # Some rework will be needed to allow for fast_install
8970 # before this can be enabled.
8971 hardcode_into_libs=yes
8973 # Append ld.so.conf contents to the search path
8974 if test -f /etc/ld.so.conf; then
8975 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' ' '`
8976 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
8979 # We used to test for /lib/ld.so.1 and disable shared libraries on
8980 # powerpc, because MkLinux only supported shared libraries with the
8981 # GNU dynamic linker. Since this was broken with cross compilers,
8982 # most powerpc-linux boxes support dynamic linking these days and
8983 # people can always --disable-shared, the test was removed, and we
8984 # assume the GNU/Linux dynamic linker is in use.
8985 dynamic_linker='GNU/Linux ld.so'
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=no
8996 hardcode_into_libs=yes
8997 dynamic_linker='GNU ld.so'
9004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9006 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9007 dynamic_linker='NetBSD (a.out) ld.so'
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 dynamic_linker='NetBSD ld.elf_so'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 shlibpath_overrides_runpath=yes
9015 hardcode_into_libs=yes
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=yes
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes
9037 sys_lib_dlsearch_path_spec="/usr
/lib
"
9039 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9041 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9042 *) need_version=no ;;
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9045 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9049 openbsd2.[89] | openbsd2.[89].*)
9050 shlibpath_overrides_runpath=no
9053 shlibpath_overrides_runpath=yes
9057 shlibpath_overrides_runpath=yes
9062 libname_spec='$name'
9065 library_names_spec='$libname${shared_ext} $libname.a'
9066 dynamic_linker='OS/2 ld.exe'
9067 shlibpath_var=LIBPATH
9070 osf3* | osf4* | osf5*)
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9078 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9089 hardcode_into_libs=yes
9090 # ldd complains unless libraries are executable
9091 postinstall_cmds='chmod +x $lib'
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9097 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=yes
9100 if test "$with_gnu_ld" = yes; then
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 case $host_vendor in
9113 shlibpath_overrides_runpath=no
9115 export_dynamic_flag_spec='${wl}-Blargedynsym'
9116 runpath_var=LD_RUN_PATH
9124 shlibpath_overrides_runpath=no
9125 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9131 if test -d /usr/nec ;then
9133 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9134 soname_spec='$libname${shared_ext}.$major'
9135 shlibpath_var=LD_LIBRARY_PATH
9139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9140 version_type=freebsd-elf
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 hardcode_into_libs=yes
9147 if test "$with_gnu_ld" = yes; then
9148 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9149 shlibpath_overrides_runpath=no
9151 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9152 shlibpath_overrides_runpath=yes
9155 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9159 sys_lib_dlsearch_path_spec='/usr/lib'
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 shlibpath_var=LD_LIBRARY_PATH
9173 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9174 echo "${ECHO_T}$dynamic_linker" >&6; }
9175 test "$dynamic_linker" = no && can_build_shared=no
9177 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9178 if test "$GCC" = yes; then
9179 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9183 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9184 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9185 if test "${libltdl_cv_shlibext+set}" = set; then
9186 echo $ECHO_N "(cached
) $ECHO_C" >&6
9190 eval libltdl_cv_shlibext=$shrext_cmds
9193 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9194 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9195 if test -n "$libltdl_cv_shlibext"; then
9197 cat >>confdefs.h <<_ACEOF
9198 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9204 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9205 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9206 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9207 echo $ECHO_N "(cached
) $ECHO_C" >&6
9209 libltdl_cv_shlibpath_var="$shlibpath_var"
9211 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9212 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9213 if test -n "$libltdl_cv_shlibpath_var"; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9222 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9223 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9224 if test "${libltdl_cv_sys_search_path+set}" = set; then
9225 echo $ECHO_N "(cached
) $ECHO_C" >&6
9227 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9229 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9230 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9231 if test -n "$libltdl_cv_sys_search_path"; then
9233 for dir in $libltdl_cv_sys_search_path; do
9234 if test -z "$sys_search_path"; then
9235 sys_search_path="$dir"
9237 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9241 cat >>confdefs.h <<_ACEOF
9242 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9247 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9248 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9249 if test "${libltdl_cv_objdir+set}" = set; then
9250 echo $ECHO_N "(cached
) $ECHO_C" >&6
9252 libltdl_cv_objdir="$objdir"
9253 if test -n "$objdir"; then
9256 rm -f .libs 2>/dev/null
9257 mkdir .libs 2>/dev/null
9258 if test -d .libs; then
9259 libltdl_cv_objdir=.libs
9261 # MS-DOS does not allow filenames that begin with a dot.
9262 libltdl_cv_objdir=_libs
9264 rmdir .libs 2>/dev/null
9268 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9269 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9271 cat >>confdefs.h <<_ACEOF
9272 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9280 # Check for command to grab the raw symbol name followed by C symbol from nm.
9281 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9282 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9283 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9284 echo $ECHO_N "(cached
) $ECHO_C" >&6
9287 # These are sane defaults that work on at least a few old systems.
9288 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9290 # Character class describing NM global symbol codes.
9291 symcode='[BCDEGRST]'
9293 # Regexp to match symbols that can be accessed directly from C.
9294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9296 # Transform an extracted symbol line into a proper C declaration
9297 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9299 # Transform an extracted symbol line into symbol name and symbol address
9300 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'"
9302 # Define system-specific variables.
9307 cygwin* | mingw* | pw32*)
9308 symcode='[ABCDGISTW]'
9310 hpux*) # Its linker distinguishes data from code symbols
9311 if test "$host_cpu" = ia64; then
9312 symcode='[ABCDEGRST]'
9314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9315 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'"
9318 if test "$host_cpu" = ia64; then
9319 symcode='[ABCDGIRSTW]'
9320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9321 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'"
9325 symcode='[BCDEGRST]'
9328 symcode='[BCDEGQRST]'
9339 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9347 # Handle CRLF in mingw tool chain
9351 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9355 # If we're using GNU nm, then use its standard symbol codes.
9356 case `$NM -V 2>&1` in
9357 *GNU* | *'with BFD'*)
9358 symcode='[ABCDGIRSTW]' ;;
9361 # Try without a prefix undercore, then with it.
9362 for ac_symprfx in "" "_
"; do
9364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9365 symxfrm="\\1 $ac_symprfx\\2 \\2"
9367 # Write the raw and C identifiers.
9368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9370 # Check to see that the pipe works correctly.
9374 cat > conftest.$ac_ext <<EOF
9379 void nm_test_func(){}
9383 int main(){nm_test_var='a';nm_test_func();return(0);}
9386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387 (eval $ac_compile) 2>&5
9389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9390 (exit $ac_status); }; then
9391 # Now try to grab the symbols.
9393 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
9394 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9397 (exit $ac_status); } && test -s "$nlist"; then
9398 # Try sorting and uniquifying the output.
9399 if sort "$nlist" | uniq > "$nlist"T; then
9400 mv -f "$nlist"T "$nlist"
9405 # Make sure that we snagged all the symbols we need.
9406 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9407 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9408 cat <<EOF > conftest.$ac_ext
9414 # Now generate the symbol file.
9415 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9417 cat <<EOF >> conftest.$ac_ext
9418 #if defined (__STDC__) && __STDC__
9419 # define lt_ptr_t void *
9421 # define lt_ptr_t char *
9425 /* The mapping between symbol names and symbols. */
9430 lt_preloaded_symbols[] =
9433 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9434 cat <<\EOF >> conftest.$ac_ext
9442 # Now try linking the two files.
9443 mv conftest.$ac_objext conftstm.$ac_objext
9444 lt_save_LIBS="$LIBS"
9445 lt_save_CFLAGS="$CFLAGS"
9446 LIBS="conftstm.
$ac_objext"
9447 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449 (eval $ac_link) 2>&5
9451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9452 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9455 LIBS="$lt_save_LIBS"
9456 CFLAGS="$lt_save_CFLAGS"
9458 echo "cannot
find nm_test_func
in $nlist" >&5
9461 echo "cannot
find nm_test_var
in $nlist" >&5
9464 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
9467 echo "$progname: failed program was
:" >&5
9468 cat conftest.$ac_ext >&5
9470 rm -f conftest* conftst*
9472 # Do not use the global_symbol_pipe unless it works.
9473 if test "$pipe_works" = yes; then
9476 lt_cv_sys_global_symbol_pipe=
9482 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9483 lt_cv_sys_global_symbol_to_cdecl=
9485 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9486 { echo "$as_me:$LINENO: result
: failed
" >&5
9487 echo "${ECHO_T}failed
" >&6; }
9489 { echo "$as_me:$LINENO: result
: ok
" >&5
9490 echo "${ECHO_T}ok
" >&6; }
9494 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
9495 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
9496 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9497 echo $ECHO_N "(cached
) $ECHO_C" >&6
9499 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9500 libltdl_cv_preloaded_symbols=yes
9502 libltdl_cv_preloaded_symbols=no
9506 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
9507 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9508 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9510 cat >>confdefs.h <<\_ACEOF
9511 #define HAVE_PRELOADED_SYMBOLS 1
9519 ac_cpp='$CPP $CPPFLAGS'
9520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9525 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
9526 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
9527 if test "${ac_cv_func_shl_load+set}" = set; then
9528 echo $ECHO_N "(cached
) $ECHO_C" >&6
9530 cat >conftest.$ac_ext <<_ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9538 #define shl_load innocuous_shl_load
9540 /* System header to define __stub macros and hopefully few prototypes,
9541 which can conflict with char shl_load (); below.
9542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543 <limits.h> exists even on freestanding compilers. */
9546 # include <limits.h>
9548 # include <assert.h>
9553 /* Override any GCC internal prototype to avoid an error.
9554 Use char because int might match the return type of a GCC
9555 builtin and then its argument prototype would still apply. */
9560 /* The GNU C library defines this for functions which it implements
9561 to always fail with ENOSYS. Some functions are actually named
9562 something starting with __ and the normal name is an alias. */
9563 #if defined __stub_shl_load || defined __stub___shl_load
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (ac_try="$ac_link"
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_link") 2>conftest.er1
9584 grep -v '^ *+' conftest.er1 >conftest.err
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9590 { (case "(($ac_try" in
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_try") 2>&5
9597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try='test -s conftest$ac_exeext'
9600 { (case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_try") 2>&5
9607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9608 (exit $ac_status); }; }; then
9609 ac_cv_func_shl_load=yes
9611 echo "$as_me: failed program was
:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9614 ac_cv_func_shl_load=no
9617 rm -f core conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9620 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
9621 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9622 if test $ac_cv_func_shl_load = yes; then
9624 cat >>confdefs.h <<\_ACEOF
9625 #define HAVE_SHL_LOAD 1
9629 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
9630 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
9631 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9632 echo $ECHO_N "(cached
) $ECHO_C" >&6
9634 ac_check_lib_save_LIBS=$LIBS
9636 cat >conftest.$ac_ext <<_ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673 { (case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_try") 2>&5
9680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_try") 2>&5
9690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_lib_dld_shl_load=yes
9694 echo "$as_me: failed program was
:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_lib_dld_shl_load=no
9700 rm -f core conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9704 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
9705 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9706 if test $ac_cv_lib_dld_shl_load = yes; then
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_SHL_LOAD 1
9712 LIBADD_DL="$LIBADD_DL -ldld"
9714 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
9715 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
9716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9717 echo $ECHO_N "(cached
) $ECHO_C" >&6
9719 ac_check_lib_save_LIBS=$LIBS
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9728 /* Override any GCC internal prototype to avoid an error.
9729 Use char because int might match the return type of a GCC
9730 builtin and then its argument prototype would still apply. */
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (ac_try="$ac_link"
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_link") 2>conftest.er1
9752 grep -v '^ *+' conftest.er1 >conftest.err
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9758 { (case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_try") 2>&5
9765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest$ac_exeext'
9768 { (case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_try") 2>&5
9775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 ac_cv_lib_dl_dlopen=yes
9779 echo "$as_me: failed program was
:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 ac_cv_lib_dl_dlopen=no
9785 rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_check_lib_save_LIBS
9789 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
9790 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9791 if test $ac_cv_lib_dl_dlopen = yes; then
9793 cat >>confdefs.h <<\_ACEOF
9794 #define HAVE_LIBDL 1
9797 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9799 cat >conftest.$ac_ext <<_ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
9849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9850 (exit $ac_status); }; }; then
9852 cat >>confdefs.h <<\_ACEOF
9853 #define HAVE_LIBDL 1
9855 libltdl_cv_func_dlopen="yes"
9857 echo "$as_me: failed program was
:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
9861 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
9862 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9863 echo $ECHO_N "(cached
) $ECHO_C" >&6
9865 ac_check_lib_save_LIBS=$LIBS
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9874 /* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_link") 2>conftest.er1
9898 grep -v '^ *+' conftest.er1 >conftest.err
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9904 { (case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_try") 2>&5
9911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9912 (exit $ac_status); }; } &&
9913 { ac_try='test -s conftest$ac_exeext'
9914 { (case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_try") 2>&5
9921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_lib_svld_dlopen=yes
9925 echo "$as_me: failed program was
:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 ac_cv_lib_svld_dlopen=no
9931 rm -f core conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9933 LIBS=$ac_check_lib_save_LIBS
9935 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
9936 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9937 if test $ac_cv_lib_svld_dlopen = yes; then
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_LIBDL 1
9943 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9945 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
9946 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
9947 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9948 echo $ECHO_N "(cached
) $ECHO_C" >&6
9950 ac_check_lib_save_LIBS=$LIBS
9952 cat >conftest.$ac_ext <<_ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9959 /* Override any GCC internal prototype to avoid an error.
9960 Use char because int might match the return type of a GCC
9961 builtin and then its argument prototype would still apply. */
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_lib_dld_dld_link=yes
10010 echo "$as_me: failed program was
:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_cv_lib_dld_dld_link=no
10016 rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_check_lib_save_LIBS
10020 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10021 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10022 if test $ac_cv_lib_dld_dld_link = yes; then
10024 cat >>confdefs.h <<\_ACEOF
10028 LIBADD_DL="$LIBADD_DL -ldld"
10030 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10031 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10032 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10033 echo $ECHO_N "(cached
) $ECHO_C" >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10043 #define _dyld_func_lookup innocuous__dyld_func_lookup
10045 /* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char _dyld_func_lookup (); below.
10047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048 <limits.h> exists even on freestanding compilers. */
10051 # include <limits.h>
10053 # include <assert.h>
10056 #undef _dyld_func_lookup
10058 /* Override any GCC internal prototype to avoid an error.
10059 Use char because int might match the return type of a GCC
10060 builtin and then its argument prototype would still apply. */
10064 char _dyld_func_lookup ();
10065 /* The GNU C library defines this for functions which it implements
10066 to always fail with ENOSYS. Some functions are actually named
10067 something starting with __ and the normal name is an alias. */
10068 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10075 return _dyld_func_lookup ();
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (ac_try="$ac_link"
10082 case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_link") 2>conftest.er1
10089 grep -v '^ *+' conftest.er1 >conftest.err
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10093 (exit $ac_status); } &&
10094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10095 { (case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_try") 2>&5
10102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest$ac_exeext'
10105 { (case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_try") 2>&5
10112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_func__dyld_func_lookup=yes
10116 echo "$as_me: failed program was
:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_func__dyld_func_lookup=no
10122 rm -f core conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
10125 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10126 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10127 if test $ac_cv_func__dyld_func_lookup = yes; then
10129 cat >>confdefs.h <<\_ACEOF
10130 #define HAVE_DYLD 1
10144 rm -f core conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
10156 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10158 lt_save_LIBS="$LIBS"
10159 LIBS="$LIBS $LIBADD_DL"
10161 for ac_func in dlerror
10163 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10164 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10165 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10166 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10167 echo $ECHO_N "(cached
) $ECHO_C" >&6
10169 cat >conftest.$ac_ext <<_ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10177 #define $ac_func innocuous_$ac_func
10179 /* System header to define __stub macros and hopefully few prototypes,
10180 which can conflict with char $ac_func (); below.
10181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10182 <limits.h> exists even on freestanding compilers. */
10185 # include <limits.h>
10187 # include <assert.h>
10192 /* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10199 /* The GNU C library defines this for functions which it implements
10200 to always fail with ENOSYS. Some functions are actually named
10201 something starting with __ and the normal name is an alias. */
10202 #if defined __stub_$ac_func || defined __stub___$ac_func
10209 return $ac_func ();
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (ac_try="$ac_link"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_link") 2>conftest.er1
10223 grep -v '^ *+' conftest.er1 >conftest.err
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10227 (exit $ac_status); } &&
10228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_try") 2>&5
10246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 eval "$as_ac_var=yes"
10250 echo "$as_me: failed program was
:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 eval "$as_ac_var=no
"
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10259 ac_res=`eval echo '${'$as_ac_var'}'`
10260 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10261 echo "${ECHO_T}$ac_res" >&6; }
10262 if test `eval echo '${'$as_ac_var'}'` = yes; then
10263 cat >>confdefs.h <<_ACEOF
10264 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10270 LIBS="$lt_save_LIBS"
10273 ac_cpp='$CPP $CPPFLAGS'
10274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10280 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10281 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10282 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10283 echo $ECHO_N "(cached
) $ECHO_C" >&6
10285 ac_cv_sys_symbol_underscore=no
10286 cat > conftest.$ac_ext <<EOF
10287 void nm_test_func(){}
10288 int main(){nm_test_func;return 0;}
10290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291 (eval $ac_compile) 2>&5
10293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10294 (exit $ac_status); }; then
10295 # Now try to grab the symbols.
10296 ac_nlist=conftest.nm
10297 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10298 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10301 (exit $ac_status); } && test -s "$ac_nlist"; then
10302 # See whether the symbols have a leading underscore.
10303 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10304 ac_cv_sys_symbol_underscore=yes
10306 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10309 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10313 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10316 echo "configure
: failed program was
:" >&5
10322 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10323 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10326 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10327 if test x"$libltdl_cv_func_dlopen" = xyes ||
10328 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10329 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10330 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10331 if test "${libltdl_cv_need_uscore+set}" = set; then
10332 echo $ECHO_N "(cached
) $ECHO_C" >&6
10334 libltdl_cv_need_uscore=unknown
10336 LIBS="$LIBS $LIBADD_DL"
10337 if test "$cross_compiling" = yes; then :
10338 libltdl_cv_need_uscore=cross
10340 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10341 lt_status=$lt_dlunknown
10342 cat > conftest.$ac_ext <<EOF
10343 #line 10343 "configure
"
10344 #include "confdefs.h
"
10353 # define LT_DLGLOBAL RTLD_GLOBAL
10356 # define LT_DLGLOBAL DL_GLOBAL
10358 # define LT_DLGLOBAL 0
10362 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10363 find out it does not work in some platform. */
10364 #ifndef LT_DLLAZY_OR_NOW
10366 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10369 # define LT_DLLAZY_OR_NOW DL_LAZY
10372 # define LT_DLLAZY_OR_NOW RTLD_NOW
10375 # define LT_DLLAZY_OR_NOW DL_NOW
10377 # define LT_DLLAZY_OR_NOW 0
10385 extern "C
" void exit (int);
10388 void fnord() { int i=42;}
10391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10392 int status = $lt_dlunknown;
10396 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
10397 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
10398 /* dlclose (self); */
10406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407 (eval $ac_link) 2>&5
10409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10411 (./conftest; exit; ) >&5 2>/dev/null
10413 case x$lt_status in
10414 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10415 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10416 x$lt_dlunknown|x*) ;;
10419 # compilation failed
10428 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
10429 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10433 if test x"$libltdl_cv_need_uscore" = xyes; then
10435 cat >>confdefs.h <<\_ACEOF
10436 #define NEED_USCORE 1
10442 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
10443 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
10444 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10445 echo $ECHO_N "(cached
) $ECHO_C" >&6
10447 # PORTME does your system automatically load deplibs for dlopen?
10448 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10449 # For now, we just catch OSes we know something about -- in the
10450 # future, we'll try test this programmatically.
10451 libltdl_cv_sys_dlopen_deplibs=unknown
10453 aix3*|aix4.1.*|aix4.2.*)
10454 # Unknown whether this is true for these versions of AIX, but
10455 # we want this `case' here to explicitly catch those versions.
10456 libltdl_cv_sys_dlopen_deplibs=unknown
10459 libltdl_cv_sys_dlopen_deplibs=yes
10462 # Assuming the user has installed a libdl from somewhere, this is true
10463 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10464 libltdl_cv_sys_dlopen_deplibs=yes
10466 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10467 # GNU and its variants, using gnu ld.so (Glibc)
10468 libltdl_cv_sys_dlopen_deplibs=yes
10471 libltdl_cv_sys_dlopen_deplibs=yes
10474 libltdl_cv_sys_dlopen_deplibs=yes
10476 irix[12345]*|irix6.[01]*)
10477 # Catch all versions of IRIX before 6.2, and indicate that we don't
10478 # know how it worked for any of those versions.
10479 libltdl_cv_sys_dlopen_deplibs=unknown
10482 # The case above catches anything before 6.2, and it's known that
10483 # at 6.2 and later dlopen does load deplibs.
10484 libltdl_cv_sys_dlopen_deplibs=yes
10487 libltdl_cv_sys_dlopen_deplibs=yes
10490 libltdl_cv_sys_dlopen_deplibs=yes
10493 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10494 # it did *not* use an RPATH in a shared library to find objects the
10495 # library depends on, so we explictly say `no'.
10496 libltdl_cv_sys_dlopen_deplibs=no
10498 osf5.0|osf5.0a|osf5.1)
10499 # dlopen *does* load deplibs and with the right loader patch applied
10500 # it even uses RPATH in a shared library to search for shared objects
10501 # that the library depends on, but there's no easy way to know if that
10502 # patch is installed. Since this is the case, all we can really
10503 # say is unknown -- it depends on the patch being installed. If
10504 # it is, this changes to `yes'. Without it, it would be `no'.
10505 libltdl_cv_sys_dlopen_deplibs=unknown
10508 # the two cases above should catch all versions of osf <= 5.1. Read
10509 # the comments above for what we know about them.
10510 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10511 # is used to find them so we can finally say `yes'.
10512 libltdl_cv_sys_dlopen_deplibs=yes
10515 libltdl_cv_sys_dlopen_deplibs=yes
10517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10518 libltdl_cv_sys_dlopen_deplibs=yes
10523 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
10524 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10525 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10527 cat >>confdefs.h <<\_ACEOF
10528 #define LTDL_DLOPEN_DEPLIBS 1
10534 for ac_header in argz.h
10536 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10537 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10538 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10539 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10540 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10541 echo $ECHO_N "(cached
) $ECHO_C" >&6
10543 ac_res=`eval echo '${'$as_ac_Header'}'`
10544 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10545 echo "${ECHO_T}$ac_res" >&6; }
10547 # Is the header compilable?
10548 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10549 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10550 cat >conftest.$ac_ext <<_ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 $ac_includes_default
10557 #include <$ac_header>
10559 rm -f conftest.$ac_objext
10560 if { (ac_try="$ac_compile"
10561 case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_compile") 2>conftest.er1
10568 grep -v '^ *+' conftest.er1 >conftest.err
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_try") 2>&5
10581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest.$ac_objext'
10584 { (case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_try") 2>&5
10591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_header_compiler=yes
10595 echo "$as_me: failed program was
:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_header_compiler=no
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10603 echo "${ECHO_T}$ac_header_compiler" >&6; }
10605 # Is the header present?
10606 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10607 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10608 cat >conftest.$ac_ext <<_ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <$ac_header>
10616 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10617 case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10624 grep -v '^ *+' conftest.er1 >conftest.err
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10628 (exit $ac_status); } >/dev/null; then
10629 if test -s conftest.err; then
10630 ac_cpp_err=$ac_c_preproc_warn_flag
10631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10638 if test -z "$ac_cpp_err"; then
10639 ac_header_preproc=yes
10641 echo "$as_me: failed program was
:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 ac_header_preproc=no
10647 rm -f conftest.err conftest.$ac_ext
10648 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10649 echo "${ECHO_T}$ac_header_preproc" >&6; }
10651 # So? What about this header?
10652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10654 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10655 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10656 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10658 ac_header_preproc=yes
10661 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10662 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10663 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10664 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10665 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10666 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10667 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10668 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10669 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10671 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10672 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10674 ## ----------------------------------- ##
10675 ## Report this to llvmbugs@cs.uiuc.edu ##
10676 ## ----------------------------------- ##
10678 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
10681 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10682 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10683 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10684 echo $ECHO_N "(cached
) $ECHO_C" >&6
10686 eval "$as_ac_Header=\
$ac_header_preproc"
10688 ac_res=`eval echo '${'$as_ac_Header'}'`
10689 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10690 echo "${ECHO_T}$ac_res" >&6; }
10693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10694 cat >>confdefs.h <<_ACEOF
10695 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10703 { echo "$as_me:$LINENO: checking
for error_t
" >&5
10704 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
10705 if test "${ac_cv_type_error_t+set}" = set; then
10706 echo $ECHO_N "(cached
) $ECHO_C" >&6
10708 cat >conftest.$ac_ext <<_ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10718 typedef error_t ac__type_new_;
10722 if ((ac__type_new_ *) 0)
10724 if (sizeof (ac__type_new_))
10730 rm -f conftest.$ac_objext
10731 if { (ac_try="$ac_compile"
10732 case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_compile") 2>conftest.er1
10739 grep -v '^ *+' conftest.er1 >conftest.err
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745 { (case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_try") 2>&5
10752 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest.$ac_objext'
10755 { (case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_try") 2>&5
10762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 ac_cv_type_error_t=yes
10766 echo "$as_me: failed program was
:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 ac_cv_type_error_t=no
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
10775 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10776 if test $ac_cv_type_error_t = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779 #define HAVE_ERROR_T 1
10785 cat >>confdefs.h <<\_ACEOF
10786 #define error_t int
10797 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10799 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10800 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10801 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10802 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10803 echo $ECHO_N "(cached
) $ECHO_C" >&6
10805 cat >conftest.$ac_ext <<_ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813 #define $ac_func innocuous_$ac_func
10815 /* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char $ac_func (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
10821 # include <limits.h>
10823 # include <assert.h>
10828 /* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10835 /* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838 #if defined __stub_$ac_func || defined __stub___$ac_func
10845 return $ac_func ();
10850 rm -f conftest.$ac_objext conftest$ac_exeext
10851 if { (ac_try="$ac_link"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest$ac_exeext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10882 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 eval "$as_ac_var=yes"
10886 echo "$as_me: failed program was
:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 eval "$as_ac_var=no
"
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10895 ac_res=`eval echo '${'$as_ac_var'}'`
10896 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10897 echo "${ECHO_T}$ac_res" >&6; }
10898 if test `eval echo '${'$as_ac_var'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10933 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10936 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10937 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10938 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10939 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10940 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10941 echo $ECHO_N "(cached
) $ECHO_C" >&6
10943 ac_res=`eval echo '${'$as_ac_Header'}'`
10944 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10945 echo "${ECHO_T}$ac_res" >&6; }
10947 # Is the header compilable?
10948 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10949 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10950 cat >conftest.$ac_ext <<_ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 $ac_includes_default
10957 #include <$ac_header>
10959 rm -f conftest.$ac_objext
10960 if { (ac_try="$ac_compile"
10961 case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10968 grep -v '^ *+' conftest.er1 >conftest.err
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10974 { (case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10978 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_try") 2>&5
10981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest.$ac_objext'
10984 { (case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_try") 2>&5
10991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 ac_header_compiler=yes
10995 echo "$as_me: failed program was
:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10998 ac_header_compiler=no
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11003 echo "${ECHO_T}$ac_header_compiler" >&6; }
11005 # Is the header present?
11006 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11007 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11008 cat >conftest.$ac_ext <<_ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #include <$ac_header>
11016 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11024 grep -v '^ *+' conftest.er1 >conftest.err
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11028 (exit $ac_status); } >/dev/null; then
11029 if test -s conftest.err; then
11030 ac_cpp_err=$ac_c_preproc_warn_flag
11031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11038 if test -z "$ac_cpp_err"; then
11039 ac_header_preproc=yes
11041 echo "$as_me: failed program was
:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ac_header_preproc=no
11047 rm -f conftest.err conftest.$ac_ext
11048 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11049 echo "${ECHO_T}$ac_header_preproc" >&6; }
11051 # So? What about this header?
11052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11054 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11055 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11056 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11058 ac_header_preproc=yes
11061 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11062 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11063 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11064 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11065 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11066 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11067 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11068 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11069 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11071 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11072 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11074 ## ----------------------------------- ##
11075 ## Report this to llvmbugs@cs.uiuc.edu ##
11076 ## ----------------------------------- ##
11078 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11081 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11082 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11083 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11084 echo $ECHO_N "(cached
) $ECHO_C" >&6
11086 eval "$as_ac_Header=\
$ac_header_preproc"
11088 ac_res=`eval echo '${'$as_ac_Header'}'`
11089 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11090 echo "${ECHO_T}$ac_res" >&6; }
11093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11094 cat >>confdefs.h <<_ACEOF
11095 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11106 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11108 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11109 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11110 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11111 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11112 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11113 echo $ECHO_N "(cached
) $ECHO_C" >&6
11115 ac_res=`eval echo '${'$as_ac_Header'}'`
11116 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11117 echo "${ECHO_T}$ac_res" >&6; }
11119 # Is the header compilable?
11120 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11121 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11122 cat >conftest.$ac_ext <<_ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11128 $ac_includes_default
11129 #include <$ac_header>
11131 rm -f conftest.$ac_objext
11132 if { (ac_try="$ac_compile"
11133 case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_compile") 2>conftest.er1
11140 grep -v '^ *+' conftest.er1 >conftest.err
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11154 (exit $ac_status); }; } &&
11155 { ac_try='test -s conftest.$ac_objext'
11156 { (case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
11163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_header_compiler=yes
11167 echo "$as_me: failed program was
:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 ac_header_compiler=no
11173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11174 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11175 echo "${ECHO_T}$ac_header_compiler" >&6; }
11177 # Is the header present?
11178 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11179 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 #include <$ac_header>
11188 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11189 case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11196 grep -v '^ *+' conftest.er1 >conftest.err
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11200 (exit $ac_status); } >/dev/null; then
11201 if test -s conftest.err; then
11202 ac_cpp_err=$ac_c_preproc_warn_flag
11203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11210 if test -z "$ac_cpp_err"; then
11211 ac_header_preproc=yes
11213 echo "$as_me: failed program was
:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11216 ac_header_preproc=no
11219 rm -f conftest.err conftest.$ac_ext
11220 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11221 echo "${ECHO_T}$ac_header_preproc" >&6; }
11223 # So? What about this header?
11224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11226 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11227 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11228 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11230 ac_header_preproc=yes
11233 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11234 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11235 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11236 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11237 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11238 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11239 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11240 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11241 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11243 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11244 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11246 ## ----------------------------------- ##
11247 ## Report this to llvmbugs@cs.uiuc.edu ##
11248 ## ----------------------------------- ##
11250 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11253 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11254 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11256 echo $ECHO_N "(cached
) $ECHO_C" >&6
11258 eval "$as_ac_Header=\
$ac_header_preproc"
11260 ac_res=`eval echo '${'$as_ac_Header'}'`
11261 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11276 for ac_header in string.h strings.h
11278 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11279 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11280 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11281 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11282 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached
) $ECHO_C" >&6
11285 ac_res=`eval echo '${'$as_ac_Header'}'`
11286 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11287 echo "${ECHO_T}$ac_res" >&6; }
11289 # Is the header compilable?
11290 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11291 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11292 cat >conftest.$ac_ext <<_ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 $ac_includes_default
11299 #include <$ac_header>
11301 rm -f conftest.$ac_objext
11302 if { (ac_try="$ac_compile"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_compile") 2>conftest.er1
11310 grep -v '^ *+' conftest.er1 >conftest.err
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest.$ac_objext'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_header_compiler=yes
11337 echo "$as_me: failed program was
:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_compiler=no
11343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11345 echo "${ECHO_T}$ac_header_compiler" >&6; }
11347 # Is the header present?
11348 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11349 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11350 cat >conftest.$ac_ext <<_ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 #include <$ac_header>
11358 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11359 case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11366 grep -v '^ *+' conftest.er1 >conftest.err
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11370 (exit $ac_status); } >/dev/null; then
11371 if test -s conftest.err; then
11372 ac_cpp_err=$ac_c_preproc_warn_flag
11373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11380 if test -z "$ac_cpp_err"; then
11381 ac_header_preproc=yes
11383 echo "$as_me: failed program was
:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 ac_header_preproc=no
11389 rm -f conftest.err conftest.$ac_ext
11390 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11391 echo "${ECHO_T}$ac_header_preproc" >&6; }
11393 # So? What about this header?
11394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11396 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11397 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11398 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11400 ac_header_preproc=yes
11403 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11404 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11405 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11406 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11407 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11408 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11409 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11410 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11411 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11413 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11414 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11416 ## ----------------------------------- ##
11417 ## Report this to llvmbugs@cs.uiuc.edu ##
11418 ## ----------------------------------- ##
11420 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11423 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11424 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11425 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11426 echo $ECHO_N "(cached
) $ECHO_C" >&6
11428 eval "$as_ac_Header=\
$ac_header_preproc"
11430 ac_res=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11447 for ac_func in strchr index
11449 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11450 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11451 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11452 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11453 echo $ECHO_N "(cached
) $ECHO_C" >&6
11455 cat >conftest.$ac_ext <<_ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11463 #define $ac_func innocuous_$ac_func
11465 /* System header to define __stub macros and hopefully few prototypes,
11466 which can conflict with char $ac_func (); below.
11467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11468 <limits.h> exists even on freestanding compilers. */
11471 # include <limits.h>
11473 # include <assert.h>
11478 /* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11485 /* The GNU C library defines this for functions which it implements
11486 to always fail with ENOSYS. Some functions are actually named
11487 something starting with __ and the normal name is an alias. */
11488 #if defined __stub_$ac_func || defined __stub___$ac_func
11495 return $ac_func ();
11500 rm -f conftest.$ac_objext conftest$ac_exeext
11501 if { (ac_try="$ac_link"
11502 case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_link") 2>conftest.er1
11509 grep -v '^ *+' conftest.er1 >conftest.err
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11515 { (case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_try") 2>&5
11522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest$ac_exeext'
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
11532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 eval "$as_ac_var=yes"
11536 echo "$as_me: failed program was
:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 eval "$as_ac_var=no
"
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11545 ac_res=`eval echo '${'$as_ac_var'}'`
11546 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11548 if test `eval echo '${'$as_ac_var'}'` = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11558 for ac_func in strrchr rindex
11560 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11561 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11562 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11563 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11564 echo $ECHO_N "(cached
) $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11574 #define $ac_func innocuous_$ac_func
11576 /* System header to define __stub macros and hopefully few prototypes,
11577 which can conflict with char $ac_func (); below.
11578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11579 <limits.h> exists even on freestanding compilers. */
11582 # include <limits.h>
11584 # include <assert.h>
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11596 /* The GNU C library defines this for functions which it implements
11597 to always fail with ENOSYS. Some functions are actually named
11598 something starting with __ and the normal name is an alias. */
11599 #if defined __stub_$ac_func || defined __stub___$ac_func
11606 return $ac_func ();
11611 rm -f conftest.$ac_objext conftest$ac_exeext
11612 if { (ac_try="$ac_link"
11613 case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_link") 2>conftest.er1
11620 grep -v '^ *+' conftest.er1 >conftest.err
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11626 { (case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_try") 2>&5
11633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11634 (exit $ac_status); }; } &&
11635 { ac_try='test -s conftest$ac_exeext'
11636 { (case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_try") 2>&5
11643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 eval "$as_ac_var=yes"
11647 echo "$as_me: failed program was
:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11650 eval "$as_ac_var=no
"
11653 rm -f core conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11656 ac_res=`eval echo '${'$as_ac_var'}'`
11657 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11658 echo "${ECHO_T}$ac_res" >&6; }
11659 if test `eval echo '${'$as_ac_var'}'` = yes; then
11660 cat >>confdefs.h <<_ACEOF
11661 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11669 for ac_func in memcpy bcopy
11671 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11672 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11673 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11674 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11675 echo $ECHO_N "(cached
) $ECHO_C" >&6
11677 cat >conftest.$ac_ext <<_ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11685 #define $ac_func innocuous_$ac_func
11687 /* System header to define __stub macros and hopefully few prototypes,
11688 which can conflict with char $ac_func (); below.
11689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11690 <limits.h> exists even on freestanding compilers. */
11693 # include <limits.h>
11695 # include <assert.h>
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11707 /* The GNU C library defines this for functions which it implements
11708 to always fail with ENOSYS. Some functions are actually named
11709 something starting with __ and the normal name is an alias. */
11710 #if defined __stub_$ac_func || defined __stub___$ac_func
11717 return $ac_func ();
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (ac_try="$ac_link"
11724 case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_link") 2>conftest.er1
11731 grep -v '^ *+' conftest.er1 >conftest.err
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737 { (case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_try") 2>&5
11744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest$ac_exeext'
11747 { (case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_try") 2>&5
11754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11755 (exit $ac_status); }; }; then
11756 eval "$as_ac_var=yes"
11758 echo "$as_me: failed program was
:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 eval "$as_ac_var=no
"
11764 rm -f core conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11767 ac_res=`eval echo '${'$as_ac_var'}'`
11768 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11769 echo "${ECHO_T}$ac_res" >&6; }
11770 if test `eval echo '${'$as_ac_var'}'` = yes; then
11771 cat >>confdefs.h <<_ACEOF
11772 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11780 for ac_func in memmove strcmp
11782 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11783 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11784 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11785 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11786 echo $ECHO_N "(cached
) $ECHO_C" >&6
11788 cat >conftest.$ac_ext <<_ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11796 #define $ac_func innocuous_$ac_func
11798 /* System header to define __stub macros and hopefully few prototypes,
11799 which can conflict with char $ac_func (); below.
11800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11801 <limits.h> exists even on freestanding compilers. */
11804 # include <limits.h>
11806 # include <assert.h>
11811 /* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
11818 /* The GNU C library defines this for functions which it implements
11819 to always fail with ENOSYS. Some functions are actually named
11820 something starting with __ and the normal name is an alias. */
11821 #if defined __stub_$ac_func || defined __stub___$ac_func
11828 return $ac_func ();
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (ac_try="$ac_link"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_link") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1 >conftest.err
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest$ac_exeext'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 eval "$as_ac_var=yes"
11869 echo "$as_me: failed program was
:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 eval "$as_ac_var=no
"
11875 rm -f core conftest.err conftest.$ac_objext \
11876 conftest$ac_exeext conftest.$ac_ext
11878 ac_res=`eval echo '${'$as_ac_var'}'`
11879 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11880 echo "${ECHO_T}$ac_res" >&6; }
11881 if test `eval echo '${'$as_ac_var'}'` = yes; then
11882 cat >>confdefs.h <<_ACEOF
11883 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11892 for ac_func in closedir opendir readdir
11894 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11895 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11896 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11897 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11898 echo $ECHO_N "(cached
) $ECHO_C" >&6
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11908 #define $ac_func innocuous_$ac_func
11910 /* System header to define __stub macros and hopefully few prototypes,
11911 which can conflict with char $ac_func (); below.
11912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913 <limits.h> exists even on freestanding compilers. */
11916 # include <limits.h>
11918 # include <assert.h>
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11930 /* The GNU C library defines this for functions which it implements
11931 to always fail with ENOSYS. Some functions are actually named
11932 something starting with __ and the normal name is an alias. */
11933 #if defined __stub_$ac_func || defined __stub___$ac_func
11940 return $ac_func ();
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_link") 2>conftest.er1
11954 grep -v '^ *+' conftest.er1 >conftest.err
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11960 { (case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_try") 2>&5
11967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_try") 2>&5
11977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 eval "$as_ac_var=yes"
11981 echo "$as_me: failed program was
:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 eval "$as_ac_var=no
"
11987 rm -f core conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11990 ac_res=`eval echo '${'$as_ac_var'}'`
11991 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11992 echo "${ECHO_T}$ac_res" >&6; }
11993 if test `eval echo '${'$as_ac_var'}'` = yes; then
11994 cat >>confdefs.h <<_ACEOF
11995 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12002 # Check whether --enable-shared was given.
12003 if test "${enable_shared+set}" = set; then
12004 enableval=$enable_shared; p=${PACKAGE-default}
12006 yes) enable_shared=yes ;;
12007 no) enable_shared=no ;;
12010 # Look at the argument we got. We use all the common list separators.
12011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12012 for pkg in $enableval; do
12014 if test "X
$pkg" = "X
$p"; then
12026 # Check whether --enable-static was given.
12027 if test "${enable_static+set}" = set; then
12028 enableval=$enable_static; p=${PACKAGE-default}
12030 yes) enable_static=yes ;;
12031 no) enable_static=no ;;
12034 # Look at the argument we got. We use all the common list separators.
12035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12036 for pkg in $enableval; do
12038 if test "X
$pkg" = "X
$p"; then
12050 # Check whether --enable-fast-install was given.
12051 if test "${enable_fast_install+set}" = set; then
12052 enableval=$enable_fast_install; p=${PACKAGE-default}
12054 yes) enable_fast_install=yes ;;
12055 no) enable_fast_install=no ;;
12057 enable_fast_install=no
12058 # Look at the argument we got. We use all the common list separators.
12059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12060 for pkg in $enableval; do
12062 if test "X
$pkg" = "X
$p"; then
12063 enable_fast_install=yes
12070 enable_fast_install=yes
12074 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12075 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12076 if test "${lt_cv_path_SED+set}" = set; then
12077 echo $ECHO_N "(cached
) $ECHO_C" >&6
12079 # Loop through the user's path and test for sed and gsed.
12080 # Then use that list of sed's as ones to test for truncation.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12085 test -z "$as_dir" && as_dir=.
12086 for lt_ac_prog in sed gsed; do
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12089 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12096 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12097 # along with /bin/sed that truncates output.
12098 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12099 test ! -f $lt_ac_sed && continue
12100 cat /dev/null > conftest.in
12102 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12103 # Check for GNU sed and select it if it is found.
12104 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12105 lt_cv_path_SED=$lt_ac_sed
12109 cat conftest.in conftest.in >conftest.tmp
12110 mv conftest.tmp conftest.in
12111 cp conftest.in conftest.nl
12113 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12114 cmp -s conftest.out conftest.nl || break
12115 # 10000 chars as input seems more than enough
12116 test $lt_ac_count -gt 10 && break
12117 lt_ac_count=`expr $lt_ac_count + 1`
12118 if test $lt_ac_count -gt $lt_ac_max; then
12119 lt_ac_max=$lt_ac_count
12120 lt_cv_path_SED=$lt_ac_sed
12127 SED=$lt_cv_path_SED
12128 { echo "$as_me:$LINENO: result
: $SED" >&5
12129 echo "${ECHO_T}$SED" >&6; }
12132 # Check whether --with-gnu-ld was given.
12133 if test "${with_gnu_ld+set}" = set; then
12134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12140 if test "$GCC" = yes; then
12141 # Check if gcc -print-prog-name=ld gives a path.
12142 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12143 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12146 # gcc leaves a trailing carriage return which upsets mingw
12147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12152 # Accept absolute paths.
12154 re_direlt='/[^/][^/]*/\.\./'
12155 # Canonicalize the pathname of ld
12156 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12157 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12158 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12160 test -z "$LD" && LD="$ac_prog"
12163 # If it fails, then pretend we aren't using GCC.
12167 # If it is relative, then search for the first ld in PATH.
12168 with_gnu_ld=unknown
12171 elif test "$with_gnu_ld" = yes; then
12172 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12173 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12175 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12176 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12178 if test "${lt_cv_path_LD+set}" = set; then
12179 echo $ECHO_N "(cached
) $ECHO_C" >&6
12181 if test -z "$LD"; then
12182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12183 for ac_dir in $PATH; do
12185 test -z "$ac_dir" && ac_dir=.
12186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12187 lt_cv_path_LD="$ac_dir/$ac_prog"
12188 # Check to see if the program is GNU ld. I'd rather use --version,
12189 # but apparently some variants of GNU ld only accept -v.
12190 # Break only if it was the GNU/non-GNU ld that we prefer.
12191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12192 *GNU* | *'with BFD'*)
12193 test "$with_gnu_ld" != no && break
12196 test "$with_gnu_ld" != yes && break
12203 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12207 LD="$lt_cv_path_LD"
12208 if test -n "$LD"; then
12209 { echo "$as_me:$LINENO: result
: $LD" >&5
12210 echo "${ECHO_T}$LD" >&6; }
12212 { echo "$as_me:$LINENO: result
: no
" >&5
12213 echo "${ECHO_T}no
" >&6; }
12215 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12216 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12217 { (exit 1); exit 1; }; }
12218 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12219 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12220 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12221 echo $ECHO_N "(cached
) $ECHO_C" >&6
12223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12224 case `$LD -v 2>&1 </dev/null` in
12225 *GNU* | *'with BFD'*)
12226 lt_cv_prog_gnu_ld=yes
12229 lt_cv_prog_gnu_ld=no
12233 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12234 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12235 with_gnu_ld=$lt_cv_prog_gnu_ld
12238 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12239 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12240 if test "${lt_cv_ld_reload_flag+set}" = set; then
12241 echo $ECHO_N "(cached
) $ECHO_C" >&6
12243 lt_cv_ld_reload_flag='-r'
12245 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12246 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12247 reload_flag=$lt_cv_ld_reload_flag
12248 case $reload_flag in
12250 *) reload_flag=" $reload_flag" ;;
12252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12255 if test "$GCC" = yes; then
12256 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12263 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12264 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12265 if test "${lt_cv_deplibs_check_method+set}" = set; then
12266 echo $ECHO_N "(cached
) $ECHO_C" >&6
12268 lt_cv_file_magic_cmd='$MAGIC_CMD'
12269 lt_cv_file_magic_test_file=
12270 lt_cv_deplibs_check_method='unknown'
12271 # Need to set the preceding variable on all platforms that support
12272 # interlibrary dependencies.
12273 # 'none' -- dependencies not supported.
12274 # `unknown' -- same as none, but documents that we really don't know.
12275 # 'pass_all' -- all dependencies passed with no checks.
12276 # 'test_compile' -- check by making test program.
12277 # 'file_magic [[regex]]' -- check by looking for files in library path
12278 # which responds to the $file_magic_cmd with a given extended regex.
12279 # If you have `file' or equivalent on your system and you're not sure
12280 # whether `pass_all' will *always* work, you probably want this one.
12284 lt_cv_deplibs_check_method=pass_all
12288 lt_cv_deplibs_check_method=pass_all
12292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12293 lt_cv_file_magic_cmd='/usr/bin/file -L'
12294 lt_cv_file_magic_test_file=/shlib/libc.so
12298 # func_win32_libid is a shell function defined in ltmain.sh
12299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12300 lt_cv_file_magic_cmd='func_win32_libid'
12304 # Base MSYS/MinGW do not provide the 'file' command needed by
12305 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12306 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12307 lt_cv_file_magic_cmd='$OBJDUMP -f'
12310 darwin* | rhapsody*)
12311 lt_cv_deplibs_check_method=pass_all
12314 freebsd* | kfreebsd*-gnu | dragonfly*)
12315 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12318 # Not sure whether the presence of OpenBSD here was a mistake.
12319 # Let's accept both of them until this is cleared up.
12320 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12321 lt_cv_file_magic_cmd=/usr/bin/file
12322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12326 lt_cv_deplibs_check_method=pass_all
12331 lt_cv_deplibs_check_method=pass_all
12334 hpux10.20* | hpux11*)
12335 lt_cv_file_magic_cmd=/usr/bin/file
12338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12339 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12342 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]'
12343 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12346 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12347 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12353 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12357 irix5* | irix6* | nonstopux*)
12359 *-32|*"-32 ") libmagic=32-bit;;
12360 *-n32|*"-n32 ") libmagic=N32;;
12361 *-64|*"-64 ") libmagic=64-bit;;
12362 *) libmagic=never-match;;
12364 lt_cv_deplibs_check_method=pass_all
12367 # This must be Linux ELF.
12369 lt_cv_deplibs_check_method=pass_all
12373 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12382 lt_cv_file_magic_cmd=/usr/bin/file
12383 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12387 lt_cv_deplibs_check_method=unknown
12391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12398 osf3* | osf4* | osf5*)
12399 lt_cv_deplibs_check_method=pass_all
12403 lt_cv_deplibs_check_method=pass_all
12407 case $host_vendor in
12409 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]'
12410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12413 lt_cv_deplibs_check_method=pass_all
12416 lt_cv_file_magic_cmd='/bin/file'
12417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12420 lt_cv_file_magic_cmd='/bin/file'
12421 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12422 lt_cv_file_magic_test_file=/lib/libc.so
12425 lt_cv_deplibs_check_method=pass_all
12428 lt_cv_deplibs_check_method=pass_all
12433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12434 lt_cv_deplibs_check_method=pass_all
12439 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
12440 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12441 file_magic_cmd=$lt_cv_file_magic_cmd
12442 deplibs_check_method=$lt_cv_deplibs_check_method
12443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12447 # If no C compiler was specified, use CC.
12450 # If no C compiler flags were specified, use CFLAGS.
12451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12453 # Allow CC to be a program name with arguments.
12456 # Check whether --enable-libtool-lock was given.
12457 if test "${enable_libtool_lock+set}" = set; then
12458 enableval=$enable_libtool_lock;
12461 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12463 # Some flags need to be propagated to the compiler or linker for good
12467 # Find out which ABI we are using.
12468 echo 'int i;' > conftest.$ac_ext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470 (eval $ac_compile) 2>&5
12472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12473 (exit $ac_status); }; then
12474 case `/usr/bin/file conftest.$ac_objext` in
12476 HPUX_IA64_MODE="32"
12479 HPUX_IA64_MODE="64"
12486 # Find out which ABI we are using.
12487 echo '#line 12487 "configure
"' > conftest.$ac_ext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12489 (eval $ac_compile) 2>&5
12491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12492 (exit $ac_status); }; then
12493 if test "$lt_cv_prog_gnu_ld" = yes; then
12494 case `/usr/bin/file conftest.$ac_objext` in
12496 LD="${LD-ld} -melf32bsmip"
12499 LD="${LD-ld} -melf32bmipn32"
12502 LD="${LD-ld} -melf64bmip"
12506 case `/usr/bin/file conftest.$ac_objext` in
12522 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12523 # Find out which ABI we are using.
12524 echo 'int i;' > conftest.$ac_ext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12526 (eval $ac_compile) 2>&5
12528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12529 (exit $ac_status); }; then
12530 case `/usr/bin/file conftest.o` in
12534 LD="${LD-ld} -m elf_i386
"
12536 ppc64-*linux*|powerpc64-*linux*)
12537 LD="${LD-ld} -m elf32ppclinux
"
12540 LD="${LD-ld} -m elf_s390
"
12543 LD="${LD-ld} -m elf32_sparc
"
12550 LD="${LD-ld} -m elf_x86_64
"
12552 ppc*-*linux*|powerpc*-*linux*)
12553 LD="${LD-ld} -m elf64ppc
"
12556 LD="${LD-ld} -m elf64_s390
"
12559 LD="${LD-ld} -m elf64_sparc
"
12569 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12570 SAVE_CFLAGS="$CFLAGS"
12571 CFLAGS="$CFLAGS -belf"
12572 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
12573 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
12574 if test "${lt_cv_cc_needs_belf+set}" = set; then
12575 echo $ECHO_N "(cached
) $ECHO_C" >&6
12578 ac_cpp='$CPP $CPPFLAGS'
12579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
12607 grep -v '^ *+' conftest.er1 >conftest.err
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
12620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest$ac_exeext'
12623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_try") 2>&5
12630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 lt_cv_cc_needs_belf=yes
12634 echo "$as_me: failed program was
:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12637 lt_cv_cc_needs_belf=no
12640 rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12643 ac_cpp='$CPP $CPPFLAGS'
12644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12649 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
12650 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12651 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12652 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12653 CFLAGS="$SAVE_CFLAGS"
12657 # Find out which ABI we are using.
12658 echo 'int i;' > conftest.$ac_ext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660 (eval $ac_compile) 2>&5
12662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12663 (exit $ac_status); }; then
12664 case `/usr/bin/file conftest.o` in
12666 case $lt_cv_prog_gnu_ld in
12667 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12668 *) LD="${LD-ld} -64" ;;
12679 need_locks="$enable_libtool_lock"
12684 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
12685 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
12686 (test "X
$CXX" != "Xg
++"))) ; then
12688 ac_cpp='$CXXCPP $CPPFLAGS'
12689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12692 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
12693 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
12694 if test -z "$CXXCPP"; then
12695 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12696 echo $ECHO_N "(cached
) $ECHO_C" >&6
12698 # Double quotes because CXXCPP needs to be expanded
12699 for CXXCPP in "$CXX -E" "/lib
/cpp
"
12701 ac_preproc_ok=false
12702 for ac_cxx_preproc_warn_flag in '' yes
12704 # Use a header file that comes with gcc, so configuring glibc
12705 # with a fresh cross-compiler works.
12706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707 # <limits.h> exists even on freestanding compilers.
12708 # On the NeXT, cc -E runs the code through the compiler's parser,
12709 # not just through cpp. "Syntax error
" is here to catch this case.
12710 cat >conftest.$ac_ext <<_ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12717 # include <limits.h>
12719 # include <assert.h>
12723 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12731 grep -v '^ *+' conftest.er1 >conftest.err
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12735 (exit $ac_status); } >/dev/null; then
12736 if test -s conftest.err; then
12737 ac_cpp_err=$ac_cxx_preproc_warn_flag
12738 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12745 if test -z "$ac_cpp_err"; then
12748 echo "$as_me: failed program was
:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 # Broken: fails on valid input.
12755 rm -f conftest.err conftest.$ac_ext
12757 # OK, works on sane cases. Now check whether nonexistent headers
12758 # can be detected and how.
12759 cat >conftest.$ac_ext <<_ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12765 #include <ac_nonexistent.h>
12767 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12768 case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12775 grep -v '^ *+' conftest.er1 >conftest.err
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12779 (exit $ac_status); } >/dev/null; then
12780 if test -s conftest.err; then
12781 ac_cpp_err=$ac_cxx_preproc_warn_flag
12782 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12789 if test -z "$ac_cpp_err"; then
12790 # Broken: success on invalid input.
12793 echo "$as_me: failed program was
:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 # Passes both tests.
12801 rm -f conftest.err conftest.$ac_ext
12804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12805 rm -f conftest.err conftest.$ac_ext
12806 if $ac_preproc_ok; then
12811 ac_cv_prog_CXXCPP=$CXXCPP
12814 CXXCPP=$ac_cv_prog_CXXCPP
12816 ac_cv_prog_CXXCPP=$CXXCPP
12818 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
12819 echo "${ECHO_T}$CXXCPP" >&6; }
12820 ac_preproc_ok=false
12821 for ac_cxx_preproc_warn_flag in '' yes
12823 # Use a header file that comes with gcc, so configuring glibc
12824 # with a fresh cross-compiler works.
12825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12826 # <limits.h> exists even on freestanding compilers.
12827 # On the NeXT, cc -E runs the code through the compiler's parser,
12828 # not just through cpp. "Syntax error
" is here to catch this case.
12829 cat >conftest.$ac_ext <<_ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12836 # include <limits.h>
12838 # include <assert.h>
12842 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12850 grep -v '^ *+' conftest.er1 >conftest.err
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12854 (exit $ac_status); } >/dev/null; then
12855 if test -s conftest.err; then
12856 ac_cpp_err=$ac_cxx_preproc_warn_flag
12857 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12864 if test -z "$ac_cpp_err"; then
12867 echo "$as_me: failed program was
:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 # Broken: fails on valid input.
12874 rm -f conftest.err conftest.$ac_ext
12876 # OK, works on sane cases. Now check whether nonexistent headers
12877 # can be detected and how.
12878 cat >conftest.$ac_ext <<_ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 #include <ac_nonexistent.h>
12886 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12887 case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12894 grep -v '^ *+' conftest.er1 >conftest.err
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12898 (exit $ac_status); } >/dev/null; then
12899 if test -s conftest.err; then
12900 ac_cpp_err=$ac_cxx_preproc_warn_flag
12901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12908 if test -z "$ac_cpp_err"; then
12909 # Broken: success on invalid input.
12912 echo "$as_me: failed program was
:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 # Passes both tests.
12920 rm -f conftest.err conftest.$ac_ext
12923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12924 rm -f conftest.err conftest.$ac_ext
12925 if $ac_preproc_ok; then
12928 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
12929 See \
`config.log' for more details." >&5
12930 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12931 See \`config.log
' for more details." >&2;}
12932 { (exit 1); exit 1; }; }
12936 ac_cpp='$CXXCPP $CPPFLAGS'
12937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12938 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12945 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
12946 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12947 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12948 if test -n "$ac_tool_prefix"; then
12949 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
12951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12955 if test "${ac_cv_prog_F77+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 if test -n "$F77"; then
12959 ac_cv_prog_F77="$F77" # Let the user override the test.
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12968 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12978 F77=$ac_cv_prog_F77
12979 if test -n "$F77"; then
12980 { echo "$as_me:$LINENO: result: $F77" >&5
12981 echo "${ECHO_T}$F77" >&6; }
12983 { echo "$as_me:$LINENO: result: no" >&5
12984 echo "${ECHO_T}no" >&6; }
12988 test -n "$F77" && break
12991 if test -z "$F77"; then
12993 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
12995 # Extract the first word of "$ac_prog", so it can be a program name with args.
12996 set dummy $ac_prog; ac_word=$2
12997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12999 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 if test -n "$ac_ct_F77"; then
13003 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13012 ac_cv_prog_ac_ct_F77="$ac_prog"
13013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13022 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13023 if test -n "$ac_ct_F77"; then
13024 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13025 echo "${ECHO_T}$ac_ct_F77" >&6; }
13027 { echo "$as_me:$LINENO: result: no" >&5
13028 echo "${ECHO_T}no" >&6; }
13032 test -n "$ac_ct_F77" && break
13035 if test "x$ac_ct_F77" = x; then
13038 case $cross_compiling:$ac_tool_warned in
13040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13041 whose name does not start with the host triplet. If you think this
13042 configuration is useful to you, please write to autoconf@gnu.org." >&5
13043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13044 whose name does not start with the host triplet. If you think this
13045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13046 ac_tool_warned=yes ;;
13053 # Provide some information about the compiler.
13054 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13055 ac_compiler=`set X $ac_compile; echo $2`
13056 { (ac_try="$ac_compiler --version >&5"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_compiler --version >&5") 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }
13066 { (ac_try="$ac_compiler -v >&5"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_compiler -v >&5") 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }
13076 { (ac_try="$ac_compiler -V >&5"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_compiler -V >&5") 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }
13088 # If we don't use
`.F' as extension, the preprocessor is not run on the
13089 # input file. (Note that this only needs to work for GNU compilers.)
13090 ac_save_ext=$ac_ext
13092 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13093 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13094 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 cat >conftest.$ac_ext <<_ACEOF
13105 rm -f conftest.$ac_objext
13106 if { (ac_try="$ac_compile"
13107 case "(($ac_try" in
13108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13109 *) ac_try_echo
=$ac_try;;
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_compile") 2>conftest.er1
13114 grep -v '^ *+' conftest.er1
>conftest.err
13116 cat conftest.err
>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13120 { (case "(($ac_try" in
13121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest.$ac_objext'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13132 *) ac_try_echo
=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_compiler_gnu
=yes
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.
$ac_ext >&5
13147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13148 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13151 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13152 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13153 ac_ext
=$ac_save_ext
13154 ac_test_FFLAGS
=${FFLAGS+set}
13155 ac_save_FFLAGS
=$FFLAGS
13157 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13158 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13159 if test "${ac_cv_prog_f77_g+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 cat >conftest.
$ac_ext <<_ACEOF
13168 rm -f conftest.
$ac_objext
13169 if { (ac_try
="$ac_compile"
13170 case "(($ac_try" in
13171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_compile") 2>conftest.er1
13177 grep -v '^ *+' conftest.er1 >conftest.err
13179 cat conftest.err >&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } &&
13182 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13183 { (case "(($ac_try" in
13184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13185 *) ac_try_echo
=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_try") 2>&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try
='test -s conftest.$ac_objext'
13193 { (case "(($ac_try" in
13194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_try") 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_cv_prog_f77_g=yes
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 ac_cv_prog_f77_g=no
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13214 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13215 if test "$ac_test_FFLAGS" = set; then
13216 FFLAGS=$ac_save_FFLAGS
13217 elif test $ac_cv_prog_f77_g = yes; then
13218 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13224 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13231 G77=`test $ac_compiler_gnu = yes && echo yes`
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13240 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13242 # find the maximum length of command line arguments
13243 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13244 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13245 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 # On DJGPP, this test can blow up pretty badly due to problems in libc
13254 # (any single argument exceeding 2000 bytes causes a buffer overrun
13255 # during glob expansion). Even if it were fixed, the result of this
13256 # check would be larger than it should be.
13257 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13261 # Under GNU Hurd, this test is not required because there is
13262 # no limit to the length of command line arguments.
13263 # Libtool will interpret -1 as no limit whatsoever
13264 lt_cv_sys_max_cmd_len=-1;
13268 # On Win9x/ME, this test blows up -- it succeeds, but takes
13269 # about 5 minutes as the teststring grows exponentially.
13270 # Worse, since 9x/ME are not pre-emptively multitasking,
13271 # you end up with a "frozen" computer, even though with patience
13272 # the test eventually succeeds (with a max line length of 256k).
13273 # Instead, let's just punt: use the minimum linelength reported by
13274 # all of the supported platforms: 8192 (on NT/2K/XP).
13275 lt_cv_sys_max_cmd_len=8192;
13279 # On AmigaOS with pdksh, this test takes hours, literally.
13280 # So we just punt and use a minimum line length of 8192.
13281 lt_cv_sys_max_cmd_len=8192;
13284 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13285 # This has been around since 386BSD, at least. Likely further.
13286 if test -x /sbin/sysctl; then
13287 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13288 elif test -x /usr/sbin/sysctl; then
13289 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13291 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13293 # And add a safety zone
13294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13299 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13300 lt_cv_sys_max_cmd_len=196608
13304 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13305 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13306 # nice to cause kernel panics so lets avoid the loop below.
13307 # First set a reasonable default.
13308 lt_cv_sys_max_cmd_len=16384
13310 if test -x /sbin/sysconfig; then
13311 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
13312 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13317 lt_cv_sys_max_cmd_len=102400
13319 sysv5* | sco5v6* | sysv4.2uw2*)
13320 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
13321 if test -n "$kargmax"; then
13322 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
13324 lt_cv_sys_max_cmd_len=32768
13328 # If test is not a shell built-in, we'll probably end up computing a
13329 # maximum length that is only half of the actual maximum length, but
13331 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13332 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
13333 = "XX$teststring") >/dev/null 2>&1 &&
13334 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13335 lt_cv_sys_max_cmd_len=$new_result &&
13336 test $i != 17 # 1/2 MB should be enough
13339 teststring=$teststring$teststring
13342 # Add a significant safety factor because C++ compilers can tack on massive
13343 # amounts of additional arguments before passing them to the linker.
13344 # It appears as though 1/2 is a usable value.
13345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
13351 if test -n $lt_cv_sys_max_cmd_len ; then
13352 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13353 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13355 { echo "$as_me:$LINENO: result: none" >&5
13356 echo "${ECHO_T}none" >&6; }
13362 # Check for command to grab the raw symbol name followed by C symbol from nm.
13363 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13364 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13365 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 # These are sane defaults that work on at least a few old systems.
13370 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13372 # Character class describing NM global symbol codes.
13373 symcode='[BCDEGRST]'
13375 # Regexp to match symbols that can be accessed directly from C.
13376 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13378 # Transform an extracted symbol line into a proper C declaration
13379 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13381 # Transform an extracted symbol line into symbol name and symbol address
13382 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'"
13384 # Define system-specific variables.
13389 cygwin* | mingw* | pw32*)
13390 symcode='[ABCDGISTW]'
13392 hpux*) # Its linker distinguishes data from code symbols
13393 if test "$host_cpu" = ia64; then
13394 symcode='[ABCDEGRST]'
13396 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13397 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'"
13400 if test "$host_cpu" = ia64; then
13401 symcode='[ABCDGIRSTW]'
13402 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13403 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'"
13406 irix* | nonstopux*)
13407 symcode='[BCDEGRST]'
13410 symcode='[BCDEGQRST]'
13421 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13429 # Handle CRLF in mingw tool chain
13433 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
13437 # If we're using GNU nm, then use its standard symbol codes.
13438 case `$NM -V 2>&1` in
13439 *GNU* | *'with BFD'*)
13440 symcode='[ABCDGIRSTW]' ;;
13443 # Try without a prefix undercore, then with it.
13444 for ac_symprfx in "" "_"; do
13446 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13447 symxfrm="\\1 $ac_symprfx\\2 \\2"
13449 # Write the raw and C identifiers.
13450 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13452 # Check to see that the pipe works correctly.
13456 cat > conftest.$ac_ext <<EOF
13461 void nm_test_func(){}
13465 int main(){nm_test_var='a';nm_test_func();return(0);}
13468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13469 (eval $ac_compile) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; then
13473 # Now try to grab the symbols.
13475 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13476 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && test -s "$nlist"; then
13480 # Try sorting and uniquifying the output.
13481 if sort "$nlist" | uniq > "$nlist"T; then
13482 mv -f "$nlist"T "$nlist"
13487 # Make sure that we snagged all the symbols we need.
13488 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13489 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13490 cat <<EOF > conftest.$ac_ext
13496 # Now generate the symbol file.
13497 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13499 cat <<EOF >> conftest.$ac_ext
13500 #if defined (__STDC__) && __STDC__
13501 # define lt_ptr_t void *
13503 # define lt_ptr_t char *
13507 /* The mapping between symbol names and symbols. */
13512 lt_preloaded_symbols[] =
13515 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13516 cat <<\EOF >> conftest.$ac_ext
13524 # Now try linking the two files.
13525 mv conftest.$ac_objext conftstm.$ac_objext
13526 lt_save_LIBS="$LIBS"
13527 lt_save_CFLAGS="$CFLAGS"
13528 LIBS="conftstm.$ac_objext"
13529 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13531 (eval $ac_link) 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13537 LIBS="$lt_save_LIBS"
13538 CFLAGS="$lt_save_CFLAGS"
13540 echo "cannot find nm_test_func in $nlist" >&5
13543 echo "cannot find nm_test_var in $nlist" >&5
13546 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13549 echo "$progname: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13552 rm -f conftest* conftst*
13554 # Do not use the global_symbol_pipe unless it works.
13555 if test "$pipe_works" = yes; then
13558 lt_cv_sys_global_symbol_pipe=
13564 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13565 lt_cv_sys_global_symbol_to_cdecl=
13567 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13568 { echo "$as_me:$LINENO: result: failed" >&5
13569 echo "${ECHO_T}failed" >&6; }
13571 { echo "$as_me:$LINENO: result: ok" >&5
13572 echo "${ECHO_T}ok" >&6; }
13575 { echo "$as_me:$LINENO: checking for objdir" >&5
13576 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13577 if test "${lt_cv_objdir+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 rm -f .libs 2>/dev/null
13581 mkdir .libs 2>/dev/null
13582 if test -d .libs; then
13585 # MS-DOS does not allow filenames that begin with a dot.
13588 rmdir .libs 2>/dev/null
13590 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13591 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13592 objdir=$lt_cv_objdir
13600 # AIX sometimes has problems with the GCC collect2 program. For some
13601 # reason, if we set the COLLECT_NAMES environment variable, the problems
13602 # vanish in a puff of smoke.
13603 if test "X${COLLECT_NAMES+set}" != Xset; then
13605 export COLLECT_NAMES
13610 # Sed substitution that helps us do robust quoting. It backslashifies
13611 # metacharacters that are still active within double-quoted strings.
13612 Xsed='sed -e 1s/^X//'
13613 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
13615 # Same as above, but do not quote variable references.
13616 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
13618 # Sed substitution to delay expansion of an escaped shell variable in a
13619 # double_quote_subst'ed string.
13620 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13622 # Sed substitution to avoid accidental globbing in evaled expressions
13623 no_glob_subst='s/\*/\\\*/g'
13628 # Global variables:
13629 default_ofile=mklib
13630 can_build_shared=yes
13632 # All known linkers require a `.a' archive for static linking (except MSVC,
13633 # which needs '.lib').
13635 ltmain="$ac_aux_dir/ltmain.sh
"
13636 ofile="$default_ofile"
13637 with_gnu_ld="$lt_cv_prog_gnu_ld"
13639 if test -n "$ac_tool_prefix"; then
13640 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13641 set dummy ${ac_tool_prefix}ar; ac_word=$2
13642 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13643 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13644 if test "${ac_cv_prog_AR+set}" = set; then
13645 echo $ECHO_N "(cached
) $ECHO_C" >&6
13647 if test -n "$AR"; then
13648 ac_cv_prog_AR="$AR" # Let the user override the test.
13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651 for as_dir in $PATH
13654 test -z "$as_dir" && as_dir=.
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13657 ac_cv_prog_AR="${ac_tool_prefix}ar"
13658 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13668 if test -n "$AR"; then
13669 { echo "$as_me:$LINENO: result
: $AR" >&5
13670 echo "${ECHO_T}$AR" >&6; }
13672 { echo "$as_me:$LINENO: result
: no
" >&5
13673 echo "${ECHO_T}no
" >&6; }
13678 if test -z "$ac_cv_prog_AR"; then
13680 # Extract the first word of "ar", so it can be a program name with args.
13681 set dummy ar; ac_word=$2
13682 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13683 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13684 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13685 echo $ECHO_N "(cached
) $ECHO_C" >&6
13687 if test -n "$ac_ct_AR"; then
13688 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691 for as_dir in $PATH
13694 test -z "$as_dir" && as_dir=.
13695 for ac_exec_ext in '' $ac_executable_extensions; do
13696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13697 ac_cv_prog_ac_ct_AR="ar"
13698 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13707 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13708 if test -n "$ac_ct_AR"; then
13709 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
13710 echo "${ECHO_T}$ac_ct_AR" >&6; }
13712 { echo "$as_me:$LINENO: result
: no
" >&5
13713 echo "${ECHO_T}no
" >&6; }
13716 if test "x
$ac_ct_AR" = x; then
13719 case $cross_compiling:$ac_tool_warned in
13721 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13722 whose name does not start with the
host triplet. If you think this
13723 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13724 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13725 whose name does not start with the
host triplet. If you think this
13726 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13727 ac_tool_warned=yes ;;
13732 AR="$ac_cv_prog_AR"
13735 if test -n "$ac_tool_prefix"; then
13736 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13738 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13739 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13740 if test "${ac_cv_prog_RANLIB+set}" = set; then
13741 echo $ECHO_N "(cached
) $ECHO_C" >&6
13743 if test -n "$RANLIB"; then
13744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747 for as_dir in $PATH
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
13752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13754 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13763 RANLIB=$ac_cv_prog_RANLIB
13764 if test -n "$RANLIB"; then
13765 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
13766 echo "${ECHO_T}$RANLIB" >&6; }
13768 { echo "$as_me:$LINENO: result
: no
" >&5
13769 echo "${ECHO_T}no
" >&6; }
13774 if test -z "$ac_cv_prog_RANLIB"; then
13775 ac_ct_RANLIB=$RANLIB
13776 # Extract the first word of "ranlib
", so it can be a program name with args.
13777 set dummy ranlib; ac_word=$2
13778 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13779 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13781 echo $ECHO_N "(cached
) $ECHO_C" >&6
13783 if test -n "$ac_ct_RANLIB"; then
13784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $PATH
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13793 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13794 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13804 if test -n "$ac_ct_RANLIB"; then
13805 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
13806 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13808 { echo "$as_me:$LINENO: result
: no
" >&5
13809 echo "${ECHO_T}no
" >&6; }
13812 if test "x
$ac_ct_RANLIB" = x; then
13815 case $cross_compiling:$ac_tool_warned in
13817 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13818 whose name does not start with the
host triplet. If you think this
13819 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13820 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13821 whose name does not start with the
host triplet. If you think this
13822 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13823 ac_tool_warned=yes ;;
13825 RANLIB=$ac_ct_RANLIB
13828 RANLIB="$ac_cv_prog_RANLIB"
13831 if test -n "$ac_tool_prefix"; then
13832 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13833 set dummy ${ac_tool_prefix}strip; ac_word=$2
13834 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13835 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13836 if test "${ac_cv_prog_STRIP+set}" = set; then
13837 echo $ECHO_N "(cached
) $ECHO_C" >&6
13839 if test -n "$STRIP"; then
13840 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13843 for as_dir in $PATH
13846 test -z "$as_dir" && as_dir=.
13847 for ac_exec_ext in '' $ac_executable_extensions; do
13848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13849 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13850 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13859 STRIP=$ac_cv_prog_STRIP
13860 if test -n "$STRIP"; then
13861 { echo "$as_me:$LINENO: result
: $STRIP" >&5
13862 echo "${ECHO_T}$STRIP" >&6; }
13864 { echo "$as_me:$LINENO: result
: no
" >&5
13865 echo "${ECHO_T}no
" >&6; }
13870 if test -z "$ac_cv_prog_STRIP"; then
13872 # Extract the first word of "strip
", so it can be a program name with args.
13873 set dummy strip; ac_word=$2
13874 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13875 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13876 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13877 echo $ECHO_N "(cached
) $ECHO_C" >&6
13879 if test -n "$ac_ct_STRIP"; then
13880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13889 ac_cv_prog_ac_ct_STRIP="strip
"
13890 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13899 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13900 if test -n "$ac_ct_STRIP"; then
13901 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
13902 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13904 { echo "$as_me:$LINENO: result
: no
" >&5
13905 echo "${ECHO_T}no
" >&6; }
13908 if test "x
$ac_ct_STRIP" = x; then
13911 case $cross_compiling:$ac_tool_warned in
13913 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13914 whose name does not start with the
host triplet. If you think this
13915 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13916 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13917 whose name does not start with the
host triplet. If you think this
13918 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13919 ac_tool_warned=yes ;;
13924 STRIP="$ac_cv_prog_STRIP"
13929 old_CFLAGS="$CFLAGS"
13931 # Set sane defaults for various variables
13932 test -z "$AR" && AR=ar
13933 test -z "$AR_FLAGS" && AR_FLAGS=cru
13934 test -z "$AS" && AS=as
13935 test -z "$CC" && CC=cc
13936 test -z "$LTCC" && LTCC=$CC
13937 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13938 test -z "$DLLTOOL" && DLLTOOL=dlltool
13939 test -z "$LD" && LD=ld
13940 test -z "$LN_S" && LN_S="ln -s"
13941 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13942 test -z "$NM" && NM=nm
13943 test -z "$SED" && SED=sed
13944 test -z "$OBJDUMP" && OBJDUMP=objdump
13945 test -z "$RANLIB" && RANLIB=:
13946 test -z "$STRIP" && STRIP=:
13947 test -z "$ac_objext" && ac_objext=o
13949 # Determine commands to create old-style static archives.
13950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13951 old_postinstall_cmds='chmod 644 $oldlib'
13952 old_postuninstall_cmds=
13954 if test -n "$RANLIB"; then
13957 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13960 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13963 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13966 for cc_temp in $compiler""; do
13968 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13969 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13974 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
13977 # Only perform the check for file, if the check method requires it
13978 case $deplibs_check_method in
13980 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13981 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
13982 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
13983 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13984 echo $ECHO_N "(cached
) $ECHO_C" >&6
13988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13991 lt_save_MAGIC_CMD="$MAGIC_CMD"
13992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13993 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13994 for ac_dir in $ac_dummy; do
13996 test -z "$ac_dir" && ac_dir=.
13997 if test -f $ac_dir/${ac_tool_prefix}file; then
13998 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13999 if test -n "$file_magic_test_file"; then
14000 case $deplibs_check_method in
14002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14005 $EGREP "$file_magic_regex" > /dev/null; then
14010 *** Warning: the command libtool uses to detect shared libraries,
14011 *** $file_magic_cmd, produces output that libtool cannot recognize.
14012 *** The result is that libtool may fail to recognize shared libraries
14013 *** as such. This will affect the creation of libtool libraries that
14014 *** depend on shared libraries, but programs linked with such libtool
14015 *** libraries will work regardless of this problem. Nevertheless, you
14016 *** may want to report the problem to your system manager and/or to
14017 *** bug-libtool@gnu.org
14027 MAGIC_CMD="$lt_save_MAGIC_CMD"
14032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14033 if test -n "$MAGIC_CMD"; then
14034 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14035 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14037 { echo "$as_me:$LINENO: result
: no
" >&5
14038 echo "${ECHO_T}no
" >&6; }
14041 if test -z "$lt_cv_path_MAGIC_CMD"; then
14042 if test -n "$ac_tool_prefix"; then
14043 { echo "$as_me:$LINENO: checking
for file" >&5
14044 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14045 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14046 echo $ECHO_N "(cached
) $ECHO_C" >&6
14050 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14053 lt_save_MAGIC_CMD="$MAGIC_CMD"
14054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14055 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14056 for ac_dir in $ac_dummy; do
14058 test -z "$ac_dir" && ac_dir=.
14059 if test -f $ac_dir/file; then
14060 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14061 if test -n "$file_magic_test_file"; then
14062 case $deplibs_check_method in
14064 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14066 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14067 $EGREP "$file_magic_regex" > /dev/null; then
14072 *** Warning: the command libtool uses to detect shared libraries,
14073 *** $file_magic_cmd, produces output that libtool cannot recognize.
14074 *** The result is that libtool may fail to recognize shared libraries
14075 *** as such. This will affect the creation of libtool libraries that
14076 *** depend on shared libraries, but programs linked with such libtool
14077 *** libraries will work regardless of this problem. Nevertheless, you
14078 *** may want to report the problem to your system manager and/or to
14079 *** bug-libtool@gnu.org
14089 MAGIC_CMD="$lt_save_MAGIC_CMD"
14094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14095 if test -n "$MAGIC_CMD"; then
14096 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14097 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14099 { echo "$as_me:$LINENO: result
: no
" >&5
14100 echo "${ECHO_T}no
" >&6; }
14113 enable_win32_dll=no
14115 # Check whether --enable-libtool-lock was given.
14116 if test "${enable_libtool_lock+set}" = set; then
14117 enableval=$enable_libtool_lock;
14120 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14123 # Check whether --with-pic was given.
14124 if test "${with_pic+set}" = set; then
14125 withval=$with_pic; pic_mode="$withval"
14130 test -z "$pic_mode" && pic_mode=default
14132 # Use C for the default configuration in the libtool script
14136 ac_cpp='$CPP $CPPFLAGS'
14137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14142 # Source file extension for C test sources.
14145 # Object file extension for compiled C test sources.
14149 # Code to be used in simple compile tests
14150 lt_simple_compile_test_code="int some_variable
= 0;\n"
14152 # Code to be used in simple link tests
14153 lt_simple_link_test_code='int main(){return(0);}\n'
14156 # If no C compiler was specified, use CC.
14159 # If no C compiler flags were specified, use CFLAGS.
14160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14162 # Allow CC to be a program name with arguments.
14166 # save warnings/boilerplate of simple test code
14167 ac_outfile=conftest.$ac_objext
14168 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14170 _lt_compiler_boilerplate=`cat conftest.err`
14173 ac_outfile=conftest.$ac_objext
14174 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14176 _lt_linker_boilerplate=`cat conftest.err`
14181 lt_prog_compiler_no_builtin_flag=
14183 if test "$GCC" = yes; then
14184 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14187 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14188 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14189 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14190 echo $ECHO_N "(cached
) $ECHO_C" >&6
14192 lt_cv_prog_compiler_rtti_exceptions=no
14193 ac_outfile=conftest.$ac_objext
14194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14195 lt_compiler_flag="-fno-rtti -fno-exceptions"
14196 # Insert the option either (1) after the last *FLAGS variable, or
14197 # (2) before a word containing "conftest.
", or (3) at the end.
14198 # Note that $ac_compile itself does not contain backslashes and begins
14199 # with a dollar sign (not a hyphen), so the echo should work correctly.
14200 # The option is referenced via a variable to avoid confusing sed.
14201 lt_compile=`echo "$ac_compile" | $SED \
14202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14204 -e 's:$: $lt_compiler_flag:'`
14205 (eval echo "\"\
$as_me:14205: $lt_compile\"" >&5)
14206 (eval "$lt_compile" 2>conftest.err)
14208 cat conftest.err >&5
14209 echo "$as_me:14209: \$?
= $ac_status" >&5
14210 if (exit $ac_status) && test -s "$ac_outfile"; then
14211 # The compiler can only warn and ignore the option if not recognized
14212 # So say no if there are warnings other than the usual output.
14213 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14216 lt_cv_prog_compiler_rtti_exceptions=yes
14222 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14223 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14225 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14226 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14233 lt_prog_compiler_wl=
14234 lt_prog_compiler_pic=
14235 lt_prog_compiler_static=
14237 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14238 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14240 if test "$GCC" = yes; then
14241 lt_prog_compiler_wl='-Wl,'
14242 lt_prog_compiler_static='-static'
14246 # All AIX code is PIC.
14247 if test "$host_cpu" = ia64; then
14248 # AIX 5 now supports IA64 processor
14249 lt_prog_compiler_static='-Bstatic'
14254 # FIXME: we need at least 68020 code to build shared libraries, but
14255 # adding the `-m68020' flag to GCC prevents building anything better,
14257 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14260 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14261 # PIC is the default for these OSes.
14264 mingw* | pw32* | os2*)
14265 # This hack is so that the source file can tell whether it is being
14266 # built for inclusion in a dll (and should export symbols for example).
14267 lt_prog_compiler_pic='-DDLL_EXPORT'
14270 darwin* | rhapsody*)
14271 # PIC is the default on this platform
14272 # Common symbols not allowed in MH_DYLIB files
14273 lt_prog_compiler_pic='-fno-common'
14277 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14278 # Instead, we relocate shared libraries at runtime.
14282 # Just because we use GCC doesn't mean we suddenly get shared libraries
14283 # on systems that don't support them.
14284 lt_prog_compiler_can_build_shared=no
14289 if test -d /usr/nec; then
14290 lt_prog_compiler_pic=-Kconform_pic
14295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14296 # not for PA HP-UX.
14302 lt_prog_compiler_pic='-fPIC'
14308 lt_prog_compiler_pic='-fPIC'
14312 # PORTME Check for flag to pass linker flags through the system compiler.
14315 lt_prog_compiler_wl='-Wl,'
14316 if test "$host_cpu" = ia64; then
14317 # AIX 5 now supports IA64 processor
14318 lt_prog_compiler_static='-Bstatic'
14320 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14324 # PIC is the default on this platform
14325 # Common symbols not allowed in MH_DYLIB files
14326 case $cc_basename in
14328 lt_prog_compiler_pic='-qnocommon'
14329 lt_prog_compiler_wl='-Wl,'
14334 mingw* | pw32* | os2*)
14335 # This hack is so that the source file can tell whether it is being
14336 # built for inclusion in a dll (and should export symbols for example).
14337 lt_prog_compiler_pic='-DDLL_EXPORT'
14340 hpux9* | hpux10* | hpux11*)
14341 lt_prog_compiler_wl='-Wl,'
14342 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14343 # not for PA HP-UX.
14349 lt_prog_compiler_pic='+Z'
14352 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14353 lt_prog_compiler_static='${wl}-a ${wl}archive'
14356 irix5* | irix6* | nonstopux*)
14357 lt_prog_compiler_wl='-Wl,'
14358 # PIC (with -KPIC) is the default.
14359 lt_prog_compiler_static='-non_shared'
14363 lt_prog_compiler_pic='-KPIC'
14364 lt_prog_compiler_static='-Bstatic'
14368 case $cc_basename in
14370 lt_prog_compiler_wl='-Wl,'
14371 lt_prog_compiler_pic='-KPIC'
14372 lt_prog_compiler_static='-static'
14374 pgcc* | pgf77* | pgf90* | pgf95*)
14375 # Portland Group compilers (*not* the Pentium gcc compiler,
14376 # which looks to be a dead project)
14377 lt_prog_compiler_wl='-Wl,'
14378 lt_prog_compiler_pic='-fpic'
14379 lt_prog_compiler_static='-Bstatic'
14382 lt_prog_compiler_wl='-Wl,'
14383 # All Alpha code is PIC.
14384 lt_prog_compiler_static='-non_shared'
14389 osf3* | osf4* | osf5*)
14390 lt_prog_compiler_wl='-Wl,'
14391 # All OSF/1 code is PIC.
14392 lt_prog_compiler_static='-non_shared'
14396 lt_prog_compiler_pic='-KPIC'
14397 lt_prog_compiler_static='-Bstatic'
14398 case $cc_basename in
14399 f77* | f90* | f95*)
14400 lt_prog_compiler_wl='-Qoption ld ';;
14402 lt_prog_compiler_wl='-Wl,';;
14407 lt_prog_compiler_wl='-Qoption ld '
14408 lt_prog_compiler_pic='-PIC'
14409 lt_prog_compiler_static='-Bstatic'
14412 sysv4 | sysv4.2uw2* | sysv4.3*)
14413 lt_prog_compiler_wl='-Wl,'
14414 lt_prog_compiler_pic='-KPIC'
14415 lt_prog_compiler_static='-Bstatic'
14419 if test -d /usr/nec ;then
14420 lt_prog_compiler_pic='-Kconform_pic'
14421 lt_prog_compiler_static='-Bstatic'
14425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14426 lt_prog_compiler_wl='-Wl,'
14427 lt_prog_compiler_pic='-KPIC'
14428 lt_prog_compiler_static='-Bstatic'
14432 lt_prog_compiler_wl='-Wl,'
14433 lt_prog_compiler_can_build_shared=no
14437 lt_prog_compiler_pic='-pic'
14438 lt_prog_compiler_static='-Bstatic'
14442 lt_prog_compiler_can_build_shared=no
14447 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
14448 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14451 # Check to make sure the PIC flag actually works.
14453 if test -n "$lt_prog_compiler_pic"; then
14455 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14456 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
14457 if test "${lt_prog_compiler_pic_works+set}" = set; then
14458 echo $ECHO_N "(cached
) $ECHO_C" >&6
14460 lt_prog_compiler_pic_works=no
14461 ac_outfile=conftest.$ac_objext
14462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14463 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14464 # Insert the option either (1) after the last *FLAGS variable, or
14465 # (2) before a word containing "conftest.
", or (3) at the end.
14466 # Note that $ac_compile itself does not contain backslashes and begins
14467 # with a dollar sign (not a hyphen), so the echo should work correctly.
14468 # The option is referenced via a variable to avoid confusing sed.
14469 lt_compile=`echo "$ac_compile" | $SED \
14470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14472 -e 's:$: $lt_compiler_flag:'`
14473 (eval echo "\"\
$as_me:14473: $lt_compile\"" >&5)
14474 (eval "$lt_compile" 2>conftest.err)
14476 cat conftest.err >&5
14477 echo "$as_me:14477: \$?
= $ac_status" >&5
14478 if (exit $ac_status) && test -s "$ac_outfile"; then
14479 # The compiler can only warn and ignore the option if not recognized
14480 # So say no if there are warnings other than the usual output.
14481 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14483 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14484 lt_prog_compiler_pic_works=yes
14490 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
14491 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14493 if test x"$lt_prog_compiler_pic_works" = xyes; then
14494 case $lt_prog_compiler_pic in
14496 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14499 lt_prog_compiler_pic=
14500 lt_prog_compiler_can_build_shared=no
14505 # For platforms which do not support PIC, -DPIC is meaningless:
14507 lt_prog_compiler_pic=
14510 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14515 # Check to make sure the static flag actually works.
14517 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14518 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14519 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
14520 if test "${lt_prog_compiler_static_works+set}" = set; then
14521 echo $ECHO_N "(cached
) $ECHO_C" >&6
14523 lt_prog_compiler_static_works=no
14524 save_LDFLAGS="$LDFLAGS"
14525 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14526 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14527 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14528 # The linker can only warn and ignore the option if not recognized
14529 # So say no if there are warnings
14530 if test -s conftest.err; then
14531 # Append any errors to the config.log.
14532 cat conftest.err 1>&5
14533 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14535 if diff conftest.exp conftest.er2 >/dev/null; then
14536 lt_prog_compiler_static_works=yes
14539 lt_prog_compiler_static_works=yes
14543 LDFLAGS="$save_LDFLAGS"
14546 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
14547 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14549 if test x"$lt_prog_compiler_static_works" = xyes; then
14552 lt_prog_compiler_static=
14556 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14557 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
14558 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14559 echo $ECHO_N "(cached
) $ECHO_C" >&6
14561 lt_cv_prog_compiler_c_o=no
14562 $rm -r conftest 2>/dev/null
14566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14568 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14569 # Insert the option either (1) after the last *FLAGS variable, or
14570 # (2) before a word containing "conftest.
", or (3) at the end.
14571 # Note that $ac_compile itself does not contain backslashes and begins
14572 # with a dollar sign (not a hyphen), so the echo should work correctly.
14573 lt_compile=`echo "$ac_compile" | $SED \
14574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14576 -e 's:$: $lt_compiler_flag:'`
14577 (eval echo "\"\
$as_me:14577: $lt_compile\"" >&5)
14578 (eval "$lt_compile" 2>out/conftest.err)
14580 cat out/conftest.err >&5
14581 echo "$as_me:14581: \$?
= $ac_status" >&5
14582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14584 # The compiler can only warn and ignore the option if not recognized
14585 # So say no if there are warnings
14586 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14589 lt_cv_prog_compiler_c_o=yes
14594 # SGI C++ compiler will create directory out/ii_files/ for
14595 # template instantiation
14596 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14597 $rm out/* && rmdir out
14603 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
14604 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14607 hard_links="nottested
"
14608 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14609 # do not overwrite the value of need_locks provided by the user
14610 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
14611 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
14614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14616 ln conftest.a conftest.b 2>&5 || hard_links=no
14617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14618 { echo "$as_me:$LINENO: result
: $hard_links" >&5
14619 echo "${ECHO_T}$hard_links" >&6; }
14620 if test "$hard_links" = no; then
14621 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14622 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14629 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14630 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
14633 allow_undefined_flag=
14634 enable_shared_with_static_runtimes=no
14636 archive_expsym_cmds=
14637 old_archive_From_new_cmds=
14638 old_archive_from_expsyms_cmds=
14639 export_dynamic_flag_spec=
14640 whole_archive_flag_spec=
14641 thread_safe_flag_spec=
14642 hardcode_libdir_flag_spec=
14643 hardcode_libdir_flag_spec_ld=
14644 hardcode_libdir_separator=
14646 hardcode_minus_L=no
14647 hardcode_shlibpath_var=unsupported
14648 link_all_deplibs=unknown
14649 hardcode_automatic=no
14651 module_expsym_cmds=
14652 always_export_symbols=no
14653 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14654 # include_expsyms should be a list of space-separated symbols to be *always*
14655 # included in the symbol list
14657 # exclude_expsyms can be an extended regexp of symbols to exclude
14658 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14659 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14660 # as well as any symbol that contains `d'.
14661 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
14662 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14663 # platforms (ab)use it in PIC code, but their linkers get confused if
14664 # the symbol is explicitly referenced. Since portable code cannot
14665 # rely on this symbol name, it's probably fine to never include it in
14666 # preloaded symbol tables.
14667 extract_expsyms_cmds=
14668 # Just being paranoid about ensuring that cc_basename is set.
14669 for cc_temp in $compiler""; do
14671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14677 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14680 cygwin* | mingw* | pw32*)
14681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14682 # When not using gcc, we currently assume that we are using
14683 # Microsoft Visual C++.
14684 if test "$GCC" != yes; then
14689 # we just hope/assume this is gcc and not c89 (= MSVC++)
14698 if test "$with_gnu_ld" = yes; then
14699 # If archive_cmds runs LD, not CC, wlarc should be empty
14702 # Set some defaults for GNU ld with shared library support. These
14703 # are reset later if shared libraries are not supported. Putting them
14704 # here allows them to be overridden if necessary.
14705 runpath_var=LD_RUN_PATH
14706 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14707 export_dynamic_flag_spec='${wl}--export-dynamic'
14708 # ancient GNU ld didn't support --whole-archive et. al.
14709 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14710 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14712 whole_archive_flag_spec=
14714 supports_anon_versioning=no
14715 case `$LD -v 2>/dev/null` in
14716 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14717 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14718 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14719 *\ 2.11.*) ;; # other 2.11 versions
14720 *) supports_anon_versioning=yes ;;
14723 # See if GNU ld supports shared libraries.
14725 aix3* | aix4* | aix5*)
14726 # On AIX/PPC, the GNU linker is very broken
14727 if test "$host_cpu" != ia64; then
14731 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14732 *** to be unable to reliably create shared libraries on AIX.
14733 *** Therefore, libtool is disabling shared libraries support. If you
14734 *** really care for shared libraries, you may want to modify your PATH
14735 *** so that a non-GNU linker is found, and then restart.
14742 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)'
14743 hardcode_libdir_flag_spec
='-L$libdir'
14744 hardcode_minus_L
=yes
14746 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14747 # that the semantics of dynamic libraries on AmigaOS, at least up
14748 # to version 4, is to share data among multiple programs linked
14749 # with the same dynamic library. Since this doesn't match the
14750 # behavior of shared libraries on other platforms, we can't use
14756 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14757 allow_undefined_flag
=unsupported
14758 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14759 # support --undefined. This deserves some investigation. FIXME
14760 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14766 cygwin
* | mingw
* | pw32
*)
14767 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14768 # as there is no search path for DLLs.
14769 hardcode_libdir_flag_spec
='-L$libdir'
14770 allow_undefined_flag
=unsupported
14771 always_export_symbols
=no
14772 enable_shared_with_static_runtimes
=yes
14773 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14775 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14776 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14777 # If the export-symbols file already is a .def file (1st line
14778 # is EXPORTS), use it as is; otherwise, prepend...
14779 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14780 cp $export_symbols $output_objdir/$soname.def;
14782 echo EXPORTS > $output_objdir/$soname.def;
14783 cat $export_symbols >> $output_objdir/$soname.def;
14785 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14793 hardcode_shlibpath_var
=no
14794 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14795 export_dynamic_flag_spec
='${wl}-E'
14796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14797 # Instead, shared libraries are loaded at an image base (0x10000000 by
14798 # default) and relocated if they conflict, which is a slow very memory
14799 # consuming and fragmenting process. To avoid this, we pick a random,
14800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14802 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14803 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'
14807 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14809 case $cc_basename,$host_cpu in
14810 pgcc
*) # Portland Group C compiler
14811 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'
14812 tmp_addflag
=' $pic_flag'
14814 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14815 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'
14816 tmp_addflag
=' $pic_flag -Mnomain' ;;
14817 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14818 tmp_addflag
=' -i_dynamic' ;;
14819 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14820 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14821 ifc
* | ifort
*) # Intel Fortran compiler
14822 tmp_addflag
=' -nofor_main' ;;
14824 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14826 if test $supports_anon_versioning = yes; then
14827 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
14828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14829 $echo "local: *; };" >> $output_objdir/$libname.ver~
14830 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14838 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14839 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14842 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14843 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14848 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14852 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14853 *** create shared libraries on Solaris systems. Therefore, libtool
14854 *** is disabling shared libraries support. We urge you to upgrade GNU
14855 *** binutils to release 2.9.1 or newer. Another option is to modify
14856 *** your PATH or compiler configuration so that the native linker is
14857 *** used, and then restart.
14860 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14861 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14868 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14869 case `$LD -v 2>&1` in
14870 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14874 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14875 *** reliably create shared libraries on SCO systems. Therefore, libtool
14876 *** is disabling shared libraries support. We urge you to upgrade GNU
14877 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14878 *** your PATH or compiler configuration so that the native linker is
14879 *** used, and then restart.
14884 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14885 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14886 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14887 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14896 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14898 hardcode_direct
=yes
14899 hardcode_shlibpath_var
=no
14903 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14904 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14905 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14912 if test "$ld_shlibs" = no
; then
14914 hardcode_libdir_flag_spec
=
14915 export_dynamic_flag_spec
=
14916 whole_archive_flag_spec
=
14919 # PORTME fill in a description of your system's linker (not GNU ld)
14922 allow_undefined_flag
=unsupported
14923 always_export_symbols
=yes
14924 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'
14925 # Note: this linker hardcodes the directories in LIBPATH if there
14926 # are no directories specified by -L.
14927 hardcode_minus_L
=yes
14928 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14929 # Neither direct hardcoding nor static linking is supported with a
14931 hardcode_direct
=unsupported
14936 if test "$host_cpu" = ia64
; then
14937 # On IA64, the linker does run time linking by default, so we don't
14938 # have to do anything special.
14939 aix_use_runtimelinking
=no
14940 exp_sym_flag
='-Bexport'
14943 # If we're using GNU nm, then we don't want the "-C" option.
14944 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14945 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14946 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'
14948 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'
14950 aix_use_runtimelinking
=no
14952 # Test if we are trying to use run time linking or normal
14953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14954 # need to do runtime linking.
14955 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14956 for ld_flag
in $LDFLAGS; do
14957 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14958 aix_use_runtimelinking
=yes
14965 exp_sym_flag
='-bexport'
14966 no_entry_flag
='-bnoentry'
14969 # When large executables or shared objects are built, AIX ld can
14970 # have problems creating the table of contents. If linking a library
14971 # or program results in "error TOC overflow" add -mminimal-toc to
14972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14976 hardcode_direct
=yes
14977 hardcode_libdir_separator
=':'
14978 link_all_deplibs
=yes
14980 if test "$GCC" = yes; then
14981 case $host_os in aix4.
[012]|aix4.
[012].
*)
14982 # We only want to do this on AIX 4.2 and lower, the check
14983 # below for broken collect2 doesn't work under 4.3+
14984 collect2name
=`${CC} -print-prog-name=collect2`
14985 if test -f "$collect2name" && \
14986 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14988 # We have reworked collect2
14989 hardcode_direct
=yes
14991 # We have old collect2
14992 hardcode_direct
=unsupported
14993 # It fails to find uninstalled libraries when the uninstalled
14994 # path is not listed in the libpath. Setting hardcode_minus_L
14995 # to unsupported forces relinking
14996 hardcode_minus_L
=yes
14997 hardcode_libdir_flag_spec
='-L$libdir'
14998 hardcode_libdir_separator
=
15002 shared_flag
='-shared'
15003 if test "$aix_use_runtimelinking" = yes; then
15004 shared_flag
="$shared_flag "'${wl}-G'
15008 if test "$host_cpu" = ia64
; then
15009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15010 # chokes on -Wl,-G. The following line is correct:
15013 if test "$aix_use_runtimelinking" = yes; then
15014 shared_flag
='${wl}-G'
15016 shared_flag
='${wl}-bM:SRE'
15021 # It seems that -bexpall does not export symbols beginning with
15022 # underscore (_), so it is better to generate a list of symbols to export.
15023 always_export_symbols
=yes
15024 if test "$aix_use_runtimelinking" = yes; then
15025 # Warning - without using the other runtime loading flags (-brtl),
15026 # -berok will link without error, but may produce a broken library.
15027 allow_undefined_flag
='-berok'
15028 # Determine the default libpath from the value encoded in an empty executable.
15029 cat >conftest.
$ac_ext <<_ACEOF
15032 cat confdefs.h
>>conftest.
$ac_ext
15033 cat >>conftest.
$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15044 rm -f conftest.
$ac_objext conftest
$ac_exeext
15045 if { (ac_try
="$ac_link"
15046 case "(($ac_try" in
15047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_link") 2>conftest.er1
15053 grep -v '^ *+' conftest.er1 >conftest.err
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
15058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15061 *) ac_try_echo
=$ac_try;;
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; } &&
15068 { ac_try
='test -s conftest$ac_exeext'
15069 { (case "(($ac_try" in
15070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15079 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15081 # Check for a 64-bit object if we didn't find anything.
15082 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; }
15085 echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15091 rm -f core conftest.err conftest.$ac_objext \
15092 conftest$ac_exeext conftest.$ac_ext
15093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15095 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15096 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"
15098 if test "$host_cpu" = ia64; then
15099 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15100 allow_undefined_flag="-z nodefs"
15101 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"
15103 # Determine the default libpath from the value encoded in an empty executable.
15104 cat >conftest.$ac_ext <<_ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15119 rm -f conftest.$ac_objext conftest$ac_exeext
15120 if { (ac_try="$ac_link"
15121 case "(($ac_try" in
15122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15123 *) ac_try_echo
=$ac_try;;
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_link") 2>conftest.er1
15128 grep -v '^ *+' conftest.er1
>conftest.err
15130 cat conftest.err
>&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
15133 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15134 { (case "(($ac_try" in
15135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_try") 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; } &&
15143 { ac_try='test -s conftest$ac_exeext'
15144 { (case "(($ac_try" in
15145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15146 *) ac_try_echo
=$ac_try;;
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_try") 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15154 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15156 # Check for a 64-bit object if we didn't find anything.
15157 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; }
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.
$ac_ext >&5
15166 rm -f core conftest.err conftest.
$ac_objext \
15167 conftest
$ac_exeext conftest.
$ac_ext
15168 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15170 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15171 # Warning - without using the other run time loading flags,
15172 # -berok will link without error, but may produce a broken library.
15173 no_undefined_flag
=' ${wl}-bernotok'
15174 allow_undefined_flag
=' ${wl}-berok'
15175 # Exported symbols can be pulled into shared objects from archives
15176 whole_archive_flag_spec
='$convenience'
15177 archive_cmds_need_lc
=yes
15178 # This is similar to how AIX traditionally builds its shared libraries.
15179 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'
15185 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)'
15186 hardcode_libdir_flag_spec
='-L$libdir'
15187 hardcode_minus_L
=yes
15188 # see comment about different semantics on the GNU ld section
15193 export_dynamic_flag_spec
=-rdynamic
15196 cygwin
* | mingw
* | pw32
*)
15197 # When not using gcc, we currently assume that we are using
15198 # Microsoft Visual C++.
15199 # hardcode_libdir_flag_spec is actually meaningless, as there is
15200 # no search path for DLLs.
15201 hardcode_libdir_flag_spec
=' '
15202 allow_undefined_flag
=unsupported
15203 # Tell ltmain to make .lib files, not .a files.
15205 # Tell ltmain to make .dll files, not .so files.
15207 # FIXME: Setting linknames here is a bad hack.
15208 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15209 # The linker will automatically build a .lib file if we build a DLL.
15210 old_archive_From_new_cmds
='true'
15211 # FIXME: Should let the user specify the lib program.
15212 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15213 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15214 enable_shared_with_static_runtimes
=yes
15217 darwin
* | rhapsody
*)
15219 rhapsody
* | darwin1.
[012])
15220 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15223 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15224 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15226 case ${MACOSX_DEPLOYMENT_TARGET} in
15228 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15231 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15237 archive_cmds_need_lc
=no
15239 hardcode_automatic
=yes
15240 hardcode_shlibpath_var
=unsupported
15241 whole_archive_flag_spec
=''
15242 link_all_deplibs
=yes
15243 if test "$GCC" = yes ; then
15244 output_verbose_link_cmd
='echo'
15245 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15246 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15247 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15248 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}'
15249 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}'
15251 case $cc_basename in
15253 output_verbose_link_cmd
='echo'
15254 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15255 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15256 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15257 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}'
15258 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}'
15268 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15269 hardcode_libdir_flag_spec
='-L$libdir'
15270 hardcode_shlibpath_var
=no
15277 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15278 # support. Future versions do this automatically, but an explicit c++rt0.o
15279 # does not break anything, and helps significantly (at the cost of a little
15282 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15283 hardcode_libdir_flag_spec
='-R$libdir'
15284 hardcode_direct
=yes
15285 hardcode_shlibpath_var
=no
15288 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15290 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15291 hardcode_direct
=yes
15292 hardcode_minus_L
=yes
15293 hardcode_shlibpath_var
=no
15296 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15297 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15298 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15299 hardcode_libdir_flag_spec
='-R$libdir'
15300 hardcode_direct
=yes
15301 hardcode_shlibpath_var
=no
15305 if test "$GCC" = yes; then
15306 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'
15308 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'
15310 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15311 hardcode_libdir_separator
=:
15312 hardcode_direct
=yes
15314 # hardcode_minus_L: Not really in the search PATH,
15315 # but as the default location of the library.
15316 hardcode_minus_L
=yes
15317 export_dynamic_flag_spec
='${wl}-E'
15321 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15322 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15324 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15326 if test "$with_gnu_ld" = no
; then
15327 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15328 hardcode_libdir_separator
=:
15330 hardcode_direct
=yes
15331 export_dynamic_flag_spec
='${wl}-E'
15333 # hardcode_minus_L: Not really in the search PATH,
15334 # but as the default location of the library.
15335 hardcode_minus_L
=yes
15340 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15343 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15346 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15349 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15355 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15358 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15365 if test "$with_gnu_ld" = no
; then
15366 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15367 hardcode_libdir_separator
=:
15371 hardcode_libdir_flag_spec_ld
='+b $libdir'
15373 hardcode_shlibpath_var
=no
15376 hardcode_direct
=yes
15377 export_dynamic_flag_spec
='${wl}-E'
15379 # hardcode_minus_L: Not really in the search PATH,
15380 # but as the default location of the library.
15381 hardcode_minus_L
=yes
15387 irix5
* | irix6
* | nonstopux
*)
15388 if test "$GCC" = yes; then
15389 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'
15391 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'
15392 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15394 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15395 hardcode_libdir_separator
=:
15396 link_all_deplibs
=yes
15400 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15401 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15403 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15405 hardcode_libdir_flag_spec
='-R$libdir'
15406 hardcode_direct
=yes
15407 hardcode_shlibpath_var
=no
15411 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_direct
=yes
15413 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15414 hardcode_libdir_separator
=:
15415 hardcode_shlibpath_var
=no
15419 hardcode_direct
=yes
15420 hardcode_shlibpath_var
=no
15421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15422 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15423 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15424 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15425 export_dynamic_flag_spec
='${wl}-E'
15428 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15429 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15430 hardcode_libdir_flag_spec
='-R$libdir'
15433 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15434 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15441 hardcode_libdir_flag_spec
='-L$libdir'
15442 hardcode_minus_L
=yes
15443 allow_undefined_flag
=unsupported
15444 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'
15445 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15449 if test "$GCC" = yes; then
15450 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15451 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'
15453 allow_undefined_flag
=' -expect_unresolved \*'
15454 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'
15456 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15457 hardcode_libdir_separator
=:
15460 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15461 if test "$GCC" = yes; then
15462 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15463 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'
15464 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15466 allow_undefined_flag
=' -expect_unresolved \*'
15467 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'
15468 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15469 $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'
15471 # Both c and cxx compiler support -rpath directly
15472 hardcode_libdir_flag_spec
='-rpath $libdir'
15474 hardcode_libdir_separator
=:
15478 no_undefined_flag
=' -z text'
15479 if test "$GCC" = yes; then
15481 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15482 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15483 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15486 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15487 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15488 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15490 hardcode_libdir_flag_spec
='-R$libdir'
15491 hardcode_shlibpath_var
=no
15493 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15495 # The compiler driver will combine linker options so we
15496 # cannot just pass the convience library names through
15497 # without $wl, iff we do not link with $LD.
15498 # Luckily, gcc supports the same syntax we need for Sun Studio.
15499 # Supported since Solaris 2.6 (maybe 2.5.1?)
15502 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
15504 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' ;;
15507 link_all_deplibs
=yes
15511 if test "x$host_vendor" = xsequent
; then
15512 # Use $CC to link under sequent, because it throws in some extra .o
15513 # files that make .init and .fini sections work.
15514 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15516 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15518 hardcode_libdir_flag_spec
='-L$libdir'
15519 hardcode_direct
=yes
15520 hardcode_minus_L
=yes
15521 hardcode_shlibpath_var
=no
15525 case $host_vendor in
15527 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15528 hardcode_direct
=yes # is this really true???
15531 ## LD is ld it makes a PLAMLIB
15532 ## CC just makes a GrossModule.
15533 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15534 reload_cmds
='$CC -r -o $output$reload_objs'
15538 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15539 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15542 runpath_var
='LD_RUN_PATH'
15543 hardcode_shlibpath_var
=no
15547 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_shlibpath_var
=no
15549 export_dynamic_flag_spec
='-Bexport'
15553 if test -d /usr
/nec
; then
15554 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15555 hardcode_shlibpath_var
=no
15556 runpath_var
=LD_RUN_PATH
15557 hardcode_runpath_var
=yes
15562 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
15563 no_undefined_flag
='${wl}-z,text'
15564 archive_cmds_need_lc
=no
15565 hardcode_shlibpath_var
=no
15566 runpath_var
='LD_RUN_PATH'
15568 if test "$GCC" = yes; then
15569 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15570 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15572 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15573 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15577 sysv5
* | sco3.2v5
* | sco5v6
*)
15578 # Note: We can NOT use -z defs as we might desire, because we do not
15579 # link with -lc, and that would cause any symbols used from libc to
15580 # always be unresolved, which means just about no library would
15581 # ever link correctly. If we're not using GNU ld we use -z text
15582 # though, which does catch some bad symbols but isn't as heavy-handed
15584 no_undefined_flag
='${wl}-z,text'
15585 allow_undefined_flag
='${wl}-z,nodefs'
15586 archive_cmds_need_lc
=no
15587 hardcode_shlibpath_var
=no
15588 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15589 hardcode_libdir_separator
=':'
15590 link_all_deplibs
=yes
15591 export_dynamic_flag_spec
='${wl}-Bexport'
15592 runpath_var
='LD_RUN_PATH'
15594 if test "$GCC" = yes; then
15595 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15605 hardcode_libdir_flag_spec
='-L$libdir'
15606 hardcode_shlibpath_var
=no
15615 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15616 echo "${ECHO_T}$ld_shlibs" >&6; }
15617 test "$ld_shlibs" = no
&& can_build_shared
=no
15620 # Do we need to explicitly link libc?
15622 case "x$archive_cmds_need_lc" in
15624 # Assume -lc should be added
15625 archive_cmds_need_lc
=yes
15627 if test "$enable_shared" = yes && test "$GCC" = yes; then
15628 case $archive_cmds in
15630 # FIXME: we may have to deal with multi-command sequences.
15633 # Test whether the compiler implicitly links with -lc since on some
15634 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15635 # to ld, don't add -lc before -lgcc.
15636 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15637 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15639 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } 2>conftest.err
; then
15648 libobjs
=conftest.
$ac_objext
15650 wl
=$lt_prog_compiler_wl
15651 pic_flag
=$lt_prog_compiler_pic
15657 lt_save_allow_undefined_flag
=$allow_undefined_flag
15658 allow_undefined_flag
=
15659 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15660 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }
15665 archive_cmds_need_lc
=no
15667 archive_cmds_need_lc
=yes
15669 allow_undefined_flag
=$lt_save_allow_undefined_flag
15671 cat conftest.err
1>&5
15674 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15675 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15682 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15683 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15684 library_names_spec
=
15685 libname_spec
='lib$name'
15689 postuninstall_cmds
=
15693 shlibpath_overrides_runpath
=unknown
15695 dynamic_linker
="$host_os ld.so"
15696 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15697 if test "$GCC" = yes; then
15698 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15699 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15700 # if the path contains ";" then we assume it to be the separator
15701 # otherwise default to the standard path separator (i.e. ":") - it is
15702 # assumed that no part of a normal pathname contains ";" but that should
15703 # okay in the real world where ";" in dirpaths is itself problematic.
15704 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15706 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15709 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15711 need_lib_prefix
=unknown
15712 hardcode_into_libs
=no
15714 # when you set need_version to no, make sure it does not cause -set_version
15715 # flags to be left without arguments
15716 need_version
=unknown
15721 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15722 shlibpath_var
=LIBPATH
15724 # AIX 3 has no versioning support, so we append a major version to the name.
15725 soname_spec
='${libname}${release}${shared_ext}$major'
15732 hardcode_into_libs
=yes
15733 if test "$host_cpu" = ia64
; then
15734 # AIX 5 supports IA64
15735 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15736 shlibpath_var
=LD_LIBRARY_PATH
15738 # With GCC up to 2.95.x, collect2 would create an import file
15739 # for dependence libraries. The import file would start with
15740 # the line `#! .'. This would cause the generated library to
15741 # depend on `.', always an invalid library. This was fixed in
15742 # development snapshots of GCC prior to 3.0.
15744 aix4 | aix4.
[01] | aix4.
[01].
*)
15745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15747 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15750 can_build_shared
=no
15754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15755 # soname into executable. Probably we can add versioning support to
15756 # collect2, so additional links can be useful in future.
15757 if test "$aix_use_runtimelinking" = yes; then
15758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15759 # instead of lib<name>.a to let people know that these are not
15760 # typical AIX shared libraries.
15761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763 # We preserve .a as extension for shared libraries through AIX4.2
15764 # and later when we are not doing run time linking.
15765 library_names_spec
='${libname}${release}.a $libname.a'
15766 soname_spec
='${libname}${release}${shared_ext}$major'
15768 shlibpath_var
=LIBPATH
15773 library_names_spec
='$libname.ixlibrary $libname.a'
15774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15775 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'
15779 library_names_spec
='${libname}${shared_ext}'
15780 dynamic_linker
="$host_os ld.so"
15781 shlibpath_var
=LIBRARY_PATH
15787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec
='${libname}${release}${shared_ext}$major'
15789 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15790 shlibpath_var
=LD_LIBRARY_PATH
15791 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15792 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15793 # the default ld.so.conf also contains /usr/contrib/lib and
15794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15795 # libtool to hard-code these into programs
15798 cygwin
* | mingw
* | pw32
*)
15799 version_type
=windows
15804 case $GCC,$host_os in
15805 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15806 library_names_spec
='$libname.dll.a'
15807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15808 postinstall_cmds
='base_file=`basename \${file}`~
15809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15810 dldir=$destdir/`dirname \$dlpath`~
15811 test -d \$dldir || mkdir -p \$dldir~
15812 $install_prog $dir/$dlname \$dldir/$dlname~
15813 chmod a+x \$dldir/$dlname'
15814 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15815 dlpath=$dir/\$dldll~
15817 shlibpath_overrides_runpath
=yes
15821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15822 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15823 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15826 # MinGW DLLs use traditional 'lib' prefix
15827 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15828 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15829 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15830 # It is most probably a Windows format PATH printed by
15831 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15832 # path with ; separators, and with drive letters. We can handle the
15833 # drive letters (cygwin fileutils understands them), so leave them,
15834 # especially as we might pass files found there to a mingw objdump,
15835 # which wouldn't understand a cygwinified path. Ahh.
15836 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15838 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15842 # pw32 DLLs use 'pw' prefix rather than 'lib'
15843 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15849 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15852 dynamic_linker
='Win32 ld.exe'
15853 # FIXME: first we should search . and the directory the executable is in
15857 darwin
* | rhapsody
*)
15858 dynamic_linker
="$host_os dyld"
15859 version_type
=darwin
15862 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15863 soname_spec
='${libname}${release}${major}$shared_ext'
15864 shlibpath_overrides_runpath
=yes
15865 shlibpath_var
=DYLD_LIBRARY_PATH
15866 shrext_cmds
='.dylib'
15867 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15868 if test "$GCC" = yes; then
15869 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"`
15871 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15873 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15880 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15881 soname_spec
='${libname}${release}${shared_ext}$major'
15882 shlibpath_var
=LD_LIBRARY_PATH
15893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15894 soname_spec
='${libname}${release}${shared_ext}$major'
15895 shlibpath_var
=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath
=no
15897 hardcode_into_libs
=yes
15898 dynamic_linker
='GNU ld.so'
15901 freebsd
* | dragonfly
*)
15902 # DragonFly does not have aout. When/if they implement a new
15903 # versioning mechanism, adjust this.
15904 if test -x /usr
/bin
/objformat
; then
15905 objformat
=`/usr/bin/objformat`
15908 freebsd
[123]*) objformat
=aout
;;
15909 *) objformat
=elf
;;
15912 version_type
=freebsd-
$objformat
15913 case $version_type in
15915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15920 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15924 shlibpath_var
=LD_LIBRARY_PATH
15927 shlibpath_overrides_runpath
=yes
15929 freebsd3.
[01]* | freebsdelf3.
[01]*)
15930 shlibpath_overrides_runpath
=yes
15931 hardcode_into_libs
=yes
15933 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15934 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15935 shlibpath_overrides_runpath
=no
15936 hardcode_into_libs
=yes
15938 freebsd
*) # from 4.6 on
15939 shlibpath_overrides_runpath
=yes
15940 hardcode_into_libs
=yes
15949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15950 soname_spec
='${libname}${release}${shared_ext}$major'
15951 shlibpath_var
=LD_LIBRARY_PATH
15952 hardcode_into_libs
=yes
15955 hpux9
* | hpux10
* | hpux11
*)
15956 # Give a soname corresponding to the major version so that dld.sl refuses to
15957 # link against other versions.
15964 hardcode_into_libs
=yes
15965 dynamic_linker
="$host_os dld.so"
15966 shlibpath_var
=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec
='${libname}${release}${shared_ext}$major'
15970 if test "X$HPUX_IA64_MODE" = X32
; then
15971 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15973 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15975 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15979 hardcode_into_libs
=yes
15980 dynamic_linker
="$host_os dld.sl"
15981 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15982 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 soname_spec
='${libname}${release}${shared_ext}$major'
15985 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15986 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15990 dynamic_linker
="$host_os dld.sl"
15991 shlibpath_var
=SHLIB_PATH
15992 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15993 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec
='${libname}${release}${shared_ext}$major'
15997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15998 postinstall_cmds
='chmod 555 $lib'
16005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16006 soname_spec
='${libname}${release}${shared_ext}$major'
16007 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16008 shlibpath_var
=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath
=no
16010 hardcode_into_libs
=yes
16013 irix5
* | irix6
* | nonstopux
*)
16015 nonstopux
*) version_type
=nonstopux
;;
16017 if test "$lt_cv_prog_gnu_ld" = yes; then
16025 soname_spec
='${libname}${release}${shared_ext}$major'
16026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16028 irix5
* | nonstopux
*)
16029 libsuff
= shlibsuff
=
16032 case $LD in # libtool.m4 will add one of these switches to LD
16033 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16034 libsuff
= shlibsuff
= libmagic
=32-bit;;
16035 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16036 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16037 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16038 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16039 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16043 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16044 shlibpath_overrides_runpath
=no
16045 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16046 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16047 hardcode_into_libs
=yes
16050 # No shared lib support for Linux oldld, aout, or coff.
16051 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16055 # This must be Linux ELF.
16060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 soname_spec
='${libname}${release}${shared_ext}$major'
16062 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16063 shlibpath_var
=LD_LIBRARY_PATH
16064 shlibpath_overrides_runpath
=no
16065 # This implies no fast_install, which is unacceptable.
16066 # Some rework will be needed to allow for fast_install
16067 # before this can be enabled.
16068 hardcode_into_libs
=yes
16070 # Append ld.so.conf contents to the search path
16071 if test -f /etc
/ld.so.conf
; then
16072 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' ' '`
16073 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16076 # We used to test for /lib/ld.so.1 and disable shared libraries on
16077 # powerpc, because MkLinux only supported shared libraries with the
16078 # GNU dynamic linker. Since this was broken with cross compilers,
16079 # most powerpc-linux boxes support dynamic linking these days and
16080 # people can always --disable-shared, the test was removed, and we
16081 # assume the GNU/Linux dynamic linker is in use.
16082 dynamic_linker
='GNU/Linux ld.so'
16089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16090 soname_spec
='${libname}${release}${shared_ext}$major'
16091 shlibpath_var
=LD_LIBRARY_PATH
16092 shlibpath_overrides_runpath
=no
16093 hardcode_into_libs
=yes
16094 dynamic_linker
='GNU ld.so'
16101 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16103 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16104 dynamic_linker
='NetBSD (a.out) ld.so'
16106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16107 soname_spec
='${libname}${release}${shared_ext}$major'
16108 dynamic_linker
='NetBSD ld.elf_so'
16110 shlibpath_var
=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath
=yes
16112 hardcode_into_libs
=yes
16117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 shlibpath_var
=LD_LIBRARY_PATH
16119 shlibpath_overrides_runpath
=yes
16126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 soname_spec
='${libname}${release}${shared_ext}$major'
16128 shlibpath_var
=LD_LIBRARY_PATH
16129 shlibpath_overrides_runpath
=yes
16134 sys_lib_dlsearch_path_spec
="/usr/lib"
16136 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16138 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16139 *) need_version
=no
;;
16141 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16142 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16143 shlibpath_var
=LD_LIBRARY_PATH
16144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16146 openbsd2.
[89] | openbsd2.
[89].
*)
16147 shlibpath_overrides_runpath
=no
16150 shlibpath_overrides_runpath
=yes
16154 shlibpath_overrides_runpath
=yes
16159 libname_spec
='$name'
16162 library_names_spec
='$libname${shared_ext} $libname.a'
16163 dynamic_linker
='OS/2 ld.exe'
16164 shlibpath_var
=LIBPATH
16167 osf3
* | osf4
* | osf5
*)
16171 soname_spec
='${libname}${release}${shared_ext}$major'
16172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173 shlibpath_var
=LD_LIBRARY_PATH
16174 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16175 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16183 soname_spec
='${libname}${release}${shared_ext}$major'
16184 shlibpath_var
=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath
=yes
16186 hardcode_into_libs
=yes
16187 # ldd complains unless libraries are executable
16188 postinstall_cmds
='chmod +x $lib'
16193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16194 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16195 shlibpath_var
=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath
=yes
16197 if test "$with_gnu_ld" = yes; then
16205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 soname_spec
='${libname}${release}${shared_ext}$major'
16207 shlibpath_var
=LD_LIBRARY_PATH
16208 case $host_vendor in
16210 shlibpath_overrides_runpath
=no
16212 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16213 runpath_var
=LD_RUN_PATH
16221 shlibpath_overrides_runpath
=no
16222 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16228 if test -d /usr
/nec
;then
16230 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16231 soname_spec
='$libname${shared_ext}.$major'
16232 shlibpath_var
=LD_LIBRARY_PATH
16236 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16237 version_type
=freebsd-elf
16240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16241 soname_spec
='${libname}${release}${shared_ext}$major'
16242 shlibpath_var
=LD_LIBRARY_PATH
16243 hardcode_into_libs
=yes
16244 if test "$with_gnu_ld" = yes; then
16245 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16246 shlibpath_overrides_runpath
=no
16248 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16249 shlibpath_overrides_runpath
=yes
16252 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16256 sys_lib_dlsearch_path_spec
='/usr/lib'
16261 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec
='${libname}${release}${shared_ext}$major'
16263 shlibpath_var
=LD_LIBRARY_PATH
16270 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16271 echo "${ECHO_T}$dynamic_linker" >&6; }
16272 test "$dynamic_linker" = no
&& can_build_shared
=no
16274 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16275 if test "$GCC" = yes; then
16276 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16279 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16280 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16282 if test -n "$hardcode_libdir_flag_spec" || \
16283 test -n "$runpath_var" || \
16284 test "X$hardcode_automatic" = "Xyes" ; then
16286 # We can hardcode non-existant directories.
16287 if test "$hardcode_direct" != no
&&
16288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16289 # have to relink, otherwise we might link with an installed library
16290 # when we should be linking with a yet-to-be-installed one
16291 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16292 test "$hardcode_minus_L" != no
; then
16293 # Linking always hardcodes the temporary library directory.
16294 hardcode_action
=relink
16296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16297 hardcode_action
=immediate
16300 # We cannot hardcode anything, or else we can only hardcode existing
16302 hardcode_action
=unsupported
16304 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16305 echo "${ECHO_T}$hardcode_action" >&6; }
16307 if test "$hardcode_action" = relink
; then
16308 # Fast installation is not supported
16309 enable_fast_install
=no
16310 elif test "$shlibpath_overrides_runpath" = yes ||
16311 test "$enable_shared" = no
; then
16312 # Fast installation is not necessary
16313 enable_fast_install
=needless
16318 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16319 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16320 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16321 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16322 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16323 { echo "$as_me:$LINENO: result: yes" >&5
16324 echo "${ECHO_T}yes" >&6; }
16326 # FIXME - insert some real tests, host_os isn't really good enough
16329 if test -n "$STRIP" ; then
16330 striplib
="$STRIP -x"
16331 { echo "$as_me:$LINENO: result: yes" >&5
16332 echo "${ECHO_T}yes" >&6; }
16334 { echo "$as_me:$LINENO: result: no" >&5
16335 echo "${ECHO_T}no" >&6; }
16339 { echo "$as_me:$LINENO: result: no" >&5
16340 echo "${ECHO_T}no" >&6; }
16345 if test "x$enable_dlopen" != xyes
; then
16346 enable_dlopen
=unknown
16347 enable_dlopen_self
=unknown
16348 enable_dlopen_self_static
=unknown
16355 lt_cv_dlopen
="load_add_on"
16357 lt_cv_dlopen_self
=yes
16361 lt_cv_dlopen
="LoadLibrary"
16366 lt_cv_dlopen
="dlopen"
16371 # if libdl is installed we need to link against it
16372 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16373 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16374 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 ac_check_lib_save_LIBS
=$LIBS
16379 cat >conftest.
$ac_ext <<_ACEOF
16382 cat confdefs.h
>>conftest.
$ac_ext
16383 cat >>conftest.
$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16386 /* Override any GCC internal prototype to avoid an error.
16387 Use char because int might match the return type of a GCC
16388 builtin and then its argument prototype would still apply. */
16401 rm -f conftest.
$ac_objext conftest
$ac_exeext
16402 if { (ac_try
="$ac_link"
16403 case "(($ac_try" in
16404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_link") 2>conftest.er1
16410 grep -v '^ *+' conftest.er1 >conftest.err
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16418 *) ac_try_echo
=$ac_try;;
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; } &&
16425 { ac_try
='test -s conftest$ac_exeext'
16426 { (case "(($ac_try" in
16427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_try") 2>&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16435 ac_cv_lib_dl_dlopen=yes
16437 echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ac_cv_lib_dl_dlopen=no
16443 rm -f core conftest.err conftest.$ac_objext \
16444 conftest$ac_exeext conftest.$ac_ext
16445 LIBS=$ac_check_lib_save_LIBS
16447 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16448 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16449 if test $ac_cv_lib_dl_dlopen = yes; then
16450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16453 lt_cv_dlopen="dyld"
16455 lt_cv_dlopen_self=yes
16462 { echo "$as_me:$LINENO: checking for shl_load" >&5
16463 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16464 if test "${ac_cv_func_shl_load+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 cat >conftest.$ac_ext <<_ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16475 #define shl_load innocuous_shl_load
16477 /* System header to define __stub macros and hopefully few prototypes,
16478 which can conflict with char shl_load (); below.
16479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16480 <limits.h> exists even on freestanding compilers. */
16483 # include <limits.h>
16485 # include <assert.h>
16490 /* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply. */
16497 /* The GNU C library defines this for functions which it implements
16498 to always fail with ENOSYS. Some functions are actually named
16499 something starting with __ and the normal name is an alias. */
16500 #if defined __stub_shl_load || defined __stub___shl_load
16507 return shl_load ();
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (ac_try="$ac_link"
16514 case "(($ac_try" in
16515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16516 *) ac_try_echo
=$ac_try;;
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_link") 2>conftest.er1
16521 grep -v '^ *+' conftest.er1
>conftest.err
16523 cat conftest.err
>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16527 { (case "(($ac_try" in
16528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest$ac_exeext'
16537 { (case "(($ac_try" in
16538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16539 *) ac_try_echo
=$ac_try;;
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_try") 2>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_func_shl_load
=yes
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.
$ac_ext >&5
16551 ac_cv_func_shl_load
=no
16554 rm -f core conftest.err conftest.
$ac_objext \
16555 conftest
$ac_exeext conftest.
$ac_ext
16557 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16558 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16559 if test $ac_cv_func_shl_load = yes; then
16560 lt_cv_dlopen
="shl_load"
16562 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16563 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16564 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_check_lib_save_LIBS
=$LIBS
16569 cat >conftest.
$ac_ext <<_ACEOF
16572 cat confdefs.h
>>conftest.
$ac_ext
16573 cat >>conftest.
$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16576 /* Override any GCC internal prototype to avoid an error.
16577 Use char because int might match the return type of a GCC
16578 builtin and then its argument prototype would still apply. */
16586 return shl_load ();
16591 rm -f conftest.
$ac_objext conftest
$ac_exeext
16592 if { (ac_try
="$ac_link"
16593 case "(($ac_try" in
16594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_link") 2>conftest.er1
16600 grep -v '^ *+' conftest.er1 >conftest.err
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16608 *) ac_try_echo
=$ac_try;;
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try
='test -s conftest$ac_exeext'
16616 { (case "(($ac_try" in
16617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_try") 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_lib_dld_shl_load=yes
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 ac_cv_lib_dld_shl_load=no
16633 rm -f core conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16635 LIBS=$ac_check_lib_save_LIBS
16637 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16638 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16639 if test $ac_cv_lib_dld_shl_load = yes; then
16640 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16642 { echo "$as_me:$LINENO: checking for dlopen" >&5
16643 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16644 if test "${ac_cv_func_dlopen+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 cat >conftest.$ac_ext <<_ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16653 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16655 #define dlopen innocuous_dlopen
16657 /* System header to define __stub macros and hopefully few prototypes,
16658 which can conflict with char dlopen (); below.
16659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16660 <limits.h> exists even on freestanding compilers. */
16663 # include <limits.h>
16665 # include <assert.h>
16670 /* Override any GCC internal prototype to avoid an error.
16671 Use char because int might match the return type of a GCC
16672 builtin and then its argument prototype would still apply. */
16677 /* The GNU C library defines this for functions which it implements
16678 to always fail with ENOSYS. Some functions are actually named
16679 something starting with __ and the normal name is an alias. */
16680 #if defined __stub_dlopen || defined __stub___dlopen
16692 rm -f conftest.$ac_objext conftest$ac_exeext
16693 if { (ac_try="$ac_link"
16694 case "(($ac_try" in
16695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16696 *) ac_try_echo
=$ac_try;;
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1
>conftest.err
16703 cat conftest.err
>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16719 *) ac_try_echo
=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_cv_func_dlopen
=yes
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.
$ac_ext >&5
16731 ac_cv_func_dlopen
=no
16734 rm -f core conftest.err conftest.
$ac_objext \
16735 conftest
$ac_exeext conftest.
$ac_ext
16737 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16738 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16739 if test $ac_cv_func_dlopen = yes; then
16740 lt_cv_dlopen
="dlopen"
16742 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16743 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16744 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16747 ac_check_lib_save_LIBS
=$LIBS
16749 cat >conftest.
$ac_ext <<_ACEOF
16752 cat confdefs.h
>>conftest.
$ac_ext
16753 cat >>conftest.
$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16756 /* Override any GCC internal prototype to avoid an error.
16757 Use char because int might match the return type of a GCC
16758 builtin and then its argument prototype would still apply. */
16771 rm -f conftest.
$ac_objext conftest
$ac_exeext
16772 if { (ac_try
="$ac_link"
16773 case "(($ac_try" in
16774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_link") 2>conftest.er1
16780 grep -v '^ *+' conftest.er1 >conftest.err
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16786 { (case "(($ac_try" in
16787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16788 *) ac_try_echo
=$ac_try;;
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_try") 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try
='test -s conftest$ac_exeext'
16796 { (case "(($ac_try" in
16797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_try") 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 ac_cv_lib_dl_dlopen=yes
16807 echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16810 ac_cv_lib_dl_dlopen=no
16813 rm -f core conftest.err conftest.$ac_objext \
16814 conftest$ac_exeext conftest.$ac_ext
16815 LIBS=$ac_check_lib_save_LIBS
16817 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16818 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16819 if test $ac_cv_lib_dl_dlopen = yes; then
16820 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16822 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16823 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16824 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 ac_check_lib_save_LIBS=$LIBS
16828 LIBS="-lsvld $LIBS"
16829 cat >conftest.$ac_ext <<_ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h. */
16836 /* Override any GCC internal prototype to avoid an error.
16837 Use char because int might match the return type of a GCC
16838 builtin and then its argument prototype would still apply. */
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (ac_try="$ac_link"
16853 case "(($ac_try" in
16854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16855 *) ac_try_echo
=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_link") 2>conftest.er1
16860 grep -v '^ *+' conftest.er1
>conftest.err
16862 cat conftest.err
>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16878 *) ac_try_echo
=$ac_try;;
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_lib_svld_dlopen
=yes
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.
$ac_ext >&5
16890 ac_cv_lib_svld_dlopen
=no
16893 rm -f core conftest.err conftest.
$ac_objext \
16894 conftest
$ac_exeext conftest.
$ac_ext
16895 LIBS
=$ac_check_lib_save_LIBS
16897 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16898 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16899 if test $ac_cv_lib_svld_dlopen = yes; then
16900 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
16902 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16903 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16904 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16907 ac_check_lib_save_LIBS
=$LIBS
16909 cat >conftest.
$ac_ext <<_ACEOF
16912 cat confdefs.h
>>conftest.
$ac_ext
16913 cat >>conftest.
$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16916 /* Override any GCC internal prototype to avoid an error.
16917 Use char because int might match the return type of a GCC
16918 builtin and then its argument prototype would still apply. */
16926 return dld_link ();
16931 rm -f conftest.
$ac_objext conftest
$ac_exeext
16932 if { (ac_try
="$ac_link"
16933 case "(($ac_try" in
16934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16948 *) ac_try_echo
=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try
='test -s conftest$ac_exeext'
16956 { (case "(($ac_try" in
16957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 ac_cv_lib_dld_dld_link=yes
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_cv_lib_dld_dld_link=no
16973 rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975 LIBS=$ac_check_lib_save_LIBS
16977 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16979 if test $ac_cv_lib_dld_dld_link = yes; then
16980 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17001 if test "x$lt_cv_dlopen" != xno; then
17007 case $lt_cv_dlopen in
17009 save_CPPFLAGS="$CPPFLAGS"
17010 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17012 save_LDFLAGS="$LDFLAGS"
17013 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17016 LIBS="$lt_cv_dlopen_libs $LIBS"
17018 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17019 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17020 if test "${lt_cv_dlopen_self+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17023 if test "$cross_compiling" = yes; then :
17024 lt_cv_dlopen_self=cross
17026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17027 lt_status=$lt_dlunknown
17028 cat > conftest.$ac_ext <<EOF
17029 #line 17029 "configure"
17030 #include "confdefs.h"
17039 # define LT_DLGLOBAL RTLD_GLOBAL
17042 # define LT_DLGLOBAL DL_GLOBAL
17044 # define LT_DLGLOBAL 0
17048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17049 find out it does not work in some platform. */
17050 #ifndef LT_DLLAZY_OR_NOW
17052 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17055 # define LT_DLLAZY_OR_NOW DL_LAZY
17058 # define LT_DLLAZY_OR_NOW RTLD_NOW
17061 # define LT_DLLAZY_OR_NOW DL_NOW
17063 # define LT_DLLAZY_OR_NOW 0
17071 extern "C" void exit (int);
17074 void fnord() { int i=42;}
17077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17078 int status = $lt_dlunknown;
17082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17083 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17084 /* dlclose (self); */
17092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093 (eval $ac_link) 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17097 (./conftest; exit; ) >&5 2>/dev/null
17099 case x$lt_status in
17100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17102 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17105 # compilation failed
17106 lt_cv_dlopen_self=no
17113 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17114 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17116 if test "x$lt_cv_dlopen_self" = xyes; then
17117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17118 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17119 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17120 if test "${lt_cv_dlopen_self_static+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 if test "$cross_compiling" = yes; then :
17124 lt_cv_dlopen_self_static=cross
17126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17127 lt_status=$lt_dlunknown
17128 cat > conftest.$ac_ext <<EOF
17129 #line 17129 "configure"
17130 #include "confdefs.h"
17139 # define LT_DLGLOBAL RTLD_GLOBAL
17142 # define LT_DLGLOBAL DL_GLOBAL
17144 # define LT_DLGLOBAL 0
17148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17149 find out it does not work in some platform. */
17150 #ifndef LT_DLLAZY_OR_NOW
17152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17155 # define LT_DLLAZY_OR_NOW DL_LAZY
17158 # define LT_DLLAZY_OR_NOW RTLD_NOW
17161 # define LT_DLLAZY_OR_NOW DL_NOW
17163 # define LT_DLLAZY_OR_NOW 0
17171 extern "C" void exit (int);
17174 void fnord() { int i=42;}
17177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17178 int status = $lt_dlunknown;
17182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17183 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17184 /* dlclose (self); */
17192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17197 (./conftest; exit; ) >&5 2>/dev/null
17199 case x$lt_status in
17200 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17201 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17202 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17205 # compilation failed
17206 lt_cv_dlopen_self_static=no
17213 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17214 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17217 CPPFLAGS="$save_CPPFLAGS"
17218 LDFLAGS="$save_LDFLAGS"
17223 case $lt_cv_dlopen_self in
17224 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17225 *) enable_dlopen_self=unknown ;;
17228 case $lt_cv_dlopen_self_static in
17229 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17230 *) enable_dlopen_self_static=unknown ;;
17235 # Report which library types will actually be built
17236 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17237 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17238 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17239 echo "${ECHO_T}$can_build_shared" >&6; }
17241 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17242 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17243 test "$can_build_shared" = "no" && enable_shared=no
17245 # On AIX, shared libraries and static libraries use the same namespace, and
17246 # are all built from PIC.
17249 test "$enable_shared" = yes && enable_static=no
17250 if test -n "$RANLIB"; then
17251 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17252 postinstall_cmds='$RANLIB $lib'
17257 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17258 test "$enable_shared" = yes && enable_static=no
17262 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17263 echo "${ECHO_T}$enable_shared" >&6; }
17265 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17266 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17267 # Make sure either enable_shared or enable_static is yes.
17268 test "$enable_shared" = yes || enable_static=yes
17269 { echo "$as_me:$LINENO: result: $enable_static" >&5
17270 echo "${ECHO_T}$enable_static" >&6; }
17272 # The else clause should only fire when bootstrapping the
17273 # libtool distribution, otherwise you forgot to ship ltmain.sh
17274 # with your package, and you will get complaints that there are
17275 # no rules to generate ltmain.sh.
17276 if test -f "$ltmain"; then
17277 # See if we are running on zsh, and set the options which allow our commands through
17278 # without removal of \ escapes.
17279 if test -n "${ZSH_VERSION+set}" ; then
17280 setopt NO_GLOB_SUBST
17282 # Now quote all the things that may contain metacharacters while being
17283 # careful not to overquote the AC_SUBSTed values. We take copies of the
17284 # variables and quote the copies for generation of the libtool script.
17285 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17287 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17288 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17289 deplibs_check_method reload_flag reload_cmds need_locks \
17290 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17291 lt_cv_sys_global_symbol_to_c_name_address \
17292 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17293 old_postinstall_cmds old_postuninstall_cmds \
17297 lt_prog_compiler_wl \
17298 lt_prog_compiler_pic \
17299 lt_prog_compiler_static \
17300 lt_prog_compiler_no_builtin_flag \
17301 export_dynamic_flag_spec \
17302 thread_safe_flag_spec \
17303 whole_archive_flag_spec \
17304 enable_shared_with_static_runtimes \
17306 old_archive_from_new_cmds \
17311 compiler_lib_search_path \
17313 archive_expsym_cmds \
17315 postuninstall_cmds \
17316 old_archive_from_expsyms_cmds \
17317 allow_undefined_flag \
17318 no_undefined_flag \
17319 export_symbols_cmds \
17320 hardcode_libdir_flag_spec \
17321 hardcode_libdir_flag_spec_ld \
17322 hardcode_libdir_separator \
17323 hardcode_automatic \
17325 module_expsym_cmds \
17326 lt_cv_prog_compiler_c_o \
17328 include_expsyms; do
17331 old_archive_cmds | \
17332 old_archive_from_new_cmds | \
17334 archive_expsym_cmds | \
17336 module_expsym_cmds | \
17337 old_archive_from_expsyms_cmds | \
17338 export_symbols_cmds | \
17339 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17340 postinstall_cmds | postuninstall_cmds | \
17341 old_postinstall_cmds | old_postuninstall_cmds | \
17342 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17343 # Double-quote double-evaled strings.
17344 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
17347 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
17353 *'\$0 --fallback-echo"')
17354 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17358 cfgfile="${ofile}T"
17359 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17361 { echo "$as_me:$LINENO: creating $ofile" >&5
17362 echo "$as_me: creating $ofile" >&6;}
17364 cat <<__EOF__ >> "$cfgfile"
17367 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
17368 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17369 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17371 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17372 # Free Software Foundation, Inc.
17374 # This file is part of GNU Libtool:
17375 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17377 # This program is free software; you can redistribute it and/or modify
17378 # it under the terms of the GNU General Public License as published by
17379 # the Free Software Foundation; either version 2 of the License, or
17380 # (at your option) any later version.
17382 # This program is distributed in the hope that it will be useful, but
17383 # WITHOUT ANY WARRANTY; without even the implied warranty of
17384 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17385 # General Public License for more details.
17387 # You should have received a copy of the GNU General Public License
17388 # along with this program; if not, write to the Free Software
17389 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17391 # As a special exception to the GNU General Public License, if you
17392 # distribute this file as part of a program that contains a
17393 # configuration script generated by Autoconf, you may include it under
17394 # the same distribution terms that you use for the rest of that program.
17396 # A sed program that does not truncate output.
17399 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17400 Xsed="$SED -e 1s/^X//"
17402 # The HP-UX ksh and POSIX shell print the target directory to stdout
17403 # if CDPATH is set.
17404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17406 # The names of the tagged configurations supported by this script.
17409 # ### BEGIN LIBTOOL CONFIG
17411 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
17413 # Shell to use when invoking shell scripts.
17416 # Whether or not to build shared libraries.
17417 build_libtool_libs=$enable_shared
17419 # Whether or not to build static libraries.
17420 build_old_libs=$enable_static
17422 # Whether or not to add -lc for building shared libraries.
17423 build_libtool_need_lc=$archive_cmds_need_lc
17425 # Whether or not to disallow shared libs when runtime libs are static
17426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17428 # Whether or not to optimize for fast installation.
17429 fast_install=$enable_fast_install
17432 host_alias=$host_alias
17436 # The build system.
17437 build_alias=$build_alias
17441 # An echo program that does not interpret backslashes.
17446 AR_FLAGS=$lt_AR_FLAGS
17451 # LTCC compiler flags.
17452 LTCFLAGS=$lt_LTCFLAGS
17454 # A language-specific compiler.
17457 # Is the compiler the GNU C compiler?
17463 # The linker used to build libraries.
17466 # Whether we need hard or soft links.
17469 # A BSD-compatible nm program.
17472 # A symbol stripping program
17475 # Used to examine libraries when file_magic_cmd begins "file"
17476 MAGIC_CMD=$MAGIC_CMD
17478 # Used on cygwin: DLL creation program.
17481 # Used on cygwin: object dumper.
17484 # Used on cygwin: assembler.
17487 # The name of the directory that contains temporary libtool files.
17490 # How to create reloadable object files.
17491 reload_flag=$lt_reload_flag
17492 reload_cmds=$lt_reload_cmds
17494 # How to pass a linker flag through the compiler.
17495 wl=$lt_lt_prog_compiler_wl
17497 # Object file suffix (normally "o").
17498 objext="$ac_objext"
17500 # Old archive suffix (normally "a").
17503 # Shared library suffix (normally ".so").
17504 shrext_cmds='$shrext_cmds'
17506 # Executable file suffix (normally "").
17509 # Additional compiler flags for building library objects.
17510 pic_flag=$lt_lt_prog_compiler_pic
17513 # What is the maximum length of a command?
17514 max_cmd_len=$lt_cv_sys_max_cmd_len
17516 # Does compiler simultaneously support -c and -o options?
17517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17519 # Must we lock files when doing compilation?
17520 need_locks=$lt_need_locks
17522 # Do we need the lib prefix for modules?
17523 need_lib_prefix=$need_lib_prefix
17525 # Do we need a version for libraries?
17526 need_version=$need_version
17528 # Whether dlopen is supported.
17529 dlopen_support=$enable_dlopen
17531 # Whether dlopen of programs is supported.
17532 dlopen_self=$enable_dlopen_self
17534 # Whether dlopen of statically linked programs is supported.
17535 dlopen_self_static=$enable_dlopen_self_static
17537 # Compiler flag to prevent dynamic linking.
17538 link_static_flag=$lt_lt_prog_compiler_static
17540 # Compiler flag to turn off builtin functions.
17541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17543 # Compiler flag to allow reflexive dlopens.
17544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17546 # Compiler flag to generate shared objects directly from archives.
17547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17549 # Compiler flag to generate thread-safe objects.
17550 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17552 # Library versioning type.
17553 version_type=$version_type
17555 # Format of library name prefix.
17556 libname_spec=$lt_libname_spec
17558 # List of archive names. First name is the real one, the rest are links.
17559 # The last name is the one that the linker finds with -lNAME.
17560 library_names_spec=$lt_library_names_spec
17562 # The coded name of the library, if different from the real name.
17563 soname_spec=$lt_soname_spec
17565 # Commands used to build and install an old-style archive.
17567 old_archive_cmds=$lt_old_archive_cmds
17568 old_postinstall_cmds=$lt_old_postinstall_cmds
17569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17571 # Create an old-style archive from a shared archive.
17572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17574 # Create a temporary old-style archive to link instead of a shared archive.
17575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17577 # Commands used to build and install a shared archive.
17578 archive_cmds=$lt_archive_cmds
17579 archive_expsym_cmds=$lt_archive_expsym_cmds
17580 postinstall_cmds=$lt_postinstall_cmds
17581 postuninstall_cmds=$lt_postuninstall_cmds
17583 # Commands used to build a loadable module (assumed same as above if empty)
17584 module_cmds=$lt_module_cmds
17585 module_expsym_cmds=$lt_module_expsym_cmds
17587 # Commands to strip libraries.
17588 old_striplib=$lt_old_striplib
17589 striplib=$lt_striplib
17591 # Dependencies to place before the objects being linked to create a
17593 predep_objects=$lt_predep_objects
17595 # Dependencies to place after the objects being linked to create a
17597 postdep_objects=$lt_postdep_objects
17599 # Dependencies to place before the objects being linked to create a
17601 predeps=$lt_predeps
17603 # Dependencies to place after the objects being linked to create a
17605 postdeps=$lt_postdeps
17607 # The library search path used internally by the compiler when linking
17608 # a shared library.
17609 compiler_lib_search_path=$lt_compiler_lib_search_path
17611 # Method to check whether dependent libraries are shared objects.
17612 deplibs_check_method=$lt_deplibs_check_method
17614 # Command to use when deplibs_check_method == file_magic.
17615 file_magic_cmd=$lt_file_magic_cmd
17617 # Flag that allows shared libraries with undefined symbols to be built.
17618 allow_undefined_flag=$lt_allow_undefined_flag
17620 # Flag that forces no undefined symbols.
17621 no_undefined_flag=$lt_no_undefined_flag
17623 # Commands used to finish a libtool library installation in a directory.
17624 finish_cmds=$lt_finish_cmds
17626 # Same as above, but a single script fragment to be evaled but not shown.
17627 finish_eval=$lt_finish_eval
17629 # Take the output of nm and produce a listing of raw symbols and C names.
17630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17632 # Transform the output of nm in a proper C declaration
17633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17635 # Transform the output of nm in a C name address pair
17636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17638 # This is the shared library runtime path variable.
17639 runpath_var=$runpath_var
17641 # This is the shared library path variable.
17642 shlibpath_var=$shlibpath_var
17644 # Is shlibpath searched before the hard-coded library search path?
17645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17647 # How to hardcode a shared library path into an executable.
17648 hardcode_action=$hardcode_action
17650 # Whether we should hardcode library paths into libraries.
17651 hardcode_into_libs=$hardcode_into_libs
17653 # Flag to hardcode \$libdir into a binary during linking.
17654 # This must work even if \$libdir does not exist.
17655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17657 # If ld is used when linking, flag to hardcode \$libdir into
17658 # a binary during linking. This must work even if \$libdir does
17660 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17662 # Whether we need a single -rpath flag with a separated argument.
17663 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17665 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17666 # resulting binary.
17667 hardcode_direct=$hardcode_direct
17669 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17670 # resulting binary.
17671 hardcode_minus_L=$hardcode_minus_L
17673 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17674 # the resulting binary.
17675 hardcode_shlibpath_var=$hardcode_shlibpath_var
17677 # Set to yes if building a shared library automatically hardcodes DIR into the library
17678 # and all subsequent libraries and executables linked against it.
17679 hardcode_automatic=$hardcode_automatic
17681 # Variables whose values should be saved in libtool wrapper scripts and
17682 # restored at relink time.
17683 variables_saved_for_relink="$variables_saved_for_relink"
17685 # Whether libtool must link a program against all its dependency libraries.
17686 link_all_deplibs=$link_all_deplibs
17688 # Compile-time system search path for libraries
17689 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17691 # Run-time system search path for libraries
17692 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17694 # Fix the shell variable \$srcfile for the compiler.
17695 fix_srcfile_path="$fix_srcfile_path"
17697 # Set to yes if exported symbols are required.
17698 always_export_symbols=$always_export_symbols
17700 # The commands to list exported symbols.
17701 export_symbols_cmds=$lt_export_symbols_cmds
17703 # The commands to extract the exported symbol list from a shared archive.
17704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17706 # Symbols that should not be listed in the preloaded symbols.
17707 exclude_expsyms=$lt_exclude_expsyms
17709 # Symbols that must always be exported.
17710 include_expsyms=$lt_include_expsyms
17712 # ### END LIBTOOL CONFIG
17719 cat <<\EOF >> "$cfgfile"
17721 # AIX sometimes has problems with the GCC collect2 program. For some
17722 # reason, if we set the COLLECT_NAMES environment variable, the problems
17723 # vanish in a puff of smoke.
17724 if test "X${COLLECT_NAMES+set}" != Xset; then
17726 export COLLECT_NAMES
17732 # We use sed instead of cat because bash on DJGPP gets confused if
17733 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17734 # text mode, it properly converts lines to CR/LF. This bash problem
17735 # is reportedly fixed, but why not run on old versions too?
17736 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17738 mv -f "$cfgfile" "$ofile" || \
17739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17743 # If there is no Makefile yet, we rely on a make rule to execute
17744 # `config.status
--recheck' to rerun these tests and create the
17745 # libtool script then.
17746 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
17747 if test -f "$ltmain_in"; then
17748 test -f Makefile && make "$ltmain"
17754 ac_cpp='$CPP $CPPFLAGS'
17755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
17756 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
17757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17762 # Check whether --with-tags was given.
17763 if test "${with_tags+set}" = set; then
17764 withval=$with_tags; tagnames="$withval"
17768 if test -f "$ltmain" && test -n "$tagnames"; then
17769 if test ! -f "${ofile}"; then
17770 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
17771 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
17774 if test -z "$LTCC"; then
17775 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
17776 if test -z "$LTCC"; then
17777 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17778 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
17780 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
17781 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
17784 if test -z "$LTCFLAGS"; then
17785 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
17788 # Extract list of available tagged configurations in $ofile.
17789 # Note that this assumes the entire list is on one line.
17790 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17793 for tagname in $tagnames; do
17795 # Check whether tagname contains only valid characters
17796 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17798 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17799 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17800 { (exit 1); exit 1; }; }
17804 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17806 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17807 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17808 { (exit 1); exit 1; }; }
17811 # Update the list of available tags.
17812 if test -n "$tagname"; then
17813 echo appending configuration tag \"$tagname\" to $ofile
17817 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17818 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
17819 (test "X$CXX" != "Xg++"))) ; then
17821 ac_cpp='$CXXCPP $CPPFLAGS'
17822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17829 archive_cmds_need_lc_CXX=no
17830 allow_undefined_flag_CXX=
17831 always_export_symbols_CXX=no
17832 archive_expsym_cmds_CXX=
17833 export_dynamic_flag_spec_CXX=
17834 hardcode_direct_CXX=no
17835 hardcode_libdir_flag_spec_CXX=
17836 hardcode_libdir_flag_spec_ld_CXX=
17837 hardcode_libdir_separator_CXX=
17838 hardcode_minus_L_CXX=no
17839 hardcode_shlibpath_var_CXX=unsupported
17840 hardcode_automatic_CXX=no
17842 module_expsym_cmds_CXX=
17843 link_all_deplibs_CXX=unknown
17844 old_archive_cmds_CXX=$old_archive_cmds
17845 no_undefined_flag_CXX=
17846 whole_archive_flag_spec_CXX=
17847 enable_shared_with_static_runtimes_CXX=no
17849 # Dependencies to place before and after the object being linked:
17850 predep_objects_CXX=
17851 postdep_objects_CXX=
17854 compiler_lib_search_path_CXX=
17856 # Source file extension for C++ test sources.
17859 # Object file extension for compiled C++ test sources.
17863 # Code to be used in simple compile tests
17864 lt_simple_compile_test_code="int some_variable = 0;\n"
17866 # Code to be used in simple link tests
17867 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17871 # If no C compiler was specified, use CC.
17874 # If no C compiler flags were specified, use CFLAGS.
17875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17877 # Allow CC to be a program name with arguments.
17881 # save warnings/boilerplate of simple test code
17882 ac_outfile=conftest.$ac_objext
17883 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17885 _lt_compiler_boilerplate=`cat conftest.err
`
17888 ac_outfile=conftest.$ac_objext
17889 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17890 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17891 _lt_linker_boilerplate=`cat conftest.err
`
17895 # Allow CC to be a program name with arguments.
17900 lt_save_with_gnu_ld=$with_gnu_ld
17901 lt_save_path_LD=$lt_cv_path_LD
17902 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17903 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17905 $as_unset lt_cv_prog_gnu_ld
17907 if test -n "${lt_cv_path_LDCXX+set}"; then
17908 lt_cv_path_LD=$lt_cv_path_LDCXX
17910 $as_unset lt_cv_path_LD
17912 test -z "${LDCXX+set}" || LD=$LDCXX
17916 for cc_temp in $compiler""; do
17918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17924 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17927 # We don't want -fno-exception wen compiling C++ code, so set the
17928 # no_builtin_flag separately
17929 if test "$GXX" = yes; then
17930 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17932 lt_prog_compiler_no_builtin_flag_CXX=
17935 if test "$GXX" = yes; then
17936 # Set up default GNU C++ configuration
17939 # Check whether --with-gnu-ld was given.
17940 if test "${with_gnu_ld+set}" = set; then
17941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17947 if test "$GCC" = yes; then
17948 # Check if gcc -print-prog-name=ld gives a path.
17949 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17950 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17953 # gcc leaves a trailing carriage return which upsets mingw
17954 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
17956 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
17959 # Accept absolute paths.
17961 re_direlt='/[^/][^/]*/\.\./'
17962 # Canonicalize the pathname of ld
17963 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
17964 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17965 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
17967 test -z "$LD" && LD="$ac_prog"
17970 # If it fails, then pretend we aren't using GCC.
17974 # If it is relative, then search for the first ld in PATH.
17975 with_gnu_ld=unknown
17978 elif test "$with_gnu_ld" = yes; then
17979 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17980 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17982 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17983 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17985 if test "${lt_cv_path_LD+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 if test -z "$LD"; then
17989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17990 for ac_dir in $PATH; do
17992 test -z "$ac_dir" && ac_dir=.
17993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17994 lt_cv_path_LD="$ac_dir/$ac_prog"
17995 # Check to see if the program is GNU ld. I'd rather use --version,
17996 # but apparently some variants of GNU ld only accept -v.
17997 # Break only if it was the GNU/non-GNU ld that we prefer.
17998 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
17999 *GNU* | *'with BFD'*)
18000 test "$with_gnu_ld" != no && break
18003 test "$with_gnu_ld" != yes && break
18010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18014 LD="$lt_cv_path_LD"
18015 if test -n "$LD"; then
18016 { echo "$as_me:$LINENO: result: $LD" >&5
18017 echo "${ECHO_T}$LD" >&6; }
18019 { echo "$as_me:$LINENO: result: no" >&5
18020 echo "${ECHO_T}no" >&6; }
18022 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18023 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18024 { (exit 1); exit 1; }; }
18025 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18026 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18027 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18031 case `$LD -v 2>&1 </dev
/null
` in
18032 *GNU* | *'with BFD'*)
18033 lt_cv_prog_gnu_ld=yes
18036 lt_cv_prog_gnu_ld=no
18040 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18041 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18042 with_gnu_ld=$lt_cv_prog_gnu_ld
18046 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18047 # archiving commands below assume that GNU ld is being used.
18048 if test "$with_gnu_ld" = yes; then
18049 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18050 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'
18052 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18055 # If archive_cmds runs LD, not CC, wlarc should be empty
18056 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18057 # investigate it a little bit more. (MM)
18060 # ancient GNU ld didn't support --whole-archive et. al.
18061 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18062 grep 'no-whole-archive' > /dev/null; then
18063 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18065 whole_archive_flag_spec_CXX=
18071 # A generic and very simple default shared library creation
18072 # command for GNU C++ for the case where it uses the native
18073 # linker, instead of GNU ld. If possible, this setting should
18074 # overridden to take advantage of the native linker features on
18075 # the platform it is being used on.
18076 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18079 # Commands to make compiler produce verbose output that lists
18080 # what "hidden" libraries, object files and flags are used when
18081 # linking a shared library.
18082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18090 # PORTME: fill in a description of your system's C++ link characteristics
18091 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18092 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18096 # FIXME: insert proper C++ library support
18100 if test "$host_cpu" = ia64; then
18101 # On IA64, the linker does run time linking by default, so we don't
18102 # have to do anything special.
18103 aix_use_runtimelinking=no
18104 exp_sym_flag='-Bexport'
18107 aix_use_runtimelinking=no
18109 # Test if we are trying to use run time linking or normal
18110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18111 # need to do runtime linking.
18112 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18113 for ld_flag in $LDFLAGS; do
18116 aix_use_runtimelinking=yes
18124 exp_sym_flag='-bexport'
18125 no_entry_flag='-bnoentry'
18128 # When large executables or shared objects are built, AIX ld can
18129 # have problems creating the table of contents. If linking a library
18130 # or program results in "error TOC overflow" add -mminimal-toc to
18131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18134 archive_cmds_CXX=''
18135 hardcode_direct_CXX=yes
18136 hardcode_libdir_separator_CXX=':'
18137 link_all_deplibs_CXX=yes
18139 if test "$GXX" = yes; then
18140 case $host_os in aix4.[012]|aix4.[012].*)
18141 # We only want to do this on AIX 4.2 and lower, the check
18142 # below for broken collect2 doesn't work under 4.3+
18143 collect2name=`${CC} -print-prog-name=collect2
`
18144 if test -f "$collect2name" && \
18145 strings "$collect2name" | grep resolve_lib_name >/dev/null
18147 # We have reworked collect2
18148 hardcode_direct_CXX=yes
18150 # We have old collect2
18151 hardcode_direct_CXX=unsupported
18152 # It fails to find uninstalled libraries when the uninstalled
18153 # path is not listed in the libpath. Setting hardcode_minus_L
18154 # to unsupported forces relinking
18155 hardcode_minus_L_CXX=yes
18156 hardcode_libdir_flag_spec_CXX='-L$libdir'
18157 hardcode_libdir_separator_CXX=
18161 shared_flag='-shared'
18162 if test "$aix_use_runtimelinking" = yes; then
18163 shared_flag="$shared_flag "'${wl}-G'
18167 if test "$host_cpu" = ia64; then
18168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18169 # chokes on -Wl,-G. The following line is correct:
18172 if test "$aix_use_runtimelinking" = yes; then
18173 shared_flag='${wl}-G'
18175 shared_flag='${wl}-bM:SRE'
18180 # It seems that -bexpall does not export symbols beginning with
18181 # underscore (_), so it is better to generate a list of symbols to export.
18182 always_export_symbols_CXX=yes
18183 if test "$aix_use_runtimelinking" = yes; then
18184 # Warning - without using the other runtime loading flags (-brtl),
18185 # -berok will link without error, but may produce a broken library.
18186 allow_undefined_flag_CXX='-berok'
18187 # Determine the default libpath from the value encoded in an empty executable.
18188 cat >conftest.$ac_ext <<_ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18203 rm -f conftest.$ac_objext conftest$ac_exeext
18204 if { (ac_try="$ac_link"
18205 case "(($ac_try" in
18206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18207 *) ac_try_echo
=$ac_try;;
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_link") 2>conftest.er1
18212 grep -v '^ *+' conftest.er1
>conftest.err
18214 cat conftest.err
>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18218 { (case "(($ac_try" in
18219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_try") 2>&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try='test -s conftest$ac_exeext'
18228 { (case "(($ac_try" in
18229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18230 *) ac_try_echo
=$ac_try;;
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_try") 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18238 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18240 # Check for a 64-bit object if we didn't find anything.
18241 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; }
18244 echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.
$ac_ext >&5
18250 rm -f core conftest.err conftest.
$ac_objext \
18251 conftest
$ac_exeext conftest.
$ac_ext
18252 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18254 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18256 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"
18258 if test "$host_cpu" = ia64
; then
18259 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18260 allow_undefined_flag_CXX
="-z nodefs"
18261 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"
18263 # Determine the default libpath from the value encoded in an empty executable.
18264 cat >conftest.
$ac_ext <<_ACEOF
18267 cat confdefs.h
>>conftest.
$ac_ext
18268 cat >>conftest.
$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18279 rm -f conftest.
$ac_objext conftest
$ac_exeext
18280 if { (ac_try
="$ac_link"
18281 case "(($ac_try" in
18282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_link") 2>conftest.er1
18288 grep -v '^ *+' conftest.er1 >conftest.err
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18294 { (case "(($ac_try" in
18295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18296 *) ac_try_echo
=$ac_try;;
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_try") 2>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } &&
18303 { ac_try
='test -s conftest$ac_exeext'
18304 { (case "(($ac_try" in
18305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_try") 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18314 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18316 # Check for a 64-bit object if we didn't find anything.
18317 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; }
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18326 rm -f core conftest.err conftest.$ac_objext \
18327 conftest$ac_exeext conftest.$ac_ext
18328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18330 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18331 # Warning - without using the other run time loading flags,
18332 # -berok will link without error, but may produce a broken library.
18333 no_undefined_flag_CXX=' ${wl}-bernotok'
18334 allow_undefined_flag_CXX=' ${wl}-berok'
18335 # Exported symbols can be pulled into shared objects from archives
18336 whole_archive_flag_spec_CXX='$convenience'
18337 archive_cmds_need_lc_CXX=yes
18338 # This is similar to how AIX traditionally builds its shared libraries.
18339 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'
18345 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18346 allow_undefined_flag_CXX=unsupported
18347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18348 # support --undefined. This deserves some investigation. FIXME
18349 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18356 case $cc_basename in
18358 # FIXME: insert proper C++ library support
18364 cygwin* | mingw* | pw32*)
18365 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18366 # as there is no search path for DLLs.
18367 hardcode_libdir_flag_spec_CXX='-L$libdir'
18368 allow_undefined_flag_CXX=unsupported
18369 always_export_symbols_CXX=no
18370 enable_shared_with_static_runtimes_CXX=yes
18372 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18373 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'
18374 # If the export-symbols file already is a .def file (1st line
18375 # is EXPORTS), use it as is; otherwise, prepend...
18376 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
18377 cp $export_symbols $output_objdir/$soname.def;
18379 echo EXPORTS > $output_objdir/$soname.def;
18380 cat $export_symbols >> $output_objdir/$soname.def;
18382 $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'
18387 darwin* | rhapsody*)
18389 rhapsody* | darwin1.[012])
18390 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18393 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18394 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18396 case ${MACOSX_DEPLOYMENT_TARGET} in
18398 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18401 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18407 archive_cmds_need_lc_CXX=no
18408 hardcode_direct_CXX=no
18409 hardcode_automatic_CXX=yes
18410 hardcode_shlibpath_var_CXX=unsupported
18411 whole_archive_flag_spec_CXX=''
18412 link_all_deplibs_CXX=yes
18414 if test "$GXX" = yes ; then
18415 lt_int_apple_cc_single_mod=no
18416 output_verbose_link_cmd='echo'
18417 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18418 lt_int_apple_cc_single_mod=yes
18420 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18421 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18423 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'
18425 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18427 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18428 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}'
18430 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}'
18432 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}'
18434 case $cc_basename in
18436 output_verbose_link_cmd='echo'
18437 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'
18438 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18439 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18440 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}'
18441 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}'
18451 case $cc_basename in
18453 # FIXME: insert proper C++ library support
18457 # Green Hills C++ Compiler
18458 # FIXME: insert proper C++ library support
18462 # FIXME: insert proper C++ library support
18468 # C++ shared libraries reported to be fairly broken before switch to ELF
18472 archive_cmds_need_lc_CXX=no
18474 freebsd* | kfreebsd*-gnu | dragonfly*)
18475 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18482 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18483 hardcode_libdir_separator_CXX=:
18484 export_dynamic_flag_spec_CXX='${wl}-E'
18485 hardcode_direct_CXX=yes
18486 hardcode_minus_L_CXX=yes # Not in the search PATH,
18487 # but as the default
18488 # location of the library.
18490 case $cc_basename in
18492 # FIXME: insert proper C++ library support
18496 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'
18497 # Commands to make compiler produce verbose output that lists
18498 # what "hidden" libraries, object files and flags are used when
18499 # linking a shared library.
18501 # There doesn't appear to be a way to prevent this compiler from
18502 # explicitly linking system object files so we need to strip them
18503 # from the output so that they don't get included in the library
18505 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'
18508 if test "$GXX" = yes; then
18509 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'
18511 # FIXME: insert proper C++ library support
18518 if test $with_gnu_ld = no; then
18519 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18520 hardcode_libdir_separator_CXX=:
18524 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18527 export_dynamic_flag_spec_CXX='${wl}-E'
18533 hardcode_direct_CXX=no
18534 hardcode_shlibpath_var_CXX=no
18537 hardcode_direct_CXX=yes
18538 hardcode_minus_L_CXX=yes # Not in the search PATH,
18539 # but as the default
18540 # location of the library.
18544 case $cc_basename in
18546 # FIXME: insert proper C++ library support
18552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18555 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18558 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18561 # Commands to make compiler produce verbose output that lists
18562 # what "hidden" libraries, object files and flags are used when
18563 # linking a shared library.
18565 # There doesn't appear to be a way to prevent this compiler from
18566 # explicitly linking system object files so we need to strip them
18567 # from the output so that they don't get included in the library
18569 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'
18572 if test "$GXX" = yes; then
18573 if test $with_gnu_ld = no; then
18576 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18579 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18582 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'
18587 # FIXME: insert proper C++ library support
18594 hardcode_direct_CXX=no
18595 hardcode_shlibpath_var_CXX=no
18596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18597 export_dynamic_flag_spec_CXX='${wl}-E'
18598 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18599 # Instead, shared libraries are loaded at an image base (0x10000000 by
18600 # default) and relocated if they conflict, which is a slow very memory
18601 # consuming and fragmenting process. To avoid this, we pick a random,
18602 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18603 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18604 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'
18605 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'
18608 case $cc_basename in
18611 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'
18613 # Archives containing C++ object files must be created using
18614 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18615 # necessary to make sure instantiated templates are included
18617 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18620 if test "$GXX" = yes; then
18621 if test "$with_gnu_ld" = no; then
18622 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'
18624 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'
18627 link_all_deplibs_CXX=yes
18630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18631 hardcode_libdir_separator_CXX=:
18634 case $cc_basename in
18636 # Kuck and Associates, Inc. (KAI) C++ Compiler
18638 # KCC will only create a shared library if the output file
18639 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18640 # to its proper name (with version) after linking.
18641 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'
18642 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'
18643 # Commands to make compiler produce verbose output that lists
18644 # what "hidden" libraries, object files and flags are used when
18645 # linking a shared library.
18647 # There doesn't appear to be a way to prevent this compiler from
18648 # explicitly linking system object files so we need to strip them
18649 # from the output so that they don't get included in the library
18651 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'
18653 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
18654 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18656 # Archives containing C++ object files must be created using
18657 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18658 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18663 # version 8.0 and above of icpc choke on multiply defined symbols
18664 # if we add $predep_objects and $postdep_objects, however 7.1 and
18665 # earlier do not add the objects themselves.
18666 case `$CC -V 2>&1` in
18668 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18669 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'
18671 *) # Version 8.0 or newer
18674 ia64
*) tmp_idyn
=' -i_dynamic';;
18676 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18677 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'
18680 archive_cmds_need_lc_CXX
=no
18681 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18682 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18683 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18686 # Portland Group C++ compiler
18687 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18688 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'
18690 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18691 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18692 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'
18696 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18697 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'
18699 runpath_var
=LD_RUN_PATH
18700 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18701 hardcode_libdir_separator_CXX
=:
18703 # Commands to make compiler produce verbose output that lists
18704 # what "hidden" libraries, object files and flags are used when
18705 # linking a shared library.
18707 # There doesn't appear to be a way to prevent this compiler from
18708 # explicitly linking system object files so we need to strip them
18709 # from the output so that they don't get included in the library
18711 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'
18716 # FIXME: insert proper C++ library support
18720 # FIXME: insert proper C++ library support
18724 case $cc_basename in
18726 # FIXME: insert proper C++ library support
18730 # FIXME: insert proper C++ library support
18736 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18737 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18739 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18740 hardcode_direct_CXX
=yes
18741 hardcode_shlibpath_var_CXX
=no
18743 # Workaround some broken pre-1.5 toolchains
18744 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18747 # C++ shared libraries are fairly broken
18751 hardcode_direct_CXX
=yes
18752 hardcode_shlibpath_var_CXX
=no
18753 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18754 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18756 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18757 export_dynamic_flag_spec_CXX
='${wl}-E'
18758 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18760 output_verbose_link_cmd
='echo'
18763 case $cc_basename in
18765 # Kuck and Associates, Inc. (KAI) C++ Compiler
18767 # KCC will only create a shared library if the output file
18768 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18769 # to its proper name (with version) after linking.
18770 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'
18772 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18773 hardcode_libdir_separator_CXX
=:
18775 # Archives containing C++ object files must be created using
18776 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18777 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18781 # Rational C++ 2.4.1
18782 # FIXME: insert proper C++ library support
18786 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18787 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'
18789 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18790 hardcode_libdir_separator_CXX
=:
18792 # Commands to make compiler produce verbose output that lists
18793 # what "hidden" libraries, object files and flags are used when
18794 # linking a shared library.
18796 # There doesn't appear to be a way to prevent this compiler from
18797 # explicitly linking system object files so we need to strip them
18798 # from the output so that they don't get included in the library
18800 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'
18803 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18804 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18805 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'
18807 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18808 hardcode_libdir_separator_CXX
=:
18810 # Commands to make compiler produce verbose output that lists
18811 # what "hidden" libraries, object files and flags are used when
18812 # linking a shared library.
18813 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18816 # FIXME: insert proper C++ library support
18823 case $cc_basename in
18825 # Kuck and Associates, Inc. (KAI) C++ Compiler
18827 # KCC will only create a shared library if the output file
18828 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18829 # to its proper name (with version) after linking.
18830 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'
18832 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18833 hardcode_libdir_separator_CXX
=:
18835 # Archives containing C++ object files must be created using
18836 # the KAI C++ compiler.
18837 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
18840 # Rational C++ 2.4.1
18841 # FIXME: insert proper C++ library support
18845 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18846 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'
18847 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18848 echo "-hidden">> $lib.exp~
18849 $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~
18852 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18853 hardcode_libdir_separator_CXX
=:
18855 # Commands to make compiler produce verbose output that lists
18856 # what "hidden" libraries, object files and flags are used when
18857 # linking a shared library.
18859 # There doesn't appear to be a way to prevent this compiler from
18860 # explicitly linking system object files so we need to strip them
18861 # from the output so that they don't get included in the library
18863 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'
18866 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18867 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18868 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'
18870 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18871 hardcode_libdir_separator_CXX
=:
18873 # Commands to make compiler produce verbose output that lists
18874 # what "hidden" libraries, object files and flags are used when
18875 # linking a shared library.
18876 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18879 # FIXME: insert proper C++ library support
18886 # FIXME: insert proper C++ library support
18890 case $cc_basename in
18893 # FIXME: insert proper C++ library support
18898 # FIXME: insert proper C++ library support
18902 # FIXME: insert proper C++ library support
18908 case $cc_basename in
18910 # Sun C++ 4.2, 5.x and Centerline C++
18911 archive_cmds_need_lc_CXX
=yes
18912 no_undefined_flag_CXX
=' -zdefs'
18913 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18914 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18915 $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'
18917 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18918 hardcode_shlibpath_var_CXX
=no
18920 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18922 # The C++ compiler is used as linker so we must use $wl
18923 # flag to pass the commands to the underlying system
18924 # linker. We must also pass each convience library through
18925 # to the system linker between allextract/defaultextract.
18926 # The C++ compiler will combine linker options so we
18927 # cannot just pass the convience library names through
18929 # Supported since Solaris 2.6 (maybe 2.5.1?)
18930 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'
18933 link_all_deplibs_CXX
=yes
18935 output_verbose_link_cmd
='echo'
18937 # Archives containing C++ object files must be created using
18938 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18939 # necessary to make sure instantiated templates are included
18941 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18944 # Green Hills C++ Compiler
18945 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18947 # The C++ compiler must be used to create the archive.
18948 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18951 # GNU C++ compiler with Solaris linker
18952 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18953 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18954 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
18955 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18956 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18957 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18959 # Commands to make compiler produce verbose output that lists
18960 # what "hidden" libraries, object files and flags are used when
18961 # linking a shared library.
18962 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18964 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18966 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18967 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18968 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18970 # Commands to make compiler produce verbose output that lists
18971 # what "hidden" libraries, object files and flags are used when
18972 # linking a shared library.
18973 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18976 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18981 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18982 no_undefined_flag_CXX
='${wl}-z,text'
18983 archive_cmds_need_lc_CXX
=no
18984 hardcode_shlibpath_var_CXX
=no
18985 runpath_var
='LD_RUN_PATH'
18987 case $cc_basename in
18989 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18990 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18993 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18994 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18998 sysv5
* | sco3.2v5
* | sco5v6
*)
18999 # Note: We can NOT use -z defs as we might desire, because we do not
19000 # link with -lc, and that would cause any symbols used from libc to
19001 # always be unresolved, which means just about no library would
19002 # ever link correctly. If we're not using GNU ld we use -z text
19003 # though, which does catch some bad symbols but isn't as heavy-handed
19005 # For security reasons, it is highly recommended that you always
19006 # use absolute paths for naming shared libraries, and exclude the
19007 # DT_RUNPATH tag from executables and libraries. But doing so
19008 # requires that you compile everything twice, which is a pain.
19009 # So that behaviour is only enabled if SCOABSPATH is set to a
19010 # non-empty value in the environment. Most likely only useful for
19011 # creating official distributions of packages.
19012 # This is a hack until libtool officially supports absolute path
19013 # names for shared libraries.
19014 no_undefined_flag_CXX
='${wl}-z,text'
19015 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19016 archive_cmds_need_lc_CXX
=no
19017 hardcode_shlibpath_var_CXX
=no
19018 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19019 hardcode_libdir_separator_CXX
=':'
19020 link_all_deplibs_CXX
=yes
19021 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19022 runpath_var
='LD_RUN_PATH'
19024 case $cc_basename in
19026 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19027 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19030 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19031 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19036 case $cc_basename in
19038 # NonStop-UX NCC 3.20
19039 # FIXME: insert proper C++ library support
19043 # FIXME: insert proper C++ library support
19049 # FIXME: insert proper C++ library support
19053 # FIXME: insert proper C++ library support
19057 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19058 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19059 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19065 cat > conftest.
$ac_ext <<EOF
19069 Foo (void) { a = 0; }
19075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19076 (eval $ac_compile) 2>&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; then
19080 # Parse the compiler output and extract the necessary
19081 # objects, libraries and library flags.
19083 # Sentinel used to keep track of whether or not we are before
19084 # the conftest object file.
19085 pre_test_object_deps_done
=no
19087 # The `*' in the case matches for architectures that use `case' in
19088 # $output_verbose_cmd can trigger glob expansion during the loop
19089 # eval without this substitution.
19090 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19092 for p
in `eval $output_verbose_link_cmd`; do
19096 # Some compilers place space between "-{L,R}" and the path.
19097 # Remove the space.
19098 if test $p = "-L" \
19099 ||
test $p = "-R"; then
19106 if test "$pre_test_object_deps_done" = no
; then
19109 # Internal compiler library paths should come after those
19110 # provided the user. The postdeps already come after the
19111 # user supplied libs so there is no need to process them.
19112 if test -z "$compiler_lib_search_path_CXX"; then
19113 compiler_lib_search_path_CXX
="${prev}${p}"
19115 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19118 # The "-l" case would never come before the object being
19119 # linked, so don't bother handling this case.
19122 if test -z "$postdeps_CXX"; then
19123 postdeps_CXX
="${prev}${p}"
19125 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19131 # This assumes that the test object file only shows up
19132 # once in the compiler output.
19133 if test "$p" = "conftest.$objext"; then
19134 pre_test_object_deps_done
=yes
19138 if test "$pre_test_object_deps_done" = no
; then
19139 if test -z "$predep_objects_CXX"; then
19140 predep_objects_CXX
="$p"
19142 predep_objects_CXX
="$predep_objects_CXX $p"
19145 if test -z "$postdep_objects_CXX"; then
19146 postdep_objects_CXX
="$p"
19148 postdep_objects_CXX
="$postdep_objects_CXX $p"
19153 *) ;; # Ignore the rest.
19161 echo "libtool.m4: error: problem compiling CXX test program"
19164 $rm -f confest.
$objext
19166 # PORTME: override above test on systems where it is broken
19169 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19170 # hack all around it, let's just trust "g++" to DTRT.
19171 predep_objects_CXX
=
19172 postdep_objects_CXX
=
19177 case $cc_basename in
19179 # Adding this requires a known-good setup of shared libraries for
19180 # Sun compiler versions before 5.6, else PIC objects from an old
19181 # archive will be linked into the output, leading to subtle bugs.
19182 postdeps_CXX
='-lCstd -lCrun'
19189 case " $postdeps_CXX " in
19190 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19193 lt_prog_compiler_wl_CXX
=
19194 lt_prog_compiler_pic_CXX
=
19195 lt_prog_compiler_static_CXX
=
19197 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19198 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19200 # C++ specific cases for pic, static, wl, etc.
19201 if test "$GXX" = yes; then
19202 lt_prog_compiler_wl_CXX
='-Wl,'
19203 lt_prog_compiler_static_CXX
='-static'
19207 # All AIX code is PIC.
19208 if test "$host_cpu" = ia64
; then
19209 # AIX 5 now supports IA64 processor
19210 lt_prog_compiler_static_CXX
='-Bstatic'
19214 # FIXME: we need at least 68020 code to build shared libraries, but
19215 # adding the `-m68020' flag to GCC prevents building anything better,
19217 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19219 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19220 # PIC is the default for these OSes.
19222 mingw
* | os2
* | pw32
*)
19223 # This hack is so that the source file can tell whether it is being
19224 # built for inclusion in a dll (and should export symbols for example).
19225 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19227 darwin
* | rhapsody
*)
19228 # PIC is the default on this platform
19229 # Common symbols not allowed in MH_DYLIB files
19230 lt_prog_compiler_pic_CXX
='-fno-common'
19233 # DJGPP does not support shared libraries at all
19234 lt_prog_compiler_pic_CXX
=
19237 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19238 # Instead, we relocate shared libraries at runtime.
19241 if test -d /usr
/nec
; then
19242 lt_prog_compiler_pic_CXX
=-Kconform_pic
19246 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19247 # not for PA HP-UX.
19252 lt_prog_compiler_pic_CXX
='-fPIC'
19257 lt_prog_compiler_pic_CXX
='-fPIC'
19263 # All AIX code is PIC.
19264 if test "$host_cpu" = ia64
; then
19265 # AIX 5 now supports IA64 processor
19266 lt_prog_compiler_static_CXX
='-Bstatic'
19268 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19272 case $cc_basename in
19274 # Green Hills C++ Compiler
19275 # _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"
19280 # PIC is the default on this platform
19281 # Common symbols not allowed in MH_DYLIB files
19282 case $cc_basename in
19284 lt_prog_compiler_pic_CXX
='-qnocommon'
19285 lt_prog_compiler_wl_CXX
='-Wl,'
19290 case $cc_basename in
19292 lt_prog_compiler_pic_CXX
='-KPIC'
19295 # Green Hills C++ Compiler
19296 lt_prog_compiler_pic_CXX
='-pic'
19302 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19303 # FreeBSD uses GNU C++
19305 hpux9
* | hpux10
* | hpux11
*)
19306 case $cc_basename in
19308 lt_prog_compiler_wl_CXX
='-Wl,'
19309 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19310 if test "$host_cpu" != ia64
; then
19311 lt_prog_compiler_pic_CXX
='+Z'
19315 lt_prog_compiler_wl_CXX
='-Wl,'
19316 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19322 lt_prog_compiler_pic_CXX
='+Z'
19331 # This is c89, which is MS Visual C++ (no shared libs)
19332 # Anyone wants to do a port?
19334 irix5
* | irix6
* | nonstopux
*)
19335 case $cc_basename in
19337 lt_prog_compiler_wl_CXX
='-Wl,'
19338 lt_prog_compiler_static_CXX
='-non_shared'
19339 # CC pic flag -KPIC is the default.
19346 case $cc_basename in
19349 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19350 lt_prog_compiler_pic_CXX
='-fPIC'
19354 lt_prog_compiler_wl_CXX
='-Wl,'
19355 lt_prog_compiler_pic_CXX
='-KPIC'
19356 lt_prog_compiler_static_CXX
='-static'
19359 # Portland Group C++ compiler.
19360 lt_prog_compiler_wl_CXX
='-Wl,'
19361 lt_prog_compiler_pic_CXX
='-fpic'
19362 lt_prog_compiler_static_CXX
='-Bstatic'
19366 # Make sure the PIC flag is empty. It appears that all Alpha
19367 # Linux and Compaq Tru64 Unix objects are PIC.
19368 lt_prog_compiler_pic_CXX
=
19369 lt_prog_compiler_static_CXX
='-non_shared'
19380 case $cc_basename in
19382 lt_prog_compiler_pic_CXX
='-W c,exportall'
19390 osf3
* | osf4
* | osf5
*)
19391 case $cc_basename in
19393 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19396 # Rational C++ 2.4.1
19397 lt_prog_compiler_pic_CXX
='-pic'
19400 # Digital/Compaq C++
19401 lt_prog_compiler_wl_CXX
='-Wl,'
19402 # Make sure the PIC flag is empty. It appears that all Alpha
19403 # Linux and Compaq Tru64 Unix objects are PIC.
19404 lt_prog_compiler_pic_CXX
=
19405 lt_prog_compiler_static_CXX
='-non_shared'
19414 case $cc_basename in
19416 # Sun C++ 4.2, 5.x and Centerline C++
19417 lt_prog_compiler_pic_CXX
='-KPIC'
19418 lt_prog_compiler_static_CXX
='-Bstatic'
19419 lt_prog_compiler_wl_CXX
='-Qoption ld '
19422 # Green Hills C++ Compiler
19423 lt_prog_compiler_pic_CXX
='-PIC'
19430 case $cc_basename in
19433 lt_prog_compiler_pic_CXX
='-pic'
19434 lt_prog_compiler_static_CXX
='-Bstatic'
19438 lt_prog_compiler_pic_CXX
='-pic'
19445 case $cc_basename in
19447 # NonStop-UX NCC 3.20
19448 lt_prog_compiler_pic_CXX
='-KPIC'
19454 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19455 case $cc_basename in
19457 lt_prog_compiler_wl_CXX
='-Wl,'
19458 lt_prog_compiler_pic_CXX
='-KPIC'
19459 lt_prog_compiler_static_CXX
='-Bstatic'
19466 lt_prog_compiler_can_build_shared_CXX
=no
19471 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19472 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19475 # Check to make sure the PIC flag actually works.
19477 if test -n "$lt_prog_compiler_pic_CXX"; then
19479 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19480 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19481 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 lt_prog_compiler_pic_works_CXX
=no
19485 ac_outfile
=conftest.
$ac_objext
19486 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
19487 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19488 # Insert the option either (1) after the last *FLAGS variable, or
19489 # (2) before a word containing "conftest.", or (3) at the end.
19490 # Note that $ac_compile itself does not contain backslashes and begins
19491 # with a dollar sign (not a hyphen), so the echo should work correctly.
19492 # The option is referenced via a variable to avoid confusing sed.
19493 lt_compile
=`echo "$ac_compile" | $SED \
19494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19496 -e 's:$: $lt_compiler_flag:'`
19497 (eval echo "\"\$as_me:19497: $lt_compile\"" >&5)
19498 (eval "$lt_compile" 2>conftest.err
)
19500 cat conftest.err
>&5
19501 echo "$as_me:19501: \$? = $ac_status" >&5
19502 if (exit $ac_status) && test -s "$ac_outfile"; then
19503 # The compiler can only warn and ignore the option if not recognized
19504 # So say no if there are warnings other than the usual output.
19505 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
19506 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19507 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19508 lt_prog_compiler_pic_works_CXX
=yes
19514 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19515 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19517 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
19518 case $lt_prog_compiler_pic_CXX in
19520 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19523 lt_prog_compiler_pic_CXX
=
19524 lt_prog_compiler_can_build_shared_CXX
=no
19529 # For platforms which do not support PIC, -DPIC is meaningless:
19531 lt_prog_compiler_pic_CXX
=
19534 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19539 # Check to make sure the static flag actually works.
19541 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19542 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19543 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19544 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 lt_prog_compiler_static_works_CXX
=no
19548 save_LDFLAGS
="$LDFLAGS"
19549 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19550 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
19551 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19552 # The linker can only warn and ignore the option if not recognized
19553 # So say no if there are warnings
19554 if test -s conftest.err
; then
19555 # Append any errors to the config.log.
19556 cat conftest.err
1>&5
19557 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
19558 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19559 if diff conftest.exp conftest.er2
>/dev
/null
; then
19560 lt_prog_compiler_static_works_CXX
=yes
19563 lt_prog_compiler_static_works_CXX
=yes
19567 LDFLAGS
="$save_LDFLAGS"
19570 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19571 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19573 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
19576 lt_prog_compiler_static_CXX
=
19580 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19582 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 lt_cv_prog_compiler_c_o_CXX
=no
19586 $rm -r conftest
2>/dev
/null
19590 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
19592 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19593 # Insert the option either (1) after the last *FLAGS variable, or
19594 # (2) before a word containing "conftest.", or (3) at the end.
19595 # Note that $ac_compile itself does not contain backslashes and begins
19596 # with a dollar sign (not a hyphen), so the echo should work correctly.
19597 lt_compile
=`echo "$ac_compile" | $SED \
19598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19600 -e 's:$: $lt_compiler_flag:'`
19601 (eval echo "\"\$as_me:19601: $lt_compile\"" >&5)
19602 (eval "$lt_compile" 2>out
/conftest.err
)
19604 cat out
/conftest.err
>&5
19605 echo "$as_me:19605: \$? = $ac_status" >&5
19606 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19608 # The compiler can only warn and ignore the option if not recognized
19609 # So say no if there are warnings
19610 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
19611 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19612 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19613 lt_cv_prog_compiler_c_o_CXX
=yes
19618 # SGI C++ compiler will create directory out/ii_files/ for
19619 # template instantiation
19620 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
19621 $rm out
/* && rmdir out
19627 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19628 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19631 hard_links
="nottested"
19632 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19633 # do not overwrite the value of need_locks provided by the user
19634 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19635 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19638 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19640 ln conftest.a conftest.b
2>&5 || hard_links
=no
19641 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19642 { echo "$as_me:$LINENO: result: $hard_links" >&5
19643 echo "${ECHO_T}$hard_links" >&6; }
19644 if test "$hard_links" = no
; then
19645 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19646 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19653 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19654 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19656 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19659 # If we're using GNU nm, then we don't want the "-C" option.
19660 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19661 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
19662 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'
19664 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'
19668 export_symbols_cmds_CXX
="$ltdll_cmds"
19671 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'
19674 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19678 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19679 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19680 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19683 # Do we need to explicitly link libc?
19685 case "x$archive_cmds_need_lc_CXX" in
19687 # Assume -lc should be added
19688 archive_cmds_need_lc_CXX
=yes
19690 if test "$enable_shared" = yes && test "$GCC" = yes; then
19691 case $archive_cmds_CXX in
19693 # FIXME: we may have to deal with multi-command sequences.
19696 # Test whether the compiler implicitly links with -lc since on some
19697 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19698 # to ld, don't add -lc before -lgcc.
19699 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19700 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19702 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19705 (eval $ac_compile) 2>&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } 2>conftest.err
; then
19711 libobjs
=conftest.
$ac_objext
19713 wl
=$lt_prog_compiler_wl_CXX
19714 pic_flag
=$lt_prog_compiler_pic_CXX
19720 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19721 allow_undefined_flag_CXX
=
19722 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19723 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }
19728 archive_cmds_need_lc_CXX
=no
19730 archive_cmds_need_lc_CXX
=yes
19732 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19734 cat conftest.err
1>&5
19737 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19738 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19745 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19747 library_names_spec
=
19748 libname_spec
='lib$name'
19752 postuninstall_cmds
=
19756 shlibpath_overrides_runpath
=unknown
19758 dynamic_linker
="$host_os ld.so"
19759 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19760 if test "$GCC" = yes; then
19761 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19762 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
19763 # if the path contains ";" then we assume it to be the separator
19764 # otherwise default to the standard path separator (i.e. ":") - it is
19765 # assumed that no part of a normal pathname contains ";" but that should
19766 # okay in the real world where ";" in dirpaths is itself problematic.
19767 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19769 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19772 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
19774 need_lib_prefix
=unknown
19775 hardcode_into_libs
=no
19777 # when you set need_version to no, make sure it does not cause -set_version
19778 # flags to be left without arguments
19779 need_version
=unknown
19784 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19785 shlibpath_var
=LIBPATH
19787 # AIX 3 has no versioning support, so we append a major version to the name.
19788 soname_spec
='${libname}${release}${shared_ext}$major'
19795 hardcode_into_libs
=yes
19796 if test "$host_cpu" = ia64
; then
19797 # AIX 5 supports IA64
19798 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19799 shlibpath_var
=LD_LIBRARY_PATH
19801 # With GCC up to 2.95.x, collect2 would create an import file
19802 # for dependence libraries. The import file would start with
19803 # the line `#! .'. This would cause the generated library to
19804 # depend on `.', always an invalid library. This was fixed in
19805 # development snapshots of GCC prior to 3.0.
19807 aix4 | aix4.
[01] | aix4.
[01].
*)
19808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19810 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
19813 can_build_shared
=no
19817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19818 # soname into executable. Probably we can add versioning support to
19819 # collect2, so additional links can be useful in future.
19820 if test "$aix_use_runtimelinking" = yes; then
19821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19822 # instead of lib<name>.a to let people know that these are not
19823 # typical AIX shared libraries.
19824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19826 # We preserve .a as extension for shared libraries through AIX4.2
19827 # and later when we are not doing run time linking.
19828 library_names_spec
='${libname}${release}.a $libname.a'
19829 soname_spec
='${libname}${release}${shared_ext}$major'
19831 shlibpath_var
=LIBPATH
19836 library_names_spec
='$libname.ixlibrary $libname.a'
19837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19838 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'
19842 library_names_spec
='${libname}${shared_ext}'
19843 dynamic_linker
="$host_os ld.so"
19844 shlibpath_var
=LIBRARY_PATH
19850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19851 soname_spec
='${libname}${release}${shared_ext}$major'
19852 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19853 shlibpath_var
=LD_LIBRARY_PATH
19854 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19855 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19856 # the default ld.so.conf also contains /usr/contrib/lib and
19857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19858 # libtool to hard-code these into programs
19861 cygwin
* | mingw
* | pw32
*)
19862 version_type
=windows
19867 case $GCC,$host_os in
19868 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
19869 library_names_spec
='$libname.dll.a'
19870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19871 postinstall_cmds
='base_file=`basename \${file}`~
19872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19873 dldir=$destdir/`dirname \$dlpath`~
19874 test -d \$dldir || mkdir -p \$dldir~
19875 $install_prog $dir/$dlname \$dldir/$dlname~
19876 chmod a+x \$dldir/$dlname'
19877 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19878 dlpath=$dir/\$dldll~
19880 shlibpath_overrides_runpath
=yes
19884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19885 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19886 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
19889 # MinGW DLLs use traditional 'lib' prefix
19890 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19891 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19892 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
19893 # It is most probably a Windows format PATH printed by
19894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19895 # path with ; separators, and with drive letters. We can handle the
19896 # drive letters (cygwin fileutils understands them), so leave them,
19897 # especially as we might pass files found there to a mingw objdump,
19898 # which wouldn't understand a cygwinified path. Ahh.
19899 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19901 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19905 # pw32 DLLs use 'pw' prefix rather than 'lib'
19906 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19912 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19915 dynamic_linker
='Win32 ld.exe'
19916 # FIXME: first we should search . and the directory the executable is in
19920 darwin
* | rhapsody
*)
19921 dynamic_linker
="$host_os dyld"
19922 version_type
=darwin
19925 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19926 soname_spec
='${libname}${release}${major}$shared_ext'
19927 shlibpath_overrides_runpath
=yes
19928 shlibpath_var
=DYLD_LIBRARY_PATH
19929 shrext_cmds
='.dylib'
19930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19931 if test "$GCC" = yes; then
19932 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"`
19934 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
19936 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19944 soname_spec
='${libname}${release}${shared_ext}$major'
19945 shlibpath_var
=LD_LIBRARY_PATH
19956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19957 soname_spec
='${libname}${release}${shared_ext}$major'
19958 shlibpath_var
=LD_LIBRARY_PATH
19959 shlibpath_overrides_runpath
=no
19960 hardcode_into_libs
=yes
19961 dynamic_linker
='GNU ld.so'
19964 freebsd
* | dragonfly
*)
19965 # DragonFly does not have aout. When/if they implement a new
19966 # versioning mechanism, adjust this.
19967 if test -x /usr
/bin
/objformat
; then
19968 objformat
=`/usr/bin/objformat`
19971 freebsd
[123]*) objformat
=aout
;;
19972 *) objformat
=elf
;;
19975 version_type
=freebsd-
$objformat
19976 case $version_type in
19978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19983 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19987 shlibpath_var
=LD_LIBRARY_PATH
19990 shlibpath_overrides_runpath
=yes
19992 freebsd3.
[01]* | freebsdelf3.
[01]*)
19993 shlibpath_overrides_runpath
=yes
19994 hardcode_into_libs
=yes
19996 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19997 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19998 shlibpath_overrides_runpath
=no
19999 hardcode_into_libs
=yes
20001 freebsd
*) # from 4.6 on
20002 shlibpath_overrides_runpath
=yes
20003 hardcode_into_libs
=yes
20012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20013 soname_spec
='${libname}${release}${shared_ext}$major'
20014 shlibpath_var
=LD_LIBRARY_PATH
20015 hardcode_into_libs
=yes
20018 hpux9
* | hpux10
* | hpux11
*)
20019 # Give a soname corresponding to the major version so that dld.sl refuses to
20020 # link against other versions.
20027 hardcode_into_libs
=yes
20028 dynamic_linker
="$host_os dld.so"
20029 shlibpath_var
=LD_LIBRARY_PATH
20030 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20032 soname_spec
='${libname}${release}${shared_ext}$major'
20033 if test "X$HPUX_IA64_MODE" = X32
; then
20034 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20036 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20038 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20042 hardcode_into_libs
=yes
20043 dynamic_linker
="$host_os dld.sl"
20044 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20045 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20047 soname_spec
='${libname}${release}${shared_ext}$major'
20048 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20049 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20053 dynamic_linker
="$host_os dld.sl"
20054 shlibpath_var
=SHLIB_PATH
20055 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20057 soname_spec
='${libname}${release}${shared_ext}$major'
20060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20061 postinstall_cmds
='chmod 555 $lib'
20068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20069 soname_spec
='${libname}${release}${shared_ext}$major'
20070 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20071 shlibpath_var
=LD_LIBRARY_PATH
20072 shlibpath_overrides_runpath
=no
20073 hardcode_into_libs
=yes
20076 irix5
* | irix6
* | nonstopux
*)
20078 nonstopux
*) version_type
=nonstopux
;;
20080 if test "$lt_cv_prog_gnu_ld" = yes; then
20088 soname_spec
='${libname}${release}${shared_ext}$major'
20089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20091 irix5
* | nonstopux
*)
20092 libsuff
= shlibsuff
=
20095 case $LD in # libtool.m4 will add one of these switches to LD
20096 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20097 libsuff
= shlibsuff
= libmagic
=32-bit;;
20098 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20099 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20100 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20101 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20102 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20106 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20107 shlibpath_overrides_runpath
=no
20108 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20109 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20110 hardcode_into_libs
=yes
20113 # No shared lib support for Linux oldld, aout, or coff.
20114 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20118 # This must be Linux ELF.
20123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20124 soname_spec
='${libname}${release}${shared_ext}$major'
20125 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20126 shlibpath_var
=LD_LIBRARY_PATH
20127 shlibpath_overrides_runpath
=no
20128 # This implies no fast_install, which is unacceptable.
20129 # Some rework will be needed to allow for fast_install
20130 # before this can be enabled.
20131 hardcode_into_libs
=yes
20133 # Append ld.so.conf contents to the search path
20134 if test -f /etc
/ld.so.conf
; then
20135 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' ' '`
20136 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20139 # We used to test for /lib/ld.so.1 and disable shared libraries on
20140 # powerpc, because MkLinux only supported shared libraries with the
20141 # GNU dynamic linker. Since this was broken with cross compilers,
20142 # most powerpc-linux boxes support dynamic linking these days and
20143 # people can always --disable-shared, the test was removed, and we
20144 # assume the GNU/Linux dynamic linker is in use.
20145 dynamic_linker
='GNU/Linux ld.so'
20152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20153 soname_spec
='${libname}${release}${shared_ext}$major'
20154 shlibpath_var
=LD_LIBRARY_PATH
20155 shlibpath_overrides_runpath
=no
20156 hardcode_into_libs
=yes
20157 dynamic_linker
='GNU ld.so'
20164 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20166 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20167 dynamic_linker
='NetBSD (a.out) ld.so'
20169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20170 soname_spec
='${libname}${release}${shared_ext}$major'
20171 dynamic_linker
='NetBSD ld.elf_so'
20173 shlibpath_var
=LD_LIBRARY_PATH
20174 shlibpath_overrides_runpath
=yes
20175 hardcode_into_libs
=yes
20180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20181 shlibpath_var
=LD_LIBRARY_PATH
20182 shlibpath_overrides_runpath
=yes
20189 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190 soname_spec
='${libname}${release}${shared_ext}$major'
20191 shlibpath_var
=LD_LIBRARY_PATH
20192 shlibpath_overrides_runpath
=yes
20197 sys_lib_dlsearch_path_spec
="/usr/lib"
20199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20201 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20202 *) need_version
=no
;;
20204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20205 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20206 shlibpath_var
=LD_LIBRARY_PATH
20207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20209 openbsd2.
[89] | openbsd2.
[89].
*)
20210 shlibpath_overrides_runpath
=no
20213 shlibpath_overrides_runpath
=yes
20217 shlibpath_overrides_runpath
=yes
20222 libname_spec
='$name'
20225 library_names_spec
='$libname${shared_ext} $libname.a'
20226 dynamic_linker
='OS/2 ld.exe'
20227 shlibpath_var
=LIBPATH
20230 osf3
* | osf4
* | osf5
*)
20234 soname_spec
='${libname}${release}${shared_ext}$major'
20235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236 shlibpath_var
=LD_LIBRARY_PATH
20237 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20238 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20246 soname_spec
='${libname}${release}${shared_ext}$major'
20247 shlibpath_var
=LD_LIBRARY_PATH
20248 shlibpath_overrides_runpath
=yes
20249 hardcode_into_libs
=yes
20250 # ldd complains unless libraries are executable
20251 postinstall_cmds
='chmod +x $lib'
20256 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20257 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20258 shlibpath_var
=LD_LIBRARY_PATH
20259 shlibpath_overrides_runpath
=yes
20260 if test "$with_gnu_ld" = yes; then
20268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20269 soname_spec
='${libname}${release}${shared_ext}$major'
20270 shlibpath_var
=LD_LIBRARY_PATH
20271 case $host_vendor in
20273 shlibpath_overrides_runpath
=no
20275 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20276 runpath_var
=LD_RUN_PATH
20284 shlibpath_overrides_runpath
=no
20285 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20291 if test -d /usr
/nec
;then
20293 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20294 soname_spec
='$libname${shared_ext}.$major'
20295 shlibpath_var
=LD_LIBRARY_PATH
20299 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20300 version_type
=freebsd-elf
20303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20304 soname_spec
='${libname}${release}${shared_ext}$major'
20305 shlibpath_var
=LD_LIBRARY_PATH
20306 hardcode_into_libs
=yes
20307 if test "$with_gnu_ld" = yes; then
20308 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20309 shlibpath_overrides_runpath
=no
20311 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20312 shlibpath_overrides_runpath
=yes
20315 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20319 sys_lib_dlsearch_path_spec
='/usr/lib'
20324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325 soname_spec
='${libname}${release}${shared_ext}$major'
20326 shlibpath_var
=LD_LIBRARY_PATH
20333 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20334 echo "${ECHO_T}$dynamic_linker" >&6; }
20335 test "$dynamic_linker" = no
&& can_build_shared
=no
20337 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20338 if test "$GCC" = yes; then
20339 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20342 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20343 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20344 hardcode_action_CXX
=
20345 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20346 test -n "$runpath_var_CXX" || \
20347 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20349 # We can hardcode non-existant directories.
20350 if test "$hardcode_direct_CXX" != no
&&
20351 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20352 # have to relink, otherwise we might link with an installed library
20353 # when we should be linking with a yet-to-be-installed one
20354 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20355 test "$hardcode_minus_L_CXX" != no
; then
20356 # Linking always hardcodes the temporary library directory.
20357 hardcode_action_CXX
=relink
20359 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20360 hardcode_action_CXX
=immediate
20363 # We cannot hardcode anything, or else we can only hardcode existing
20365 hardcode_action_CXX
=unsupported
20367 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20368 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20370 if test "$hardcode_action_CXX" = relink
; then
20371 # Fast installation is not supported
20372 enable_fast_install
=no
20373 elif test "$shlibpath_overrides_runpath" = yes ||
20374 test "$enable_shared" = no
; then
20375 # Fast installation is not necessary
20376 enable_fast_install
=needless
20380 # The else clause should only fire when bootstrapping the
20381 # libtool distribution, otherwise you forgot to ship ltmain.sh
20382 # with your package, and you will get complaints that there are
20383 # no rules to generate ltmain.sh.
20384 if test -f "$ltmain"; then
20385 # See if we are running on zsh, and set the options which allow our commands through
20386 # without removal of \ escapes.
20387 if test -n "${ZSH_VERSION+set}" ; then
20388 setopt NO_GLOB_SUBST
20390 # Now quote all the things that may contain metacharacters while being
20391 # careful not to overquote the AC_SUBSTed values. We take copies of the
20392 # variables and quote the copies for generation of the libtool script.
20393 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20397 deplibs_check_method reload_flag reload_cmds need_locks \
20398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20399 lt_cv_sys_global_symbol_to_c_name_address \
20400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20401 old_postinstall_cmds old_postuninstall_cmds \
20405 lt_prog_compiler_wl_CXX \
20406 lt_prog_compiler_pic_CXX \
20407 lt_prog_compiler_static_CXX \
20408 lt_prog_compiler_no_builtin_flag_CXX \
20409 export_dynamic_flag_spec_CXX \
20410 thread_safe_flag_spec_CXX \
20411 whole_archive_flag_spec_CXX \
20412 enable_shared_with_static_runtimes_CXX \
20413 old_archive_cmds_CXX \
20414 old_archive_from_new_cmds_CXX \
20415 predep_objects_CXX \
20416 postdep_objects_CXX \
20419 compiler_lib_search_path_CXX \
20421 archive_expsym_cmds_CXX \
20422 postinstall_cmds_CXX \
20423 postuninstall_cmds_CXX \
20424 old_archive_from_expsyms_cmds_CXX \
20425 allow_undefined_flag_CXX \
20426 no_undefined_flag_CXX \
20427 export_symbols_cmds_CXX \
20428 hardcode_libdir_flag_spec_CXX \
20429 hardcode_libdir_flag_spec_ld_CXX \
20430 hardcode_libdir_separator_CXX \
20431 hardcode_automatic_CXX \
20433 module_expsym_cmds_CXX \
20434 lt_cv_prog_compiler_c_o_CXX \
20435 exclude_expsyms_CXX \
20436 include_expsyms_CXX
; do
20439 old_archive_cmds_CXX | \
20440 old_archive_from_new_cmds_CXX | \
20441 archive_cmds_CXX | \
20442 archive_expsym_cmds_CXX | \
20443 module_cmds_CXX | \
20444 module_expsym_cmds_CXX | \
20445 old_archive_from_expsyms_cmds_CXX | \
20446 export_symbols_cmds_CXX | \
20447 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20448 postinstall_cmds | postuninstall_cmds | \
20449 old_postinstall_cmds | old_postuninstall_cmds | \
20450 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
20451 # Double-quote double-evaled strings.
20452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20461 *'\$0 --fallback-echo"')
20462 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20468 cat <<__EOF__ >> "$cfgfile"
20469 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20471 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20473 # Shell to use when invoking shell scripts.
20476 # Whether or not to build shared libraries.
20477 build_libtool_libs=$enable_shared
20479 # Whether or not to build static libraries.
20480 build_old_libs=$enable_static
20482 # Whether or not to add -lc for building shared libraries.
20483 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20485 # Whether or not to disallow shared libs when runtime libs are static
20486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20488 # Whether or not to optimize for fast installation.
20489 fast_install=$enable_fast_install
20492 host_alias=$host_alias
20496 # The build system.
20497 build_alias=$build_alias
20501 # An echo program that does not interpret backslashes.
20506 AR_FLAGS=$lt_AR_FLAGS
20511 # LTCC compiler flags.
20512 LTCFLAGS=$lt_LTCFLAGS
20514 # A language-specific compiler.
20515 CC=$lt_compiler_CXX
20517 # Is the compiler the GNU C compiler?
20523 # The linker used to build libraries.
20526 # Whether we need hard or soft links.
20529 # A BSD-compatible nm program.
20532 # A symbol stripping program
20535 # Used to examine libraries when file_magic_cmd begins "file"
20536 MAGIC_CMD=$MAGIC_CMD
20538 # Used on cygwin: DLL creation program.
20541 # Used on cygwin: object dumper.
20544 # Used on cygwin: assembler.
20547 # The name of the directory that contains temporary libtool files.
20550 # How to create reloadable object files.
20551 reload_flag=$lt_reload_flag
20552 reload_cmds=$lt_reload_cmds
20554 # How to pass a linker flag through the compiler.
20555 wl=$lt_lt_prog_compiler_wl_CXX
20557 # Object file suffix (normally "o").
20558 objext="$ac_objext"
20560 # Old archive suffix (normally "a").
20563 # Shared library suffix (normally ".so").
20564 shrext_cmds='$shrext_cmds'
20566 # Executable file suffix (normally "").
20569 # Additional compiler flags for building library objects.
20570 pic_flag=$lt_lt_prog_compiler_pic_CXX
20573 # What is the maximum length of a command?
20574 max_cmd_len=$lt_cv_sys_max_cmd_len
20576 # Does compiler simultaneously support -c and -o options?
20577 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20579 # Must we lock files when doing compilation?
20580 need_locks=$lt_need_locks
20582 # Do we need the lib prefix for modules?
20583 need_lib_prefix=$need_lib_prefix
20585 # Do we need a version for libraries?
20586 need_version=$need_version
20588 # Whether dlopen is supported.
20589 dlopen_support=$enable_dlopen
20591 # Whether dlopen of programs is supported.
20592 dlopen_self=$enable_dlopen_self
20594 # Whether dlopen of statically linked programs is supported.
20595 dlopen_self_static=$enable_dlopen_self_static
20597 # Compiler flag to prevent dynamic linking.
20598 link_static_flag=$lt_lt_prog_compiler_static_CXX
20600 # Compiler flag to turn off builtin functions.
20601 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20603 # Compiler flag to allow reflexive dlopens.
20604 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20606 # Compiler flag to generate shared objects directly from archives.
20607 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20609 # Compiler flag to generate thread-safe objects.
20610 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20612 # Library versioning type.
20613 version_type=$version_type
20615 # Format of library name prefix.
20616 libname_spec=$lt_libname_spec
20618 # List of archive names. First name is the real one, the rest are links.
20619 # The last name is the one that the linker finds with -lNAME.
20620 library_names_spec=$lt_library_names_spec
20622 # The coded name of the library, if different from the real name.
20623 soname_spec=$lt_soname_spec
20625 # Commands used to build and install an old-style archive.
20627 old_archive_cmds=$lt_old_archive_cmds_CXX
20628 old_postinstall_cmds=$lt_old_postinstall_cmds
20629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20631 # Create an old-style archive from a shared archive.
20632 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20634 # Create a temporary old-style archive to link instead of a shared archive.
20635 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20637 # Commands used to build and install a shared archive.
20638 archive_cmds=$lt_archive_cmds_CXX
20639 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20640 postinstall_cmds=$lt_postinstall_cmds
20641 postuninstall_cmds=$lt_postuninstall_cmds
20643 # Commands used to build a loadable module (assumed same as above if empty)
20644 module_cmds=$lt_module_cmds_CXX
20645 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20647 # Commands to strip libraries.
20648 old_striplib=$lt_old_striplib
20649 striplib=$lt_striplib
20651 # Dependencies to place before the objects being linked to create a
20653 predep_objects=$lt_predep_objects_CXX
20655 # Dependencies to place after the objects being linked to create a
20657 postdep_objects=$lt_postdep_objects_CXX
20659 # Dependencies to place before the objects being linked to create a
20661 predeps=$lt_predeps_CXX
20663 # Dependencies to place after the objects being linked to create a
20665 postdeps=$lt_postdeps_CXX
20667 # The library search path used internally by the compiler when linking
20668 # a shared library.
20669 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20671 # Method to check whether dependent libraries are shared objects.
20672 deplibs_check_method=$lt_deplibs_check_method
20674 # Command to use when deplibs_check_method == file_magic.
20675 file_magic_cmd=$lt_file_magic_cmd
20677 # Flag that allows shared libraries with undefined symbols to be built.
20678 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20680 # Flag that forces no undefined symbols.
20681 no_undefined_flag=$lt_no_undefined_flag_CXX
20683 # Commands used to finish a libtool library installation in a directory.
20684 finish_cmds=$lt_finish_cmds
20686 # Same as above, but a single script fragment to be evaled but not shown.
20687 finish_eval=$lt_finish_eval
20689 # Take the output of nm and produce a listing of raw symbols and C names.
20690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20692 # Transform the output of nm in a proper C declaration
20693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20695 # Transform the output of nm in a C name address pair
20696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20698 # This is the shared library runtime path variable.
20699 runpath_var=$runpath_var
20701 # This is the shared library path variable.
20702 shlibpath_var=$shlibpath_var
20704 # Is shlibpath searched before the hard-coded library search path?
20705 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20707 # How to hardcode a shared library path into an executable.
20708 hardcode_action=$hardcode_action_CXX
20710 # Whether we should hardcode library paths into libraries.
20711 hardcode_into_libs=$hardcode_into_libs
20713 # Flag to hardcode \$libdir into a binary during linking.
20714 # This must work even if \$libdir does not exist.
20715 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20717 # If ld is used when linking, flag to hardcode \$libdir into
20718 # a binary during linking. This must work even if \$libdir does
20720 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20722 # Whether we need a single -rpath flag with a separated argument.
20723 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20725 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20726 # resulting binary.
20727 hardcode_direct=$hardcode_direct_CXX
20729 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20730 # resulting binary.
20731 hardcode_minus_L=$hardcode_minus_L_CXX
20733 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20734 # the resulting binary.
20735 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20737 # Set to yes if building a shared library automatically hardcodes DIR into the library
20738 # and all subsequent libraries and executables linked against it.
20739 hardcode_automatic=$hardcode_automatic_CXX
20741 # Variables whose values should be saved in libtool wrapper scripts and
20742 # restored at relink time.
20743 variables_saved_for_relink="$variables_saved_for_relink"
20745 # Whether libtool must link a program against all its dependency libraries.
20746 link_all_deplibs=$link_all_deplibs_CXX
20748 # Compile-time system search path for libraries
20749 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20751 # Run-time system search path for libraries
20752 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20754 # Fix the shell variable \$srcfile for the compiler.
20755 fix_srcfile_path="$fix_srcfile_path_CXX"
20757 # Set to yes if exported symbols are required.
20758 always_export_symbols=$always_export_symbols_CXX
20760 # The commands to list exported symbols.
20761 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20763 # The commands to extract the exported symbol list from a shared archive.
20764 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20766 # Symbols that should not be listed in the preloaded symbols.
20767 exclude_expsyms=$lt_exclude_expsyms_CXX
20769 # Symbols that must always be exported.
20770 include_expsyms=$lt_include_expsyms_CXX
20772 # ### END LIBTOOL TAG CONFIG: $tagname
20778 # If there is no Makefile yet, we rely on a make rule to execute
20779 # `config.status --recheck' to rerun these tests and create the
20780 # libtool script then.
20781 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20782 if test -f "$ltmain_in"; then
20783 test -f Makefile
&& make "$ltmain"
20789 ac_cpp
='$CPP $CPPFLAGS'
20790 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20798 with_gnu_ldcxx
=$with_gnu_ld
20799 with_gnu_ld
=$lt_save_with_gnu_ld
20800 lt_cv_path_LDCXX
=$lt_cv_path_LD
20801 lt_cv_path_LD
=$lt_save_path_LD
20802 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20803 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20811 if test -n "$F77" && test "X$F77" != "Xno"; then
20814 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20815 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
20819 archive_cmds_need_lc_F77
=no
20820 allow_undefined_flag_F77
=
20821 always_export_symbols_F77
=no
20822 archive_expsym_cmds_F77
=
20823 export_dynamic_flag_spec_F77
=
20824 hardcode_direct_F77
=no
20825 hardcode_libdir_flag_spec_F77
=
20826 hardcode_libdir_flag_spec_ld_F77
=
20827 hardcode_libdir_separator_F77
=
20828 hardcode_minus_L_F77
=no
20829 hardcode_automatic_F77
=no
20831 module_expsym_cmds_F77
=
20832 link_all_deplibs_F77
=unknown
20833 old_archive_cmds_F77
=$old_archive_cmds
20834 no_undefined_flag_F77
=
20835 whole_archive_flag_spec_F77
=
20836 enable_shared_with_static_runtimes_F77
=no
20838 # Source file extension for f77 test sources.
20841 # Object file extension for compiled f77 test sources.
20845 # Code to be used in simple compile tests
20846 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
20848 # Code to be used in simple link tests
20849 lt_simple_link_test_code
=" program t\n end\n"
20851 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20853 # If no C compiler was specified, use CC.
20856 # If no C compiler flags were specified, use CFLAGS.
20857 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20859 # Allow CC to be a program name with arguments.
20863 # save warnings/boilerplate of simple test code
20864 ac_outfile
=conftest.
$ac_objext
20865 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
20866 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20867 _lt_compiler_boilerplate
=`cat conftest.err`
20870 ac_outfile
=conftest.
$ac_objext
20871 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
20872 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20873 _lt_linker_boilerplate
=`cat conftest.err`
20877 # Allow CC to be a program name with arguments.
20882 for cc_temp
in $compiler""; do
20884 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20885 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20890 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20893 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20894 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20895 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20896 echo "${ECHO_T}$can_build_shared" >&6; }
20898 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20899 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20900 test "$can_build_shared" = "no" && enable_shared
=no
20902 # On AIX, shared libraries and static libraries use the same namespace, and
20903 # are all built from PIC.
20906 test "$enable_shared" = yes && enable_static
=no
20907 if test -n "$RANLIB"; then
20908 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20909 postinstall_cmds
='$RANLIB $lib'
20913 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20914 test "$enable_shared" = yes && enable_static
=no
20918 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20919 echo "${ECHO_T}$enable_shared" >&6; }
20921 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20922 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20923 # Make sure either enable_shared or enable_static is yes.
20924 test "$enable_shared" = yes || enable_static
=yes
20925 { echo "$as_me:$LINENO: result: $enable_static" >&5
20926 echo "${ECHO_T}$enable_static" >&6; }
20931 lt_prog_compiler_wl_F77
=
20932 lt_prog_compiler_pic_F77
=
20933 lt_prog_compiler_static_F77
=
20935 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20936 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20938 if test "$GCC" = yes; then
20939 lt_prog_compiler_wl_F77
='-Wl,'
20940 lt_prog_compiler_static_F77
='-static'
20944 # All AIX code is PIC.
20945 if test "$host_cpu" = ia64
; then
20946 # AIX 5 now supports IA64 processor
20947 lt_prog_compiler_static_F77
='-Bstatic'
20952 # FIXME: we need at least 68020 code to build shared libraries, but
20953 # adding the `-m68020' flag to GCC prevents building anything better,
20955 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
20958 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20959 # PIC is the default for these OSes.
20962 mingw
* | pw32
* | os2
*)
20963 # This hack is so that the source file can tell whether it is being
20964 # built for inclusion in a dll (and should export symbols for example).
20965 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
20968 darwin
* | rhapsody
*)
20969 # PIC is the default on this platform
20970 # Common symbols not allowed in MH_DYLIB files
20971 lt_prog_compiler_pic_F77
='-fno-common'
20975 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20976 # Instead, we relocate shared libraries at runtime.
20980 # Just because we use GCC doesn't mean we suddenly get shared libraries
20981 # on systems that don't support them.
20982 lt_prog_compiler_can_build_shared_F77
=no
20987 if test -d /usr
/nec
; then
20988 lt_prog_compiler_pic_F77
=-Kconform_pic
20993 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20994 # not for PA HP-UX.
21000 lt_prog_compiler_pic_F77
='-fPIC'
21006 lt_prog_compiler_pic_F77
='-fPIC'
21010 # PORTME Check for flag to pass linker flags through the system compiler.
21013 lt_prog_compiler_wl_F77
='-Wl,'
21014 if test "$host_cpu" = ia64
; then
21015 # AIX 5 now supports IA64 processor
21016 lt_prog_compiler_static_F77
='-Bstatic'
21018 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
21022 # PIC is the default on this platform
21023 # Common symbols not allowed in MH_DYLIB files
21024 case $cc_basename in
21026 lt_prog_compiler_pic_F77
='-qnocommon'
21027 lt_prog_compiler_wl_F77
='-Wl,'
21032 mingw
* | pw32
* | os2
*)
21033 # This hack is so that the source file can tell whether it is being
21034 # built for inclusion in a dll (and should export symbols for example).
21035 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21038 hpux9
* | hpux10
* | hpux11
*)
21039 lt_prog_compiler_wl_F77
='-Wl,'
21040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21041 # not for PA HP-UX.
21047 lt_prog_compiler_pic_F77
='+Z'
21050 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21051 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21054 irix5
* | irix6
* | nonstopux
*)
21055 lt_prog_compiler_wl_F77
='-Wl,'
21056 # PIC (with -KPIC) is the default.
21057 lt_prog_compiler_static_F77
='-non_shared'
21061 lt_prog_compiler_pic_F77
='-KPIC'
21062 lt_prog_compiler_static_F77
='-Bstatic'
21066 case $cc_basename in
21068 lt_prog_compiler_wl_F77
='-Wl,'
21069 lt_prog_compiler_pic_F77
='-KPIC'
21070 lt_prog_compiler_static_F77
='-static'
21072 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21073 # Portland Group compilers (*not* the Pentium gcc compiler,
21074 # which looks to be a dead project)
21075 lt_prog_compiler_wl_F77
='-Wl,'
21076 lt_prog_compiler_pic_F77
='-fpic'
21077 lt_prog_compiler_static_F77
='-Bstatic'
21080 lt_prog_compiler_wl_F77
='-Wl,'
21081 # All Alpha code is PIC.
21082 lt_prog_compiler_static_F77
='-non_shared'
21087 osf3
* | osf4
* | osf5
*)
21088 lt_prog_compiler_wl_F77
='-Wl,'
21089 # All OSF/1 code is PIC.
21090 lt_prog_compiler_static_F77
='-non_shared'
21094 lt_prog_compiler_pic_F77
='-KPIC'
21095 lt_prog_compiler_static_F77
='-Bstatic'
21096 case $cc_basename in
21097 f77
* | f90
* | f95
*)
21098 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21100 lt_prog_compiler_wl_F77
='-Wl,';;
21105 lt_prog_compiler_wl_F77
='-Qoption ld '
21106 lt_prog_compiler_pic_F77
='-PIC'
21107 lt_prog_compiler_static_F77
='-Bstatic'
21110 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21111 lt_prog_compiler_wl_F77
='-Wl,'
21112 lt_prog_compiler_pic_F77
='-KPIC'
21113 lt_prog_compiler_static_F77
='-Bstatic'
21117 if test -d /usr
/nec
;then
21118 lt_prog_compiler_pic_F77
='-Kconform_pic'
21119 lt_prog_compiler_static_F77
='-Bstatic'
21123 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21124 lt_prog_compiler_wl_F77
='-Wl,'
21125 lt_prog_compiler_pic_F77
='-KPIC'
21126 lt_prog_compiler_static_F77
='-Bstatic'
21130 lt_prog_compiler_wl_F77
='-Wl,'
21131 lt_prog_compiler_can_build_shared_F77
=no
21135 lt_prog_compiler_pic_F77
='-pic'
21136 lt_prog_compiler_static_F77
='-Bstatic'
21140 lt_prog_compiler_can_build_shared_F77
=no
21145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21146 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21149 # Check to make sure the PIC flag actually works.
21151 if test -n "$lt_prog_compiler_pic_F77"; then
21153 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21154 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21155 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21158 lt_prog_compiler_pic_works_F77
=no
21159 ac_outfile
=conftest.
$ac_objext
21160 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21161 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21162 # Insert the option either (1) after the last *FLAGS variable, or
21163 # (2) before a word containing "conftest.", or (3) at the end.
21164 # Note that $ac_compile itself does not contain backslashes and begins
21165 # with a dollar sign (not a hyphen), so the echo should work correctly.
21166 # The option is referenced via a variable to avoid confusing sed.
21167 lt_compile
=`echo "$ac_compile" | $SED \
21168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21170 -e 's:$: $lt_compiler_flag:'`
21171 (eval echo "\"\$as_me:21171: $lt_compile\"" >&5)
21172 (eval "$lt_compile" 2>conftest.err
)
21174 cat conftest.err
>&5
21175 echo "$as_me:21175: \$? = $ac_status" >&5
21176 if (exit $ac_status) && test -s "$ac_outfile"; then
21177 # The compiler can only warn and ignore the option if not recognized
21178 # So say no if there are warnings other than the usual output.
21179 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21180 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21181 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21182 lt_prog_compiler_pic_works_F77
=yes
21188 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21189 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21191 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21192 case $lt_prog_compiler_pic_F77 in
21194 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21197 lt_prog_compiler_pic_F77
=
21198 lt_prog_compiler_can_build_shared_F77
=no
21203 # For platforms which do not support PIC, -DPIC is meaningless:
21205 lt_prog_compiler_pic_F77
=
21208 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21213 # Check to make sure the static flag actually works.
21215 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21216 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21217 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21218 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 lt_prog_compiler_static_works_F77
=no
21222 save_LDFLAGS
="$LDFLAGS"
21223 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21224 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21225 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21226 # The linker can only warn and ignore the option if not recognized
21227 # So say no if there are warnings
21228 if test -s conftest.err
; then
21229 # Append any errors to the config.log.
21230 cat conftest.err
1>&5
21231 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21232 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21233 if diff conftest.exp conftest.er2
>/dev
/null
; then
21234 lt_prog_compiler_static_works_F77
=yes
21237 lt_prog_compiler_static_works_F77
=yes
21241 LDFLAGS
="$save_LDFLAGS"
21244 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21245 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21247 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21250 lt_prog_compiler_static_F77
=
21254 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21255 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21256 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 lt_cv_prog_compiler_c_o_F77
=no
21260 $rm -r conftest
2>/dev
/null
21264 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21266 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21267 # Insert the option either (1) after the last *FLAGS variable, or
21268 # (2) before a word containing "conftest.", or (3) at the end.
21269 # Note that $ac_compile itself does not contain backslashes and begins
21270 # with a dollar sign (not a hyphen), so the echo should work correctly.
21271 lt_compile
=`echo "$ac_compile" | $SED \
21272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21274 -e 's:$: $lt_compiler_flag:'`
21275 (eval echo "\"\$as_me:21275: $lt_compile\"" >&5)
21276 (eval "$lt_compile" 2>out
/conftest.err
)
21278 cat out
/conftest.err
>&5
21279 echo "$as_me:21279: \$? = $ac_status" >&5
21280 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21282 # The compiler can only warn and ignore the option if not recognized
21283 # So say no if there are warnings
21284 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21285 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21286 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21287 lt_cv_prog_compiler_c_o_F77
=yes
21292 # SGI C++ compiler will create directory out/ii_files/ for
21293 # template instantiation
21294 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21295 $rm out
/* && rmdir out
21301 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21302 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21305 hard_links
="nottested"
21306 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
21307 # do not overwrite the value of need_locks provided by the user
21308 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21309 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21312 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21314 ln conftest.a conftest.b
2>&5 || hard_links
=no
21315 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21316 { echo "$as_me:$LINENO: result: $hard_links" >&5
21317 echo "${ECHO_T}$hard_links" >&6; }
21318 if test "$hard_links" = no
; then
21319 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21320 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21327 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21328 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21331 allow_undefined_flag_F77
=
21332 enable_shared_with_static_runtimes_F77
=no
21334 archive_expsym_cmds_F77
=
21335 old_archive_From_new_cmds_F77
=
21336 old_archive_from_expsyms_cmds_F77
=
21337 export_dynamic_flag_spec_F77
=
21338 whole_archive_flag_spec_F77
=
21339 thread_safe_flag_spec_F77
=
21340 hardcode_libdir_flag_spec_F77
=
21341 hardcode_libdir_flag_spec_ld_F77
=
21342 hardcode_libdir_separator_F77
=
21343 hardcode_direct_F77
=no
21344 hardcode_minus_L_F77
=no
21345 hardcode_shlibpath_var_F77
=unsupported
21346 link_all_deplibs_F77
=unknown
21347 hardcode_automatic_F77
=no
21349 module_expsym_cmds_F77
=
21350 always_export_symbols_F77
=no
21351 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21352 # include_expsyms should be a list of space-separated symbols to be *always*
21353 # included in the symbol list
21354 include_expsyms_F77
=
21355 # exclude_expsyms can be an extended regexp of symbols to exclude
21356 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21357 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21358 # as well as any symbol that contains `d'.
21359 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
21360 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21361 # platforms (ab)use it in PIC code, but their linkers get confused if
21362 # the symbol is explicitly referenced. Since portable code cannot
21363 # rely on this symbol name, it's probably fine to never include it in
21364 # preloaded symbol tables.
21365 extract_expsyms_cmds
=
21366 # Just being paranoid about ensuring that cc_basename is set.
21367 for cc_temp
in $compiler""; do
21369 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21370 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21375 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21378 cygwin
* | mingw
* | pw32
*)
21379 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21380 # When not using gcc, we currently assume that we are using
21381 # Microsoft Visual C++.
21382 if test "$GCC" != yes; then
21387 # we just hope/assume this is gcc and not c89 (= MSVC++)
21396 if test "$with_gnu_ld" = yes; then
21397 # If archive_cmds runs LD, not CC, wlarc should be empty
21400 # Set some defaults for GNU ld with shared library support. These
21401 # are reset later if shared libraries are not supported. Putting them
21402 # here allows them to be overridden if necessary.
21403 runpath_var
=LD_RUN_PATH
21404 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
21405 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
21406 # ancient GNU ld didn't support --whole-archive et. al.
21407 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
21408 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21410 whole_archive_flag_spec_F77
=
21412 supports_anon_versioning
=no
21413 case `$LD -v 2>/dev/null` in
21414 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
21415 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
21416 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
21417 *\
2.11.
*) ;; # other 2.11 versions
21418 *) supports_anon_versioning
=yes ;;
21421 # See if GNU ld supports shared libraries.
21423 aix3
* | aix4
* | aix5
*)
21424 # On AIX/PPC, the GNU linker is very broken
21425 if test "$host_cpu" != ia64
; then
21429 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21430 *** to be unable to reliably create shared libraries on AIX.
21431 *** Therefore, libtool is disabling shared libraries support. If you
21432 *** really care for shared libraries, you may want to modify your PATH
21433 *** so that a non-GNU linker is found, and then restart.
21440 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)'
21441 hardcode_libdir_flag_spec_F77
='-L$libdir'
21442 hardcode_minus_L_F77
=yes
21444 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21445 # that the semantics of dynamic libraries on AmigaOS, at least up
21446 # to version 4, is to share data among multiple programs linked
21447 # with the same dynamic library. Since this doesn't match the
21448 # behavior of shared libraries on other platforms, we can't use
21454 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21455 allow_undefined_flag_F77
=unsupported
21456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21457 # support --undefined. This deserves some investigation. FIXME
21458 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21464 cygwin
* | mingw
* | pw32
*)
21465 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21466 # as there is no search path for DLLs.
21467 hardcode_libdir_flag_spec_F77
='-L$libdir'
21468 allow_undefined_flag_F77
=unsupported
21469 always_export_symbols_F77
=no
21470 enable_shared_with_static_runtimes_F77
=yes
21471 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21473 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
21474 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21475 # If the export-symbols file already is a .def file (1st line
21476 # is EXPORTS), use it as is; otherwise, prepend...
21477 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21478 cp $export_symbols $output_objdir/$soname.def;
21480 echo EXPORTS > $output_objdir/$soname.def;
21481 cat $export_symbols >> $output_objdir/$soname.def;
21483 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21490 hardcode_direct_F77
=no
21491 hardcode_shlibpath_var_F77
=no
21492 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
21493 export_dynamic_flag_spec_F77
='${wl}-E'
21494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21495 # Instead, shared libraries are loaded at an image base (0x10000000 by
21496 # default) and relocated if they conflict, which is a slow very memory
21497 # consuming and fragmenting process. To avoid this, we pick a random,
21498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21499 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21500 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'
21501 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'
21505 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21507 case $cc_basename,$host_cpu in
21508 pgcc
*) # Portland Group C compiler
21509 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'
21510 tmp_addflag
=' $pic_flag'
21512 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
21513 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'
21514 tmp_addflag
=' $pic_flag -Mnomain' ;;
21515 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
21516 tmp_addflag
=' -i_dynamic' ;;
21517 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
21518 tmp_addflag
=' -i_dynamic -nofor_main' ;;
21519 ifc
* | ifort
*) # Intel Fortran compiler
21520 tmp_addflag
=' -nofor_main' ;;
21522 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21524 if test $supports_anon_versioning = yes; then
21525 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
21526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21527 $echo "local: *; };" >> $output_objdir/$libname.ver~
21528 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21536 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
21537 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21540 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21541 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21546 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
21550 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21551 *** create shared libraries on Solaris systems. Therefore, libtool
21552 *** is disabling shared libraries support. We urge you to upgrade GNU
21553 *** binutils to release 2.9.1 or newer. Another option is to modify
21554 *** your PATH or compiler configuration so that the native linker is
21555 *** used, and then restart.
21558 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21559 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21560 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21566 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
21567 case `$LD -v 2>&1` in
21568 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
21572 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21573 *** reliably create shared libraries on SCO systems. Therefore, libtool
21574 *** is disabling shared libraries support. We urge you to upgrade GNU
21575 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21576 *** your PATH or compiler configuration so that the native linker is
21577 *** used, and then restart.
21582 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21583 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21584 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21585 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21594 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21596 hardcode_direct_F77
=yes
21597 hardcode_shlibpath_var_F77
=no
21601 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21602 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21603 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21610 if test "$ld_shlibs_F77" = no
; then
21612 hardcode_libdir_flag_spec_F77
=
21613 export_dynamic_flag_spec_F77
=
21614 whole_archive_flag_spec_F77
=
21617 # PORTME fill in a description of your system's linker (not GNU ld)
21620 allow_undefined_flag_F77
=unsupported
21621 always_export_symbols_F77
=yes
21622 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'
21623 # Note: this linker hardcodes the directories in LIBPATH if there
21624 # are no directories specified by -L.
21625 hardcode_minus_L_F77
=yes
21626 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21627 # Neither direct hardcoding nor static linking is supported with a
21629 hardcode_direct_F77
=unsupported
21634 if test "$host_cpu" = ia64
; then
21635 # On IA64, the linker does run time linking by default, so we don't
21636 # have to do anything special.
21637 aix_use_runtimelinking
=no
21638 exp_sym_flag
='-Bexport'
21641 # If we're using GNU nm, then we don't want the "-C" option.
21642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21643 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
21644 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'
21646 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'
21648 aix_use_runtimelinking
=no
21650 # Test if we are trying to use run time linking or normal
21651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21652 # need to do runtime linking.
21653 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
21654 for ld_flag
in $LDFLAGS; do
21655 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
21656 aix_use_runtimelinking
=yes
21663 exp_sym_flag
='-bexport'
21664 no_entry_flag
='-bnoentry'
21667 # When large executables or shared objects are built, AIX ld can
21668 # have problems creating the table of contents. If linking a library
21669 # or program results in "error TOC overflow" add -mminimal-toc to
21670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21673 archive_cmds_F77
=''
21674 hardcode_direct_F77
=yes
21675 hardcode_libdir_separator_F77
=':'
21676 link_all_deplibs_F77
=yes
21678 if test "$GCC" = yes; then
21679 case $host_os in aix4.
[012]|aix4.
[012].
*)
21680 # We only want to do this on AIX 4.2 and lower, the check
21681 # below for broken collect2 doesn't work under 4.3+
21682 collect2name
=`${CC} -print-prog-name=collect2`
21683 if test -f "$collect2name" && \
21684 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
21686 # We have reworked collect2
21687 hardcode_direct_F77
=yes
21689 # We have old collect2
21690 hardcode_direct_F77
=unsupported
21691 # It fails to find uninstalled libraries when the uninstalled
21692 # path is not listed in the libpath. Setting hardcode_minus_L
21693 # to unsupported forces relinking
21694 hardcode_minus_L_F77
=yes
21695 hardcode_libdir_flag_spec_F77
='-L$libdir'
21696 hardcode_libdir_separator_F77
=
21700 shared_flag
='-shared'
21701 if test "$aix_use_runtimelinking" = yes; then
21702 shared_flag
="$shared_flag "'${wl}-G'
21706 if test "$host_cpu" = ia64
; then
21707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21708 # chokes on -Wl,-G. The following line is correct:
21711 if test "$aix_use_runtimelinking" = yes; then
21712 shared_flag
='${wl}-G'
21714 shared_flag
='${wl}-bM:SRE'
21719 # It seems that -bexpall does not export symbols beginning with
21720 # underscore (_), so it is better to generate a list of symbols to export.
21721 always_export_symbols_F77
=yes
21722 if test "$aix_use_runtimelinking" = yes; then
21723 # Warning - without using the other runtime loading flags (-brtl),
21724 # -berok will link without error, but may produce a broken library.
21725 allow_undefined_flag_F77
='-berok'
21726 # Determine the default libpath from the value encoded in an empty executable.
21727 cat >conftest.
$ac_ext <<_ACEOF
21732 rm -f conftest.
$ac_objext conftest
$ac_exeext
21733 if { (ac_try
="$ac_link"
21734 case "(($ac_try" in
21735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_link") 2>conftest.er1
21741 grep -v '^ *+' conftest.er1 >conftest.err
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
21746 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21747 { (case "(($ac_try" in
21748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21749 *) ac_try_echo
=$ac_try;;
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_try") 2>&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; } &&
21756 { ac_try
='test -s conftest$ac_exeext'
21757 { (case "(($ac_try" in
21758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_try") 2>&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21767 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21769 # Check for a 64-bit object if we didn't find anything.
21770 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; }
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21779 rm -f core conftest.err conftest.$ac_objext \
21780 conftest$ac_exeext conftest.$ac_ext
21781 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21783 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21784 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"
21786 if test "$host_cpu" = ia64; then
21787 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21788 allow_undefined_flag_F77="-z nodefs"
21789 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"
21791 # Determine the default libpath from the value encoded in an empty executable.
21792 cat >conftest.$ac_ext <<_ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21801 *) ac_try_echo
=$ac_try;;
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>conftest.er1
21806 grep -v '^ *+' conftest.er1
>conftest.err
21808 cat conftest.err
>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } &&
21811 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21812 { (case "(($ac_try" in
21813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817 (eval "$ac_try") 2>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } &&
21821 { ac_try='test -s conftest$ac_exeext'
21822 { (case "(($ac_try" in
21823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21824 *) ac_try_echo
=$ac_try;;
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_try") 2>&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21832 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21834 # Check for a 64-bit object if we didn't find anything.
21835 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; }
21838 echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.
$ac_ext >&5
21844 rm -f core conftest.err conftest.
$ac_objext \
21845 conftest
$ac_exeext conftest.
$ac_ext
21846 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
21848 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
21849 # Warning - without using the other run time loading flags,
21850 # -berok will link without error, but may produce a broken library.
21851 no_undefined_flag_F77
=' ${wl}-bernotok'
21852 allow_undefined_flag_F77
=' ${wl}-berok'
21853 # Exported symbols can be pulled into shared objects from archives
21854 whole_archive_flag_spec_F77
='$convenience'
21855 archive_cmds_need_lc_F77
=yes
21856 # This is similar to how AIX traditionally builds its shared libraries.
21857 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'
21863 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)'
21864 hardcode_libdir_flag_spec_F77
='-L$libdir'
21865 hardcode_minus_L_F77
=yes
21866 # see comment about different semantics on the GNU ld section
21871 export_dynamic_flag_spec_F77
=-rdynamic
21874 cygwin
* | mingw
* | pw32
*)
21875 # When not using gcc, we currently assume that we are using
21876 # Microsoft Visual C++.
21877 # hardcode_libdir_flag_spec is actually meaningless, as there is
21878 # no search path for DLLs.
21879 hardcode_libdir_flag_spec_F77
=' '
21880 allow_undefined_flag_F77
=unsupported
21881 # Tell ltmain to make .lib files, not .a files.
21883 # Tell ltmain to make .dll files, not .so files.
21885 # FIXME: Setting linknames here is a bad hack.
21886 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21887 # The linker will automatically build a .lib file if we build a DLL.
21888 old_archive_From_new_cmds_F77
='true'
21889 # FIXME: Should let the user specify the lib program.
21890 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
21891 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
21892 enable_shared_with_static_runtimes_F77
=yes
21895 darwin
* | rhapsody
*)
21897 rhapsody
* | darwin1.
[012])
21898 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
21901 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21902 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21904 case ${MACOSX_DEPLOYMENT_TARGET} in
21906 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21909 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
21915 archive_cmds_need_lc_F77
=no
21916 hardcode_direct_F77
=no
21917 hardcode_automatic_F77
=yes
21918 hardcode_shlibpath_var_F77
=unsupported
21919 whole_archive_flag_spec_F77
=''
21920 link_all_deplibs_F77
=yes
21921 if test "$GCC" = yes ; then
21922 output_verbose_link_cmd
='echo'
21923 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21924 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21925 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21926 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}'
21927 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}'
21929 case $cc_basename in
21931 output_verbose_link_cmd
='echo'
21932 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21933 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21934 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21935 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}'
21936 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}'
21946 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21947 hardcode_libdir_flag_spec_F77
='-L$libdir'
21948 hardcode_shlibpath_var_F77
=no
21955 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21956 # support. Future versions do this automatically, but an explicit c++rt0.o
21957 # does not break anything, and helps significantly (at the cost of a little
21960 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21961 hardcode_libdir_flag_spec_F77
='-R$libdir'
21962 hardcode_direct_F77
=yes
21963 hardcode_shlibpath_var_F77
=no
21966 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21968 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21969 hardcode_direct_F77
=yes
21970 hardcode_minus_L_F77
=yes
21971 hardcode_shlibpath_var_F77
=no
21974 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21975 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
21976 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21977 hardcode_libdir_flag_spec_F77
='-R$libdir'
21978 hardcode_direct_F77
=yes
21979 hardcode_shlibpath_var_F77
=no
21983 if test "$GCC" = yes; then
21984 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'
21986 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'
21988 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
21989 hardcode_libdir_separator_F77
=:
21990 hardcode_direct_F77
=yes
21992 # hardcode_minus_L: Not really in the search PATH,
21993 # but as the default location of the library.
21994 hardcode_minus_L_F77
=yes
21995 export_dynamic_flag_spec_F77
='${wl}-E'
21999 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22000 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22002 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22004 if test "$with_gnu_ld" = no
; then
22005 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22006 hardcode_libdir_separator_F77
=:
22008 hardcode_direct_F77
=yes
22009 export_dynamic_flag_spec_F77
='${wl}-E'
22011 # hardcode_minus_L: Not really in the search PATH,
22012 # but as the default location of the library.
22013 hardcode_minus_L_F77
=yes
22018 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22021 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22024 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22027 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22033 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22036 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22039 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22043 if test "$with_gnu_ld" = no
; then
22044 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22045 hardcode_libdir_separator_F77
=:
22049 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22050 hardcode_direct_F77
=no
22051 hardcode_shlibpath_var_F77
=no
22054 hardcode_direct_F77
=yes
22055 export_dynamic_flag_spec_F77
='${wl}-E'
22057 # hardcode_minus_L: Not really in the search PATH,
22058 # but as the default location of the library.
22059 hardcode_minus_L_F77
=yes
22065 irix5
* | irix6
* | nonstopux
*)
22066 if test "$GCC" = yes; then
22067 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'
22069 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'
22070 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22072 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22073 hardcode_libdir_separator_F77
=:
22074 link_all_deplibs_F77
=yes
22078 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22079 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22081 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22083 hardcode_libdir_flag_spec_F77
='-R$libdir'
22084 hardcode_direct_F77
=yes
22085 hardcode_shlibpath_var_F77
=no
22089 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22090 hardcode_direct_F77
=yes
22091 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22092 hardcode_libdir_separator_F77
=:
22093 hardcode_shlibpath_var_F77
=no
22097 hardcode_direct_F77
=yes
22098 hardcode_shlibpath_var_F77
=no
22099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22100 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22101 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22102 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22103 export_dynamic_flag_spec_F77
='${wl}-E'
22106 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22107 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22108 hardcode_libdir_flag_spec_F77
='-R$libdir'
22111 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22112 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22119 hardcode_libdir_flag_spec_F77
='-L$libdir'
22120 hardcode_minus_L_F77
=yes
22121 allow_undefined_flag_F77
=unsupported
22122 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'
22123 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22127 if test "$GCC" = yes; then
22128 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22129 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'
22131 allow_undefined_flag_F77
=' -expect_unresolved \*'
22132 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'
22134 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22135 hardcode_libdir_separator_F77
=:
22138 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22139 if test "$GCC" = yes; then
22140 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22141 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'
22142 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22144 allow_undefined_flag_F77
=' -expect_unresolved \*'
22145 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'
22146 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~
22147 $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'
22149 # Both c and cxx compiler support -rpath directly
22150 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22152 hardcode_libdir_separator_F77
=:
22156 no_undefined_flag_F77
=' -z text'
22157 if test "$GCC" = yes; then
22159 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22160 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22161 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22164 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22165 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22166 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22168 hardcode_libdir_flag_spec_F77
='-R$libdir'
22169 hardcode_shlibpath_var_F77
=no
22171 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22173 # The compiler driver will combine linker options so we
22174 # cannot just pass the convience library names through
22175 # without $wl, iff we do not link with $LD.
22176 # Luckily, gcc supports the same syntax we need for Sun Studio.
22177 # Supported since Solaris 2.6 (maybe 2.5.1?)
22180 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22182 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' ;;
22185 link_all_deplibs_F77
=yes
22189 if test "x$host_vendor" = xsequent
; then
22190 # Use $CC to link under sequent, because it throws in some extra .o
22191 # files that make .init and .fini sections work.
22192 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22194 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22196 hardcode_libdir_flag_spec_F77
='-L$libdir'
22197 hardcode_direct_F77
=yes
22198 hardcode_minus_L_F77
=yes
22199 hardcode_shlibpath_var_F77
=no
22203 case $host_vendor in
22205 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22206 hardcode_direct_F77
=yes # is this really true???
22209 ## LD is ld it makes a PLAMLIB
22210 ## CC just makes a GrossModule.
22211 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22212 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22213 hardcode_direct_F77
=no
22216 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22217 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22220 runpath_var
='LD_RUN_PATH'
22221 hardcode_shlibpath_var_F77
=no
22225 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22226 hardcode_shlibpath_var_F77
=no
22227 export_dynamic_flag_spec_F77
='-Bexport'
22231 if test -d /usr
/nec
; then
22232 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22233 hardcode_shlibpath_var_F77
=no
22234 runpath_var
=LD_RUN_PATH
22235 hardcode_runpath_var
=yes
22240 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22241 no_undefined_flag_F77
='${wl}-z,text'
22242 archive_cmds_need_lc_F77
=no
22243 hardcode_shlibpath_var_F77
=no
22244 runpath_var
='LD_RUN_PATH'
22246 if test "$GCC" = yes; then
22247 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22248 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22250 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22251 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22255 sysv5
* | sco3.2v5
* | sco5v6
*)
22256 # Note: We can NOT use -z defs as we might desire, because we do not
22257 # link with -lc, and that would cause any symbols used from libc to
22258 # always be unresolved, which means just about no library would
22259 # ever link correctly. If we're not using GNU ld we use -z text
22260 # though, which does catch some bad symbols but isn't as heavy-handed
22262 no_undefined_flag_F77
='${wl}-z,text'
22263 allow_undefined_flag_F77
='${wl}-z,nodefs'
22264 archive_cmds_need_lc_F77
=no
22265 hardcode_shlibpath_var_F77
=no
22266 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22267 hardcode_libdir_separator_F77
=':'
22268 link_all_deplibs_F77
=yes
22269 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22270 runpath_var
='LD_RUN_PATH'
22272 if test "$GCC" = yes; then
22273 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22274 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22276 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22277 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22282 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22283 hardcode_libdir_flag_spec_F77
='-L$libdir'
22284 hardcode_shlibpath_var_F77
=no
22293 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22294 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22295 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22298 # Do we need to explicitly link libc?
22300 case "x$archive_cmds_need_lc_F77" in
22302 # Assume -lc should be added
22303 archive_cmds_need_lc_F77
=yes
22305 if test "$enable_shared" = yes && test "$GCC" = yes; then
22306 case $archive_cmds_F77 in
22308 # FIXME: we may have to deal with multi-command sequences.
22311 # Test whether the compiler implicitly links with -lc since on some
22312 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22313 # to ld, don't add -lc before -lgcc.
22314 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22315 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22317 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320 (eval $ac_compile) 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } 2>conftest.err
; then
22326 libobjs
=conftest.
$ac_objext
22328 wl
=$lt_prog_compiler_wl_F77
22329 pic_flag
=$lt_prog_compiler_pic_F77
22335 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
22336 allow_undefined_flag_F77
=
22337 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22338 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }
22343 archive_cmds_need_lc_F77
=no
22345 archive_cmds_need_lc_F77
=yes
22347 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
22349 cat conftest.err
1>&5
22352 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22353 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22360 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22361 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22362 library_names_spec
=
22363 libname_spec
='lib$name'
22367 postuninstall_cmds
=
22371 shlibpath_overrides_runpath
=unknown
22373 dynamic_linker
="$host_os ld.so"
22374 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22375 if test "$GCC" = yes; then
22376 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22377 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
22378 # if the path contains ";" then we assume it to be the separator
22379 # otherwise default to the standard path separator (i.e. ":") - it is
22380 # assumed that no part of a normal pathname contains ";" but that should
22381 # okay in the real world where ";" in dirpaths is itself problematic.
22382 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22384 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22387 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
22389 need_lib_prefix
=unknown
22390 hardcode_into_libs
=no
22392 # when you set need_version to no, make sure it does not cause -set_version
22393 # flags to be left without arguments
22394 need_version
=unknown
22399 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22400 shlibpath_var
=LIBPATH
22402 # AIX 3 has no versioning support, so we append a major version to the name.
22403 soname_spec
='${libname}${release}${shared_ext}$major'
22410 hardcode_into_libs
=yes
22411 if test "$host_cpu" = ia64
; then
22412 # AIX 5 supports IA64
22413 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22414 shlibpath_var
=LD_LIBRARY_PATH
22416 # With GCC up to 2.95.x, collect2 would create an import file
22417 # for dependence libraries. The import file would start with
22418 # the line `#! .'. This would cause the generated library to
22419 # depend on `.', always an invalid library. This was fixed in
22420 # development snapshots of GCC prior to 3.0.
22422 aix4 | aix4.
[01] | aix4.
[01].
*)
22423 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22425 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
22428 can_build_shared
=no
22432 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22433 # soname into executable. Probably we can add versioning support to
22434 # collect2, so additional links can be useful in future.
22435 if test "$aix_use_runtimelinking" = yes; then
22436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22437 # instead of lib<name>.a to let people know that these are not
22438 # typical AIX shared libraries.
22439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22441 # We preserve .a as extension for shared libraries through AIX4.2
22442 # and later when we are not doing run time linking.
22443 library_names_spec
='${libname}${release}.a $libname.a'
22444 soname_spec
='${libname}${release}${shared_ext}$major'
22446 shlibpath_var
=LIBPATH
22451 library_names_spec
='$libname.ixlibrary $libname.a'
22452 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22453 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'
22457 library_names_spec
='${libname}${shared_ext}'
22458 dynamic_linker
="$host_os ld.so"
22459 shlibpath_var
=LIBRARY_PATH
22465 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22466 soname_spec
='${libname}${release}${shared_ext}$major'
22467 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22468 shlibpath_var
=LD_LIBRARY_PATH
22469 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22470 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22471 # the default ld.so.conf also contains /usr/contrib/lib and
22472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22473 # libtool to hard-code these into programs
22476 cygwin
* | mingw
* | pw32
*)
22477 version_type
=windows
22482 case $GCC,$host_os in
22483 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
22484 library_names_spec
='$libname.dll.a'
22485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22486 postinstall_cmds
='base_file=`basename \${file}`~
22487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22488 dldir=$destdir/`dirname \$dlpath`~
22489 test -d \$dldir || mkdir -p \$dldir~
22490 $install_prog $dir/$dlname \$dldir/$dlname~
22491 chmod a+x \$dldir/$dlname'
22492 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22493 dlpath=$dir/\$dldll~
22495 shlibpath_overrides_runpath
=yes
22499 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22500 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22501 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
22504 # MinGW DLLs use traditional 'lib' prefix
22505 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22506 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22507 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
22508 # It is most probably a Windows format PATH printed by
22509 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22510 # path with ; separators, and with drive letters. We can handle the
22511 # drive letters (cygwin fileutils understands them), so leave them,
22512 # especially as we might pass files found there to a mingw objdump,
22513 # which wouldn't understand a cygwinified path. Ahh.
22514 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22516 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22520 # pw32 DLLs use 'pw' prefix rather than 'lib'
22521 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22527 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22530 dynamic_linker
='Win32 ld.exe'
22531 # FIXME: first we should search . and the directory the executable is in
22535 darwin
* | rhapsody
*)
22536 dynamic_linker
="$host_os dyld"
22537 version_type
=darwin
22540 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22541 soname_spec
='${libname}${release}${major}$shared_ext'
22542 shlibpath_overrides_runpath
=yes
22543 shlibpath_var
=DYLD_LIBRARY_PATH
22544 shrext_cmds
='.dylib'
22545 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22546 if test "$GCC" = yes; then
22547 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"`
22549 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
22551 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22559 soname_spec
='${libname}${release}${shared_ext}$major'
22560 shlibpath_var
=LD_LIBRARY_PATH
22571 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22572 soname_spec
='${libname}${release}${shared_ext}$major'
22573 shlibpath_var
=LD_LIBRARY_PATH
22574 shlibpath_overrides_runpath
=no
22575 hardcode_into_libs
=yes
22576 dynamic_linker
='GNU ld.so'
22579 freebsd
* | dragonfly
*)
22580 # DragonFly does not have aout. When/if they implement a new
22581 # versioning mechanism, adjust this.
22582 if test -x /usr
/bin
/objformat
; then
22583 objformat
=`/usr/bin/objformat`
22586 freebsd
[123]*) objformat
=aout
;;
22587 *) objformat
=elf
;;
22590 version_type
=freebsd-
$objformat
22591 case $version_type in
22593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22598 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22602 shlibpath_var
=LD_LIBRARY_PATH
22605 shlibpath_overrides_runpath
=yes
22607 freebsd3.
[01]* | freebsdelf3.
[01]*)
22608 shlibpath_overrides_runpath
=yes
22609 hardcode_into_libs
=yes
22611 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22612 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22613 shlibpath_overrides_runpath
=no
22614 hardcode_into_libs
=yes
22616 freebsd
*) # from 4.6 on
22617 shlibpath_overrides_runpath
=yes
22618 hardcode_into_libs
=yes
22627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22628 soname_spec
='${libname}${release}${shared_ext}$major'
22629 shlibpath_var
=LD_LIBRARY_PATH
22630 hardcode_into_libs
=yes
22633 hpux9
* | hpux10
* | hpux11
*)
22634 # Give a soname corresponding to the major version so that dld.sl refuses to
22635 # link against other versions.
22642 hardcode_into_libs
=yes
22643 dynamic_linker
="$host_os dld.so"
22644 shlibpath_var
=LD_LIBRARY_PATH
22645 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22647 soname_spec
='${libname}${release}${shared_ext}$major'
22648 if test "X$HPUX_IA64_MODE" = X32
; then
22649 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22651 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22653 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22657 hardcode_into_libs
=yes
22658 dynamic_linker
="$host_os dld.sl"
22659 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22660 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22662 soname_spec
='${libname}${release}${shared_ext}$major'
22663 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22664 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22668 dynamic_linker
="$host_os dld.sl"
22669 shlibpath_var
=SHLIB_PATH
22670 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22672 soname_spec
='${libname}${release}${shared_ext}$major'
22675 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22676 postinstall_cmds
='chmod 555 $lib'
22683 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22684 soname_spec
='${libname}${release}${shared_ext}$major'
22685 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22686 shlibpath_var
=LD_LIBRARY_PATH
22687 shlibpath_overrides_runpath
=no
22688 hardcode_into_libs
=yes
22691 irix5
* | irix6
* | nonstopux
*)
22693 nonstopux
*) version_type
=nonstopux
;;
22695 if test "$lt_cv_prog_gnu_ld" = yes; then
22703 soname_spec
='${libname}${release}${shared_ext}$major'
22704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22706 irix5
* | nonstopux
*)
22707 libsuff
= shlibsuff
=
22710 case $LD in # libtool.m4 will add one of these switches to LD
22711 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22712 libsuff
= shlibsuff
= libmagic
=32-bit;;
22713 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22714 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22715 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22716 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22717 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22721 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22722 shlibpath_overrides_runpath
=no
22723 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22724 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22725 hardcode_into_libs
=yes
22728 # No shared lib support for Linux oldld, aout, or coff.
22729 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22733 # This must be Linux ELF.
22738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739 soname_spec
='${libname}${release}${shared_ext}$major'
22740 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22741 shlibpath_var
=LD_LIBRARY_PATH
22742 shlibpath_overrides_runpath
=no
22743 # This implies no fast_install, which is unacceptable.
22744 # Some rework will be needed to allow for fast_install
22745 # before this can be enabled.
22746 hardcode_into_libs
=yes
22748 # Append ld.so.conf contents to the search path
22749 if test -f /etc
/ld.so.conf
; then
22750 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' ' '`
22751 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22754 # We used to test for /lib/ld.so.1 and disable shared libraries on
22755 # powerpc, because MkLinux only supported shared libraries with the
22756 # GNU dynamic linker. Since this was broken with cross compilers,
22757 # most powerpc-linux boxes support dynamic linking these days and
22758 # people can always --disable-shared, the test was removed, and we
22759 # assume the GNU/Linux dynamic linker is in use.
22760 dynamic_linker
='GNU/Linux ld.so'
22767 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22768 soname_spec
='${libname}${release}${shared_ext}$major'
22769 shlibpath_var
=LD_LIBRARY_PATH
22770 shlibpath_overrides_runpath
=no
22771 hardcode_into_libs
=yes
22772 dynamic_linker
='GNU ld.so'
22779 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22780 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22781 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22782 dynamic_linker
='NetBSD (a.out) ld.so'
22784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22785 soname_spec
='${libname}${release}${shared_ext}$major'
22786 dynamic_linker
='NetBSD ld.elf_so'
22788 shlibpath_var
=LD_LIBRARY_PATH
22789 shlibpath_overrides_runpath
=yes
22790 hardcode_into_libs
=yes
22795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22796 shlibpath_var
=LD_LIBRARY_PATH
22797 shlibpath_overrides_runpath
=yes
22804 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22805 soname_spec
='${libname}${release}${shared_ext}$major'
22806 shlibpath_var
=LD_LIBRARY_PATH
22807 shlibpath_overrides_runpath
=yes
22812 sys_lib_dlsearch_path_spec
="/usr/lib"
22814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22816 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22817 *) need_version
=no
;;
22819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22820 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22821 shlibpath_var
=LD_LIBRARY_PATH
22822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22824 openbsd2.
[89] | openbsd2.
[89].
*)
22825 shlibpath_overrides_runpath
=no
22828 shlibpath_overrides_runpath
=yes
22832 shlibpath_overrides_runpath
=yes
22837 libname_spec
='$name'
22840 library_names_spec
='$libname${shared_ext} $libname.a'
22841 dynamic_linker
='OS/2 ld.exe'
22842 shlibpath_var
=LIBPATH
22845 osf3
* | osf4
* | osf5
*)
22849 soname_spec
='${libname}${release}${shared_ext}$major'
22850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851 shlibpath_var
=LD_LIBRARY_PATH
22852 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22853 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861 soname_spec
='${libname}${release}${shared_ext}$major'
22862 shlibpath_var
=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath
=yes
22864 hardcode_into_libs
=yes
22865 # ldd complains unless libraries are executable
22866 postinstall_cmds
='chmod +x $lib'
22871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22872 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22873 shlibpath_var
=LD_LIBRARY_PATH
22874 shlibpath_overrides_runpath
=yes
22875 if test "$with_gnu_ld" = yes; then
22883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22884 soname_spec
='${libname}${release}${shared_ext}$major'
22885 shlibpath_var
=LD_LIBRARY_PATH
22886 case $host_vendor in
22888 shlibpath_overrides_runpath
=no
22890 export_dynamic_flag_spec
='${wl}-Blargedynsym'
22891 runpath_var
=LD_RUN_PATH
22899 shlibpath_overrides_runpath
=no
22900 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22906 if test -d /usr
/nec
;then
22908 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22909 soname_spec
='$libname${shared_ext}.$major'
22910 shlibpath_var
=LD_LIBRARY_PATH
22914 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22915 version_type
=freebsd-elf
22918 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22919 soname_spec
='${libname}${release}${shared_ext}$major'
22920 shlibpath_var
=LD_LIBRARY_PATH
22921 hardcode_into_libs
=yes
22922 if test "$with_gnu_ld" = yes; then
22923 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22924 shlibpath_overrides_runpath
=no
22926 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22927 shlibpath_overrides_runpath
=yes
22930 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22934 sys_lib_dlsearch_path_spec
='/usr/lib'
22939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22940 soname_spec
='${libname}${release}${shared_ext}$major'
22941 shlibpath_var
=LD_LIBRARY_PATH
22948 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22949 echo "${ECHO_T}$dynamic_linker" >&6; }
22950 test "$dynamic_linker" = no
&& can_build_shared
=no
22952 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22953 if test "$GCC" = yes; then
22954 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22957 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22958 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22959 hardcode_action_F77
=
22960 if test -n "$hardcode_libdir_flag_spec_F77" || \
22961 test -n "$runpath_var_F77" || \
22962 test "X$hardcode_automatic_F77" = "Xyes" ; then
22964 # We can hardcode non-existant directories.
22965 if test "$hardcode_direct_F77" != no
&&
22966 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22967 # have to relink, otherwise we might link with an installed library
22968 # when we should be linking with a yet-to-be-installed one
22969 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22970 test "$hardcode_minus_L_F77" != no
; then
22971 # Linking always hardcodes the temporary library directory.
22972 hardcode_action_F77
=relink
22974 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22975 hardcode_action_F77
=immediate
22978 # We cannot hardcode anything, or else we can only hardcode existing
22980 hardcode_action_F77
=unsupported
22982 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22983 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22985 if test "$hardcode_action_F77" = relink
; then
22986 # Fast installation is not supported
22987 enable_fast_install
=no
22988 elif test "$shlibpath_overrides_runpath" = yes ||
22989 test "$enable_shared" = no
; then
22990 # Fast installation is not necessary
22991 enable_fast_install
=needless
22995 # The else clause should only fire when bootstrapping the
22996 # libtool distribution, otherwise you forgot to ship ltmain.sh
22997 # with your package, and you will get complaints that there are
22998 # no rules to generate ltmain.sh.
22999 if test -f "$ltmain"; then
23000 # See if we are running on zsh, and set the options which allow our commands through
23001 # without removal of \ escapes.
23002 if test -n "${ZSH_VERSION+set}" ; then
23003 setopt NO_GLOB_SUBST
23005 # Now quote all the things that may contain metacharacters while being
23006 # careful not to overquote the AC_SUBSTed values. We take copies of the
23007 # variables and quote the copies for generation of the libtool script.
23008 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23010 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23011 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23012 deplibs_check_method reload_flag reload_cmds need_locks \
23013 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23014 lt_cv_sys_global_symbol_to_c_name_address \
23015 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23016 old_postinstall_cmds old_postuninstall_cmds \
23020 lt_prog_compiler_wl_F77 \
23021 lt_prog_compiler_pic_F77 \
23022 lt_prog_compiler_static_F77 \
23023 lt_prog_compiler_no_builtin_flag_F77 \
23024 export_dynamic_flag_spec_F77 \
23025 thread_safe_flag_spec_F77 \
23026 whole_archive_flag_spec_F77 \
23027 enable_shared_with_static_runtimes_F77 \
23028 old_archive_cmds_F77 \
23029 old_archive_from_new_cmds_F77 \
23030 predep_objects_F77 \
23031 postdep_objects_F77 \
23034 compiler_lib_search_path_F77 \
23036 archive_expsym_cmds_F77 \
23037 postinstall_cmds_F77 \
23038 postuninstall_cmds_F77 \
23039 old_archive_from_expsyms_cmds_F77 \
23040 allow_undefined_flag_F77 \
23041 no_undefined_flag_F77 \
23042 export_symbols_cmds_F77 \
23043 hardcode_libdir_flag_spec_F77 \
23044 hardcode_libdir_flag_spec_ld_F77 \
23045 hardcode_libdir_separator_F77 \
23046 hardcode_automatic_F77 \
23048 module_expsym_cmds_F77 \
23049 lt_cv_prog_compiler_c_o_F77 \
23050 exclude_expsyms_F77 \
23051 include_expsyms_F77
; do
23054 old_archive_cmds_F77 | \
23055 old_archive_from_new_cmds_F77 | \
23056 archive_cmds_F77 | \
23057 archive_expsym_cmds_F77 | \
23058 module_cmds_F77 | \
23059 module_expsym_cmds_F77 | \
23060 old_archive_from_expsyms_cmds_F77 | \
23061 export_symbols_cmds_F77 | \
23062 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23063 postinstall_cmds | postuninstall_cmds | \
23064 old_postinstall_cmds | old_postuninstall_cmds | \
23065 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23066 # Double-quote double-evaled strings.
23067 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23070 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23076 *'\$0 --fallback-echo"')
23077 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23083 cat <<__EOF__ >> "$cfgfile"
23084 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23086 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23088 # Shell to use when invoking shell scripts.
23091 # Whether or not to build shared libraries.
23092 build_libtool_libs=$enable_shared
23094 # Whether or not to build static libraries.
23095 build_old_libs=$enable_static
23097 # Whether or not to add -lc for building shared libraries.
23098 build_libtool_need_lc=$archive_cmds_need_lc_F77
23100 # Whether or not to disallow shared libs when runtime libs are static
23101 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23103 # Whether or not to optimize for fast installation.
23104 fast_install=$enable_fast_install
23107 host_alias=$host_alias
23111 # The build system.
23112 build_alias=$build_alias
23116 # An echo program that does not interpret backslashes.
23121 AR_FLAGS=$lt_AR_FLAGS
23126 # LTCC compiler flags.
23127 LTCFLAGS=$lt_LTCFLAGS
23129 # A language-specific compiler.
23130 CC=$lt_compiler_F77
23132 # Is the compiler the GNU C compiler?
23138 # The linker used to build libraries.
23141 # Whether we need hard or soft links.
23144 # A BSD-compatible nm program.
23147 # A symbol stripping program
23150 # Used to examine libraries when file_magic_cmd begins "file"
23151 MAGIC_CMD=$MAGIC_CMD
23153 # Used on cygwin: DLL creation program.
23156 # Used on cygwin: object dumper.
23159 # Used on cygwin: assembler.
23162 # The name of the directory that contains temporary libtool files.
23165 # How to create reloadable object files.
23166 reload_flag=$lt_reload_flag
23167 reload_cmds=$lt_reload_cmds
23169 # How to pass a linker flag through the compiler.
23170 wl=$lt_lt_prog_compiler_wl_F77
23172 # Object file suffix (normally "o").
23173 objext="$ac_objext"
23175 # Old archive suffix (normally "a").
23178 # Shared library suffix (normally ".so").
23179 shrext_cmds='$shrext_cmds'
23181 # Executable file suffix (normally "").
23184 # Additional compiler flags for building library objects.
23185 pic_flag=$lt_lt_prog_compiler_pic_F77
23188 # What is the maximum length of a command?
23189 max_cmd_len=$lt_cv_sys_max_cmd_len
23191 # Does compiler simultaneously support -c and -o options?
23192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23194 # Must we lock files when doing compilation?
23195 need_locks=$lt_need_locks
23197 # Do we need the lib prefix for modules?
23198 need_lib_prefix=$need_lib_prefix
23200 # Do we need a version for libraries?
23201 need_version=$need_version
23203 # Whether dlopen is supported.
23204 dlopen_support=$enable_dlopen
23206 # Whether dlopen of programs is supported.
23207 dlopen_self=$enable_dlopen_self
23209 # Whether dlopen of statically linked programs is supported.
23210 dlopen_self_static=$enable_dlopen_self_static
23212 # Compiler flag to prevent dynamic linking.
23213 link_static_flag=$lt_lt_prog_compiler_static_F77
23215 # Compiler flag to turn off builtin functions.
23216 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23218 # Compiler flag to allow reflexive dlopens.
23219 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23221 # Compiler flag to generate shared objects directly from archives.
23222 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23224 # Compiler flag to generate thread-safe objects.
23225 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23227 # Library versioning type.
23228 version_type=$version_type
23230 # Format of library name prefix.
23231 libname_spec=$lt_libname_spec
23233 # List of archive names. First name is the real one, the rest are links.
23234 # The last name is the one that the linker finds with -lNAME.
23235 library_names_spec=$lt_library_names_spec
23237 # The coded name of the library, if different from the real name.
23238 soname_spec=$lt_soname_spec
23240 # Commands used to build and install an old-style archive.
23242 old_archive_cmds=$lt_old_archive_cmds_F77
23243 old_postinstall_cmds=$lt_old_postinstall_cmds
23244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23246 # Create an old-style archive from a shared archive.
23247 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23249 # Create a temporary old-style archive to link instead of a shared archive.
23250 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23252 # Commands used to build and install a shared archive.
23253 archive_cmds=$lt_archive_cmds_F77
23254 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23255 postinstall_cmds=$lt_postinstall_cmds
23256 postuninstall_cmds=$lt_postuninstall_cmds
23258 # Commands used to build a loadable module (assumed same as above if empty)
23259 module_cmds=$lt_module_cmds_F77
23260 module_expsym_cmds=$lt_module_expsym_cmds_F77
23262 # Commands to strip libraries.
23263 old_striplib=$lt_old_striplib
23264 striplib=$lt_striplib
23266 # Dependencies to place before the objects being linked to create a
23268 predep_objects=$lt_predep_objects_F77
23270 # Dependencies to place after the objects being linked to create a
23272 postdep_objects=$lt_postdep_objects_F77
23274 # Dependencies to place before the objects being linked to create a
23276 predeps=$lt_predeps_F77
23278 # Dependencies to place after the objects being linked to create a
23280 postdeps=$lt_postdeps_F77
23282 # The library search path used internally by the compiler when linking
23283 # a shared library.
23284 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23286 # Method to check whether dependent libraries are shared objects.
23287 deplibs_check_method=$lt_deplibs_check_method
23289 # Command to use when deplibs_check_method == file_magic.
23290 file_magic_cmd=$lt_file_magic_cmd
23292 # Flag that allows shared libraries with undefined symbols to be built.
23293 allow_undefined_flag=$lt_allow_undefined_flag_F77
23295 # Flag that forces no undefined symbols.
23296 no_undefined_flag=$lt_no_undefined_flag_F77
23298 # Commands used to finish a libtool library installation in a directory.
23299 finish_cmds=$lt_finish_cmds
23301 # Same as above, but a single script fragment to be evaled but not shown.
23302 finish_eval=$lt_finish_eval
23304 # Take the output of nm and produce a listing of raw symbols and C names.
23305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23307 # Transform the output of nm in a proper C declaration
23308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23310 # Transform the output of nm in a C name address pair
23311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23313 # This is the shared library runtime path variable.
23314 runpath_var=$runpath_var
23316 # This is the shared library path variable.
23317 shlibpath_var=$shlibpath_var
23319 # Is shlibpath searched before the hard-coded library search path?
23320 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23322 # How to hardcode a shared library path into an executable.
23323 hardcode_action=$hardcode_action_F77
23325 # Whether we should hardcode library paths into libraries.
23326 hardcode_into_libs=$hardcode_into_libs
23328 # Flag to hardcode \$libdir into a binary during linking.
23329 # This must work even if \$libdir does not exist.
23330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23332 # If ld is used when linking, flag to hardcode \$libdir into
23333 # a binary during linking. This must work even if \$libdir does
23335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23337 # Whether we need a single -rpath flag with a separated argument.
23338 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23340 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23341 # resulting binary.
23342 hardcode_direct=$hardcode_direct_F77
23344 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23345 # resulting binary.
23346 hardcode_minus_L=$hardcode_minus_L_F77
23348 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23349 # the resulting binary.
23350 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23352 # Set to yes if building a shared library automatically hardcodes DIR into the library
23353 # and all subsequent libraries and executables linked against it.
23354 hardcode_automatic=$hardcode_automatic_F77
23356 # Variables whose values should be saved in libtool wrapper scripts and
23357 # restored at relink time.
23358 variables_saved_for_relink="$variables_saved_for_relink"
23360 # Whether libtool must link a program against all its dependency libraries.
23361 link_all_deplibs=$link_all_deplibs_F77
23363 # Compile-time system search path for libraries
23364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23366 # Run-time system search path for libraries
23367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23369 # Fix the shell variable \$srcfile for the compiler.
23370 fix_srcfile_path="$fix_srcfile_path_F77"
23372 # Set to yes if exported symbols are required.
23373 always_export_symbols=$always_export_symbols_F77
23375 # The commands to list exported symbols.
23376 export_symbols_cmds=$lt_export_symbols_cmds_F77
23378 # The commands to extract the exported symbol list from a shared archive.
23379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23381 # Symbols that should not be listed in the preloaded symbols.
23382 exclude_expsyms=$lt_exclude_expsyms_F77
23384 # Symbols that must always be exported.
23385 include_expsyms=$lt_include_expsyms_F77
23387 # ### END LIBTOOL TAG CONFIG: $tagname
23393 # If there is no Makefile yet, we rely on a make rule to execute
23394 # `config.status --recheck' to rerun these tests and create the
23395 # libtool script then.
23396 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23397 if test -f "$ltmain_in"; then
23398 test -f Makefile
&& make "$ltmain"
23404 ac_cpp
='$CPP $CPPFLAGS'
23405 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23406 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23407 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23417 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23419 ac_cpp
='$CPP $CPPFLAGS'
23420 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23421 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23422 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23425 # Source file extension for Java test sources.
23428 # Object file extension for compiled Java test sources.
23432 # Code to be used in simple compile tests
23433 lt_simple_compile_test_code
="class foo {}\n"
23435 # Code to be used in simple link tests
23436 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
23438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23440 # If no C compiler was specified, use CC.
23443 # If no C compiler flags were specified, use CFLAGS.
23444 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
23446 # Allow CC to be a program name with arguments.
23450 # save warnings/boilerplate of simple test code
23451 ac_outfile
=conftest.
$ac_objext
23452 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
23453 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23454 _lt_compiler_boilerplate
=`cat conftest.err`
23457 ac_outfile
=conftest.
$ac_objext
23458 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
23459 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23460 _lt_linker_boilerplate
=`cat conftest.err`
23464 # Allow CC to be a program name with arguments.
23469 for cc_temp
in $compiler""; do
23471 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
23472 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
23477 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23480 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23481 archive_cmds_need_lc_GCJ
=no
23483 old_archive_cmds_GCJ
=$old_archive_cmds
23486 lt_prog_compiler_no_builtin_flag_GCJ
=
23488 if test "$GCC" = yes; then
23489 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
23492 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23493 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23494 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23495 echo $ECHO_N "(cached) $ECHO_C" >&6
23497 lt_cv_prog_compiler_rtti_exceptions
=no
23498 ac_outfile
=conftest.
$ac_objext
23499 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23500 lt_compiler_flag
="-fno-rtti -fno-exceptions"
23501 # Insert the option either (1) after the last *FLAGS variable, or
23502 # (2) before a word containing "conftest.", or (3) at the end.
23503 # Note that $ac_compile itself does not contain backslashes and begins
23504 # with a dollar sign (not a hyphen), so the echo should work correctly.
23505 # The option is referenced via a variable to avoid confusing sed.
23506 lt_compile
=`echo "$ac_compile" | $SED \
23507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23509 -e 's:$: $lt_compiler_flag:'`
23510 (eval echo "\"\$as_me:23510: $lt_compile\"" >&5)
23511 (eval "$lt_compile" 2>conftest.err
)
23513 cat conftest.err
>&5
23514 echo "$as_me:23514: \$? = $ac_status" >&5
23515 if (exit $ac_status) && test -s "$ac_outfile"; then
23516 # The compiler can only warn and ignore the option if not recognized
23517 # So say no if there are warnings other than the usual output.
23518 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
23519 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23520 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23521 lt_cv_prog_compiler_rtti_exceptions
=yes
23527 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23528 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23530 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
23531 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23538 lt_prog_compiler_wl_GCJ
=
23539 lt_prog_compiler_pic_GCJ
=
23540 lt_prog_compiler_static_GCJ
=
23542 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23543 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23545 if test "$GCC" = yes; then
23546 lt_prog_compiler_wl_GCJ
='-Wl,'
23547 lt_prog_compiler_static_GCJ
='-static'
23551 # All AIX code is PIC.
23552 if test "$host_cpu" = ia64
; then
23553 # AIX 5 now supports IA64 processor
23554 lt_prog_compiler_static_GCJ
='-Bstatic'
23559 # FIXME: we need at least 68020 code to build shared libraries, but
23560 # adding the `-m68020' flag to GCC prevents building anything better,
23562 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
23565 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
23566 # PIC is the default for these OSes.
23569 mingw
* | pw32
* | os2
*)
23570 # This hack is so that the source file can tell whether it is being
23571 # built for inclusion in a dll (and should export symbols for example).
23572 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
23575 darwin
* | rhapsody
*)
23576 # PIC is the default on this platform
23577 # Common symbols not allowed in MH_DYLIB files
23578 lt_prog_compiler_pic_GCJ
='-fno-common'
23582 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23583 # Instead, we relocate shared libraries at runtime.
23587 # Just because we use GCC doesn't mean we suddenly get shared libraries
23588 # on systems that don't support them.
23589 lt_prog_compiler_can_build_shared_GCJ
=no
23594 if test -d /usr
/nec
; then
23595 lt_prog_compiler_pic_GCJ
=-Kconform_pic
23600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23601 # not for PA HP-UX.
23607 lt_prog_compiler_pic_GCJ
='-fPIC'
23613 lt_prog_compiler_pic_GCJ
='-fPIC'
23617 # PORTME Check for flag to pass linker flags through the system compiler.
23620 lt_prog_compiler_wl_GCJ
='-Wl,'
23621 if test "$host_cpu" = ia64
; then
23622 # AIX 5 now supports IA64 processor
23623 lt_prog_compiler_static_GCJ
='-Bstatic'
23625 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
23629 # PIC is the default on this platform
23630 # Common symbols not allowed in MH_DYLIB files
23631 case $cc_basename in
23633 lt_prog_compiler_pic_GCJ
='-qnocommon'
23634 lt_prog_compiler_wl_GCJ
='-Wl,'
23639 mingw
* | pw32
* | os2
*)
23640 # This hack is so that the source file can tell whether it is being
23641 # built for inclusion in a dll (and should export symbols for example).
23642 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
23645 hpux9
* | hpux10
* | hpux11
*)
23646 lt_prog_compiler_wl_GCJ
='-Wl,'
23647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23648 # not for PA HP-UX.
23654 lt_prog_compiler_pic_GCJ
='+Z'
23657 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23658 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
23661 irix5
* | irix6
* | nonstopux
*)
23662 lt_prog_compiler_wl_GCJ
='-Wl,'
23663 # PIC (with -KPIC) is the default.
23664 lt_prog_compiler_static_GCJ
='-non_shared'
23668 lt_prog_compiler_pic_GCJ
='-KPIC'
23669 lt_prog_compiler_static_GCJ
='-Bstatic'
23673 case $cc_basename in
23675 lt_prog_compiler_wl_GCJ
='-Wl,'
23676 lt_prog_compiler_pic_GCJ
='-KPIC'
23677 lt_prog_compiler_static_GCJ
='-static'
23679 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
23680 # Portland Group compilers (*not* the Pentium gcc compiler,
23681 # which looks to be a dead project)
23682 lt_prog_compiler_wl_GCJ
='-Wl,'
23683 lt_prog_compiler_pic_GCJ
='-fpic'
23684 lt_prog_compiler_static_GCJ
='-Bstatic'
23687 lt_prog_compiler_wl_GCJ
='-Wl,'
23688 # All Alpha code is PIC.
23689 lt_prog_compiler_static_GCJ
='-non_shared'
23694 osf3
* | osf4
* | osf5
*)
23695 lt_prog_compiler_wl_GCJ
='-Wl,'
23696 # All OSF/1 code is PIC.
23697 lt_prog_compiler_static_GCJ
='-non_shared'
23701 lt_prog_compiler_pic_GCJ
='-KPIC'
23702 lt_prog_compiler_static_GCJ
='-Bstatic'
23703 case $cc_basename in
23704 f77
* | f90
* | f95
*)
23705 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
23707 lt_prog_compiler_wl_GCJ
='-Wl,';;
23712 lt_prog_compiler_wl_GCJ
='-Qoption ld '
23713 lt_prog_compiler_pic_GCJ
='-PIC'
23714 lt_prog_compiler_static_GCJ
='-Bstatic'
23717 sysv4 | sysv4.2uw2
* | sysv4.3
*)
23718 lt_prog_compiler_wl_GCJ
='-Wl,'
23719 lt_prog_compiler_pic_GCJ
='-KPIC'
23720 lt_prog_compiler_static_GCJ
='-Bstatic'
23724 if test -d /usr
/nec
;then
23725 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
23726 lt_prog_compiler_static_GCJ
='-Bstatic'
23730 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
23731 lt_prog_compiler_wl_GCJ
='-Wl,'
23732 lt_prog_compiler_pic_GCJ
='-KPIC'
23733 lt_prog_compiler_static_GCJ
='-Bstatic'
23737 lt_prog_compiler_wl_GCJ
='-Wl,'
23738 lt_prog_compiler_can_build_shared_GCJ
=no
23742 lt_prog_compiler_pic_GCJ
='-pic'
23743 lt_prog_compiler_static_GCJ
='-Bstatic'
23747 lt_prog_compiler_can_build_shared_GCJ
=no
23752 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23753 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23756 # Check to make sure the PIC flag actually works.
23758 if test -n "$lt_prog_compiler_pic_GCJ"; then
23760 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23761 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23762 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23765 lt_prog_compiler_pic_works_GCJ
=no
23766 ac_outfile
=conftest.
$ac_objext
23767 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23768 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
23769 # Insert the option either (1) after the last *FLAGS variable, or
23770 # (2) before a word containing "conftest.", or (3) at the end.
23771 # Note that $ac_compile itself does not contain backslashes and begins
23772 # with a dollar sign (not a hyphen), so the echo should work correctly.
23773 # The option is referenced via a variable to avoid confusing sed.
23774 lt_compile
=`echo "$ac_compile" | $SED \
23775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23777 -e 's:$: $lt_compiler_flag:'`
23778 (eval echo "\"\$as_me:23778: $lt_compile\"" >&5)
23779 (eval "$lt_compile" 2>conftest.err
)
23781 cat conftest.err
>&5
23782 echo "$as_me:23782: \$? = $ac_status" >&5
23783 if (exit $ac_status) && test -s "$ac_outfile"; then
23784 # The compiler can only warn and ignore the option if not recognized
23785 # So say no if there are warnings other than the usual output.
23786 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
23787 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23788 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23789 lt_prog_compiler_pic_works_GCJ
=yes
23795 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23796 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23798 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
23799 case $lt_prog_compiler_pic_GCJ in
23801 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
23804 lt_prog_compiler_pic_GCJ
=
23805 lt_prog_compiler_can_build_shared_GCJ
=no
23810 # For platforms which do not support PIC, -DPIC is meaningless:
23812 lt_prog_compiler_pic_GCJ
=
23815 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
23820 # Check to make sure the static flag actually works.
23822 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
23823 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23824 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23825 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
23828 lt_prog_compiler_static_works_GCJ
=no
23829 save_LDFLAGS
="$LDFLAGS"
23830 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
23831 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
23832 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
23833 # The linker can only warn and ignore the option if not recognized
23834 # So say no if there are warnings
23835 if test -s conftest.err
; then
23836 # Append any errors to the config.log.
23837 cat conftest.err
1>&5
23838 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
23839 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23840 if diff conftest.exp conftest.er2
>/dev
/null
; then
23841 lt_prog_compiler_static_works_GCJ
=yes
23844 lt_prog_compiler_static_works_GCJ
=yes
23848 LDFLAGS
="$save_LDFLAGS"
23851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23852 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23854 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
23857 lt_prog_compiler_static_GCJ
=
23861 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23862 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23863 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23864 echo $ECHO_N "(cached) $ECHO_C" >&6
23866 lt_cv_prog_compiler_c_o_GCJ
=no
23867 $rm -r conftest
2>/dev
/null
23871 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23873 lt_compiler_flag
="-o out/conftest2.$ac_objext"
23874 # Insert the option either (1) after the last *FLAGS variable, or
23875 # (2) before a word containing "conftest.", or (3) at the end.
23876 # Note that $ac_compile itself does not contain backslashes and begins
23877 # with a dollar sign (not a hyphen), so the echo should work correctly.
23878 lt_compile
=`echo "$ac_compile" | $SED \
23879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23881 -e 's:$: $lt_compiler_flag:'`
23882 (eval echo "\"\$as_me:23882: $lt_compile\"" >&5)
23883 (eval "$lt_compile" 2>out
/conftest.err
)
23885 cat out
/conftest.err
>&5
23886 echo "$as_me:23886: \$? = $ac_status" >&5
23887 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
23889 # The compiler can only warn and ignore the option if not recognized
23890 # So say no if there are warnings
23891 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
23892 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
23893 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
23894 lt_cv_prog_compiler_c_o_GCJ
=yes
23899 # SGI C++ compiler will create directory out/ii_files/ for
23900 # template instantiation
23901 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
23902 $rm out
/* && rmdir out
23908 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23909 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23912 hard_links
="nottested"
23913 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
23914 # do not overwrite the value of need_locks provided by the user
23915 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23916 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23919 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23921 ln conftest.a conftest.b
2>&5 || hard_links
=no
23922 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23923 { echo "$as_me:$LINENO: result: $hard_links" >&5
23924 echo "${ECHO_T}$hard_links" >&6; }
23925 if test "$hard_links" = no
; then
23926 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23927 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23934 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23938 allow_undefined_flag_GCJ
=
23939 enable_shared_with_static_runtimes_GCJ
=no
23941 archive_expsym_cmds_GCJ
=
23942 old_archive_From_new_cmds_GCJ
=
23943 old_archive_from_expsyms_cmds_GCJ
=
23944 export_dynamic_flag_spec_GCJ
=
23945 whole_archive_flag_spec_GCJ
=
23946 thread_safe_flag_spec_GCJ
=
23947 hardcode_libdir_flag_spec_GCJ
=
23948 hardcode_libdir_flag_spec_ld_GCJ
=
23949 hardcode_libdir_separator_GCJ
=
23950 hardcode_direct_GCJ
=no
23951 hardcode_minus_L_GCJ
=no
23952 hardcode_shlibpath_var_GCJ
=unsupported
23953 link_all_deplibs_GCJ
=unknown
23954 hardcode_automatic_GCJ
=no
23956 module_expsym_cmds_GCJ
=
23957 always_export_symbols_GCJ
=no
23958 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23959 # include_expsyms should be a list of space-separated symbols to be *always*
23960 # included in the symbol list
23961 include_expsyms_GCJ
=
23962 # exclude_expsyms can be an extended regexp of symbols to exclude
23963 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23964 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23965 # as well as any symbol that contains `d'.
23966 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
23967 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23968 # platforms (ab)use it in PIC code, but their linkers get confused if
23969 # the symbol is explicitly referenced. Since portable code cannot
23970 # rely on this symbol name, it's probably fine to never include it in
23971 # preloaded symbol tables.
23972 extract_expsyms_cmds
=
23973 # Just being paranoid about ensuring that cc_basename is set.
23974 for cc_temp
in $compiler""; do
23976 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
23977 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
23982 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23985 cygwin
* | mingw
* | pw32
*)
23986 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23987 # When not using gcc, we currently assume that we are using
23988 # Microsoft Visual C++.
23989 if test "$GCC" != yes; then
23994 # we just hope/assume this is gcc and not c89 (= MSVC++)
24003 if test "$with_gnu_ld" = yes; then
24004 # If archive_cmds runs LD, not CC, wlarc should be empty
24007 # Set some defaults for GNU ld with shared library support. These
24008 # are reset later if shared libraries are not supported. Putting them
24009 # here allows them to be overridden if necessary.
24010 runpath_var
=LD_RUN_PATH
24011 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
24012 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
24013 # ancient GNU ld didn't support --whole-archive et. al.
24014 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
24015 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24017 whole_archive_flag_spec_GCJ
=
24019 supports_anon_versioning
=no
24020 case `$LD -v 2>/dev/null` in
24021 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
24022 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
24023 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
24024 *\
2.11.
*) ;; # other 2.11 versions
24025 *) supports_anon_versioning
=yes ;;
24028 # See if GNU ld supports shared libraries.
24030 aix3
* | aix4
* | aix5
*)
24031 # On AIX/PPC, the GNU linker is very broken
24032 if test "$host_cpu" != ia64
; then
24036 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24037 *** to be unable to reliably create shared libraries on AIX.
24038 *** Therefore, libtool is disabling shared libraries support. If you
24039 *** really care for shared libraries, you may want to modify your PATH
24040 *** so that a non-GNU linker is found, and then restart.
24047 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)'
24048 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24049 hardcode_minus_L_GCJ
=yes
24051 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24052 # that the semantics of dynamic libraries on AmigaOS, at least up
24053 # to version 4, is to share data among multiple programs linked
24054 # with the same dynamic library. Since this doesn't match the
24055 # behavior of shared libraries on other platforms, we can't use
24061 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24062 allow_undefined_flag_GCJ
=unsupported
24063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24064 # support --undefined. This deserves some investigation. FIXME
24065 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24071 cygwin
* | mingw
* | pw32
*)
24072 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24073 # as there is no search path for DLLs.
24074 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24075 allow_undefined_flag_GCJ
=unsupported
24076 always_export_symbols_GCJ
=no
24077 enable_shared_with_static_runtimes_GCJ
=yes
24078 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24080 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24081 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24082 # If the export-symbols file already is a .def file (1st line
24083 # is EXPORTS), use it as is; otherwise, prepend...
24084 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24085 cp $export_symbols $output_objdir/$soname.def;
24087 echo EXPORTS > $output_objdir/$soname.def;
24088 cat $export_symbols >> $output_objdir/$soname.def;
24090 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24097 hardcode_direct_GCJ
=no
24098 hardcode_shlibpath_var_GCJ
=no
24099 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24100 export_dynamic_flag_spec_GCJ
='${wl}-E'
24101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24102 # Instead, shared libraries are loaded at an image base (0x10000000 by
24103 # default) and relocated if they conflict, which is a slow very memory
24104 # consuming and fragmenting process. To avoid this, we pick a random,
24105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24107 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'
24108 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'
24112 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24114 case $cc_basename,$host_cpu in
24115 pgcc
*) # Portland Group C compiler
24116 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'
24117 tmp_addflag
=' $pic_flag'
24119 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24120 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'
24121 tmp_addflag
=' $pic_flag -Mnomain' ;;
24122 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24123 tmp_addflag
=' -i_dynamic' ;;
24124 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24125 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24126 ifc
* | ifort
*) # Intel Fortran compiler
24127 tmp_addflag
=' -nofor_main' ;;
24129 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24131 if test $supports_anon_versioning = yes; then
24132 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24134 $echo "local: *; };" >> $output_objdir/$libname.ver~
24135 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24143 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24144 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24147 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24148 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24153 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24157 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24158 *** create shared libraries on Solaris systems. Therefore, libtool
24159 *** is disabling shared libraries support. We urge you to upgrade GNU
24160 *** binutils to release 2.9.1 or newer. Another option is to modify
24161 *** your PATH or compiler configuration so that the native linker is
24162 *** used, and then restart.
24165 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24166 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24167 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24173 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24174 case `$LD -v 2>&1` in
24175 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24179 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24180 *** reliably create shared libraries on SCO systems. Therefore, libtool
24181 *** is disabling shared libraries support. We urge you to upgrade GNU
24182 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24183 *** your PATH or compiler configuration so that the native linker is
24184 *** used, and then restart.
24189 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24190 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24191 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24192 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24201 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24203 hardcode_direct_GCJ
=yes
24204 hardcode_shlibpath_var_GCJ
=no
24208 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24209 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24210 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24217 if test "$ld_shlibs_GCJ" = no
; then
24219 hardcode_libdir_flag_spec_GCJ
=
24220 export_dynamic_flag_spec_GCJ
=
24221 whole_archive_flag_spec_GCJ
=
24224 # PORTME fill in a description of your system's linker (not GNU ld)
24227 allow_undefined_flag_GCJ
=unsupported
24228 always_export_symbols_GCJ
=yes
24229 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'
24230 # Note: this linker hardcodes the directories in LIBPATH if there
24231 # are no directories specified by -L.
24232 hardcode_minus_L_GCJ
=yes
24233 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24234 # Neither direct hardcoding nor static linking is supported with a
24236 hardcode_direct_GCJ
=unsupported
24241 if test "$host_cpu" = ia64
; then
24242 # On IA64, the linker does run time linking by default, so we don't
24243 # have to do anything special.
24244 aix_use_runtimelinking
=no
24245 exp_sym_flag
='-Bexport'
24248 # If we're using GNU nm, then we don't want the "-C" option.
24249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24250 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24251 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'
24253 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'
24255 aix_use_runtimelinking
=no
24257 # Test if we are trying to use run time linking or normal
24258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24259 # need to do runtime linking.
24260 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24261 for ld_flag
in $LDFLAGS; do
24262 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24263 aix_use_runtimelinking
=yes
24270 exp_sym_flag
='-bexport'
24271 no_entry_flag
='-bnoentry'
24274 # When large executables or shared objects are built, AIX ld can
24275 # have problems creating the table of contents. If linking a library
24276 # or program results in "error TOC overflow" add -mminimal-toc to
24277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24280 archive_cmds_GCJ
=''
24281 hardcode_direct_GCJ
=yes
24282 hardcode_libdir_separator_GCJ
=':'
24283 link_all_deplibs_GCJ
=yes
24285 if test "$GCC" = yes; then
24286 case $host_os in aix4.
[012]|aix4.
[012].
*)
24287 # We only want to do this on AIX 4.2 and lower, the check
24288 # below for broken collect2 doesn't work under 4.3+
24289 collect2name
=`${CC} -print-prog-name=collect2`
24290 if test -f "$collect2name" && \
24291 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24293 # We have reworked collect2
24294 hardcode_direct_GCJ
=yes
24296 # We have old collect2
24297 hardcode_direct_GCJ
=unsupported
24298 # It fails to find uninstalled libraries when the uninstalled
24299 # path is not listed in the libpath. Setting hardcode_minus_L
24300 # to unsupported forces relinking
24301 hardcode_minus_L_GCJ
=yes
24302 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24303 hardcode_libdir_separator_GCJ
=
24307 shared_flag
='-shared'
24308 if test "$aix_use_runtimelinking" = yes; then
24309 shared_flag
="$shared_flag "'${wl}-G'
24313 if test "$host_cpu" = ia64
; then
24314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24315 # chokes on -Wl,-G. The following line is correct:
24318 if test "$aix_use_runtimelinking" = yes; then
24319 shared_flag
='${wl}-G'
24321 shared_flag
='${wl}-bM:SRE'
24326 # It seems that -bexpall does not export symbols beginning with
24327 # underscore (_), so it is better to generate a list of symbols to export.
24328 always_export_symbols_GCJ
=yes
24329 if test "$aix_use_runtimelinking" = yes; then
24330 # Warning - without using the other runtime loading flags (-brtl),
24331 # -berok will link without error, but may produce a broken library.
24332 allow_undefined_flag_GCJ
='-berok'
24333 # Determine the default libpath from the value encoded in an empty executable.
24334 cat >conftest.
$ac_ext <<_ACEOF
24337 cat confdefs.h
>>conftest.
$ac_ext
24338 cat >>conftest.
$ac_ext <<_ACEOF
24339 /* end confdefs.h. */
24349 rm -f conftest.
$ac_objext conftest
$ac_exeext
24350 if { (ac_try
="$ac_link"
24351 case "(($ac_try" in
24352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_link") 2>conftest.er1
24358 grep -v '^ *+' conftest.er1 >conftest.err
24360 cat conftest.err >&5
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } &&
24363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24364 { (case "(($ac_try" in
24365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24366 *) ac_try_echo
=$ac_try;;
24368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24369 (eval "$ac_try") 2>&5
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; } &&
24373 { ac_try
='test -s conftest$ac_exeext'
24374 { (case "(($ac_try" in
24375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24376 *) ac_try_echo=$ac_try;;
24378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379 (eval "$ac_try") 2>&5
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; }; then
24384 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24386 # Check for a 64-bit object if we didn't find anything.
24387 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; }
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24396 rm -f core conftest.err conftest.$ac_objext \
24397 conftest$ac_exeext conftest.$ac_ext
24398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24400 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24401 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"
24403 if test "$host_cpu" = ia64; then
24404 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24405 allow_undefined_flag_GCJ="-z nodefs"
24406 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"
24408 # Determine the default libpath from the value encoded in an empty executable.
24409 cat >conftest.$ac_ext <<_ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h. */
24424 rm -f conftest.$ac_objext conftest$ac_exeext
24425 if { (ac_try="$ac_link"
24426 case "(($ac_try" in
24427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24428 *) ac_try_echo
=$ac_try;;
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_link") 2>conftest.er1
24433 grep -v '^ *+' conftest.er1
>conftest.err
24435 cat conftest.err
>&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } &&
24438 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24439 { (case "(($ac_try" in
24440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24441 *) ac_try_echo=$ac_try;;
24443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24444 (eval "$ac_try") 2>&5
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; } &&
24448 { ac_try='test -s conftest$ac_exeext'
24449 { (case "(($ac_try" in
24450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24451 *) ac_try_echo
=$ac_try;;
24453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24454 (eval "$ac_try") 2>&5
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); }; }; then
24459 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24461 # Check for a 64-bit object if we didn't find anything.
24462 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; }
24465 echo "$as_me: failed program was:" >&5
24466 sed 's/^/| /' conftest.
$ac_ext >&5
24471 rm -f core conftest.err conftest.
$ac_objext \
24472 conftest
$ac_exeext conftest.
$ac_ext
24473 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
24475 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
24476 # Warning - without using the other run time loading flags,
24477 # -berok will link without error, but may produce a broken library.
24478 no_undefined_flag_GCJ
=' ${wl}-bernotok'
24479 allow_undefined_flag_GCJ
=' ${wl}-berok'
24480 # Exported symbols can be pulled into shared objects from archives
24481 whole_archive_flag_spec_GCJ
='$convenience'
24482 archive_cmds_need_lc_GCJ
=yes
24483 # This is similar to how AIX traditionally builds its shared libraries.
24484 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'
24490 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)'
24491 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24492 hardcode_minus_L_GCJ
=yes
24493 # see comment about different semantics on the GNU ld section
24498 export_dynamic_flag_spec_GCJ
=-rdynamic
24501 cygwin
* | mingw
* | pw32
*)
24502 # When not using gcc, we currently assume that we are using
24503 # Microsoft Visual C++.
24504 # hardcode_libdir_flag_spec is actually meaningless, as there is
24505 # no search path for DLLs.
24506 hardcode_libdir_flag_spec_GCJ
=' '
24507 allow_undefined_flag_GCJ
=unsupported
24508 # Tell ltmain to make .lib files, not .a files.
24510 # Tell ltmain to make .dll files, not .so files.
24512 # FIXME: Setting linknames here is a bad hack.
24513 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24514 # The linker will automatically build a .lib file if we build a DLL.
24515 old_archive_From_new_cmds_GCJ
='true'
24516 # FIXME: Should let the user specify the lib program.
24517 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
24518 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
24519 enable_shared_with_static_runtimes_GCJ
=yes
24522 darwin
* | rhapsody
*)
24524 rhapsody
* | darwin1.
[012])
24525 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
24528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24529 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24531 case ${MACOSX_DEPLOYMENT_TARGET} in
24533 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24536 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
24542 archive_cmds_need_lc_GCJ
=no
24543 hardcode_direct_GCJ
=no
24544 hardcode_automatic_GCJ
=yes
24545 hardcode_shlibpath_var_GCJ
=unsupported
24546 whole_archive_flag_spec_GCJ
=''
24547 link_all_deplibs_GCJ
=yes
24548 if test "$GCC" = yes ; then
24549 output_verbose_link_cmd
='echo'
24550 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24551 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24553 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}'
24554 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}'
24556 case $cc_basename in
24558 output_verbose_link_cmd
='echo'
24559 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24560 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24562 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}'
24563 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}'
24573 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24574 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24575 hardcode_shlibpath_var_GCJ
=no
24582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24583 # support. Future versions do this automatically, but an explicit c++rt0.o
24584 # does not break anything, and helps significantly (at the cost of a little
24587 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24588 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24589 hardcode_direct_GCJ
=yes
24590 hardcode_shlibpath_var_GCJ
=no
24593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24595 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24596 hardcode_direct_GCJ
=yes
24597 hardcode_minus_L_GCJ
=yes
24598 hardcode_shlibpath_var_GCJ
=no
24601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24602 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
24603 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24604 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24605 hardcode_direct_GCJ
=yes
24606 hardcode_shlibpath_var_GCJ
=no
24610 if test "$GCC" = yes; then
24611 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'
24613 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'
24615 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
24616 hardcode_libdir_separator_GCJ
=:
24617 hardcode_direct_GCJ
=yes
24619 # hardcode_minus_L: Not really in the search PATH,
24620 # but as the default location of the library.
24621 hardcode_minus_L_GCJ
=yes
24622 export_dynamic_flag_spec_GCJ
='${wl}-E'
24626 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
24627 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24629 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24631 if test "$with_gnu_ld" = no
; then
24632 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
24633 hardcode_libdir_separator_GCJ
=:
24635 hardcode_direct_GCJ
=yes
24636 export_dynamic_flag_spec_GCJ
='${wl}-E'
24638 # hardcode_minus_L: Not really in the search PATH,
24639 # but as the default location of the library.
24640 hardcode_minus_L_GCJ
=yes
24645 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
24648 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24651 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24654 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24660 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24663 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24666 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24670 if test "$with_gnu_ld" = no
; then
24671 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
24672 hardcode_libdir_separator_GCJ
=:
24676 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
24677 hardcode_direct_GCJ
=no
24678 hardcode_shlibpath_var_GCJ
=no
24681 hardcode_direct_GCJ
=yes
24682 export_dynamic_flag_spec_GCJ
='${wl}-E'
24684 # hardcode_minus_L: Not really in the search PATH,
24685 # but as the default location of the library.
24686 hardcode_minus_L_GCJ
=yes
24692 irix5
* | irix6
* | nonstopux
*)
24693 if test "$GCC" = yes; then
24694 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'
24696 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'
24697 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
24699 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
24700 hardcode_libdir_separator_GCJ
=:
24701 link_all_deplibs_GCJ
=yes
24705 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24706 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24708 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24710 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24711 hardcode_direct_GCJ
=yes
24712 hardcode_shlibpath_var_GCJ
=no
24716 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24717 hardcode_direct_GCJ
=yes
24718 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
24719 hardcode_libdir_separator_GCJ
=:
24720 hardcode_shlibpath_var_GCJ
=no
24724 hardcode_direct_GCJ
=yes
24725 hardcode_shlibpath_var_GCJ
=no
24726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24727 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24728 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24729 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24730 export_dynamic_flag_spec_GCJ
='${wl}-E'
24733 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
24734 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24735 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24738 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24739 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24746 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24747 hardcode_minus_L_GCJ
=yes
24748 allow_undefined_flag_GCJ
=unsupported
24749 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'
24750 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24754 if test "$GCC" = yes; then
24755 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
24756 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'
24758 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
24759 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'
24761 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
24762 hardcode_libdir_separator_GCJ
=:
24765 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
24766 if test "$GCC" = yes; then
24767 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
24768 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'
24769 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
24771 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
24772 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'
24773 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~
24774 $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'
24776 # Both c and cxx compiler support -rpath directly
24777 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
24779 hardcode_libdir_separator_GCJ
=:
24783 no_undefined_flag_GCJ
=' -z text'
24784 if test "$GCC" = yes; then
24786 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24787 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24788 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24791 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24792 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24795 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24796 hardcode_shlibpath_var_GCJ
=no
24798 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
24800 # The compiler driver will combine linker options so we
24801 # cannot just pass the convience library names through
24802 # without $wl, iff we do not link with $LD.
24803 # Luckily, gcc supports the same syntax we need for Sun Studio.
24804 # Supported since Solaris 2.6 (maybe 2.5.1?)
24807 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
24809 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' ;;
24812 link_all_deplibs_GCJ
=yes
24816 if test "x$host_vendor" = xsequent
; then
24817 # Use $CC to link under sequent, because it throws in some extra .o
24818 # files that make .init and .fini sections work.
24819 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24821 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24823 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24824 hardcode_direct_GCJ
=yes
24825 hardcode_minus_L_GCJ
=yes
24826 hardcode_shlibpath_var_GCJ
=no
24830 case $host_vendor in
24832 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24833 hardcode_direct_GCJ
=yes # is this really true???
24836 ## LD is ld it makes a PLAMLIB
24837 ## CC just makes a GrossModule.
24838 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24839 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
24840 hardcode_direct_GCJ
=no
24843 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24844 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
24847 runpath_var
='LD_RUN_PATH'
24848 hardcode_shlibpath_var_GCJ
=no
24852 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24853 hardcode_shlibpath_var_GCJ
=no
24854 export_dynamic_flag_spec_GCJ
='-Bexport'
24858 if test -d /usr
/nec
; then
24859 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24860 hardcode_shlibpath_var_GCJ
=no
24861 runpath_var
=LD_RUN_PATH
24862 hardcode_runpath_var
=yes
24867 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
24868 no_undefined_flag_GCJ
='${wl}-z,text'
24869 archive_cmds_need_lc_GCJ
=no
24870 hardcode_shlibpath_var_GCJ
=no
24871 runpath_var
='LD_RUN_PATH'
24873 if test "$GCC" = yes; then
24874 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24875 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24877 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24878 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24882 sysv5
* | sco3.2v5
* | sco5v6
*)
24883 # Note: We can NOT use -z defs as we might desire, because we do not
24884 # link with -lc, and that would cause any symbols used from libc to
24885 # always be unresolved, which means just about no library would
24886 # ever link correctly. If we're not using GNU ld we use -z text
24887 # though, which does catch some bad symbols but isn't as heavy-handed
24889 no_undefined_flag_GCJ
='${wl}-z,text'
24890 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
24891 archive_cmds_need_lc_GCJ
=no
24892 hardcode_shlibpath_var_GCJ
=no
24893 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24894 hardcode_libdir_separator_GCJ
=':'
24895 link_all_deplibs_GCJ
=yes
24896 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
24897 runpath_var
='LD_RUN_PATH'
24899 if test "$GCC" = yes; then
24900 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24901 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24903 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24904 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24909 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24910 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24911 hardcode_shlibpath_var_GCJ
=no
24920 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24921 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24922 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
24925 # Do we need to explicitly link libc?
24927 case "x$archive_cmds_need_lc_GCJ" in
24929 # Assume -lc should be added
24930 archive_cmds_need_lc_GCJ
=yes
24932 if test "$enable_shared" = yes && test "$GCC" = yes; then
24933 case $archive_cmds_GCJ in
24935 # FIXME: we may have to deal with multi-command sequences.
24938 # Test whether the compiler implicitly links with -lc since on some
24939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24940 # to ld, don't add -lc before -lgcc.
24941 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24942 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24944 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24947 (eval $ac_compile) 2>&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } 2>conftest.err
; then
24953 libobjs
=conftest.
$ac_objext
24955 wl
=$lt_prog_compiler_wl_GCJ
24956 pic_flag
=$lt_prog_compiler_pic_GCJ
24962 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
24963 allow_undefined_flag_GCJ
=
24964 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24965 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }
24970 archive_cmds_need_lc_GCJ
=no
24972 archive_cmds_need_lc_GCJ
=yes
24974 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
24976 cat conftest.err
1>&5
24979 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24980 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24987 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24988 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24989 library_names_spec
=
24990 libname_spec
='lib$name'
24994 postuninstall_cmds
=
24998 shlibpath_overrides_runpath
=unknown
25000 dynamic_linker
="$host_os ld.so"
25001 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
25002 if test "$GCC" = yes; then
25003 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25004 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
25005 # if the path contains ";" then we assume it to be the separator
25006 # otherwise default to the standard path separator (i.e. ":") - it is
25007 # assumed that no part of a normal pathname contains ";" but that should
25008 # okay in the real world where ";" in dirpaths is itself problematic.
25009 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25011 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25014 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
25016 need_lib_prefix
=unknown
25017 hardcode_into_libs
=no
25019 # when you set need_version to no, make sure it does not cause -set_version
25020 # flags to be left without arguments
25021 need_version
=unknown
25026 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
25027 shlibpath_var
=LIBPATH
25029 # AIX 3 has no versioning support, so we append a major version to the name.
25030 soname_spec
='${libname}${release}${shared_ext}$major'
25037 hardcode_into_libs
=yes
25038 if test "$host_cpu" = ia64
; then
25039 # AIX 5 supports IA64
25040 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25041 shlibpath_var
=LD_LIBRARY_PATH
25043 # With GCC up to 2.95.x, collect2 would create an import file
25044 # for dependence libraries. The import file would start with
25045 # the line `#! .'. This would cause the generated library to
25046 # depend on `.', always an invalid library. This was fixed in
25047 # development snapshots of GCC prior to 3.0.
25049 aix4 | aix4.
[01] | aix4.
[01].
*)
25050 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25052 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25055 can_build_shared
=no
25059 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25060 # soname into executable. Probably we can add versioning support to
25061 # collect2, so additional links can be useful in future.
25062 if test "$aix_use_runtimelinking" = yes; then
25063 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25064 # instead of lib<name>.a to let people know that these are not
25065 # typical AIX shared libraries.
25066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25068 # We preserve .a as extension for shared libraries through AIX4.2
25069 # and later when we are not doing run time linking.
25070 library_names_spec
='${libname}${release}.a $libname.a'
25071 soname_spec
='${libname}${release}${shared_ext}$major'
25073 shlibpath_var
=LIBPATH
25078 library_names_spec
='$libname.ixlibrary $libname.a'
25079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25080 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'
25084 library_names_spec
='${libname}${shared_ext}'
25085 dynamic_linker
="$host_os ld.so"
25086 shlibpath_var
=LIBRARY_PATH
25092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25093 soname_spec
='${libname}${release}${shared_ext}$major'
25094 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25095 shlibpath_var
=LD_LIBRARY_PATH
25096 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25097 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25098 # the default ld.so.conf also contains /usr/contrib/lib and
25099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25100 # libtool to hard-code these into programs
25103 cygwin
* | mingw
* | pw32
*)
25104 version_type
=windows
25109 case $GCC,$host_os in
25110 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25111 library_names_spec
='$libname.dll.a'
25112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25113 postinstall_cmds
='base_file=`basename \${file}`~
25114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25115 dldir=$destdir/`dirname \$dlpath`~
25116 test -d \$dldir || mkdir -p \$dldir~
25117 $install_prog $dir/$dlname \$dldir/$dlname~
25118 chmod a+x \$dldir/$dlname'
25119 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25120 dlpath=$dir/\$dldll~
25122 shlibpath_overrides_runpath
=yes
25126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25127 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25128 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25131 # MinGW DLLs use traditional 'lib' prefix
25132 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25133 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25134 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25135 # It is most probably a Windows format PATH printed by
25136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25137 # path with ; separators, and with drive letters. We can handle the
25138 # drive letters (cygwin fileutils understands them), so leave them,
25139 # especially as we might pass files found there to a mingw objdump,
25140 # which wouldn't understand a cygwinified path. Ahh.
25141 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25143 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25147 # pw32 DLLs use 'pw' prefix rather than 'lib'
25148 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25154 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25157 dynamic_linker
='Win32 ld.exe'
25158 # FIXME: first we should search . and the directory the executable is in
25162 darwin
* | rhapsody
*)
25163 dynamic_linker
="$host_os dyld"
25164 version_type
=darwin
25167 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25168 soname_spec
='${libname}${release}${major}$shared_ext'
25169 shlibpath_overrides_runpath
=yes
25170 shlibpath_var
=DYLD_LIBRARY_PATH
25171 shrext_cmds
='.dylib'
25172 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25173 if test "$GCC" = yes; then
25174 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"`
25176 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25178 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25186 soname_spec
='${libname}${release}${shared_ext}$major'
25187 shlibpath_var
=LD_LIBRARY_PATH
25198 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25199 soname_spec
='${libname}${release}${shared_ext}$major'
25200 shlibpath_var
=LD_LIBRARY_PATH
25201 shlibpath_overrides_runpath
=no
25202 hardcode_into_libs
=yes
25203 dynamic_linker
='GNU ld.so'
25206 freebsd
* | dragonfly
*)
25207 # DragonFly does not have aout. When/if they implement a new
25208 # versioning mechanism, adjust this.
25209 if test -x /usr
/bin
/objformat
; then
25210 objformat
=`/usr/bin/objformat`
25213 freebsd
[123]*) objformat
=aout
;;
25214 *) objformat
=elf
;;
25217 version_type
=freebsd-
$objformat
25218 case $version_type in
25220 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25225 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25229 shlibpath_var
=LD_LIBRARY_PATH
25232 shlibpath_overrides_runpath
=yes
25234 freebsd3.
[01]* | freebsdelf3.
[01]*)
25235 shlibpath_overrides_runpath
=yes
25236 hardcode_into_libs
=yes
25238 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25239 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25240 shlibpath_overrides_runpath
=no
25241 hardcode_into_libs
=yes
25243 freebsd
*) # from 4.6 on
25244 shlibpath_overrides_runpath
=yes
25245 hardcode_into_libs
=yes
25254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25255 soname_spec
='${libname}${release}${shared_ext}$major'
25256 shlibpath_var
=LD_LIBRARY_PATH
25257 hardcode_into_libs
=yes
25260 hpux9
* | hpux10
* | hpux11
*)
25261 # Give a soname corresponding to the major version so that dld.sl refuses to
25262 # link against other versions.
25269 hardcode_into_libs
=yes
25270 dynamic_linker
="$host_os dld.so"
25271 shlibpath_var
=LD_LIBRARY_PATH
25272 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25273 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25274 soname_spec
='${libname}${release}${shared_ext}$major'
25275 if test "X$HPUX_IA64_MODE" = X32
; then
25276 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25278 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25280 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25284 hardcode_into_libs
=yes
25285 dynamic_linker
="$host_os dld.sl"
25286 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25287 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25289 soname_spec
='${libname}${release}${shared_ext}$major'
25290 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25291 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25295 dynamic_linker
="$host_os dld.sl"
25296 shlibpath_var
=SHLIB_PATH
25297 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25299 soname_spec
='${libname}${release}${shared_ext}$major'
25302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25303 postinstall_cmds
='chmod 555 $lib'
25310 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25311 soname_spec
='${libname}${release}${shared_ext}$major'
25312 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
25313 shlibpath_var
=LD_LIBRARY_PATH
25314 shlibpath_overrides_runpath
=no
25315 hardcode_into_libs
=yes
25318 irix5
* | irix6
* | nonstopux
*)
25320 nonstopux
*) version_type
=nonstopux
;;
25322 if test "$lt_cv_prog_gnu_ld" = yes; then
25330 soname_spec
='${libname}${release}${shared_ext}$major'
25331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25333 irix5
* | nonstopux
*)
25334 libsuff
= shlibsuff
=
25337 case $LD in # libtool.m4 will add one of these switches to LD
25338 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
25339 libsuff
= shlibsuff
= libmagic
=32-bit;;
25340 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
25341 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
25342 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
25343 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
25344 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
25348 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
25349 shlibpath_overrides_runpath
=no
25350 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25351 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
25352 hardcode_into_libs
=yes
25355 # No shared lib support for Linux oldld, aout, or coff.
25356 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
25360 # This must be Linux ELF.
25365 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25366 soname_spec
='${libname}${release}${shared_ext}$major'
25367 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25368 shlibpath_var
=LD_LIBRARY_PATH
25369 shlibpath_overrides_runpath
=no
25370 # This implies no fast_install, which is unacceptable.
25371 # Some rework will be needed to allow for fast_install
25372 # before this can be enabled.
25373 hardcode_into_libs
=yes
25375 # Append ld.so.conf contents to the search path
25376 if test -f /etc
/ld.so.conf
; then
25377 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' ' '`
25378 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
25381 # We used to test for /lib/ld.so.1 and disable shared libraries on
25382 # powerpc, because MkLinux only supported shared libraries with the
25383 # GNU dynamic linker. Since this was broken with cross compilers,
25384 # most powerpc-linux boxes support dynamic linking these days and
25385 # people can always --disable-shared, the test was removed, and we
25386 # assume the GNU/Linux dynamic linker is in use.
25387 dynamic_linker
='GNU/Linux ld.so'
25394 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25395 soname_spec
='${libname}${release}${shared_ext}$major'
25396 shlibpath_var
=LD_LIBRARY_PATH
25397 shlibpath_overrides_runpath
=no
25398 hardcode_into_libs
=yes
25399 dynamic_linker
='GNU ld.so'
25406 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25407 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25408 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25409 dynamic_linker
='NetBSD (a.out) ld.so'
25411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25412 soname_spec
='${libname}${release}${shared_ext}$major'
25413 dynamic_linker
='NetBSD ld.elf_so'
25415 shlibpath_var
=LD_LIBRARY_PATH
25416 shlibpath_overrides_runpath
=yes
25417 hardcode_into_libs
=yes
25422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25423 shlibpath_var
=LD_LIBRARY_PATH
25424 shlibpath_overrides_runpath
=yes
25431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25432 soname_spec
='${libname}${release}${shared_ext}$major'
25433 shlibpath_var
=LD_LIBRARY_PATH
25434 shlibpath_overrides_runpath
=yes
25439 sys_lib_dlsearch_path_spec
="/usr/lib"
25441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25443 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
25444 *) need_version
=no
;;
25446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25447 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25448 shlibpath_var
=LD_LIBRARY_PATH
25449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25451 openbsd2.
[89] | openbsd2.
[89].
*)
25452 shlibpath_overrides_runpath
=no
25455 shlibpath_overrides_runpath
=yes
25459 shlibpath_overrides_runpath
=yes
25464 libname_spec
='$name'
25467 library_names_spec
='$libname${shared_ext} $libname.a'
25468 dynamic_linker
='OS/2 ld.exe'
25469 shlibpath_var
=LIBPATH
25472 osf3
* | osf4
* | osf5
*)
25476 soname_spec
='${libname}${release}${shared_ext}$major'
25477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25478 shlibpath_var
=LD_LIBRARY_PATH
25479 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25480 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
25487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25488 soname_spec
='${libname}${release}${shared_ext}$major'
25489 shlibpath_var
=LD_LIBRARY_PATH
25490 shlibpath_overrides_runpath
=yes
25491 hardcode_into_libs
=yes
25492 # ldd complains unless libraries are executable
25493 postinstall_cmds
='chmod +x $lib'
25498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25499 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25500 shlibpath_var
=LD_LIBRARY_PATH
25501 shlibpath_overrides_runpath
=yes
25502 if test "$with_gnu_ld" = yes; then
25510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25511 soname_spec
='${libname}${release}${shared_ext}$major'
25512 shlibpath_var
=LD_LIBRARY_PATH
25513 case $host_vendor in
25515 shlibpath_overrides_runpath
=no
25517 export_dynamic_flag_spec
='${wl}-Blargedynsym'
25518 runpath_var
=LD_RUN_PATH
25526 shlibpath_overrides_runpath
=no
25527 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
25533 if test -d /usr
/nec
;then
25535 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25536 soname_spec
='$libname${shared_ext}.$major'
25537 shlibpath_var
=LD_LIBRARY_PATH
25541 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
25542 version_type
=freebsd-elf
25545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25546 soname_spec
='${libname}${release}${shared_ext}$major'
25547 shlibpath_var
=LD_LIBRARY_PATH
25548 hardcode_into_libs
=yes
25549 if test "$with_gnu_ld" = yes; then
25550 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25551 shlibpath_overrides_runpath
=no
25553 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
25554 shlibpath_overrides_runpath
=yes
25557 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
25561 sys_lib_dlsearch_path_spec
='/usr/lib'
25566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25567 soname_spec
='${libname}${release}${shared_ext}$major'
25568 shlibpath_var
=LD_LIBRARY_PATH
25575 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25576 echo "${ECHO_T}$dynamic_linker" >&6; }
25577 test "$dynamic_linker" = no
&& can_build_shared
=no
25579 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
25580 if test "$GCC" = yes; then
25581 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25584 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25585 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25586 hardcode_action_GCJ
=
25587 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25588 test -n "$runpath_var_GCJ" || \
25589 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25591 # We can hardcode non-existant directories.
25592 if test "$hardcode_direct_GCJ" != no
&&
25593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25594 # have to relink, otherwise we might link with an installed library
25595 # when we should be linking with a yet-to-be-installed one
25596 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25597 test "$hardcode_minus_L_GCJ" != no
; then
25598 # Linking always hardcodes the temporary library directory.
25599 hardcode_action_GCJ
=relink
25601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25602 hardcode_action_GCJ
=immediate
25605 # We cannot hardcode anything, or else we can only hardcode existing
25607 hardcode_action_GCJ
=unsupported
25609 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25610 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25612 if test "$hardcode_action_GCJ" = relink
; then
25613 # Fast installation is not supported
25614 enable_fast_install
=no
25615 elif test "$shlibpath_overrides_runpath" = yes ||
25616 test "$enable_shared" = no
; then
25617 # Fast installation is not necessary
25618 enable_fast_install
=needless
25622 # The else clause should only fire when bootstrapping the
25623 # libtool distribution, otherwise you forgot to ship ltmain.sh
25624 # with your package, and you will get complaints that there are
25625 # no rules to generate ltmain.sh.
25626 if test -f "$ltmain"; then
25627 # See if we are running on zsh, and set the options which allow our commands through
25628 # without removal of \ escapes.
25629 if test -n "${ZSH_VERSION+set}" ; then
25630 setopt NO_GLOB_SUBST
25632 # Now quote all the things that may contain metacharacters while being
25633 # careful not to overquote the AC_SUBSTed values. We take copies of the
25634 # variables and quote the copies for generation of the libtool script.
25635 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25639 deplibs_check_method reload_flag reload_cmds need_locks \
25640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25641 lt_cv_sys_global_symbol_to_c_name_address \
25642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25643 old_postinstall_cmds old_postuninstall_cmds \
25647 lt_prog_compiler_wl_GCJ \
25648 lt_prog_compiler_pic_GCJ \
25649 lt_prog_compiler_static_GCJ \
25650 lt_prog_compiler_no_builtin_flag_GCJ \
25651 export_dynamic_flag_spec_GCJ \
25652 thread_safe_flag_spec_GCJ \
25653 whole_archive_flag_spec_GCJ \
25654 enable_shared_with_static_runtimes_GCJ \
25655 old_archive_cmds_GCJ \
25656 old_archive_from_new_cmds_GCJ \
25657 predep_objects_GCJ \
25658 postdep_objects_GCJ \
25661 compiler_lib_search_path_GCJ \
25663 archive_expsym_cmds_GCJ \
25664 postinstall_cmds_GCJ \
25665 postuninstall_cmds_GCJ \
25666 old_archive_from_expsyms_cmds_GCJ \
25667 allow_undefined_flag_GCJ \
25668 no_undefined_flag_GCJ \
25669 export_symbols_cmds_GCJ \
25670 hardcode_libdir_flag_spec_GCJ \
25671 hardcode_libdir_flag_spec_ld_GCJ \
25672 hardcode_libdir_separator_GCJ \
25673 hardcode_automatic_GCJ \
25675 module_expsym_cmds_GCJ \
25676 lt_cv_prog_compiler_c_o_GCJ \
25677 exclude_expsyms_GCJ \
25678 include_expsyms_GCJ
; do
25681 old_archive_cmds_GCJ | \
25682 old_archive_from_new_cmds_GCJ | \
25683 archive_cmds_GCJ | \
25684 archive_expsym_cmds_GCJ | \
25685 module_cmds_GCJ | \
25686 module_expsym_cmds_GCJ | \
25687 old_archive_from_expsyms_cmds_GCJ | \
25688 export_symbols_cmds_GCJ | \
25689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25690 postinstall_cmds | postuninstall_cmds | \
25691 old_postinstall_cmds | old_postuninstall_cmds | \
25692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
25693 # Double-quote double-evaled strings.
25694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25703 *'\$0 --fallback-echo"')
25704 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25710 cat <<__EOF__ >> "$cfgfile"
25711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25715 # Shell to use when invoking shell scripts.
25718 # Whether or not to build shared libraries.
25719 build_libtool_libs=$enable_shared
25721 # Whether or not to build static libraries.
25722 build_old_libs=$enable_static
25724 # Whether or not to add -lc for building shared libraries.
25725 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25727 # Whether or not to disallow shared libs when runtime libs are static
25728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25730 # Whether or not to optimize for fast installation.
25731 fast_install=$enable_fast_install
25734 host_alias=$host_alias
25738 # The build system.
25739 build_alias=$build_alias
25743 # An echo program that does not interpret backslashes.
25748 AR_FLAGS=$lt_AR_FLAGS
25753 # LTCC compiler flags.
25754 LTCFLAGS=$lt_LTCFLAGS
25756 # A language-specific compiler.
25757 CC=$lt_compiler_GCJ
25759 # Is the compiler the GNU C compiler?
25765 # The linker used to build libraries.
25768 # Whether we need hard or soft links.
25771 # A BSD-compatible nm program.
25774 # A symbol stripping program
25777 # Used to examine libraries when file_magic_cmd begins "file"
25778 MAGIC_CMD=$MAGIC_CMD
25780 # Used on cygwin: DLL creation program.
25783 # Used on cygwin: object dumper.
25786 # Used on cygwin: assembler.
25789 # The name of the directory that contains temporary libtool files.
25792 # How to create reloadable object files.
25793 reload_flag=$lt_reload_flag
25794 reload_cmds=$lt_reload_cmds
25796 # How to pass a linker flag through the compiler.
25797 wl=$lt_lt_prog_compiler_wl_GCJ
25799 # Object file suffix (normally "o").
25800 objext="$ac_objext"
25802 # Old archive suffix (normally "a").
25805 # Shared library suffix (normally ".so").
25806 shrext_cmds='$shrext_cmds'
25808 # Executable file suffix (normally "").
25811 # Additional compiler flags for building library objects.
25812 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25815 # What is the maximum length of a command?
25816 max_cmd_len=$lt_cv_sys_max_cmd_len
25818 # Does compiler simultaneously support -c and -o options?
25819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25821 # Must we lock files when doing compilation?
25822 need_locks=$lt_need_locks
25824 # Do we need the lib prefix for modules?
25825 need_lib_prefix=$need_lib_prefix
25827 # Do we need a version for libraries?
25828 need_version=$need_version
25830 # Whether dlopen is supported.
25831 dlopen_support=$enable_dlopen
25833 # Whether dlopen of programs is supported.
25834 dlopen_self=$enable_dlopen_self
25836 # Whether dlopen of statically linked programs is supported.
25837 dlopen_self_static=$enable_dlopen_self_static
25839 # Compiler flag to prevent dynamic linking.
25840 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25842 # Compiler flag to turn off builtin functions.
25843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25845 # Compiler flag to allow reflexive dlopens.
25846 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25848 # Compiler flag to generate shared objects directly from archives.
25849 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25851 # Compiler flag to generate thread-safe objects.
25852 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25854 # Library versioning type.
25855 version_type=$version_type
25857 # Format of library name prefix.
25858 libname_spec=$lt_libname_spec
25860 # List of archive names. First name is the real one, the rest are links.
25861 # The last name is the one that the linker finds with -lNAME.
25862 library_names_spec=$lt_library_names_spec
25864 # The coded name of the library, if different from the real name.
25865 soname_spec=$lt_soname_spec
25867 # Commands used to build and install an old-style archive.
25869 old_archive_cmds=$lt_old_archive_cmds_GCJ
25870 old_postinstall_cmds=$lt_old_postinstall_cmds
25871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25873 # Create an old-style archive from a shared archive.
25874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25876 # Create a temporary old-style archive to link instead of a shared archive.
25877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25879 # Commands used to build and install a shared archive.
25880 archive_cmds=$lt_archive_cmds_GCJ
25881 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25882 postinstall_cmds=$lt_postinstall_cmds
25883 postuninstall_cmds=$lt_postuninstall_cmds
25885 # Commands used to build a loadable module (assumed same as above if empty)
25886 module_cmds=$lt_module_cmds_GCJ
25887 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25889 # Commands to strip libraries.
25890 old_striplib=$lt_old_striplib
25891 striplib=$lt_striplib
25893 # Dependencies to place before the objects being linked to create a
25895 predep_objects=$lt_predep_objects_GCJ
25897 # Dependencies to place after the objects being linked to create a
25899 postdep_objects=$lt_postdep_objects_GCJ
25901 # Dependencies to place before the objects being linked to create a
25903 predeps=$lt_predeps_GCJ
25905 # Dependencies to place after the objects being linked to create a
25907 postdeps=$lt_postdeps_GCJ
25909 # The library search path used internally by the compiler when linking
25910 # a shared library.
25911 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25913 # Method to check whether dependent libraries are shared objects.
25914 deplibs_check_method=$lt_deplibs_check_method
25916 # Command to use when deplibs_check_method == file_magic.
25917 file_magic_cmd=$lt_file_magic_cmd
25919 # Flag that allows shared libraries with undefined symbols to be built.
25920 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25922 # Flag that forces no undefined symbols.
25923 no_undefined_flag=$lt_no_undefined_flag_GCJ
25925 # Commands used to finish a libtool library installation in a directory.
25926 finish_cmds=$lt_finish_cmds
25928 # Same as above, but a single script fragment to be evaled but not shown.
25929 finish_eval=$lt_finish_eval
25931 # Take the output of nm and produce a listing of raw symbols and C names.
25932 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25934 # Transform the output of nm in a proper C declaration
25935 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25937 # Transform the output of nm in a C name address pair
25938 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25940 # This is the shared library runtime path variable.
25941 runpath_var=$runpath_var
25943 # This is the shared library path variable.
25944 shlibpath_var=$shlibpath_var
25946 # Is shlibpath searched before the hard-coded library search path?
25947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25949 # How to hardcode a shared library path into an executable.
25950 hardcode_action=$hardcode_action_GCJ
25952 # Whether we should hardcode library paths into libraries.
25953 hardcode_into_libs=$hardcode_into_libs
25955 # Flag to hardcode \$libdir into a binary during linking.
25956 # This must work even if \$libdir does not exist.
25957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25959 # If ld is used when linking, flag to hardcode \$libdir into
25960 # a binary during linking. This must work even if \$libdir does
25962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25964 # Whether we need a single -rpath flag with a separated argument.
25965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25967 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25968 # resulting binary.
25969 hardcode_direct=$hardcode_direct_GCJ
25971 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25972 # resulting binary.
25973 hardcode_minus_L=$hardcode_minus_L_GCJ
25975 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25976 # the resulting binary.
25977 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25979 # Set to yes if building a shared library automatically hardcodes DIR into the library
25980 # and all subsequent libraries and executables linked against it.
25981 hardcode_automatic=$hardcode_automatic_GCJ
25983 # Variables whose values should be saved in libtool wrapper scripts and
25984 # restored at relink time.
25985 variables_saved_for_relink="$variables_saved_for_relink"
25987 # Whether libtool must link a program against all its dependency libraries.
25988 link_all_deplibs=$link_all_deplibs_GCJ
25990 # Compile-time system search path for libraries
25991 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25993 # Run-time system search path for libraries
25994 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25996 # Fix the shell variable \$srcfile for the compiler.
25997 fix_srcfile_path="$fix_srcfile_path_GCJ"
25999 # Set to yes if exported symbols are required.
26000 always_export_symbols=$always_export_symbols_GCJ
26002 # The commands to list exported symbols.
26003 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26005 # The commands to extract the exported symbol list from a shared archive.
26006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26008 # Symbols that should not be listed in the preloaded symbols.
26009 exclude_expsyms=$lt_exclude_expsyms_GCJ
26011 # Symbols that must always be exported.
26012 include_expsyms=$lt_include_expsyms_GCJ
26014 # ### END LIBTOOL TAG CONFIG: $tagname
26020 # If there is no Makefile yet, we rely on a make rule to execute
26021 # `config.status --recheck' to rerun these tests and create the
26022 # libtool script then.
26023 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26024 if test -f "$ltmain_in"; then
26025 test -f Makefile
&& make "$ltmain"
26031 ac_cpp
='$CPP $CPPFLAGS'
26032 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26045 ac_cpp
='$CPP $CPPFLAGS'
26046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26051 # Source file extension for RC test sources.
26054 # Object file extension for compiled RC test sources.
26058 # Code to be used in simple compile tests
26059 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26061 # Code to be used in simple link tests
26062 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26066 # If no C compiler was specified, use CC.
26069 # If no C compiler flags were specified, use CFLAGS.
26070 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26072 # Allow CC to be a program name with arguments.
26076 # save warnings/boilerplate of simple test code
26077 ac_outfile
=conftest.
$ac_objext
26078 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26079 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26080 _lt_compiler_boilerplate
=`cat conftest.err`
26083 ac_outfile
=conftest.
$ac_objext
26084 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26085 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26086 _lt_linker_boilerplate
=`cat conftest.err`
26090 # Allow CC to be a program name with arguments.
26095 for cc_temp
in $compiler""; do
26097 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26098 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26103 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26105 lt_cv_prog_compiler_c_o_RC
=yes
26107 # The else clause should only fire when bootstrapping the
26108 # libtool distribution, otherwise you forgot to ship ltmain.sh
26109 # with your package, and you will get complaints that there are
26110 # no rules to generate ltmain.sh.
26111 if test -f "$ltmain"; then
26112 # See if we are running on zsh, and set the options which allow our commands through
26113 # without removal of \ escapes.
26114 if test -n "${ZSH_VERSION+set}" ; then
26115 setopt NO_GLOB_SUBST
26117 # Now quote all the things that may contain metacharacters while being
26118 # careful not to overquote the AC_SUBSTed values. We take copies of the
26119 # variables and quote the copies for generation of the libtool script.
26120 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26124 deplibs_check_method reload_flag reload_cmds need_locks \
26125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26126 lt_cv_sys_global_symbol_to_c_name_address \
26127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26128 old_postinstall_cmds old_postuninstall_cmds \
26132 lt_prog_compiler_wl_RC \
26133 lt_prog_compiler_pic_RC \
26134 lt_prog_compiler_static_RC \
26135 lt_prog_compiler_no_builtin_flag_RC \
26136 export_dynamic_flag_spec_RC \
26137 thread_safe_flag_spec_RC \
26138 whole_archive_flag_spec_RC \
26139 enable_shared_with_static_runtimes_RC \
26140 old_archive_cmds_RC \
26141 old_archive_from_new_cmds_RC \
26142 predep_objects_RC \
26143 postdep_objects_RC \
26146 compiler_lib_search_path_RC \
26148 archive_expsym_cmds_RC \
26149 postinstall_cmds_RC \
26150 postuninstall_cmds_RC \
26151 old_archive_from_expsyms_cmds_RC \
26152 allow_undefined_flag_RC \
26153 no_undefined_flag_RC \
26154 export_symbols_cmds_RC \
26155 hardcode_libdir_flag_spec_RC \
26156 hardcode_libdir_flag_spec_ld_RC \
26157 hardcode_libdir_separator_RC \
26158 hardcode_automatic_RC \
26160 module_expsym_cmds_RC \
26161 lt_cv_prog_compiler_c_o_RC \
26162 exclude_expsyms_RC \
26163 include_expsyms_RC
; do
26166 old_archive_cmds_RC | \
26167 old_archive_from_new_cmds_RC | \
26168 archive_cmds_RC | \
26169 archive_expsym_cmds_RC | \
26171 module_expsym_cmds_RC | \
26172 old_archive_from_expsyms_cmds_RC | \
26173 export_symbols_cmds_RC | \
26174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26175 postinstall_cmds | postuninstall_cmds | \
26176 old_postinstall_cmds | old_postuninstall_cmds | \
26177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26178 # Double-quote double-evaled strings.
26179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26188 *'\$0 --fallback-echo"')
26189 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26195 cat <<__EOF__ >> "$cfgfile"
26196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26200 # Shell to use when invoking shell scripts.
26203 # Whether or not to build shared libraries.
26204 build_libtool_libs=$enable_shared
26206 # Whether or not to build static libraries.
26207 build_old_libs=$enable_static
26209 # Whether or not to add -lc for building shared libraries.
26210 build_libtool_need_lc=$archive_cmds_need_lc_RC
26212 # Whether or not to disallow shared libs when runtime libs are static
26213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26215 # Whether or not to optimize for fast installation.
26216 fast_install=$enable_fast_install
26219 host_alias=$host_alias
26223 # The build system.
26224 build_alias=$build_alias
26228 # An echo program that does not interpret backslashes.
26233 AR_FLAGS=$lt_AR_FLAGS
26238 # LTCC compiler flags.
26239 LTCFLAGS=$lt_LTCFLAGS
26241 # A language-specific compiler.
26244 # Is the compiler the GNU C compiler?
26250 # The linker used to build libraries.
26253 # Whether we need hard or soft links.
26256 # A BSD-compatible nm program.
26259 # A symbol stripping program
26262 # Used to examine libraries when file_magic_cmd begins "file"
26263 MAGIC_CMD=$MAGIC_CMD
26265 # Used on cygwin: DLL creation program.
26268 # Used on cygwin: object dumper.
26271 # Used on cygwin: assembler.
26274 # The name of the directory that contains temporary libtool files.
26277 # How to create reloadable object files.
26278 reload_flag=$lt_reload_flag
26279 reload_cmds=$lt_reload_cmds
26281 # How to pass a linker flag through the compiler.
26282 wl=$lt_lt_prog_compiler_wl_RC
26284 # Object file suffix (normally "o").
26285 objext="$ac_objext"
26287 # Old archive suffix (normally "a").
26290 # Shared library suffix (normally ".so").
26291 shrext_cmds='$shrext_cmds'
26293 # Executable file suffix (normally "").
26296 # Additional compiler flags for building library objects.
26297 pic_flag=$lt_lt_prog_compiler_pic_RC
26300 # What is the maximum length of a command?
26301 max_cmd_len=$lt_cv_sys_max_cmd_len
26303 # Does compiler simultaneously support -c and -o options?
26304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26306 # Must we lock files when doing compilation?
26307 need_locks=$lt_need_locks
26309 # Do we need the lib prefix for modules?
26310 need_lib_prefix=$need_lib_prefix
26312 # Do we need a version for libraries?
26313 need_version=$need_version
26315 # Whether dlopen is supported.
26316 dlopen_support=$enable_dlopen
26318 # Whether dlopen of programs is supported.
26319 dlopen_self=$enable_dlopen_self
26321 # Whether dlopen of statically linked programs is supported.
26322 dlopen_self_static=$enable_dlopen_self_static
26324 # Compiler flag to prevent dynamic linking.
26325 link_static_flag=$lt_lt_prog_compiler_static_RC
26327 # Compiler flag to turn off builtin functions.
26328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26330 # Compiler flag to allow reflexive dlopens.
26331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26333 # Compiler flag to generate shared objects directly from archives.
26334 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26336 # Compiler flag to generate thread-safe objects.
26337 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26339 # Library versioning type.
26340 version_type=$version_type
26342 # Format of library name prefix.
26343 libname_spec=$lt_libname_spec
26345 # List of archive names. First name is the real one, the rest are links.
26346 # The last name is the one that the linker finds with -lNAME.
26347 library_names_spec=$lt_library_names_spec
26349 # The coded name of the library, if different from the real name.
26350 soname_spec=$lt_soname_spec
26352 # Commands used to build and install an old-style archive.
26354 old_archive_cmds=$lt_old_archive_cmds_RC
26355 old_postinstall_cmds=$lt_old_postinstall_cmds
26356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26358 # Create an old-style archive from a shared archive.
26359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26361 # Create a temporary old-style archive to link instead of a shared archive.
26362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26364 # Commands used to build and install a shared archive.
26365 archive_cmds=$lt_archive_cmds_RC
26366 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26367 postinstall_cmds=$lt_postinstall_cmds
26368 postuninstall_cmds=$lt_postuninstall_cmds
26370 # Commands used to build a loadable module (assumed same as above if empty)
26371 module_cmds=$lt_module_cmds_RC
26372 module_expsym_cmds=$lt_module_expsym_cmds_RC
26374 # Commands to strip libraries.
26375 old_striplib=$lt_old_striplib
26376 striplib=$lt_striplib
26378 # Dependencies to place before the objects being linked to create a
26380 predep_objects=$lt_predep_objects_RC
26382 # Dependencies to place after the objects being linked to create a
26384 postdep_objects=$lt_postdep_objects_RC
26386 # Dependencies to place before the objects being linked to create a
26388 predeps=$lt_predeps_RC
26390 # Dependencies to place after the objects being linked to create a
26392 postdeps=$lt_postdeps_RC
26394 # The library search path used internally by the compiler when linking
26395 # a shared library.
26396 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26398 # Method to check whether dependent libraries are shared objects.
26399 deplibs_check_method=$lt_deplibs_check_method
26401 # Command to use when deplibs_check_method == file_magic.
26402 file_magic_cmd=$lt_file_magic_cmd
26404 # Flag that allows shared libraries with undefined symbols to be built.
26405 allow_undefined_flag=$lt_allow_undefined_flag_RC
26407 # Flag that forces no undefined symbols.
26408 no_undefined_flag=$lt_no_undefined_flag_RC
26410 # Commands used to finish a libtool library installation in a directory.
26411 finish_cmds=$lt_finish_cmds
26413 # Same as above, but a single script fragment to be evaled but not shown.
26414 finish_eval=$lt_finish_eval
26416 # Take the output of nm and produce a listing of raw symbols and C names.
26417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26419 # Transform the output of nm in a proper C declaration
26420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26422 # Transform the output of nm in a C name address pair
26423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26425 # This is the shared library runtime path variable.
26426 runpath_var=$runpath_var
26428 # This is the shared library path variable.
26429 shlibpath_var=$shlibpath_var
26431 # Is shlibpath searched before the hard-coded library search path?
26432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26434 # How to hardcode a shared library path into an executable.
26435 hardcode_action=$hardcode_action_RC
26437 # Whether we should hardcode library paths into libraries.
26438 hardcode_into_libs=$hardcode_into_libs
26440 # Flag to hardcode \$libdir into a binary during linking.
26441 # This must work even if \$libdir does not exist.
26442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26444 # If ld is used when linking, flag to hardcode \$libdir into
26445 # a binary during linking. This must work even if \$libdir does
26447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26449 # Whether we need a single -rpath flag with a separated argument.
26450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26453 # resulting binary.
26454 hardcode_direct=$hardcode_direct_RC
26456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26457 # resulting binary.
26458 hardcode_minus_L=$hardcode_minus_L_RC
26460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26461 # the resulting binary.
26462 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26464 # Set to yes if building a shared library automatically hardcodes DIR into the library
26465 # and all subsequent libraries and executables linked against it.
26466 hardcode_automatic=$hardcode_automatic_RC
26468 # Variables whose values should be saved in libtool wrapper scripts and
26469 # restored at relink time.
26470 variables_saved_for_relink="$variables_saved_for_relink"
26472 # Whether libtool must link a program against all its dependency libraries.
26473 link_all_deplibs=$link_all_deplibs_RC
26475 # Compile-time system search path for libraries
26476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26478 # Run-time system search path for libraries
26479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26481 # Fix the shell variable \$srcfile for the compiler.
26482 fix_srcfile_path="$fix_srcfile_path_RC"
26484 # Set to yes if exported symbols are required.
26485 always_export_symbols=$always_export_symbols_RC
26487 # The commands to list exported symbols.
26488 export_symbols_cmds=$lt_export_symbols_cmds_RC
26490 # The commands to extract the exported symbol list from a shared archive.
26491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26493 # Symbols that should not be listed in the preloaded symbols.
26494 exclude_expsyms=$lt_exclude_expsyms_RC
26496 # Symbols that must always be exported.
26497 include_expsyms=$lt_include_expsyms_RC
26499 # ### END LIBTOOL TAG CONFIG: $tagname
26505 # If there is no Makefile yet, we rely on a make rule to execute
26506 # `config.status --recheck' to rerun these tests and create the
26507 # libtool script then.
26508 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26509 if test -f "$ltmain_in"; then
26510 test -f Makefile
&& make "$ltmain"
26516 ac_cpp
='$CPP $CPPFLAGS'
26517 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26518 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26519 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26526 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26527 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26528 { (exit 1); exit 1; }; }
26532 # Append the new tag name to the list of available tags.
26533 if test -n "$tagname" ; then
26534 available_tags
="$available_tags $tagname"
26540 # Now substitute the updated list of available tags.
26541 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26542 mv "${ofile}T" "$ofile"
26546 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26547 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26548 { (exit 1); exit 1; }; }
26554 # This can be used to rebuild libtool when needed
26555 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
26557 # Always use our own libtool.
26558 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
26560 # Prevent multiple expansion
26582 if test "$lt_cv_dlopen_self" = "yes" ; then
26584 cat >>confdefs.h
<<\_ACEOF
26585 #define CAN_DLOPEN_SELF 1
26590 etags_version
=`$ETAGS --version 2>&1`
26591 case "$etags_version" in
26592 *Eexuberant
*) ETAGSFLAGS
="--language-force=c++" ;;
26593 *GNU\ Emacs
*) ETAGSFLAGS
="-l c++" ;;
26594 *) ETAGSFLAGS
="" ;;
26596 ETAGSFLAGS
=$ETAGSFLAGS
26599 if test "$WITH_LLVMGCCDIR" = "default" ; then
26600 LLVMGCC
="llvm-gcc${EXEEXT}"
26601 LLVMGXX
="llvm-g++${EXEEXT}"
26602 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26603 set dummy
$LLVMGCC; ac_word
=$2
26604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26606 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26607 echo $ECHO_N "(cached) $ECHO_C" >&6
26611 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
26614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26615 for as_dir
in $PATH
26618 test -z "$as_dir" && as_dir
=.
26619 for ac_exec_ext
in '' $ac_executable_extensions; do
26620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26621 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
26622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26632 LLVMGCC
=$ac_cv_path_LLVMGCC
26633 if test -n "$LLVMGCC"; then
26634 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26635 echo "${ECHO_T}$LLVMGCC" >&6; }
26637 { echo "$as_me:$LINENO: result: no" >&5
26638 echo "${ECHO_T}no" >&6; }
26642 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26643 set dummy
$LLVMGXX; ac_word
=$2
26644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26646 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26647 echo $ECHO_N "(cached) $ECHO_C" >&6
26651 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
26654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26655 for as_dir
in $PATH
26658 test -z "$as_dir" && as_dir
=.
26659 for ac_exec_ext
in '' $ac_executable_extensions; do
26660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26661 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
26662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26672 LLVMGXX
=$ac_cv_path_LLVMGXX
26673 if test -n "$LLVMGXX"; then
26674 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26675 echo "${ECHO_T}$LLVMGXX" >&6; }
26677 { echo "$as_me:$LINENO: result: no" >&5
26678 echo "${ECHO_T}no" >&6; }
26683 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26684 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26691 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26692 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26705 if test "$GCC" != "yes" && test "$ICC" != "yes"
26707 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26708 echo "$as_me: error: gcc|icc required but not found" >&2;}
26709 { (exit 1); exit 1; }; }
26712 if test "$GXX" != "yes" && test "$IXX" != "yes"
26714 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26715 echo "$as_me: error: g++|icc required but not found" >&2;}
26716 { (exit 1); exit 1; }; }
26719 if test "$GCC" = "yes"
26721 gccmajor
=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26722 if test "$gccmajor" -lt "3"
26724 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26725 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26726 { (exit 1); exit 1; }; }
26730 if test -z "$llvm_cv_gnu_make_command"
26732 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26733 echo "$as_me: error: GNU Make required but not found" >&2;}
26734 { (exit 1); exit 1; }; }
26737 { echo "$as_me:$LINENO: result: ok" >&5
26738 echo "${ECHO_T}ok" >&6; }
26742 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26743 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26744 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26745 echo $ECHO_N "(cached) $ECHO_C" >&6
26747 ac_check_lib_save_LIBS
=$LIBS
26749 cat >conftest.
$ac_ext <<_ACEOF
26752 cat confdefs.h
>>conftest.
$ac_ext
26753 cat >>conftest.
$ac_ext <<_ACEOF
26754 /* end confdefs.h. */
26756 /* Override any GCC internal prototype to avoid an error.
26757 Use char because int might match the return type of a GCC
26758 builtin and then its argument prototype would still apply. */
26766 return elf_begin ();
26771 rm -f conftest.
$ac_objext conftest
$ac_exeext
26772 if { (ac_try
="$ac_link"
26773 case "(($ac_try" in
26774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26775 *) ac_try_echo=$ac_try;;
26777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778 (eval "$ac_link") 2>conftest.er1
26780 grep -v '^ *+' conftest.er1 >conftest.err
26782 cat conftest.err >&5
26783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); } &&
26785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26786 { (case "(($ac_try" in
26787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26788 *) ac_try_echo
=$ac_try;;
26790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26791 (eval "$ac_try") 2>&5
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; } &&
26795 { ac_try
='test -s conftest$ac_exeext'
26796 { (case "(($ac_try" in
26797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26798 *) ac_try_echo=$ac_try;;
26800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801 (eval "$ac_try") 2>&5
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; }; then
26805 ac_cv_lib_elf_elf_begin=yes
26807 echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26810 ac_cv_lib_elf_elf_begin=no
26813 rm -f core conftest.err conftest.$ac_objext \
26814 conftest$ac_exeext conftest.$ac_ext
26815 LIBS=$ac_check_lib_save_LIBS
26817 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26818 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26819 if test $ac_cv_lib_elf_elf_begin = yes; then
26820 cat >>confdefs.h <<_ACEOF
26821 #define HAVE_LIBELF 1
26829 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26830 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26831 if test "${ac_cv_lib_m_sin+set}" = set; then
26832 echo $ECHO_N "(cached) $ECHO_C" >&6
26834 ac_check_lib_save_LIBS=$LIBS
26836 cat >conftest.$ac_ext <<_ACEOF
26839 cat confdefs.h >>conftest.$ac_ext
26840 cat >>conftest.$ac_ext <<_ACEOF
26841 /* end confdefs.h. */
26843 /* Override any GCC internal prototype to avoid an error.
26844 Use char because int might match the return type of a GCC
26845 builtin and then its argument prototype would still apply. */
26858 rm -f conftest.$ac_objext conftest$ac_exeext
26859 if { (ac_try="$ac_link"
26860 case "(($ac_try" in
26861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26862 *) ac_try_echo
=$ac_try;;
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865 (eval "$ac_link") 2>conftest.er1
26867 grep -v '^ *+' conftest.er1
>conftest.err
26869 cat conftest.err
>&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
26872 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26873 { (case "(($ac_try" in
26874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26875 *) ac_try_echo=$ac_try;;
26877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26878 (eval "$ac_try") 2>&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; } &&
26882 { ac_try='test -s conftest$ac_exeext'
26883 { (case "(($ac_try" in
26884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26885 *) ac_try_echo
=$ac_try;;
26887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_try") 2>&5
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 ac_cv_lib_m_sin
=yes
26894 echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.
$ac_ext >&5
26900 rm -f core conftest.err conftest.
$ac_objext \
26901 conftest
$ac_exeext conftest.
$ac_ext
26902 LIBS
=$ac_check_lib_save_LIBS
26904 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26905 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26906 if test $ac_cv_lib_m_sin = yes; then
26907 cat >>confdefs.h
<<_ACEOF
26908 #define HAVE_LIBM 1
26915 if test "$llvm_cv_os_type" = "MingW" ; then
26917 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26918 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26919 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26920 echo $ECHO_N "(cached) $ECHO_C" >&6
26922 ac_check_lib_save_LIBS
=$LIBS
26923 LIBS
="-limagehlp $LIBS"
26924 cat >conftest.
$ac_ext <<_ACEOF
26927 cat confdefs.h
>>conftest.
$ac_ext
26928 cat >>conftest.
$ac_ext <<_ACEOF
26929 /* end confdefs.h. */
26940 rm -f conftest.
$ac_objext conftest
$ac_exeext
26941 if { (ac_try
="$ac_link"
26942 case "(($ac_try" in
26943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947 (eval "$ac_link") 2>conftest.er1
26949 grep -v '^ *+' conftest.er1 >conftest.err
26951 cat conftest.err >&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); } &&
26954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26955 { (case "(($ac_try" in
26956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26957 *) ac_try_echo
=$ac_try;;
26959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960 (eval "$ac_try") 2>&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); }; } &&
26964 { ac_try
='test -s conftest$ac_exeext'
26965 { (case "(($ac_try" in
26966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26967 *) ac_try_echo=$ac_try;;
26969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970 (eval "$ac_try") 2>&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; }; then
26974 ac_cv_lib_imagehlp_main=yes
26976 echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26979 ac_cv_lib_imagehlp_main=no
26982 rm -f core conftest.err conftest.$ac_objext \
26983 conftest$ac_exeext conftest.$ac_ext
26984 LIBS=$ac_check_lib_save_LIBS
26986 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26987 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26988 if test $ac_cv_lib_imagehlp_main = yes; then
26989 cat >>confdefs.h <<_ACEOF
26990 #define HAVE_LIBIMAGEHLP 1
26993 LIBS="-limagehlp $LIBS"
26998 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26999 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27000 if test "${ac_cv_lib_psapi_main+set}" = set; then
27001 echo $ECHO_N "(cached) $ECHO_C" >&6
27003 ac_check_lib_save_LIBS=$LIBS
27004 LIBS="-lpsapi $LIBS"
27005 cat >conftest.$ac_ext <<_ACEOF
27008 cat confdefs.h >>conftest.$ac_ext
27009 cat >>conftest.$ac_ext <<_ACEOF
27010 /* end confdefs.h. */
27021 rm -f conftest.$ac_objext conftest$ac_exeext
27022 if { (ac_try="$ac_link"
27023 case "(($ac_try" in
27024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27025 *) ac_try_echo
=$ac_try;;
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_link") 2>conftest.er1
27030 grep -v '^ *+' conftest.er1
>conftest.err
27032 cat conftest.err
>&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } &&
27035 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27036 { (case "(($ac_try" in
27037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27038 *) ac_try_echo=$ac_try;;
27040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041 (eval "$ac_try") 2>&5
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); }; } &&
27045 { ac_try='test -s conftest$ac_exeext'
27046 { (case "(($ac_try" in
27047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27048 *) ac_try_echo
=$ac_try;;
27050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051 (eval "$ac_try") 2>&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; }; then
27055 ac_cv_lib_psapi_main
=yes
27057 echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.
$ac_ext >&5
27060 ac_cv_lib_psapi_main
=no
27063 rm -f core conftest.err conftest.
$ac_objext \
27064 conftest
$ac_exeext conftest.
$ac_ext
27065 LIBS
=$ac_check_lib_save_LIBS
27067 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27068 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27069 if test $ac_cv_lib_psapi_main = yes; then
27070 cat >>confdefs.h
<<_ACEOF
27071 #define HAVE_LIBPSAPI 1
27074 LIBS
="-lpsapi $LIBS"
27080 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27081 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27082 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27085 ac_func_search_save_LIBS
=$LIBS
27086 cat >conftest.
$ac_ext <<_ACEOF
27089 cat confdefs.h
>>conftest.
$ac_ext
27090 cat >>conftest.
$ac_ext <<_ACEOF
27091 /* end confdefs.h. */
27093 /* Override any GCC internal prototype to avoid an error.
27094 Use char because int might match the return type of a GCC
27095 builtin and then its argument prototype would still apply. */
27103 return lt_dlopen ();
27108 for ac_lib
in '' ltdl
; do
27109 if test -z "$ac_lib"; then
27110 ac_res
="none required"
27113 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27115 rm -f conftest.
$ac_objext conftest
$ac_exeext
27116 if { (ac_try
="$ac_link"
27117 case "(($ac_try" in
27118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27119 *) ac_try_echo=$ac_try;;
27121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122 (eval "$ac_link") 2>conftest.er1
27124 grep -v '^ *+' conftest.er1 >conftest.err
27126 cat conftest.err >&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } &&
27129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27130 { (case "(($ac_try" in
27131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27132 *) ac_try_echo
=$ac_try;;
27134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27135 (eval "$ac_try") 2>&5
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); }; } &&
27139 { ac_try
='test -s conftest$ac_exeext'
27140 { (case "(($ac_try" in
27141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27142 *) ac_try_echo=$ac_try;;
27144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27145 (eval "$ac_try") 2>&5
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; }; then
27149 ac_cv_search_lt_dlopen=$ac_res
27151 echo "$as_me: failed program was:" >&5
27152 sed 's/^/| /' conftest.$ac_ext >&5
27157 rm -f core conftest.err conftest.$ac_objext \
27159 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27163 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27166 ac_cv_search_lt_dlopen=no
27168 rm conftest.$ac_ext
27169 LIBS=$ac_func_search_save_LIBS
27171 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27172 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27173 ac_res=$ac_cv_search_lt_dlopen
27174 if test "$ac_res" != no; then
27175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27177 cat >>confdefs.h <<\_ACEOF
27178 #define HAVE_LT_DLOPEN 1
27182 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27183 not be available" >&5
27184 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27185 not be available" >&2;}
27189 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27190 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27191 if test "${ac_cv_search_dlopen+set}" = set; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27194 ac_func_search_save_LIBS=$LIBS
27195 cat >conftest.$ac_ext <<_ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h. */
27202 /* Override any GCC internal prototype to avoid an error.
27203 Use char because int might match the return type of a GCC
27204 builtin and then its argument prototype would still apply. */
27217 for ac_lib in '' dl; do
27218 if test -z "$ac_lib"; then
27219 ac_res="none required"
27222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27224 rm -f conftest.$ac_objext conftest$ac_exeext
27225 if { (ac_try="$ac_link"
27226 case "(($ac_try" in
27227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27228 *) ac_try_echo
=$ac_try;;
27230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_link") 2>conftest.er1
27233 grep -v '^ *+' conftest.er1
>conftest.err
27235 cat conftest.err
>&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } &&
27238 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27239 { (case "(($ac_try" in
27240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } &&
27248 { ac_try='test -s conftest$ac_exeext'
27249 { (case "(($ac_try" in
27250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27251 *) ac_try_echo
=$ac_try;;
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_try") 2>&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; }; then
27258 ac_cv_search_dlopen
=$ac_res
27260 echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.
$ac_ext >&5
27266 rm -f core conftest.err conftest.
$ac_objext \
27268 if test "${ac_cv_search_dlopen+set}" = set; then
27272 if test "${ac_cv_search_dlopen+set}" = set; then
27275 ac_cv_search_dlopen
=no
27277 rm conftest.
$ac_ext
27278 LIBS
=$ac_func_search_save_LIBS
27280 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27281 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27282 ac_res
=$ac_cv_search_dlopen
27283 if test "$ac_res" != no
; then
27284 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27286 cat >>confdefs.h
<<\_ACEOF
27287 #define HAVE_DLOPEN 1
27291 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27292 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27296 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27297 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27298 if test "${ac_cv_search_mallinfo+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27301 ac_func_search_save_LIBS
=$LIBS
27302 cat >conftest.
$ac_ext <<_ACEOF
27305 cat confdefs.h
>>conftest.
$ac_ext
27306 cat >>conftest.
$ac_ext <<_ACEOF
27307 /* end confdefs.h. */
27309 /* Override any GCC internal prototype to avoid an error.
27310 Use char because int might match the return type of a GCC
27311 builtin and then its argument prototype would still apply. */
27319 return mallinfo ();
27324 for ac_lib
in '' malloc
; do
27325 if test -z "$ac_lib"; then
27326 ac_res
="none required"
27329 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27331 rm -f conftest.
$ac_objext conftest
$ac_exeext
27332 if { (ac_try
="$ac_link"
27333 case "(($ac_try" in
27334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27335 *) ac_try_echo=$ac_try;;
27337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338 (eval "$ac_link") 2>conftest.er1
27340 grep -v '^ *+' conftest.er1 >conftest.err
27342 cat conftest.err >&5
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); } &&
27345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27346 { (case "(($ac_try" in
27347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27348 *) ac_try_echo
=$ac_try;;
27350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351 (eval "$ac_try") 2>&5
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; } &&
27355 { ac_try
='test -s conftest$ac_exeext'
27356 { (case "(($ac_try" in
27357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27358 *) ac_try_echo=$ac_try;;
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361 (eval "$ac_try") 2>&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; }; then
27365 ac_cv_search_mallinfo=$ac_res
27367 echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27373 rm -f core conftest.err conftest.$ac_objext \
27375 if test "${ac_cv_search_mallinfo+set}" = set; then
27379 if test "${ac_cv_search_mallinfo+set}" = set; then
27382 ac_cv_search_mallinfo=no
27384 rm conftest.$ac_ext
27385 LIBS=$ac_func_search_save_LIBS
27387 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27388 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27389 ac_res=$ac_cv_search_mallinfo
27390 if test "$ac_res" != no; then
27391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27393 cat >>confdefs.h <<\_ACEOF
27394 #define HAVE_MALLINFO 1
27400 if test "$ENABLE_THREADS" -eq 1 ; then
27402 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27403 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27404 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27407 ac_check_lib_save_LIBS=$LIBS
27408 LIBS="-lpthread $LIBS"
27409 cat >conftest.$ac_ext <<_ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h. */
27416 /* Override any GCC internal prototype to avoid an error.
27417 Use char because int might match the return type of a GCC
27418 builtin and then its argument prototype would still apply. */
27422 char pthread_mutex_init ();
27426 return pthread_mutex_init ();
27431 rm -f conftest.$ac_objext conftest$ac_exeext
27432 if { (ac_try="$ac_link"
27433 case "(($ac_try" in
27434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27435 *) ac_try_echo
=$ac_try;;
27437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438 (eval "$ac_link") 2>conftest.er1
27440 grep -v '^ *+' conftest.er1
>conftest.err
27442 cat conftest.err
>&5
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); } &&
27445 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27446 { (case "(($ac_try" in
27447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27448 *) ac_try_echo=$ac_try;;
27450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451 (eval "$ac_try") 2>&5
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; } &&
27455 { ac_try='test -s conftest$ac_exeext'
27456 { (case "(($ac_try" in
27457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27458 *) ac_try_echo
=$ac_try;;
27460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27461 (eval "$ac_try") 2>&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; }; then
27465 ac_cv_lib_pthread_pthread_mutex_init
=yes
27467 echo "$as_me: failed program was:" >&5
27468 sed 's/^/| /' conftest.
$ac_ext >&5
27470 ac_cv_lib_pthread_pthread_mutex_init
=no
27473 rm -f core conftest.err conftest.
$ac_objext \
27474 conftest
$ac_exeext conftest.
$ac_ext
27475 LIBS
=$ac_check_lib_save_LIBS
27477 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27478 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27479 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27480 cat >>confdefs.h
<<_ACEOF
27481 #define HAVE_LIBPTHREAD 1
27484 LIBS
="-lpthread $LIBS"
27488 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27489 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27490 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27491 echo $ECHO_N "(cached) $ECHO_C" >&6
27493 ac_func_search_save_LIBS
=$LIBS
27494 cat >conftest.
$ac_ext <<_ACEOF
27497 cat confdefs.h
>>conftest.
$ac_ext
27498 cat >>conftest.
$ac_ext <<_ACEOF
27499 /* end confdefs.h. */
27501 /* Override any GCC internal prototype to avoid an error.
27502 Use char because int might match the return type of a GCC
27503 builtin and then its argument prototype would still apply. */
27507 char pthread_mutex_lock ();
27511 return pthread_mutex_lock ();
27516 for ac_lib
in '' pthread
; do
27517 if test -z "$ac_lib"; then
27518 ac_res
="none required"
27521 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27523 rm -f conftest.
$ac_objext conftest
$ac_exeext
27524 if { (ac_try
="$ac_link"
27525 case "(($ac_try" in
27526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27527 *) ac_try_echo=$ac_try;;
27529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530 (eval "$ac_link") 2>conftest.er1
27532 grep -v '^ *+' conftest.er1 >conftest.err
27534 cat conftest.err >&5
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); } &&
27537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27538 { (case "(($ac_try" in
27539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27540 *) ac_try_echo
=$ac_try;;
27542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27543 (eval "$ac_try") 2>&5
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); }; } &&
27547 { ac_try
='test -s conftest$ac_exeext'
27548 { (case "(($ac_try" in
27549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27550 *) ac_try_echo=$ac_try;;
27552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553 (eval "$ac_try") 2>&5
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; }; then
27557 ac_cv_search_pthread_mutex_lock=$ac_res
27559 echo "$as_me: failed program was:" >&5
27560 sed 's/^/| /' conftest.$ac_ext >&5
27565 rm -f core conftest.err conftest.$ac_objext \
27567 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27571 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27574 ac_cv_search_pthread_mutex_lock=no
27576 rm conftest.$ac_ext
27577 LIBS=$ac_func_search_save_LIBS
27579 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27580 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27581 ac_res=$ac_cv_search_pthread_mutex_lock
27582 if test "$ac_res" != no; then
27583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27585 cat >>confdefs.h <<\_ACEOF
27586 #define HAVE_PTHREAD_MUTEX_LOCK 1
27594 # Check whether --with-udis86 was given.
27595 if test "${with_udis86+set}" = set; then
27596 withval=$with_udis86;
27601 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27604 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27605 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27606 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27607 echo $ECHO_N "(cached) $ECHO_C" >&6
27609 ac_check_lib_save_LIBS=$LIBS
27610 LIBS="-ludis86 $LIBS"
27611 cat >conftest.$ac_ext <<_ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h. */
27618 /* Override any GCC internal prototype to avoid an error.
27619 Use char because int might match the return type of a GCC
27620 builtin and then its argument prototype would still apply. */
27633 rm -f conftest.$ac_objext conftest$ac_exeext
27634 if { (ac_try="$ac_link"
27635 case "(($ac_try" in
27636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27637 *) ac_try_echo
=$ac_try;;
27639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640 (eval "$ac_link") 2>conftest.er1
27642 grep -v '^ *+' conftest.er1
>conftest.err
27644 cat conftest.err
>&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } &&
27647 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27648 { (case "(($ac_try" in
27649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_try") 2>&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; } &&
27657 { ac_try='test -s conftest$ac_exeext'
27658 { (case "(($ac_try" in
27659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27660 *) ac_try_echo
=$ac_try;;
27662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27663 (eval "$ac_try") 2>&5
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); }; }; then
27667 ac_cv_lib_udis86_ud_init
=yes
27669 echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.
$ac_ext >&5
27672 ac_cv_lib_udis86_ud_init
=no
27675 rm -f core conftest.err conftest.
$ac_objext \
27676 conftest
$ac_exeext conftest.
$ac_ext
27677 LIBS
=$ac_check_lib_save_LIBS
27679 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27680 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27681 if test $ac_cv_lib_udis86_ud_init = yes; then
27682 cat >>confdefs.h
<<_ACEOF
27683 #define HAVE_LIBUDIS86 1
27686 LIBS
="-ludis86 $LIBS"
27690 echo "Error! You need to have libudis86 around."
27702 cat >>confdefs.h
<<_ACEOF
27703 #define USE_UDIS86 $USE_UDIS86
27713 ac_header_dirent
=no
27714 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
27715 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27716 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27717 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27718 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27719 echo $ECHO_N "(cached) $ECHO_C" >&6
27721 cat >conftest.
$ac_ext <<_ACEOF
27724 cat confdefs.h
>>conftest.
$ac_ext
27725 cat >>conftest.
$ac_ext <<_ACEOF
27726 /* end confdefs.h. */
27727 #include <sys/types.h>
27739 rm -f conftest.
$ac_objext
27740 if { (ac_try
="$ac_compile"
27741 case "(($ac_try" in
27742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_compile") 2>conftest.er1
27748 grep -v '^ *+' conftest.er1 >conftest.err
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } &&
27753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27754 { (case "(($ac_try" in
27755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27756 *) ac_try_echo
=$ac_try;;
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_try") 2>&5
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); }; } &&
27763 { ac_try
='test -s conftest.$ac_objext'
27764 { (case "(($ac_try" in
27765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769 (eval "$ac_try") 2>&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; }; then
27773 eval "$as_ac_Header=yes"
27775 echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27778 eval "$as_ac_Header=no"
27781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27783 ac_res=`eval echo '${'$as_ac_Header'}'`
27784 { echo "$as_me:$LINENO: result: $ac_res" >&5
27785 echo "${ECHO_T}$ac_res" >&6; }
27786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27787 cat >>confdefs.h <<_ACEOF
27788 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
27791 ac_header_dirent=$ac_hdr; break
27795 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27796 if test $ac_header_dirent = dirent.h; then
27797 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27798 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27799 if test "${ac_cv_search_opendir+set}" = set; then
27800 echo $ECHO_N "(cached) $ECHO_C" >&6
27802 ac_func_search_save_LIBS=$LIBS
27803 cat >conftest.$ac_ext <<_ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h. */
27810 /* Override any GCC internal prototype to avoid an error.
27811 Use char because int might match the return type of a GCC
27812 builtin and then its argument prototype would still apply. */
27825 for ac_lib in '' dir; do
27826 if test -z "$ac_lib"; then
27827 ac_res="none required"
27830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27832 rm -f conftest.$ac_objext conftest$ac_exeext
27833 if { (ac_try="$ac_link"
27834 case "(($ac_try" in
27835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27836 *) ac_try_echo
=$ac_try;;
27838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27839 (eval "$ac_link") 2>conftest.er1
27841 grep -v '^ *+' conftest.er1
>conftest.err
27843 cat conftest.err
>&5
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); } &&
27846 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27847 { (case "(($ac_try" in
27848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27849 *) ac_try_echo=$ac_try;;
27851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27852 (eval "$ac_try") 2>&5
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; } &&
27856 { ac_try='test -s conftest$ac_exeext'
27857 { (case "(($ac_try" in
27858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27859 *) ac_try_echo
=$ac_try;;
27861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27862 (eval "$ac_try") 2>&5
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); }; }; then
27866 ac_cv_search_opendir
=$ac_res
27868 echo "$as_me: failed program was:" >&5
27869 sed 's/^/| /' conftest.
$ac_ext >&5
27874 rm -f core conftest.err conftest.
$ac_objext \
27876 if test "${ac_cv_search_opendir+set}" = set; then
27880 if test "${ac_cv_search_opendir+set}" = set; then
27883 ac_cv_search_opendir
=no
27885 rm conftest.
$ac_ext
27886 LIBS
=$ac_func_search_save_LIBS
27888 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27889 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27890 ac_res
=$ac_cv_search_opendir
27891 if test "$ac_res" != no
; then
27892 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27899 if test "${ac_cv_search_opendir+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27902 ac_func_search_save_LIBS
=$LIBS
27903 cat >conftest.
$ac_ext <<_ACEOF
27906 cat confdefs.h
>>conftest.
$ac_ext
27907 cat >>conftest.
$ac_ext <<_ACEOF
27908 /* end confdefs.h. */
27910 /* Override any GCC internal prototype to avoid an error.
27911 Use char because int might match the return type of a GCC
27912 builtin and then its argument prototype would still apply. */
27925 for ac_lib
in '' x
; do
27926 if test -z "$ac_lib"; then
27927 ac_res
="none required"
27930 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27932 rm -f conftest.
$ac_objext conftest
$ac_exeext
27933 if { (ac_try
="$ac_link"
27934 case "(($ac_try" in
27935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27936 *) ac_try_echo=$ac_try;;
27938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27939 (eval "$ac_link") 2>conftest.er1
27941 grep -v '^ *+' conftest.er1 >conftest.err
27943 cat conftest.err >&5
27944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); } &&
27946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27947 { (case "(($ac_try" in
27948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27949 *) ac_try_echo
=$ac_try;;
27951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952 (eval "$ac_try") 2>&5
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; } &&
27956 { ac_try
='test -s conftest$ac_exeext'
27957 { (case "(($ac_try" in
27958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27959 *) ac_try_echo=$ac_try;;
27961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962 (eval "$ac_try") 2>&5
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); }; }; then
27966 ac_cv_search_opendir=$ac_res
27968 echo "$as_me: failed program was:" >&5
27969 sed 's/^/| /' conftest.$ac_ext >&5
27974 rm -f core conftest.err conftest.$ac_objext \
27976 if test "${ac_cv_search_opendir+set}" = set; then
27980 if test "${ac_cv_search_opendir+set}" = set; then
27983 ac_cv_search_opendir=no
27985 rm conftest.$ac_ext
27986 LIBS=$ac_func_search_save_LIBS
27988 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27989 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27990 ac_res=$ac_cv_search_opendir
27991 if test "$ac_res" != no; then
27992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27998 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27999 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28000 if test "${ac_cv_header_mmap_anon+set}" = set; then
28001 echo $ECHO_N "(cached) $ECHO_C" >&6
28004 ac_cpp='$CPP $CPPFLAGS'
28005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28009 cat >conftest.$ac_ext <<_ACEOF
28012 cat confdefs.h >>conftest.$ac_ext
28013 cat >>conftest.$ac_ext <<_ACEOF
28014 /* end confdefs.h. */
28015 #include <sys/mman.h>
28016 #include <unistd.h>
28021 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28026 rm -f conftest.$ac_objext
28027 if { (ac_try="$ac_compile"
28028 case "(($ac_try" in
28029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28030 *) ac_try_echo
=$ac_try;;
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_compile") 2>conftest.er1
28035 grep -v '^ *+' conftest.er1
>conftest.err
28037 cat conftest.err
>&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); } &&
28040 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28041 { (case "(($ac_try" in
28042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28043 *) ac_try_echo=$ac_try;;
28045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28046 (eval "$ac_try") 2>&5
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); }; } &&
28050 { ac_try='test -s conftest.$ac_objext'
28051 { (case "(($ac_try" in
28052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28053 *) ac_try_echo
=$ac_try;;
28055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28056 (eval "$ac_try") 2>&5
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }; }; then
28060 ac_cv_header_mmap_anon
=yes
28062 echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.
$ac_ext >&5
28065 ac_cv_header_mmap_anon
=no
28068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28070 ac_cpp
='$CPP $CPPFLAGS'
28071 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28072 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28073 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
28077 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28078 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28079 if test "$ac_cv_header_mmap_anon" = yes; then
28081 cat >>confdefs.h
<<\_ACEOF
28082 #define HAVE_MMAP_ANONYMOUS 1
28087 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28088 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28089 if test "${ac_cv_header_stat_broken+set}" = set; then
28090 echo $ECHO_N "(cached) $ECHO_C" >&6
28092 cat >conftest.
$ac_ext <<_ACEOF
28095 cat confdefs.h
>>conftest.
$ac_ext
28096 cat >>conftest.
$ac_ext <<_ACEOF
28097 /* end confdefs.h. */
28098 #include <sys/types.h>
28099 #include <sys/stat.h>
28101 #if defined S_ISBLK && defined S_IFDIR
28102 # if S_ISBLK (S_IFDIR)
28107 #if defined S_ISBLK && defined S_IFCHR
28108 # if S_ISBLK (S_IFCHR)
28113 #if defined S_ISLNK && defined S_IFREG
28114 # if S_ISLNK (S_IFREG)
28119 #if defined S_ISSOCK && defined S_IFREG
28120 # if S_ISSOCK (S_IFREG)
28126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28127 $EGREP "You lose" >/dev
/null
2>&1; then
28128 ac_cv_header_stat_broken
=yes
28130 ac_cv_header_stat_broken
=no
28135 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28136 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28137 if test $ac_cv_header_stat_broken = yes; then
28139 cat >>confdefs.h
<<\_ACEOF
28140 #define STAT_MACROS_BROKEN 1
28145 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28147 if test "${ac_cv_header_stdc+set}" = set; then
28148 echo $ECHO_N "(cached) $ECHO_C" >&6
28150 cat >conftest.
$ac_ext <<_ACEOF
28153 cat confdefs.h
>>conftest.
$ac_ext
28154 cat >>conftest.
$ac_ext <<_ACEOF
28155 /* end confdefs.h. */
28156 #include <stdlib.h>
28157 #include <stdarg.h>
28158 #include <string.h>
28169 rm -f conftest.
$ac_objext
28170 if { (ac_try
="$ac_compile"
28171 case "(($ac_try" in
28172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_compile") 2>conftest.er1
28178 grep -v '^ *+' conftest.er1 >conftest.err
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } &&
28183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28186 *) ac_try_echo
=$ac_try;;
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } &&
28193 { ac_try
='test -s conftest.$ac_objext'
28194 { (case "(($ac_try" in
28195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_try") 2>&5
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
28203 ac_cv_header_stdc=yes
28205 echo "$as_me: failed program was:" >&5
28206 sed 's/^/| /' conftest.$ac_ext >&5
28208 ac_cv_header_stdc=no
28211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28213 if test $ac_cv_header_stdc = yes; then
28214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28215 cat >conftest.$ac_ext <<_ACEOF
28218 cat confdefs.h >>conftest.$ac_ext
28219 cat >>conftest.$ac_ext <<_ACEOF
28220 /* end confdefs.h. */
28221 #include <string.h>
28224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28225 $EGREP "memchr" >/dev/null 2>&1; then
28228 ac_cv_header_stdc=no
28234 if test $ac_cv_header_stdc = yes; then
28235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28236 cat >conftest.$ac_ext <<_ACEOF
28239 cat confdefs.h >>conftest.$ac_ext
28240 cat >>conftest.$ac_ext <<_ACEOF
28241 /* end confdefs.h. */
28242 #include <stdlib.h>
28245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28246 $EGREP "free" >/dev/null 2>&1; then
28249 ac_cv_header_stdc=no
28255 if test $ac_cv_header_stdc = yes; then
28256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28257 if test "$cross_compiling" = yes; then
28260 cat >conftest.$ac_ext <<_ACEOF
28263 cat confdefs.h >>conftest.$ac_ext
28264 cat >>conftest.$ac_ext <<_ACEOF
28265 /* end confdefs.h. */
28267 #include <stdlib.h>
28268 #if ((' ' & 0x0FF) == 0x020)
28269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28272 # define ISLOWER(c) \
28273 (('a' <= (c) && (c) <= 'i') \
28274 || ('j' <= (c) && (c) <= 'r') \
28275 || ('s' <= (c) && (c) <= 'z'))
28276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28284 for (i = 0; i < 256; i++)
28285 if (XOR (islower (i), ISLOWER (i))
28286 || toupper (i) != TOUPPER (i))
28291 rm -f conftest$ac_exeext
28292 if { (ac_try="$ac_link"
28293 case "(($ac_try" in
28294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28295 *) ac_try_echo
=$ac_try;;
28297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28298 (eval "$ac_link") 2>&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28302 { (case "(($ac_try" in
28303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_try") 2>&5
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28313 echo "$as_me: program exited with status $ac_status" >&5
28314 echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28317 ( exit $ac_status )
28318 ac_cv_header_stdc=no
28320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28326 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28327 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28328 if test $ac_cv_header_stdc = yes; then
28330 cat >>confdefs.h <<\_ACEOF
28331 #define STDC_HEADERS 1
28336 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28337 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28338 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28341 cat >conftest.$ac_ext <<_ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h. */
28347 #include <sys/types.h>
28348 #include <sys/wait.h>
28349 #ifndef WEXITSTATUS
28350 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28353 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28361 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28366 rm -f conftest.$ac_objext
28367 if { (ac_try="$ac_compile"
28368 case "(($ac_try" in
28369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28370 *) ac_try_echo
=$ac_try;;
28372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_compile") 2>conftest.er1
28375 grep -v '^ *+' conftest.er1
>conftest.err
28377 cat conftest.err
>&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } &&
28380 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28381 { (case "(($ac_try" in
28382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28383 *) ac_try_echo=$ac_try;;
28385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386 (eval "$ac_try") 2>&5
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; } &&
28390 { ac_try='test -s conftest.$ac_objext'
28391 { (case "(($ac_try" in
28392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28393 *) ac_try_echo
=$ac_try;;
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_try") 2>&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_cv_header_sys_wait_h
=yes
28402 echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.
$ac_ext >&5
28405 ac_cv_header_sys_wait_h
=no
28408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28410 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28411 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28412 if test $ac_cv_header_sys_wait_h = yes; then
28414 cat >>confdefs.h
<<\_ACEOF
28415 #define HAVE_SYS_WAIT_H 1
28420 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28421 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28422 if test "${ac_cv_header_time+set}" = set; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28425 cat >conftest.
$ac_ext <<_ACEOF
28428 cat confdefs.h
>>conftest.
$ac_ext
28429 cat >>conftest.
$ac_ext <<_ACEOF
28430 /* end confdefs.h. */
28431 #include <sys/types.h>
28432 #include <sys/time.h>
28438 if ((struct tm *) 0)
28444 rm -f conftest.
$ac_objext
28445 if { (ac_try
="$ac_compile"
28446 case "(($ac_try" in
28447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28448 *) ac_try_echo=$ac_try;;
28450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28451 (eval "$ac_compile") 2>conftest.er1
28453 grep -v '^ *+' conftest.er1 >conftest.err
28455 cat conftest.err >&5
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); } &&
28458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28459 { (case "(($ac_try" in
28460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28461 *) ac_try_echo
=$ac_try;;
28463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28464 (eval "$ac_try") 2>&5
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; } &&
28468 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
28478 ac_cv_header_time=yes
28480 echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28483 ac_cv_header_time=no
28486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28488 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28489 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28490 if test $ac_cv_header_time = yes; then
28492 cat >>confdefs.h <<\_ACEOF
28493 #define TIME_WITH_SYS_TIME 1
28505 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28507 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
28508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28512 echo $ECHO_N "(cached) $ECHO_C" >&6
28514 ac_res=`eval echo '${'$as_ac_Header'}'`
28515 { echo "$as_me:$LINENO: result: $ac_res" >&5
28516 echo "${ECHO_T}$ac_res" >&6; }
28518 # Is the header compilable?
28519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28521 cat >conftest.$ac_ext <<_ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28527 $ac_includes_default
28528 #include <$ac_header>
28530 rm -f conftest.$ac_objext
28531 if { (ac_try="$ac_compile"
28532 case "(($ac_try" in
28533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28534 *) ac_try_echo
=$ac_try;;
28536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28537 (eval "$ac_compile") 2>conftest.er1
28539 grep -v '^ *+' conftest.er1
>conftest.err
28541 cat conftest.err
>&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); } &&
28544 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28545 { (case "(($ac_try" in
28546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28547 *) ac_try_echo=$ac_try;;
28549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550 (eval "$ac_try") 2>&5
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); }; } &&
28554 { ac_try='test -s conftest.$ac_objext'
28555 { (case "(($ac_try" in
28556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28557 *) ac_try_echo
=$ac_try;;
28559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560 (eval "$ac_try") 2>&5
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; }; then
28564 ac_header_compiler
=yes
28566 echo "$as_me: failed program was:" >&5
28567 sed 's/^/| /' conftest.
$ac_ext >&5
28569 ac_header_compiler
=no
28572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28574 echo "${ECHO_T}$ac_header_compiler" >&6; }
28576 # Is the header present?
28577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28579 cat >conftest.
$ac_ext <<_ACEOF
28582 cat confdefs.h
>>conftest.
$ac_ext
28583 cat >>conftest.
$ac_ext <<_ACEOF
28584 /* end confdefs.h. */
28585 #include <$ac_header>
28587 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28588 case "(($ac_try" in
28589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28595 grep -v '^ *+' conftest.er1 >conftest.err
28597 cat conftest.err >&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } >/dev/null; then
28600 if test -s conftest.err; then
28601 ac_cpp_err=$ac_c_preproc_warn_flag
28602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28609 if test -z "$ac_cpp_err"; then
28610 ac_header_preproc=yes
28612 echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28615 ac_header_preproc=no
28618 rm -f conftest.err conftest.$ac_ext
28619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28620 echo "${ECHO_T}$ac_header_preproc" >&6; }
28622 # So? What about this header?
28623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28629 ac_header_preproc=yes
28632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28645 ## ----------------------------------- ##
28646 ## Report this to llvmbugs@cs.uiuc.edu ##
28647 ## ----------------------------------- ##
28649 ) | sed "s/^/$as_me: WARNING: /" >&2
28652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28655 echo $ECHO_N "(cached) $ECHO_C" >&6
28657 eval "$as_ac_Header=\$ac_header_preproc"
28659 ac_res=`eval echo '${'$as_ac_Header'}'`
28660 { echo "$as_me:$LINENO: result: $ac_res" >&5
28661 echo "${ECHO_T}$ac_res" >&6; }
28664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28665 cat >>confdefs.h <<_ACEOF
28666 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
28679 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28681 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
28682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686 echo $ECHO_N "(cached) $ECHO_C" >&6
28688 ac_res=`eval echo '${'$as_ac_Header'}'`
28689 { echo "$as_me:$LINENO: result: $ac_res" >&5
28690 echo "${ECHO_T}$ac_res" >&6; }
28692 # Is the header compilable?
28693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28695 cat >conftest.$ac_ext <<_ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h. */
28701 $ac_includes_default
28702 #include <$ac_header>
28704 rm -f conftest.$ac_objext
28705 if { (ac_try="$ac_compile"
28706 case "(($ac_try" in
28707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28708 *) ac_try_echo
=$ac_try;;
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_compile") 2>conftest.er1
28713 grep -v '^ *+' conftest.er1
>conftest.err
28715 cat conftest.err
>&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } &&
28718 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28719 { (case "(($ac_try" in
28720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_try") 2>&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; } &&
28728 { ac_try='test -s conftest.$ac_objext'
28729 { (case "(($ac_try" in
28730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28731 *) ac_try_echo
=$ac_try;;
28733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; }; then
28738 ac_header_compiler
=yes
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.
$ac_ext >&5
28743 ac_header_compiler
=no
28746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28748 echo "${ECHO_T}$ac_header_compiler" >&6; }
28750 # Is the header present?
28751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28753 cat >conftest.
$ac_ext <<_ACEOF
28756 cat confdefs.h
>>conftest.
$ac_ext
28757 cat >>conftest.
$ac_ext <<_ACEOF
28758 /* end confdefs.h. */
28759 #include <$ac_header>
28761 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28762 case "(($ac_try" in
28763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28769 grep -v '^ *+' conftest.er1 >conftest.err
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } >/dev/null; then
28774 if test -s conftest.err; then
28775 ac_cpp_err=$ac_c_preproc_warn_flag
28776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28783 if test -z "$ac_cpp_err"; then
28784 ac_header_preproc=yes
28786 echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28789 ac_header_preproc=no
28792 rm -f conftest.err conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794 echo "${ECHO_T}$ac_header_preproc" >&6; }
28796 # So? What about this header?
28797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28803 ac_header_preproc=yes
28806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28819 ## ----------------------------------- ##
28820 ## Report this to llvmbugs@cs.uiuc.edu ##
28821 ## ----------------------------------- ##
28823 ) | sed "s/^/$as_me: WARNING: /" >&2
28826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 eval "$as_ac_Header=\$ac_header_preproc"
28833 ac_res=`eval echo '${'$as_ac_Header'}'`
28834 { echo "$as_me:$LINENO: result: $ac_res" >&5
28835 echo "${ECHO_T}$ac_res" >&6; }
28838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839 cat >>confdefs.h <<_ACEOF
28840 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
28852 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28854 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
28855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28859 echo $ECHO_N "(cached) $ECHO_C" >&6
28861 ac_res=`eval echo '${'$as_ac_Header'}'`
28862 { echo "$as_me:$LINENO: result: $ac_res" >&5
28863 echo "${ECHO_T}$ac_res" >&6; }
28865 # Is the header compilable?
28866 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28868 cat >conftest.$ac_ext <<_ACEOF
28871 cat confdefs.h >>conftest.$ac_ext
28872 cat >>conftest.$ac_ext <<_ACEOF
28873 /* end confdefs.h. */
28874 $ac_includes_default
28875 #include <$ac_header>
28877 rm -f conftest.$ac_objext
28878 if { (ac_try="$ac_compile"
28879 case "(($ac_try" in
28880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28881 *) ac_try_echo
=$ac_try;;
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_compile") 2>conftest.er1
28886 grep -v '^ *+' conftest.er1
>conftest.err
28888 cat conftest.err
>&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } &&
28891 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28892 { (case "(($ac_try" in
28893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28894 *) ac_try_echo=$ac_try;;
28896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897 (eval "$ac_try") 2>&5
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); }; } &&
28901 { ac_try='test -s conftest.$ac_objext'
28902 { (case "(($ac_try" in
28903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28904 *) ac_try_echo
=$ac_try;;
28906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907 (eval "$ac_try") 2>&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; }; then
28911 ac_header_compiler
=yes
28913 echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.
$ac_ext >&5
28916 ac_header_compiler
=no
28919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28921 echo "${ECHO_T}$ac_header_compiler" >&6; }
28923 # Is the header present?
28924 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28926 cat >conftest.
$ac_ext <<_ACEOF
28929 cat confdefs.h
>>conftest.
$ac_ext
28930 cat >>conftest.
$ac_ext <<_ACEOF
28931 /* end confdefs.h. */
28932 #include <$ac_header>
28934 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28935 case "(($ac_try" in
28936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28937 *) ac_try_echo=$ac_try;;
28939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28942 grep -v '^ *+' conftest.er1 >conftest.err
28944 cat conftest.err >&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } >/dev/null; then
28947 if test -s conftest.err; then
28948 ac_cpp_err=$ac_c_preproc_warn_flag
28949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28956 if test -z "$ac_cpp_err"; then
28957 ac_header_preproc=yes
28959 echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28962 ac_header_preproc=no
28965 rm -f conftest.err conftest.$ac_ext
28966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28967 echo "${ECHO_T}$ac_header_preproc" >&6; }
28969 # So? What about this header?
28970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28976 ac_header_preproc=yes
28979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28992 ## ----------------------------------- ##
28993 ## Report this to llvmbugs@cs.uiuc.edu ##
28994 ## ----------------------------------- ##
28996 ) | sed "s/^/$as_me: WARNING: /" >&2
28999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29002 echo $ECHO_N "(cached) $ECHO_C" >&6
29004 eval "$as_ac_Header=\$ac_header_preproc"
29006 ac_res=`eval echo '${'$as_ac_Header'}'`
29007 { echo "$as_me:$LINENO: result: $ac_res" >&5
29008 echo "${ECHO_T}$ac_res" >&6; }
29011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29012 cat >>confdefs.h <<_ACEOF
29013 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29023 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29025 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29030 echo $ECHO_N "(cached) $ECHO_C" >&6
29032 ac_res=`eval echo '${'$as_ac_Header'}'`
29033 { echo "$as_me:$LINENO: result: $ac_res" >&5
29034 echo "${ECHO_T}$ac_res" >&6; }
29036 # Is the header compilable?
29037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29039 cat >conftest.$ac_ext <<_ACEOF
29042 cat confdefs.h >>conftest.$ac_ext
29043 cat >>conftest.$ac_ext <<_ACEOF
29044 /* end confdefs.h. */
29045 $ac_includes_default
29046 #include <$ac_header>
29048 rm -f conftest.$ac_objext
29049 if { (ac_try="$ac_compile"
29050 case "(($ac_try" in
29051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29052 *) ac_try_echo
=$ac_try;;
29054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055 (eval "$ac_compile") 2>conftest.er1
29057 grep -v '^ *+' conftest.er1
>conftest.err
29059 cat conftest.err
>&5
29060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061 (exit $ac_status); } &&
29062 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29063 { (case "(($ac_try" in
29064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29065 *) ac_try_echo=$ac_try;;
29067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29068 (eval "$ac_try") 2>&5
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); }; } &&
29072 { ac_try='test -s conftest.$ac_objext'
29073 { (case "(($ac_try" in
29074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29075 *) ac_try_echo
=$ac_try;;
29077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078 (eval "$ac_try") 2>&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; }; then
29082 ac_header_compiler
=yes
29084 echo "$as_me: failed program was:" >&5
29085 sed 's/^/| /' conftest.
$ac_ext >&5
29087 ac_header_compiler
=no
29090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29092 echo "${ECHO_T}$ac_header_compiler" >&6; }
29094 # Is the header present?
29095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29097 cat >conftest.
$ac_ext <<_ACEOF
29100 cat confdefs.h
>>conftest.
$ac_ext
29101 cat >>conftest.
$ac_ext <<_ACEOF
29102 /* end confdefs.h. */
29103 #include <$ac_header>
29105 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29106 case "(($ac_try" in
29107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29108 *) ac_try_echo=$ac_try;;
29110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29113 grep -v '^ *+' conftest.er1 >conftest.err
29115 cat conftest.err >&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } >/dev/null; then
29118 if test -s conftest.err; then
29119 ac_cpp_err=$ac_c_preproc_warn_flag
29120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29127 if test -z "$ac_cpp_err"; then
29128 ac_header_preproc=yes
29130 echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29133 ac_header_preproc=no
29136 rm -f conftest.err conftest.$ac_ext
29137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29138 echo "${ECHO_T}$ac_header_preproc" >&6; }
29140 # So? What about this header?
29141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29147 ac_header_preproc=yes
29150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29163 ## ----------------------------------- ##
29164 ## Report this to llvmbugs@cs.uiuc.edu ##
29165 ## ----------------------------------- ##
29167 ) | sed "s/^/$as_me: WARNING: /" >&2
29170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29173 echo $ECHO_N "(cached) $ECHO_C" >&6
29175 eval "$as_ac_Header=\$ac_header_preproc"
29177 ac_res=`eval echo '${'$as_ac_Header'}'`
29178 { echo "$as_me:$LINENO: result: $ac_res" >&5
29179 echo "${ECHO_T}$ac_res" >&6; }
29182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29183 cat >>confdefs.h <<_ACEOF
29184 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29191 if test "$ENABLE_THREADS" -eq 1 ; then
29192 if test "${ac_cv_header_pthread_h+set}" = set; then
29193 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29194 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29195 if test "${ac_cv_header_pthread_h+set}" = set; then
29196 echo $ECHO_N "(cached) $ECHO_C" >&6
29198 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29199 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29201 # Is the header compilable?
29202 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29203 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29204 cat >conftest.$ac_ext <<_ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h. */
29210 $ac_includes_default
29211 #include <pthread.h>
29213 rm -f conftest.$ac_objext
29214 if { (ac_try="$ac_compile"
29215 case "(($ac_try" in
29216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29217 *) ac_try_echo
=$ac_try;;
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220 (eval "$ac_compile") 2>conftest.er1
29222 grep -v '^ *+' conftest.er1
>conftest.err
29224 cat conftest.err
>&5
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); } &&
29227 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29228 { (case "(($ac_try" in
29229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29230 *) ac_try_echo=$ac_try;;
29232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233 (eval "$ac_try") 2>&5
29235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236 (exit $ac_status); }; } &&
29237 { ac_try='test -s conftest.$ac_objext'
29238 { (case "(($ac_try" in
29239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29240 *) ac_try_echo
=$ac_try;;
29242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243 (eval "$ac_try") 2>&5
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); }; }; then
29247 ac_header_compiler
=yes
29249 echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.
$ac_ext >&5
29252 ac_header_compiler
=no
29255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29257 echo "${ECHO_T}$ac_header_compiler" >&6; }
29259 # Is the header present?
29260 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29261 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29262 cat >conftest.
$ac_ext <<_ACEOF
29265 cat confdefs.h
>>conftest.
$ac_ext
29266 cat >>conftest.
$ac_ext <<_ACEOF
29267 /* end confdefs.h. */
29268 #include <pthread.h>
29270 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29271 case "(($ac_try" in
29272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29273 *) ac_try_echo=$ac_try;;
29275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29278 grep -v '^ *+' conftest.er1 >conftest.err
29280 cat conftest.err >&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } >/dev/null; then
29283 if test -s conftest.err; then
29284 ac_cpp_err=$ac_c_preproc_warn_flag
29285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29292 if test -z "$ac_cpp_err"; then
29293 ac_header_preproc=yes
29295 echo "$as_me: failed program was:" >&5
29296 sed 's/^/| /' conftest.$ac_ext >&5
29298 ac_header_preproc=no
29301 rm -f conftest.err conftest.$ac_ext
29302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29303 echo "${ECHO_T}$ac_header_preproc" >&6; }
29305 # So? What about this header?
29306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29308 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29309 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29310 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29311 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29312 ac_header_preproc=yes
29315 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29316 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29317 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29318 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29319 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29320 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29321 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29322 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29324 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29325 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29326 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29328 ## ----------------------------------- ##
29329 ## Report this to llvmbugs@cs.uiuc.edu ##
29330 ## ----------------------------------- ##
29332 ) | sed "s/^/$as_me: WARNING: /" >&2
29335 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29336 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29337 if test "${ac_cv_header_pthread_h+set}" = set; then
29338 echo $ECHO_N "(cached) $ECHO_C" >&6
29340 ac_cv_header_pthread_h=$ac_header_preproc
29342 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29343 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29346 if test $ac_cv_header_pthread_h = yes; then
29362 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29363 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29364 if test "${ac_cv_huge_val_sanity+set}" = set; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29369 ac_cpp='$CXXCPP $CPPFLAGS'
29370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29375 if test "$cross_compiling" = yes; then
29376 ac_cv_huge_val_sanity=yes
29378 cat >conftest.$ac_ext <<_ACEOF
29381 cat confdefs.h >>conftest.$ac_ext
29382 cat >>conftest.$ac_ext <<_ACEOF
29383 /* end confdefs.h. */
29388 double x = HUGE_VAL; return x != x;
29393 rm -f conftest$ac_exeext
29394 if { (ac_try="$ac_link"
29395 case "(($ac_try" in
29396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29397 *) ac_try_echo
=$ac_try;;
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400 (eval "$ac_link") 2>&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29404 { (case "(($ac_try" in
29405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29406 *) ac_try_echo=$ac_try;;
29408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29409 (eval "$ac_try") 2>&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_cv_huge_val_sanity=yes
29415 echo "$as_me: program exited with status $ac_status" >&5
29416 echo "$as_me: failed program was:" >&5
29417 sed 's/^/| /' conftest.$ac_ext >&5
29419 ( exit $ac_status )
29420 ac_cv_huge_val_sanity=no
29422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29427 ac_cpp='$CPP $CPPFLAGS'
29428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29434 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29435 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29436 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29439 { echo "$as_me:$LINENO: checking for pid_t" >&5
29440 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29441 if test "${ac_cv_type_pid_t+set}" = set; then
29442 echo $ECHO_N "(cached) $ECHO_C" >&6
29444 cat >conftest.$ac_ext <<_ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h. */
29450 $ac_includes_default
29451 typedef pid_t ac__type_new_;
29455 if ((ac__type_new_ *) 0)
29457 if (sizeof (ac__type_new_))
29463 rm -f conftest.$ac_objext
29464 if { (ac_try="$ac_compile"
29465 case "(($ac_try" in
29466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29467 *) ac_try_echo
=$ac_try;;
29469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470 (eval "$ac_compile") 2>conftest.er1
29472 grep -v '^ *+' conftest.er1
>conftest.err
29474 cat conftest.err
>&5
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); } &&
29477 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29478 { (case "(($ac_try" in
29479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_try") 2>&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; } &&
29487 { ac_try='test -s conftest.$ac_objext'
29488 { (case "(($ac_try" in
29489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29490 *) ac_try_echo
=$ac_try;;
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493 (eval "$ac_try") 2>&5
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; }; then
29497 ac_cv_type_pid_t
=yes
29499 echo "$as_me: failed program was:" >&5
29500 sed 's/^/| /' conftest.
$ac_ext >&5
29502 ac_cv_type_pid_t
=no
29505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29507 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29508 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29509 if test $ac_cv_type_pid_t = yes; then
29513 cat >>confdefs.h
<<_ACEOF
29519 { echo "$as_me:$LINENO: checking for size_t" >&5
29520 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29521 if test "${ac_cv_type_size_t+set}" = set; then
29522 echo $ECHO_N "(cached) $ECHO_C" >&6
29524 cat >conftest.
$ac_ext <<_ACEOF
29527 cat confdefs.h
>>conftest.
$ac_ext
29528 cat >>conftest.
$ac_ext <<_ACEOF
29529 /* end confdefs.h. */
29530 $ac_includes_default
29531 typedef size_t ac__type_new_;
29535 if ((ac__type_new_ *) 0)
29537 if (sizeof (ac__type_new_))
29543 rm -f conftest.
$ac_objext
29544 if { (ac_try
="$ac_compile"
29545 case "(($ac_try" in
29546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29547 *) ac_try_echo=$ac_try;;
29549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29550 (eval "$ac_compile") 2>conftest.er1
29552 grep -v '^ *+' conftest.er1 >conftest.err
29554 cat conftest.err >&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } &&
29557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29558 { (case "(($ac_try" in
29559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29560 *) ac_try_echo
=$ac_try;;
29562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563 (eval "$ac_try") 2>&5
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); }; } &&
29567 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
29577 ac_cv_type_size_t=yes
29579 echo "$as_me: failed program was:" >&5
29580 sed 's/^/| /' conftest.$ac_ext >&5
29582 ac_cv_type_size_t=no
29585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29587 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29588 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29589 if test $ac_cv_type_size_t = yes; then
29593 cat >>confdefs.h <<_ACEOF
29594 #define size_t unsigned int
29599 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29600 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29601 if test "${ac_cv_type_signal+set}" = set; then
29602 echo $ECHO_N "(cached) $ECHO_C" >&6
29604 cat >conftest.$ac_ext <<_ACEOF
29607 cat confdefs.h >>conftest.$ac_ext
29608 cat >>conftest.$ac_ext <<_ACEOF
29609 /* end confdefs.h. */
29610 #include <sys/types.h>
29611 #include <signal.h>
29616 return *(signal (0, 0)) (0) == 1;
29621 rm -f conftest.$ac_objext
29622 if { (ac_try="$ac_compile"
29623 case "(($ac_try" in
29624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29625 *) ac_try_echo
=$ac_try;;
29627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628 (eval "$ac_compile") 2>conftest.er1
29630 grep -v '^ *+' conftest.er1
>conftest.err
29632 cat conftest.err
>&5
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); } &&
29635 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29636 { (case "(($ac_try" in
29637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29638 *) ac_try_echo=$ac_try;;
29640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641 (eval "$ac_try") 2>&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest.$ac_objext'
29646 { (case "(($ac_try" in
29647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29648 *) ac_try_echo
=$ac_try;;
29650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29651 (eval "$ac_try") 2>&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; }; then
29655 ac_cv_type_signal
=int
29657 echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.
$ac_ext >&5
29660 ac_cv_type_signal
=void
29663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29665 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29666 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29668 cat >>confdefs.h
<<_ACEOF
29669 #define RETSIGTYPE $ac_cv_type_signal
29673 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29674 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29675 if test "${ac_cv_struct_tm+set}" = set; then
29676 echo $ECHO_N "(cached) $ECHO_C" >&6
29678 cat >conftest.
$ac_ext <<_ACEOF
29681 cat confdefs.h
>>conftest.
$ac_ext
29682 cat >>conftest.
$ac_ext <<_ACEOF
29683 /* end confdefs.h. */
29684 #include <sys/types.h>
29690 struct tm *tp; tp->tm_sec;
29695 rm -f conftest.
$ac_objext
29696 if { (ac_try
="$ac_compile"
29697 case "(($ac_try" in
29698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29699 *) ac_try_echo=$ac_try;;
29701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702 (eval "$ac_compile") 2>conftest.er1
29704 grep -v '^ *+' conftest.er1 >conftest.err
29706 cat conftest.err >&5
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); } &&
29709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29710 { (case "(($ac_try" in
29711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29712 *) ac_try_echo
=$ac_try;;
29714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29715 (eval "$ac_try") 2>&5
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); }; } &&
29719 { ac_try
='test -s conftest.$ac_objext'
29720 { (case "(($ac_try" in
29721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29722 *) ac_try_echo=$ac_try;;
29724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725 (eval "$ac_try") 2>&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; }; then
29729 ac_cv_struct_tm=time.h
29731 echo "$as_me: failed program was:" >&5
29732 sed 's/^/| /' conftest.$ac_ext >&5
29734 ac_cv_struct_tm=sys/time.h
29737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29739 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29740 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29741 if test $ac_cv_struct_tm = sys/time.h; then
29743 cat >>confdefs.h <<\_ACEOF
29744 #define TM_IN_SYS_TIME 1
29749 { echo "$as_me:$LINENO: checking for int64_t" >&5
29750 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29751 if test "${ac_cv_type_int64_t+set}" = set; then
29752 echo $ECHO_N "(cached) $ECHO_C" >&6
29754 cat >conftest.$ac_ext <<_ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h. */
29760 $ac_includes_default
29761 typedef int64_t ac__type_new_;
29765 if ((ac__type_new_ *) 0)
29767 if (sizeof (ac__type_new_))
29773 rm -f conftest.$ac_objext
29774 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29782 grep -v '^ *+' conftest.er1
>conftest.err
29784 cat conftest.err
>&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); } &&
29787 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29788 { (case "(($ac_try" in
29789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29790 *) ac_try_echo=$ac_try;;
29792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29793 (eval "$ac_try") 2>&5
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); }; } &&
29797 { ac_try='test -s conftest.$ac_objext'
29798 { (case "(($ac_try" in
29799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29800 *) ac_try_echo
=$ac_try;;
29802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29803 (eval "$ac_try") 2>&5
29805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806 (exit $ac_status); }; }; then
29807 ac_cv_type_int64_t
=yes
29809 echo "$as_me: failed program was:" >&5
29810 sed 's/^/| /' conftest.
$ac_ext >&5
29812 ac_cv_type_int64_t
=no
29815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29817 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29818 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29819 if test $ac_cv_type_int64_t = yes; then
29821 cat >>confdefs.h
<<_ACEOF
29822 #define HAVE_INT64_T 1
29827 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29828 echo "$as_me: error: Type int64_t required but not found" >&2;}
29829 { (exit 1); exit 1; }; }
29832 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29833 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29834 if test "${ac_cv_type_uint64_t+set}" = set; then
29835 echo $ECHO_N "(cached) $ECHO_C" >&6
29837 cat >conftest.
$ac_ext <<_ACEOF
29840 cat confdefs.h
>>conftest.
$ac_ext
29841 cat >>conftest.
$ac_ext <<_ACEOF
29842 /* end confdefs.h. */
29843 $ac_includes_default
29844 typedef uint64_t ac__type_new_;
29848 if ((ac__type_new_ *) 0)
29850 if (sizeof (ac__type_new_))
29856 rm -f conftest.
$ac_objext
29857 if { (ac_try
="$ac_compile"
29858 case "(($ac_try" in
29859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29860 *) ac_try_echo=$ac_try;;
29862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863 (eval "$ac_compile") 2>conftest.er1
29865 grep -v '^ *+' conftest.er1 >conftest.err
29867 cat conftest.err >&5
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); } &&
29870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29871 { (case "(($ac_try" in
29872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29873 *) ac_try_echo
=$ac_try;;
29875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29876 (eval "$ac_try") 2>&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; } &&
29880 { ac_try
='test -s conftest.$ac_objext'
29881 { (case "(($ac_try" in
29882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29883 *) ac_try_echo=$ac_try;;
29885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886 (eval "$ac_try") 2>&5
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; }; then
29890 ac_cv_type_uint64_t=yes
29892 echo "$as_me: failed program was:" >&5
29893 sed 's/^/| /' conftest.$ac_ext >&5
29895 ac_cv_type_uint64_t=no
29898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29900 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29901 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29902 if test $ac_cv_type_uint64_t = yes; then
29904 cat >>confdefs.h <<_ACEOF
29905 #define HAVE_UINT64_T 1
29910 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29911 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29912 if test "${ac_cv_type_u_int64_t+set}" = set; then
29913 echo $ECHO_N "(cached) $ECHO_C" >&6
29915 cat >conftest.$ac_ext <<_ACEOF
29918 cat confdefs.h >>conftest.$ac_ext
29919 cat >>conftest.$ac_ext <<_ACEOF
29920 /* end confdefs.h. */
29921 $ac_includes_default
29922 typedef u_int64_t ac__type_new_;
29926 if ((ac__type_new_ *) 0)
29928 if (sizeof (ac__type_new_))
29934 rm -f conftest.$ac_objext
29935 if { (ac_try="$ac_compile"
29936 case "(($ac_try" in
29937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29938 *) ac_try_echo
=$ac_try;;
29940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29941 (eval "$ac_compile") 2>conftest.er1
29943 grep -v '^ *+' conftest.er1
>conftest.err
29945 cat conftest.err
>&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); } &&
29948 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29949 { (case "(($ac_try" in
29950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954 (eval "$ac_try") 2>&5
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); }; } &&
29958 { ac_try='test -s conftest.$ac_objext'
29959 { (case "(($ac_try" in
29960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29961 *) ac_try_echo
=$ac_try;;
29963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964 (eval "$ac_try") 2>&5
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); }; }; then
29968 ac_cv_type_u_int64_t
=yes
29970 echo "$as_me: failed program was:" >&5
29971 sed 's/^/| /' conftest.
$ac_ext >&5
29973 ac_cv_type_u_int64_t
=no
29976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29978 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29979 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29980 if test $ac_cv_type_u_int64_t = yes; then
29982 cat >>confdefs.h
<<_ACEOF
29983 #define HAVE_U_INT64_T 1
29988 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29989 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29990 { (exit 1); exit 1; }; }
30004 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30006 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30009 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30010 echo $ECHO_N "(cached) $ECHO_C" >&6
30012 cat >conftest.
$ac_ext <<_ACEOF
30015 cat confdefs.h
>>conftest.
$ac_ext
30016 cat >>conftest.
$ac_ext <<_ACEOF
30017 /* end confdefs.h. */
30018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30020 #define $ac_func innocuous_$ac_func
30022 /* System header to define __stub macros and hopefully few prototypes,
30023 which can conflict with char $ac_func (); below.
30024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30025 <limits.h> exists even on freestanding compilers. */
30028 # include <limits.h>
30030 # include <assert.h>
30035 /* Override any GCC internal prototype to avoid an error.
30036 Use char because int might match the return type of a GCC
30037 builtin and then its argument prototype would still apply. */
30042 /* The GNU C library defines this for functions which it implements
30043 to always fail with ENOSYS. Some functions are actually named
30044 something starting with __ and the normal name is an alias. */
30045 #if defined __stub_$ac_func || defined __stub___$ac_func
30052 return $ac_func ();
30057 rm -f conftest.
$ac_objext conftest
$ac_exeext
30058 if { (ac_try
="$ac_link"
30059 case "(($ac_try" in
30060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30061 *) ac_try_echo=$ac_try;;
30063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064 (eval "$ac_link") 2>conftest.er1
30066 grep -v '^ *+' conftest.er1 >conftest.err
30068 cat conftest.err >&5
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); } &&
30071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30072 { (case "(($ac_try" in
30073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30074 *) ac_try_echo
=$ac_try;;
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_try") 2>&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); }; } &&
30081 { ac_try
='test -s conftest$ac_exeext'
30082 { (case "(($ac_try" in
30083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30084 *) ac_try_echo=$ac_try;;
30086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30087 (eval "$ac_try") 2>&5
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); }; }; then
30091 eval "$as_ac_var=yes"
30093 echo "$as_me: failed program was:" >&5
30094 sed 's/^/| /' conftest.$ac_ext >&5
30096 eval "$as_ac_var=no"
30099 rm -f core conftest.err conftest.$ac_objext \
30100 conftest$ac_exeext conftest.$ac_ext
30102 ac_res=`eval echo '${'$as_ac_var'}'`
30103 { echo "$as_me:$LINENO: result: $ac_res" >&5
30104 echo "${ECHO_T}$ac_res" >&6; }
30105 if test `eval echo '${'$as_ac_var'}'` = yes; then
30106 cat >>confdefs.h <<_ACEOF
30107 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30118 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30120 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30124 echo $ECHO_N "(cached) $ECHO_C" >&6
30126 cat >conftest.$ac_ext <<_ACEOF
30129 cat confdefs.h >>conftest.$ac_ext
30130 cat >>conftest.$ac_ext <<_ACEOF
30131 /* end confdefs.h. */
30132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30134 #define $ac_func innocuous_$ac_func
30136 /* System header to define __stub macros and hopefully few prototypes,
30137 which can conflict with char $ac_func (); below.
30138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30139 <limits.h> exists even on freestanding compilers. */
30142 # include <limits.h>
30144 # include <assert.h>
30149 /* Override any GCC internal prototype to avoid an error.
30150 Use char because int might match the return type of a GCC
30151 builtin and then its argument prototype would still apply. */
30156 /* The GNU C library defines this for functions which it implements
30157 to always fail with ENOSYS. Some functions are actually named
30158 something starting with __ and the normal name is an alias. */
30159 #if defined __stub_$ac_func || defined __stub___$ac_func
30166 return $ac_func ();
30171 rm -f conftest.$ac_objext conftest$ac_exeext
30172 if { (ac_try="$ac_link"
30173 case "(($ac_try" in
30174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30175 *) ac_try_echo
=$ac_try;;
30177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178 (eval "$ac_link") 2>conftest.er1
30180 grep -v '^ *+' conftest.er1
>conftest.err
30182 cat conftest.err
>&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } &&
30185 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30186 { (case "(($ac_try" in
30187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_try") 2>&5
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; } &&
30195 { ac_try='test -s conftest$ac_exeext'
30196 { (case "(($ac_try" in
30197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30198 *) ac_try_echo
=$ac_try;;
30200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_try") 2>&5
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; }; then
30205 eval "$as_ac_var=yes"
30207 echo "$as_me: failed program was:" >&5
30208 sed 's/^/| /' conftest.
$ac_ext >&5
30210 eval "$as_ac_var=no"
30213 rm -f core conftest.err conftest.
$ac_objext \
30214 conftest
$ac_exeext conftest.
$ac_ext
30216 ac_res
=`eval echo '${'$as_ac_var'}'`
30217 { echo "$as_me:$LINENO: result: $ac_res" >&5
30218 echo "${ECHO_T}$ac_res" >&6; }
30219 if test `eval echo '${'$as_ac_var'}'` = yes; then
30220 cat >>confdefs.h
<<_ACEOF
30221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30230 for ac_func
in isatty mkdtemp mkstemp
30232 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30235 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30236 echo $ECHO_N "(cached) $ECHO_C" >&6
30238 cat >conftest.
$ac_ext <<_ACEOF
30241 cat confdefs.h
>>conftest.
$ac_ext
30242 cat >>conftest.
$ac_ext <<_ACEOF
30243 /* end confdefs.h. */
30244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30246 #define $ac_func innocuous_$ac_func
30248 /* System header to define __stub macros and hopefully few prototypes,
30249 which can conflict with char $ac_func (); below.
30250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30251 <limits.h> exists even on freestanding compilers. */
30254 # include <limits.h>
30256 # include <assert.h>
30261 /* Override any GCC internal prototype to avoid an error.
30262 Use char because int might match the return type of a GCC
30263 builtin and then its argument prototype would still apply. */
30268 /* The GNU C library defines this for functions which it implements
30269 to always fail with ENOSYS. Some functions are actually named
30270 something starting with __ and the normal name is an alias. */
30271 #if defined __stub_$ac_func || defined __stub___$ac_func
30278 return $ac_func ();
30283 rm -f conftest.
$ac_objext conftest
$ac_exeext
30284 if { (ac_try
="$ac_link"
30285 case "(($ac_try" in
30286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30287 *) ac_try_echo=$ac_try;;
30289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290 (eval "$ac_link") 2>conftest.er1
30292 grep -v '^ *+' conftest.er1 >conftest.err
30294 cat conftest.err >&5
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); } &&
30297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30298 { (case "(($ac_try" in
30299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30300 *) ac_try_echo
=$ac_try;;
30302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303 (eval "$ac_try") 2>&5
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); }; } &&
30307 { ac_try
='test -s conftest$ac_exeext'
30308 { (case "(($ac_try" in
30309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30310 *) ac_try_echo=$ac_try;;
30312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30313 (eval "$ac_try") 2>&5
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); }; }; then
30317 eval "$as_ac_var=yes"
30319 echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30322 eval "$as_ac_var=no"
30325 rm -f core conftest.err conftest.$ac_objext \
30326 conftest$ac_exeext conftest.$ac_ext
30328 ac_res=`eval echo '${'$as_ac_var'}'`
30329 { echo "$as_me:$LINENO: result: $ac_res" >&5
30330 echo "${ECHO_T}$ac_res" >&6; }
30331 if test `eval echo '${'$as_ac_var'}'` = yes; then
30332 cat >>confdefs.h <<_ACEOF
30333 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30346 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30348 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30352 echo $ECHO_N "(cached) $ECHO_C" >&6
30354 cat >conftest.$ac_ext <<_ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h. */
30360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30362 #define $ac_func innocuous_$ac_func
30364 /* System header to define __stub macros and hopefully few prototypes,
30365 which can conflict with char $ac_func (); below.
30366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30367 <limits.h> exists even on freestanding compilers. */
30370 # include <limits.h>
30372 # include <assert.h>
30377 /* Override any GCC internal prototype to avoid an error.
30378 Use char because int might match the return type of a GCC
30379 builtin and then its argument prototype would still apply. */
30384 /* The GNU C library defines this for functions which it implements
30385 to always fail with ENOSYS. Some functions are actually named
30386 something starting with __ and the normal name is an alias. */
30387 #if defined __stub_$ac_func || defined __stub___$ac_func
30394 return $ac_func ();
30399 rm -f conftest.$ac_objext conftest$ac_exeext
30400 if { (ac_try="$ac_link"
30401 case "(($ac_try" in
30402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30403 *) ac_try_echo
=$ac_try;;
30405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406 (eval "$ac_link") 2>conftest.er1
30408 grep -v '^ *+' conftest.er1
>conftest.err
30410 cat conftest.err
>&5
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); } &&
30413 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30414 { (case "(($ac_try" in
30415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_try") 2>&5
30421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422 (exit $ac_status); }; } &&
30423 { ac_try='test -s conftest$ac_exeext'
30424 { (case "(($ac_try" in
30425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30426 *) ac_try_echo
=$ac_try;;
30428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30429 (eval "$ac_try") 2>&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); }; }; then
30433 eval "$as_ac_var=yes"
30435 echo "$as_me: failed program was:" >&5
30436 sed 's/^/| /' conftest.
$ac_ext >&5
30438 eval "$as_ac_var=no"
30441 rm -f core conftest.err conftest.
$ac_objext \
30442 conftest
$ac_exeext conftest.
$ac_ext
30444 ac_res
=`eval echo '${'$as_ac_var'}'`
30445 { echo "$as_me:$LINENO: result: $ac_res" >&5
30446 echo "${ECHO_T}$ac_res" >&6; }
30447 if test `eval echo '${'$as_ac_var'}'` = yes; then
30448 cat >>confdefs.h
<<_ACEOF
30449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30459 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
30461 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30464 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30465 echo $ECHO_N "(cached) $ECHO_C" >&6
30467 cat >conftest.
$ac_ext <<_ACEOF
30470 cat confdefs.h
>>conftest.
$ac_ext
30471 cat >>conftest.
$ac_ext <<_ACEOF
30472 /* end confdefs.h. */
30473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30475 #define $ac_func innocuous_$ac_func
30477 /* System header to define __stub macros and hopefully few prototypes,
30478 which can conflict with char $ac_func (); below.
30479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30480 <limits.h> exists even on freestanding compilers. */
30483 # include <limits.h>
30485 # include <assert.h>
30490 /* Override any GCC internal prototype to avoid an error.
30491 Use char because int might match the return type of a GCC
30492 builtin and then its argument prototype would still apply. */
30497 /* The GNU C library defines this for functions which it implements
30498 to always fail with ENOSYS. Some functions are actually named
30499 something starting with __ and the normal name is an alias. */
30500 #if defined __stub_$ac_func || defined __stub___$ac_func
30507 return $ac_func ();
30512 rm -f conftest.
$ac_objext conftest
$ac_exeext
30513 if { (ac_try
="$ac_link"
30514 case "(($ac_try" in
30515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30516 *) ac_try_echo=$ac_try;;
30518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519 (eval "$ac_link") 2>conftest.er1
30521 grep -v '^ *+' conftest.er1 >conftest.err
30523 cat conftest.err >&5
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); } &&
30526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30527 { (case "(($ac_try" in
30528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30529 *) ac_try_echo
=$ac_try;;
30531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30532 (eval "$ac_try") 2>&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); }; } &&
30536 { ac_try
='test -s conftest$ac_exeext'
30537 { (case "(($ac_try" in
30538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_try") 2>&5
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; }; then
30546 eval "$as_ac_var=yes"
30548 echo "$as_me: failed program was:" >&5
30549 sed 's/^/| /' conftest.$ac_ext >&5
30551 eval "$as_ac_var=no"
30554 rm -f core conftest.err conftest.$ac_objext \
30555 conftest$ac_exeext conftest.$ac_ext
30557 ac_res=`eval echo '${'$as_ac_var'}'`
30558 { echo "$as_me:$LINENO: result: $ac_res" >&5
30559 echo "${ECHO_T}$ac_res" >&6; }
30560 if test `eval echo '${'$as_ac_var'}'` = yes; then
30561 cat >>confdefs.h <<_ACEOF
30562 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30572 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30574 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30580 cat >conftest.$ac_ext <<_ACEOF
30583 cat confdefs.h >>conftest.$ac_ext
30584 cat >>conftest.$ac_ext <<_ACEOF
30585 /* end confdefs.h. */
30586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30588 #define $ac_func innocuous_$ac_func
30590 /* System header to define __stub macros and hopefully few prototypes,
30591 which can conflict with char $ac_func (); below.
30592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30593 <limits.h> exists even on freestanding compilers. */
30596 # include <limits.h>
30598 # include <assert.h>
30603 /* Override any GCC internal prototype to avoid an error.
30604 Use char because int might match the return type of a GCC
30605 builtin and then its argument prototype would still apply. */
30610 /* The GNU C library defines this for functions which it implements
30611 to always fail with ENOSYS. Some functions are actually named
30612 something starting with __ and the normal name is an alias. */
30613 #if defined __stub_$ac_func || defined __stub___$ac_func
30620 return $ac_func ();
30625 rm -f conftest.$ac_objext conftest$ac_exeext
30626 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30634 grep -v '^ *+' conftest.er1
>conftest.err
30636 cat conftest.err
>&5
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); } &&
30639 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30640 { (case "(($ac_try" in
30641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30642 *) ac_try_echo=$ac_try;;
30644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645 (eval "$ac_try") 2>&5
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); }; } &&
30649 { ac_try='test -s conftest$ac_exeext'
30650 { (case "(($ac_try" in
30651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30652 *) ac_try_echo
=$ac_try;;
30654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655 (eval "$ac_try") 2>&5
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; }; then
30659 eval "$as_ac_var=yes"
30661 echo "$as_me: failed program was:" >&5
30662 sed 's/^/| /' conftest.
$ac_ext >&5
30664 eval "$as_ac_var=no"
30667 rm -f core conftest.err conftest.
$ac_objext \
30668 conftest
$ac_exeext conftest.
$ac_ext
30670 ac_res
=`eval echo '${'$as_ac_var'}'`
30671 { echo "$as_me:$LINENO: result: $ac_res" >&5
30672 echo "${ECHO_T}$ac_res" >&6; }
30673 if test `eval echo '${'$as_ac_var'}'` = yes; then
30674 cat >>confdefs.h
<<_ACEOF
30675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30681 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30682 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30683 if test "${llvm_cv_c_printf_a+set}" = set; then
30684 echo $ECHO_N "(cached) $ECHO_C" >&6
30687 ac_cpp
='$CPP $CPPFLAGS'
30688 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30689 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30690 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
30692 if test "$cross_compiling" = yes; then
30693 llvmac_cv_c_printf_a
=no
30695 cat >conftest.
$ac_ext <<_ACEOF
30699 cat confdefs.h
>>conftest.
$ac_ext
30700 cat >>conftest.
$ac_ext <<_ACEOF
30701 /* end confdefs.h. */
30704 #include <stdlib.h>
30710 volatile double A, B;
30714 sprintf(Buffer, "%a", A);
30718 if (A != 0x1.999999999999ap-4)
30725 rm -f conftest
$ac_exeext
30726 if { (ac_try
="$ac_link"
30727 case "(($ac_try" in
30728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30729 *) ac_try_echo=$ac_try;;
30731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30732 (eval "$ac_link") 2>&5
30734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30736 { (case "(($ac_try" in
30737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30738 *) ac_try_echo
=$ac_try;;
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741 (eval "$ac_try") 2>&5
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); }; }; then
30745 llvm_cv_c_printf_a
=yes
30747 echo "$as_me: program exited with status $ac_status" >&5
30748 echo "$as_me: failed program was:" >&5
30749 sed 's/^/| /' conftest.
$ac_ext >&5
30751 ( exit $ac_status )
30752 llvmac_cv_c_printf_a
=no
30754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
30759 ac_cpp
='$CPP $CPPFLAGS'
30760 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30761 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30762 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
30765 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30766 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30767 if test "$llvm_cv_c_printf_a" = "yes"; then
30769 cat >>confdefs.h
<<\_ACEOF
30770 #define HAVE_PRINTF_A 1
30775 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30776 # for constant arguments. Useless!
30777 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30778 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30779 if test "${ac_cv_working_alloca_h+set}" = set; then
30780 echo $ECHO_N "(cached) $ECHO_C" >&6
30782 cat >conftest.
$ac_ext <<_ACEOF
30785 cat confdefs.h
>>conftest.
$ac_ext
30786 cat >>conftest.
$ac_ext <<_ACEOF
30787 /* end confdefs.h. */
30788 #include <alloca.h>
30792 char *p = (char *) alloca (2 * sizeof (int));
30798 rm -f conftest.
$ac_objext conftest
$ac_exeext
30799 if { (ac_try
="$ac_link"
30800 case "(($ac_try" in
30801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_link") 2>conftest.er1
30807 grep -v '^ *+' conftest.er1 >conftest.err
30809 cat conftest.err >&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } &&
30812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30813 { (case "(($ac_try" in
30814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30815 *) ac_try_echo
=$ac_try;;
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_try") 2>&5
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); }; } &&
30822 { ac_try
='test -s conftest$ac_exeext'
30823 { (case "(($ac_try" in
30824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_try") 2>&5
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; }; then
30832 ac_cv_working_alloca_h=yes
30834 echo "$as_me: failed program was:" >&5
30835 sed 's/^/| /' conftest.$ac_ext >&5
30837 ac_cv_working_alloca_h=no
30840 rm -f core conftest.err conftest.$ac_objext \
30841 conftest$ac_exeext conftest.$ac_ext
30843 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30844 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30845 if test $ac_cv_working_alloca_h = yes; then
30847 cat >>confdefs.h <<\_ACEOF
30848 #define HAVE_ALLOCA_H 1
30853 { echo "$as_me:$LINENO: checking for alloca" >&5
30854 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30855 if test "${ac_cv_func_alloca_works+set}" = set; then
30856 echo $ECHO_N "(cached) $ECHO_C" >&6
30858 cat >conftest.$ac_ext <<_ACEOF
30861 cat confdefs.h >>conftest.$ac_ext
30862 cat >>conftest.$ac_ext <<_ACEOF
30863 /* end confdefs.h. */
30865 # define alloca __builtin_alloca
30868 # include <malloc.h>
30869 # define alloca _alloca
30872 # include <alloca.h>
30877 # ifndef alloca /* predefined by HP cc +Olibcalls */
30888 char *p = (char *) alloca (1);
30894 rm -f conftest.$ac_objext conftest$ac_exeext
30895 if { (ac_try="$ac_link"
30896 case "(($ac_try" in
30897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30898 *) ac_try_echo
=$ac_try;;
30900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30901 (eval "$ac_link") 2>conftest.er1
30903 grep -v '^ *+' conftest.er1
>conftest.err
30905 cat conftest.err
>&5
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); } &&
30908 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30909 { (case "(($ac_try" in
30910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30911 *) ac_try_echo=$ac_try;;
30913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30914 (eval "$ac_try") 2>&5
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; } &&
30918 { ac_try='test -s conftest$ac_exeext'
30919 { (case "(($ac_try" in
30920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30921 *) ac_try_echo
=$ac_try;;
30923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30924 (eval "$ac_try") 2>&5
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); }; }; then
30928 ac_cv_func_alloca_works
=yes
30930 echo "$as_me: failed program was:" >&5
30931 sed 's/^/| /' conftest.
$ac_ext >&5
30933 ac_cv_func_alloca_works
=no
30936 rm -f core conftest.err conftest.
$ac_objext \
30937 conftest
$ac_exeext conftest.
$ac_ext
30939 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30940 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30942 if test $ac_cv_func_alloca_works = yes; then
30944 cat >>confdefs.h
<<\_ACEOF
30945 #define HAVE_ALLOCA 1
30949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30950 # that cause trouble. Some versions do not even contain alloca or
30951 # contain a buggy version. If you still want to use their alloca,
30952 # use ar to extract alloca.o from them instead of compiling alloca.c.
30954 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
30956 cat >>confdefs.h
<<\_ACEOF
30961 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30962 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30963 if test "${ac_cv_os_cray+set}" = set; then
30964 echo $ECHO_N "(cached) $ECHO_C" >&6
30966 cat >conftest.
$ac_ext <<_ACEOF
30969 cat confdefs.h
>>conftest.
$ac_ext
30970 cat >>conftest.
$ac_ext <<_ACEOF
30971 /* end confdefs.h. */
30972 #if defined CRAY && ! defined CRAY2
30979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30980 $EGREP "webecray" >/dev
/null
2>&1; then
30988 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30989 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30990 if test $ac_cv_os_cray = yes; then
30991 for ac_func
in _getb67 GETB67 getb67
; do
30992 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30995 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30996 echo $ECHO_N "(cached) $ECHO_C" >&6
30998 cat >conftest.
$ac_ext <<_ACEOF
31001 cat confdefs.h
>>conftest.
$ac_ext
31002 cat >>conftest.
$ac_ext <<_ACEOF
31003 /* end confdefs.h. */
31004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31006 #define $ac_func innocuous_$ac_func
31008 /* System header to define __stub macros and hopefully few prototypes,
31009 which can conflict with char $ac_func (); below.
31010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31011 <limits.h> exists even on freestanding compilers. */
31014 # include <limits.h>
31016 # include <assert.h>
31021 /* Override any GCC internal prototype to avoid an error.
31022 Use char because int might match the return type of a GCC
31023 builtin and then its argument prototype would still apply. */
31028 /* The GNU C library defines this for functions which it implements
31029 to always fail with ENOSYS. Some functions are actually named
31030 something starting with __ and the normal name is an alias. */
31031 #if defined __stub_$ac_func || defined __stub___$ac_func
31038 return $ac_func ();
31043 rm -f conftest.
$ac_objext conftest
$ac_exeext
31044 if { (ac_try
="$ac_link"
31045 case "(($ac_try" in
31046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31047 *) ac_try_echo=$ac_try;;
31049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31050 (eval "$ac_link") 2>conftest.er1
31052 grep -v '^ *+' conftest.er1 >conftest.err
31054 cat conftest.err >&5
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); } &&
31057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31058 { (case "(($ac_try" in
31059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31060 *) ac_try_echo
=$ac_try;;
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_try") 2>&5
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); }; } &&
31067 { ac_try
='test -s conftest$ac_exeext'
31068 { (case "(($ac_try" in
31069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31070 *) ac_try_echo=$ac_try;;
31072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073 (eval "$ac_try") 2>&5
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; }; then
31077 eval "$as_ac_var=yes"
31079 echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.$ac_ext >&5
31082 eval "$as_ac_var=no"
31085 rm -f core conftest.err conftest.$ac_objext \
31086 conftest$ac_exeext conftest.$ac_ext
31088 ac_res=`eval echo '${'$as_ac_var'}'`
31089 { echo "$as_me:$LINENO: result: $ac_res" >&5
31090 echo "${ECHO_T}$ac_res" >&6; }
31091 if test `eval echo '${'$as_ac_var'}'` = yes; then
31093 cat >>confdefs.h <<_ACEOF
31094 #define CRAY_STACKSEG_END $ac_func
31103 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31104 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31105 if test "${ac_cv_c_stack_direction+set}" = set; then
31106 echo $ECHO_N "(cached) $ECHO_C" >&6
31108 if test "$cross_compiling" = yes; then
31109 ac_cv_c_stack_direction=0
31111 cat >conftest.$ac_ext <<_ACEOF
31114 cat confdefs.h >>conftest.$ac_ext
31115 cat >>conftest.$ac_ext <<_ACEOF
31116 /* end confdefs.h. */
31117 $ac_includes_default
31119 find_stack_direction ()
31121 static char *addr = 0;
31126 return find_stack_direction ();
31129 return (&dummy > addr) ? 1 : -1;
31135 return find_stack_direction () < 0;
31138 rm -f conftest$ac_exeext
31139 if { (ac_try="$ac_link"
31140 case "(($ac_try" in
31141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31142 *) ac_try_echo
=$ac_try;;
31144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31145 (eval "$ac_link") 2>&5
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31149 { (case "(($ac_try" in
31150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31151 *) ac_try_echo=$ac_try;;
31153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154 (eval "$ac_try") 2>&5
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; }; then
31158 ac_cv_c_stack_direction=1
31160 echo "$as_me: program exited with status $ac_status" >&5
31161 echo "$as_me: failed program was:" >&5
31162 sed 's/^/| /' conftest.$ac_ext >&5
31164 ( exit $ac_status )
31165 ac_cv_c_stack_direction=-1
31167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31172 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31173 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31175 cat >>confdefs.h <<_ACEOF
31176 #define STACK_DIRECTION $ac_cv_c_stack_direction
31183 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31184 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31185 if test "${ac_cv_func_rand48+set}" = set; then
31186 echo $ECHO_N "(cached) $ECHO_C" >&6
31189 ac_cpp='$CXXCPP $CPPFLAGS'
31190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31194 cat >conftest.$ac_ext <<_ACEOF
31197 cat confdefs.h >>conftest.$ac_ext
31198 cat >>conftest.$ac_ext <<_ACEOF
31199 /* end confdefs.h. */
31200 #include <stdlib.h>
31204 srand48(0);lrand48();drand48();
31209 rm -f conftest.$ac_objext
31210 if { (ac_try="$ac_compile"
31211 case "(($ac_try" in
31212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31213 *) ac_try_echo
=$ac_try;;
31215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216 (eval "$ac_compile") 2>conftest.er1
31218 grep -v '^ *+' conftest.er1
>conftest.err
31220 cat conftest.err
>&5
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } &&
31223 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31224 { (case "(($ac_try" in
31225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31229 (eval "$ac_try") 2>&5
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); }; } &&
31233 { ac_try='test -s conftest.$ac_objext'
31234 { (case "(($ac_try" in
31235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31236 *) ac_try_echo
=$ac_try;;
31238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239 (eval "$ac_try") 2>&5
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); }; }; then
31243 ac_cv_func_rand48
=yes
31245 echo "$as_me: failed program was:" >&5
31246 sed 's/^/| /' conftest.
$ac_ext >&5
31248 ac_cv_func_rand48
=no
31251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31253 ac_cpp
='$CPP $CPPFLAGS'
31254 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31255 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31256 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
31259 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31260 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31262 if test "$ac_cv_func_rand48" = "yes" ; then
31264 cat >>confdefs.h
<<\_ACEOF
31265 #define HAVE_RAND48 1
31271 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31272 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31273 if test "${ac_cv_cxx_namespaces+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31277 ac_cpp
='$CXXCPP $CPPFLAGS'
31278 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31279 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31280 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31282 cat >conftest.
$ac_ext <<_ACEOF
31285 cat confdefs.h
>>conftest.
$ac_ext
31286 cat >>conftest.
$ac_ext <<_ACEOF
31287 /* end confdefs.h. */
31288 namespace Outer { namespace Inner { int i = 0; }}
31292 using namespace Outer::Inner; return i;
31297 rm -f conftest.
$ac_objext
31298 if { (ac_try
="$ac_compile"
31299 case "(($ac_try" in
31300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31301 *) ac_try_echo=$ac_try;;
31303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31304 (eval "$ac_compile") 2>conftest.er1
31306 grep -v '^ *+' conftest.er1 >conftest.err
31308 cat conftest.err >&5
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); } &&
31311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31312 { (case "(($ac_try" in
31313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31314 *) ac_try_echo
=$ac_try;;
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_try") 2>&5
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; } &&
31321 { ac_try
='test -s conftest.$ac_objext'
31322 { (case "(($ac_try" in
31323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31324 *) ac_try_echo=$ac_try;;
31326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327 (eval "$ac_try") 2>&5
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); }; }; then
31331 ac_cv_cxx_namespaces=yes
31333 echo "$as_me: failed program was:" >&5
31334 sed 's/^/| /' conftest.$ac_ext >&5
31336 ac_cv_cxx_namespaces=no
31339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31341 ac_cpp='$CPP $CPPFLAGS'
31342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31348 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31349 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31350 if test "$ac_cv_cxx_namespaces" = yes; then
31352 cat >>confdefs.h <<\_ACEOF
31353 #define HAVE_NAMESPACES
31358 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31359 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31360 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31361 echo $ECHO_N "(cached) $ECHO_C" >&6
31365 ac_cpp='$CXXCPP $CPPFLAGS'
31366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31370 cat >conftest.$ac_ext <<_ACEOF
31373 cat confdefs.h >>conftest.$ac_ext
31374 cat >>conftest.$ac_ext <<_ACEOF
31375 /* end confdefs.h. */
31376 #include <ext/hash_map>
31377 #ifdef HAVE_NAMESPACES
31378 using namespace std;
31383 hash_map<int, int> t;
31388 rm -f conftest.$ac_objext
31389 if { (ac_try="$ac_compile"
31390 case "(($ac_try" in
31391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31392 *) ac_try_echo
=$ac_try;;
31394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395 (eval "$ac_compile") 2>conftest.er1
31397 grep -v '^ *+' conftest.er1
>conftest.err
31399 cat conftest.err
>&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); } &&
31402 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31403 { (case "(($ac_try" in
31404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31405 *) ac_try_echo=$ac_try;;
31407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408 (eval "$ac_try") 2>&5
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; } &&
31412 { ac_try='test -s conftest.$ac_objext'
31413 { (case "(($ac_try" in
31414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31415 *) ac_try_echo
=$ac_try;;
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_try") 2>&5
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; }; then
31422 ac_cv_cxx_have_std_ext_hash_map
=yes
31424 echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.
$ac_ext >&5
31427 ac_cv_cxx_have_std_ext_hash_map
=no
31430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31432 ac_cpp
='$CPP $CPPFLAGS'
31433 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31434 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31435 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
31438 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31439 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31440 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31443 cat >>confdefs.h
<<\_ACEOF
31444 #define HAVE_STD_EXT_HASH_MAP 1
31449 cat >>confdefs.h
<<\_ACEOF
31450 #define HAVE_STD_EXT_HASH_MAP 0
31455 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31456 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31457 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31458 echo $ECHO_N "(cached) $ECHO_C" >&6
31462 ac_cpp
='$CXXCPP $CPPFLAGS'
31463 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31464 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31465 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31467 cat >conftest.
$ac_ext <<_ACEOF
31470 cat confdefs.h
>>conftest.
$ac_ext
31471 cat >>conftest.
$ac_ext <<_ACEOF
31472 /* end confdefs.h. */
31473 #include <ext/hash_map>
31474 #ifdef HAVE_NAMESPACES
31475 using namespace __gnu_cxx;
31480 hash_map<int,int> t;
31485 rm -f conftest.
$ac_objext
31486 if { (ac_try
="$ac_compile"
31487 case "(($ac_try" in
31488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_compile") 2>conftest.er1
31494 grep -v '^ *+' conftest.er1 >conftest.err
31496 cat conftest.err >&5
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); } &&
31499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31500 { (case "(($ac_try" in
31501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31502 *) ac_try_echo
=$ac_try;;
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_try") 2>&5
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; } &&
31509 { ac_try
='test -s conftest.$ac_objext'
31510 { (case "(($ac_try" in
31511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_try") 2>&5
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); }; }; then
31519 ac_cv_cxx_have_gnu_ext_hash_map=yes
31521 echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31524 ac_cv_cxx_have_gnu_ext_hash_map=no
31527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31529 ac_cpp='$CPP $CPPFLAGS'
31530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31535 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31536 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31537 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31540 cat >>confdefs.h <<\_ACEOF
31541 #define HAVE_GNU_EXT_HASH_MAP 1
31546 cat >>confdefs.h <<\_ACEOF
31547 #define HAVE_GNU_EXT_HASH_MAP 0
31552 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31553 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31554 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31559 ac_cpp='$CXXCPP $CPPFLAGS'
31560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31564 cat >conftest.$ac_ext <<_ACEOF
31567 cat confdefs.h >>conftest.$ac_ext
31568 cat >>conftest.$ac_ext <<_ACEOF
31569 /* end confdefs.h. */
31570 #include <hash_map>
31574 hash_map<int,int> t;
31579 rm -f conftest.$ac_objext
31580 if { (ac_try="$ac_compile"
31581 case "(($ac_try" in
31582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31583 *) ac_try_echo
=$ac_try;;
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_compile") 2>conftest.er1
31588 grep -v '^ *+' conftest.er1
>conftest.err
31590 cat conftest.err
>&5
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); } &&
31593 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31594 { (case "(($ac_try" in
31595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31596 *) ac_try_echo=$ac_try;;
31598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31599 (eval "$ac_try") 2>&5
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; } &&
31603 { ac_try='test -s conftest.$ac_objext'
31604 { (case "(($ac_try" in
31605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31606 *) ac_try_echo
=$ac_try;;
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609 (eval "$ac_try") 2>&5
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); }; }; then
31613 ac_cv_cxx_have_global_hash_map
=yes
31615 echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.
$ac_ext >&5
31618 ac_cv_cxx_have_global_hash_map
=no
31621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31623 ac_cpp
='$CPP $CPPFLAGS'
31624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
31629 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31630 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31631 if test "$ac_cv_cxx_have_global_hash_map" = yes
31634 cat >>confdefs.h
<<\_ACEOF
31635 #define HAVE_GLOBAL_HASH_MAP 1
31640 cat >>confdefs.h
<<\_ACEOF
31641 #define HAVE_GLOBAL_HASH_MAP 0
31646 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31647 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31648 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31649 echo $ECHO_N "(cached) $ECHO_C" >&6
31653 ac_cpp
='$CXXCPP $CPPFLAGS'
31654 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31655 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31656 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31658 cat >conftest.
$ac_ext <<_ACEOF
31661 cat confdefs.h
>>conftest.
$ac_ext
31662 cat >>conftest.
$ac_ext <<_ACEOF
31663 /* end confdefs.h. */
31664 #include <ext/hash_set>
31665 #ifdef HAVE_NAMESPACES
31666 using namespace std;
31676 rm -f conftest.
$ac_objext
31677 if { (ac_try
="$ac_compile"
31678 case "(($ac_try" in
31679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31680 *) ac_try_echo=$ac_try;;
31682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31683 (eval "$ac_compile") 2>conftest.er1
31685 grep -v '^ *+' conftest.er1 >conftest.err
31687 cat conftest.err >&5
31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); } &&
31690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31691 { (case "(($ac_try" in
31692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31693 *) ac_try_echo
=$ac_try;;
31695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31696 (eval "$ac_try") 2>&5
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; } &&
31700 { ac_try
='test -s conftest.$ac_objext'
31701 { (case "(($ac_try" in
31702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31703 *) ac_try_echo=$ac_try;;
31705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31706 (eval "$ac_try") 2>&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; }; then
31710 ac_cv_cxx_have_std_ext_hash_set=yes
31712 echo "$as_me: failed program was:" >&5
31713 sed 's/^/| /' conftest.$ac_ext >&5
31715 ac_cv_cxx_have_std_ext_hash_set=no
31718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31720 ac_cpp='$CPP $CPPFLAGS'
31721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31726 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31727 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31728 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31731 cat >>confdefs.h <<\_ACEOF
31732 #define HAVE_STD_EXT_HASH_SET 1
31737 cat >>confdefs.h <<\_ACEOF
31738 #define HAVE_STD_EXT_HASH_SET 0
31743 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31744 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31745 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31746 echo $ECHO_N "(cached) $ECHO_C" >&6
31750 ac_cpp='$CXXCPP $CPPFLAGS'
31751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31755 cat >conftest.$ac_ext <<_ACEOF
31758 cat confdefs.h >>conftest.$ac_ext
31759 cat >>conftest.$ac_ext <<_ACEOF
31760 /* end confdefs.h. */
31761 #include <ext/hash_set>
31762 #ifdef HAVE_NAMESPACES
31763 using namespace __gnu_cxx;
31773 rm -f conftest.$ac_objext
31774 if { (ac_try="$ac_compile"
31775 case "(($ac_try" in
31776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31777 *) ac_try_echo
=$ac_try;;
31779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780 (eval "$ac_compile") 2>conftest.er1
31782 grep -v '^ *+' conftest.er1
>conftest.err
31784 cat conftest.err
>&5
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); } &&
31787 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31788 { (case "(($ac_try" in
31789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31790 *) ac_try_echo=$ac_try;;
31792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31793 (eval "$ac_try") 2>&5
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); }; } &&
31797 { ac_try='test -s conftest.$ac_objext'
31798 { (case "(($ac_try" in
31799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31800 *) ac_try_echo
=$ac_try;;
31802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803 (eval "$ac_try") 2>&5
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); }; }; then
31807 ac_cv_cxx_have_gnu_ext_hash_set
=yes
31809 echo "$as_me: failed program was:" >&5
31810 sed 's/^/| /' conftest.
$ac_ext >&5
31812 ac_cv_cxx_have_gnu_ext_hash_set
=no
31815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31817 ac_cpp
='$CPP $CPPFLAGS'
31818 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31819 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31820 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
31823 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31824 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31825 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31828 cat >>confdefs.h
<<\_ACEOF
31829 #define HAVE_GNU_EXT_HASH_SET 1
31834 cat >>confdefs.h
<<\_ACEOF
31835 #define HAVE_GNU_EXT_HASH_SET 0
31840 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31841 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31842 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31843 echo $ECHO_N "(cached) $ECHO_C" >&6
31847 ac_cpp
='$CXXCPP $CPPFLAGS'
31848 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31849 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31850 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31852 cat >conftest.
$ac_ext <<_ACEOF
31855 cat confdefs.h
>>conftest.
$ac_ext
31856 cat >>conftest.
$ac_ext <<_ACEOF
31857 /* end confdefs.h. */
31858 #include <hash_set>
31862 hash_set<int> t; return 0;
31867 rm -f conftest.
$ac_objext
31868 if { (ac_try
="$ac_compile"
31869 case "(($ac_try" in
31870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31871 *) ac_try_echo=$ac_try;;
31873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874 (eval "$ac_compile") 2>conftest.er1
31876 grep -v '^ *+' conftest.er1 >conftest.err
31878 cat conftest.err >&5
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } &&
31881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31882 { (case "(($ac_try" in
31883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31884 *) ac_try_echo
=$ac_try;;
31886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887 (eval "$ac_try") 2>&5
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); }; } &&
31891 { ac_try
='test -s conftest.$ac_objext'
31892 { (case "(($ac_try" in
31893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31894 *) ac_try_echo=$ac_try;;
31896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897 (eval "$ac_try") 2>&5
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; }; then
31901 ac_cv_cxx_have_global_hash_set=yes
31903 echo "$as_me: failed program was:" >&5
31904 sed 's/^/| /' conftest.$ac_ext >&5
31906 ac_cv_cxx_have_global_hash_set=no
31909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31911 ac_cpp='$CPP $CPPFLAGS'
31912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31917 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31918 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31919 if test "$ac_cv_cxx_have_global_hash_set" = yes
31922 cat >>confdefs.h <<\_ACEOF
31923 #define HAVE_GLOBAL_HASH_SET 1
31928 cat >>confdefs.h <<\_ACEOF
31929 #define HAVE_GLOBAL_HASH_SET 0
31934 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31935 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31936 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31937 echo $ECHO_N "(cached) $ECHO_C" >&6
31941 ac_cpp='$CXXCPP $CPPFLAGS'
31942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31946 cat >conftest.$ac_ext <<_ACEOF
31949 cat confdefs.h >>conftest.$ac_ext
31950 cat >>conftest.$ac_ext <<_ACEOF
31951 /* end confdefs.h. */
31952 #include <iterator>
31953 #ifdef HAVE_NAMESPACES
31954 using namespace std;
31959 iterator<int,int,int> t; return 0;
31964 rm -f conftest.$ac_objext
31965 if { (ac_try="$ac_compile"
31966 case "(($ac_try" in
31967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31968 *) ac_try_echo
=$ac_try;;
31970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971 (eval "$ac_compile") 2>conftest.er1
31973 grep -v '^ *+' conftest.er1
>conftest.err
31975 cat conftest.err
>&5
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); } &&
31978 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31979 { (case "(($ac_try" in
31980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31981 *) ac_try_echo=$ac_try;;
31983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984 (eval "$ac_try") 2>&5
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); }; } &&
31988 { ac_try='test -s conftest.$ac_objext'
31989 { (case "(($ac_try" in
31990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31991 *) ac_try_echo
=$ac_try;;
31993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994 (eval "$ac_try") 2>&5
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; }; then
31998 ac_cv_cxx_have_std_iterator
=yes
32000 echo "$as_me: failed program was:" >&5
32001 sed 's/^/| /' conftest.
$ac_ext >&5
32003 ac_cv_cxx_have_std_iterator
=no
32006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32008 ac_cpp
='$CPP $CPPFLAGS'
32009 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32010 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32011 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32016 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32017 if test "$ac_cv_cxx_have_std_iterator" = yes
32020 cat >>confdefs.h
<<\_ACEOF
32021 #define HAVE_STD_ITERATOR 1
32026 cat >>confdefs.h
<<\_ACEOF
32027 #define HAVE_STD_ITERATOR 0
32032 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32033 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32034 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32035 echo $ECHO_N "(cached) $ECHO_C" >&6
32039 ac_cpp
='$CXXCPP $CPPFLAGS'
32040 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32041 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32042 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
32044 cat >conftest.
$ac_ext <<_ACEOF
32047 cat confdefs.h
>>conftest.
$ac_ext
32048 cat >>conftest.
$ac_ext <<_ACEOF
32049 /* end confdefs.h. */
32050 #include <iterator>
32051 #ifdef HAVE_NAMESPACES
32052 using namespace std;
32057 bidirectional_iterator<int,int> t; return 0;
32062 rm -f conftest.
$ac_objext
32063 if { (ac_try
="$ac_compile"
32064 case "(($ac_try" in
32065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32066 *) ac_try_echo=$ac_try;;
32068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32069 (eval "$ac_compile") 2>conftest.er1
32071 grep -v '^ *+' conftest.er1 >conftest.err
32073 cat conftest.err >&5
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); } &&
32076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32077 { (case "(($ac_try" in
32078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32079 *) ac_try_echo
=$ac_try;;
32081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082 (eval "$ac_try") 2>&5
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); }; } &&
32086 { ac_try
='test -s conftest.$ac_objext'
32087 { (case "(($ac_try" in
32088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32089 *) ac_try_echo=$ac_try;;
32091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092 (eval "$ac_try") 2>&5
32094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095 (exit $ac_status); }; }; then
32096 ac_cv_cxx_have_bi_iterator=yes
32098 echo "$as_me: failed program was:" >&5
32099 sed 's/^/| /' conftest.$ac_ext >&5
32101 ac_cv_cxx_have_bi_iterator=no
32104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32106 ac_cpp='$CPP $CPPFLAGS'
32107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32113 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32114 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32115 if test "$ac_cv_cxx_have_bi_iterator" = yes
32118 cat >>confdefs.h <<\_ACEOF
32119 #define HAVE_BI_ITERATOR 1
32124 cat >>confdefs.h <<\_ACEOF
32125 #define HAVE_BI_ITERATOR 0
32130 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32131 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32132 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32133 echo $ECHO_N "(cached) $ECHO_C" >&6
32137 ac_cpp='$CXXCPP $CPPFLAGS'
32138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32142 cat >conftest.$ac_ext <<_ACEOF
32145 cat confdefs.h >>conftest.$ac_ext
32146 cat >>conftest.$ac_ext <<_ACEOF
32147 /* end confdefs.h. */
32148 #include <iterator>
32149 #ifdef HAVE_NAMESPACES
32150 using namespace std;
32155 forward_iterator<int,int> t; return 0;
32160 rm -f conftest.$ac_objext
32161 if { (ac_try="$ac_compile"
32162 case "(($ac_try" in
32163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32164 *) ac_try_echo
=$ac_try;;
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_compile") 2>conftest.er1
32169 grep -v '^ *+' conftest.er1
>conftest.err
32171 cat conftest.err
>&5
32172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173 (exit $ac_status); } &&
32174 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32175 { (case "(($ac_try" in
32176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32177 *) ac_try_echo=$ac_try;;
32179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32180 (eval "$ac_try") 2>&5
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; } &&
32184 { ac_try='test -s conftest.$ac_objext'
32185 { (case "(($ac_try" in
32186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32187 *) ac_try_echo
=$ac_try;;
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190 (eval "$ac_try") 2>&5
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); }; }; then
32194 ac_cv_cxx_have_fwd_iterator
=yes
32196 echo "$as_me: failed program was:" >&5
32197 sed 's/^/| /' conftest.
$ac_ext >&5
32199 ac_cv_cxx_have_fwd_iterator
=no
32202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32204 ac_cpp
='$CPP $CPPFLAGS'
32205 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32206 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32207 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32211 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32212 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32213 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32216 cat >>confdefs.h
<<\_ACEOF
32217 #define HAVE_FWD_ITERATOR 1
32222 cat >>confdefs.h
<<\_ACEOF
32223 #define HAVE_FWD_ITERATOR 0
32229 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32230 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32231 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32235 ac_cpp
='$CXXCPP $CPPFLAGS'
32236 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32237 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32238 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
32240 cat >conftest.
$ac_ext <<_ACEOF
32243 cat confdefs.h
>>conftest.
$ac_ext
32244 cat >>conftest.
$ac_ext <<_ACEOF
32245 /* end confdefs.h. */
32255 rm -f conftest.
$ac_objext
32256 if { (ac_try
="$ac_compile"
32257 case "(($ac_try" in
32258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32259 *) ac_try_echo=$ac_try;;
32261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262 (eval "$ac_compile") 2>conftest.er1
32264 grep -v '^ *+' conftest.er1 >conftest.err
32266 cat conftest.err >&5
32267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268 (exit $ac_status); } &&
32269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32270 { (case "(($ac_try" in
32271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32272 *) ac_try_echo
=$ac_try;;
32274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275 (eval "$ac_try") 2>&5
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); }; } &&
32279 { ac_try
='test -s conftest.$ac_objext'
32280 { (case "(($ac_try" in
32281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32282 *) ac_try_echo=$ac_try;;
32284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285 (eval "$ac_try") 2>&5
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; }; then
32289 ac_cv_func_isnan_in_math_h=yes
32291 echo "$as_me: failed program was:" >&5
32292 sed 's/^/| /' conftest.$ac_ext >&5
32294 ac_cv_func_isnan_in_math_h=no
32297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32299 ac_cpp='$CPP $CPPFLAGS'
32300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32305 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32306 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32309 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32311 cat >>confdefs.h <<\_ACEOF
32312 #define HAVE_ISNAN_IN_MATH_H 1
32317 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32318 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32319 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32323 ac_cpp='$CXXCPP $CPPFLAGS'
32324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32328 cat >conftest.$ac_ext <<_ACEOF
32331 cat confdefs.h >>conftest.$ac_ext
32332 cat >>conftest.$ac_ext <<_ACEOF
32333 /* end confdefs.h. */
32343 rm -f conftest.$ac_objext
32344 if { (ac_try="$ac_compile"
32345 case "(($ac_try" in
32346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32347 *) ac_try_echo
=$ac_try;;
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_compile") 2>conftest.er1
32352 grep -v '^ *+' conftest.er1
>conftest.err
32354 cat conftest.err
>&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } &&
32357 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32358 { (case "(($ac_try" in
32359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_try") 2>&5
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest.$ac_objext'
32368 { (case "(($ac_try" in
32369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32370 *) ac_try_echo
=$ac_try;;
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_try") 2>&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; }; then
32377 ac_cv_func_isnan_in_cmath
=yes
32379 echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.
$ac_ext >&5
32382 ac_cv_func_isnan_in_cmath
=no
32385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32387 ac_cpp
='$CPP $CPPFLAGS'
32388 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32393 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32394 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32396 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32398 cat >>confdefs.h
<<\_ACEOF
32399 #define HAVE_ISNAN_IN_CMATH 1
32404 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32405 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32406 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32410 ac_cpp
='$CXXCPP $CPPFLAGS'
32411 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
32415 cat >conftest.
$ac_ext <<_ACEOF
32418 cat confdefs.h
>>conftest.
$ac_ext
32419 cat >>conftest.
$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32425 float f; std::isnan(f);
32430 rm -f conftest.
$ac_objext
32431 if { (ac_try
="$ac_compile"
32432 case "(($ac_try" in
32433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_compile") 2>conftest.er1
32439 grep -v '^ *+' conftest.er1 >conftest.err
32441 cat conftest.err >&5
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); } &&
32444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32445 { (case "(($ac_try" in
32446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32447 *) ac_try_echo
=$ac_try;;
32449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_try") 2>&5
32452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453 (exit $ac_status); }; } &&
32454 { ac_try
='test -s conftest.$ac_objext'
32455 { (case "(($ac_try" in
32456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32457 *) ac_try_echo=$ac_try;;
32459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460 (eval "$ac_try") 2>&5
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; }; then
32464 ac_cv_func_std_isnan_in_cmath=yes
32466 echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32469 ac_cv_func_std_isnan_in_cmath=no
32472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32474 ac_cpp='$CPP $CPPFLAGS'
32475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32480 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32481 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32483 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32485 cat >>confdefs.h <<\_ACEOF
32486 #define HAVE_STD_ISNAN_IN_CMATH 1
32492 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32493 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32494 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32495 echo $ECHO_N "(cached) $ECHO_C" >&6
32498 ac_cpp='$CXXCPP $CPPFLAGS'
32499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32503 cat >conftest.$ac_ext <<_ACEOF
32506 cat confdefs.h >>conftest.$ac_ext
32507 cat >>conftest.$ac_ext <<_ACEOF
32508 /* end confdefs.h. */
32518 rm -f conftest.$ac_objext
32519 if { (ac_try="$ac_compile"
32520 case "(($ac_try" in
32521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32522 *) ac_try_echo
=$ac_try;;
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_compile") 2>conftest.er1
32527 grep -v '^ *+' conftest.er1
>conftest.err
32529 cat conftest.err
>&5
32530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); } &&
32532 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32533 { (case "(($ac_try" in
32534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32535 *) ac_try_echo=$ac_try;;
32537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32538 (eval "$ac_try") 2>&5
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); }; } &&
32542 { ac_try='test -s conftest.$ac_objext'
32543 { (case "(($ac_try" in
32544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32545 *) ac_try_echo
=$ac_try;;
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_try") 2>&5
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; }; then
32552 ac_cv_func_isinf_in_math_h
=yes
32554 echo "$as_me: failed program was:" >&5
32555 sed 's/^/| /' conftest.
$ac_ext >&5
32557 ac_cv_func_isinf_in_math_h
=no
32560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32562 ac_cpp
='$CPP $CPPFLAGS'
32563 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32564 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32565 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32568 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32569 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32571 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32573 cat >>confdefs.h
<<\_ACEOF
32574 #define HAVE_ISINF_IN_MATH_H 1
32579 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32580 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32581 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32582 echo $ECHO_N "(cached) $ECHO_C" >&6
32585 ac_cpp
='$CXXCPP $CPPFLAGS'
32586 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32587 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32588 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
32590 cat >conftest.
$ac_ext <<_ACEOF
32593 cat confdefs.h
>>conftest.
$ac_ext
32594 cat >>conftest.
$ac_ext <<_ACEOF
32595 /* end confdefs.h. */
32605 rm -f conftest.
$ac_objext
32606 if { (ac_try
="$ac_compile"
32607 case "(($ac_try" in
32608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_compile") 2>conftest.er1
32614 grep -v '^ *+' conftest.er1 >conftest.err
32616 cat conftest.err >&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); } &&
32619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32620 { (case "(($ac_try" in
32621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32622 *) ac_try_echo
=$ac_try;;
32624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32625 (eval "$ac_try") 2>&5
32627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); }; } &&
32629 { ac_try
='test -s conftest.$ac_objext'
32630 { (case "(($ac_try" in
32631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32632 *) ac_try_echo=$ac_try;;
32634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635 (eval "$ac_try") 2>&5
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); }; }; then
32639 ac_cv_func_isinf_in_cmath=yes
32641 echo "$as_me: failed program was:" >&5
32642 sed 's/^/| /' conftest.$ac_ext >&5
32644 ac_cv_func_isinf_in_cmath=no
32647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32649 ac_cpp='$CPP $CPPFLAGS'
32650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32655 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32656 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32658 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32660 cat >>confdefs.h <<\_ACEOF
32661 #define HAVE_ISINF_IN_CMATH 1
32666 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32667 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32668 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32669 echo $ECHO_N "(cached) $ECHO_C" >&6
32672 ac_cpp='$CXXCPP $CPPFLAGS'
32673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32677 cat >conftest.$ac_ext <<_ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h. */
32687 float f; std::isinf(f)}
32692 rm -f conftest.$ac_objext
32693 if { (ac_try="$ac_compile"
32694 case "(($ac_try" in
32695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32696 *) ac_try_echo
=$ac_try;;
32698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699 (eval "$ac_compile") 2>conftest.er1
32701 grep -v '^ *+' conftest.er1
>conftest.err
32703 cat conftest.err
>&5
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); } &&
32706 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32707 { (case "(($ac_try" in
32708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32709 *) ac_try_echo=$ac_try;;
32711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712 (eval "$ac_try") 2>&5
32714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715 (exit $ac_status); }; } &&
32716 { ac_try='test -s conftest.$ac_objext'
32717 { (case "(($ac_try" in
32718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32719 *) ac_try_echo
=$ac_try;;
32721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722 (eval "$ac_try") 2>&5
32724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725 (exit $ac_status); }; }; then
32726 ac_cv_func_std_isinf_in_cmath
=yes
32728 echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.
$ac_ext >&5
32731 ac_cv_func_std_isinf_in_cmath
=no
32734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32736 ac_cpp
='$CPP $CPPFLAGS'
32737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32742 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32743 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32745 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32747 cat >>confdefs.h
<<\_ACEOF
32748 #define HAVE_STD_ISINF_IN_CMATH 1
32753 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32754 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32755 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32756 echo $ECHO_N "(cached) $ECHO_C" >&6
32759 ac_cpp
='$CXXCPP $CPPFLAGS'
32760 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
32764 cat >conftest.
$ac_ext <<_ACEOF
32767 cat confdefs.h
>>conftest.
$ac_ext
32768 cat >>conftest.
$ac_ext <<_ACEOF
32769 /* end confdefs.h. */
32770 #include <ieeefp.h>
32774 float f; finite(f);
32779 rm -f conftest.
$ac_objext
32780 if { (ac_try
="$ac_compile"
32781 case "(($ac_try" in
32782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32783 *) ac_try_echo=$ac_try;;
32785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786 (eval "$ac_compile") 2>conftest.er1
32788 grep -v '^ *+' conftest.er1 >conftest.err
32790 cat conftest.err >&5
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } &&
32793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32794 { (case "(($ac_try" in
32795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32796 *) ac_try_echo
=$ac_try;;
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799 (eval "$ac_try") 2>&5
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); }; } &&
32803 { ac_try
='test -s conftest.$ac_objext'
32804 { (case "(($ac_try" in
32805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32806 *) ac_try_echo=$ac_try;;
32808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809 (eval "$ac_try") 2>&5
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); }; }; then
32813 ac_cv_func_finite_in_ieeefp_h=yes
32815 echo "$as_me: failed program was:" >&5
32816 sed 's/^/| /' conftest.$ac_ext >&5
32818 ac_cv_func_finite_in_ieeefp_h=no
32821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32823 ac_cpp='$CPP $CPPFLAGS'
32824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32829 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32830 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32832 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32834 cat >>confdefs.h <<\_ACEOF
32835 #define HAVE_FINITE_IN_IEEEFP_H 1
32842 if test "$llvm_cv_platform_type" = "Unix" ; then
32845 for ac_header in stdlib.h unistd.h
32847 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
32848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32852 echo $ECHO_N "(cached) $ECHO_C" >&6
32854 ac_res=`eval echo '${'$as_ac_Header'}'`
32855 { echo "$as_me:$LINENO: result: $ac_res" >&5
32856 echo "${ECHO_T}$ac_res" >&6; }
32858 # Is the header compilable?
32859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32861 cat >conftest.$ac_ext <<_ACEOF
32864 cat confdefs.h >>conftest.$ac_ext
32865 cat >>conftest.$ac_ext <<_ACEOF
32866 /* end confdefs.h. */
32867 $ac_includes_default
32868 #include <$ac_header>
32870 rm -f conftest.$ac_objext
32871 if { (ac_try="$ac_compile"
32872 case "(($ac_try" in
32873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32874 *) ac_try_echo
=$ac_try;;
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_compile") 2>conftest.er1
32879 grep -v '^ *+' conftest.er1
>conftest.err
32881 cat conftest.err
>&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } &&
32884 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32885 { (case "(($ac_try" in
32886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32887 *) ac_try_echo=$ac_try;;
32889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890 (eval "$ac_try") 2>&5
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; } &&
32894 { ac_try='test -s conftest.$ac_objext'
32895 { (case "(($ac_try" in
32896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32897 *) ac_try_echo
=$ac_try;;
32899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900 (eval "$ac_try") 2>&5
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; }; then
32904 ac_header_compiler
=yes
32906 echo "$as_me: failed program was:" >&5
32907 sed 's/^/| /' conftest.
$ac_ext >&5
32909 ac_header_compiler
=no
32912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32914 echo "${ECHO_T}$ac_header_compiler" >&6; }
32916 # Is the header present?
32917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32919 cat >conftest.
$ac_ext <<_ACEOF
32922 cat confdefs.h
>>conftest.
$ac_ext
32923 cat >>conftest.
$ac_ext <<_ACEOF
32924 /* end confdefs.h. */
32925 #include <$ac_header>
32927 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32928 case "(($ac_try" in
32929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32930 *) ac_try_echo=$ac_try;;
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32935 grep -v '^ *+' conftest.er1 >conftest.err
32937 cat conftest.err >&5
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } >/dev/null; then
32940 if test -s conftest.err; then
32941 ac_cpp_err=$ac_c_preproc_warn_flag
32942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32949 if test -z "$ac_cpp_err"; then
32950 ac_header_preproc=yes
32952 echo "$as_me: failed program was:" >&5
32953 sed 's/^/| /' conftest.$ac_ext >&5
32955 ac_header_preproc=no
32958 rm -f conftest.err conftest.$ac_ext
32959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32960 echo "${ECHO_T}$ac_header_preproc" >&6; }
32962 # So? What about this header?
32963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32969 ac_header_preproc=yes
32972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32985 ## ----------------------------------- ##
32986 ## Report this to llvmbugs@cs.uiuc.edu ##
32987 ## ----------------------------------- ##
32989 ) | sed "s/^/$as_me: WARNING: /" >&2
32992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32995 echo $ECHO_N "(cached) $ECHO_C" >&6
32997 eval "$as_ac_Header=\$ac_header_preproc"
32999 ac_res=`eval echo '${'$as_ac_Header'}'`
33000 { echo "$as_me:$LINENO: result: $ac_res" >&5
33001 echo "${ECHO_T}$ac_res" >&6; }
33004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33005 cat >>confdefs.h <<_ACEOF
33006 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
33014 for ac_func in getpagesize
33016 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
33017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33020 echo $ECHO_N "(cached) $ECHO_C" >&6
33022 cat >conftest.$ac_ext <<_ACEOF
33025 cat confdefs.h >>conftest.$ac_ext
33026 cat >>conftest.$ac_ext <<_ACEOF
33027 /* end confdefs.h. */
33028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33030 #define $ac_func innocuous_$ac_func
33032 /* System header to define __stub macros and hopefully few prototypes,
33033 which can conflict with char $ac_func (); below.
33034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33035 <limits.h> exists even on freestanding compilers. */
33038 # include <limits.h>
33040 # include <assert.h>
33045 /* Override any GCC internal prototype to avoid an error.
33046 Use char because int might match the return type of a GCC
33047 builtin and then its argument prototype would still apply. */
33052 /* The GNU C library defines this for functions which it implements
33053 to always fail with ENOSYS. Some functions are actually named
33054 something starting with __ and the normal name is an alias. */
33055 #if defined __stub_$ac_func || defined __stub___$ac_func
33062 return $ac_func ();
33067 rm -f conftest.$ac_objext conftest$ac_exeext
33068 if { (ac_try="$ac_link"
33069 case "(($ac_try" in
33070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33071 *) ac_try_echo
=$ac_try;;
33073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074 (eval "$ac_link") 2>conftest.er1
33076 grep -v '^ *+' conftest.er1
>conftest.err
33078 cat conftest.err
>&5
33079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080 (exit $ac_status); } &&
33081 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33082 { (case "(($ac_try" in
33083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_try") 2>&5
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest$ac_exeext'
33092 { (case "(($ac_try" in
33093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33094 *) ac_try_echo
=$ac_try;;
33096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097 (eval "$ac_try") 2>&5
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
33101 eval "$as_ac_var=yes"
33103 echo "$as_me: failed program was:" >&5
33104 sed 's/^/| /' conftest.
$ac_ext >&5
33106 eval "$as_ac_var=no"
33109 rm -f core conftest.err conftest.
$ac_objext \
33110 conftest
$ac_exeext conftest.
$ac_ext
33112 ac_res
=`eval echo '${'$as_ac_var'}'`
33113 { echo "$as_me:$LINENO: result: $ac_res" >&5
33114 echo "${ECHO_T}$ac_res" >&6; }
33115 if test `eval echo '${'$as_ac_var'}'` = yes; then
33116 cat >>confdefs.h
<<_ACEOF
33117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33123 { echo "$as_me:$LINENO: checking for working mmap" >&5
33124 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33125 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33126 echo $ECHO_N "(cached) $ECHO_C" >&6
33128 if test "$cross_compiling" = yes; then
33129 ac_cv_func_mmap_fixed_mapped
=no
33131 cat >conftest.
$ac_ext <<_ACEOF
33134 cat confdefs.h
>>conftest.
$ac_ext
33135 cat >>conftest.
$ac_ext <<_ACEOF
33136 /* end confdefs.h. */
33137 $ac_includes_default
33138 /* malloc might have been renamed as rpl_malloc. */
33141 /* Thanks to Mike Haertel and Jim Avera for this test.
33142 Here is a matrix of mmap possibilities:
33143 mmap private not fixed
33144 mmap private fixed at somewhere currently unmapped
33145 mmap private fixed at somewhere already mapped
33146 mmap shared not fixed
33147 mmap shared fixed at somewhere currently unmapped
33148 mmap shared fixed at somewhere already mapped
33149 For private mappings, we should verify that changes cannot be read()
33150 back from the file, nor mmap's back from the file at a different
33151 address. (There have been systems where private was not correctly
33152 implemented like the infamous i386 svr4.0, and systems where the
33153 VM page cache was not coherent with the file system buffer cache
33154 like early versions of FreeBSD and possibly contemporary NetBSD.)
33155 For shared mappings, we should conversely verify that changes get
33156 propagated back to all the places they're supposed to be.
33158 Grep wants private fixed already mapped.
33159 The main things grep needs to know about mmap are:
33160 * does it exist and is it safe to write into the mmap'd area
33161 * how to use it (BSD variants) */
33164 #include <sys/mman.h>
33166 #if !STDC_HEADERS && !HAVE_STDLIB_H
33170 /* This mess was copied from the GNU getpagesize.h. */
33171 #if !HAVE_GETPAGESIZE
33172 /* Assume that all systems that can run configure have sys/param.h. */
33173 # if !HAVE_SYS_PARAM_H
33174 # define HAVE_SYS_PARAM_H 1
33177 # ifdef _SC_PAGESIZE
33178 # define getpagesize() sysconf(_SC_PAGESIZE)
33179 # else /* no _SC_PAGESIZE */
33180 # if HAVE_SYS_PARAM_H
33181 # include <sys/param.h>
33182 # ifdef EXEC_PAGESIZE
33183 # define getpagesize() EXEC_PAGESIZE
33184 # else /* no EXEC_PAGESIZE */
33186 # define getpagesize() NBPG * CLSIZE
33189 # endif /* no CLSIZE */
33190 # else /* no NBPG */
33192 # define getpagesize() NBPC
33193 # else /* no NBPC */
33195 # define getpagesize() PAGESIZE
33196 # endif /* PAGESIZE */
33197 # endif /* no NBPC */
33198 # endif /* no NBPG */
33199 # endif /* no EXEC_PAGESIZE */
33200 # else /* no HAVE_SYS_PARAM_H */
33201 # define getpagesize() 8192 /* punt totally */
33202 # endif /* no HAVE_SYS_PARAM_H */
33203 # endif /* no _SC_PAGESIZE */
33205 #endif /* no HAVE_GETPAGESIZE */
33210 char *data, *data2, *data3;
33214 pagesize = getpagesize ();
33216 /* First, make a file with some known garbage in it. */
33217 data = (char *) malloc (pagesize);
33220 for (i = 0; i < pagesize; ++i)
33221 *(data + i) = rand ();
33223 fd = creat ("conftest.mmap", 0600);
33226 if (write (fd, data, pagesize) != pagesize)
33230 /* Next, try to mmap the file at a fixed address which already has
33231 something else allocated at it. If we can, also make sure that
33232 we see the same garbage. */
33233 fd = open ("conftest.mmap", O_RDWR);
33236 data2 = (char *) malloc (2 * pagesize);
33239 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33240 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33241 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33243 for (i = 0; i < pagesize; ++i)
33244 if (*(data + i) != *(data2 + i))
33247 /* Finally, make sure that changes to the mapped area do not
33248 percolate back to the file as seen by read(). (This is a bug on
33249 some variants of i386 svr4.0.) */
33250 for (i = 0; i < pagesize; ++i)
33251 *(data2 + i) = *(data2 + i) + 1;
33252 data3 = (char *) malloc (pagesize);
33255 if (read (fd, data3, pagesize) != pagesize)
33257 for (i = 0; i < pagesize; ++i)
33258 if (*(data + i) != *(data3 + i))
33264 rm -f conftest
$ac_exeext
33265 if { (ac_try
="$ac_link"
33266 case "(($ac_try" in
33267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_link") 2>&5
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33275 { (case "(($ac_try" in
33276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33277 *) ac_try_echo
=$ac_try;;
33279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_try") 2>&5
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; }; then
33284 ac_cv_func_mmap_fixed_mapped
=yes
33286 echo "$as_me: program exited with status $ac_status" >&5
33287 echo "$as_me: failed program was:" >&5
33288 sed 's/^/| /' conftest.
$ac_ext >&5
33290 ( exit $ac_status )
33291 ac_cv_func_mmap_fixed_mapped
=no
33293 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33298 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33299 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33300 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33302 cat >>confdefs.h
<<\_ACEOF
33303 #define HAVE_MMAP 1
33307 rm -f conftest.mmap
33309 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33310 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33311 if test "${ac_cv_func_mmap_file+set}" = set; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33315 ac_cpp
='$CPP $CPPFLAGS'
33316 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33317 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33318 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33320 if test "$cross_compiling" = yes; then
33321 ac_cv_func_mmap_file
=no
33323 cat >conftest.
$ac_ext <<_ACEOF
33327 cat confdefs.h
>>conftest.
$ac_ext
33328 cat >>conftest.
$ac_ext <<_ACEOF
33329 /* end confdefs.h. */
33331 #include <sys/types.h>
33332 #include <sys/mman.h>
33340 fd = creat ("foo",0777);
33341 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33343 return (fd != (int) MAP_FAILED);
33348 rm -f conftest
$ac_exeext
33349 if { (ac_try
="$ac_link"
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_link") 2>&5
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33359 { (case "(($ac_try" in
33360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33361 *) ac_try_echo
=$ac_try;;
33363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364 (eval "$ac_try") 2>&5
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; }; then
33368 ac_cv_func_mmap_file
=yes
33370 echo "$as_me: program exited with status $ac_status" >&5
33371 echo "$as_me: failed program was:" >&5
33372 sed 's/^/| /' conftest.
$ac_ext >&5
33374 ( exit $ac_status )
33375 ac_cv_func_mmap_file
=no
33377 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33382 ac_cpp
='$CPP $CPPFLAGS'
33383 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33384 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33385 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33389 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33390 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33391 if test "$ac_cv_func_mmap_file" = yes; then
33393 cat >>confdefs.h
<<\_ACEOF
33394 #define HAVE_MMAP_FILE
33401 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33402 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33403 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33406 if test "$llvm_cv_os_type" = "Interix" ; then
33407 ac_cv_need_dev_zero_for_mmap
=yes
33409 ac_cv_need_dev_zero_for_mmap
=no
33413 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33414 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33415 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33417 cat >>confdefs.h
<<\_ACEOF
33418 #define NEED_DEV_ZERO_FOR_MMAP 1
33423 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33425 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33426 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33428 if test "$ac_cv_func_mmap_file" = "no"
33430 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33431 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33436 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33437 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33438 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33439 echo $ECHO_N "(cached) $ECHO_C" >&6
33441 llvm_cv_llvmgcc_sanity
="no"
33442 if test -x "$LLVMGCC" ; then
33443 cp /dev
/null conftest.c
33444 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33445 grep 'target datalayout =' > /dev
/null
2>&1
33446 if test $?
-eq 0 ; then
33447 llvm_cv_llvmgcc_sanity
="yes"
33452 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33453 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33455 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33456 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33457 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33458 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
33459 LLVMCC1
=$llvmcc1path
33461 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
33462 LLVMCC1PLUS
=$llvmcc1pluspath
33464 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33465 LLVMGCCDIR
=$llvmgccdir
33467 llvmgcclibexec
=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33468 LLVMGCCLIBEXEC
=$llvmgcclibexec
33470 llvmgccversion
=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33471 llvmgccmajvers
=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33472 LLVMGCC_VERSION
=$llvmgccversion
33474 LLVMGCC_MAJVERS
=$llvmgccmajvers
33476 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33477 LLVMGCC_LANGS
=$llvmgcclangs
33479 { echo "$as_me:$LINENO: result: ok" >&5
33480 echo "${ECHO_T}ok" >&6; }
33483 SHLIBEXT
=$libltdl_cv_shlibext
33486 # Translate the various configuration directories and other basic
33487 # information into substitutions that will end up in Makefile.config.in
33488 # that these configured values can be used by the makefiles
33489 if test "${prefix}" = "NONE" ; then
33490 prefix
="/usr/local"
33492 eval LLVM_PREFIX
="${prefix}";
33493 eval LLVM_BINDIR
="${prefix}/bin";
33494 eval LLVM_LIBDIR
="${prefix}/lib";
33495 eval LLVM_DATADIR
="${prefix}/share/llvm";
33496 eval LLVM_DOCSDIR
="${prefix}/docs/llvm";
33497 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
33498 eval LLVM_INCLUDEDIR
="${prefix}/include";
33499 eval LLVM_INFODIR
="${prefix}/info";
33500 eval LLVM_MANDIR
="${prefix}/man";
33501 LLVM_CONFIGTIME
=`date`
33513 # Place the various directores into the config.h file as #defines so that we
33514 # can know about the installation paths within LLVM.
33516 cat >>confdefs.h
<<_ACEOF
33517 #define LLVM_PREFIX "$LLVM_PREFIX"
33521 cat >>confdefs.h
<<_ACEOF
33522 #define LLVM_BINDIR "$LLVM_BINDIR"
33526 cat >>confdefs.h
<<_ACEOF
33527 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33531 cat >>confdefs.h
<<_ACEOF
33532 #define LLVM_DATADIR "$LLVM_DATADIR"
33536 cat >>confdefs.h
<<_ACEOF
33537 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33541 cat >>confdefs.h
<<_ACEOF
33542 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33546 cat >>confdefs.h
<<_ACEOF
33547 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33551 cat >>confdefs.h
<<_ACEOF
33552 #define LLVM_INFODIR "$LLVM_INFODIR"
33556 cat >>confdefs.h
<<_ACEOF
33557 #define LLVM_MANDIR "$LLVM_MANDIR"
33561 cat >>confdefs.h
<<_ACEOF
33562 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33567 ac_config_headers
="$ac_config_headers include/llvm/Config/config.h"
33569 ac_config_headers
="$ac_config_headers include/llvm/Support/DataTypes.h"
33571 ac_config_headers
="$ac_config_headers include/llvm/ADT/hash_map"
33573 ac_config_headers
="$ac_config_headers include/llvm/ADT/hash_set"
33575 ac_config_headers
="$ac_config_headers include/llvm/ADT/iterator"
33578 ac_config_files
="$ac_config_files Makefile.config"
33581 ac_config_files
="$ac_config_files llvm.spec"
33584 ac_config_files
="$ac_config_files docs/doxygen.cfg"
33587 ac_config_files
="$ac_config_files tools/llvm-config/llvm-config.in"
33590 ac_config_commands
="$ac_config_commands setup"
33592 ac_config_commands
="$ac_config_commands Makefile"
33595 ac_config_commands
="$ac_config_commands Makefile.common"
33598 ac_config_commands
="$ac_config_commands examples/Makefile"
33601 ac_config_commands
="$ac_config_commands lib/Makefile"
33604 ac_config_commands
="$ac_config_commands runtime/Makefile"
33607 ac_config_commands
="$ac_config_commands test/Makefile"
33610 ac_config_commands
="$ac_config_commands test/Makefile.tests"
33613 ac_config_commands
="$ac_config_commands tools/Makefile"
33616 ac_config_commands
="$ac_config_commands utils/Makefile"
33619 ac_config_commands
="$ac_config_commands projects/Makefile"
33623 cat >confcache
<<\_ACEOF
33624 # This file is a shell script that caches the results of configure
33625 # tests run on this system so they can be shared between configure
33626 # scripts and configure runs, see configure's option --config-cache.
33627 # It is not useful on other systems. If it contains results you don't
33628 # want to keep, you may remove or edit it.
33630 # config.status only pays attention to the cache file if you give it
33631 # the --recheck option to rerun configure.
33633 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33634 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33635 # following values.
33639 # The following way of writing the cache mishandles newlines in values,
33640 # but we know of no workaround that is simple, portable, and efficient.
33641 # So, we kill variables containing newlines.
33642 # Ultrix sh set writes to stderr and can't be redirected directly,
33643 # and sets the high bit in the cache file unless we assign to the vars.
33645 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33646 eval ac_val
=\$
$ac_var
33650 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33651 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33654 _ | IFS | as_nl
) ;; #(
33655 *) $as_unset $ac_var ;;
33661 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33662 *${as_nl}ac_space
=\
*)
33663 # `set' does not quote correctly, so add quotes (double-quote
33664 # substitution turns \\\\ into \\, and sed turns \\ into \).
33667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33670 # `set' quotes correctly as required by POSIX, so do not add quotes.
33671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33684 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33685 if test -w "$cache_file"; then
33686 test "x$cache_file" != "x/dev/null" &&
33687 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33688 echo "$as_me: updating cache $cache_file" >&6;}
33689 cat confcache
>$cache_file
33691 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33692 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33697 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33698 # Let make expand exec_prefix.
33699 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33701 DEFS
=-DHAVE_CONFIG_H
33705 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33706 # 1. Remove the extension, and $U if already installed.
33707 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33708 ac_i
=`echo "$ac_i" | sed "$ac_script"`
33709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33710 # will be set to the directory where LIBOBJS objects are built.
33711 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33712 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33714 LIBOBJS
=$ac_libobjs
33716 LTLIBOBJS
=$ac_ltlibobjs
33719 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33720 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33721 Usually this means the macro was only invoked conditionally." >&5
33722 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33723 Usually this means the macro was only invoked conditionally." >&2;}
33724 { (exit 1); exit 1; }; }
33726 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33727 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33728 Usually this means the macro was only invoked conditionally." >&5
33729 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33730 Usually this means the macro was only invoked conditionally." >&2;}
33731 { (exit 1); exit 1; }; }
33734 : ${CONFIG_STATUS=./config.status}
33735 ac_clean_files_save
=$ac_clean_files
33736 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33737 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33738 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33739 cat >$CONFIG_STATUS <<_ACEOF
33741 # Generated by $as_me.
33742 # Run this file to recreate the current configuration.
33743 # Compiler output produced by configure, useful for debugging
33744 # configure, is in config.log if it exists.
33747 ac_cs_recheck=false
33749 SHELL=\${CONFIG_SHELL-$SHELL}
33752 cat >>$CONFIG_STATUS <<\_ACEOF
33753 ## --------------------- ##
33754 ## M4sh Initialization. ##
33755 ## --------------------- ##
33757 # Be Bourne compatible
33758 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
33761 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33762 # is contrary to our usage. Disable this feature.
33763 alias -g '${1+"$@"}'='"$@"'
33764 setopt NO_GLOB_SUBST
33766 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
33768 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
33769 DUALCASE
=1; export DUALCASE
# for MKS sh
33773 # Avoid depending upon Character Ranges.
33774 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33775 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33776 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33777 as_cr_digits
='0123456789'
33778 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33780 # The user is always right.
33781 if test "${PATH_SEPARATOR+set}" != set; then
33782 echo "#! /bin/sh" >conf$$.sh
33783 echo "exit 0" >>conf$$.sh
33785 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
33793 # Support unset when possible.
33794 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
33802 # We need space, tab and new line, in precisely that order. Quoting is
33803 # there to prevent editors from complaining about space-tab.
33804 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33805 # splitting by setting IFS to empty value.)
33810 # Find who we are. Look in the path if we contain no directory separator.
33812 *[\\/]* ) as_myself
=$0 ;;
33813 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33814 for as_dir
in $PATH
33817 test -z "$as_dir" && as_dir
=.
33818 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
33824 # We did not find ourselves, most probably we were run as `sh COMMAND'
33825 # in which case we are not to be found in the path.
33826 if test "x$as_myself" = x
; then
33829 if test ! -f "$as_myself"; then
33830 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33831 { (exit 1); exit 1; }
33834 # Work around bugs in pre-3.0 UWIN ksh.
33835 for as_var
in ENV MAIL MAILPATH
33836 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
33844 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33845 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33846 LC_TELEPHONE LC_TIME
33848 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33849 eval $as_var=C
; export $as_var
33851 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
33855 # Required to use basename.
33856 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33857 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33863 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33864 as_basename
=basename
33870 # Name of the executable.
33871 as_me
=`$as_basename -- "$0" ||
33872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33873 X"$0" : 'X\(//\)$' \| \
33874 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33876 sed '/^.*\/\([^/][^/]*\)\/*$/{
33895 as_lineno_1
=$LINENO
33896 as_lineno_2
=$LINENO
33897 test "x$as_lineno_1" != "x$as_lineno_2" &&
33898 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
33900 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33901 # uniformly replaced by the line number. The first 'sed' inserts a
33902 # line-number line after each line using $LINENO; the second 'sed'
33903 # does the real work. The second script uses 'N' to pair each
33904 # line-number line with the line containing $LINENO, and appends
33905 # trailing '-' during substitution so that $LINENO is not a special
33906 # case at line end.
33907 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33908 # scripts with optimization help from Paolo Bonzini. Blame Lee
33909 # E. McMahon (1931-1989) for sed's syntax. :-)
33921 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33924 ' >$as_me.lineno
&&
33925 chmod +x
"$as_me.lineno" ||
33926 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33927 { (exit 1); exit 1; }; }
33929 # Don't try to exec as it changes $[0], causing all sort of problems
33930 # (the dirname of $[0] is not the place where we might find the
33931 # original and so on. Autoconf is especially sensitive to this).
33932 .
"./$as_me.lineno"
33933 # Exit status is that of the last command.
33938 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33944 ECHO_C
= ECHO_N
= ECHO_T
=
33945 case `echo -n x` in
33947 case `echo 'x\c'` in
33948 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33955 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33956 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33962 rm -f conf$$ conf$$.exe conf$$.
file
33963 if test -d conf$$.dir
; then
33964 rm -f conf$$.dir
/conf$$.
file
33970 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33972 # ... but there are two gotchas:
33973 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33974 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33975 # In both cases, we have to default to `cp -p'.
33976 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33978 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33983 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33984 rmdir conf$$.dir
2>/dev
/null
33986 if mkdir
-p .
2>/dev
/null
; then
33989 test -d .
/-p && rmdir .
/-p
33993 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33994 # systems may use methods other than mode bits to determine executability.
33995 cat >conf$$.
file <<_ASEOF
33999 chmod +x conf$$.
file
34000 if test -x conf$$.
file >/dev
/null
2>&1; then
34001 as_executable_p
="test -x"
34007 # Sed expression to map a string onto a valid CPP name.
34008 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34010 # Sed expression to map a string onto a valid variable name.
34011 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34016 # Save the log message, to keep $[0] and so on meaningful, and to
34017 # report actual input values of CONFIG_FILES etc. instead of their
34018 # values after options handling.
34020 This file was extended by llvm $as_me 2.1cvs, which was
34021 generated by GNU Autoconf 2.60. Invocation command line was
34023 CONFIG_FILES = $CONFIG_FILES
34024 CONFIG_HEADERS = $CONFIG_HEADERS
34025 CONFIG_LINKS = $CONFIG_LINKS
34026 CONFIG_COMMANDS = $CONFIG_COMMANDS
34029 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34034 cat >>$CONFIG_STATUS <<_ACEOF
34035 # Files that config.status was made for.
34036 config_files="$ac_config_files"
34037 config_headers="$ac_config_headers"
34038 config_commands="$ac_config_commands"
34042 cat >>$CONFIG_STATUS <<\_ACEOF
34044 \`$as_me' instantiates files from templates according to the
34045 current configuration.
34047 Usage: $0 [OPTIONS] [FILE]...
34049 -h, --help print this help, then exit
34050 -V, --version print version number, then exit
34051 -q, --quiet do not print progress messages
34052 -d, --debug don't remove temporary files
34053 --recheck update $as_me by reconfiguring in the same conditions
34054 --file=FILE[:TEMPLATE]
34055 instantiate the configuration file FILE
34056 --header=FILE[:TEMPLATE]
34057 instantiate the configuration header FILE
34059 Configuration files:
34062 Configuration headers:
34065 Configuration commands:
34068 Report bugs to <bug-autoconf@gnu.org>."
34071 cat >>$CONFIG_STATUS <<_ACEOF
34073 llvm config.status 2.1cvs
34074 configured by $0, generated by GNU Autoconf 2.60,
34075 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34077 Copyright (C) 2006 Free Software Foundation, Inc.
34078 This config.status script is free software; the Free Software Foundation
34079 gives unlimited permission to copy, distribute and modify it."
34086 cat >>$CONFIG_STATUS <<\_ACEOF
34087 # If no file are specified by the user, then we need to provide default
34088 # value. By we need to know if files were specified by the user.
34094 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34095 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
34106 # Handling of the options.
34107 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
34109 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
34110 echo "$ac_cs_version"; exit ;;
34111 --debug |
--debu |
--deb |
--de |
--d |
-d )
34113 --file |
--fil |
--fi |
--f )
34115 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
34116 ac_need_defaults
=false
;;
34117 --header |
--heade |
--head |
--hea )
34119 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
34120 ac_need_defaults
=false
;;
34122 # Conflict between --help and --header
34123 { echo "$as_me: error: ambiguous option: $1
34124 Try \`$0 --help' for more information." >&2
34125 { (exit 1); exit 1; }; };;
34126 --help |
--hel |
-h )
34127 echo "$ac_cs_usage"; exit ;;
34128 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
34129 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
34132 # This is an error.
34133 -*) { echo "$as_me: error: unrecognized option: $1
34134 Try \`$0 --help' for more information." >&2
34135 { (exit 1); exit 1; }; } ;;
34137 *) ac_config_targets
="$ac_config_targets $1"
34138 ac_need_defaults
=false
;;
34144 ac_configure_extra_args
=
34146 if $ac_cs_silent; then
34148 ac_configure_extra_args
="$ac_configure_extra_args --silent"
34152 cat >>$CONFIG_STATUS <<_ACEOF
34153 if \$ac_cs_recheck; then
34154 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34155 CONFIG_SHELL=$SHELL
34156 export CONFIG_SHELL
34157 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34161 cat >>$CONFIG_STATUS <<\_ACEOF
34165 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34166 ## Running $as_me. ##
34172 cat >>$CONFIG_STATUS <<_ACEOF
34176 llvm_src="${srcdir}"
34180 cat >>$CONFIG_STATUS <<\_ACEOF
34182 # Handling of arguments.
34183 for ac_config_target
in $ac_config_targets
34185 case $ac_config_target in
34186 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34187 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34188 "include/llvm/ADT/hash_map") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34189 "include/llvm/ADT/hash_set") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34190 "include/llvm/ADT/iterator") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34191 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
34192 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
34193 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
34194 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34195 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
34196 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
34197 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
34198 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
34199 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
34200 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
34201 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
34202 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
34203 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
34204 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
34205 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
34207 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34208 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34209 { (exit 1); exit 1; }; };;
34214 # If the user did not use the arguments to specify the items to instantiate,
34215 # then the envvar interface is used. Set only those that are not.
34216 # We use the long form for the default assignment because of an extremely
34217 # bizarre bug on SunOS 4.1.3.
34218 if $ac_need_defaults; then
34219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
34220 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
34221 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
34224 # Have a temporary directory for convenience. Make it in the build tree
34225 # simply because there is no reason against having it here, and in addition,
34226 # creating and moving files from /tmp can sometimes cause problems.
34227 # Hook for its removal unless debugging.
34228 # Note that there is a small window in which the directory will not be cleaned:
34229 # after its creation but before its name has been assigned to `$tmp'.
34233 trap 'exit_status=$?
34234 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34236 trap '{ (exit 1); exit 1; }' 1 2 13 15
34238 # Create a (secure) tmp directory for tmp files.
34241 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34242 test -n "$tmp" && test -d "$tmp"
34245 tmp
=.
/conf$$
-$RANDOM
34246 (umask 077 && mkdir
"$tmp")
34249 echo "$me: cannot create a temporary directory in ." >&2
34250 { (exit 1); exit 1; }
34254 # Set up the sed scripts for CONFIG_FILES section.
34257 # No need to generate the scripts if there are no CONFIG_FILES.
34258 # This happens for instance when ./config.status config.h
34259 if test -n "$CONFIG_FILES"; then
34266 for ac_last_try
in false false false false false
:; do
34267 cat >conf$
$subs.
sed <<_ACEOF
34268 SHELL!$SHELL$ac_delim
34269 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34270 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34271 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34272 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34273 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34274 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34275 exec_prefix!$exec_prefix$ac_delim
34276 prefix!$prefix$ac_delim
34277 program_transform_name!$program_transform_name$ac_delim
34278 bindir!$bindir$ac_delim
34279 sbindir!$sbindir$ac_delim
34280 libexecdir!$libexecdir$ac_delim
34281 datarootdir!$datarootdir$ac_delim
34282 datadir!$datadir$ac_delim
34283 sysconfdir!$sysconfdir$ac_delim
34284 sharedstatedir!$sharedstatedir$ac_delim
34285 localstatedir!$localstatedir$ac_delim
34286 includedir!$includedir$ac_delim
34287 oldincludedir!$oldincludedir$ac_delim
34288 docdir!$docdir$ac_delim
34289 infodir!$infodir$ac_delim
34290 htmldir!$htmldir$ac_delim
34291 dvidir!$dvidir$ac_delim
34292 pdfdir!$pdfdir$ac_delim
34293 psdir!$psdir$ac_delim
34294 libdir!$libdir$ac_delim
34295 localedir!$localedir$ac_delim
34296 mandir!$mandir$ac_delim
34297 DEFS!$DEFS$ac_delim
34298 ECHO_C!$ECHO_C$ac_delim
34299 ECHO_N!$ECHO_N$ac_delim
34300 ECHO_T!$ECHO_T$ac_delim
34301 LIBS!$LIBS$ac_delim
34302 build_alias!$build_alias$ac_delim
34303 host_alias!$host_alias$ac_delim
34304 target_alias!$target_alias$ac_delim
34305 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34306 subdirs!$subdirs$ac_delim
34307 build!$build$ac_delim
34308 build_cpu!$build_cpu$ac_delim
34309 build_vendor!$build_vendor$ac_delim
34310 build_os!$build_os$ac_delim
34311 host!$host$ac_delim
34312 host_cpu!$host_cpu$ac_delim
34313 host_vendor!$host_vendor$ac_delim
34314 host_os!$host_os$ac_delim
34315 target!$target$ac_delim
34316 target_cpu!$target_cpu$ac_delim
34317 target_vendor!$target_vendor$ac_delim
34318 target_os!$target_os$ac_delim
34320 LINKALL!$LINKALL$ac_delim
34321 NOLINKALL!$NOLINKALL$ac_delim
34322 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34323 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34324 ARCH!$ARCH$ac_delim
34325 ENDIAN!$ENDIAN$ac_delim
34327 CFLAGS!$CFLAGS$ac_delim
34328 LDFLAGS!$LDFLAGS$ac_delim
34329 CPPFLAGS!$CPPFLAGS$ac_delim
34330 ac_ct_CC!$ac_ct_CC$ac_delim
34331 EXEEXT!$EXEEXT$ac_delim
34332 OBJEXT!$OBJEXT$ac_delim
34334 GREP!$GREP$ac_delim
34335 EGREP!$EGREP$ac_delim
34336 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34337 BUILD_CC!$BUILD_CC$ac_delim
34338 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34339 CVSBUILD!$CVSBUILD$ac_delim
34340 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34341 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34342 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34344 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34345 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34346 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34347 ENABLE_PIC!$ENABLE_PIC$ac_delim
34348 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34349 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34350 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34352 CXXFLAGS!$CXXFLAGS$ac_delim
34353 ac_ct_CXX!$ac_ct_CXX$ac_delim
34355 LEXLIB!$LEXLIB$ac_delim
34356 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34357 FLEX!$FLEX$ac_delim
34358 YACC!$YACC$ac_delim
34359 YFLAGS!$YFLAGS$ac_delim
34360 BISON!$BISON$ac_delim
34362 ifGNUmake!$ifGNUmake$ac_delim
34363 LN_S!$LN_S$ac_delim
34367 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34369 elif $ac_last_try; then
34370 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34371 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34372 { (exit 1); exit 1; }; }
34374 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34378 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34379 if test -n "$ac_eof"; then
34380 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34381 ac_eof
=`expr $ac_eof + 1`
34384 cat >>$CONFIG_STATUS <<_ACEOF
34385 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34389 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34390 s/^/s,@/; s/!/@,|#_!!_#|/
34393 s/'"$ac_delim"'$/,g/; t
34395 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34396 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34397 rm -f conf$
$subs.
sed
34398 cat >>$CONFIG_STATUS <<_ACEOF
34404 for ac_last_try
in false false false false false
:; do
34405 cat >conf$
$subs.
sed <<_ACEOF
34407 DATE!$DATE$ac_delim
34408 FIND!$FIND$ac_delim
34409 MKDIR!$MKDIR$ac_delim
34411 RANLIB!$RANLIB$ac_delim
34415 BINPWD!$BINPWD$ac_delim
34416 GRAPHVIZ!$GRAPHVIZ$ac_delim
34419 DOTTY!$DOTTY$ac_delim
34420 PERL!$PERL$ac_delim
34421 HAVE_PERL!$HAVE_PERL$ac_delim
34422 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34423 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34424 INSTALL_DATA!$INSTALL_DATA$ac_delim
34425 BZIP2!$BZIP2$ac_delim
34426 DOXYGEN!$DOXYGEN$ac_delim
34427 GROFF!$GROFF$ac_delim
34428 GZIP!$GZIP$ac_delim
34429 POD2HTML!$POD2HTML$ac_delim
34430 POD2MAN!$POD2MAN$ac_delim
34431 RUNTEST!$RUNTEST$ac_delim
34432 TCLSH!$TCLSH$ac_delim
34434 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34435 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34436 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34437 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34438 LIBADD_DL!$LIBADD_DL$ac_delim
34439 ECHO!$ECHO$ac_delim
34441 STRIP!$STRIP$ac_delim
34442 CXXCPP!$CXXCPP$ac_delim
34444 FFLAGS!$FFLAGS$ac_delim
34445 ac_ct_F77!$ac_ct_F77$ac_delim
34446 LIBTOOL!$LIBTOOL$ac_delim
34447 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34448 LLVMGCC!$LLVMGCC$ac_delim
34449 LLVMGXX!$LLVMGXX$ac_delim
34450 USE_UDIS86!$USE_UDIS86$ac_delim
34451 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34452 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34453 ALLOCA!$ALLOCA$ac_delim
34454 MMAP_FILE!$MMAP_FILE$ac_delim
34455 LLVMCC1!$LLVMCC1$ac_delim
34456 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34457 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34458 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34459 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34460 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34461 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34462 SHLIBEXT!$SHLIBEXT$ac_delim
34463 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34464 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34465 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34466 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34467 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34468 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34469 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34470 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34471 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34472 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34473 LIBOBJS!$LIBOBJS$ac_delim
34474 LTLIBOBJS!$LTLIBOBJS$ac_delim
34477 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
34479 elif $ac_last_try; then
34480 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34481 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34482 { (exit 1); exit 1; }; }
34484 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
34488 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34489 if test -n "$ac_eof"; then
34490 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
34491 ac_eof
=`expr $ac_eof + 1`
34494 cat >>$CONFIG_STATUS <<_ACEOF
34495 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34499 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34500 s/^/s,@/; s/!/@,|#_!!_#|/
34503 s/'"$ac_delim"'$/,g/; t
34505 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34506 ' >>$CONFIG_STATUS <conf$
$subs.
sed
34507 rm -f conf$
$subs.
sed
34508 cat >>$CONFIG_STATUS <<_ACEOF
34515 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34516 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34517 # trailing colons and then remove the whole line if VPATH becomes empty
34518 # (actually we leave an empty line to preserve line numbers).
34519 if test "x$srcdir" = x.
; then
34520 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
34521 s/:*\$(srcdir):*/:/
34522 s/:*\${srcdir}:*/:/
34524 s/^\([^=]*=[ ]*\):*/\1/
34530 cat >>$CONFIG_STATUS <<\_ACEOF
34531 fi # test -n "$CONFIG_FILES"
34534 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
34537 :[FHLC
]) ac_mode
=$ac_tag; continue;;
34539 case $ac_mode$ac_tag in
34541 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34542 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34543 { (exit 1); exit 1; }; };;
34544 :[FH
]-) ac_tag
=-:-;;
34545 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
34562 -) ac_f
="$tmp/stdin";;
34563 *) # Look for the file first in the build tree, then in the source tree
34564 # (if the path is not absolute). The absolute path cannot be DOS-style,
34565 # because $ac_f cannot contain `:'.
34569 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
34571 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34572 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34573 { (exit 1); exit 1; }; };;
34575 ac_file_inputs
="$ac_file_inputs $ac_f"
34578 # Let's still pretend it is `configure' which instantiates (i.e., don't
34579 # use $as_me), people would be surprised to read:
34580 # /* config.h. Generated by config.status. */
34581 configure_input
="Generated from "`IFS=:
34582 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34583 if test x
"$ac_file" != x-
; then
34584 configure_input
="$ac_file. $configure_input"
34585 { echo "$as_me:$LINENO: creating $ac_file" >&5
34586 echo "$as_me: creating $ac_file" >&6;}
34590 *:-:* |
*:-) cat >"$tmp/stdin";;
34595 ac_dir
=`$as_dirname -- "$ac_file" ||
34596 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34597 X"$ac_file" : 'X\(//\)[^/]' \| \
34598 X"$ac_file" : 'X\(//\)$' \| \
34599 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34605 /^X\(\/\/\)[^/].*/{
34620 -*) as_dir
=.
/$as_dir;;
34622 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
34626 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34627 *) as_qdir
=$as_dir;;
34629 as_dirs
="'$as_qdir' $as_dirs"
34630 as_dir
=`$as_dirname -- "$as_dir" ||
34631 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34632 X"$as_dir" : 'X\(//\)[^/]' \| \
34633 X"$as_dir" : 'X\(//\)$' \| \
34634 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34640 /^X\(\/\/\)[^/].*/{
34653 test -d "$as_dir" && break
34655 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
34656 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34657 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34658 { (exit 1); exit 1; }; }; }
34662 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34664 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34665 # A ".." for each directory in $ac_dir_suffix.
34666 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34667 case $ac_top_builddir_sub in
34668 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34669 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34672 ac_abs_top_builddir
=$ac_pwd
34673 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34674 # for backward compatibility:
34675 ac_top_builddir
=$ac_top_build_prefix
34678 .
) # We are building in place.
34680 ac_top_srcdir
=$ac_top_builddir_sub
34681 ac_abs_top_srcdir
=$ac_pwd ;;
34682 [\\/]* | ?
:[\\/]* ) # Absolute name.
34683 ac_srcdir
=$srcdir$ac_dir_suffix;
34684 ac_top_srcdir
=$srcdir
34685 ac_abs_top_srcdir
=$srcdir ;;
34686 *) # Relative name.
34687 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34688 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34689 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34691 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34701 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
34702 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
34706 cat >>$CONFIG_STATUS <<\_ACEOF
34707 # If the template does not know about datarootdir, expand it.
34708 # FIXME: This hack should be removed a few years after 2.60.
34709 ac_datarootdir_hack
=; ac_datarootdir_seen
=
34711 case `sed -n '/datarootdir/ {
34720 ' $ac_file_inputs` in
34721 *datarootdir
*) ac_datarootdir_seen
=yes;;
34722 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
34723 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34724 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34726 cat >>$CONFIG_STATUS <<_ACEOF
34727 ac_datarootdir_hack='
34728 s&@datadir@&$datadir&g
34729 s&@docdir@&$docdir&g
34730 s&@infodir@&$infodir&g
34731 s&@localedir@&$localedir&g
34732 s&@mandir@&$mandir&g
34733 s&\\\${datarootdir}&$datarootdir&g' ;;
34737 # Neutralize VPATH when `$srcdir' = `.'.
34738 # Shell code in configure.ac might set extrasub.
34739 # FIXME: do we really want to maintain this feature?
34740 cat >>$CONFIG_STATUS <<_ACEOF
34744 cat >>$CONFIG_STATUS <<\_ACEOF
34746 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34747 s
&@configure_input@
&$configure_input&;t t
34748 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
34749 s
&@srcdir@
&$ac_srcdir&;t t
34750 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
34751 s
&@top_srcdir@
&$ac_top_srcdir&;t t
34752 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
34753 s
&@builddir@
&$ac_builddir&;t t
34754 s
&@abs_builddir@
&$ac_abs_builddir&;t t
34755 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
34756 s
&@INSTALL@
&$ac_INSTALL&;t t
34757 $ac_datarootdir_hack
34758 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
34760 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34761 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
34762 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
34763 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34764 which seems to be undefined. Please make sure it is defined." >&5
34765 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34766 which seems to be undefined. Please make sure it is defined." >&2;}
34770 -) cat "$tmp/out"; rm -f "$tmp/out";;
34771 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34780 # Transform confdefs.h into a sed script `conftest.defines', that
34781 # substitutes the proper values into config.h.in to produce config.h.
34782 rm -f conftest.defines conftest.
tail
34783 # First, append a space to every undef/define line, to ease matching.
34784 echo 's/$/ /' >conftest.defines
34785 # Then, protect against being on the right side of a sed subst, or in
34786 # an unquoted here document, in config.status. If some macros were
34787 # called several times there might be several #defines for the same
34788 # symbol, which is useless. But do not sort them, since the last
34789 # AC_DEFINE must be honored.
34790 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
34791 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34792 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34793 # PARAMS is the parameter list in the macro definition--in most cases, it's
34794 # just an empty string.
34795 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34796 ac_dB
='\\)[ (].*,\\1define\\2'
34804 s/^[ ]*#[ ]*define[ ][ ]*//
34809 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34810 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34811 ' >>conftest.defines
34813 # Remove the space that was appended to ease matching.
34814 # Then replace #undef with comments. This is necessary, for
34815 # example, in the case of _POSIX_SOURCE, which is predefined and required
34816 # on some systems where configure will not decide to define it.
34817 # (The regexp can be short, since the line contains either #define or #undef.)
34819 s,^[ #]*u.*,/* & */,' >>conftest.defines
34821 # Break up conftest.defines:
34822 ac_max_sed_lines
=50
34824 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34825 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34826 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34828 ac_in
='$ac_file_inputs'
34829 ac_out
='"$tmp/out1"'
34830 ac_nxt
='"$tmp/out2"'
34834 # Write a here document:
34835 cat >>$CONFIG_STATUS <<_ACEOF
34836 # First, check the format of the line:
34837 cat >"\$tmp/defines.sed" <<\\CEOF
34838 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34839 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34843 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
34845 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34846 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
34847 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
34848 grep . conftest.
tail >/dev
/null ||
break
34849 rm -f conftest.defines
34850 mv conftest.
tail conftest.defines
34852 rm -f conftest.defines conftest.
tail
34854 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34855 cat >>$CONFIG_STATUS <<\_ACEOF
34856 if test x
"$ac_file" != x-
; then
34857 echo "/* $configure_input */" >"$tmp/config.h"
34858 cat "$ac_result" >>"$tmp/config.h"
34859 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
34860 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34861 echo "$as_me: $ac_file is unchanged" >&6;}
34864 mv "$tmp/config.h" $ac_file
34867 echo "/* $configure_input */"
34873 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34874 echo "$as_me: executing $ac_file commands" >&6;}
34879 case $ac_file$ac_mode in
34880 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
34881 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
34882 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
34883 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
34884 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
34885 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
34886 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
34887 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
34888 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
34889 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
34890 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
34891 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
34892 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
34893 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
34894 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
34895 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
34896 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
34897 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
34898 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
34899 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
34905 { (exit 0); exit 0; }
34907 chmod +x
$CONFIG_STATUS
34908 ac_clean_files
=$ac_clean_files_save
34911 # configure is writing to config.log, and then calls config.status.
34912 # config.status does its own redirection, appending to config.log.
34913 # Unfortunately, on DOS this fails, as config.log is still kept open
34914 # by configure, so config.status won't be able to write to it; its
34915 # output is simply discarded. So we exec the FD to /dev/null,
34916 # effectively closing config.log, so it can be properly (re)opened and
34917 # appended to by config.status. When coming back to configure, we
34918 # need to make the FD available again.
34919 if test "$no_create" != yes; then
34921 ac_config_status_args
=
34922 test "$silent" = yes &&
34923 ac_config_status_args
="$ac_config_status_args --quiet"
34925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34928 # would make configure fail if this is the last instruction.
34929 $ac_cs_success ||
{ (exit 1); exit 1; }
34933 # CONFIG_SUBDIRS section.
34935 if test "$no_recursion" != yes; then
34937 # Remove --cache-file and --srcdir arguments so they do not pile up.
34938 ac_sub_configure_args
=
34940 eval "set x $ac_configure_args"
34944 if test -n "$ac_prev"; then
34949 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
34950 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
34951 ac_prev
=cache_file
;;
34952 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
34953 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
34956 --config-cache |
-C)
34958 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
34960 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
34962 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
34964 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
34968 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34970 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
34974 # Always prepend --prefix to ensure using the same prefix
34975 # in subdir configurations.
34976 ac_arg
="--prefix=$prefix"
34978 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34980 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
34983 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
34985 # Do not complain, so a configure script can configure whichever
34986 # parts of a large source tree are present.
34987 test -d "$srcdir/$ac_dir" ||
continue
34989 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34990 echo "$as_me:$LINENO: $ac_msg" >&5
34994 -*) as_dir
=.
/$as_dir;;
34996 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
35000 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35001 *) as_qdir
=$as_dir;;
35003 as_dirs
="'$as_qdir' $as_dirs"
35004 as_dir
=`$as_dirname -- "$as_dir" ||
35005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35006 X"$as_dir" : 'X\(//\)[^/]' \| \
35007 X"$as_dir" : 'X\(//\)$' \| \
35008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35014 /^X\(\/\/\)[^/].*/{
35027 test -d "$as_dir" && break
35029 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35030 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35031 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35032 { (exit 1); exit 1; }; }; }
35036 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35038 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35039 # A ".." for each directory in $ac_dir_suffix.
35040 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35041 case $ac_top_builddir_sub in
35042 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35043 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35046 ac_abs_top_builddir
=$ac_pwd
35047 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35048 # for backward compatibility:
35049 ac_top_builddir
=$ac_top_build_prefix
35052 .
) # We are building in place.
35054 ac_top_srcdir
=$ac_top_builddir_sub
35055 ac_abs_top_srcdir
=$ac_pwd ;;
35056 [\\/]* | ?
:[\\/]* ) # Absolute name.
35057 ac_srcdir
=$srcdir$ac_dir_suffix;
35058 ac_top_srcdir
=$srcdir
35059 ac_abs_top_srcdir
=$srcdir ;;
35060 *) # Relative name.
35061 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35062 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35063 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35065 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35070 # Check for guested configure; otherwise get Cygnus style configure.
35071 if test -f "$ac_srcdir/configure.gnu"; then
35072 ac_sub_configure
=$ac_srcdir/configure.gnu
35073 elif test -f "$ac_srcdir/configure"; then
35074 ac_sub_configure
=$ac_srcdir/configure
35075 elif test -f "$ac_srcdir/configure.in"; then
35076 # This should be Cygnus configure.
35077 ac_sub_configure
=$ac_aux_dir/configure
35079 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35080 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35084 # The recursion is here.
35085 if test -n "$ac_sub_configure"; then
35086 # Make the cache file name correct relative to the subdirectory.
35087 case $cache_file in
35088 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
35089 *) # Relative name.
35090 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
35093 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35094 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35095 # The eval makes quoting arguments work.
35096 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35097 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35098 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35099 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35100 { (exit 1); exit 1; }; }